/* =====================================================================
   プライバシーポリシー・特定商取引法に基づく表記・404ページの見た目
   ・色と余白は下の :root。書体 --sans は base.css（トップと同じ）。
   ===================================================================== */

:root {
  /* 色 */
  --paper: #ffffff;        /* 地の色 */
  --wash: #f2f5f4;         /* 帯 */
  --ink: #263032;          /* 本文 */
  --muted: #566264;        /* 補足 */
  --line: #dfe5e4;         /* 区切り線 */
  --accent: #2a7377;       /* ボタン・リンク */
  --accent-deep: #1f5a5e;  /* ボタンを押す・重ねたとき */
  --accent-tint: #f2f5f4;  /* うすい強調 */

  /* 文字（書体 --sans は base.css） */
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 13px;
  --fs-h1: clamp(27px, 1.36vw + 21.7px, 38px);
  --fs-title: 26px;

  /* 余白 */
  --gutter: 40px;
  --section: 88px;
  --header: 68px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: .02em;
  line-break: strict;
  word-break: auto-phrase;   /* 対応ブラウザでは文節で改行 */
  -webkit-font-smoothing: antialiased;
  display: flex;             /* 本文が短いページでも、フッターを画面の下に置く */
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
h1, p, dl, dd { margin: 0; }
h1 { word-break: auto-phrase; text-wrap: balance; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-tint); }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 4px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.legal-list dd { overflow-wrap: anywhere; }

.container { width: min(1080px, 100% - var(--gutter) * 2); margin-inline: auto; }
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ---------- ヘッダー（スクロールしても上に残る） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header); }
.site-name { margin-right: auto; font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: .03em; }
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 20px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s;
}
.header-cta:hover { background: var(--accent-tint); color: var(--ink); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }

/* ---------- 404ページ ---------- */
.hero { padding-block: 96px 120px; }
.hero h1 { font-size: var(--fs-h1); font-weight: 500; line-height: 1.5; letter-spacing: .02em; font-feature-settings: "palt"; }
.hero-desc { max-width: 34em; margin: 20px 0 36px; font-size: 16.5px; line-height: 2; }

/* ---------- プライバシーポリシー・特商法（見出しは左、内容は右） ---------- */
.section { padding-block: 64px var(--section); }
.section > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 56px;
}
.legal-title { grid-area: 1 / 1; font-size: var(--fs-title); font-weight: 500; line-height: 1.5; letter-spacing: .02em; font-feature-settings: "palt"; }
.legal-lead { grid-area: 2 / 1; margin-top: 12px; color: var(--muted); font-size: var(--fs-small); line-height: 1.85; }
.legal-list { grid-area: 1 / 2 / 4 / 3; border-top: 2px solid var(--ink); }
.legal-list dt { padding-top: 22px; font-weight: 600; letter-spacing: .02em; }
.legal-list dt:not(:first-child) { margin-top: 22px; border-top: 1px solid var(--line); }
.legal-list dd { margin-top: 4px; max-width: 40em; }
.legal-list dd a { color: var(--accent); }
.legal-list dd a:hover { color: var(--accent-deep); }
.legal-updated { grid-area: 4 / 2; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }

/* ---------- フッター ---------- */
.site-footer { padding-block: 36px 44px; border-top: 1px solid var(--line); }
.site-footer .container { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.site-footer p { font-size: var(--fs-small); font-weight: 600; letter-spacing: .03em; }
.site-footer .footer-sub { color: var(--muted); font-size: var(--fs-xs); font-weight: 400; letter-spacing: .02em; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ---------- 設定連動（site-config.js） ---------- */
[hidden] { display: none !important; }   /* hidden属性をクラスのdisplay指定より優先させる */
.is-pending { opacity: .55; pointer-events: none; cursor: default; }
.pending-label { font-size: var(--fs-xs); font-weight: 400; }

/* =====================================================================
   画面幅ごとの調整（トップページと同じ区切り）
   ===================================================================== */
@media (max-width: 900px) {
  .section > .container { display: block; }
  .legal-lead { margin-bottom: 32px; }
}

@media (max-width: 700px) {
  :root {
    --gutter: 20px;
    --section: 56px;
    --header: 58px;
    --fs-body: 15px;
    --fs-small: 13.5px;
    --fs-title: 22px;
  }
  .header-inner { gap: 16px; }
  .site-name { font-size: 16px; }
  .header-cta { min-height: 44px; padding: 6px 16px; }

  .hero { padding-block: 56px 72px; }
  .hero-desc { margin: 14px 0 28px; font-size: 15px; }

  .section { padding-top: 36px; }
  .legal-lead { margin-bottom: 24px; }
  .legal-list dt { padding-top: 18px; }
  .legal-list dt:not(:first-child) { margin-top: 18px; }

  .site-footer .container { display: block; }
  .site-footer .footer-sub { margin-top: 10px; }
}

@media (max-width: 359px) {
  .site-name { font-size: 15px; }
  .header-inner { gap: 12px; }
  .header-cta { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .header-cta { transition: none; }
}
