/* =========================================================
   クイズファミリー — Landing Page styles
   Warm / trustworthy / accessible
   ========================================================= */

:root {
  /* type */
  --font-body: "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-head: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  --fs-base: 17px;

  /* warm neutrals */
  --bg:        #faf7f1;
  --bg-soft:   #f3eee4;
  --surface:   #ffffff;
  --ink:       #34302a;
  --ink-soft:  #6c655b;
  --ink-faint: #9a9388;
  --line:      #e8e1d4;
  --line-soft: #f0ebe1;

  /* brand — sage (default) */
  --primary:      oklch(0.60 0.072 152);
  --primary-deep: oklch(0.46 0.066 152);
  --primary-soft: oklch(0.95 0.028 152);
  --primary-tint: oklch(0.90 0.04 152);
  --accent:       oklch(0.70 0.118 38);
  --accent-deep:  oklch(0.56 0.115 38);
  --accent-soft:  oklch(0.95 0.03 50);

  --radius:   18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(52,48,42,.05), 0 2px 8px rgba(52,48,42,.04);
  --shadow:    0 8px 28px -12px rgba(52,48,42,.18), 0 2px 6px rgba(52,48,42,.05);
  --shadow-lg: 0 30px 60px -28px rgba(52,48,42,.28);

  --maxw: 1160px;
}

[data-theme="coral"] {
  --primary:      oklch(0.68 0.122 40);
  --primary-deep: oklch(0.54 0.118 40);
  --primary-soft: oklch(0.96 0.028 50);
  --primary-tint: oklch(0.91 0.045 45);
  --accent:       oklch(0.62 0.075 168);
  --accent-deep:  oklch(0.48 0.07 168);
  --accent-soft:  oklch(0.95 0.03 168);
}

[data-theme="blue"] {
  --primary:      oklch(0.58 0.082 245);
  --primary-deep: oklch(0.45 0.078 245);
  --primary-soft: oklch(0.95 0.028 245);
  --primary-tint: oklch(0.90 0.042 245);
  --accent:       oklch(0.72 0.115 62);
  --accent-deep:  oklch(0.58 0.112 62);
  --accent-soft:  oklch(0.96 0.03 70);
}

[data-headfont="standard"] { --font-head: "Zen Kaku Gothic New", sans-serif; }
[data-textsize="large"]    { --fs-base: 19.5px; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: .01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.material-symbols-rounded { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* lang visibility */
[data-lang="ja"] .en { display: none; }
[data-lang="en"] .ja { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
  min-height: 52px; line-height: 1.2; white-space: nowrap;
}
.btn .material-symbols-rounded { font-size: 22px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px color-mix(in oklch, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in oklch, var(--primary) 75%, transparent); }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-google:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-tint); }
.btn-google .g { width: 22px; height: 22px; flex: none; }
.btn-ghost { background: transparent; color: var(--primary-deep); border-color: color-mix(in oklch, var(--primary) 35%, var(--line)); }
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-2px); }
.btn-lg { font-size: 1.12rem; padding: 18px 32px; min-height: 60px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
header.site.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; color: var(--ink); }
.brand .logo-mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 14px -6px color-mix(in oklch, var(--primary) 70%, transparent);
}
.brand .logo-mark .material-symbols-rounded { font-size: 26px; font-variation-settings: 'FILL' 1; }
.brand img { height: 38px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; gap: 2px; }
.lang-switch button {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink-soft);
  background: transparent; border: 0; border-radius: 999px; padding: 7px 15px; cursor: pointer; transition: all .18s;
}
.lang-switch button.active { background: #fff; color: var(--primary-deep); box-shadow: var(--shadow-sm); }
.nav-login { font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: 10px 18px; border-radius: 999px; transition: background .18s; }
.nav-login:hover { background: var(--bg-soft); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 36px; padding-bottom: 36px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 85% 5%, var(--primary-soft), transparent 60%),
    radial-gradient(50% 60% at 5% 90%, var(--accent-soft), transparent 55%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700;
  font-size: .92rem; color: var(--primary-deep); background: var(--primary-soft);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .material-symbols-rounded { font-size: 19px; font-variation-settings: 'FILL' 1; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.28; letter-spacing: .005em; }
.hero h1 .hl { color: var(--primary-deep); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 4px; height: 12px; z-index: -1;
  background: color-mix(in oklch, var(--accent) 40%, transparent); border-radius: 8px;
}
.hero .lead { font-size: 1.14rem; color: var(--ink-soft); margin-top: 24px; max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--ink-soft); font-size: .96rem; }
.hero-note .material-symbols-rounded { font-size: 20px; color: var(--primary); font-variation-settings: 'FILL' 1; }

/* hero visual */
.hero-visual { position: relative; }
.device {
  position: relative; margin-inline: auto; width: min(330px, 80%);
  background: #fff; border-radius: 40px; padding: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.device::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 96px; height: 7px; border-radius: 999px; background: var(--bg-soft); }
.device .screen { border-radius: 28px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 9/17; }
.device .screen img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 14px 16px; display: flex; align-items: center; gap: 12px; max-width: 230px;
}
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .ic .material-symbols-rounded { font-size: 23px; font-variation-settings: 'FILL' 1; }
.float-card b { font-family: var(--font-head); font-size: .98rem; display: block; }
.float-card span { font-size: .82rem; color: var(--ink-soft); }
.fc-1 { top: 8%; left: -6%; }
.fc-2 { bottom: 10%; right: -8%; }
@media (max-width: 980px) { .fc-1, .fc-2 { display: none; } }

/* ---------- trust strip ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-block: 26px; }
.trust .item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.trust .item .material-symbols-rounded { font-size: 28px; color: var(--primary); font-variation-settings: 'FILL' 1; }
.trust .item b { font-family: var(--font-head); font-size: 1rem; }
.trust .item span { display: block; font-size: .8rem; color: var(--ink-soft); font-weight: 400; }
@media (max-width: 760px) { .trust .wrap { grid-template-columns: 1fr 1fr; gap: 18px 8px; } }

/* ---------- section scaffolding ---------- */
section { padding-block: 92px; }
.sec-head { text-align: center; max-width: 38em; margin: 0 auto 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700;
  font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.kicker::after  { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.sec-head p { color: var(--ink-soft); margin-top: 16px; font-size: 1.08rem; }

/* ---------- problem band ---------- */
.problem { background: var(--bg-soft); }
.problem .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.problem h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.problem .ja-emph { color: var(--accent-deep); }
.problem p { color: var(--ink-soft); margin-top: 20px; font-size: 1.08rem; }
.problem .pains { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.problem .pains li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.problem .pains .material-symbols-rounded { color: var(--accent-deep); font-size: 22px; flex: none; margin-top: 3px; }
.solve-card { background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.solve-card .material-symbols-rounded.big { font-size: 44px; font-variation-settings: 'FILL' 1; }
.solve-card h3 { color: #fff; font-size: 1.5rem; margin: 14px 0 14px; }
.solve-card p { color: rgba(255,255,255,.92); margin: 0; }
.solve-card .underline { display: inline-block; border-bottom: 3px solid color-mix(in oklch, var(--accent) 70%, white); padding-bottom: 1px; }

/* ---------- feature rows ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 0; }
.feat + .feat { margin-top: 96px; }
.feat.reverse .feat-media { order: 2; }
.feat-badge {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700;
  font-size: .92rem; color: var(--primary-deep); background: var(--primary-soft); padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
.feat-badge .material-symbols-rounded { font-size: 20px; font-variation-settings: 'FILL' 1; }
.feat h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.feat > div > p { color: var(--ink-soft); margin-top: 18px; font-size: 1.1rem; }
.feat ul.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feat ul.checks li { display: flex; gap: 11px; align-items: flex-start; }
.feat ul.checks .material-symbols-rounded { color: var(--primary); font-size: 23px; flex: none; font-variation-settings: 'FILL' 1; }
.feat-media { position: relative; }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px;
}
.media-frame .ph, .media-frame img { border-radius: var(--radius); width: 100%; display: block; }
.media-tag {
  position: absolute; bottom: 18px; left: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 8px;
}
.media-tag .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--primary); }

/* placeholder image */
.ph {
  aspect-ratio: 4/3; display: grid; place-items: center; position: relative;
  background:
    repeating-linear-gradient(135deg, var(--bg-soft) 0 14px, var(--surface) 14px 28px);
  color: var(--ink-faint); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82rem; letter-spacing: .02em;
}
.ph span { background: rgba(255,255,255,.82); padding: 6px 12px; border-radius: 8px; }

/* ---------- how it works ---------- */
.how { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px;
  position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step .num {
  counter-increment: step; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft);
  color: var(--primary-deep); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 18px;
}
.step .num::before { content: counter(step); }
.step .thumb { border-radius: 14px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line-soft); }
.step .thumb .ph { aspect-ratio: 16/10; }
.step h4 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; line-height: 1.7; }
.step::after { content: ""; position: absolute; top: 48px; right: -16px; width: 22px; height: 22px; color: var(--ink-faint); display: none; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- features grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-tint); }
.fcard .ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--primary-soft); color: var(--primary-deep);
}
.fcard:nth-child(3n+2) .ic { background: var(--accent-soft); color: var(--accent-deep); }
.fcard .ic .material-symbols-rounded { font-size: 30px; font-variation-settings: 'FILL' 1; }
.fcard h4 { font-size: 1.22rem; margin-bottom: 10px; }
.fcard p { color: var(--ink-soft); font-size: .98rem; line-height: 1.75; }

/* ---------- dementia / knowledge ---------- */
.know { background: var(--primary-soft); }
.know .wrap { max-width: 920px; }
.know .sec-head p { color: var(--ink-soft); }
.acc { display: grid; gap: 14px; }
.acc details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s ease;
}
.acc details[open] { box-shadow: var(--shadow); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 22px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .tag {
  width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-deep);
  display: grid; place-items: center; flex: none;
}
.acc summary .tag .material-symbols-rounded { font-size: 24px; font-variation-settings: 'FILL' 1; }
.acc summary .chev { margin-left: auto; transition: transform .25s ease; color: var(--ink-faint); }
.acc details[open] summary .chev { transform: rotate(180deg); }
.acc .body { padding: 0 26px 24px 86px; color: var(--ink-soft); line-height: 1.85; }
.acc .body p { font-size: 1rem; }
.know .disclaim { text-align: center; margin-top: 26px; color: var(--ink-faint); font-size: .9rem; }
@media (max-width: 600px) { .acc .body { padding-left: 26px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 50% 0%, rgba(255,255,255,.14), transparent 60%); }
.cta-band .wrap { position: relative; z-index: 1; max-width: 760px; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 18px; font-size: 1.12rem; }
.cta-band .btn-google { margin-top: 32px; }
.cta-band .mini { margin-top: 18px; color: rgba(255,255,255,.82); font-size: .94rem; }

/* ---------- contact ---------- */
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact .lead-col h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.contact .lead-col p { color: var(--ink-soft); margin-top: 18px; font-size: 1.06rem; }
.contact .info { margin-top: 28px; display: grid; gap: 14px; }
.contact .info .row { display: flex; align-items: center; gap: 14px; }
.contact .info .row .material-symbols-rounded { color: var(--primary); font-size: 24px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.field label .req { color: var(--accent-deep); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .18s, box-shadow .18s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: #fff; }
.field .err { color: var(--accent-deep); font-size: .85rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--accent-deep); }
.field.invalid .err { display: block; }
.form-card .btn-primary { width: 100%; justify-content: center; }
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success.show { display: block; }
.form-success .material-symbols-rounded { font-size: 54px; color: var(--primary); font-variation-settings: 'FILL' 1; }
.form-success h3 { margin: 12px 0 8px; font-size: 1.3rem; }
.form-success p { color: var(--ink-soft); }

/* ---------- footer ---------- */
footer.site { background: var(--ink); color: #d9d3c9; padding-block: 56px 32px; }
footer.site .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
footer.site .brand { color: #fff; }
footer.site .brand .logo-mark { background: var(--primary); }
footer.site .f-desc { color: #a8a195; font-size: .94rem; margin-top: 14px; max-width: 30em; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer.site nav a { color: #cfc8bd; font-size: .94rem; transition: color .18s; }
footer.site nav a:hover { color: #fff; }
footer.site .copy { padding-top: 24px; color: #8c857a; font-size: .86rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer.site .copy a { color: #b3aca0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .problem .wrap, .feat, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .feat.reverse .feat-media { order: 0; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  section { padding-block: 70px; }
  .hero-visual { max-width: 360px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .fgrid { grid-template-columns: 1fr; }
  .nav-login { display: none; }
  .hero h1 .hl { white-space: normal; }
  .solve-card, .form-card { padding: 28px; }
}
