:root {
  --navy: #1b3a5c;
  --yellow: #ffc72c;
  --bg: #e8f0f8;
  --white: #fff;
  --muted: #4a6078;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
h1, h2, h3 { line-height: 1.4; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(22px, 6.4vw, 26px); text-align: center; margin-bottom: 28px; }
p { margin: 0; text-wrap: pretty; }
.nb { display: inline-block; }

/* 上の帯 */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; gap: 10px; }
.top img { width: 36px; height: 36px; border-radius: 9px; }
.top b { font-size: 18px; letter-spacing: .02em; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 32px;
  background: var(--yellow); color: var(--navy);
  border: 3px solid var(--navy); border-radius: 16px;
  font-size: 20px; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 0 var(--navy);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; }
.cta { text-align: center; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* 最初の画面 */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(27px, 8.4vw, 34px); font-weight: 800; letter-spacing: .01em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero .lead { margin: 18px 0 26px; font-size: 18px; }
.hero .cta { text-align: left; }
.phone {
  width: 100%; max-width: 270px; margin: 0 auto;
  background: var(--white); border: 8px solid var(--navy); border-radius: 36px; overflow: hidden;
  box-shadow: 0 14px 30px rgba(27, 58, 92, .22);
}
.phone img { width: 100%; }

/* 共感 */
.worry { background: var(--white); }
.worry ul { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; display: grid; gap: 14px; }
.worry li {
  background: var(--bg); border-radius: 16px; padding: 18px 20px 18px 56px; position: relative; font-weight: 700;
}
.worry li::before {
  content: "✓"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--yellow);
  display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.worry .close { text-align: center; margin-top: 28px; font-weight: 800; font-size: 18px; }

/* 記録のしかた */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li {
  background: var(--white); border-radius: 18px; padding: 20px 20px 20px 78px; position: relative; counter-increment: s;
}
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px;
  width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--navy);
  border: 3px solid var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.steps b { display: block; font-size: 19px; }
.steps li > span { display: block; color: var(--muted); font-size: 15px; }
.howto { display: grid; gap: 28px; align-items: center; }
.howto-text .small { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* できること */
.feature { background: var(--white); }
.cards { display: grid; gap: 16px; }
.card { background: var(--bg); border-radius: 20px; padding: 24px 22px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 16px; }
.shot { display: grid; gap: 28px; align-items: center; margin-bottom: 28px; }

/* 始め方 */
.start .steps li { padding-bottom: 18px; }
.warn {
  margin-top: 20px; background: var(--white); border-left: 8px solid var(--yellow);
  border-radius: 12px; padding: 16px 18px; font-size: 15px;
}

/* よくある質問 */
.faq { background: var(--white); }
.faq details { background: var(--bg); border-radius: 16px; margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 800; position: relative; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px;
}
.faq details[open] summary::after { content: "－"; }
.faq summary:focus-visible { outline: 4px solid var(--navy); outline-offset: -4px; border-radius: 16px; }
.faq details p { padding: 0 20px 20px; font-size: 16px; }
.faq .wrap { max-width: 720px; }

/* 最後 */
.final { text-align: center; }
.final h2 { margin-bottom: 22px; font-size: 30px; }

/* ページの下 */
footer { background: var(--navy); color: var(--white); padding: 36px 0 44px; font-size: 14px; line-height: 2; text-align: center; }
footer a { color: var(--yellow); }
footer b { font-size: 16px; }

@media (min-width: 800px) {
  section { padding: 80px 0; }
  .hero .wrap { grid-template-columns: 1.2fr .8fr; gap: 56px; }
  .hero h1 { font-size: 44px; }
  .howto, .shot { grid-template-columns: 1fr 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  h2 { font-size: 32px; }
}
@media (max-width: 359px) { .nb { display: inline; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
