/* ===== DESIGN TOKENS (Figma variables — W1ZT4wu6HqhrKHUvjuCogF) ===== */
:root {
  --paper:   #fbf7f0;
  --kinari:  #f2ead9;
  --sumi:    #2b2b2b;
  --ai:      #2f4e8f;
  --akane:   #c2553d;
  --usuzumi: #d8d2c7;

  --font-mincho: 'Noto Serif JP', serif;
  --font-gothic: 'Noto Sans JP', sans-serif;

  --side-pad: 120px;
  --content-max: 1200px;

  --transition: 0.2s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--sumi);
  font-family: var(--font-gothic);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT HELPERS ===== */
.section__inner {
  max-width: calc(var(--content-max) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* Eyebrow label — Figma: --ai, 13px Medium, 3px tracking */
.section-label {
  font-family: var(--font-gothic);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--ai);
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Section heading — Figma: Noto Serif SemiBold ~36–38px */
.section__heading {
  font-family: var(--font-mincho);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--sumi);
}

.section__sub {
  font-size: 16px;
  color: var(--sumi);
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-gothic);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border-radius: 12px;
  padding: 17px 30px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: opacity var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; }

.btn--primary {
  background: var(--ai);
  color: var(--paper);
  border-color: var(--ai);
}

/* Secondary (hero / 見る) — paper bg, usuzumi border, sumi text */
.btn--ghost {
  background: var(--paper);
  color: var(--sumi);
  border-color: var(--usuzumi);
  font-weight: 500;
  padding: 16px 28px;
}

/* Plan-monthly button — paper bg, sumi border */
.btn--outline {
  background: var(--paper);
  color: var(--sumi);
  border-color: var(--sumi);
  font-size: 15px;
  padding: 15px 0;
  border-radius: 11px;
}

/* Nav CTA — small primary */
.btn--sm {
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
}

.btn--full { width: 100%; }

/* Pre-launch: アプリ未公開のあいだ「…はじめる」CTA を非活性に（クリック不可・淡色） */
.btn--soon {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.btn--soon:hover { opacity: 0.45; }

/* 「もう少しでご利用になれます」案内（CTA 直下） */
.soon-note {
  margin-top: 12px;
  font-family: var(--font-gothic);
  font-size: 14px;
  font-weight: 700;
  color: var(--ai);
  letter-spacing: 0.2px;
}
.soon-note--center { text-align: center; }

/* ===== MARK ICON (Figma 二枚のカード — fills baked into the SVG) ===== */
.mark-icon { display: inline-block; flex-shrink: 0; }
.mark--sm  { width: 27px; height: 28px; }
.mark--md  { width: 50px; height: 52px; }
.mark--lg  { width: 60px; height: 62px; }

/* ===== PRICE NOTE ===== */
.price-note {
  font-size: 13px;
  color: var(--sumi);
  margin-top: 20px;
  letter-spacing: 0.2px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--usuzumi);
  height: 88px;
}

.nav__inner {
  max-width: calc(var(--content-max) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.nav__mark { width: 24px; height: 25px; }

.nav__wordmark {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.nav__wordmark-ja {
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 500;
  color: var(--sumi);
}

.nav__wordmark-en {
  font-family: var(--font-gothic);
  font-size: 13px;
  font-weight: 500;
  color: var(--ai);
  letter-spacing: 1.5px;
}

.nav__links {
  display: flex;
  gap: 34px;
  flex: 1;
  justify-content: flex-end;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--sumi);
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--ai); }

/* ===== HERO ===== */
.hero {
  min-height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px var(--side-pad);
  max-width: calc(var(--content-max) + var(--side-pad) * 2);
  margin: 0 auto;
}

.hero__copy { display: flex; flex-direction: column; }

.kicker {
  font-size: 15px;
  font-weight: 500;
  color: var(--ai);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.hero__heading {
  font-family: var(--font-mincho);
  font-size: clamp(46px, 6vw, 74px);
  font-weight: 600;
  line-height: 1.24;
  margin-bottom: 28px;
  color: var(--sumi);
}

.hero__desc {
  font-size: 17px;
  color: var(--sumi);
  line-height: 1.96;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ===== HERO PHONE MOCKUPS (Figma 58:42) ===== */
.hero__visual {
  position: relative;
  width: 540px;
  height: 700px;
  justify-self: center;
  margin: 0 auto;
}

/* Device frame — Figma: sumi bezel, 7px pad, no rotation */
.phone {
  position: absolute;
  background: var(--sumi);
  padding: 7px;
  overflow: hidden;
}

.phone--back {
  width: 258px;
  height: 542px;
  left: 0;
  top: 104px;
  z-index: 1;
  border-radius: 46px;
  box-shadow: 0 26px 56px rgba(43, 38, 26, 0.22);
}

.phone--front {
  width: 314px;
  height: 663px;
  left: 224px;
  top: 22px;
  z-index: 2;
  border-radius: 46px;
  box-shadow: 0 26px 56px rgba(43, 38, 26, 0.22);
}

.phone--feature {
  position: relative;
  width: 300px;
  height: 633px;
  border-radius: 44px;
  box-shadow: 0 22px 48px rgba(43, 38, 26, 0.2);
}

/* Screen image — inner radius = outer − 7px bezel; clips baked-in bezel corners */
.phone__screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone--back .phone__screen-img,
.phone--front .phone__screen-img {
  border-radius: 39px;
}

.phone--feature .phone__screen-img {
  border-radius: 37px;
}

/* ===== CONCEPT ===== */
.concept {
  background: var(--kinari);
  padding: 104px var(--side-pad);
  text-align: center;
}

.concept__inner { max-width: 760px; margin: 0 auto; }

.concept__heading {
  font-family: var(--font-mincho);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 500;
  line-height: 2.0;
  margin-bottom: 24px;
  color: var(--sumi);
}

.concept__desc {
  font-size: 16px;
  color: var(--sumi);
  line-height: 2.0;
}

/* ===== FEATURES ===== */
.features { padding: 112px 0; }

.features .section__inner {
  text-align: center;
  margin-bottom: 80px;
}
.features .section__sub { margin: 0 auto; }

/* Feature row */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: calc(var(--content-max) + var(--side-pad) * 2);
  margin: 0 auto 100px;
  padding: 0 var(--side-pad);
}

/* Feature 02 (モットー): copy LEFT / phone RIGHT — Figma 62:42 (natural source order) */

.feature__phone { display: flex; justify-content: center; }

.feature__num {
  font-size: 14px;
  font-weight: 500;
  color: var(--ai);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.feature__heading {
  font-family: var(--font-mincho);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--sumi);
}

.feature__desc {
  font-size: 16px;
  color: var(--sumi);
  line-height: 1.94;
  margin-bottom: 24px;
  max-width: 440px;
}

.feature__bullets { display: flex; flex-direction: column; gap: 13px; }

.feature__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--sumi);
}

.feature__bullets li::before {
  content: '✓';
  color: var(--ai);
  font-weight: 700;
  flex-shrink: 0;
}

/* Feature mini cards — Figma 64:42: kinari bg, no border, radius 18 */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

.feature-card {
  background: var(--kinari);
  border-radius: 18px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.feature-card__title {
  font-family: var(--font-mincho);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sumi);
}

.feature-card__desc {
  font-size: 14px;
  color: var(--sumi);
  line-height: 1.84;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--kinari);
  padding: 112px 0;
}

.how-it-works .section__inner {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
  text-align: left;
}

.step { display: flex; flex-direction: column; gap: 12px; }

.step__num {
  font-family: var(--font-mincho);
  font-size: 52px;
  font-weight: 500;
  color: var(--ai);
  line-height: 1;
}

.step__title {
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sumi);
}

.step__desc {
  font-size: 15px;
  color: var(--sumi);
  line-height: 1.88;
}

/* ===== PRICING ===== */
.pricing { padding: 112px 0; background: var(--paper); }

.pricing .section__inner { text-align: center; }

/* Figma 74:62 Plans: flex, vertically centered, natural card heights */
.plans {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 56px auto;
  text-align: left;
}

.plan {
  width: 348px;
  border: 1.5px solid var(--usuzumi);
  border-radius: 18px;
  padding: 38px 34px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan--featured {
  background: var(--kinari);
  border: 2px solid var(--ai);
  box-shadow: 0 18px 40px rgba(46, 77, 143, 0.18);
  position: relative;
}

.plan__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--ai);
  color: var(--paper);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
  letter-spacing: 0.5px;
}

.plan__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ai);
  letter-spacing: 0.5px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan__amount {
  font-family: var(--font-mincho);
  font-size: 46px;
  font-weight: 600;
  color: var(--sumi);
}

.plan__unit {
  font-size: 15px;
  color: var(--sumi);
}

.plan__saving {
  font-size: 13px;
  color: var(--akane);
  font-weight: 500;
}

.plan__couple {
  font-size: 13px;
  color: var(--sumi);
}

.plan__divider {
  border: none;
  height: 1px;
  background: var(--usuzumi);
  width: 100%;
}

.plan--featured .plan__divider { background: var(--ai); }

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--sumi);
}

.plan__features li::before {
  content: '✓';
  color: var(--ai);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.plan .btn--full { border-radius: 11px; }
.plan .btn--primary { padding: 16px 0; }

.pricing__footnote {
  font-size: 13px;
  color: var(--sumi);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CLOSING CTA (Figma 76:57 — --ai bg, paper text) ===== */
.closing {
  background: var(--ai);
  padding: 124px var(--side-pad);
}

.closing__inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.closing__heading {
  font-family: var(--font-mincho);
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 28px;
  color: var(--paper);
  white-space: nowrap;
}

.closing__desc {
  font-size: 17px;
  color: var(--paper);
  line-height: 1.8;
  margin-bottom: 28px;
}

.closing__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.closing .btn--primary {
  background: var(--paper);
  color: var(--ai);
  border-color: var(--paper);
}

.closing .btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

.closing .price-note { color: var(--paper); margin-top: 20px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--usuzumi);
  padding: 72px var(--side-pad) 48px;
  max-width: calc(var(--content-max) + var(--side-pad) * 2);
  margin: 0 auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 36px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 200px;
}

.footer__tagline {
  font-family: var(--font-mincho);
  font-size: 18px;
  font-weight: 500;
  color: var(--sumi);
}

.footer__desc {
  font-size: 13px;
  color: var(--sumi);
}

.footer__links {
  display: flex;
  gap: 72px;
  justify-content: flex-end;
}

.footer__col { display: flex; flex-direction: column; gap: 14px; }

.footer__col-heading {
  font-size: 13px;
  font-weight: 500;
  color: var(--ai);
  letter-spacing: 1px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 14px; }

.footer__col a {
  font-size: 14px;
  color: var(--sumi);
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--ai); }

.footer__divider {
  border: none;
  height: 1px;
  background: var(--usuzumi);
  margin-bottom: 36px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--sumi);
}

.footer__bottom span:last-child { font-family: var(--font-mincho); font-weight: 500; }

/* ===== LEGAL / STATIC PAGES ===== */
.legal {
  padding: 96px var(--side-pad) 104px;
}

.legal__inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal__title {
  font-family: var(--font-mincho);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--sumi);
  margin-top: 14px;
}

.legal__date {
  font-size: 13px;
  color: var(--sumi);
  opacity: 0.6;
  margin-top: 14px;
  margin-bottom: 48px;
}

/* 特定商取引法 — definition table */
.legal-table {
  border-top: 1px solid var(--usuzumi);
}

.legal-table__row {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--usuzumi);
}

.legal-table__key {
  flex: 0 0 220px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sumi);
  line-height: 1.8;
}

.legal-table__val {
  flex: 1;
  font-size: 14px;
  color: var(--sumi);
  line-height: 1.8;
}

/* 利用規約 / プライバシー — numbered clauses */
.legal-clauses {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal-clause__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--sumi);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-clause__body {
  font-size: 15px;
  color: var(--sumi);
  line-height: 1.9;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  :root {
    --side-pad: 24px;
  }

  /* Nav */
  .nav { height: 66px; }
  .nav__links { display: none; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
    padding-bottom: 48px;
    min-height: auto;
    text-align: center;
  }

  .hero__copy { align-items: center; }
  .hero__desc { max-width: 100%; }
  .hero__actions { justify-content: center; width: 100%; }
  .hero__actions .btn { flex: 1; min-width: 0; }
  .price-note { text-align: center; }

  /* Figma M-Hero: single centered phone (home screen), bezel 42/35 */
  .hero__visual {
    width: 264px;
    height: 555px;
    order: 1;
    margin-top: 8px;
  }

  .phone--back { display: none; }

  .phone--front {
    position: relative;
    width: 264px;
    height: 555px;
    left: auto;
    top: auto;
    border-radius: 42px;
  }

  .phone--front .phone__screen-img { border-radius: 35px; }

  /* Concept */
  .concept { padding: 72px var(--side-pad); }

  /* Features */
  .features { padding: 76px 0; }
  .features .section__inner { margin-bottom: 56px; }

  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 64px;
  }

  /* Figma M-Features: phone above copy for every feature */
  .feature--alt .feature__phone { order: -1; }

  .feature-cards { grid-template-columns: 1fr; }

  /* How it works */
  .how-it-works { padding: 76px 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }

  /* Pricing */
  .pricing { padding: 76px 0; }
  .plans {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-width: 100%;
  }
  .plan { width: 100%; }
  /* Figma M-Plans: yearly (おすすめ) shown first */
  .plan--featured { order: -1; }

  /* Closing */
  .closing { padding: 84px var(--side-pad); }
  .closing__heading { white-space: normal; }
  .closing__actions { flex-direction: column; align-items: stretch; }

  /* Footer */
  .footer {
    padding: 56px var(--side-pad) 40px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer__links {
    gap: 40px;
    justify-content: space-between;
  }

  .footer__bottom {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
  }

  /* Legal pages */
  .legal { padding: 48px var(--side-pad) 64px; }
  .legal__date { margin-bottom: 32px; }
  .legal-table__row { flex-direction: column; gap: 4px; padding: 14px 0; }
  .legal-table__key { flex: none; font-size: 12px; opacity: 0.6; }
  .legal-table__val { font-size: 14px; }
  .legal-clause__heading { font-size: 15px; }
  .legal-clause__body { font-size: 14px; }
}

/* ===== LINE-BREAK HELPERS ===== */
/* PC-only break */
.br--pc { display: none; }
@media (min-width: 901px) { .br--pc { display: inline; } }

/* Mobile-only break */
.br--sp { display: inline; }
@media (min-width: 901px) { .br--sp { display: none; } }

/* ===== PC 推奨環境モーダル ===== */
.rm {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rm[hidden] { display: none; }

body.modal-open { overflow: hidden; }

.rm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 43, 0.82);
}

.rm__card {
  position: relative;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* 左右パディングを 40px にして本文領域を 360px に（Figma の説明文幅）。
     「結文は…最適化されています。」が 1 行で収まるようにする。 */
  padding: 48px 40px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--usuzumi);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: rm-pop var(--transition);
}

@keyframes rm-pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rm__card { animation: none; }
}

.rm__close {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 4px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--sumi);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity var(--transition);
}

.rm__close:hover { opacity: 1; }

.rm__label {
  font-family: var(--font-gothic);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--ai);
}

.rm__title {
  font-family: var(--font-mincho);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sumi);
}

.rm__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--sumi);
}

.rm__qr {
  width: 180px;
  height: 180px;
  background: #fff;
  border: 1px solid var(--usuzumi);
  border-radius: 8px;
  overflow: hidden;
}

.rm__qr-code {
  display: block;
  width: 100%;
  height: 100%;
}

.rm__caption {
  font-size: 13px;
  color: var(--sumi);
}

.rm__url {
  font-family: var(--font-gothic);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ai);
}
