/* ─────────────────────────────────────────
   CSS カスタムプロパティ
───────────────────────────────────────── */
:root {
  --color-red: #cc2200;
  --color-red-bright: #e63000;
  --color-black: #0e0e0e;
  --color-dark: #141414;
  --color-dark-2: #1e1e1e;
  --color-white: #ffffff;
  --color-gray-light: #f4f4f4;
  --color-gray: #888888;
  --color-text: #0e0e0e;
  --color-text-muted: #666666;
  --color-border: #2a2a2a;
  --color-border-light: #e0e0e0;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-display: "Bebas Neue", var(--font-sans);
}

/* ─────────────────────────────────────────
   ベース
───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

main {
  display: block;
}

/* ─────────────────────────────────────────
   カスタムカーソル
───────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--color-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 40px;
  height: 40px;
}

@media (hover: none) {
  .cursor { display: none; }
  body { cursor: auto; }
}

/* ─────────────────────────────────────────
   レイアウト
───────────────────────────────────────── */
.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

/* ─────────────────────────────────────────
   ヘッダー
───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-decoration: none;
}

.site-header__logo-sub {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-left: 0.25em;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ─────────────────────────────────────────
   ナビゲーション
───────────────────────────────────────── */
.site-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6rem 2rem 2rem;
  z-index: 200;
}

.site-nav.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--color-red);
}

.site-nav__link--cta {
  color: var(--color-red);
}

/* ── 閉じるボタン ── */
.site-nav__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav__close span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}

.site-nav__close span:first-child {
  transform: rotate(45deg);
}

.site-nav__close span:last-child {
  transform: rotate(-45deg);
}

/* ─────────────────────────────────────────
   ボタン
───────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  min-height: 3.25rem;
  padding-inline: 1.75rem;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.button--red {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.button--red:hover {
  background: var(--color-red-bright);
  border-color: var(--color-red-bright);
}

.button--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────
   セクション共通
───────────────────────────────────────── */
.section {
  padding-block: 6rem;
}

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

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

.section__header {
  margin-bottom: 3.5rem;
}

/* ── ラベル（赤バーリビール）── */
.section__label-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.section__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  color: var(--color-red);
}

/* 赤バーが左から右へ走るリビール */
.section__label-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
}

.section__label-wrap.is-revealed::before {
  animation: redBarReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes redBarReveal {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.section__title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section--dark .section__title,
.section--black .section__title {
  color: var(--color-white);
}

.section__text {
  margin-top: 1.5rem;
  max-width: 42rem;
  line-height: 2;
  color: var(--color-text-muted);
}

.section--dark .section__text {
  color: rgba(255, 255, 255, 0.6);
}

/* ─────────────────────────────────────────
   文字アニメーション（oguro参考）
───────────────────────────────────────── */
.js-heading {
  display: inline-block;
  overflow: hidden;
}

.js-heading-inner {
  display: inline-block;
  visibility: hidden;
}

.headingParts {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.8em);
  animation: none;
}

.headingParts.is-show {
  animation: charReveal 0.35s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   フェードアップ共通
───────────────────────────────────────── */
.js-fade-up {
  opacity: 0;
  transform: translateY(2rem);
}

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-black);
  color: var(--color-white);
}

.hero__img-wrap {
  position: absolute;
  inset: -10% 0;
  overflow: hidden;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.4) 100%),
    linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 10rem 6rem;
}

.hero__label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  color: var(--color-red);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(1.875rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__text {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero__scroll-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─────────────────────────────────────────
   Concept
───────────────────────────────────────── */
.concept__inner {
  display: grid;
  gap: 3rem;
}

.concept__img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.concept__img-wrap img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

/* ─────────────────────────────────────────
   パララックス共通
───────────────────────────────────────── */
.js-parallax-wrap {
  overflow: hidden;
}

.js-parallax-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

/* ─────────────────────────────────────────
   Numbers
───────────────────────────────────────── */
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}

.number {
  opacity: 0;
  transform: translateY(2rem);
}

.number__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.number__unit {
  font-size: 0.5em;
  font-family: var(--font-sans);
  font-weight: 700;
}

.number__bar {
  width: 2.5rem;
  height: 2px;
  background: var(--color-red);
  margin-bottom: 0.75rem;
  transform: scaleX(0);
  transform-origin: left;
}

.number__bar.is-show {
  animation: barIn 0.6s ease forwards;
}

@keyframes barIn {
  to { transform: scaleX(1); }
}

.number__label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────
   Classes
───────────────────────────────────────── */
.classes__grid {
  display: grid;
  gap: 1px;
  background: var(--color-border-light);
  border: 1px solid var(--color-border-light);
}

.class-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  opacity: 0;
  transform: translateY(1.5rem);
  display: flex;
  flex-direction: column;
}

.class-card__num {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-red);
  opacity: 0.2;
  margin-bottom: 1rem;
}

.class-card__title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.class-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.class-card__schedule {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-red);
  padding: 0.375em 0.875em;
  border: 1px solid var(--color-red);
  display: inline-block;
  letter-spacing: 0.05em;
  margin-top: auto;
  align-self: flex-start;
}

/* ─────────────────────────────────────────
   Features
───────────────────────────────────────── */
.features__list {
  display: grid;
  gap: 0;
}

.feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(-1.5rem);
}

.feature:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-red);
  flex-shrink: 0;
  min-width: 2.5rem;
  line-height: 1;
  padding-top: 0.2em;
}

.feature__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   Image band
───────────────────────────────────────── */
.img-band {
  position: relative;
  height: 60vmin;
  min-height: 20rem;
  overflow: hidden;
}

.img-band__wrap {
  position: absolute;
  inset: 0;
}

.js-pan-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
}

.img-band__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-band__copy {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--color-white);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────
   FAQ
───────────────────────────────────────── */
.faq__list {
  display: grid;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--color-border-light);
  opacity: 0;
  transform: translateY(1rem);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border-light);
}

.faq__q {
  font-weight: 700;
  font-size: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__q::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-red);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  padding-bottom: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 0.9375rem;
}

/* ─────────────────────────────────────────
   Access
───────────────────────────────────────── */
.access__inner {
  display: grid;
  gap: 2.5rem;
}

.access__dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
}

.access__dl dt {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--color-red);
  text-transform: uppercase;
  padding-top: 0.1em;
}

.access__dl dd {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.access__map {
  aspect-ratio: 16 / 9;
}

.access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.access__map-placeholder {
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   CTA
───────────────────────────────────────── */
.section--cta {
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
}

.cta__inner {
  max-width: 42rem;
  margin-inline: auto;
}

.cta__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-block: 1.5rem 1rem;
}

.cta__text {
  color: rgba(255, 255, 255, 0.6);
  line-height: 2;
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
}

.cta__button {
  font-size: 1.0625rem;
  padding-inline: 2.5rem;
  min-height: 3.75rem;
}

/* ─────────────────────────────────────────
   フッター
───────────────────────────────────────── */
.site-footer {
  padding-block: 2.5rem;
  background: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  display: grid;
  gap: 1rem;
}

.site-footer__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: var(--color-white);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer__nav a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--color-white);
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

/* ─────────────────────────────────────────
   レスポンシブ（768px〜）
───────────────────────────────────────── */
@media screen and (min-width: 48rem) {
  .site-header__menu-button {
    display: none;
  }

  .site-nav {
    display: block !important;
    position: static;
    background: transparent;
    padding: 0;
    mix-blend-mode: normal;
  }

  .site-nav__list {
    flex-direction: row;
    gap: 2rem;
  }

  .site-nav__link {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .site-nav__close {
    display: none;
  }

  .concept__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
  }

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

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

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

  .feature {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .feature:nth-child(1),
  .feature:nth-child(2) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .access__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

/* ─────────────────────────────────────────
   アクセシビリティ
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll-line { animation: none; }
  .js-fade-up,
  .js-heading-inner,
  .number,
  .class-card,
  .feature,
  .faq__item {
    opacity: 1 !important;
    transform: none !important;
  }
  .js-heading-inner { visibility: visible !important; }
}
