@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --blob-blue:        #1F8CD2;
  --blob-teal:        #00BCC3;
  --blob-green:       #00B454;
  --blob-yellow:      #FFD703;
  --blob-amber:       #FEB902;
  --blob-orange:      #FF9B00;
  --blob-tangerine:   #FB6B04;
  --blob-red:         #FF1001;
  --blob-crimson:     #E61440;

  --olive:            #969678;
  --olive-dark:       #5C5C49;
  --warm-brown:       #4B3232;
  --warm-brown-soft:  #2A2422;
  --warm-cream:       #E8DDD8;
  --warm-cream-soft:  #A8A48C;
  --off-white:        #F0EEEE;
  --white:            #FFFFFF;

  --bg:               var(--white);
  --fg1:              var(--warm-brown);
  --fg2:              var(--olive);
  --separator:        rgba(60, 60, 67, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display',
               'Inter', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;

  --t-title3:   20px / 1.25 var(--font-sans);
  --t-headline: 17px / 1.30 var(--font-sans);
  --t-body:     17px / 1.35 var(--font-sans);
  --t-subhead:  15px / 1.38 var(--font-sans);
  --t-caption:  12px / 1.40 var(--font-sans);
  --t-caption2: 11px / 1.40 var(--font-sans);

  --r-2xl:  14px;
  --r-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        var(--warm-brown-soft);
    --fg1:       var(--warm-cream);
    --fg2:       var(--warm-cream-soft);
    --separator: rgba(255,255,255,0.12);
  }
}

html, body { margin: 0; padding: 0; }
html[lang="en"] {
  --t-title3:   23px / 1.4 var(--font-sans);
  --t-headline: 20px / 1.4 var(--font-sans);
  --t-body:     20px / 1.4 var(--font-sans);
  --t-subhead:  18px / 1.4 var(--font-sans);
  --t-caption:  14px / 1.4 var(--font-sans);
  --t-caption2: 13px / 1.4 var(--font-sans);
}
html[lang="en"] .section__title { font-size: 52px; line-height: 1.4; }
html[lang="en"] .pain-item { font-size: 20px; line-height: 1.4; }
html[lang="en"] .hero h1 { font-size: 75px; }
html[lang="en"] .hero__sub { line-height: 1.4; }
html[lang="en"] .features--3x2 .feature p { line-height: 1.4; }
html[lang="en"] .price-card.featured::before { content: 'Recommended'; }
body {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }

/* ---------- language banner ---------- */
.lang-banner {
  background: var(--warm-brown);
  padding: 10px 24px;
  display: none;
  align-items: center; justify-content: center; gap: 10px;
  font: var(--t-subhead); color: var(--warm-cream);
}
.lang-banner--visible { display: flex; }
.lang-banner a { color: #fff; font-weight: 700; text-decoration: underline; }
.lang-banner a:hover { opacity: .85; }
.lang-banner__close {
  background: none; border: none; color: var(--warm-cream-soft);
  cursor: pointer; font-size: 16px; padding: 2px 6px; margin-left: 4px;
}
.lang-banner__close:hover { color: #fff; }

/* ---------- language switcher ---------- */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--separator);
  border-radius: var(--r-pill);
  padding: 7px 11px;
  font: var(--t-subhead); font-weight: 600; color: var(--fg1);
  cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--olive); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg);
  border: 1px solid var(--separator);
  border-radius: var(--r-2xl);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  min-width: 140px; overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 100;
}
.lang-switcher.is-open .lang-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.lang-option {
  display: block; padding: 10px 16px;
  font: var(--t-subhead); color: var(--fg1); text-decoration: none;
}
.lang-option:hover { background: var(--off-white); }
.lang-option--active { font-weight: 700; color: var(--blob-crimson); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  z-index: 50;
  border-bottom: 1px solid var(--separator);
}
.nav__inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav__logo { height: 60px; }
.nav__links { display: flex; gap: 24px; flex: 1; }
.nav__links a { color: var(--fg1); text-decoration: none; font: var(--t-subhead); font-weight: 500; }
.nav__links a:hover { color: var(--blob-crimson); }
.nav__cta {
  background: var(--blob-crimson); color: #fff;
  border: 0; border-radius: var(--r-pill);
  padding: 10px 18px; font: var(--t-subhead); font-weight: 600;
  cursor: pointer;
}
.nav__cta:hover { filter: brightness(.95); }

/* ---------- sections ---------- */
section { padding: 96px 24px; }
.legal-section { padding: 10px 0; }
.container { max-width: 1100px; margin: 0 auto; }

/* ---------- hero ---------- */
.hero {
  padding: 80px 24px 64px;
  display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 24px;
  align-items: center; max-width: 1100px; margin: 0 auto;
}
.hero h1 {
  font-size: 64px; line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 20px;
  color: var(--warm-brown);
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--blob-crimson); }
.hero__sub {
  font: var(--t-title3); color: var(--olive);
  margin: 0 0 32px; max-width: 480px;
  line-height: 160%;
  text-wrap: pretty;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__cta {
  background: var(--blob-crimson); color: #fff;
  border: 0; border-radius: var(--r-pill);
  padding: 14px 28px; font: var(--t-headline); font-weight: 700;
  cursor: pointer;
}
.hero__cta:hover { filter: brightness(.95); }
.hero__cta:active { transform: scale(0.98); }
.hero__cta:disabled,
.nav__cta:disabled {
  background: var(--olive); opacity: 0.5;
  cursor: not-allowed; filter: none; transform: none;
}
.coming-soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  vertical-align: middle;
}
.hero__cta--ghost {
  background: transparent; color: var(--blob-crimson);
}
.hero__phone {
  display: flex; justify-content: center;
}
.hero__phone img {
  width: 300px; max-width: 100%;
}

/* ---------- subtitle row ---------- */
.subtitle-row {
  background: var(--off-white);
  padding: 28px 24px;
  text-align: center;
}
.subtitle-row__jp {
  font: var(--t-headline); font-weight: 700;
  color: var(--warm-brown);
}
.subtitle-row__en {
  font: var(--t-subhead); color: var(--olive); margin-top: 4px;
  font-style: italic;
}

/* ---------- pain section ---------- */
.pain-section { background: var(--off-white); }
.pain-list {
  list-style: none;
  padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pain-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg);
  border-radius: var(--r-2xl);
  border: 1px solid var(--separator);
  padding: 24px;
  font-size: 17px; font-weight: 600; line-height: 1.5;
  color: var(--warm-brown);
}
.pain-item::before {
  content: '✗';
  color: var(--blob-crimson);
  font-weight: 800; font-size: 18px;
  flex-shrink: 0; margin-top: 1px;
}

/* ---------- 3-layer ---------- */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.layer {
  padding: 32px 28px;
  border-radius: var(--r-2xl);
  background: var(--bg);
  border: 1px solid var(--separator);
}
.layer__num {
  width: 36px; height: 36px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 17px;
  margin-bottom: 16px;
}
.layer:nth-child(1) .layer__num { background: var(--blob-blue); }
.layer:nth-child(2) .layer__num { background: var(--blob-orange); }
.layer:nth-child(3) .layer__num { background: var(--blob-crimson); }
.layer h3 { font: var(--t-title3); font-weight: 700; margin: 0 0 8px; color: var(--warm-brown); }
.layer p { font: var(--t-body); color: var(--olive); margin: 0; }

/* ---------- section headings ---------- */
.section__eyebrow {
  display: inline-block;
  font: var(--t-caption); font-weight: 700; color: #fff;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--blob-crimson);
  padding: 3px 10px; border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.section__title {
  font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.015em;
  margin: 0 0 20px; color: var(--warm-brown);
  text-wrap: balance;
}
.section__sub {
  font: var(--t-title3); color: var(--olive); max-width: 1100px; margin-bottom: 56px;
  text-wrap: pretty;
}

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.features--3x2 { grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.features--3x2 .feature { padding: 32px; }
.features--3x2 .feature h4 { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.features--3x2 .feature p { font: var(--t-body); line-height: 1.7; }
.feature {
  padding: 28px;
  border-radius: var(--r-2xl);
  background: var(--bg);
  border: 1px solid var(--separator);
}
.feature__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  margin-bottom: 16px;
}
.feature h4 { font: var(--t-headline); font-weight: 700; margin: 0 0 6px; color: var(--warm-brown); }
.feature p { font: var(--t-subhead); color: var(--olive); margin: 0; line-height: 1.55; }

/* ---------- pricing ---------- */
.pricing-section { background: var(--off-white); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 880px; margin: 0 auto; }
.pricing--2 { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
.pricing--4 { grid-template-columns: repeat(4, 1fr); max-width: 1080px; gap: 14px; }
.pricing--4 .price-card { padding: 24px 22px; }
.pricing--4 .price-card.featured { padding: 23px 21px; }
.pricing--4 .price-card .price { font-size: 28px; }
.price-card {
  background: var(--bg);
  border-radius: var(--r-2xl);
  border: 1px solid var(--separator);
  padding: 28px;
}
.price-card.featured {
  border: 2px solid var(--blob-crimson); padding: 27px;
  position: relative;
}
.price-card.featured::before {
  content: 'おすすめ';
  position: absolute; top: -12px; left: 24px;
  background: var(--blob-crimson); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font: var(--t-caption2); font-weight: 700;
}
.price-card h4 { font: var(--t-headline); font-weight: 700; margin: 0 0 4px; color: var(--warm-brown); }
.price-card .sub { font: var(--t-caption); color: var(--olive); margin-bottom: 12px; }
.price-card .price {
  font-size: 32px; font-weight: 800; letter-spacing: -.01em;
  color: var(--warm-brown);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.price-card .price small {
  font-size: 14px; font-weight: 500; color: var(--olive);
  font-family: var(--font-sans); margin-left: 4px;
}
.price-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.price-card li {
  font: var(--t-subhead); color: var(--warm-brown);
  padding: 6px 0; display: flex; gap: 8px; align-items: flex-start;
}
.price-card li::before { content: '✓'; color: var(--blob-green); font-weight: 700; flex: 0 0 16px; }

/* ---------- faq ---------- */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faq-item {
  background: var(--bg);
  border-radius: var(--r-2xl);
  border: 1px solid var(--separator);
  padding: 28px;
}
.faq-item h4 { font: var(--t-headline); font-weight: 700; color: var(--warm-brown); margin: 0 0 6px; }
.faq-item p { font: var(--t-body); color: var(--olive); margin: 0; }
.faq-item--warning {
  background: #FFF8E7;
  border-left: 3px solid var(--blob-orange);
  padding: 16px;
  border-radius: var(--r-2xl);
}
.faq-item--warning h4 { color: #7A4F00; }
.faq-item--warning p { color: #5C3D00; }

/* ---------- cta closer ---------- */
.cta-closer {
  background: var(--warm-brown);
  padding: 80px 24px;
  text-align: center;
}
.cta-closer h2 {
  font-size: clamp(20px, 9vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.015em;
  color: #fff; margin: 0 0 24px;
  white-space: nowrap;
}
.cta-closer p {
  font: var(--t-title3); color: #E8DDD8; margin: 0 0 32px;
}

/* ---------- footer ---------- */
.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--separator);
}
.footer__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer__logo { height: 60px; }
.footer__tagline { font: var(--t-subhead); color: var(--olive); margin: 0; line-height: 1.7; }
.footer__links {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 8px;
}
.footer__links a { color: var(--warm-brown); text-decoration: none; font: var(--t-subhead); }
.footer__links a:hover { color: var(--blob-crimson); }
.footer__links span { color: var(--separator); }
.footer__legal { padding-top: 24px; border-top: 1px solid var(--separator); width: 100%; font: var(--t-caption); color: var(--olive); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  html[lang="en"] .hero h1 { font-size: 48px; }
  html[lang="en"] .section__title { font-size: 36px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero__sub {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0 0 30px;
    line-height: 150%;
  }
  .hero__phone { justify-content: center; }
  .hero__ctas { justify-content: center; }
  .hero h1 { font-size: 44px; }
  .layers, .features, .pricing, .pain-list, .faq-list { grid-template-columns: 1fr; }
  .features--3x2 { grid-template-columns: 1fr; }
  .pricing--4 { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__logo { height: 50px; }
  .lang-btn span, .lang-btn svg:last-child { display: none; }
  .lang-switcher { margin-left: auto; }
  section { padding: 64px 24px; }
  .section__title { font-size: 32px; }
}

@media (max-width: 480px) {
  .pricing--4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  html[lang="en"] .hero h1 { font-size: 40px; }
}
