/* ═══ Journal の記事（blog-*）を「見せ方の共通層」の家族に入れる（2026-11-10 試作・Eclaterra 寄せ）═══
   読み込み順: staygo-os.css → faq.css → (journal-map.css) → sg-show.css → これ（いちばん最後）。
   head の3行は scripts/lp/sg-article-head.py が足す（何度流しても同じ）。
   ■ 決まり
     ・記事は読ませる頁なので地は白のまま（Tom 11/03・11/10）。変えるのは字の形と部品だけ
     ・頭の題は Poppins 800 の大文字・詰め。ただし大文字にするのは題の前半（<br> の前）だけ。
       後半の <span>（説明の一行）は文の大文字小文字のまま、細めの灰で添える。長い題でも読める
     ・札（STAYGO JOURNAL）・日付と読む時間は小さな大文字・字間広め（.sg-label と同じ寸法）
     ・頭の写真は角丸 20px の舞台。読み込みでゆっくり寄る（.sg-zoom。js/sg-article.js が付ける）
     ・終わりの誘いは暗い面＋白いピル（白い頁の中でもここだけ暗い）
     ・「他の記事」は Journal の一覧のカード（写真 4:3・読む時間・題）。js/sg-article.js が組む。
       組めなかった時（JS なし・data/article-cards.json が無い）は今の文字の一覧のまま
     ・本文の段落・FAQ（faq.css の開いたまま）は触らない
   ■ 暗い地にする時（Tom が決めたら）
     下の :root の --sga-* を html[data-sga="dark"] で言い直すだけ。色はこのファイルの中では全部ここから引く
   ⚠️ staygo-os.css は !important だらけ。ここは「親のクラス＋!important」で1段強くして勝つ。
      札は staygo-os.css が :not(#sg-x) で ID の強さまで上げているので、こちらも :not(#sg-y) を足す
   ═══════════════════════════════════════════════════════════════════════════════════ */
:root{
  --sga-bg:#FFFFFF; --sga-ink:#111113; --sga-ink-2:#5A5A62; --sga-ink-3:#6B6B73; --sga-body:#3A3A42;
  --sga-line:#E9E9ED; --sga-mark:#2563EB; --sga-ph:#F3F3F6;
  /* 終わりの誘い（明るい地でも暗い面） */
  --sga-cta-bg:#141416; --sga-cta-ink:#F4F4F6; --sga-cta-ink-2:#B9B9C2; --sga-cta-line:#2E2E33;
  --sga-ease:cubic-bezier(.2,.7,.2,1);
}
/* 暗い地の用意（いまは使っていない。html に data-sga="dark" を付けると効く） */
html[data-sga="dark"]{
  --sga-bg:#141416; --sga-ink:#F4F4F6; --sga-ink-2:#B9B9C2; --sga-ink-3:#A2A2AB; --sga-body:#D4D4DA;
  --sga-line:#2E2E33; --sga-mark:#9DB8FF; --sga-ph:#0B0B0D; --sga-cta-bg:#1B1B1E;
}
html[data-sga="dark"] body{background:var(--sga-bg)!important;color:var(--sga-ink)!important}
html[data-sga="dark"] body .article-body p{color:var(--sga-body)!important}
html[data-sga="dark"] body .article-body :is(h2,strong,b){color:var(--sga-ink)!important}

/* ── 頭の塊 ─────────────────────────────────────────── */
body .article-hero{max-width:1120px!important;text-align:center;display:flex;flex-direction:column;align-items:center;
  padding-bottom:clamp(44px,5vw,64px)!important}
/* 札（STAYGO JOURNAL） */
body .article-hero .article-tag:not(#sg-y){font-size:11px!important;font-weight:500!important;letter-spacing:.22em!important;
  margin-bottom:clamp(22px,2.6vw,32px)!important;color:var(--sga-ink)!important}
/* 題 */
body .article-hero .article-title{font-family:Poppins,system-ui,sans-serif!important;font-weight:800!important;
  text-transform:uppercase!important;letter-spacing:-.03em!important;line-height:.98!important;
  font-size:clamp(32px,5.6vw,72px)!important;color:var(--sga-ink)!important;max-width:16.5ch;margin:0 auto 26px!important;
  text-wrap:balance;overflow-wrap:break-word;hyphens:manual}
/* 題の後半（説明の一行）：大文字にしない・細め・灰 */
body .article-hero .article-title span{display:block;margin-top:.55em;text-transform:none!important;letter-spacing:-.01em!important;
  font-weight:500!important;font-size:clamp(18px,2vw,24px)!important;line-height:1.35!important;color:var(--sga-ink-2)!important;
  max-width:34ch;margin-inline:auto;text-wrap:balance}
body .article-hero .article-subtitle{max-width:56ch;margin-inline:auto!important;color:var(--sga-ink-2)!important}
/* 日付・読む時間 */
body .article-hero .article-meta{justify-content:center;flex-wrap:wrap;gap:8px 28px!important;width:100%;max-width:720px;
  font-size:11px!important;font-weight:500!important;letter-spacing:.22em!important;text-transform:uppercase!important;
  color:var(--sga-ink-3)!important;border-top:1px solid var(--sga-line)!important}
/* 和文・中文・韓国語・ヒンディー語は字間を詰めない・大文字の詰めを外す（言語版に入れた時のため） */
:is(:lang(ja),:lang(zh),:lang(zh-Hant),:lang(ko),:lang(hi)) body .article-hero .article-title{letter-spacing:0!important;line-height:1.25!important;max-width:22ch}
:is(:lang(ja),:lang(zh),:lang(zh-Hant),:lang(ko)) body .article-hero :is(.article-meta,.article-tag:not(#sg-y)){letter-spacing:.06em!important}

/* ── 頭の写真：舞台（角丸 20px・ゆっくり寄る） ──────────────── */
body .article-cover{max-width:1200px!important}
body .article-cover picture{display:block;border-radius:20px!important;overflow:hidden!important;background:var(--sga-ph);
  -webkit-mask-image:-webkit-radial-gradient(white,black)} /* Safari で角丸の外へ拡大がはみ出さない */
body .article-cover picture{aspect-ratio:16/9!important;height:auto!important}
body .article-cover img{border-radius:0!important;width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:cover}
@media (min-width:1024px){body .article-cover picture{aspect-ratio:2/1!important}}
body .article-cover figcaption{text-align:center;letter-spacing:.06em}

/* ── 本文の節の見出し：同じ家族の太さに（字はそのまま） ─────────── */
body .article-body > h2{font-weight:800!important;letter-spacing:-.01em!important;line-height:1.15!important}

/* ── 終わりの誘い：暗い面＋白いピル ─────────────────────── */
body .article-body .article-cta{background:var(--sga-cta-bg)!important;border:1px solid var(--sga-cta-line)!important;border-radius:24px!important;
  padding:clamp(40px,6vw,64px) clamp(24px,5vw,56px)!important;color:var(--sga-cta-ink)!important;text-align:center}
body .article-body .article-cta h3{font-family:Poppins,system-ui,sans-serif!important;font-weight:800!important;text-transform:uppercase!important;
  letter-spacing:-.02em!important;line-height:1.02!important;font-size:clamp(26px,4.2vw,40px)!important;color:var(--sga-cta-ink)!important;
  text-wrap:balance;margin:0 auto 16px!important;max-width:18ch}
body .article-body .article-cta h3::before{content:none!important}
body .article-body .article-cta p{color:var(--sga-cta-ink-2)!important}
body .article-body .article-cta p:first-of-type{font-size:16px!important;font-weight:400!important;line-height:1.7!important;max-width:46ch;margin-inline:auto!important}
body .article-body .article-cta a:not(.cta-btn){color:var(--sga-cta-ink)!important}
body .article-body .article-cta .cta-btn{background:#FFFFFF!important;color:#111113!important;border-color:#FFFFFF!important;
  min-height:52px;padding:15px 34px!important;font-size:15px!important;margin-top:8px}
body .article-body .article-cta .cta-btn:hover{color:#111113!important;opacity:.9}
body .article-body .article-cta .cta-btn:focus-visible{outline:2px solid var(--sga-cta-ink);outline-offset:4px}

/* ── 他の記事 ──────────────────────────────────────── */
/* 組む前（JS なし）でも同じ家族の顔：面を外し、上の線と札だけ */
body .article-body .also-read{background:none!important;border:0!important;border-top:1px solid var(--sga-line)!important;border-radius:0!important;
  padding:28px 0 0!important;margin-top:64px!important}
body .article-body .also-read .also-read-label:not(#sg-y){font-size:11px!important;font-weight:500!important;letter-spacing:.22em!important;margin-bottom:22px!important}
body .article-body .also-read > a{color:var(--sga-ink)!important;font-weight:600}
/* カード（js/sg-article.js が .also-read に .sga-cards を付けて組む） */
body .article-body .also-read.sga-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 18px}
body .article-body .also-read.sga-cards .also-read-label:not(#sg-y){grid-column:1/-1;margin-bottom:0!important;justify-self:start}
body .article-body .also-read .sga-card{display:grid!important;gap:10px;align-content:start;margin:0!important;
  text-decoration:none!important;color:var(--sga-ink)!important;background:none!important}
.sga-ph{display:block;aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:var(--sga-ph);-webkit-mask-image:-webkit-radial-gradient(white,black)}
.sga-ph img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.001);transition:transform .9s var(--sga-ease)}
.sga-ph--none{display:none!important} /* 写真の無い記事（blog.html）は写真の枠を出さない。空の黒い箱は壊れて見える */
.sga-card:hover .sga-ph img{transform:scale(1.05)}
body .article-body .also-read .sga-read{display:block;min-height:1.4em;font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--sga-ink-3);margin-top:4px;line-height:1.4}
body .article-body .also-read .sga-t{font-size:16px;line-height:1.35;font-weight:600;color:var(--sga-ink);text-wrap:balance}
body .article-body .also-read .sga-card:hover .sga-t{text-decoration:underline;text-underline-offset:4px}
body .article-body .also-read .sga-card:focus-visible{outline:2px solid var(--sga-mark);outline-offset:6px;border-radius:16px}
@media (max-width:759px){
  body .article-body .also-read.sga-cards{grid-template-columns:minmax(0,1fr);gap:26px}
  body .article-hero .article-title span{font-size:17px!important}
}
@media (min-width:560px) and (max-width:759px){body .article-body .also-read.sga-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}}

/* 動きを減らす設定：寄る・拡大を止める（中身は最初から出ている） */
@media (prefers-reduced-motion:reduce){.sga-ph img{transition:none!important;transform:none!important}}
