/* ==========================================================================
   Torii Health — Article page styles
   Depends on styles.css (tokens, header, footer) being loaded first.
   ========================================================================== */

.th-article-header {
  padding: 40px 0 24px;
}

.th-article-header__eyebrow {
  font-family: var(--th-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--th-red);
  margin: 0 0 12px;
}

.th-article-header h1 {
  font-family: var(--th-font-display);
  font-weight: 800;
  color: var(--th-navy);
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 22ch;
}

.th-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.9rem;
  color: var(--th-text-muted);
}
.th-article-meta a { color: var(--th-navy); text-decoration: none; font-weight: 600; }
.th-article-meta a:hover { text-decoration: underline; }

/* Hero image frame — placeholder ready for a real asset */
.th-hero-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--th-navy-tint), #dfe7f5);
  border: 1px dashed #b9c7e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--th-navy);
  font-family: var(--th-font-display);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
  margin: 24px 0 8px;
  overflow: hidden;
}
.th-hero-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* Prose */
.th-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 48px;
  font-size: 1.05rem;
}

.th-prose > .th-lead {
  font-size: 1.15rem;
  color: var(--th-text);
  font-style: italic;
}

.th-prose h2 {
  font-family: var(--th-font-display);
  color: var(--th-navy);
  font-size: 1.4rem;
  margin: 40px 0 14px;
  line-height: 1.3;
}

.th-prose h3 {
  font-family: var(--th-font-display);
  color: var(--th-navy);
  font-size: 1.12rem;
  margin: 28px 0 10px;
}

.th-prose p { margin: 0 0 16px; }

.th-prose ul, .th-prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.th-prose li { margin-bottom: 8px; }

.th-prose a { color: var(--th-navy); text-decoration: underline; }

/* Callout / highlight boxes */
.th-callout {
  background: var(--th-navy-tint);
  border-left: 4px solid var(--th-navy);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 20px 0 28px;
}
.th-callout__label {
  font-family: var(--th-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-navy);
  margin: 0 0 6px;
}
.th-callout p:last-child { margin-bottom: 0; }

.th-callout--muted {
  background: #f8f9fb;
  border-left-color: var(--th-navy);
}

/* Bottom-line summary band */
.th-bottom-line {
  background: var(--th-navy-tint);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 8px 0 36px;
  color: var(--th-navy-dark);
}
.th-bottom-line strong { color: var(--th-navy); }

/* Author sign-off */
.th-signoff {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--th-border);
}
.th-signoff img {
  width: 72px; height: 72px;
  border-radius: 8px;
  object-fit: cover;
}
.th-signoff .th-signoff__eyebrow { font-size: 0.82rem; color: var(--th-text-muted); margin: 0; }
.th-signoff .th-signoff__name { font-family: var(--th-font-display); font-weight: 700; color: var(--th-navy); margin: 2px 0; }
.th-signoff .th-signoff__org { font-size: 0.82rem; color: var(--th-text-muted); margin: 0; }

/* Feedback / question call-to-action strip */
.th-feedback {
  background: var(--th-navy-tint);
  border-top: 1px solid var(--th-border);
  border-bottom: 1px solid var(--th-border);
  padding: 28px 0;
}
.th-feedback h3 {
  font-family: var(--th-font-display);
  color: var(--th-navy);
  font-size: 1rem;
  margin: 0 0 8px;
}
.th-feedback p { margin: 0 0 16px; color: var(--th-text); max-width: 60ch; }

/* Final booking CTA band */
.th-cta-band {
  background: var(--th-navy);
  color: #dfe8f6;
  padding: 40px 0;
  text-align: center;
}
.th-cta-band h3 {
  font-family: var(--th-font-display);
  color: var(--th-white);
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.th-cta-band p { margin: 0 auto 22px; max-width: 52ch; font-size: 0.94rem; color: #a8bedf; }
.th-cta-band .th-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Prev / next pagination (optional, mirrors reference site) */
.th-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 48px;
  border-top: 1px solid var(--th-border);
  font-size: 0.9rem;
}
.th-pagination a { text-decoration: none; color: var(--th-navy); }
.th-pagination a:hover { text-decoration: underline; }
.th-pagination__label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--th-text-muted); margin-bottom: 4px; }

@media (max-width: 600px) {
  .th-signoff { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ==========================================================================
   2026-10-06 追加：レスポンシブ修正 ＋ 出典（Sources）ブロック
   ========================================================================== */

/* (1) 左右余白の修正
   .th-article-header / .th-prose の `padding: … 0 …` が .th-container の
   左右余白を上書きしていたため、スマホ・タブレットで見出しと本文が
   画面の端に接していた。ヘッダー/フッターと同じ 20px（スマホ）／32px に揃える。
   本文の読み幅（760px）はPCで従来どおりになるよう max-width に余白分を足す。 */
.th-article-header.th-container,
.th-prose.th-container {
  padding-left: 20px;
  padding-right: 20px;
}
.th-prose.th-container { max-width: calc(760px + 40px); }

@media (min-width: 720px) {
  .th-article-header.th-container,
  .th-prose.th-container {
    padding-left: 32px;
    padding-right: 32px;
  }
  .th-prose.th-container { max-width: calc(760px + 64px); }
}

/* 長いURL・単語で横スクロールが出ないように */
.th-prose { overflow-wrap: break-word; }

/* (2) 記事のカバー画像
   width/height 属性（1200x675）だけだと、スマホで幅だけ縮んで高さ 675px の
   まま残り、上下に大きな空白ができていた。比率を保って縮小する。 */
.th-article-header > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 24px 0 8px;
}

/* (3) 前後の記事リンク
   PC：左右に並べ、Next は右寄せ／スマホ：縦に積む */
.th-pagination a { flex: 1 1 0; min-width: 0; }
.th-pagination a.th-pagination__next { text-align: right; }

@media (max-width: 600px) {
  .th-pagination { flex-direction: column; gap: 20px; }
  .th-pagination a.th-pagination__next { text-align: left; }
}

/* (4) 出典（メルマガの Source / Sources 欄） */
.th-sources {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--th-border);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--th-text-muted);
}
.th-sources h2 {
  font-family: var(--th-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-text-muted);
  margin: 0 0 10px;
}
.th-sources ol { margin: 0; padding-left: 20px; }
.th-sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.th-sources a { color: inherit; }

/* (5) まとめ枠の下に余分な空白が出ないように */
.th-bottom-line p:last-child { margin-bottom: 0; }
