:root {
  --navy: #082752;
  --navy-deep: #031833;
  --navy-soft: #103966;
  --yellow: #ffd447;
  --yellow-deep: #f5b900;
  --ivory: #faf7ef;
  --paper: #fffdf7;
  --mint: #dff1ea;
  --mint-deep: #2d806d;
  --red: #df4d3f;
  --ink: #102033;
  --muted: #5e6c7b;
  --line: rgba(8, 39, 82, 0.14);
  --shadow: 0 24px 70px rgba(8, 39, 82, 0.16);
  --radius: 8px;
  --max: 1160px;
  --space: clamp(64px, 8vw, 112px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--ivory);
  line-height: 1.75;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(3, 24, 51, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 142px;
}

.brand img {
  width: clamp(132px, 16vw, 196px);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  margin-left: auto;
  font-weight: 800;
  font-size: 0.95rem;
}

.site-nav a {
  opacity: 0.9;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--navy-deep);
  background: var(--yellow);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 212, 71, 0.2);
}

.header-cta strong,
.button strong {
  display: inline-block;
  margin-inline: 0.03em;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 1.06em;
  font-weight: 900;
  line-height: 1;
}

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 212, 71, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, #052044);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), #000 45%, rgba(0, 0, 0, 0.5));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(58px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-kicker {
  color: var(--mint-deep);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: min(8.5em, 100%);
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
  word-break: keep-all;
  line-break: strict;
}

.hero h1 {
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hero h1::after {
  content: "";
  display: block;
  width: min(260px, 52vw);
  height: 12px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-2deg);
}

.hero-lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 700;
  line-height: 2;
}

.hero-lead span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-actions.center,
.center-action {
  justify-content: center;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.3;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  box-shadow: 0 18px 40px rgba(255, 212, 71, 0.26);
}

.button-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.flow-arrow {
  position: absolute;
  top: 24px;
  right: 58px;
  width: min(78%, 500px);
  color: var(--yellow);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.2));
  opacity: 0.94;
  transform: rotate(-3deg);
  overflow: visible;
}

.flow-arrow-line,
.flow-arrow-glow {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.flow-arrow-line {
  stroke-width: 16;
}

.flow-arrow-glow {
  stroke-width: 36;
  opacity: 0.18;
}

.flow-arrow-head {
  fill: currentColor;
}

.flow-arrow-tip {
  fill: currentColor;
}

.step-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 138px;
  padding: 13px 16px;
  border: 2px solid rgba(255, 212, 71, 0.86);
  border-radius: var(--radius);
  color: var(--navy);
  background: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.step-card span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
}

.step-card strong {
  font-size: 1rem;
}

.step-1 {
  top: 32px;
  left: 170px;
}

.step-2 {
  top: 134px;
  right: 60px;
}

.step-3 {
  top: 254px;
  left: 150px;
}

.step-4 {
  top: 376px;
  right: 44px;
}

.step-5 {
  top: 504px;
  left: 292px;
}

.hero-character {
  position: absolute;
  z-index: 5;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.28));
}

.hero-character.sensei {
  right: 0;
  bottom: 10px;
  width: min(30vw, 250px);
}

.hero-character.sai {
  left: 4px;
  bottom: 56px;
  width: min(24vw, 190px);
}

.speech {
  position: absolute;
  z-index: 6;
  max-width: 170px;
  margin: 0;
  padding: 13px 15px;
  border-radius: 18px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  font-weight: 900;
  line-height: 1.5;
}

.speech-sensei {
  right: 126px;
  top: 38px;
}

.speech-sai {
  left: 112px;
  bottom: 282px;
}

.section {
  padding: var(--space) 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 980px;
}

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

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
  line-break: strict;
}

h2 span {
  display: inline;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.35;
}

.section p {
  color: var(--muted);
}

.problem {
  background: var(--ivory);
}

.problem .section-kicker,
.problem h2 {
  text-align: center;
}

.problem-panel {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.problem-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding: clamp(22px, 4vw, 34px);
}

.problem-row + .problem-row {
  border-top: 1px solid var(--line);
}

.problem-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--mint);
  font-weight: 950;
}

.problem-row p {
  margin: 8px 0 0;
}

.center-action {
  display: flex;
  margin-top: 32px;
}

.sheets {
  background: #fff;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.sheet-card {
  position: relative;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.sheet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.sheet-card-head span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--mint-deep);
  font-weight: 950;
}

.spicy .sheet-card-head span {
  background: var(--red);
}

.sheet-card-head strong {
  color: var(--navy);
  font-weight: 950;
}

.sheet-card img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(8, 39, 82, 0.12);
  border-radius: var(--radius);
  background: #fff;
}

.kurosawa-note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(8, 39, 82, 0.16);
}

.kurosawa-note img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 0;
}

.kurosawa-note p {
  margin: 0;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.35;
}

.flow {
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 212, 71, 0.12), transparent 28%),
    linear-gradient(140deg, var(--navy-deep), var(--navy));
}

.flow h2,
.flow h3,
.flow .section-kicker,
.flow p {
  color: #fff;
}

.flow .section-kicker {
  color: var(--yellow);
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.flow-layout > div:first-child p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
}

.flow-steps {
  display: grid;
  gap: 16px;
}

.flow-steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.flow-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 950;
}

.flow-steps p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.support {
  background: var(--ivory);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 66px);
  align-items: start;
}

.support-copy {
  position: sticky;
  top: 104px;
}

.support-list {
  display: grid;
  gap: 12px;
}

.support-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(8, 39, 82, 0.08);
}

.support-list span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--yellow);
  font-size: 0.88rem;
  font-weight: 950;
}

.support-list p {
  margin: 5px 0 0;
}

.reason {
  background: #fff;
}

.reason-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  overflow: hidden;
  padding: clamp(26px, 5vw, 58px);
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, #f0f8f4, #fff9e9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.proof-list {
  display: grid;
  gap: 14px;
}

.proof-list article {
  position: relative;
  z-index: 2;
  padding: 20px;
  border: 1px solid rgba(8, 39, 82, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.proof-list span {
  color: var(--mint-deep);
  font-weight: 950;
}

.proof-list p {
  margin: 8px 0 0;
}

.reason-sensei {
  position: absolute;
  right: -22px;
  bottom: -40px;
  width: min(24vw, 210px);
  opacity: 0.26;
}

.final-cta {
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 212, 71, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.final-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 106px) 0;
  text-align: center;
}

.final-cta h2,
.final-cta p,
.final-cta .section-kicker {
  color: #fff;
}

.final-cta .section-kicker {
  color: var(--yellow);
}

.final-cta p {
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
  .site-nav {
    gap: 18px;
    font-size: 0.86rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 560px;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-character.sensei {
    width: 210px;
  }

  .hero-character.sai {
    width: 160px;
  }

  .flow-layout,
  .support-layout,
  .reason-panel {
    grid-template-columns: 1fr;
  }

  .support-copy {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-header {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    min-width: auto;
  }

  .brand span {
    font-size: 1.3rem;
  }

  .brand small,
  .site-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .hero-inner,
  .section-inner,
  .final-inner {
    width: calc(100% - 28px);
    max-width: var(--max);
    padding-left: 0;
    padding-right: 0;
  }

  .hero-inner {
    padding-top: 46px;
    padding-bottom: 58px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-visual {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12.2vw, 3.2rem);
    word-break: auto-phrase;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.85rem, 8.6vw, 2.5rem);
    word-break: auto-phrase;
    overflow-wrap: anywhere;
  }

  h1::after {
    height: 8px;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.9;
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .hero-actions.center {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    padding: 0 18px;
    white-space: normal;
  }

  .hero-visual {
    min-height: 470px;
    margin-top: 4px;
    overflow: hidden;
  }

  .flow-arrow {
    top: 42px;
    right: -24px;
    width: 94%;
    opacity: 0.92;
  }

  .step-card {
    min-width: 118px;
    max-width: calc(100% - 28px);
    padding: 10px 12px;
  }

  .step-card span {
    width: 26px;
    height: 26px;
  }

  .step-card strong {
    font-size: 0.88rem;
  }

  .step-1 {
    top: 46px;
    left: 38px;
  }

  .step-2 {
    top: 124px;
    right: auto;
    left: min(38vw, 142px);
  }

  .step-3 {
    top: 214px;
    left: 36px;
  }

  .step-4 {
    top: 306px;
    right: auto;
    left: min(38vw, 142px);
  }

  .step-5 {
    top: 392px;
    left: 78px;
  }

  .hero-character.sensei {
    right: 0;
    bottom: 0;
    width: 132px;
  }

  .hero-character.sai {
    left: -4px;
    bottom: 22px;
    width: 104px;
  }

  .speech {
    display: none;
  }

  .problem-row,
  .section p,
  .flow-steps article,
  .support-list article {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .problem-row,
  .flow-steps article,
  .support-list article {
    grid-template-columns: 1fr;
  }

  .problem-icon {
    width: 46px;
    height: 46px;
  }

  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .sheet-card {
    padding: 14px;
  }

  .sheet-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kurosawa-note {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .reason-panel {
    padding: 24px;
  }

  .reason-sensei {
    width: 160px;
  }
}

@media (max-width: 430px) {
  :root {
    --space: 58px;
  }

  .hero-inner,
  .section-inner,
  .final-inner {
    width: calc(100% - 48px);
    max-width: calc(100% - 48px);
    padding-left: 0;
    padding-right: 0;
  }

  h1 {
    font-size: clamp(2.28rem, 11.2vw, 2.85rem);
  }

  h2 {
    max-width: 100%;
    font-size: 1.7rem;
    line-height: 1.25;
    word-break: break-all;
  }

  h2 span {
    display: block;
  }

  .section p,
  .hero-lead,
  .problem-row p {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero-visual {
    min-height: 430px;
  }

  .flow-arrow {
    right: -34px;
    width: 104%;
    opacity: 0.78;
  }

  .step-card {
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
  }

  .step-1 {
    left: 14px;
  }

  .step-2 {
    left: 128px;
  }

  .step-3 {
    left: 16px;
  }

  .step-4 {
    left: 128px;
  }

  .step-5 {
    left: 48px;
  }

  .hero-character.sensei {
    width: 112px;
  }

  .hero-character.sai {
    width: 90px;
  }

  .problem-row {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

/* B案: 診断シート・資料感を主役化。紙面、罫線、分析ボードの印象を強める。 */
.variant-b {
  --navy: #082752;
  --navy-deep: #09213f;
  --yellow: #f4c84a;
  --ivory: #f7f0e2;
  --paper: #fffdf8;
  --mint: #e6f2e8;
}

.variant-b .hero {
  color: var(--navy);
  background:
    linear-gradient(rgba(8, 39, 82, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 39, 82, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fffdf8, #f7f0e2);
  background-size: 42px 42px, 42px 42px, auto;
}

.variant-b .hero::before {
  opacity: 0;
}

.variant-b .hero h1 {
  color: var(--navy);
  text-shadow: none;
}

.variant-b .hero-lead {
  color: #253e5c;
}

.variant-b .button-ghost {
  color: var(--navy);
  border-color: rgba(8, 39, 82, 0.3);
  background: rgba(255, 255, 255, 0.72);
}

.variant-b .hero-visual {
  border: 1px solid rgba(8, 39, 82, 0.14);
  border-radius: 18px;
  background: #fffaf0;
  box-shadow: 0 24px 70px rgba(8, 39, 82, 0.14);
}

.variant-b .flow-arrow {
  opacity: 0.72;
}

.variant-b .step-card {
  border-color: rgba(8, 39, 82, 0.16);
  box-shadow: 0 14px 28px rgba(8, 39, 82, 0.12);
}

.variant-b .sheets {
  background:
    linear-gradient(rgba(8, 39, 82, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 39, 82, 0.035) 1px, transparent 1px),
    #fffaf0;
  background-size: 34px 34px;
}

.variant-b .sheet-card {
  transform: rotate(-0.6deg);
  border-color: rgba(8, 39, 82, 0.18);
}

.variant-b .sheet-card.spicy {
  transform: rotate(0.6deg);
}

.variant-b .flow {
  color: var(--navy);
  background: #fbf8f0;
}

.variant-b .flow h2,
.variant-b .flow h3,
.variant-b .flow p {
  color: var(--navy);
}

.variant-b .flow .section-kicker {
  color: var(--mint-deep);
}

.variant-b .flow-steps article {
  border-color: rgba(8, 39, 82, 0.12);
  background: #fff;
}

.variant-b .flow-steps p {
  color: var(--muted);
}

@media (max-width: 768px) {
  .variant-b .hero-visual,
  .variant-b .sheet-card,
  .variant-b .sheet-card.spicy {
    transform: none;
  }
}

/* Variant compare safety: keep mobile layouts stacked after variant overrides. */
.variant-b .hero-lead span {
  display: block;
}

@media (max-width: 1024px) {
  .variant-b .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .variant-b .flow-arrow {
    top: 46px;
    right: 12px;
    width: 86%;
    opacity: 0.86;
  }

  .variant-b h2 {
    max-width: 100%;
    font-size: 1.7rem;
    line-height: 1.25;
    word-break: break-all;
  }

  .variant-b #problem-title {
    font-size: 1.46rem;
    line-height: 1.32;
  }
}

/* B案 revised: 診断シート依頼LP。添付A案の白地・罫線・大きい文字・カラーキャラ方向へ寄せる。 */
.variant-b {
  --navy: #082752;
  --navy-deep: #061b37;
  --yellow: #ffc21a;
  --yellow-deep: #f5b400;
  --ivory: #f5f0e7;
  --paper: #fffdf8;
  --line: rgba(8, 39, 82, 0.16);
  --shadow: 0 18px 42px rgba(8, 39, 82, 0.11);
  --radius: 10px;
  --max: 980px;
  --space: clamp(58px, 7vw, 86px);
  color: var(--navy);
  background: var(--ivory);
  font-size: 18px;
}

.variant-b .site-header,
.variant-b main {
  width: min(980px, calc(100% - 28px));
  margin-inline: auto;
  background: var(--paper);
  border-inline: 1px solid var(--line);
}

.variant-b .site-header {
  position: sticky;
  top: 0;
  gap: clamp(16px, 2vw, 24px);
  min-height: 86px;
  padding-inline: clamp(18px, 3vw, 40px);
  color: var(--navy);
  background:
    linear-gradient(rgba(8, 39, 82, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 39, 82, 0.035) 1px, transparent 1px),
    rgba(255, 253, 248, 0.97);
  background-size: 34px 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 34px 34px 0 0;
  box-shadow: 0 18px 42px rgba(8, 39, 82, 0.08);
}

.variant-b .brand span {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: 0.05em;
}

.variant-b .brand small {
  color: rgba(8, 39, 82, 0.62);
  letter-spacing: 0.18em;
}

.variant-b .brand {
  min-width: clamp(132px, 17vw, 210px);
}

.variant-b .brand img {
  width: clamp(138px, 17vw, 210px);
}

.variant-b .site-nav a {
  color: var(--navy);
  font-size: 0.94rem;
  white-space: nowrap;
}

.variant-b .header-cta {
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: none;
}

.variant-b main {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 34px 34px;
  box-shadow: 0 26px 72px rgba(8, 39, 82, 0.12);
}

.variant-b .hero {
  color: var(--navy);
  background:
    linear-gradient(rgba(8, 39, 82, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 39, 82, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.variant-b .hero-inner {
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
  gap: clamp(18px, 4vw, 44px);
  min-height: 680px;
  padding: clamp(54px, 7vw, 82px) clamp(30px, 6vw, 70px);
}

.variant-b .eyebrow,
.variant-b .section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 18px;
  border: 2px solid rgba(8, 39, 82, 0.82);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.variant-b .section-kicker {
  margin-inline: auto;
}

.variant-b h1 {
  max-width: 7.8em;
  margin-top: 0;
  color: var(--navy);
  font-size: clamp(3.7rem, 5.3vw, 5.15rem);
  line-height: 1.09;
  overflow-wrap: normal;
  word-break: keep-all;
  text-shadow: none;
}

.variant-b .hero h1::after {
  display: none;
}

.variant-b .hero-lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--navy);
  font-size: clamp(1.18rem, 1.9vw, 1.38rem);
  font-weight: 800;
  line-height: 1.9;
}

.variant-b .button {
  min-height: 66px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  white-space: nowrap;
}

.variant-b .button-primary::after {
  content: "→";
  margin-left: 22px;
  font-size: 1.35em;
  line-height: 1;
}

.variant-b .hero-visual {
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.variant-b .hero-character,
.variant-b .reason-sensei {
  filter: none;
}

.variant-b .hero-sensei {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  max-height: 470px;
  object-fit: contain;
}

.variant-b .hero-sheet-preview {
  position: absolute;
  right: clamp(0px, 2vw, 22px);
  bottom: 34px;
  z-index: 3;
  width: min(240px, 56vw);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.variant-b .hero-sheet-preview p,
.variant-b .hero-sheet-preview span {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.variant-b .hero-sheet-preview strong {
  display: block;
  margin: 8px 0;
  font-size: 1.6rem;
  line-height: 1.18;
}

.variant-b .section {
  background: var(--paper);
  border-top: 1px solid rgba(8, 39, 82, 0.08);
}

.variant-b .problem,
.variant-b .support,
.variant-b .final-cta {
  background: #f7f4ee;
}

.variant-b .section-inner {
  width: min(860px, calc(100% - 56px));
}

.variant-b .section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.variant-b h2 {
  color: var(--navy);
  font-size: clamp(2.25rem, 4.4vw, 3.45rem);
  line-height: 1.18;
}

.variant-b .problem .section-kicker {
  display: flex;
  justify-content: center;
  margin-inline: auto;
}

.variant-b #problem-title {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.variant-b .character-callout {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  max-width: 520px;
}

.variant-b .character-callout img {
  flex: 0 0 auto;
  height: auto;
  object-fit: contain;
}

.variant-b .character-callout p {
  position: relative;
  max-width: 270px;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 12px 24px rgba(8, 39, 82, 0.08);
  font-size: clamp(0.9rem, 1.25vw, 1rem);
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.variant-b .character-callout p::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: -9px;
  width: 18px;
  height: 18px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.variant-b .problem-callout {
  align-items: flex-start;
  justify-content: center;
  margin: 22px auto 26px;
}

.variant-b .problem-callout img {
  width: clamp(86px, 10vw, 128px);
}

.variant-b .problem-callout p {
  margin-top: clamp(30px, 3.4vw, 42px);
}

.variant-b .problem-callout p::after {
  top: clamp(12px, 2vw, 20px);
  bottom: auto;
}

.variant-b h3 {
  font-size: clamp(1.24rem, 2vw, 1.55rem);
}

.variant-b .section p {
  color: #293f5d;
  font-size: 1.06rem;
}

.variant-b .problem-panel,
.variant-b .sheet-card,
.variant-b .flow-steps article,
.variant-b .support-list article,
.variant-b .proof-list article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 39, 82, 0.08);
}

.variant-b .problem-panel {
  margin-top: 26px;
}

.variant-b .problem-row {
  grid-template-columns: 62px 1fr;
  padding: 28px;
}

.variant-b .problem-icon,
.variant-b .flow-steps span {
  color: var(--navy);
  background: #edf6f0;
}

.variant-b .sheets {
  background:
    linear-gradient(rgba(8, 39, 82, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 39, 82, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.variant-b .sheet-grid {
  gap: 22px;
}

.variant-b .sheet-card,
.variant-b .sheet-card.spicy {
  transform: none;
}

.variant-b .sheet-card-head span {
  color: var(--navy);
  background: var(--yellow);
}

.variant-b .spicy .sheet-card-head span {
  color: #fff;
  background: #293f5d;
}

.variant-b .flow {
  color: var(--navy);
  background: var(--paper);
}

.variant-b .flow-layout {
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.variant-b .flow-layout > div:first-child {
  text-align: center;
}

.variant-b .flow-layout > div:first-child p {
  max-width: 680px;
  margin-inline: auto;
  color: #293f5d;
}

.variant-b .flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.variant-b .flow-steps article {
  position: relative;
  display: block;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
}

.variant-b .flow-steps article > div {
  position: relative;
  z-index: 2;
}

.variant-b .flow-steps .flow-number {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: var(--navy);
  background: #edf6f0;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

.variant-b .flow-bg-icon {
  position: absolute;
  right: -10px;
  bottom: -18px;
  z-index: 1;
  width: clamp(118px, 12vw, 168px);
  height: clamp(118px, 12vw, 168px);
  fill: none;
  stroke: #d7e8df;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  pointer-events: none;
}

.variant-b .flow-steps article:hover .flow-bg-icon {
  opacity: 0.62;
}

.variant-b .support-layout {
  grid-template-columns: 1fr;
  gap: 24px;
}

.variant-b .support-copy {
  position: static;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.variant-b .support-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.variant-b .support-list article {
  grid-template-columns: 1fr;
  min-height: 190px;
  padding: 24px;
}

.variant-b .support-list span {
  display: inline-flex;
  place-items: initial;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--yellow);
  font-size: 0.86rem;
}

.variant-b .reason {
  background: var(--paper);
}

.variant-b .reason-panel {
  grid-template-columns: 1fr;
  background: #fff;
}

.variant-b .reason-copy {
  min-width: 0;
}

.variant-b .reason-copy h2 {
  max-width: 760px;
  font-size: clamp(2.25rem, 3.8vw, 3.15rem);
  text-wrap: balance;
}

.variant-b .sai-callout {
  align-items: center;
  margin-top: 24px;
}

.variant-b .sai-callout img {
  width: clamp(76px, 8vw, 108px);
}

.variant-b .sai-callout p {
  max-width: 300px;
}

.variant-b .tried-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.variant-b .tried-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 18px 20px;
  text-align: left;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
}

.variant-b .tried-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(8, 39, 82, 0.1);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: none;
}

.variant-b .tried-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: saturate(0.45) contrast(0.95);
  opacity: 0.82;
}

.variant-b .tried-list strong {
  display: block;
  max-width: 100%;
  color: var(--navy);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: anywhere;
  text-wrap: balance;
}

.variant-b .tried-list p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(0.78rem, 0.98vw, 0.88rem);
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.variant-b .reason-sensei {
  right: 0;
  bottom: -22px;
  width: min(25vw, 230px);
  opacity: 1;
}

.variant-b .final-cta {
  color: var(--navy);
  border-top: 1px solid rgba(8, 39, 82, 0.08);
}

.variant-b .final-cta h2,
.variant-b .final-cta p,
.variant-b .final-cta .section-kicker {
  color: var(--navy);
}

.variant-b .final-cta .section-kicker {
  color: var(--navy);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.variant-b .final-cta h2 {
  max-width: 880px;
  margin-inline: auto;
  margin-top: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.variant-b .final-cta p {
  color: #293f5d;
}

@media (max-width: 1024px) {
  .variant-b .site-header,
  .variant-b main {
    width: min(760px, calc(100% - 24px));
  }

  .variant-b .site-nav {
    display: none;
  }

  .variant-b .header-cta {
    margin-left: auto;
  }

  .variant-b .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .variant-b .hero-visual {
    min-height: 360px;
  }

  .variant-b .hero-sensei {
    width: min(72%, 310px);
  }

  .variant-b .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .variant-b {
    font-size: 16px;
  }

  .variant-b .site-header {
    min-height: 70px;
    border-radius: 22px 22px 0 0;
  }

  .variant-b .brand {
    min-width: 118px;
  }

  .variant-b .brand img {
    width: 118px;
  }

  .variant-b .site-header,
  .variant-b main {
    width: calc(100% - 18px);
  }

  .variant-b .site-nav {
    display: none;
  }

  .variant-b .hero-inner,
  .variant-b .section-inner,
  .variant-b .final-inner {
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
  }

  .variant-b .hero-inner {
    padding: 38px 0 54px;
  }

  .variant-b h1 {
    font-size: clamp(2.65rem, 11vw, 3.35rem);
  }

  .variant-b h2 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    word-break: auto-phrase;
  }

  .variant-b .hero-lead {
    font-size: 1.05rem;
    line-height: 1.85;
  }

  .variant-b .button {
    width: 100%;
    min-height: 62px;
  }

  .variant-b .hero-visual {
    place-items: start center;
    min-height: 300px;
    margin-top: 12px;
  }

  .variant-b .hero-sensei {
    width: min(68%, 260px);
  }

  .variant-b .hero-sheet-preview {
    right: auto;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: min(210px, 58vw);
    padding: 16px;
  }

  .variant-b .flow-steps,
  .variant-b .support-list,
  .variant-b .tried-list,
  .variant-b .sheet-grid {
    grid-template-columns: 1fr;
  }

  .variant-b .flow-steps article,
  .variant-b .support-list article {
    min-height: 0;
  }

  .variant-b .flow-bg-icon {
    right: -8px;
    bottom: -16px;
    width: 132px;
    height: 132px;
    opacity: 0.46;
  }

  .variant-b .character-callout {
    gap: 10px;
  }

  .variant-b .character-callout p {
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .variant-b .problem-callout {
    margin: 18px auto 24px;
  }

  .variant-b .problem-callout img {
    width: clamp(74px, 20vw, 96px);
  }

  .variant-b .sai-callout {
    justify-content: center;
    margin-top: 20px;
  }

  .variant-b .sai-callout img {
    width: clamp(70px, 18vw, 90px);
  }

  .variant-b .reason-panel {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }

  .variant-b .reason-sensei {
    right: 8px;
    width: 150px;
  }
}

@media (max-width: 430px) {
  .variant-b h1 {
    font-size: clamp(2.35rem, 10.8vw, 2.72rem);
    line-height: 1.08;
  }

  .variant-b h2,
  .variant-b #problem-title {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  .variant-b .problem-row {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .variant-b .character-callout {
    align-items: center;
  }

  .variant-b .character-callout p {
    max-width: 210px;
  }

  .variant-b .problem-callout img {
    width: 72px;
  }

  .variant-b .sai-callout img {
    width: 68px;
  }

  .variant-b .reason-panel {
    padding: 30px 22px 44px;
  }

  .variant-b .reason-copy h2 {
    font-size: clamp(1.72rem, 8vw, 2.05rem);
    line-height: 1.26;
    max-width: 100%;
  }

  .variant-b .reason-copy > p {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .variant-b .reason-copy .section-kicker {
    margin-bottom: 14px;
  }

  .variant-b .hero-sheet-preview {
    width: min(210px, 64vw);
  }
}

/* Final hero treatment: place one teacher character beside the headline. */
.variant-b .hero-inner {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: clamp(14px, 2.4vw, 34px);
}

.variant-b .hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 46vw, 600px);
}

.variant-b .hero-sensei {
  position: static;
  width: clamp(300px, 30vw, 460px);
  max-height: 620px;
  object-fit: contain;
  filter: none;
}

.variant-b .reason-panel {
  overflow: visible;
}

.variant-b .reason-sensei,
.variant-b .hero-sheet-preview {
  display: none;
}

@media (max-width: 1024px) {
  .variant-b .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.4fr);
    min-height: 600px;
  }

  .variant-b .hero-sensei {
    width: clamp(260px, 31vw, 340px);
  }
}

@media (max-width: 768px) {
  .variant-b .hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    align-items: start;
    gap: 12px;
    min-height: 0;
    padding: 34px 0 58px;
  }

  .variant-b .hero-copy {
    display: contents;
  }

  .variant-b .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .variant-b h1 {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    max-width: 9.2em;
    margin: 8px auto 0;
    font-size: clamp(2.45rem, 10.4vw, 3.45rem);
    line-height: 1.16;
    text-align: center;
  }

  .variant-b .hero-visual {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    justify-self: end;
    align-self: start;
    min-height: 0;
    margin: -6px 4px -6px 0;
  }

  .variant-b .hero-sensei {
    width: clamp(128px, 35vw, 170px);
    max-height: 210px;
  }

  .variant-b .hero-lead,
  .variant-b .hero-actions {
    grid-column: 1 / -1;
  }

  .variant-b .hero-lead {
    max-width: 36em;
    margin-inline: auto;
    margin-top: 2px;
    text-align: center;
  }

  .variant-b .hero-actions {
    margin-top: 8px;
  }
}

@media (max-width: 430px) {
  .variant-b .hero-inner {
    grid-template-columns: 1fr;
  }

  .variant-b h1 {
    font-size: clamp(2.28rem, 9.85vw, 2.85rem);
    line-height: 1.18;
  }

  .variant-b .header-cta {
    min-height: 42px;
    padding-inline: 15px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .variant-b .hero-sensei {
    width: clamp(124px, 35vw, 150px);
    max-height: 190px;
  }
}
