/* おなかノート 紹介サイト。色はアプリ（src/theme.js）とそろえている */
:root {
  --bg: #fff8f0;
  --page: #f6ede3;
  --card: #ffffff;
  --ink: #4a3b32;
  --sub: #7a6a5f;
  --line: #f3e3d3;

  --accent: #e86a5e;
  --accent-shadow: #c4544a;
  --fat: #f08a5d;
  --fat-light: #ffe6d8;
  --fat-ink: #b4532a;
  --fib-light: #ddf3e6;
  --fib-ink: #2f7a55;
  --med-light: #ece8fb;
  --med-ink: #5a4aa8;
  --visit-light: #fce6ee;
  --visit-ink: #a8436a;
  --body-light: #e1f1fa;
  --body-ink: #2d6f96;
  --mascot: #ffb89c;
  --mascot-bg: #ffe9dc;

  --radius: 24px;
  --wrap: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Zen Maru Gothic', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--fat-ink);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.4;
  font-weight: 900;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.wrap-narrow {
  max-width: 760px;
}

/* ---- マスコット（アプリと同じく図形だけで描く） ---- */
.mascot {
  --s: 1;
  position: relative;
  display: inline-block;
  flex: none;
  width: calc(62px * var(--s));
  height: calc(58px * var(--s));
  border-radius: 50% 50% 46% 46%;
  background: var(--mascot);
  box-shadow: inset 0 calc(-6px * var(--s)) 0 rgba(180, 83, 42, 0.12);
}
.mascot i {
  position: absolute;
  top: calc(21px * var(--s));
  width: calc(7px * var(--s));
  height: calc(9px * var(--s));
  border-radius: 50%;
  background: var(--ink);
}
.mascot i:first-child {
  left: calc(17px * var(--s));
}
.mascot i:nth-child(2) {
  right: calc(17px * var(--s));
}
.mascot b {
  position: absolute;
  left: calc(24px * var(--s));
  top: calc(32px * var(--s));
  width: calc(14px * var(--s));
  height: calc(8px * var(--s));
  border: calc(3px * var(--s)) solid var(--ink);
  border-top: none;
  border-radius: 0 0 calc(12px * var(--s)) calc(12px * var(--s));
}
.mascot::before,
.mascot::after {
  content: '';
  position: absolute;
  top: calc(32px * var(--s));
  width: calc(10px * var(--s));
  height: calc(6px * var(--s));
  border-radius: 50%;
  background: #ff8c8c;
  opacity: 0.6;
}
.mascot::before {
  left: calc(8px * var(--s));
}
.mascot::after {
  right: calc(8px * var(--s));
}
.mascot-sm {
  --s: 0.55;
}
.mascot-lg {
  --s: 1.4;
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover {
  color: #fff;
  transform: translateY(1px);
  box-shadow: 0 3px 0 var(--accent-shadow);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--accent-shadow);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line);
}
.btn-ghost:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--accent-shadow);
}

/* ---- ヘッダー ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  font-size: 19px;
  text-decoration: none;
}
.head-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.head-nav a {
  color: var(--sub);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.head-nav a:hover {
  color: var(--ink);
}

/* ---- はじめに ---- */
.hero {
  background: linear-gradient(180deg, var(--mascot-bg) 0%, var(--bg) 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--fat-ink);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: 0.02em;
}
/* 言葉の途中で折り返さないよう、ひとまとまりずつ1行にする */
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.lead {
  margin-top: 18px;
  color: var(--sub);
  font-size: 17px;
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-weight: 700;
  font-size: 14px;
}
.hero-points li::before {
  content: '✓';
  color: var(--fib-ink);
  margin-right: 6px;
}

/* ---- スマホの枠に入れた画面写真 ---- */
.phone {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border-radius: 44px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(74, 59, 50, 0.16), 0 0 0 1px var(--line);
}
.phone img {
  width: 100%;
  border-radius: 34px;
}
.hero-phone {
  max-width: 320px;
  transform: rotate(2deg);
}

/* ---- 各セクション ---- */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--page);
}
.section-title {
  font-size: clamp(26px, 4vw, 34px);
  text-align: center;
}
.section-lead {
  margin: 12px auto 0;
  max-width: 36em;
  text-align: center;
  color: var(--sub);
}

/* できること */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}
.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 0 0 1px var(--line);
}
.feature h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}
.feature p {
  color: var(--sub);
  font-size: 15px;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
}
.tone-fat .feature-icon {
  background: var(--fat-light);
  color: var(--fat-ink);
}
.tone-fib .feature-icon {
  background: var(--fib-light);
  color: var(--fib-ink);
}
.tone-med .feature-icon {
  background: var(--med-light);
  color: var(--med-ink);
}
.tone-body .feature-icon {
  background: var(--body-light);
  color: var(--body-ink);
}
.tone-visit .feature-icon {
  background: var(--visit-light);
  color: var(--visit-ink);
}

/* 使い方 */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
}
.step:has(.phone) {
  grid-template-columns: 1fr 240px;
}
.step:has(.phone):nth-child(even) {
  grid-template-columns: 240px 1fr;
}
.step:has(.phone):nth-child(even) .step-text {
  order: 2;
}
.step .phone {
  max-width: 240px;
  padding: 8px;
  border-radius: 36px;
}
.step .phone img {
  border-radius: 28px;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}
.step h3 {
  font-size: 20px;
  margin: 12px 0 8px;
}
.step p + p {
  margin-top: 8px;
}
.note {
  font-size: 14px;
  color: var(--sub);
  background: var(--bg);
  border-radius: 12px;
  padding: 8px 12px;
}

/* プライバシー */
.privacy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.privacy-item {
  background: var(--fib-light);
  border-radius: var(--radius);
  padding: 24px;
}
.privacy-item h3 {
  font-size: 18px;
  color: var(--fib-ink);
  margin-bottom: 6px;
}
.fine {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--sub);
}

/* よくある質問 */
.faq {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: var(--card);
  border-radius: 18px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-weight: 900;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: 'Q';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fat-light);
  color: var(--fat-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.faq summary::after {
  content: '＋';
  margin-left: auto;
  color: var(--sub);
}
.faq details[open] summary::after {
  content: '－';
}
.faq details p {
  padding: 0 0 18px 42px;
  color: var(--sub);
}

/* お問い合わせ */
.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.contact-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 0 0 1px var(--line);
}
.contact-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.sns {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sns li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.sns li:last-child {
  border-bottom: none;
}
.sns-name {
  font-weight: 700;
}
.soon {
  color: var(--sub);
}

/* さいごの呼びかけ */
.cta {
  background: var(--mascot-bg);
  padding: 64px 0;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.cta-text {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
}

/* フッター */
.site-foot {
  padding: 32px 0 40px;
  font-size: 13px;
  color: var(--sub);
}
.site-foot p + p {
  margin-top: 4px;
}
.copy {
  margin-top: 12px !important;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}
.foot-links a {
  color: var(--ink);
  font-weight: 700;
}

/* 利用規約・プライバシーポリシー */
.head-cta {
  margin-left: auto;
}
.doc {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 0 0 1px var(--line);
}
.doc h1 {
  font-size: clamp(24px, 4vw, 30px);
}
.doc-date {
  margin-top: 6px;
  color: var(--sub);
  font-size: 14px;
}
.doc section {
  margin-top: 28px;
}
.doc h2 {
  font-size: 18px;
  margin-bottom: 6px;
}
.doc-back {
  margin-top: 24px;
  text-align: center;
  font-weight: 700;
}

/* ---- 画面の幅に合わせる ---- */
@media (max-width: 860px) {
  .head-nav {
    display: none;
  }
  .brand {
    margin-right: auto;
  }
  .hero {
    padding: 40px 0 56px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-phone {
    max-width: 260px;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
  .doc {
    padding: 22px;
  }
  .features,
  .privacy,
  .contact {
    grid-template-columns: 1fr;
  }
  .step,
  .step:has(.phone),
  .step:has(.phone):nth-child(even) {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .step:has(.phone):nth-child(even) .step-text {
    order: 0;
  }
  .step .phone {
    max-width: 220px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
