/* ============================================================
   MannaCast product site (info.cast.mannasys.com)
   Self-contained stylesheet — no external fonts, images, or CDNs.
   Light/dark aware via prefers-color-scheme.
   ============================================================ */

:root {
  /* Light palette (default) */
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-2: #f3efe6;
  --ink: #22303e;
  --text: #3a4552;
  --muted: #6b7480;
  --line: #e2dcce;
  --accent: #8a6d33;        /* warm antique gold */
  --accent-soft: #f0e8d6;
  --primary: #2c476b;       /* deep calm blue */
  --primary-ink: #fdfcf9;
  --primary-hover: #1f3552;
  --badge-bg: #eef2f7;
  --shadow: 0 1px 2px rgba(34, 48, 62, 0.06), 0 8px 24px rgba(34, 48, 62, 0.07);
  --mock-bar: #e8e3d7;
  --mock-canvas-a: #2c476b;
  --mock-canvas-b: #16283f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131820;
    --surface: #1b222c;
    --surface-2: #202935;
    --ink: #e8ebef;
    --text: #c4ccd5;
    --muted: #8d97a3;
    --line: #2e3947;
    --accent: #c8a862;
    --accent-soft: #2e2a1d;
    --primary: #4b6c96;
    --primary-ink: #f4f7fb;
    --primary-hover: #5d7fab;
    --badge-bg: #23303f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --mock-bar: #242e3a;
    --mock-canvas-a: #35516f;
    --mock-canvas-b: #101c2b;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN",
    "Yu Mincho", serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

a { color: var(--primary); }

@media (prefers-color-scheme: dark) {
  a { color: #9db9d9; }
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-mark::first-letter { color: var(--accent); }

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text);
}

.site-nav a:hover { color: var(--ink); }

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.88rem;
  background: var(--badge-bg);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink) !important;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink) !important;
  background: var(--surface);
}

.btn-ghost:hover { border-color: var(--accent); }

.btn-small { padding: 0.45rem 1.05rem; font-size: 0.92rem; }

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

/* 🖼 スクリーンショットが用意できるまでは1カラム。
   2カラムのまま画像だけ外すと右半分が空いて崩れて見える。
   実画像を入れるときは grid-template-columns を戻すこと。 */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  justify-items: center;
  text-align: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.hero .wrap > div { max-width: 46rem; }

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  margin-bottom: 1.1rem;
  background: var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin: 0 0 1rem;
}

.hero p.lede {
  font-size: 1.15rem;
  margin: 0 0 1.8rem;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Screenshot placeholder (pure CSS) ---------- */

.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--mock-bar);
}

.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.55;
}

.shot-canvas {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background:
    radial-gradient(ellipse at 30% 20%, var(--mock-canvas-a), var(--mock-canvas-b));
  color: #e7ecf3;
}

.shot-canvas .shot-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.shot-canvas .shot-verse {
  display: block;
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  opacity: 0.95;
}

.shot-small .shot-canvas { aspect-ratio: 16 / 10; }

/* ---------- Sections ---------- */

section { padding: 4rem 0; }

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 40em;
  margin: 0 auto 2.5rem;
}

.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.2rem;
}

.alt .feature { background: var(--surface-2); }

.feature .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.feature h3 {
  font-size: 1.08rem;
  margin: 0 0 0.4rem;
  font-family: inherit; /* feature titles read better in the sans stack */
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.3rem 1.1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  font-family: inherit;
  font-weight: 700;
}

.step p { margin: 0; font-size: 0.93rem; }

/* ---------- Pricing ---------- */


/* 料金プラン2枚(サブスク / 買い切り)。狭い画面では自動で縦積みになる。 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  max-width: 44rem;
  margin: 0 auto 1.6rem;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.plan h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.plan .price {
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.plan .price .per {
  font-size: 0.95rem;
  color: var(--muted);
  font-family: inherit;
}

.plan .plan-note { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--muted); }

/* ファミリー価格の案内。プランと同格に見せず、補足として一段落とす。 */
.family-note {
  max-width: 44rem;
  margin: 0 auto 1.6rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.family-note strong { color: var(--ink); }

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

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.8rem;
}

.alt .faq-list details { background: var(--surface-2); }

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style-position: outside;
}

.faq-list details[open] summary { margin-bottom: 0.5rem; }

.faq-list details p { margin: 0.3rem 0 0.2rem; font-size: 0.96rem; }

/* ---------- Closing CTA ---------- */

.cta-final { text-align: center; }

.cta-final .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2.2rem 0 2.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted); }

.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 56rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 36rem) {
  body { font-size: 1rem; }
  section { padding: 3rem 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-nav { gap: 0.8rem; }
  .site-nav .nav-section { display: none; } /* keep header compact on phones */
}
