/* tanalib.com/ninedodge/ の見た目。色はアプリ（lib/presentation/theme/app_colors.dart）と同じ。 */
:root {
  --yellow: #FFE16A;
  --cream: #FFF2C2;
  --paper: #FFFDF5;
  --white: #FFFFFF;
  --ink: #1E1B2A;
  --text: #1E1B2A;
  --muted: #4A4458;
  --blue: #2A5FE0;
  --red: #F0525A;
  --line: rgba(30, 27, 42, 0.12);
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo,
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

h1, h2, h3, .lead, .label { font-weight: 800; }

/* 上のナビ：白い帯の中に、丸いボタンを並べる */
.nav-wrap { position: relative; z-index: 3; padding: 20px 16px 0; }
.nav {
  max-width: 920px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--white); border-radius: 999px; padding: 10px 12px 10px 18px;
  box-shadow: 0 6px 24px rgba(30, 27, 42, 0.08);
}
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; }
.nav .brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav li a {
  display: block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.6;
}
.nav li a:hover { background: var(--cream); }
.nav li a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* トップ：黄色の大きな面 */
.hero {
  background-color: var(--yellow);
  background-image: radial-gradient(rgba(30, 27, 42, 0.10) 2px, transparent 2px);
  background-size: 28px 28px;
  margin-top: -40px; padding: 88px 16px 64px;
}
.hero-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center;
}
.hero .label {
  display: inline-block; background: var(--white); border: 2px solid var(--ink); border-radius: 12px;
  padding: 4px 14px; font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 var(--ink);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.2; margin: 20px 0 16px; letter-spacing: 0.02em;
}
.hero h1 .accent { color: var(--blue); }
.hero .lead { font-size: 17px; font-weight: 700; margin: 0 0 24px; }
/* App Store の公式のバッジ。形と色は変えず、高さだけを決める（Apple のガイドラインで、画面では 40px 以上） */
.badge { display: inline-block; }
.badge img { display: block; height: 52px; width: auto; }
.hero .note { font-size: 13px; color: var(--muted); margin: 14px 0 0; font-weight: 700; }
.hero-art { position: relative; min-height: 420px; }
.hero-art .board { position: absolute; left: -4%; bottom: 0; width: 78%; z-index: 2; }
.hero-art .phone { position: absolute; right: 0; top: 0; width: 46%; z-index: 1; }

/* 特長 */
.section { padding: 72px 16px; }
.section.cream { background: var(--cream); }
.section-head { text-align: center; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--blue); font-weight: 800; font-size: 18px; letter-spacing: 0.04em; margin: 0; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 0; line-height: 1.4; }
.features {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature { text-align: center; }
.feature .num {
  font-family: "Arial Black", "Hiragino Sans", sans-serif; font-weight: 900; font-size: 52px; line-height: 1;
  color: var(--white); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; margin: 0 0 -18px;
  position: relative; z-index: 2;
}
.feature .art {
  background: var(--yellow); border-radius: 50%; aspect-ratio: 1; width: 86%; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: center; overflow: hidden;
}
.feature .art img { width: 50%; margin-top: 12%; }
.feature .art img.wide { width: 92%; margin-top: 14%; }
.feature h3 { font-size: 21px; margin: 20px 0 6px; line-height: 1.5; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; text-align: left; }

.closing { text-align: center; }
.closing h2 { font-size: clamp(24px, 3.6vw, 32px); margin: 0 0 20px; }

/* 文書のページ（プライバシーポリシー、サポート） */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 24px; }
.doc .app { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; font-size: 14px; }
.doc .app img { width: 28px; height: 28px; border-radius: 7px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.35; margin: 12px 0 28px; }
.doc h2 { font-size: 19px; line-height: 1.5; margin: 36px 0 8px; }
.doc h3 { font-size: 16px; margin: 24px 0 4px; }
.doc p { margin: 0 0 14px; }

footer {
  text-align: center; color: var(--muted); font-size: 13px; padding: 40px 16px 48px;
}
footer ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; padding: 0; list-style: none; }

@media (max-width: 820px) {
  .hero { padding: 80px 16px 40px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { min-height: 0; aspect-ratio: 1 / 0.9; max-width: 440px; width: 100%; margin: 8px auto 0; }
  .hero-art .board { left: 0; }
  .features { grid-template-columns: 1fr; gap: 48px; max-width: 420px; }
  .nav { border-radius: 24px; justify-content: center; padding: 10px 8px; }
  .nav ul { justify-content: center; gap: 4px; }
  .nav li a { padding: 4px 10px; font-size: 12px; }
}
.nw { white-space: nowrap; }
