:root {
  --navy: #17252c;
  --ink: #2e3d43;
  --muted: #60747b;
  --teal: #0e6c7c;
  --teal-dark: #09414b;
  --teal-soft: #e5f1f3;
  --orange: #e8932f;
  --orange-soft: #fff2dc;
  --paper: #ffffff;
  --wash: #f6f8f7;
  --line: #d7e0e2;
  --shadow: 0 18px 48px rgba(23, 37, 44, .10);
  --radius: 18px;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font: 16px/1.8 var(--font);
  letter-spacing: .015em;
}
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; }
h1, h2, h3 { color: var(--navy); line-height: 1.4; text-wrap: pretty; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link { position: fixed; top: -80px; left: 12px; z-index: 99; padding: 10px 16px; color: #fff; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-inner { min-height: 66px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; color: var(--navy); text-decoration: none; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--teal); border-radius: 11px 11px 4px 11px; font-size: 19px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1.2; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.header-nav a:hover { color: var(--teal); }

.hero { position: relative; overflow: hidden; padding: 82px 0 72px; background: linear-gradient(135deg, #f7fbfb 0%, #fff 58%, #fff6e8 100%); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -150px; border: 46px solid var(--teal-soft); border-radius: 50%; opacity: .75; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; padding: 5px 12px; margin: 0 0 18px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.hero h1 { margin: 0 0 22px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; }
.hero-lead { max-width: 36em; margin: 0 0 30px; font-size: 19px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; }
.btn-primary { color: #fff; background: var(--teal); }
.btn-primary:hover { color: #fff; background: var(--teal-dark); }
.btn-secondary { color: var(--teal-dark); background: #fff; border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-soft); }
.hero-card { padding: 26px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card h2 { margin: 0 0 16px; font-size: 19px; }
.hero-card ul { margin: 0; padding: 0; list-style: none; }
.hero-card li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.hero-card li:first-child { border-top: 0; }
.hero-card li::before { content: "✓"; position: absolute; left: 3px; color: var(--teal); font-weight: 900; }

.section { padding: 74px 0; }
.section-white { background: #fff; }
.section-teal { color: #eaf3f4; background: var(--navy); }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-title { margin: 0 0 14px; font-size: clamp(27px, 4vw, 38px); }
.section-lead { max-width: 44em; margin: 0 0 36px; color: var(--muted); }
.section-teal .section-lead { color: #c5d4d8; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(23,37,44,.05); }
.panel h3 { margin: 0 0 10px; font-size: 20px; }
.panel p { margin: 0; }
.panel-num { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; color: #fff; background: var(--teal); border-radius: 12px; font-weight: 900; }
.sheet-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.sheet { padding: 24px; color: var(--ink); background: #fff; border-radius: 14px; border-top: 5px solid var(--orange); }
.sheet h3 { margin: 0 0 8px; }
.sheet p { margin: 0; }
.notice { padding: 20px 22px; background: var(--orange-soft); border-left: 5px solid var(--orange); border-radius: 10px; }
.notice strong { color: var(--navy); }
.permission { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.permission-box { padding: 28px; background: var(--teal-soft); border-radius: var(--radius); }
.permission-box h3 { margin-top: 0; }
.plain-list { padding-left: 1.25em; }
.plain-list li { margin: 8px 0; }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tool-card { display: flex; flex-direction: column; min-height: 260px; padding: 30px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.tool-card:hover { color: inherit; border-color: var(--teal); transform: translateY(-2px); }
.tool-card h2 { margin: 10px 0; }
.tool-card p { margin: 0 0 20px; }
.tool-card .card-link { margin-top: auto; color: var(--teal); font-weight: 800; }
.status { display: inline-flex; align-self: flex-start; padding: 3px 10px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; font-size: 13px; font-weight: 800; }

.legal-hero { padding: 58px 0 42px; background: #fff; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 44px); }
.legal { padding: 48px 0 80px; }
.legal section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.legal h2 { margin: 0 0 12px; font-size: 22px; }
.legal h3 { margin: 18px 0 8px; font-size: 18px; }
.legal p, .legal ul { margin-top: 0; }
.meta { color: var(--muted); font-size: 14px; }

.cta { padding: 58px 0; text-align: center; background: linear-gradient(135deg, var(--teal-soft), #fff6e7); }
.cta h2 { margin: 0 0 12px; }
.cta p { margin: 0 0 24px; }
.site-footer { padding: 34px 0; color: #cbd9dc; background: var(--navy); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #fff; }

@media (max-width: 780px) {
  .container, .narrow { width: min(100% - 28px, 1080px); }
  .header-nav { display: none; }
  .hero { padding: 56px 0; }
  .hero-grid, .permission { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 35px; }
  .grid-3, .sheet-list, .tool-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
}

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