/* ============================================
   PILATES STUDIO — Style Sheet
   Body aesthetics x white studio space x stoic silence
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-offwhite: #F5F1EC;
  --color-ink: #1F1F1F;
  --color-terracotta: #B85C38;
  --color-pale-gray: #D4D0CB;
  --color-white: #FFFFFF;
  --color-terracotta-light: rgba(184, 92, 56, 0.08);
  --color-terracotta-hover: #A04E2E;

  --font-display: 'Libre Caslon Display', serif;
  --font-body: 'Manrope', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;

  --header-height: 72px;
  --container-max: 1120px;
  --section-padding: 120px;
  --section-padding-sm: 72px;

  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-ink);
  background-color: var(--color-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section__heading {
  text-align: center;
  margin-bottom: 64px;
}

.section__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.section__subtitle {
  font-family: var(--font-jp);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-pale-gray);
  letter-spacing: 0.08em;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(245, 241, 236, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 208, 203, 0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--color-ink);
  transition: opacity var(--transition-base);
}

.header__logo:hover {
  opacity: 0.6;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  gap: 6px;
  z-index: 1001;
}

.header__hamburger-line {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--color-ink);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__hamburger.is-active .header__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-active .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-ink);
  position: relative;
  transition: color var(--transition-base);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-terracotta);
  transition: width var(--transition-base);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-link:hover {
  color: var(--color-terracotta);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero__image-wrapper {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 241, 236, 0.2) 0%,
    rgba(31, 31, 31, 0.45) 100%
  );
}

.hero__content {
  position: absolute;
  bottom: 12%;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.hero__tagline {
  font-family: var(--font-jp);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.15em;
}

/* ============================================
   About
   ============================================ */
.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__lead {
  font-family: var(--font-jp);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 2;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.about__description {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 2;
  color: rgba(31, 31, 31, 0.75);
  margin-bottom: 16px;
}

.about__description:last-child {
  margin-bottom: 0;
}

.about__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ============================================
   Schedule
   ============================================ */
.schedule {
  background-color: var(--color-white);
}

.schedule__table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.schedule__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.schedule__th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
  padding: 16px 12px;
  text-align: center;
  border-bottom: 2px solid var(--color-ink);
}

.schedule__th--time {
  text-align: left;
  min-width: 130px;
}

.schedule__td {
  padding: 16px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 208, 203, 0.5);
  vertical-align: middle;
}

.schedule__td--time {
  text-align: left;
  padding-right: 20px;
}

.schedule__period {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}

.schedule__time {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-ink);
}

.schedule__row--alt {
  background-color: rgba(245, 241, 236, 0.5);
}

.schedule__class {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 2px;
}

.schedule__mark {
  display: block;
  font-size: 1rem;
  color: var(--color-terracotta);
  font-weight: 500;
}

.schedule__dash {
  color: var(--color-pale-gray);
  font-size: 1rem;
}

.schedule__legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 16px;
}

.schedule__legend-item {
  font-size: 0.8125rem;
  color: rgba(31, 31, 31, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule__legend-item .schedule__mark {
  display: inline;
  font-size: 0.875rem;
}

.schedule__legend-item .schedule__dash {
  font-size: 0.875rem;
}

/* ============================================
   Plan
   ============================================ */
.plan__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.plan__card {
  position: relative;
  background-color: var(--color-white);
  border: 1px solid var(--color-pale-gray);
  padding: 48px 32px 40px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.plan__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(31, 31, 31, 0.06);
}

.plan__card--recommended {
  border: 2px solid var(--color-terracotta);
  padding-top: 56px;
}

.plan__card-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 24px;
}

.plan__card-header {
  margin-bottom: 32px;
}

.plan__card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.plan__card-freq {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(31, 31, 31, 0.5);
}

.plan__card-body {
  text-align: center;
}

.plan__card-price {
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 32px;
}

.plan__card-yen {
  font-size: 1.25rem;
  font-weight: 400;
  vertical-align: top;
  margin-right: 2px;
}

.plan__card-tax {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(31, 31, 31, 0.5);
}

.plan__card-features {
  text-align: left;
  border-top: 1px solid rgba(212, 208, 203, 0.5);
  padding-top: 24px;
}

.plan__card-features li {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(31, 31, 31, 0.75);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.plan__card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-terracotta);
}

.plan__card--recommended .plan__card-price {
  color: var(--color-terracotta);
}

/* ============================================
   Trial
   ============================================ */
.trial {
  background-color: var(--color-white);
}

.trial__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.trial__price {
  font-family: var(--font-jp);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.trial__price-amount {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-left: 8px;
}

.trial__price-tax {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(31, 31, 31, 0.5);
}

.trial__note {
  font-size: 0.9375rem;
  line-height: 2;
  color: rgba(31, 31, 31, 0.75);
}

.trial__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trial__form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trial__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.trial__required {
  color: var(--color-terracotta);
  font-size: 0.75rem;
}

.trial__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.9375rem;
  border: 1px solid var(--color-pale-gray);
  background-color: var(--color-offwhite);
  color: var(--color-ink);
  outline: none;
  transition: border-color var(--transition-base);
}

.trial__input::placeholder {
  color: var(--color-pale-gray);
}

.trial__input:focus {
  border-color: var(--color-terracotta);
}

.trial__input.is-error {
  border-color: #C0392B;
}

.trial__error {
  font-size: 0.75rem;
  color: #C0392B;
  min-height: 1em;
}

.trial__submit {
  width: 100%;
  padding: 16px;
  font-family: var(--font-jp);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-white);
  background-color: var(--color-terracotta);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.trial__submit:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-1px);
}

.trial__submit:active {
  transform: translateY(0);
}

.trial__form-note {
  font-size: 0.75rem;
  color: rgba(31, 31, 31, 0.45);
  text-align: center;
}

/* ============================================
   Instructor
   ============================================ */
.instructor__list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.instructor__card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: center;
}

.instructor__card:nth-child(even) {
  direction: rtl;
}

.instructor__card:nth-child(even) > * {
  direction: ltr;
}

.instructor__image-wrapper {
  overflow: hidden;
}

.instructor__image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.instructor__card:hover .instructor__image {
  transform: scale(1.03);
}

.instructor__name {
  font-family: var(--font-jp);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.instructor__name-en {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-pale-gray);
  margin-top: 4px;
}

.instructor__role {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  margin-bottom: 24px;
}

.instructor__bio {
  font-size: 0.9375rem;
  line-height: 2;
  color: rgba(31, 31, 31, 0.75);
  margin-bottom: 24px;
}

.instructor__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instructor__certs li {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-terracotta);
  border: 1px solid rgba(184, 92, 56, 0.3);
  padding: 4px 12px;
}

/* ============================================
   Access
   ============================================ */
.access__body {
  max-width: 720px;
  margin: 0 auto;
}

.access__info {
  border-top: 1px solid var(--color-pale-gray);
}

.access__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(212, 208, 203, 0.5);
}

.access__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(31, 31, 31, 0.5);
}

.access__value {
  font-size: 0.9375rem;
  font-weight: 400;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-ink);
  color: var(--color-offwhite);
  padding: 64px 0 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.15em;
}

.footer__nav {
  display: flex;
  gap: 32px;
}

.footer__link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 236, 0.5);
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--color-offwhite);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 300;
  color: rgba(245, 241, 236, 0.3);
  text-align: center;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(245, 241, 236, 0.08);
  padding-top: 24px;
}

/* ============================================
   Media Queries — 768px (Tablet)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --header-height: 64px;
  }

  .section__title {
    font-size: 2rem;
  }

  .section__heading {
    margin-bottom: 48px;
  }

  /* Header */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-offwhite);
    padding: 100px 40px 40px;
    transition: right var(--transition-base);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }

  .header__nav-link {
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    min-height: 500px;
    height: 75vh;
  }

  .hero__tagline {
    font-size: 1.75rem;
  }

  /* About */
  .about__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    height: 320px;
  }

  .about__lead {
    font-size: 1.125rem;
  }

  /* Schedule */
  .schedule__table {
    font-size: 0.8125rem;
  }

  /* Plan */
  .plan__cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 24px;
  }

  .plan__card--recommended {
    order: -1;
  }

  /* Trial */
  .trial__body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Instructor */
  .instructor__card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .instructor__card:nth-child(even) {
    direction: ltr;
  }

  .instructor__image {
    height: 360px;
  }

  /* Access */
  .access__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* Footer */
  .footer__top {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

/* ============================================
   Media Queries — 480px (Mobile)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --section-padding: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .section__heading {
    margin-bottom: 40px;
  }

  /* Hero */
  .hero {
    min-height: 440px;
    height: 65vh;
  }

  .hero__tagline {
    font-size: 1.375rem;
    letter-spacing: 0.12em;
  }

  .hero__sub {
    font-size: 0.75rem;
  }

  /* About */
  .about__lead {
    font-size: 1rem;
  }

  .about__description {
    font-size: 0.875rem;
  }

  .about__image {
    height: 240px;
  }

  /* Schedule */
  .schedule__table {
    font-size: 0.75rem;
  }

  .schedule__th {
    padding: 12px 8px;
  }

  .schedule__td {
    padding: 12px 8px;
  }

  .schedule__legend {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Plan */
  .plan__card {
    padding: 40px 24px 32px;
  }

  .plan__card-price {
    font-size: 2rem;
  }

  /* Trial */
  .trial__price-amount {
    font-size: 1.75rem;
  }

  .trial__input {
    padding: 12px 14px;
    font-size: 0.875rem;
  }

  .trial__submit {
    padding: 14px;
    font-size: 0.875rem;
  }

  /* Instructor */
  .instructor__list {
    gap: 56px;
  }

  .instructor__image {
    height: 280px;
  }

  .instructor__name {
    font-size: 1.25rem;
  }

  .instructor__bio {
    font-size: 0.875rem;
  }

  .instructor__certs {
    gap: 6px;
  }

  .instructor__certs li {
    font-size: 0.625rem;
    padding: 3px 10px;
  }

  /* Access */
  .access__label {
    font-size: 0.75rem;
  }

  .access__value {
    font-size: 0.875rem;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer__nav {
    gap: 16px;
  }

  .footer__link {
    font-size: 0.6875rem;
  }
}