/* ============================================================
   記事ページ（article.html）
   トップページのトンマナ（2.5px黒罫線・ハードシャドウ・黄／ピンク）を継承
   ============================================================ */

/* hidden属性を .works などの display 指定より優先させる
   （関連記事が無いときの「そのほかの制作実績」非表示に必要） */
[hidden] {
  display: none !important;
}

/* ---- ヒーロー（黄色帯） ---- */
.article-hero {
  background: var(--yellow);
  border-bottom: 2.5px solid var(--black);
  padding: 36px 80px 44px;
}

.article-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 840px;
  margin: 0 auto;
  min-width: 0;
}

.article-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  max-width: 100%;
}

.article-crumb a {
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.article-crumb a:hover {
  color: var(--accent);
}

.article-crumb__sep {
  flex-shrink: 0;
  opacity: 0.45;
}

.article-crumb__current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.6;
}

.article-hero__title {
  font-weight: 900;
  font-size: 30px;
  line-height: 46px;
  color: var(--black);
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
  width: 100%;
  min-width: 0;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-hero__client {
  padding: 3px 10px;
  background: var(--white);
  border: 2px solid var(--black);
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
}

.article-hero__client:empty {
  display: none;
}

.article-hero__date {
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.5px;
}

/* ---- 本文エリア ---- */
.article-main {
  background: var(--white);
  border-bottom: 2.5px solid var(--black);
  padding: 56px 80px 72px;
}

.article-body {
  width: 760px;
  margin: 0 auto;
  font-weight: 500;
  font-size: 15px;
  line-height: 30px;
  color: var(--black);
}

.article-body p {
  margin: 0 0 26px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body strong {
  font-weight: 900;
}

/* 大見出し: 黄色ボックス（LPカードの意匠を継承） */
.article-body h2 {
  margin: 56px 0 28px;
  padding: 12px 18px;
  background: var(--yellow);
  border: 2.5px solid var(--black);
  box-shadow: 0 4px 0 0 var(--black);
  font-weight: 900;
  font-size: 20px;
  line-height: 32px;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.article-body h2:first-child {
  margin-top: 0;
}

/* 小見出し: 登場人物名など */
.article-body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 14px;
  font-weight: 900;
  font-size: 17px;
  line-height: 26px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.article-body h3::before {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border: 2.5px solid var(--black);
}

/* インタビュアーの質問（行頭「——」） */
.article-body .article-q {
  margin: 48px 0 26px;
  padding: 13px 18px;
  background: #f5f5f5;
  border-left: 5px solid var(--black);
  font-weight: 700;
  line-height: 27px;
}

/* リード文（引用ブロック） */
.article-body blockquote {
  margin: 0 0 40px;
  padding: 24px 28px;
  background: #f5f5f5;
  font-size: 14px;
  line-height: 27px;
}

.article-body blockquote p {
  margin: 0 0 16px;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* 写真・マンガ画像 */
.article-body figure {
  margin: 36px 0;
}

.article-body figure img {
  display: block;
  width: 100%;
  border: 2.5px solid var(--black);
}

.article-body figcaption {
  margin-top: 10px;
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  color: #888;
}

/* 箇条書き（style.css の list-style:none を上書き） */
.article-body ul {
  margin: 0 0 26px;
  padding-left: 1.5em;
  list-style: disc;
}

.article-body li {
  margin: 4px 0;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body hr {
  margin: 48px 0 28px;
  border: none;
  border-top: 2.5px dashed var(--black);
}

/* クレジット行（hr の直後） */
.article-body hr + p {
  font-size: 13px;
  color: #888;
  text-align: right;
}

.article-loading,
.article-error {
  text-align: center;
  font-weight: 700;
  padding: 24px 0;
}

.article-error a {
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .article-hero {
    padding: 28px 20px 32px;
  }

  .article-hero__inner {
    width: 100%;
  }

  .article-hero__title {
    font-size: clamp(20px, 5.4vw, 30px);
    line-height: 1.55;
  }

  .article-main {
    padding: 40px 20px 56px;
  }

  .article-body {
    width: 100%;
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding: 24px 16px 28px;
  }

  .article-main {
    padding: 32px 16px 48px;
  }

  .article-crumb {
    font-size: 11px;
  }

  .article-hero__meta {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .article-body {
    font-size: 14px;
    line-height: 28px;
  }

  .article-body p {
    margin-bottom: 22px;
  }

  .article-body h2 {
    margin: 44px 0 22px;
    padding: 10px 14px;
    font-size: 17px;
    line-height: 27px;
  }

  .article-body h3 {
    margin: 30px 0 12px;
    font-size: 15px;
    line-height: 24px;
  }

  .article-body .article-q {
    margin: 38px 0 22px;
    padding: 12px 14px;
    line-height: 24px;
  }

  .article-body blockquote {
    margin-bottom: 32px;
    padding: 16px 18px;
    font-size: 13px;
    line-height: 24px;
  }

  .article-body figure {
    margin: 28px 0;
  }
}

/* ============================================================
   特定商取引法ページの定義テーブル（privacy.html / tokushoho.html 兼用の
   シンプルな2カラム表。LPのトンマナ（黒罫線・太字）を継承）
   ============================================================ */
.tokushoho-table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  border-top: 2.5px solid var(--black);
}

.tokushoho-table tr {
  border-bottom: 1.5px solid #dbdbdb;
}

.tokushoho-table th,
.tokushoho-table td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 24px;
}

.tokushoho-table th {
  width: 180px;
  flex-shrink: 0;
  font-weight: 900;
  color: var(--black);
  background: #f5f5f5;
  white-space: nowrap;
}

.tokushoho-table td {
  font-weight: 500;
  color: var(--black);
}

@media (max-width: 640px) {
  .tokushoho-table,
  .tokushoho-table tbody,
  .tokushoho-table tr,
  .tokushoho-table th,
  .tokushoho-table td {
    display: block;
    width: 100%;
  }

  .tokushoho-table tr {
    padding: 14px 0;
  }

  .tokushoho-table th {
    padding: 0 0 6px;
    background: none;
  }

  .tokushoho-table td {
    padding: 0;
  }
}
