/* ============================================================
   おかえし帳 — プライバシーポリシー / デザインシステム
   方向: 静かな和の品格 × iOSネイティブ / アクセント1色(袱紗の紫)
   トークンはアプリの DSColor.swift / DSFont.swift から導出。
   すべての色・余白・角丸はトークン経由。マジックナンバー禁止。

   コントラスト監査（WCAG 相対輝度から算出。比は概算）:
     --text      #201C24 : on #FFFFFF ≈ 16:1 / on #FAF8F6 ≈ 15:1  ✓ 本文・見出し
     --text-2    #675F70 : on #FFFFFF ≈ 6.1:1 / on #FAF8F6 ≈ 5.8:1 ✓ 補助テキスト
     --text-3    #7A7283 : on #FFFFFF ≈ 4.6:1 / on #FAF8F6 ≈ 4.3:1 → 小ラベル/装飾限定
     --accent    #6A5397 : 白文字との比 ≈ 6.3:1 ✓ 面塗り・アイコン・リンク
     --accent-text #5D4788 : on #FFFFFF ≈ 7.7:1 / on #FAF8F6 ≈ 7.3:1 ✓ 小テキスト
     --on-dark   rgba(255,255,255,.92) : on --accent-deep #534077 ≈ 8.3:1 ✓ ヒーロー本文
     --on-dark-2 rgba(255,255,255,.74) : on --accent-deep #534077 ≈ 5.7:1 ✓ ヒーロー補助
   ============================================================ */

:root {
  /* --- アクセント(ブランド): 袱紗の紫(慶弔両用) --- */
  --accent:        #6A5397;   /* DSColor.accent(light)。白文字で ≈6.3:1 */
  --accent-text:   #5D4788;   /* DSColor.accentText(light)。小テキスト用 */
  --accent-deep:   #534077;   /* ヒーロー背景の沈んだ紫(accent の低明度) */
  --accent-deeper: #3E305A;   /* ヒーロー最暗(グラデの底) */
  --accent-bright: #BBA4E6;   /* DSColor.accent(dark)。装飾ハイライト/ドット */
  --accent-soft:   #EFEAF7;   /* DSColor.accentSoft(light)。ノート面の薄敷き */
  --accent-soft-2: rgba(106, 83, 151, 0.12);   /* チップ面 */

  /* --- ニュートラル(和紙調・わずかに紫みを帯びた階調 = DSColor 準拠) --- */
  --bg:        #FAF8F6;   /* DSColor.canvas(light) 和紙 */
  --surface:   #FFFFFF;   /* DSColor.surface(light) カード面 */
  --surface-2: #F1EDF2;   /* DSColor.surfaceSunken(light) 補助面 */
  --separator: #E9E3EC;   /* DSColor.separator(light) 1px境界 */

  /* --- テキスト(コントラスト比は冒頭の監査ブロック) --- */
  --text:    #201C24;   /* DSColor.textPrimary(light) */
  --text-2:  #675F70;   /* DSColor.textSecondary(light) */
  --text-3:  #7A7283;   /* DSColor.textTertiary(light)。小ラベル限定 */
  --on-accent: #FFFFFF; /* on --accent ≈ 6.3:1 */
  --on-dark:   rgba(255, 255, 255, 0.92);  /* ヒーロー本文. on --accent-deep ≈ 8.3:1 */
  --on-dark-2: rgba(255, 255, 255, 0.74);  /* ヒーロー補助. on --accent-deep ≈ 5.7:1 */

  /* --- 影(高さの体系・2段) --- */
  --shadow-1: 0 2px 10px rgba(32, 28, 36, 0.06), 0 1px 3px rgba(32, 28, 36, 0.05);
  --shadow-2: 0 24px 70px rgba(32, 28, 36, 0.16), 0 8px 24px rgba(32, 28, 36, 0.08);

  /* --- 角丸 --- */
  --r-chip: 10px;
  --r-card: 18px;
  --r-card-lg: 24px;

  /* --- 余白(4の倍数スケール) --- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* --- フォント(明朝は「点」で使う = DSFont.serifTitle の思想) --- */
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
          -apple-system, "SF Pro JP", "Yu Gothic", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;

  --maxw: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   ヒーロー(暗パネル・袱紗の紫)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%,
      var(--accent) 0%, var(--accent-deep) 46%, var(--accent-deeper) 100%);
  color: var(--on-dark);
  padding: var(--s-8) var(--s-5) var(--s-8);
}
/* 控えめな光の質感(袱紗のつや) */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(38% 30% at 84% 8%, rgba(187, 164, 230, 0.30), transparent 70%),
    radial-gradient(34% 26% at 10% 4%, rgba(187, 164, 230, 0.18), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: var(--s-4);
}
.eyebrow .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.hero h1 {
  font-family: var(--serif);   /* 明朝は見出しの「点」でのみ(台帳らしい佇まい) */
  font-size: 40px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
.hero .sub {
  margin-top: var(--s-3);
  font-size: 18px;
  font-weight: 500;
  color: var(--on-dark-2);
}
.hero .meta {
  margin-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  font-size: 14px;
  color: var(--on-dark-2);
}

/* ============================================================
   3つの約束(明パネルのストリップ・ヒーローに少し重ねる)
   ============================================================ */
.promises {
  max-width: var(--maxw);
  margin: calc(var(--s-7) * -1) auto 0;
  padding: 0 var(--s-5);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.promise {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.promise__ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.promise__ic svg { width: 24px; height: 24px; color: var(--accent); }
.promise h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.promise p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ============================================================
   本文
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-9);
}

.content-card {
  background: var(--surface);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-1);
  padding: var(--s-7) clamp(var(--s-5), 5vw, var(--s-7));
}

.intro {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-2);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--separator);
}

.section { padding-top: var(--s-7); }

.section h2 {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: var(--s-4);
}
.section-number {
  flex: none;
  min-width: 30px; height: 30px;
  padding: 0 9px;
  border-radius: var(--r-chip);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
  font-feature-settings: "tnum" 1;
}

.section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: var(--s-5) 0 var(--s-2);
}

.section p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-2);
  margin-bottom: var(--s-3);
}

.section ul {
  list-style: none;
  margin: var(--s-2) 0 var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.section li {
  position: relative;
  padding-left: var(--s-5);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}
.section li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.section li strong { color: var(--text); font-weight: 600; }

/* 補足ノート(袱紗紫の薄敷き) */
.note {
  margin: var(--s-4) 0 var(--s-2);
  padding: var(--s-4) var(--s-5);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-chip);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

/* お問い合わせカード */
.contact-card {
  margin-top: var(--s-6);
  background: var(--surface-2);
  border-radius: var(--r-card);
  padding: var(--s-6);
}
.contact-card h2 { margin-bottom: var(--s-5); }
.contact-row {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  font-size: 15px;
}
.contact-row + .contact-row { border-top: 1px solid var(--separator); }
.contact-label {
  flex: none;
  width: 92px;
  color: var(--text-3);   /* 小ラベル(15px)・補助情報のため許容 */
  font-weight: 600;
}
.contact-value { color: var(--text); line-height: 1.7; }

/* ============================================================
   フッター
   ============================================================ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-8);
  text-align: center;
}
.footer .back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 15px;
  font-weight: 600;
}
.footer .links {
  margin-top: var(--s-5);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-size: 14px;
}
.footer .copy {
  margin-top: var(--s-5);
  font-size: 13px;
  color: var(--text-3);   /* 装飾的なコピーライト表記 */
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: var(--s-7) var(--s-4) var(--s-8); }
  .hero h1 { font-size: 31px; }
  .promises {
    grid-template-columns: 1fr;
    padding: 0 var(--s-4);
  }
  .promise { flex-direction: row; align-items: flex-start; }
  .promise__ic { flex: none; }
  .container { padding: var(--s-6) var(--s-4) var(--s-8); }
  .content-card { padding: var(--s-6) var(--s-4); }
  .contact-row { flex-direction: column; gap: var(--s-1); }
  .contact-label { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
