@font-face {
  font-family: "Noto Sans JP";
  src: url("/assets/noto-sans-jp.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #243d67;
  --ink-deep: #182b4a;
  --ink-soft: #e7edf6;
  --paper: #f8f6ef;
  --paper-deep: #eee9dc;
  --amber: #c8995a;
  --text: #27313f;
  --muted: #687486;
  --line: #d8d5cc;
  --white: #ffffff;
  --max: 1120px;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); line-height: 1.8; }
a { color: var(--ink); text-underline-offset: .2em; }
img { max-width: 100%; height: auto; }

.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 99; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(36,61,103,.12); background: rgba(248,246,239,.94); backdrop-filter: blur(14px); }
.nav { width: min(var(--max), calc(100% - 32px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-deep); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .92rem; }
.nav-links a { text-decoration: none; font-weight: 700; }
.nav-links a:hover, .nav-links a:focus-visible { text-decoration: underline; }

.hero { overflow: hidden; position: relative; padding: 64px 0 52px; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -160px; top: -190px; background: #dfe6f1; opacity: .85; }
.hero-grid { position: relative; width: min(var(--max), calc(100% - 32px)); margin: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; letter-spacing: .12em; font-size: .78rem; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 9px; background: var(--amber); }
h1 { margin: 16px 0 20px; color: var(--ink-deep); font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.16; letter-spacing: .03em; }
.hero h1 span { white-space: nowrap; }
.lead { max-width: 36rem; margin: 0; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #4d5c71; }
.hero-note { margin: 24px 0 0; padding-left: 14px; border-left: 3px solid var(--amber); color: var(--muted); font-size: .9rem; }
.hero-art { position: relative; padding: 18px; border-radius: 32px; background: rgba(255,255,255,.55); box-shadow: 0 24px 60px rgba(24,43,74,.14); }
.hero-art img { display: block; border-radius: 21px; }

.section { padding: 80px 0; }
.section.alt { background: var(--white); border-block: 1px solid rgba(36,61,103,.08); }
.container { width: min(var(--max), calc(100% - 32px)); margin: auto; }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section h2, .document h1 { margin: 8px 0 14px; color: var(--ink-deep); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.3; }
.section-head p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.feature b { display: block; margin: 14px 0 8px; color: var(--ink-deep); font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: var(--ink-soft); font-size: 1.25rem; font-weight: 900; }

.promise { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.promise-list { display: grid; gap: 14px; }
.promise-item { padding: 20px 22px; border-left: 4px solid var(--amber); background: var(--white); box-shadow: 0 10px 30px rgba(24,43,74,.07); }
.promise-item b { display: block; color: var(--ink-deep); }
.promise-item span { color: var(--muted); font-size: .94rem; }

.notice { padding: 24px 26px; border: 1px solid #dfc79f; border-radius: 16px; background: #fff9ef; }
.notice h3 { margin: 0 0 8px; color: var(--ink-deep); }
.notice p { margin: 0; }

.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.legal-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.legal-card:hover, .legal-card:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24,43,74,.09); }
.legal-card b { display: block; color: var(--ink-deep); font-size: 1.08rem; }
.legal-card span { color: var(--muted); font-size: .9rem; }

.document { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 96px; }
.document .meta { color: var(--muted); font-size: .9rem; }
.document h2 { margin: 2.2rem 0 .7rem; color: var(--ink-deep); font-size: 1.35rem; }
.document h3 { color: var(--ink-deep); }
.document li + li { margin-top: .45rem; }
.document table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
.document th, .document td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.document th { background: var(--ink-soft); color: var(--ink-deep); }
.document .panel { margin: 24px 0; padding: 20px 22px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; color: white; background: var(--ink); font-weight: 800; text-decoration: none; }
.button:hover, .button:focus-visible { background: var(--ink-deep); }

.site-footer { padding: 38px 0; color: #dbe4f2; background: var(--ink-deep); }
.footer-grid { width: min(var(--max), calc(100% - 32px)); margin: auto; display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; }
.footer-brand { font-weight: 800; color: white; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { color: #dbe4f2; font-size: .86rem; }
.copyright { margin-top: 10px; font-size: .78rem; color: #9fb0c9; }

@media (max-width: 800px) {
  .nav { min-height: 64px; }
  .nav-links a:not(.keep) { display: none; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.3rem); }
  .hero-grid, .promise { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; padding: 10px; border-radius: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .document table, .document thead, .document tbody, .document th, .document td, .document tr { display: block; }
  .document th { border-bottom: 0; }
}

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