:root {
  --blue-950: #0d3156;
  --blue-900: #11416f;
  --blue-800: #1f5a91;
  --blue-600: #3478b8;
  --blue-100: #e8f1f8;
  --orange: #e87518;
  --orange-dark: #c65f10;
  --yellow: #f4c244;
  --ink: #17212b;
  --muted: #5b6876;
  --line: #d9e3eb;
  --paper: #f6f4ef;
  --soft: #f5f9fc;
  --white: #ffffff;
  --shadow-soft: 0 16px 34px rgba(17, 65, 111, 0.1);
  --shadow-card: 0 10px 22px rgba(17, 65, 111, 0.08);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.78;
  background: var(--white);
}

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

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--blue-950);
  font-size: clamp(2.45rem, 5vw, 3.15rem);
  letter-spacing: 0;
  line-height: 1.13;
}

h1 span {
  color: var(--orange);
}

h2 {
  margin-bottom: 16px;
  color: var(--blue-900);
  font-size: clamp(1.65rem, 3vw, 2.08rem);
  letter-spacing: 0;
  line-height: 1.34;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-900);
  font-size: 1.08rem;
  letter-spacing: 0;
  line-height: 1.45;
}

p {
  margin-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: var(--blue-900);
  border-radius: 6px;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  color: var(--blue-900);
  font-weight: 900;
  line-height: 1.25;
}

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

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  color: var(--blue-900);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav a {
  padding: 7px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  background: var(--orange);
  border-radius: 6px;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--orange-dark);
}

.hero {
  min-height: min(690px, calc(100vh - 72px));
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 255, 255, 0.98) 42%,
      rgba(255, 255, 255, 0.72) 63%,
      rgba(255, 255, 255, 0.18) 100%
    ),
    url("assets/hero-background-integrated.png") right center / cover no-repeat,
    var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  max-width: 1180px;
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 82px) clamp(20px, 5vw, 64px);
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.4;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 26px;
  color: #273a4b;
  font-size: 1.03rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.35;
}

.button.primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 12px 24px rgba(232, 117, 24, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--orange-dark);
}

.button.secondary {
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--blue-800);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--white);
  background: var(--blue-800);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
}

.hero-facts div {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: baseline;
  min-height: 40px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(17, 65, 111, 0.07);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.hero-facts dd {
  margin: 0;
  color: var(--blue-900);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.proof-strip {
  padding: 20px clamp(20px, 5vw, 64px);
  background: var(--blue-950);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.proof-grid div {
  min-height: 104px;
  padding: 18px 18px 16px;
  background: #123c66;
}

.proof-grid span {
  display: block;
  margin-bottom: 5px;
  color: #ffc36f;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.25;
}

.proof-grid p {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.56;
}

.section {
  padding: clamp(66px, 8vw, 100px) clamp(20px, 5vw, 64px);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading p,
.method-copy p,
.diagnosis-layout > div:first-child p,
.support-layout > div:first-child p,
.trial p,
.access p {
  color: #273a4b;
}

.section-heading.compact {
  max-width: 820px;
}

.concern,
.method,
.support,
.teachers,
.faq {
  background: var(--white);
}

.features,
.cycle,
.results,
.trial {
  background: var(--soft);
}

.diagnosis,
.access {
  background: var(--paper);
}

.concern-layout,
.diagnosis-layout,
.method-layout,
.support-layout,
.trial-layout,
.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 68px);
  align-items: start;
}

.concern-list {
  display: grid;
  gap: 10px;
}

.concern-list p {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  margin: 0;
  padding: 15px 18px;
  color: #273a4b;
  font-weight: 700;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.concern-list p::before {
  width: 14px;
  height: 14px;
  margin-top: 0.46em;
  background: var(--orange);
  border-radius: 4px;
  content: "";
}

.diagnosis-cards {
  display: grid;
  gap: 12px;
}

.diagnosis-cards article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.diagnosis-cards span {
  grid-row: span 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: var(--blue-900);
  border-radius: 6px;
}

.diagnosis-cards h3 {
  margin-bottom: 0;
}

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

.feature-grid,
.teacher-grid,
.results-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.feature-grid,
.results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.teacher-card,
.results-grid article,
.faq-grid article,
.trial-steps,
.contact-box,
.support-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.feature-card {
  min-height: 274px;
  padding: 24px;
  text-align: center;
}

.feature-card p,
.teacher-card p,
.results-grid p,
.faq-grid p,
.cycle-grid p {
  color: var(--muted);
}

.card-icon-img {
  display: block;
  width: 138px;
  height: 122px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.comparison {
  background: var(--white);
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.comparison-row {
  display: grid;
  grid-template-columns: 0.86fr repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row > div {
  min-height: 72px;
  padding: 16px;
  color: #273a4b;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.6;
  background: var(--white);
  border-left: 1px solid var(--line);
}

.comparison-row > div:first-child {
  color: var(--blue-900);
  font-weight: 900;
  background: #f8fbfd;
  border-left: 0;
}

.comparison-row > div:nth-child(2) {
  color: #24384a;
  font-weight: 900;
  background: #fff8ef;
}

.comparison-row.header > div {
  min-height: auto;
  color: var(--white);
  font-weight: 900;
  background: var(--blue-900);
}

.diagram-figure,
.cycle-diagram {
  margin: 0;
}

.diagram-figure {
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f2f7fb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.diagram-figure img,
.cycle-diagram img {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  border-radius: 0;
}

.diagram-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.cycle-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 5vw, 52px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    linear-gradient(135deg, rgba(31, 90, 145, 0.12), rgba(232, 117, 24, 0.09));
  border: 1px solid #dce8f1;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.cycle-diagram {
  max-width: 490px;
}

.cycle-note {
  max-width: 680px;
  margin-bottom: 16px;
  color: #273a4b;
  font-weight: 800;
}

.cycle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cycle-grid li {
  min-height: 176px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue-800);
  border-radius: var(--radius);
}

.cycle-grid li:nth-child(2) {
  border-top-color: var(--orange);
}

.cycle-grid li:nth-child(3) {
  border-top-color: var(--yellow);
}

.cycle-grid li:nth-child(4) {
  border-top-color: var(--blue-600);
}

.time {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.support-list {
  padding: 26px;
}

.support-list dl {
  display: grid;
  margin: 0;
}

.support-list dl div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.support-list dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

.support-list dt {
  color: var(--blue-900);
  font-weight: 900;
}

.support-list dd {
  margin: 0;
  color: #273a4b;
  font-weight: 700;
}

.results-grid article {
  min-height: 224px;
  padding: 26px;
}

.results-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.1;
}

.teachers .section-heading {
  margin-bottom: 28px;
}

.teacher-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-card {
  padding: 24px;
  text-align: center;
}

.teacher-portrait {
  display: block;
  width: min(100%, 190px);
  margin: 0 auto 16px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

.teacher-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
  text-align: left;
}

.teacher-card li {
  position: relative;
  padding-left: 18px;
  color: #273a4b;
  font-size: 0.93rem;
  font-weight: 700;
}

.teacher-card li::before {
  position: absolute;
  left: 0;
  color: var(--orange);
  content: "●";
}

.parent-message {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(13, 49, 86, 0.98), rgba(31, 90, 145, 0.96)),
    var(--blue-900);
}

.parent-message .eyebrow,
.parent-message h2,
.parent-message p {
  color: var(--white);
}

.parent-message .eyebrow {
  color: #ffc36f;
}

.parent-box {
  max-width: 860px;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid article {
  padding: 22px;
  background: #f8fbfd;
  box-shadow: none;
}

.faq-grid h3 {
  padding-left: 30px;
  text-indent: -30px;
}

.faq-grid h3::before {
  margin-right: 8px;
  color: var(--orange);
  content: "Q.";
}

.trial-layout,
.access-layout {
  align-items: center;
}

.trial-steps,
.contact-box {
  padding: 28px;
}

.trial-steps ol {
  display: grid;
  gap: 10px;
  padding-left: 1.2em;
  margin: 14px 0 0;
  color: #273a4b;
  font-weight: 800;
}

.access-info {
  display: grid;
  gap: 18px;
}

.contact-box {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-box strong {
  color: var(--blue-900);
  font-size: 1.25rem;
}

.contact-box a {
  color: var(--blue-900);
  font-weight: 900;
}

.map-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--blue-800);
  border-radius: 6px;
}

.map-panel {
  display: grid;
  gap: 12px;
}

.map-embed {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #edf4f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.google-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.map-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px) 0 0 / 54px 54px,
    #eaf3f0;
}

.map-preview::after {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 10px;
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 66, 131, 0.14);
  border-radius: 6px;
  content: "簡易アクセスマップ";
}

.map-road {
  position: absolute;
  display: block;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(75, 101, 124, 0.14);
}

.map-road.vertical {
  top: -20px;
  left: 48%;
  width: 68px;
  height: 500px;
  transform: rotate(4deg);
}

.map-road.horizontal {
  top: 48%;
  left: -40px;
  width: 720px;
  height: 58px;
  transform: rotate(-2deg);
}

.map-road.diagonal {
  top: 18%;
  left: -40px;
  width: 760px;
  height: 44px;
  transform: rotate(-22deg);
}

.map-station,
.map-note,
.map-pin {
  position: absolute;
  z-index: 2;
  font-weight: 900;
}

.map-station {
  padding: 8px 12px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 66, 131, 0.16);
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0, 51, 108, 0.08);
}

.map-station.metro {
  top: 22%;
  left: 12%;
}

.map-station.hankyu {
  right: 12%;
  bottom: 24%;
}

.map-station.umeda {
  left: 10%;
  bottom: 12%;
  color: #6a4a13;
  background: rgba(255, 247, 227, 0.92);
  border-color: rgba(243, 164, 31, 0.24);
}

.map-pin {
  top: 48%;
  left: 52%;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--white);
  transform: translate(-50%, -72%);
}

.map-pin::before {
  width: 28px;
  height: 28px;
  background: var(--orange);
  border: 5px solid var(--white);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 12px 24px rgba(212, 93, 0, 0.28);
  content: "";
  transform: rotate(-45deg);
}

.map-pin span {
  padding: 9px 14px;
  background: var(--blue-800);
  border-radius: 6px;
  box-shadow: 0 14px 24px rgba(0, 51, 108, 0.18);
}

.map-note {
  top: 12%;
  right: 9%;
  padding: 10px 14px;
  color: #4c3c13;
  background: #fff2c7;
  border: 1px solid rgba(243, 164, 31, 0.36);
  border-radius: 999px;
}

.map-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--white);
  font-weight: 900;
  background: var(--blue-800);
  border: 1px solid var(--blue-800);
  border-radius: 6px;
}

.footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  color: var(--white);
  background: var(--blue-950);
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 900;
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px 18px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(255, 255, 255, 0.96) 58%,
        rgba(255, 255, 255, 0.68) 100%
      ),
      url("assets/hero-background-integrated.png") center bottom / cover no-repeat,
      var(--paper);
  }

  .hero-inner,
  .concern-layout,
  .diagnosis-layout,
  .method-layout,
  .cycle-board,
  .support-layout,
  .trial-layout,
  .access-layout {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-row {
    min-width: 850px;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: 0;
  }

  .header-cta {
    display: none;
  }

  .nav {
    gap: 14px;
    font-size: 0.84rem;
  }

  .hero-inner {
    padding-top: 42px;
    padding-bottom: 56px;
  }

  h1 {
    font-size: 1.98rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts div {
    grid-template-columns: 1fr;
    gap: 2px;
    width: calc(50% - 4px);
  }

  .proof-grid,
  .feature-grid,
  .cycle-grid,
  .teacher-grid,
  .results-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid div,
  .feature-card,
  .cycle-grid li,
  .results-grid article {
    min-height: auto;
  }

  .diagnosis-cards article {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 18px;
  }

  .diagnosis-cards span {
    width: 38px;
    height: 38px;
    font-size: 0.86rem;
  }

  .cycle-board {
    padding: 20px;
  }

  .support-list,
  .trial-steps,
  .contact-box {
    padding: 22px;
  }

  .support-list dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .teacher-portrait {
    width: 100%;
    max-width: 190px;
  }

  .map-embed {
    min-height: 340px;
  }

  .map-station,
  .map-note,
  .map-pin span {
    font-size: 0.8rem;
  }

  .map-station.metro {
    left: 6%;
  }

  .map-station.hankyu {
    right: 6%;
  }

  .map-note {
    top: 9%;
    right: 6%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    color: var(--white);
    font-weight: 900;
    background: var(--orange);
    border-radius: 6px;
    box-shadow: 0 16px 30px rgba(23, 33, 43, 0.22);
  }
}

@media (max-width: 420px) {
  .hero-facts div {
    width: 100%;
  }
}
