/* ==========================================================================
   SOMMA — design system / marketing & account
   ========================================================================== */
:root {
  --bg: #f4f3ee;
  --bg-deep: #eae8e0;
  --surface: #ffffff;
  --surface-2: #efece4;
  --surface-3: #e4e1d6;
  --ink: #1a1b1f;
  --ink-2: #4d4f55;
  --mut: #85878c;
  --line: #dcd9cf;
  --line-strong: #c9c6ba;
  --wine: #26305e;
  --wine-2: #3b477e;
  --wine-soft: #e8eaf1;
  --gold: #9a4a2f;
  --gold-soft: #f4e8e1;
  --sand: #e2d2ab;
  --sand-soft: #f7f1e4;
  --sage: #3f6b55;
  --sage-soft: #e6efe8;
  --ok: #3f6b55;
  --danger: #a8332a;
  --danger-soft: #f8e8e5;
  --shadow-sm: 0 1px 2px rgba(22, 21, 26, .05), 0 4px 14px rgba(22, 21, 26, .04);
  --shadow-md: 0 2px 6px rgba(22, 21, 26, .06), 0 18px 44px rgba(22, 21, 26, .09);
  --shadow-lg: 0 30px 80px rgba(22, 21, 26, .18);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --font-body: "Zen Kaku Gothic New", "IBM Plex Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", system-ui, -apple-system, sans-serif;
  --font-display: "Zen Antique", "IBM Plex Sans", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", ui-serif, serif;
  --font-num: "Zen Kaku Gothic New", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --w: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--wine-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; font-weight: 650; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
/* 日本語は文節の途中で折らない。最後の行に1〜2文字だけ残るのも避ける。 */
h1, h2, h3, h4, p, li, dd, dt, figcaption, .kicker, .lead {
  word-break: auto-phrase;
  line-break: strict;
}
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--wine); color: #fff; }

.container { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand svg { color: var(--wine); flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--font-display); font-weight: 400; letter-spacing: .09em; text-transform: uppercase; }
.brand small { font-family: var(--font-body); font-size: 10px; letter-spacing: .08em; color: var(--mut); font-weight: 600; margin-top: 3px; text-transform: none; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light svg { color: #e2d2ab; }
.brand--light small { color: rgba(255,255,255,.65); }
.kicker { font-family: var(--font-body); font-size: 11px; letter-spacing: .22em; font-weight: 700; color: var(--gold); margin: 0 0 10px; text-transform: uppercase; }
.mut { color: var(--mut); }
.small { font-size: 13px; }

/* ---------- buttons ---------- */
.button {
  --btn-bg: var(--wine); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font-size: 15px; font-weight: 650; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 8px 20px rgba(38,48,94,.18);
}
.button:hover { background: var(--wine-2); color: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 12px 26px rgba(38,48,94,.24); }
.button:active { transform: translateY(0); }
.button svg { flex: none; }
.button--block { width: 100%; }
.button--small { padding: 8px 15px; font-size: 13px; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.button--ghost:hover { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.button--danger { background: var(--danger); box-shadow: none; }
.button--danger:hover { background: #9a2117; }
.button--light { background: #fff; color: #191a20; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.button--light:hover { background: #fff; color: #191a20; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.text-link { color: var(--wine); font-weight: 600; font-size: 14px; }
.text-link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.site-head-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: var(--wine); }
.site-head .button { margin-left: 6px; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-head .button { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 108px) 0 clamp(64px, 8vw, 100px);
  background:
    radial-gradient(52% 62% at 82% 12%, rgba(226,210,171,.13), transparent 70%),
    radial-gradient(46% 56% at 10% 84%, rgba(38,48,94,.10), transparent 72%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.35rem);
  line-height: 1.14; margin: 0 0 22px;
}
.hero-copy h1 em {
  font-style: normal; display: inline; color: var(--wine);
  background: linear-gradient(180deg, transparent 56%, #e7dcc3 56%, #e7dcc3 93%, transparent 93%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.13rem); color: var(--ink-2); max-width: 35em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.hero-note { font-size: 12.5px; color: var(--mut); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--sage); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stat b { display: block; font-family: var(--font-num); font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.hero-stat span { font-size: 11.5px; color: var(--mut); letter-spacing: .02em; }
.hero-stat--accent b { color: var(--wine); }

/* app preview */
.preview {
  position: relative; border-radius: var(--r-xl); padding: 10px;
  background: linear-gradient(150deg, rgba(38,48,94,.16), rgba(226,210,171,.10) 55%, rgba(38,48,94,.05));
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.preview:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.preview-window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.preview-bar span { margin-left: 8px; font-size: 10.5px; color: var(--mut); letter-spacing: .06em; }
.preview-body { padding: 18px; display: grid; gap: 13px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.preview-hello { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.preview-hello b { font-family: var(--font-display); font-size: 19px; font-weight: 400; }
.preview-hello small { display: block; font-size: 10.5px; color: var(--mut); font-family: var(--font-body); }
.preview-pill { font-size: 10px; font-weight: 700; color: var(--sage); background: var(--sage-soft); border: 1px solid color-mix(in srgb, var(--sage) 25%, transparent); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.preview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 11px; }
.preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.preview-card .lbl { font-size: 9.5px; letter-spacing: .1em; color: var(--mut); text-transform: uppercase; font-weight: 700; }
.preview-ring { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.preview-ring svg { width: 66px; height: 66px; flex: none; }
.preview-ring b { font-family: var(--font-num); font-size: 22px; display: block; line-height: 1.1; }
.preview-ring small { font-size: 10px; color: var(--mut); white-space: nowrap; }
.preview-bars { display: grid; gap: 8px; margin-top: 8px; }
.preview-bar-row { display: grid; grid-template-columns: 46px 1fr 26px; gap: 8px; align-items: center; font-size: 9.5px; color: var(--ink-2); }
.preview-bar-row .track { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.preview-bar-row .track i { display: block; height: 100%; border-radius: 99px; background: var(--wine); }
.preview-bar-row .track i.gold { background: var(--gold); }
.preview-spark { margin-top: 6px; }
.preview-quiz { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-quiz .q { font-size: 11px; line-height: 1.6; color: var(--ink); font-weight: 600; }
.preview-quiz .chip { font-size: 9px; padding: 2px 7px; border-radius: 99px; background: var(--wine-soft); color: var(--wine); font-weight: 700; white-space: nowrap; }
.preview-choices { display: grid; gap: 5px; margin-top: 7px; }
.preview-choice { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--surface); }
.preview-choice b { width: 15px; height: 15px; border-radius: 4px; background: var(--surface-2); display: grid; place-items: center; font-size: 8px; color: var(--mut); }
.preview-choice.ok { border-color: color-mix(in srgb, var(--sage) 55%, transparent); background: var(--sage-soft); color: var(--ink); }
.preview-choice.ok b { background: var(--sage); color: #fff; }
.preview-float {
  position: absolute; right: -14px; bottom: 34px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 650; animation: float 5.5s ease-in-out infinite;
}
.preview-float svg { color: var(--gold); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .preview { transform: none; max-width: 560px; }
  .preview:hover { transform: none; }
  .preview-float { right: 10px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--bg-deep); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.section-head--center { text-align: center; margin-inline: auto; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }

.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.principle .num { font-family: var(--font-display); font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.principle h3 { font-size: 1.18rem; margin: 12px 0 9px; }
.principle p { color: var(--ink-2); font-size: .94rem; margin: 0; }
@media (max-width: 860px) { .principle-grid { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--wine-soft); color: var(--wine); margin-bottom: 16px;
}
.feature:nth-child(3n+2) .ic { background: var(--gold-soft); color: var(--gold); }
.feature:nth-child(3n+3) .ic { background: var(--sage-soft); color: var(--sage); }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { font-size: .92rem; color: var(--ink-2); margin: 0; }
@media (max-width: 940px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-num); font-size: 13px; letter-spacing: .12em; color: var(--gold); font-weight: 700;
}
.step h3 { margin: 16px 0 8px; font-size: 1.12rem; }
.step p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.step-line { position: absolute; top: 32px; right: -12px; width: 24px; height: 1px; background: var(--line-strong); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step-line { display: none; } }

/* ---------- pricing ---------- */
.pricing-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.price-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 42px);
  background: linear-gradient(155deg, #191a20 0%, #26305e 48%, #3b477e 100%);
  color: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
}
.price-card::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,210,171,.36), transparent 66%);
}
.price-card .kicker { color: #e2d2ab; }
.price-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; margin-bottom: 6px; }
.price-card .price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price-card .price .currency { font-size: 1.5rem; font-weight: 600; }
.price-card .price .digits { font-family: var(--font-num); font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price-card .price .terms { font-size: .85rem; opacity: .75; margin-left: 6px; }
.price-card .price-sub { font-size: .9rem; opacity: .8; margin-bottom: 24px; }
.price-card ul { list-style: none; display: grid; gap: 11px; margin: 0 0 28px; padding: 0; }
.price-card li { display: flex; gap: 10px; font-size: .94rem; align-items: flex-start; }
.price-card li svg { flex: none; margin-top: 4px; color: #e2d2ab; }
.price-card .button { box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.price-card .fine { font-size: 11px; opacity: .62; margin: 14px 0 0; line-height: 1.7; }
.price-trial { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--sage); background: var(--sage-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; }
.pricing-copy h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 18px; }
.pricing-copy p { color: var(--ink-2); }
.pricing-list { list-style: none; display: grid; gap: 14px; margin-top: 24px; padding: 0; }
.pricing-list li { display: flex; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.pricing-list svg { color: var(--sage); flex: none; margin-top: 4px; }
@media (max-width: 900px) { .pricing-wrap { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 15px; font-size: 22px; color: var(--wine); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: .94rem; padding: 0 0 20px; margin: 0; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 66px); text-align: center; color: #fff;
  background: linear-gradient(140deg, #191a20, #26305e 55%, #3b477e);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(226,210,171,.22), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 14px; color: #fff; }
.cta-band p { opacity: .82; max-width: 34em; margin: 0 auto 26px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-deep); }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand p { margin: 12px 0 0; color: var(--mut); font-size: 13px; max-width: 26em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; }
.foot-links a { color: var(--ink-2); font-size: 13px; }
.foot-links a:hover { color: var(--wine); }
.foot-note { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mut); font-size: 11.5px; line-height: 1.9; }
.foot-note p:last-child { margin: 16px 0 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 500; color: var(--mut); font-size: 11px; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine) 14%, transparent); }
.field textarea { resize: vertical; min-height: 9em; line-height: 1.75; }
.field input::placeholder { color: color-mix(in srgb, var(--mut) 75%, transparent); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.check input { accent-color: var(--wine); }
.form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-row--between { justify-content: space-between; }
.form-hint { font-size: 12px; color: var(--mut); margin: 8px 0 0; }
.alert { border-radius: var(--r-sm); padding: 12px 15px; font-size: 13.5px; margin: 0 0 16px; border: 1px solid transparent; }
.alert--error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.alert--info { background: var(--sage-soft); color: var(--sage); border-color: color-mix(in srgb, var(--sage) 28%, transparent); }
.gift-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.gift-form .field { flex: 1 1 220px; min-width: 0; }
.gift-form .button { flex: 0 0 auto; }
.gift-msg .alert { margin: 0 0 12px; }

/* ---------- auth ---------- */
.auth-page { background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 100dvh; }
.auth-aside {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(26px, 4vw, 48px); color: #fff;
  background: linear-gradient(150deg, #111118 0%, #1a1a28 45%, #3b477e 100%);
}
.auth-aside::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -240px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,210,171,.20), transparent 62%);
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside-copy { margin: auto 0; padding: 48px 0; max-width: 30em; }
.auth-aside-copy .kicker { color: #e2d2ab; }
.auth-aside-copy h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: 1.16; margin-bottom: 20px; color: #fff; }
.auth-aside-copy .lead { color: rgba(255,255,255,.78); font-size: 1.02rem; line-height: 1.9; margin-bottom: 30px; }
.auth-points { list-style: none; display: grid; gap: 14px; padding: 0; margin: 0; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; color: rgba(255,255,255,.88); }
.auth-points svg { color: #e2d2ab; flex: none; margin-top: 4px; }
.auth-aside-foot { font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.45); margin: 0; }
.auth-card-wrap { display: grid; place-content: center; padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 56px); }
.auth-card { width: min(100%, 430px); }
.auth-tabs { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.auth-tab { flex: 1; text-align: center; padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--mut); }
.auth-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-card h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 8px; }
.auth-sub { color: var(--mut); font-size: .92rem; margin-bottom: 24px; }
.auth-legal { font-size: 11.5px; color: var(--mut); line-height: 1.8; margin-top: 20px; }
.auth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.auth-back { text-align: center; font-size: 13px; margin-top: 22px; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 210px; padding: 24px; }
  .auth-aside-copy { padding: 26px 0 6px; }
  .auth-aside-copy h1 { font-size: 2rem; margin-bottom: 0; }
  .auth-aside-copy .lead, .auth-points, .auth-aside-foot { display: none; }
}

/* ---------- result / narrow pages ---------- */
.result-wrap { min-height: calc(100dvh - 1px); display: grid; place-items: center; padding: clamp(28px, 6vw, 72px) 20px; }
.result-card { width: min(100%, 560px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 46px); box-shadow: var(--shadow-md); }
.result-card--narrow { max-width: 440px; }
.result-card h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 4px 0 12px; }
.result-card .lead { color: var(--ink-2); font-size: .95rem; }
.result-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.result-icon--ok { background: var(--sage-soft); color: var(--sage); }
.result-icon--warn { background: var(--gold-soft); color: var(--gold); }
.result-icon--wait { background: var(--wine-soft); color: var(--wine); }
.result-facts { display: grid; gap: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.result-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.result-facts dt { color: var(--mut); }
.result-facts dd { margin: 0; font-weight: 650; }
.result-progress { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 22px 0; }
.result-progress span { display: block; width: 38%; height: 100%; border-radius: 99px; background: var(--wine); animation: indeterminate 1.5s ease-in-out infinite; }
@keyframes indeterminate { 0% { margin-left: -40%; } 100% { margin-left: 105%; } }
.result-note { font-size: 12px; color: var(--mut); margin-top: 16px; line-height: 1.8; }

/* ---------- account ---------- */
.account-page { background: var(--bg); }
.simple-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.simple-head-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.simple-nav { display: flex; gap: 20px; }
.simple-nav a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.simple-nav a[aria-current] { color: var(--wine); }
.account-wrap { padding: 48px 20px 90px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.account-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 20px; align-items: start; }
.account-side { display: grid; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.panel h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-dot--paid { background: var(--sage-soft); color: var(--sage); }
.status-dot--trial { background: var(--gold-soft); color: var(--gold); }
.status-dot--expired { background: var(--danger-soft); color: var(--danger); }
.big-number { font-family: var(--font-num); font-size: 3.4rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; margin: 6px 0 4px; color: var(--wine); }
.big-number small { font-size: .9rem; font-weight: 600; margin-left: 4px; color: var(--mut); }
.buy-box { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.buy-price { display: flex; align-items: baseline; gap: 6px; }
.buy-price .price-currency { font-size: 1.1rem; font-weight: 700; }
.buy-price .price-digits { font-family: var(--font-num); font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.buy-price .price-terms { font-size: 12px; color: var(--mut); margin-left: 4px; }
.buy-box .mut { font-size: 12.5px; margin: 6px 0 16px; }
.buy-legal { font-size: 11px; color: var(--mut); margin: 12px 0 0; line-height: 1.7; }
.plan-active { background: var(--sage-soft); border: 1px solid color-mix(in srgb, var(--sage) 24%, transparent); border-radius: var(--r-sm); padding: 13px 15px; font-size: 13px; }
.plan-active p { margin: 0; }
.plan-active p + p { margin-top: 4px; font-size: 11.5px; }
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--mut); }
.facts dd { margin: 0; font-weight: 600; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.row-actions--end { justify-content: flex-end; }
.row-actions form { display: contents; }
.payment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.payment-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.payment-list li:last-child { border-bottom: 0; }
.panel--danger { border-color: color-mix(in srgb, var(--danger) 22%, var(--line)); }
.panel--danger h2 { color: var(--danger); }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }

/* ---------- modal (shared) ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 6, 8, .55); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(100%, 440px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.modal-card h2 { font-family: var(--font-body); font-size: 1.15rem; margin-bottom: 10px; }
.modal-card p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- legal ---------- */
.legal-wrap { max-width: 780px; margin-inline: auto; padding: 56px 20px 90px; }
.legal-wrap h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.legal-wrap h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 34px 0 10px; }
.legal-wrap p, .legal-wrap li { font-size: 14px; color: var(--ink-2); }
.legal-wrap ul { padding-left: 1.3em; }
.legal-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-wrap th, .legal-wrap td { text-align: left; padding: 11px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-wrap th { width: 34%; background: var(--surface-2); font-weight: 650; }
.legal-meta { font-size: 12px; color: var(--mut); border-top: 1px solid var(--line); margin-top: 36px; padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .site-foot, .hero-actions, .button { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   追加：動き・比較表・シャッフル実演・追従CTA
   ========================================================================== */

/* ---------- スクロール出現（JS有効時のみ隠す） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- ヒーローの登場 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.08); }
}
.hero-copy > * { animation: rise .85s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .28s; }
.hero-copy > :nth-child(5) { animation-delay: .34s; }
.hero-copy > :nth-child(6) { animation-delay: .42s; }
.preview { animation: rise 1s var(--ease) .3s both; }
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  right: -8vw; top: -12vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,210,171,.55), transparent 66%);
  animation: glow 12s ease-in-out infinite;
}
.hero-inner { z-index: 1; }
.hero-stats b { font-variant-numeric: tabular-nums; }

/* ---------- 違い（3カード＋対応表） ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 18px); margin-top: clamp(26px, 3.4vw, 38px);
}
.why-card {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(18px, 2vw, 26px); box-shadow: var(--shadow-sm);
}
.why-figure { display: flex; align-items: baseline; gap: 7px; margin: 0 0 2px; color: var(--wine); }
.why-figure b {
  font-family: var(--font-num); font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums;
}
.why-figure span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.why-card h3 { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.why-card p { margin: 0; font-size: 12.8px; line-height: 1.9; color: var(--ink-2); }
.why-card .why-compare {
  margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 11.5px; line-height: 1.6; color: var(--mut);
}

.diff-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px 18px; flex-wrap: wrap;
  margin: clamp(30px, 4vw, 46px) 2px 12px;
}
.diff-head h3 { font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.diff-head .diff-legend { margin: 0; font-size: 11px; color: var(--mut); line-height: 1.6; }

.diff {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.diff-row { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) minmax(0, 1.16fr); }
.diff-row + .diff-row { border-top: 1px solid var(--line); }
.diff-row > div {
  padding: 13px 16px; font-size: 12.8px; line-height: 1.6;
  display: flex; align-items: center; gap: 7px; min-width: 0;
}
.diff-thead {
  background: var(--surface-2); border-bottom: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2);
}
.diff-thead .is-us {
  background: linear-gradient(150deg, #2b3568, #26305e); color: #fff;
  font-size: 12px; letter-spacing: .08em; gap: 8px;
}
.diff-thead .is-us span {
  font-size: 9.5px; font-weight: 700; letter-spacing: .03em;
  background: var(--sand); color: #3a2c14; border-radius: 999px; padding: 2px 8px; white-space: nowrap;
  margin-left: auto;
}
.diff-key { font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.diff-them { color: var(--mut); }
.diff-them .is-none { color: var(--mut); }
.diff-us { background: var(--sand-soft); color: var(--ink); font-weight: 650; }
.diff-us svg { color: var(--sage); flex: none; }
.diff-chip {
  margin-left: auto; flex: none; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  color: #3a2c14; background: var(--sand); border-radius: 999px; padding: 2px 9px;
}
.diff-note { margin: 12px 2px 0; font-size: 11.5px; line-height: 1.8; color: var(--mut); }
.why-link { margin-left: .25em; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 模擬試験の結果イメージ（トップページ） ---------- */
.exam-preview {
  margin-top: clamp(26px, 3.4vw, 38px); padding: clamp(20px, 3vw, 34px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  scroll-margin-top: 96px;
}
.exam-preview-head {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 12px 26px;
}
.exam-preview-head > div { min-width: 0; flex: 1 1 30em; }
.exam-preview-head .eyebrow { margin-bottom: 8px; }
.exam-preview-head h3 {
  margin: 0 0 9px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.45; letter-spacing: .01em; color: var(--ink);
}
.exam-preview-head p:not(.eyebrow) { margin: 0; max-width: 40em; font-size: .92rem; line-height: 1.9; color: var(--ink-2); }
.exam-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 700;
}
.exam-badge svg { flex: none; }
.exam-preview-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(14px, 2.4vw, 26px); margin-top: clamp(18px, 2.8vw, 28px); align-items: start;
}
.exam-fig {
  margin: 0; padding: clamp(13px, 1.8vw, 20px);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.exam-fig figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 3px 12px; margin-bottom: 4px;
}
.exam-fig figcaption b { font-size: 13px; font-weight: 700; color: var(--ink); }
.exam-fig figcaption span { font-size: 10.5px; font-weight: 700; color: var(--wine); }
.exam-preview .ability-fig { margin-top: 10px; padding-top: 34px; }
.exam-preview .ability-track { height: 58px; }
.exam-preview .ab-band b { font-size: 17px; }
.exam-preview .ab-band small { display: none; }
.exam-preview .ability-callout { font-size: 10px; }
.exam-preview .ability-ticks { height: 46px; }
.exam-preview .ability-legend { margin-top: 7px; font-size: 10px; gap: 4px 14px; }
.exam-preview .grade-gauge { margin-top: 16px; }
.exam-preview .gg-seg { min-height: 56px; }
.exam-preview .grade-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.exam-preview .grade-facts dd { font-size: 11.5px; }
.exam-fig-note { margin: 10px 0 0; font-size: 10.5px; line-height: 1.8; color: var(--mut); }

.exam-why { display: grid; gap: 7px; margin-top: 10px; }
.exam-why > div {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px;
  padding: 7px 9px; border-radius: 8px; background: var(--surface-2);
}
.ew-tag {
  flex: none; padding: 2px 7px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 10px; font-weight: 700; color: var(--ink-2);
}
.ew-tag.is-hard { border-color: color-mix(in srgb, var(--wine) 32%, var(--line)); color: var(--wine); }
.ew-text { font-size: 10.5px; line-height: 1.6; color: var(--ink-2); }

.exam-compare { display: grid; gap: 10px; margin-top: 8px; }
.ec-card {
  padding: 10px 12px 9px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface);
}
.ec-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ec-top > b { font-size: 12.5px; color: var(--ink); }
.ec-score { font-family: var(--font-num); font-size: 18px; font-weight: 700; line-height: 1; color: var(--ink); }
.ec-score small { margin-left: 1px; font-size: 9.5px; font-weight: 600; color: var(--mut); }
.ec-diff {
  margin-left: auto; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--mut); font-size: 10px; font-weight: 600; white-space: nowrap;
}
.ec-meter {
  position: relative; height: 8px; margin: 10px 0 8px; border-radius: 99px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--mut) 16%, var(--surface-2)) 0 50%,
    var(--sage-soft) 50% 100%);
}
.ec-pass { position: absolute; top: -3px; bottom: -3px; left: 50%; width: 0; border-left: 1.5px dashed var(--ink); }
.ec-dot {
  position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--surface);
  box-shadow: 0 1px 3px rgba(22, 21, 26, .2); transform: translate(-50%, -50%);
}
.ec-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; }
.ec-theta { font-family: var(--font-num); font-weight: 700; color: var(--ink-2); }
.ec-grade { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.ec-grade.is-pass { background: var(--sage-soft); color: var(--sage); }
.ec-grade.is-fail { background: var(--gold-soft); color: var(--gold); }

.exam-flow {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: clamp(18px, 2.6vw, 26px);
}
.exam-flow-step {
  position: relative; padding: 14px 14px 14px 46px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg);
}
.exam-flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -13px; top: 50%; z-index: 2;
  transform: translateY(-50%); color: var(--line-strong); font-size: 15px; line-height: 1;
}
.ef-num {
  position: absolute; left: 13px; top: 14px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wine); color: #fff;
  font-family: var(--font-num); font-size: 11px; font-weight: 700;
}
.exam-flow-step > b { display: block; font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.exam-flow-step > span:last-child { display: block; margin-top: 3px; font-size: 11px; line-height: 1.75; color: var(--ink-2); }

.exam-preview .ability-disclaimer { margin-top: 16px; }
.exam-details { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.exam-details summary {
  position: relative; padding-right: 18px; cursor: pointer; list-style: none;
  font-size: 12px; font-weight: 700; color: var(--wine);
}
.exam-details summary::-webkit-details-marker { display: none; }
.exam-details summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-size: 16px; font-weight: 400; transition: transform .2s;
}
.exam-details[open] summary::after { transform: rotate(45deg); }
.exam-details-body p { margin: 8px 0 0; font-size: 11.5px; line-height: 1.9; color: var(--ink-2); }

@media (max-width: 980px) {
  .exam-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .exam-flow { grid-template-columns: 1fr; gap: 18px; }
  .exam-flow-step:not(:last-child)::after {
    content: "↓"; right: auto; left: 50%; top: auto; bottom: -16px; transform: translateX(-50%);
  }
}
@media (max-width: 620px) {
  .exam-preview { padding: 16px 12px; border-radius: var(--r-md); }
  .exam-preview-head h3 { font-size: 1.25rem; }
  .exam-preview-head p:not(.eyebrow) { font-size: .87rem; }
  .exam-badge { font-size: 10px; }
  .exam-fig { padding: 12px 10px; }
  .exam-preview .ab-band b { font-size: 15px; }
  .exam-preview .ab-band small { display: none; }
  .exam-preview .ability-ticks { height: 44px; }
  .exam-preview .ab-tick, .exam-preview .ab-tick em { font-size: 9.5px; }
  .exam-preview .ab-tick small { font-size: 8px; }
  .ec-diff { margin-left: 0; flex-basis: 100%; }
  .exam-preview .grade-facts { gap: 0 8px; }
  .exam-preview .grade-facts dt { font-size: 9.5px; }
  .exam-preview .grade-facts dd { font-size: 11px; }
  .exam-details-body p { font-size: 11px; }
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .why-card h3, .why-card p, .why-card .why-compare { flex: 1 1 100%; }
  .why-card .why-compare { margin-top: 2px; }
}
@media (max-width: 820px) {
  .diff-thead { display: none; }
  .diff-row { grid-template-columns: 1fr; }
  .diff-row + .diff-row { border-top: 1px solid var(--line-strong); }
  .diff-row > div { padding: 4px 14px; font-size: 12.5px; }
  .diff-key { padding: 12px 14px 3px; font-size: 13px; background: var(--surface-2); }
  .diff-them::before { content: "よくあるアプリ："; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--mut); }
  .diff-us { margin-top: 2px; padding: 7px 14px 9px; border-left: 3px solid var(--wine); }
  .diff-us::before { content: "SOMMA："; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--wine); }
}

/* ---------- シャッフルの実演 ---------- */
.shuffle-band {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(150deg, #101118 0%, #1c2140 52%, #26305e 100%);
}
.shuffle-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(226,210,171,.30), transparent 66%);
}
.shuffle-inner { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.shuffle-copy .eyebrow { color: var(--sand); }
.shuffle-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); color: #fff; margin-bottom: 16px; }
.shuffle-copy > p { color: rgba(255,255,255,.78); font-size: 1rem; max-width: 34em; }
.shuffle-number {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin: 26px 0 8px; padding: 20px 22px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.shuffle-number b {
  font-family: var(--font-num); font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--sand);
  font-variant-numeric: tabular-nums;
}
.shuffle-number b sup {
  font-size: .34em; font-weight: 700; letter-spacing: 0;
  vertical-align: super; margin-left: 2px; line-height: 0;
}
.shuffle-number span { font-size: 14px; color: rgba(255,255,255,.72); }
.shuffle-number small { display: block; width: 100%; font-size: 11px; line-height: 1.9; color: rgba(255,255,255,.5); margin-top: 6px; }
.shuffle-number small sup { font-size: .78em; vertical-align: super; line-height: 0; }
.shuffle-note { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,.55); margin: 0; }
.shuffle-note svg { flex: none; color: rgba(255,255,255,.5); }

.shuffle-demo {
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.2);
}
.sd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sd-chip { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--wine); background: var(--wine-soft); border-radius: 999px; padding: 3px 9px; }
.sd-count { font-size: 10.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.shuffle-demo .q { font-size: 14.5px; font-weight: 650; line-height: 1.65; margin: 0 0 12px; }
.sd-choices { display: grid; gap: 7px; }
.sd-choice {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font-size: 13px; background: var(--surface); color: var(--ink-2);
  transition: opacity .22s var(--ease), transform .22s var(--ease), border-color .22s, background .22s;
}
.sd-choice b {
  width: 20px; height: 20px; flex: none; border-radius: 5px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--mut); font-size: 10px; font-weight: 700;
}
.sd-choice.is-swap { opacity: .18; transform: translateY(-5px); }
.sd-choice.is-answer { border-color: color-mix(in srgb, var(--sage) 55%, transparent); background: var(--sage-soft); color: var(--ink); font-weight: 650; }
.sd-choice.is-answer b { background: var(--sage); color: #fff; }
.sd-choice .sd-mark { margin-left: auto; color: var(--sage); opacity: 0; transition: opacity .25s; }
.sd-choice.is-answer .sd-mark { opacity: 1; }
.sd-foot { font-size: 11px; color: var(--mut); margin: 12px 0 0; display: flex; align-items: center; gap: 6px; }
.sd-foot svg { color: var(--gold); flex: none; }
@media (max-width: 900px) {
  .shuffle-inner { grid-template-columns: 1fr; }
  .shuffle-demo { max-width: 520px; }
}

/* ---------- 追従CTA（スマホ） ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 16px; border-radius: 16px;
  background: rgba(22, 24, 34, .95); color: #fff;
  box-shadow: 0 16px 44px rgba(10, 12, 20, .35);
  backdrop-filter: blur(12px);
  transform: translateY(150%); transition: transform .4s var(--ease);
}
.sticky-cta.is-on { transform: none; }
.sticky-cta b { display: block; font-size: 13px; line-height: 1.3; }
.sticky-cta small { font-size: 10.5px; color: rgba(255,255,255,.62); }
.sticky-cta .button { flex: none; }
@media (max-width: 860px) { .sticky-cta { display: flex; } }
.foot-contact { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13px; white-space: nowrap; }
.foot-contact svg { color: var(--mut); flex: none; }
.foot-contact a { color: var(--ink-2); }
.foot-contact a:hover { color: var(--wine); text-decoration: underline; }
@media (max-width: 620px) {
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .hero-stat b { font-size: 22px; }
}

/* ---------- お問い合わせ ---------- */
.contact-wrap { max-width: 720px; margin-inline: auto; padding: 56px 20px 90px; }
.contact-wrap h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.contact-lead { font-size: 14.5px; color: var(--ink-2); line-height: 1.95; margin: 0 0 30px; max-width: 34em; }
.contact-wrap .form { margin-bottom: 40px; }
.form-status {
  background: var(--sage-soft); color: var(--sage);
  border: 1px solid color-mix(in srgb, var(--sage) 28%, transparent);
  border-radius: var(--r-sm); padding: 13px 16px; font-size: 13.5px; line-height: 1.8; margin: 0 0 20px;
}
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.consent input { accent-color: var(--wine); margin-top: 3px; flex: none; }
.consent a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 26px 22px; box-shadow: var(--shadow-sm); }
.contact-card h2 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin: 0 0 14px; }
.contact-meta { list-style: none; padding: 0; margin: 0; }
.contact-meta li { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-meta li:first-child { border-top: 0; padding-top: 0; }
.contact-meta li:last-child { padding-bottom: 0; }
.contact-meta strong { display: block; color: var(--ink); font-size: 13px; font-weight: 650; margin-bottom: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 34px; font-size: 13px; color: var(--mut); }
.back-link:hover { color: var(--wine); }
@media (max-width: 560px) { .contact-card { padding: 20px 18px 16px; } }

/* ---------- 判定 ---------- */
.grade-block {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 20px; margin: 0 0 14px;
}
.grade-block--pass { background: var(--sage-soft); border-color: color-mix(in srgb, var(--sage) 28%, transparent); }
.grade-block--fail { background: color-mix(in srgb, var(--mut) 8%, var(--surface)); border-color: color-mix(in srgb, var(--mut) 26%, transparent); }
.grade-mark {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1;
  border-radius: 50%; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--mut) 22%, transparent); color: var(--mut);
}
.grade-block--pass .grade-mark { color: var(--sage); border-color: color-mix(in srgb, var(--sage) 34%, transparent); }
.grade-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.grade-text b { font-size: 15px; font-weight: 700; color: var(--ink); }
.grade-text span { font-size: 11.5px; color: var(--mut); line-height: 1.6; }
.grade-desc-src { font-size: 10.5px; line-height: 1.6; color: var(--mut); margin: 0 0 14px; }
.grade-scale-head {
  margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--mut); line-height: 1.6;
}
.grade-scale { list-style: none; margin: 0 0 7px; padding: 0; display: grid; gap: 6px; }
.grade-scale li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
}
.grade-scale li.is-current {
  border-color: color-mix(in srgb, var(--wine) 32%, transparent);
  background: var(--wine-soft);
}
.gs-grade {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-2); color: var(--ink-2);
  font-size: 12px; font-weight: 700; line-height: 1;
}
.grade-scale li.is-current .gs-grade { background: var(--wine); color: #fff; }
.gs-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; min-width: 0; }
.gs-body b { font-size: 12.5px; color: var(--ink); }
.gs-tag {
  font-size: 10px; font-weight: 700; line-height: 1.7; padding: 1px 7px;
  border-radius: 999px; color: var(--sage); background: var(--sage-soft); white-space: nowrap;
}
.gs-tag.is-fail { color: var(--mut); background: color-mix(in srgb, var(--mut) 12%, transparent); }
.gs-range { flex: 1 1 100%; font-family: var(--font-num); font-size: 10.5px; line-height: 1.6; color: var(--mut); letter-spacing: .01em; }
.gs-body em { flex: 1 1 100%; font-style: normal; font-size: 11.5px; line-height: 1.7; color: var(--mut); }
.grade-scale li.is-current .gs-body em { color: var(--ink-2); }
.grade-chip {
  display: inline-block; font-size: 10px; font-weight: 700; line-height: 1.6;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle;
  border: 1px solid transparent; margin-right: 8px;
}
.grade-chip.is-pass { color: var(--sage); background: var(--sage-soft); border-color: color-mix(in srgb, var(--sage) 25%, transparent); }
.grade-chip.is-fail { color: var(--mut); background: color-mix(in srgb, var(--mut) 10%, transparent); border-color: color-mix(in srgb, var(--mut) 22%, transparent); }
@media (max-width: 560px) {
  .grade-block { padding: 13px 15px; gap: 12px; }
  .grade-mark { width: 44px; height: 44px; font-size: 22px; }
}

/* ==========================================================================
   可読性の調整（2026-11-17）
   日本語の本文が12〜13px台に落ちていたため、本文は15〜16px、
   補助情報は12〜13.5pxを下限にそろえる。見出し・数字の大きさは変えず、
   本文と補助情報だけを引き上げて階層を保つ。
   ========================================================================== */

/* --- ナビゲーション・基本パーツ --- */
.site-nav a { font-size: 15px; }
.button { font-size: 16px; }
.button--small { font-size: 14px; }
.text-link { font-size: 15px; }
.small { font-size: 14px; }
.kicker, .eyebrow { font-size: 12px; }

/* --- ヒーロー --- */
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); }
.hero-note { font-size: 13.5px; }
.hero-stat span { font-size: 12.5px; }
/* スマホでプレビューの最小幅がグリッドを押し広げ、本文がはみ出していた分を防ぐ */
.hero-inner > * { min-width: 0; }
.preview { max-width: 100%; }
.preview-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.preview-card, .preview-quiz .q { min-width: 0; }

/* --- セクション本文 --- */
.section-head p { font-size: 1.08rem; }
.principle p { font-size: 1rem; }
.feature p { font-size: 1rem; }
.step p { font-size: 1rem; }
.faq summary { font-size: 1.02rem; }
.faq details p { font-size: 1rem; }
.price-card .price-sub { font-size: .95rem; }
.price-card li { font-size: 1rem; }
.price-card .price .terms { font-size: 13px; }
.price-card .fine { font-size: 12px; }
.price-trial { font-size: 13px; }
.pricing-list li { font-size: 1rem; }
.auth-aside-copy .lead { font-size: 1.08rem; }
.auth-points li { font-size: 1rem; }
.auth-aside-foot { font-size: 12px; }
.auth-sub { font-size: 1rem; }
.auth-legal { font-size: 12.5px; }
.auth-back { font-size: 14px; }
.result-card .lead { font-size: 1rem; }
.result-facts > div { font-size: 14.5px; }
.result-note { font-size: 13px; }
.modal-card p { font-size: 14.5px; }
.legal-wrap p, .legal-wrap li { font-size: 15px; }
.legal-wrap table { font-size: 14.5px; }
.legal-meta { font-size: 13px; }
.contact-lead { font-size: 15.5px; }
.contact-meta li { font-size: 14.5px; }
.contact-meta strong { font-size: 14px; }
.back-link { font-size: 14px; }

/* --- 違い・比較表 --- */
.why-figure span { font-size: 13.5px; }
.why-card h3 { font-size: 16px; }
.why-card p { font-size: 14.5px; }
.why-card .why-compare { font-size: 12.5px; }
.diff-head h3 { font-size: 15px; }
.diff-head .diff-legend { font-size: 12px; }
.diff-row > div { font-size: 14px; }
/* 文字を上げたぶん、4文字の項目名が折り返さないよう左列を広げる */
@media (min-width: 821px) {
  .diff-row { grid-template-columns: 6.2em minmax(0, 1fr) minmax(0, 1.16fr); }
}
.diff-thead { font-size: 12px; }
.diff-thead .is-us { font-size: 13px; }
.diff-thead .is-us span,
.diff-chip { font-size: 11px; }
.diff-note { font-size: 12.5px; }

/* --- 模擬試験の結果イメージ --- */
.exam-badge { font-size: 12px; }
.exam-fig figcaption b { font-size: 14px; }
.exam-fig figcaption span { font-size: 11.5px; }
.exam-preview .ab-band b { font-size: 18px; }
.exam-preview .ability-callout { font-size: 11px; }
.exam-preview .ability-legend { font-size: 11px; }
.exam-preview .grade-facts dd { font-size: 12.5px; }
.exam-fig-note { font-size: 11.5px; }
.ew-tag { font-size: 11px; }
.ew-text { font-size: 11.5px; }
.ec-top > b { font-size: 13.5px; }
.ec-score small { font-size: 10.5px; }
.ec-diff { font-size: 11px; }
.ec-bottom { font-size: 12px; }
.ec-grade { font-size: 11px; }
.ef-num { font-size: 12px; }
.exam-flow-step > b { font-size: 13.5px; }
.exam-flow-step > span:last-child { font-size: 12px; }
.exam-details summary { font-size: 13px; }
.exam-details-body p { font-size: 12.5px; }

/* --- フォーム・アカウント --- */
.field > span { font-size: 14px; }
.field > span em { font-size: 12px; }
.field input, .field select, .field textarea { font-size: 16px; }
.check { font-size: 14px; }
.form-hint { font-size: 13px; }
.alert { font-size: 14.5px; }
.auth-tab { font-size: 14.5px; }
.simple-nav a { font-size: 14.5px; }
.status-dot { font-size: 12.5px; }
.facts > div { font-size: 14.5px; }
.payment-list li { font-size: 14px; }
.buy-price .price-terms { font-size: 13px; }
.buy-box .mut { font-size: 13.5px; }
.buy-legal { font-size: 12px; }
.plan-active { font-size: 14px; }
.plan-active p + p { font-size: 12.5px; }
.form-status { font-size: 14.5px; }
.consent { font-size: 14px; }

/* --- フッター・スマホ追従CTA --- */
.foot-brand p, .foot-links a { font-size: 14px; }
.foot-note { font-size: 12.5px; }
.foot-contact { font-size: 14px; }
.sticky-cta b { font-size: 14px; }
.sticky-cta small { font-size: 11.5px; }

/* --- シャッフル実演 --- */
.shuffle-number span { font-size: 15px; }
.shuffle-number small { font-size: 12px; }
.shuffle-note { font-size: 13px; }
.sd-chip { font-size: 11px; }
.sd-count { font-size: 11.5px; }
.shuffle-demo .q { font-size: 15.5px; }
.sd-choice { font-size: 14px; }
.sd-foot { font-size: 12px; }

/* --- 判定表示 --- */
.grade-text b { font-size: 16px; }
.grade-text span { font-size: 12.5px; }
.grade-desc-src { font-size: 11.5px; }
.grade-scale-head { font-size: 11px; }
.gs-body b { font-size: 13.5px; }
.gs-tag { font-size: 11px; }
.gs-range { font-size: 11.5px; }
.gs-body em { font-size: 12.5px; }
.grade-chip { font-size: 11px; }

@media (max-width: 820px) {
  .diff-row > div { font-size: 13.5px; }
  .diff-key { font-size: 14px; }
  .diff-them::before, .diff-us::before { font-size: 11.5px; }
}

@media (max-width: 620px) {
  .exam-preview-head h3 { font-size: 1.3rem; }
  .exam-preview-head p:not(.eyebrow) { font-size: .94rem; }
  .exam-badge { font-size: 11px; }
  .exam-preview .ab-band b { font-size: 15px; }
  .exam-preview .ab-tick,
  .exam-preview .ab-tick em { font-size: 10px; }
  .exam-preview .ab-tick small { font-size: 8.5px; }
  .exam-preview .ability-callout { font-size: 10px; }
  .exam-preview .ability-legend { font-size: 10.5px; }
  .exam-preview .grade-facts dt { font-size: 10px; }
  .exam-preview .grade-facts dd { font-size: 12px; }
  .exam-details-body p { font-size: 12px; }
  .ec-top > b { font-size: 13px; }
  .ec-score { font-size: 17px; }
  .why-card p { font-size: 14px; }
  .hero-stat b { font-size: 24px; }
}
