/* ============================================================
   下層ページ（terms / thanks / 404）だけで使うスタイル
   ------------------------------------------------------------
   style.css の変数・部品をそのまま使い、ここでは足りない分だけ足す。
   余白は H4 のルール（8 / 16 / 24 / 32 / 48 / 64 / 88 / 144px）に限る。
   ============================================================ */


/* ------------------------------------------------------------
   共通：ページの見出し・戻るリンク・ボタンの置き場所
   ------------------------------------------------------------ */
.page-head { padding-bottom: 88px; }
.page-head__title { max-width: 14em; }
.page-back { margin-bottom: 48px; }
.page-back .textlink { font-size: var(--fs-ui); }
.page-back--end { margin: 48px 0 0; }
.page-actions { margin-top: 32px; }
.page-actions--end { margin-top: 64px; }
.page-table-gap { margin-top: 32px; }
.page-mail { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.page-mail .textlink { font-size: inherit; }

/* 下層ページには固定バーがないので、フッター下の余白を通常に戻す */
@media (max-width: 760px) {
  .page .site-footer { padding-bottom: 64px; }
  .page-head { padding-bottom: 64px; }
  .page-back { margin-bottom: 32px; }
}


/* ------------------------------------------------------------
   terms.html：ページ内目次
   ------------------------------------------------------------ */
.page-toc-list ol { border-top: 1px solid var(--line); }
.page-toc-list li { border-bottom: 1px solid var(--line); }
.page-toc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 8px 0;
  font-size: var(--fs-body); font-weight: 500; text-decoration: none;
}
.page-toc-list a { transition: color .2s ease-out; }
.page-toc-list a:hover { color: var(--orange); }   /* HPと同じ：ホバーで文字がオレンジ */
.page-toc-list__arrow { color: var(--ink-muted); font-weight: 400; }


/* ------------------------------------------------------------
   terms.html：参加規約の条文（番号＋見出し＋本文）
   ------------------------------------------------------------ */
.articles { margin-top: 48px; border-top: 1px solid var(--line); }
.article { padding: 32px 0; border-bottom: 1px solid var(--line); }
.article__title { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; }
.article__num { font-size: var(--fs-body); font-weight: 500; color: var(--ink-muted); }
.article__body { margin-top: 16px; padding-left: 40px; }
.article__body .data-table, .article__body .numbered { font-size: var(--fs-small); line-height: var(--lh-small); }
.article__body .numbered > li:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .article { padding: 24px 0; }
  .article__title { grid-template-columns: 32px minmax(0, 1fr); }
  .article__body { padding-left: 0; }
}


/* ------------------------------------------------------------
   thanks.html：次にしていただきたいこと（番号つきの4項目）
   ------------------------------------------------------------ */
.steps-list { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  font-size: var(--fs-h3); font-weight: 500; line-height: 1;
}
.step__body { min-width: 0; padding-top: 8px; }
.step__body .h3 + .sub { margin-top: 8px; }
.step__body .sub .textlink { font-size: inherit; }
.step__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 24px; }
.step__action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.step__card { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 32px; margin-top: 24px; }
.step__card .thumb--card { margin-top: 0; }
.step__card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 760px) {
  .step { grid-template-columns: 32px minmax(0, 1fr); padding: 24px 0; }
  .step__num { width: 32px; height: 32px; font-size: var(--fs-body); }
  .step__body { padding-top: 0; }
  .step__actions, .step__action, .step__card-actions { width: 100%; }
  .step__action .btn, .step__card-actions .btn { width: 100%; }
  .step__card { align-items: flex-start; }
}


/* ------------------------------------------------------------
   404.html
   ------------------------------------------------------------ */
.page-notfound { min-height: min(64vh, 640px); }

/* 経路ボタン2つ（thanks）：間隔をあけ、スマホでは幅いっぱい */
.page-actions{display:flex;flex-wrap:wrap;gap:16px}
.page-actions + .meta{margin-top:8px}
@media (max-width:760px){.page-actions .btn{width:100%}}
