/* =============================================
   からだのトリせつ — article.css（記事ページ専用）
   v3.0 "好きになる空気" 感情設計版
   ============================================= */

/* --- Article wrapper --- */
.article-layout {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* =============================================
   記事ヘッダー
   v3：セリフ体H1 → 「本を開いた瞬間」の感覚
============================================= */
.article-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* ★ 記事タイトルにセリフ体：「読みにきた感」 */
.article-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.02em;
}

.article-header__lead {
  margin-top: 20px;
  font-size: 1.0rem;
  color: var(--text-sub);
  line-height: 1.98;
}

.article-header__info {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: var(--text-mute);
}
.article-header__info-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* =============================================
   記事本文タイポグラフィ
   v3：H2もセリフ体に → 章立ての流れが読書体験になる
============================================= */
.article-body {
  font-size: 1rem;
  line-height: 2.05;   /* わずかに広げて呼吸感 */
  letter-spacing: 0.01em;
}

/* ★ H2：セリフ体 + 小さなローズバー（感情の引っかかり）*/
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  margin: 60px 0 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.article-body h2::before {
  content: '';
  display: block;
  /* ★ ローズとグリーンの小さなグラデバー → 「ちょっとかわいい」 */
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--rose) 100%);
  border-radius: 2px;
  margin-bottom: 14px;
  opacity: 0.7;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin: 38px 0 13px;
  letter-spacing: -0.005em;
}

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

.article-body ul,
.article-body ol {
  margin-bottom: 24px;
}
.article-body li { margin-bottom: 7px; }

.article-body strong {
  font-weight: 700;
  color: var(--text);
}

/* =============================================
   Box コンポーネント群
   v3：radius 16px。全体に「包まれる感」。
   階層はv2と同じだが、丸みで親しみやすさが上がる
============================================= */

/* 1. わかること Box */
.box-summary {
  background: var(--green-lt);
  border-radius: var(--radius-md);   /* 16px */
  border-left: 3px solid var(--green);
  padding: 24px 26px;
  margin: 0 0 44px;
}
.box-summary__title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}
.box-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.box-summary li {
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  line-height: 1.75;
}
/* ★ チェックマークを小さな丸に → ソフトな印象 */
.box-summary li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 7px;
  opacity: 0.75;
}

/* 2. 結論 Box
   v3：ダークテール背景 + セリフ体テキスト
   → 「ここに答えがある」という重みを品よく演出 */
.box-conclusion {
  background: var(--green-dk);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin: 44px 0;
}
.box-conclusion__title {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.42;
  margin-bottom: 12px;
}
/* ★ 結論テキストにセリフ体 → 「刻まれる言葉」感 */
.box-conclusion__text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.78;
  margin: 0;
  letter-spacing: 0.005em;
}

/* 3. 実践アクション Box
   v3：アンバー左線 + 丸みでやさしいリスト感 */
.box-action {
  background: var(--amber-lt);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin: 44px 0;
}
.box-action__title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.88;
}
.box-action ol {
  padding-left: 1.3em;
  margin: 0;
}
.box-action li {
  font-size: 0.88rem;
  margin-bottom: 10px;
  line-height: 1.8;
}
.box-action li:last-child { margin-bottom: 0; }

/* 4. 注意点（インデント注釈スタイル）
   v3：左線をローズに変更 → 「補足だけど気にして」感 */
.box-caution {
  padding: 0 0 0 18px;
  margin: 44px 0;
  border-left: 2px solid var(--rose-mid);
}
.box-caution__title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.05em;
  margin-bottom: 7px;
  opacity: 0.85;
}
.box-caution p {
  font-size: 0.83rem;
  color: var(--text-mute);
  margin: 0;
  line-height: 1.88;
}

/* =============================================
   開示・免責
============================================= */
.disclosure {
  background: #F5F3EE;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin: 28px 0;
  font-size: 0.71rem;
  color: var(--text-mute);
  line-height: 1.78;
}

/* =============================================
   参考文献 — 脚注スタイル（二次的情報として明確化）
============================================= */
.references {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.references__title {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.references ol { padding-left: 1.4em; }
.references li {
  font-size: 0.73rem;
  color: var(--text-mute);
  line-height: 1.92;
  margin-bottom: 9px;
}
.references a {
  color: var(--text-mute);
  text-decoration: underline;
  word-break: break-all;
}
.references a:hover { color: var(--text-sub); }

/* =============================================
   著者 Box — バイライン形式（v3: アバターにグラデ）
============================================= */
.author-box {
  border-top: 1px solid var(--border);
  padding: 28px 0 0;
  margin-top: 60px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-box__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  /* ★ グラデ：単色よりも生き生きした印象 */
  background: linear-gradient(135deg, var(--green-lt), var(--rose-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.author-box__name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  font-family: var(--font-serif);   /* ★ */
}
.author-box__role {
  font-size: 0.68rem;
  color: var(--text-mute);
  margin-bottom: 9px;
  letter-spacing: 0.02em;
}
.author-box__bio {
  font-size: 0.79rem;
  color: var(--text-sub);
  line-height: 1.85;
  margin: 0;
}

/* =============================================
   関連記事
============================================= */
.related-articles { margin-top: 56px; }
.related-articles__title {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* =============================================
   更新日バー
============================================= */
.update-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.update-bar::before { content: '🕐'; font-size: 0.84em; }

/* =============================================
   目次（将来拡張用）
============================================= */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 0 0 40px;
}
.toc__title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-mute);
  margin-bottom: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { font-size: 0.84rem; margin-bottom: 5px; }
.toc a { color: var(--text-sub); }
.toc a:hover { color: var(--green); }

/* =============================================
   図解コンポーネント（Figure Components）v1.0
   HTML/CSS + SVG による記事内ビジュアル
   外部ライブラリ不使用
============================================= */

/* --- 共通ラッパー --- */
.article-figure {
  margin: 44px 0;
  padding: 24px 22px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.article-figure__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-figure figcaption,
.article-figure__caption {
  font-size: 0.74rem;
  color: var(--text-mute);
  margin-top: 14px;
  text-align: center;
  line-height: 1.65;
}

/* --- 横バーチャート --- */
.fig-bars { display: flex; flex-direction: column; gap: 13px; }
.fig-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fig-bar-label {
  font-size: 0.79rem;
  color: var(--text-sub);
  min-width: 108px;
  flex-shrink: 0;
  text-align: right;
  line-height: 1.4;
}
.fig-bar-track {
  flex: 1;
  height: 16px;
  background: #EDEBE6;
  border-radius: 4px;
  overflow: hidden;
}
.fig-bar-fill {
  height: 100%;
  border-radius: 4px;
}
.fig-bar-fill--green { background: var(--green); }
.fig-bar-fill--muted { background: var(--green-mid); }
.fig-bar-fill--rose  { background: var(--rose); }
.fig-bar-fill--amber { background: var(--amber); }
.fig-bar-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
  min-width: 36px;
}

/* --- ホルモン量・円サイズ比較 --- */
.fig-hormone {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 48px;
  padding: 8px 0 0;
}
.fig-hormone__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.fig-hormone__circle {
  border-radius: 50%;
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.3;
}
.fig-hormone__circle--male {
  width: 96px;
  height: 96px;
  background: var(--green-lt);
  border-color: var(--green);
  color: var(--green);
  font-size: 0.63rem;
}
.fig-hormone__circle--female {
  width: 34px;
  height: 34px;
  background: var(--rose-lt);
  border-color: var(--rose);
  color: var(--rose);
  font-size: 0.54rem;
}
.fig-hormone__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.fig-hormone__value {
  font-size: 0.71rem;
  color: var(--text-mute);
  text-align: center;
  margin-top: -4px;
  line-height: 1.5;
}

/* --- 2カラム比較 --- */
.fig-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .fig-2col { grid-template-columns: 1fr; }
}
.fig-2col__item {
  padding: 16px 14px;
  border-radius: 10px;
}
.fig-2col__item--green {
  background: var(--green-lt);
  border: 1px solid var(--green-mid);
}
.fig-2col__item--rose {
  background: var(--rose-lt);
  border: 1px solid var(--rose-mid);
}
.fig-2col__head {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.fig-2col__item--green .fig-2col__head { color: var(--green); }
.fig-2col__item--rose  .fig-2col__head { color: var(--rose); }
.fig-2col__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fig-2col__list li {
  font-size: 0.79rem;
  color: var(--text-sub);
  line-height: 1.55;
  padding-left: 12px;
  position: relative;
  margin: 0;
}
.fig-2col__list li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--text-mute);
  font-size: 1.1rem;
  line-height: 1.1;
}

/* --- ステッププロセス --- */
.fig-steps {
  display: flex;
  align-items: stretch;
}
.fig-step {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  background: var(--green-lt);
  border-radius: 10px;
  position: relative;
}
.fig-step + .fig-step {
  margin-left: 18px;
}
.fig-step + .fig-step::before {
  content: '→';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  font-size: 0.85rem;
}
.fig-step__num {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.07em;
  opacity: 0.75;
  margin-bottom: 5px;
}
.fig-step__text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}
.fig-step__sub {
  font-size: 0.7rem;
  color: var(--text-mute);
  margin-top: 4px;
  line-height: 1.4;
}
@media (max-width: 500px) {
  .fig-steps { flex-direction: column; gap: 8px; }
  .fig-step + .fig-step { margin-left: 0; }
  .fig-step + .fig-step::before { display: none; }
}

/* --- SVG インラインチャート共通 --- */
.fig-svg-wrap {
  width: 100%;
  overflow: hidden;
}
.fig-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
