:root {
  --color-paper: #fbfaf7;
  --color-white: #ffffff;
  --color-ink: #1d2430;
  --color-muted: #5e6672;
  --color-line: #ded8cc;
  --color-soft: #f4f1eb;
  --color-blue: #17365d;
  --color-gold: #a9894f;
  --color-wine: #7d2e42;
  --color-sage: #7f9a8a;
  --color-sage-soft: #edf3ed;
  --color-sky: #dce8ee;
  --color-blush: #f2e3e2;
  --color-warm: #f7efe4;
  --shadow-soft: 0 22px 55px rgba(21, 31, 46, 0.08);
  --shadow-warm: 0 18px 42px rgba(58, 45, 34, 0.08);
  --font-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.9;
}

body.nav-open {
  overflow: hidden;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(213, 207, 194, 0.76);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  color: var(--color-blue);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--color-sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
  min-height: 100svh;
  padding: 122px clamp(22px, 6vw, 92px) 72px;
  background:
    linear-gradient(116deg, rgba(251, 250, 247, 0.98) 0%, rgba(247, 239, 228, 0.92) 48%, rgba(220, 232, 238, 0.46) 100%),
    repeating-linear-gradient(90deg, rgba(127, 154, 138, 0.08), rgba(127, 154, 138, 0.08) 1px, transparent 1px, transparent 104px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: clamp(22px, 6vw, 88px);
  bottom: 34px;
  width: min(280px, 34vw);
  height: 120px;
  content: "";
  border-right: 1px solid rgba(127, 154, 138, 0.28);
  border-bottom: 1px solid rgba(127, 154, 138, 0.28);
  transform: skewX(-18deg);
  pointer-events: none;
}

.hero__content,
.hero__image {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #9a8353;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}

h1 {
  color: var(--color-blue);
  font-size: clamp(2.9rem, 7vw, 5.8rem);
}

h2 {
  color: var(--color-blue);
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
}

h3 {
  color: var(--color-ink);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero__lead {
  margin: 18px 0 20px;
  color: var(--color-wine);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.5;
}

.hero__text {
  max-width: 640px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.7vw, 1.1rem);
}

.hero__subtext {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  font-weight: 600;
}

.hero__place {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 30px 0 18px;
  color: var(--color-blue);
  font-weight: 700;
}

.hero__place::before {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--color-gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.45;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button--primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 14px 26px rgba(23, 54, 93, 0.14);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #102847;
}

.button--outline {
  min-height: 48px;
  border-color: rgba(23, 54, 93, 0.28);
  background: rgba(255, 255, 255, 0.66);
  color: var(--color-blue);
  box-shadow: none;
}

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

.hero__image {
  position: relative;
  min-height: min(70vh, 620px);
  border-radius: 8px;
  border: 1px solid var(--color-line);
  background: linear-gradient(145deg, #f2eee6, #ffffff 48%, #e9edf1);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}

.hero__image.has-photo {
  background-repeat: no-repeat;
}

.hero__image.has-slideshow {
  background: #f4efe7;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
  transition: opacity 1800ms ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__image::before {
  position: absolute;
  inset: 18px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  pointer-events: none;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: inherit;
  padding: 40px;
  color: rgba(23, 54, 93, 0.48);
  text-align: center;
}

.photo-placeholder span {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 1;
}

.photo-placeholder small {
  display: block;
  margin-top: 16px;
  color: rgba(29, 36, 48, 0.48);
  font-size: 0.88rem;
}

.photo-frame {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(210, 201, 187, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(220, 232, 238, 0.38)),
    var(--color-paper);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}

.photo-frame::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
  filter: brightness(var(--photo-brightness, 1));
  transform: scale(var(--photo-scale, 1));
  transform-origin: var(--photo-position, center);
}

.photo-frame--portrait {
  aspect-ratio: 4 / 5;
  max-width: 330px;
}

.photo-frame--lesson {
  align-self: center;
  aspect-ratio: 4 / 3;
  min-width: 230px;
  max-width: 430px;
}

.photo-frame--access {
  aspect-ratio: 4 / 3;
  max-width: 540px;
}

.photo-frame__placeholder {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 28px;
  color: rgba(23, 54, 93, 0.46);
  text-align: center;
}

.photo-frame__placeholder span {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.photo-frame__placeholder small {
  display: block;
  max-width: 15em;
  margin-top: 10px;
  color: rgba(29, 36, 48, 0.5);
  font-size: 0.84rem;
  line-height: 1.6;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(22px, 5vw, 76px);
  background: var(--color-white);
}

.section--soft {
  background: linear-gradient(180deg, var(--color-soft), #f8f5ef);
}

.section--intro {
  border-top: 1px solid var(--color-line);
}

.lesson-gateway {
  background: linear-gradient(180deg, #ffffff, #fbf8f2);
  border-top: 1px solid var(--color-line);
}

.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.profile-layout,
.access-layout {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.profile-layout {
  grid-template-columns: minmax(190px, 0.54fr) minmax(220px, 0.62fr) minmax(0, 1.2fr);
}

.access-layout {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr) minmax(260px, 0.82fr);
}

.prose {
  color: var(--color-muted);
  font-size: 1rem;
}

.prose p {
  margin: 0 0 1.25em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose--narrow {
  max-width: 760px;
  margin-top: 24px;
}

.prose--center {
  max-width: 780px;
  margin: 24px auto 0;
  text-align: center;
}

strong {
  color: var(--color-blue);
  font-weight: 700;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.gateway-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(210, 201, 187, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(247, 239, 228, 0.9)),
    var(--color-paper);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}

.gateway-card::before {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 74px;
  height: 74px;
  content: "";
  border-top: 1px solid rgba(127, 154, 138, 0.35);
  border-right: 1px solid rgba(127, 154, 138, 0.35);
  border-radius: 0 7px 0 0;
}

.gateway-card--voice {
  border-color: rgba(226, 202, 202, 0.95);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(242, 227, 226, 0.66)),
    #faf7f5;
}

.gateway-card__label {
  margin: 18px 0 18px;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-card h3 {
  max-width: 520px;
  color: var(--color-blue);
  font-size: clamp(1.32rem, 2.2vw, 1.78rem);
}

.gateway-card p:not(.gateway-card__label) {
  margin: 18px 0 0;
  color: var(--color-muted);
}

.gateway-card .gateway-card__target {
  color: var(--color-wine);
  font-family: var(--font-serif);
  font-weight: 700;
}

.gateway-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.line-icon,
.mini-icon {
  display: inline-grid;
  place-items: center;
  color: var(--color-blue);
}

.line-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(23, 54, 93, 0.14);
  border-radius: 50%;
  background: rgba(220, 232, 238, 0.48);
}

.line-icon--voice {
  color: var(--color-wine);
  border-color: rgba(125, 46, 66, 0.12);
  background: rgba(242, 227, 226, 0.72);
}

.line-icon svg,
.mini-icon svg {
  width: 100%;
  height: 100%;
}

.line-icon svg {
  padding: 13px;
}

.line-icon path,
.mini-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: rgba(222, 216, 204, 0.9);
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: 8px;
  overflow: hidden;
}

.feature {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(180deg, #ffffff, #fdfbf7);
}

.mini-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--color-sage);
  border-radius: 50%;
  background: var(--color-sage-soft);
}

.mini-icon--voice {
  color: var(--color-wine);
  background: var(--color-blush);
}

.mini-icon--note {
  color: var(--color-blue);
  background: var(--color-sky);
}

.mini-icon svg {
  padding: 10px;
}

.feature p,
.lesson p,
.audience-grid p,
.price-block p,
.faq-list p {
  color: var(--color-muted);
}

.feature p,
.lesson p,
.price-block p {
  margin: 16px 0 0;
}

.lesson-list {
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--color-line);
}

.lesson {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(230px, 0.56fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
  padding: clamp(30px, 5vw, 48px) 0;
  border-bottom: 1px solid var(--color-line);
}

.lesson__number {
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.1;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.audience-grid article {
  padding: 28px;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-top: 3px solid rgba(127, 154, 138, 0.62);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--color-paper));
}

.audience-grid article:last-child {
  grid-column: 1 / -1;
}

.audience-grid p {
  margin: 12px 0 0;
}

.price-block {
  margin-top: clamp(34px, 5vw, 56px);
}

.price-block h3 {
  margin-bottom: 18px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--color-line);
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
  white-space: normal;
}

thead th {
  background: #ece7de;
  color: var(--color-blue);
  font-family: var(--font-serif);
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

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

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

details {
  border-radius: 8px;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  overflow: hidden;
}

summary {
  position: relative;
  min-height: 62px;
  padding: 18px 54px 18px 22px;
  color: var(--color-blue);
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.55;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 11px;
  height: 11px;
  content: "";
  border-right: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease;
}

details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

details p {
  margin: 0;
  padding: 0 22px 22px;
}

.contact {
  background:
    linear-gradient(135deg, rgba(23, 54, 93, 0.98), rgba(44, 78, 103, 0.96)),
    var(--color-blue);
  color: var(--color-white);
}

.contact .section-kicker,
.contact h2,
.contact strong {
  color: var(--color-white);
}

.contact .prose,
.contact .prose p {
  color: rgba(255, 255, 255, 0.82);
}

.contact__inner {
  text-align: center;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 840px;
  padding: 0;
  margin: 32px auto;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.contact .button--primary {
  background: var(--color-white);
  color: var(--color-blue);
  box-shadow: none;
}

.contact .button--primary:hover,
.contact .button--primary:focus-visible {
  background: #f3eadc;
}

.site-footer {
  padding: 34px 22px;
  background: #151b25;
  color: rgba(255, 255, 255, 0.64);
  text-align: center;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer .footer-brand {
  color: var(--color-white);
}

@media (max-width: 920px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    position: relative;
    z-index: 60;
    display: inline-grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 11px;
    border: 1px solid var(--color-line);
    border-radius: 2px;
    background: var(--color-white);
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    height: 1px;
    background: var(--color-blue);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 8px 22px 22px;
    z-index: 55;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 104px;
  }

  .hero__image {
    min-height: 360px;
  }

  .two-column,
  .profile-layout,
  .access-layout,
  .gateway-grid,
  .feature-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame--portrait {
    max-width: 340px;
  }

  .lesson {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .lesson .photo-frame {
    grid-column: 2;
    max-width: 420px;
  }

  .audience-grid article:last-child {
    grid-column: auto;
  }

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

@media (max-width: 640px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    padding: 12px 18px;
  }

  .brand {
    font-size: 1rem;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero__text br {
    display: none;
  }

  .hero__image {
    min-height: 280px;
  }

  .button {
    width: 100%;
    min-height: 56px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .lesson {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lesson .photo-frame {
    grid-column: auto;
    max-width: none;
    margin-top: 8px;
  }

  .photo-frame--portrait,
  .photo-frame--lesson,
  .photo-frame--access {
    min-width: 0;
  }

  .photo-frame--portrait {
    aspect-ratio: 5 / 4;
  }

  .photo-frame--lesson,
  .photo-frame--access {
    max-height: 340px;
  }

  .lesson__number {
    font-size: 1.2rem;
  }

  .feature,
  .gateway-card,
  .audience-grid article {
    padding: 24px 20px;
  }

  .gateway-card {
    min-height: 0;
  }

  .gateway-card .button {
    align-self: stretch;
    margin-top: 24px;
  }

  .table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
    font-size: 0.95rem;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tr {
    margin-bottom: 14px;
    border: 1px solid var(--color-line);
    background: var(--color-white);
  }

  tbody tr:last-child {
    margin-bottom: 0;
  }

  td,
  td:first-child {
    display: grid;
    grid-template-columns: minmax(96px, 0.85fr) minmax(0, 1.15fr);
    gap: 16px;
    align-items: center;
    min-height: 48px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--color-line);
    text-align: right;
    white-space: normal;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--color-blue);
    font-family: var(--font-serif);
    font-weight: 700;
    text-align: left;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }
}
