/* guide.css — クリエイターガイド固有のスタイル。creator.css の後に読み込む。
   トークン・ナビ・フッター・見出し・.band・.wrap・.eyebrow・.lede・.cta は creator.css を流用する。 */

/* ---------- hero（LP より小さめ） ---------- */
.guide-hero {
  padding: clamp(24px, 3.5vw, 44px) 0 clamp(36px, 5vw, 56px);
  /* ページ最上部なので上罫線は出さない */
  border-top: 0;
}
.guide-hero .eyebrow {
  display: block;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.guide-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.guide-hero .lede {
  margin-top: 12px;
}

/* ---------- 目次 ---------- */
.toc {
  padding-top: clamp(28px, 4vw, 44px);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.toc a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 18px 8px 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
}
.toc a:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}
.toc b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-quiet);
  color: var(--accent-text);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}

/* ---------- 章 ---------- */
.guide-sec {
  padding: clamp(48px, 6vw, 80px) 0;
}
.guide-sec .sec-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}
/* 文章のみのブロック（<article>）は読みやすさのため幅を絞る。<details> は .wrap いっぱい */
article.topic {
  max-width: 760px;
}
.topic + .topic {
  margin-top: 14px;
}
/* 文章ブロックとアコーディオンの境目は広めに */
article.topic + details.topic,
details.topic + article.topic {
  margin-top: clamp(32px, 4vw, 48px);
}
.topic h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}
.topic h4 {
  margin: 22px 0 0;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--accent-text);
}
.topic-lead {
  margin-top: 10px;
  color: var(--text-muted);
}
.note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-quiet);
}
.topic code {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.92em;
  background: var(--surface-quiet);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}
.topic-cta {
  margin-top: 18px;
}

/* ---------- アコーディオン（<details> の標準動作。JS なし） ---------- */
details.topic > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 64px 20px 24px;
  transition: background-color 0.15s ease;
}
/* Safari の三角マーカー */
details.topic > summary::-webkit-details-marker {
  display: none;
}
details.topic > summary:hover {
  background: var(--surface-quiet);
}
/* creator.css の a:focus-visible と同じ見た目 */
details.topic > summary:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}
/* 開閉マーク（+ / −） */
details.topic > summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-quiet);
  color: var(--accent-text);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}
details.topic[open] > summary::after {
  content: '\2212'; /* − */
}
/* 開いたら下の角丸を落として中身と繋げる */
details.topic[open] > summary {
  border-radius: 16px 16px 0 0;
}
details.topic > summary h3 {
  display: block;
  color: var(--text);
}
details.topic > summary .topic-lead {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-quiet);
}
/* 開いた中身。summary と繋がる形（上罫線・上の角丸なし） */
.topic-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  padding: 24px;
}
.topic-body .body > :first-child {
  margin-top: 0;
}

/* 3チャネルの定義リスト */
.channels {
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.channels > div {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}
.channels dt {
  font-weight: 900;
  color: var(--accent-text);
}
.channels dd {
  margin: 4px 0 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* 事実の箇条書き（手順ではないもの） */
.facts {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.facts li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* 手順（番号付き） */
.how {
  counter-reset: how;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.how li {
  counter-increment: how;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px 12px 54px;
  font-size: 0.95rem;
}
.how li::before {
  content: counter(how);
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}
.how li b {
  display: block;
  font-weight: 900;
}

/* ---------- PCモック（.browser 系）。スマホモックは下の .phone 系（「登録の5ステップ」のみ） ---------- */
.topic-body > .browser,
.topic-body > .browsers {
  margin-top: 20px;
}
.browser {
  width: 100%;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(var(--text-quiet-rgb), 0.1);
}
/* ウィンドウ上部のバー（URLバーは置かない） */
.browser-bar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  background: var(--surface-quiet);
  border-bottom: 1px solid var(--border);
}
.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.browser-screen {
  aspect-ratio: 16 / 9;
  background: var(--surface-quiet);
  display: grid;
  place-items: center;
}
/* 画像が入るまでの仮表示。差し替え後は img が効く */
.browser-ph {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-quiet);
}
.browser-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* 2枚並び（縦積み）のキャプション */
.browser figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-quiet);
}
.browsers {
  display: grid;
  gap: 20px;
}

/* ---------- スマホモック（.phone 系）。本人確認はスマートフォンでのみ行える手続きのため、
   「登録の5ステップ」だけ PC モックではなくこちらを使う。
   creator.css の .phone は LP のヒーロー専用（ノッチ・大きな影）なので、ここで全て上書きする ---------- */
.topic-body > .phones {
  margin-top: 20px;
}
.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.phones figure {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.phones .phone {
  width: 100%;
  max-width: 280px;
  margin: 0;
  aspect-ratio: 9 / 15;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(var(--text-quiet-rgb), 0.1);
  /* .phone-screen の絶対配置の基準にする */
  position: relative;
}
.phones .phone::after {
  content: none;
}
/* creator.css の .phone-screen と同じ理由（WebKit の aspect-ratio + padding のバグ）で、
   画面は枠の padding の内側に絶対配置で敷く（inset = .phone の padding） */
.phones .phone-screen {
  position: absolute;
  inset: 10px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--text);
  display: grid;
  align-content: center;
}
/* 画像はステータスバーと Safari のバーを落としたアプリ画面だけ（1179×1978 ≒ 9:15.1）。
   画面も 9:15 にして余白を出さない */
.phones .phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.phones figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-quiet);
}

@media (max-width: 860px) {
  .phones {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 595px) {
  .how li {
    padding: 12px 14px 12px 48px;
  }
  .how li::before {
    left: 10px;
  }
}
