:root {
  --base: #f7fafc;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #536074;
  --line: #d9e2ec;
  --main: #163b73;
  --main-2: #0f2a52;
  --green: #69d84f;
  --cyan: #2fb7c7;
  --red: #f25c54;
  --yellow: #f7c948;
  --shadow: 0 22px 70px rgba(17, 24, 39, .12);
  --radius: 8px;
  --max: 1240px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--base);
  font-family: var(--font);
  line-height: 1.75;
  letter-spacing: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.lead,
.btn,
summary {
  word-break: auto-phrase;
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 226, 236, .92);
  background: rgba(247, 250, 252, .92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 190px;
  flex: 0 0 auto;
}

.brand img {
  width: 156px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--main-2);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--red);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--main);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(22, 59, 115, .2);
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 70px 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--main);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--green);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .72fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 42px;
}

.section-head h2,
.subpage-hero h1 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.13;
  letter-spacing: 0;
}

.section-head p,
.lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 12% 18%, rgba(105, 216, 79, .18), transparent 28%),
    linear-gradient(135deg, #eef6ff 0%, #f7fafc 48%, #eefdf9 100%);
}

.hero-inner {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 74px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(22, 59, 115, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--main-2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.stack {
  position: relative;
}

.stack-card {
  position: sticky;
  top: 92px;
  min-height: min(640px, calc(100vh - 118px));
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .78fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: center;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(22, 59, 115, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stack-card:nth-child(2) {
  top: 108px;
  background: #f8fffb;
}

.stack-card:nth-child(3) {
  top: 124px;
  margin-bottom: 0;
  background: #102b53;
  color: #fff;
}

.stack-copy {
  position: relative;
  z-index: 1;
}

.stack-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 900;
  margin-bottom: 18px;
}

.stack-index::before {
  content: "";
  width: 44px;
  height: 3px;
  background: currentColor;
}

.stack-card h1,
.stack-card h2 {
  max-width: 720px;
  font-size: clamp(36px, 4.9vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

.stack-card h1 span,
.stack-card h2 span {
  display: block;
  white-space: nowrap;
}

.headline-line,
.nowrap {
  white-space: nowrap;
}

.stack-card .hero-text,
.stack-card .stack-text {
  max-width: 650px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.stack-card:nth-child(3) .stack-text {
  color: rgba(255, 255, 255, .78);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 26px rgba(242, 92, 84, .22);
}

.btn-secondary {
  border-color: rgba(22, 59, 115, .22);
  background: #fff;
  color: var(--main);
}

.btn-dark {
  background: #fff;
  color: var(--main-2);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}

.visual-frame {
  position: relative;
  min-height: 330px;
  border-radius: 8px;
  overflow: hidden;
  background: #dff5f3;
  border: 1px solid rgba(22, 59, 115, .12);
}

.visual-frame img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  color: var(--main-2);
}

.visual-caption strong {
  font-size: 20px;
  line-height: 1.35;
}

.visual-caption span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.stat-tile,
.feature-card,
.voice-card,
.faq-box,
.price-panel,
.blog-card,
.result-item {
  border: 1px solid rgba(22, 59, 115, .12);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-tile {
  padding: 14px;
}

.stat-tile b {
  display: block;
  color: var(--main);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1;
}

.stat-tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.proof-pull {
  align-self: center;
  color: var(--main);
  font-size: clamp(72px, 9vw, 112px);
  font-weight: 900;
  line-height: .9;
}

.feature-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.feature-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #eef4f8;
}

.photo-contain {
  object-fit: contain !important;
  background: #f7fafc;
}

.feature-card .label {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--main);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.feature-card p,
.voice-card p,
.result-item p,
.blog-card p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 16px;
  color: var(--main);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--main-2);
}

.lesson-schedule {
  scroll-margin-top: 96px;
  background: #eef6ff;
}

.calendar-frame {
  overflow: hidden;
  border: 1px solid rgba(22, 59, 115, .14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.calendar-frame iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  background: #fff;
}

.calendar-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.calendar-note a {
  color: var(--main);
  font-weight: 800;
  text-underline-offset: 4px;
}

.screening {
  background: #fff;
}

.screening-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(22, 59, 115, .12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.screen-col {
  padding: clamp(28px, 4vw, 46px);
}

.screen-col.is-fit {
  background: #f1fff0;
}

.screen-col.is-not {
  background: #fff7f6;
}

.screen-col h3 {
  margin-bottom: 18px;
  font-size: 28px;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  content: "";
  width: 15px;
  height: 15px;
  border: 3px solid var(--green);
  border-radius: 50%;
}

.is-not .check-list li::before {
  border-color: var(--red);
}

.band {
  background: var(--main-2);
  color: #fff;
}

.band .section-head p,
.band .feature-card p {
  color: rgba(255, 255, 255, .88);
}

.band .section-label,
.band .feature-card .label {
  color: #8ff071;
}

.band .feature-card {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .26);
}

.band .feature-card h3 {
  color: #fff;
}

.voice-card {
  padding: 28px;
}

.voice-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--main);
  font-size: 18px;
}

.voice-meta {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.price-panel {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(47, 183, 199, .13), transparent 46%),
    #fff;
  box-shadow: var(--shadow);
}

.price {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
  color: var(--main);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 900;
  line-height: .9;
}

.price small {
  font-size: 18px;
  line-height: 1.2;
  padding-bottom: 7px;
  white-space: nowrap;
}

.flow {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.flow-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(22, 59, 115, .12);
  border-radius: var(--radius);
  background: #fff;
}

.flow-step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-box {
  padding: 0;
}

.faq-box summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--main-2);
  font-weight: 900;
}

.faq-box p {
  padding: 0 24px 22px;
  color: var(--muted);
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--main-2);
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(16, 43, 83, .98) 0%, rgba(16, 43, 83, .88) 52%, rgba(242, 92, 84, .56) 100%),
    url("../src/photo-video-web.jpg") center / cover no-repeat;
}

.cta-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
}

.cta-inner h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.14;
}

.cta-inner p {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .78);
}

.subpage-hero {
  padding: 74px 0 64px;
  background:
    linear-gradient(135deg, rgba(22, 59, 115, .08), rgba(105, 216, 79, .12)),
    var(--base);
}

.subpage-hero p {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.media-card {
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(22, 59, 115, .12);
  background: #e9f7fb;
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 16px;
  text-decoration: none;
}

.blog-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

.blog-card h3 {
  margin: 8px 0;
  font-size: 22px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(22, 59, 115, .16);
  border-radius: var(--radius);
  background: #fff;
  color: var(--main);
  font-weight: 900;
  text-decoration: none;
}

.pagination .current {
  background: var(--main);
  color: #fff;
}

.post {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.post h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.16;
}

.post h2 {
  margin-top: 52px;
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.35;
}

.post p {
  margin-top: 18px;
  color: #263244;
}

.post-meta {
  margin-bottom: 16px;
  color: var(--main);
  font-weight: 900;
}

.post-content {
  margin-top: 32px;
}

.post-content > * + * {
  margin-top: 18px;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
}

.notice {
  padding: 18px 20px;
  border-left: 5px solid var(--yellow);
  background: #fff9df;
  color: #57440a;
}

.site-footer {
  padding: 54px 0 32px;
  background: #0c1d38;
  color: rgba(255, 255, 255, .78);
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1fr);
  gap: 50px;
}

.footer-logo {
  width: 178px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  justify-content: flex-end;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.copyright {
  width: min(var(--max), calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .nav {
    order: 3;
    display: flex;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 0 2px;
    font-size: 13px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .brand {
    min-width: 0;
  }

  .header-cta {
    margin-left: auto;
  }

  .stack-card,
  .section-head,
  .price-panel,
  .cta-inner,
  .footer-inner,
  .voice-grid {
    grid-template-columns: 1fr;
  }

  .stack-card {
    position: relative;
    top: auto;
    min-height: auto;
    gap: 24px;
  }

  .stack-card:nth-child(2),
  .stack-card:nth-child(3) {
    top: auto;
  }

  .visual-frame,
  .visual-frame img {
    min-height: 300px;
  }

  .grid-3,
  .grid-2,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .proof-pull {
    font-size: clamp(64px, 20vw, 96px);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .wrap,
  .header-inner,
  .footer-inner,
  .copyright,
  .cta-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 132px;
  }

  .header-cta {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero-inner {
    width: 100%;
    padding-top: 16px;
    padding-bottom: 34px;
  }

  .hero-kicker {
    display: none;
  }

  .stack {
    width: min(100% - 28px, var(--max));
    margin: 0 auto;
  }

  .stack-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 16px 42px rgba(17, 24, 39, .1);
  }

  .stack-card h1,
  .stack-card h2 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.14;
  }

  .stack-card h1 span,
  .stack-card h2 span,
  .headline-line,
  .nowrap {
    white-space: normal;
  }

  .stack-card .hero-text,
  .stack-card .stack-text {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.72;
  }

  .stack-index {
    margin-bottom: 12px;
  }

  .stack-index::before {
    width: 36px;
  }

  .stack-card:first-child .visual-frame {
    order: 2;
    margin-top: 18px;
  }

  .stack-card:first-child .stack-copy {
    display: contents;
  }

  .stack-card:first-child .stack-index,
  .stack-card:first-child h1,
  .stack-card:first-child .hero-text {
    order: 1;
  }

  .stack-card:first-child .hero-actions {
    order: 3;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    margin-top: 20px;
  }

  .btn {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
  }

  .visual-frame,
  .visual-frame img {
    min-height: 238px;
  }

  .stack-card:first-child .visual-frame,
  .stack-card:first-child .visual-frame img {
    min-height: 168px;
    max-height: 190px;
  }

  .visual-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px;
  }

  .visual-caption strong {
    font-size: 17px;
  }

  .stat-strip {
    gap: 10px;
  }

  .stat-tile b {
    font-size: 28px;
  }

  .stat-strip,
  .screening-board,
  .blog-card {
    grid-template-columns: 1fr;
  }

  .section,
  .section-tight {
    padding: 64px 0;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

  .lesson-schedule {
    scroll-margin-top: 148px;
  }

  .calendar-frame iframe {
    height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

