:root {
  --ink: #28243d;
  --muted: #6f6b7b;
  --line: #ecdfe7;
  --paper: #fffaf8;
  --surface: #ffffff;
  --soft: #fff1ef;
  --mist: #eef7ff;
  --accent: #ee6f67;
  --accent-dark: #d95750;
  --accent-blue: #6fa8dc;
  --accent-violet: #9a82d7;
  --teal: #147b73;
  --gold: #a66a23;
  --shadow: 0 18px 48px rgba(71, 52, 80, 0.12);
  --shadow-soft: 0 10px 28px rgba(71, 52, 80, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf8 0%, #f8fbff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.has-mobile-cta {
  padding-bottom: 72px;
}

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

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

.logo-image {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(255, 250, 248, 0.9);
  border-bottom: 1px solid rgba(236, 223, 231, 0.82);
  box-shadow: 0 10px 26px rgba(71, 52, 80, 0.06);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.brand span {
  line-height: 1.2;
}

.logo-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

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

.site-nav a,
.header-cta,
.button,
.mobile-sticky-cta {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #e75f76 100%);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(238, 111, 103, 0.28);
  font-weight: 800;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(238, 111, 103, 0.34);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72svh, 620px);
  color: var(--ink);
  overflow: hidden;
  background: linear-gradient(118deg, #fffaf8 0%, #fff0f1 48%, #eef7ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 248, 0.98) 0%, rgba(255, 246, 244, 0.94) 48%, rgba(239, 247, 255, 0.68) 100%),
    url("assets/hero-online-lesson.jpg") right center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(238, 111, 103, 0.34) 24%, rgba(111, 168, 220, 0.34) 76%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 64px;
}

.hero-logo {
  width: clamp(76px, 8vw, 96px);
  margin: 0 0 16px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: 3.35rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 720px;
  color: #312a47;
  font-size: 1.36rem;
  font-weight: 850;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hero-copy {
  margin: 12px 0 0;
  max-width: 610px;
  color: var(--muted);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.hero-lead span,
.hero-copy span {
  display: block;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #e75f76 100%);
  box-shadow: 0 14px 30px rgba(238, 111, 103, 0.3);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, var(--accent-dark) 0%, #d84d68 100%);
  box-shadow: 0 18px 36px rgba(238, 111, 103, 0.36);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(238, 111, 103, 0.28);
  box-shadow: 0 10px 24px rgba(71, 52, 80, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(238, 111, 103, 0.44);
  background: #ffffff;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.final-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #3e3854;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(238, 111, 103, 0.18);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(71, 52, 80, 0.06);
  font-size: 0.88rem;
  font-weight: 800;
}

.section {
  padding: 88px 0;
  background: var(--paper);
}

.section-light {
  background: linear-gradient(180deg, #fff5f2 0%, #f4f9ff 100%);
}

.section-accent {
  background: linear-gradient(120deg, #fff3f0 0%, #fff9f4 48%, #eef8ff 100%);
}

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

.narrow {
  width: min(860px, calc(100% - 48px));
}

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

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.check-item {
  position: relative;
  min-height: 126px;
  padding: 22px 18px 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(238, 111, 103, 0.15);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.check-item::before {
  content: "";
  display: block;
  width: 17px;
  height: 10px;
  margin: 0 0 18px 2px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.lesson-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
  align-items: start;
}

.lesson-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(111, 168, 220, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(71, 52, 80, 0.05);
}

.lesson-item span {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 850;
}

.lesson-item p {
  margin: 0;
  font-weight: 800;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 42px;
  align-items: center;
}

.price-panel {
  padding: 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(238, 111, 103, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.price-row.trial {
  margin: 0 -10px;
  padding: 24px 10px;
  background: linear-gradient(90deg, rgba(255, 241, 239, 0.82) 0%, rgba(238, 247, 255, 0.72) 100%);
  border-bottom: 1px solid rgba(238, 111, 103, 0.18);
  border-radius: 8px;
}

.plan-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 850;
}

.plan-detail {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.price {
  margin: 0;
  color: var(--accent-dark);
  font-size: 2rem;
  font-weight: 900;
  white-space: nowrap;
}

.price span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.discount-note {
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.full-width {
  width: 100%;
}

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

.flow-list li {
  min-height: 148px;
  padding: 22px 18px;
  background: #ffffff;
  border: 1px solid rgba(238, 111, 103, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.flow-list span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: #332e49;
  border-radius: 8px;
  font-weight: 850;
}

.flow-list p {
  margin: 18px 0 0;
  font-weight: 800;
}

.center-cta {
  margin: 32px auto 0;
  text-align: center;
}

.center-cta p {
  margin: 0 0 18px;
  color: var(--muted);
}

.after-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
}

.after-steps {
  display: grid;
  gap: 10px;
}

.after-steps p {
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 48px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(111, 168, 220, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(71, 52, 80, 0.05);
  font-weight: 800;
}

.after-steps p::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
  border-radius: 3px;
  transform: translateY(-50%) rotate(45deg);
}

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

details {
  background: #ffffff;
  border: 1px solid rgba(238, 111, 103, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(71, 52, 80, 0.04);
}

summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.final-cta {
  padding: 82px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #312b46 0%, #52416c 48%, #355f78 100%);
  text-align: center;
}

.final-cta .section-kicker {
  color: #ffd3bd;
}

.final-cta h2 {
  margin: 0 auto;
  max-width: 780px;
  font-size: 2.25rem;
  line-height: 1.4;
}

.final-cta p:not(.section-kicker):not(.final-note) {
  margin: 18px auto 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.legal-main {
  background: linear-gradient(180deg, #fff5f2 0%, #f5f9ff 100%);
}

.legal-hero {
  padding: 76px 0 40px;
  background: linear-gradient(120deg, #fffaf8 0%, #fff0f1 52%, #eef7ff 100%);
  border-bottom: 1px solid rgba(236, 223, 231, 0.9);
}

.legal-hero h1 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.legal-hero p {
  margin: 16px 0 0;
  color: var(--muted);
}

.legal-content {
  padding: 56px 0 88px;
}

.legal-panel {
  padding: 42px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(238, 111, 103, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-panel section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-panel h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.45;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
}

.legal-panel p {
  margin: 0 0 12px;
}

.legal-panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-panel a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-table {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.legal-table div {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.legal-table div + div {
  border-top: 1px solid var(--line);
}

.legal-table dt,
.legal-table dd {
  padding: 14px 16px;
}

.legal-table dt {
  color: var(--ink);
  background: linear-gradient(90deg, #fff4f2 0%, #f0f8ff 100%);
  font-weight: 850;
}

.legal-table dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal-meta {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 52px 0;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #2d293f 0%, #423653 56%, #2f5268 100%);
}

.footer-layout {
  display: grid;
  gap: 28px;
}

.footer-brand {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 850;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.footer-logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}

.footer-layout p {
  margin: 0;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 0;
}

.footer-info div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
}

.footer-info dt {
  color: rgba(255, 255, 255, 0.6);
}

.footer-info dd {
  margin: 0;
}

.footer-info a,
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.copyright {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.9rem;
}

.mobile-sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 52px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #e75f76 100%);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(71, 52, 80, 0.3);
  font-weight: 850;
}

.mobile-sticky-cta:hover,
.mobile-sticky-cta:focus-visible {
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(255, 250, 248, 0.98) 0%, rgba(255, 246, 244, 0.94) 64%, rgba(239, 247, 255, 0.76) 100%),
      url("assets/hero-online-lesson.jpg") 64% center / cover no-repeat;
  }

  .hero-inner {
    max-width: 560px;
    margin-left: 24px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-lead {
    max-width: 520px;
    font-size: 1.22rem;
  }

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

  .check-grid,
  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .lesson-layout,
  .pricing-layout,
  .after-layout {
    grid-template-columns: 1fr;
  }

  .footer-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand {
    gap: 8px;
    font-size: 0.95rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 594px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 248, 0.98) 0%, rgba(255, 247, 244, 0.95) 66%, rgba(238, 247, 255, 0.84) 100%),
      url("assets/hero-online-lesson.jpg") center / cover no-repeat;
  }

  .hero-inner,
  .container,
  .narrow {
    width: min(100% - 32px, 1120px);
  }

  .hero-inner {
    max-width: none;
    margin-left: auto;
    padding: 74px 0 82px;
  }

  .hero-logo {
    width: 76px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

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

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 54px;
    padding: 0 14px;
    font-size: 0.96rem;
  }

  .section {
    padding: 64px 0;
  }

  #target {
    padding-top: 92px;
  }

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

  .section-heading h2,
  .final-cta h2 {
    font-size: 1.65rem;
  }

  .check-grid,
  .lesson-list,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .check-item,
  .flow-list li {
    min-height: auto;
  }

  .price-panel {
    padding: 24px 18px;
  }

  .legal-hero {
    padding: 58px 0 32px;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 40px 0 64px;
  }

  .legal-panel {
    padding: 26px 18px;
  }

  .legal-table div {
    grid-template-columns: 1fr;
  }

  .legal-table dd {
    padding-top: 0;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .price span {
    text-align: left;
  }

  .footer-info div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .mobile-sticky-cta {
    left: 16px;
    display: inline-flex;
    width: auto;
    min-width: 0;
  }
}

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

  .site-nav a,
  .header-cta,
  .button,
  .mobile-sticky-cta {
    transition: none;
  }
}
