:root {
  --color-bg: #f7f5f2;
  --color-bg-dark: #1c1b19;
  --color-accent: #e8e4dc;
  --color-text: #2a2826;
  --color-text-muted: #5c5854;
  --color-text-on-dark: #f0ebe3;
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --space-section: clamp(4rem, 12vw, 7rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 1.25rem;
  background: linear-gradient(to bottom, rgba(247, 245, 242, 0.92), transparent);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(247, 245, 242, 0.97);
  box-shadow: 0 1px 0 rgba(28, 27, 25, 0.06);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.25s;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.page-main {
  padding-top: 4.25rem;
}

.page-head {
  padding: clamp(5rem, 14vw, 7.5rem) 1.5rem var(--space-section);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232, 228, 220, 0.5), transparent 65%),
    var(--color-bg);
  border-bottom: 1px solid rgba(42, 40, 38, 0.08);
}

.page-head--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  border-bottom-color: rgba(240, 235, 227, 0.12);
}

.page-head--dark .page-head__label {
  color: rgba(240, 235, 227, 0.5);
}

.page-head--dark .page-head__title {
  color: var(--color-text-on-dark);
}

.page-head--accent {
  background: var(--color-accent);
  border-bottom-color: rgba(42, 40, 38, 0.08);
}

.page-head__label {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  font-weight: 500;
}

.page-head__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.8vw, 2.25rem);
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero.hero--photo .hero__bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(247, 245, 242, 0.88) 0%,
      rgba(247, 245, 242, 0.58) 38%,
      rgba(28, 27, 25, 0.16) 100%
    ),
    url("../img/home-hero.png");
  background-size: cover;
  background-position: center;
}

.hero.hero--photo .hero__eyebrow,
.hero.hero--photo .hero__title,
.hero.hero--photo .hero__lead,
.hero.hero--photo .hero__scroll {
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 16px rgba(0, 0, 0, 0.35),
    0 0 1px rgba(0, 0, 0, 0.6);
}

.hero.hero--photo .hero__lead {
  color: rgba(255, 255, 255, 0.95);
}

.hero.hero--photo .hero__eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.hero.hero--photo .hero__scroll::after {
  background: rgba(255, 255, 255, 0.65);
  opacity: 1;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.page-head--cover {
  position: relative;
  padding: clamp(6.5rem, 16vw, 9.5rem) 1.5rem clamp(3.5rem, 8vw, 5rem);
  text-align: center;
  background-size: cover;
  background-position: center;
}

.page-head--cover .page-head__label,
.page-head--cover .page-head__title {
  position: relative;
  z-index: 1;
}

.page-head--cover-doka {
  color: var(--color-text-on-dark);
  border-bottom-color: rgba(240, 235, 227, 0.12);
  background:
    linear-gradient(
      180deg,
      rgba(28, 27, 25, 0.55) 0%,
      rgba(28, 27, 25, 0.84) 100%
    ),
    url("../img/about-doka.png") center / cover no-repeat;
}

.page-head--cover-doka .page-head__label {
  color: rgba(240, 235, 227, 0.55);
}

.page-head--cover-imashiro {
  color: var(--color-text-on-dark);
  border-bottom-color: rgba(240, 235, 227, 0.12);
  background:
    linear-gradient(
      180deg,
      rgba(28, 27, 25, 0.62) 0%,
      rgba(28, 27, 25, 0.9) 100%
    ),
    url("../img/about-imashiro.png") center / cover no-repeat;
}

.page-head--cover-imashiro .page-head__label {
  color: rgba(240, 235, 227, 0.55);
}

.page-head--cover-school {
  color: var(--color-text);
  background:
    linear-gradient(
      180deg,
      rgba(247, 245, 242, 0.9) 0%,
      rgba(247, 245, 242, 0.42) 100%
    ),
    url("../img/school.png") center / cover no-repeat;
}

.page-head--cover-school .page-head__label {
  color: var(--color-text-muted);
}

.page-head--cover-contact {
  color: var(--color-text);
  background:
    linear-gradient(
      125deg,
      rgba(247, 245, 242, 0.92) 0%,
      rgba(232, 228, 220, 0.58) 50%,
      rgba(28, 27, 25, 0.28) 100%
    ),
    url("../img/contact.png") center / cover no-repeat;
}

.page-head--cover-contact .page-head__label {
  color: var(--color-text-muted);
}

.section--flush-top {
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
}

.section__inner--booking {
  max-width: 720px;
}

.booking-demo {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(42, 40, 38, 0.1);
}

.booking-demo__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.booking-demo__month {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: 0.06em;
}

.booking-demo__nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(42, 40, 38, 0.2);
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
}

.booking-demo__nav:hover {
  background: rgba(42, 40, 38, 0.05);
}

.booking-demo__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-align: center;
}

.booking-demo__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.booking-demo__cell {
  aspect-ratio: 1;
  min-height: 2.5rem;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: default;
  color: var(--color-text-muted);
  padding: 0;
}

.booking-demo__cell--muted {
  opacity: 0.35;
  pointer-events: none;
}

.booking-demo__cell--pickable {
  cursor: pointer;
  color: var(--color-text);
  border-color: rgba(42, 40, 38, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.booking-demo__cell--pickable:hover {
  border-color: rgba(42, 40, 38, 0.35);
}

.booking-demo__cell--selected {
  border-color: var(--color-bg-dark);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.booking-demo__cell--disabled {
  opacity: 0.28;
  pointer-events: none;
}

.booking-demo__panel {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(42, 40, 38, 0.1);
}

.booking-demo__selected {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin: 0 0 1.25rem;
}

.booking-demo__fieldset {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.booking-demo__legend {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 0.65rem;
  padding: 0;
}

.booking-demo__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.booking-demo__slot {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(42, 40, 38, 0.2);
  background: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.booking-demo__slot:hover {
  border-color: rgba(42, 40, 38, 0.45);
}

.booking-demo__slot--on {
  border-color: var(--color-bg-dark);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.booking-demo__radio {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.booking-demo__radio input {
  margin-right: 0.5rem;
}

.booking-demo__fields {
  display: grid;
  gap: 0.75rem;
}

.booking-demo__field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

.booking-demo__field input {
  width: 100%;
  border: 1px solid rgba(42, 40, 38, 0.22);
  background: #fff;
  color: var(--color-text);
  padding: 0.6rem 0.7rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
}

.booking-demo__field input:focus {
  outline: none;
  border-color: var(--color-bg-dark);
  box-shadow: 0 0 0 3px rgba(28, 27, 25, 0.08);
}

.booking-demo__submit {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 20rem;
  cursor: pointer;
  border: none;
}

.booking-demo__hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
}

.booking-demo__result {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  background: rgba(28, 27, 25, 0.06);
  border-left: 3px solid var(--color-bg-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  position: absolute;
  left: 11px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 26px;
}

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

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

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(232, 228, 220, 0.65), transparent 70%),
    linear-gradient(180deg, #ebe7df 0%, #f7f5f2 45%, #f2efe8 100%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: 0.06em;
  margin: 0 0 1.5rem;
}

.hero__title-line {
  display: block;
}

.hero__lead {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 3rem;
  letter-spacing: 0.04em;
}

.hero__scroll {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
  padding-bottom: 2.5rem;
  position: relative;
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 2rem;
  background: currentColor;
  opacity: 0.35;
  transform: translateX(-50%);
}

.section {
  padding: var(--space-section) 1.5rem;
}

.section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.section__inner.prose {
  max-width: 640px;
}

.section--light {
  background: var(--color-bg);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--dark .section__label,
.section--dark .lead-text {
  color: rgba(240, 235, 227, 0.55);
}

.section--dark p {
  color: rgba(240, 235, 227, 0.88);
}

.section--dark .subsection-title {
  color: var(--color-text-on-dark);
}

.section--accent {
  background: var(--color-accent);
}

.section__label {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  font-weight: 500;
}

.section__heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin: 0 0 1.75rem;
}

.lead-text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 2.5rem;
}

.lead-text--hero {
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.9;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

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

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

.subsection-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.03em;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.link-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(42, 40, 38, 0.12);
}

.link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(42, 40, 38, 0.12);
  text-decoration: none;
  transition: padding-left 0.3s var(--ease-out), opacity 0.25s;
}

.link-card:hover {
  padding-left: 0.35rem;
}

.link-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.link-card__meta {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.link-card__arrow {
  font-size: 1rem;
  opacity: 0.4;
  transition: transform 0.3s var(--ease-out), opacity 0.25s;
}

.link-card:hover .link-card__arrow {
  transform: translateX(4px);
  opacity: 0.9;
}

.product-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-list li {
  font-size: 0.9375rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(42, 40, 38, 0.1);
  letter-spacing: 0.02em;
}

.spec-list {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1.5rem;
  font-size: 0.9375rem;
}

.spec-list dt {
  font-weight: 600;
  color: var(--color-text-muted);
}

.spec-list dd {
  margin: 0;
}

.price-inline {
  margin: 1rem 0 1.5rem;
  padding-left: 1.1rem;
}

.price-inline li {
  margin-bottom: 0.35rem;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: background 0.25s, color 0.25s;
}

.btn--ghost {
  color: var(--color-text-on-dark);
  border-color: rgba(240, 235, 227, 0.35);
}

.btn--ghost:hover {
  background: rgba(240, 235, 227, 0.08);
}

.btn--primary {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  border-color: var(--color-bg-dark);
}

.btn--primary:hover {
  opacity: 0.92;
}

.btn--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  border-color: var(--color-bg-dark);
}

.site-footer {
  padding: 3rem 1.5rem;
  background: var(--color-bg-dark);
  color: rgba(240, 235, 227, 0.65);
  text-align: center;
}

.site-footer__inner {
  max-width: 640px;
  margin: 0 auto;
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  color: var(--color-text-on-dark);
}

.site-footer__meta {
  font-size: 0.8125rem;
  margin: 0 0 1.5rem;
}

.site-footer__copy {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  margin: 0;
  opacity: 0.5;
}

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

  .site-nav {
    position: fixed;
    inset: 0;
    top: 3.75rem;
    background: rgba(247, 245, 242, 0.98);
    padding: 2rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), opacity 0.35s, visibility 0.35s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(42, 40, 38, 0.08);
    font-size: 0.9375rem;
  }
}

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

  .link-card,
  .link-card__arrow,
  .nav-toggle span {
    transition: none;
  }
}
