:root {
  --blue: #1e3a5f;
  --blue-dark: #142a46;
  --blue-soft: #eaf0f7;
  --white: #f8fafc;
  --red: #d64545;
  --red-dark: #b93737;
  --ink: #172033;
  --muted: #667085;
  --line: #dce4ee;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(30, 58, 95, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(220, 228, 238, 0.75);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(30, 58, 95, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--blue);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue);
  border-radius: 999px;
}

.section {
  padding: 96px 0;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.section-soft {
  background: #eef4f9;
}

.section-dark {
  color: #ffffff;
  background: var(--blue);
}

.section-dark .eyebrow {
  color: #ffb3b3;
}

.section-dark p,
.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 80px 0 56px;
  color: #ffffff;
  background: var(--blue);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 42, 70, 0.98) 0%, rgba(30, 58, 95, 0.92) 48%, rgba(214, 69, 69, 0.5) 100%),
    url("https://images.unsplash.com/photo-1526481280693-3bfa7568e0f3?auto=format&fit=crop&w=1800&q=80") center/cover;
  transform: scale(1.01);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 72px;
  content: "";
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), var(--white));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: 54px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 14px 0 20px;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 18px 38px rgba(214, 69, 69, 0.28);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.hero-proof {
  margin-top: 28px;
}

.hero-proof span {
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.language-card {
  padding: 34px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.language-card .jp {
  display: block;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
}

.language-card h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 1.72rem;
  line-height: 1.14;
}

.language-card p {
  margin: 0;
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-stats div {
  min-height: 102px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  text-align: center;
}

.mini-stats strong {
  display: block;
  color: #ffffff;
  font-size: 1.26rem;
}

.mini-stats span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
}

.two-column {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 62px;
}

.section-heading h2,
.feature-copy h2,
.about-copy h2,
.contact-info h2 {
  margin: 12px 0 0;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-heading p,
.feature-copy p,
.about-copy p,
.contact-info p,
.section-text p {
  color: var(--muted);
  font-size: 1.03rem;
}

.section-text p:first-child {
  margin-top: 0;
}

.centered {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.centered .eyebrow {
  justify-content: center;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.info-card,
.step,
.price-card,
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(30, 58, 95, 0.08);
}

.info-card {
  min-height: 218px;
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.info-card h3,
.step h3,
.price-card h3,
.form-card h3 {
  margin: 18px 0 8px;
  color: var(--blue);
  font-size: 1.15rem;
  line-height: 1.25;
}

.info-card p,
.step p {
  margin: 0;
  color: var(--muted);
}

.split-feature {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span {
  padding: 12px 16px;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(30, 58, 95, 0.07);
}

.format-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: start;
}

.section-dark .section-heading h2 {
  color: #ffffff;
}

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

.format-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.format-item strong,
.format-item span {
  display: block;
}

.format-item strong {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.format-item span {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.54fr);
  gap: 48px;
  align-items: center;
}

.price-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.price-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  content: "";
  background: var(--red);
}

.plan-label {
  display: inline-flex;
  padding: 8px 12px;
  color: var(--red);
  background: #fff0f0;
  border-radius: 8px;
  font-weight: 800;
}

.price-card h3 {
  margin-top: 26px;
  font-size: 2.2rem;
}

.price-detail {
  margin: 0 0 24px;
  color: var(--muted);
}

.price {
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.trial {
  padding: 72px 0;
}

.trial-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.trial h2 {
  max-width: 760px;
  margin: 10px 0;
  color: var(--blue);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.trial p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: steps;
}

.step {
  min-height: 230px;
  padding: 26px;
}

.step > span {
  display: inline-flex;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) 1fr;
  gap: 58px;
  align-items: center;
}

.about-photo {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: end start;
  overflow: hidden;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(30, 58, 95, 0), rgba(30, 58, 95, 0.86)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1000&q=80") center/cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-photo span {
  font-size: 2.6rem;
  font-weight: 800;
}

.contact-section {
  background: #ffffff;
}

.contact-grid,
.schedule-grid {
  display: grid;
  grid-template-columns: 0.84fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  padding: 14px 16px;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.form-card {
  min-width: 0;
  padding: 28px;
  overflow: hidden;
}

.section-dark .form-card {
  color: var(--ink);
}

.form-card h3 {
  margin-top: 0;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  display: block;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

input[type="date"],
input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
  min-width: 0;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

textarea {
  resize: vertical;
  min-height: 118px;
  padding: 13px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.form-row label {
  min-width: 0;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.form-status.success {
  color: #157347;
}

.footer {
  padding: 32px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
  }

  .hero {
    min-height: auto;
    padding: 76px 0 70px;
  }

  .hero-grid,
  .two-column,
  .split-feature,
  .format-grid,
  .pricing-layout,
  .about-layout,
  .contact-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

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

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

@media (max-width: 640px) {
  .container,
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-copy h1 {
    font-size: clamp(2.58rem, 15vw, 4rem);
  }

  .hero-actions .btn,
  .trial-content .btn,
  .price-card .btn,
  .schedule-card .btn,
  .form-card .btn {
    width: 100%;
  }

  .mini-stats,
  .six-grid,
  .four-grid,
  .steps,
  .contact-links,
  .form-row {
    grid-template-columns: 1fr;
  }

  .language-card,
  .price-card,
  .form-card,
  .info-card,
  .step {
    padding: 22px;
  }

  .language-card .jp {
    font-size: 3.4rem;
  }

  .about-photo {
    min-height: 360px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
