/* デザイントークン（色・フォント・サイドバー幅） */
:root {
  --ink: #0d0e13;
  --dark: #15161e;
  --panel: #20212b;
  --mint: #acdcd5;
  --white: #f7f7f2;
  --muted: #abb0bb;
  --line: #3a3c46;
  --english: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --rail: clamp(210px, 19.444vw, 280px);
}
/* 基本設定・アクセシビリティ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font:
    400 14px/1.7 'Noto Sans JP',
    sans-serif;
}
body.menu-is-open {
  overflow: hidden;
}
h1,
h2,
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 5px;
}
.contact :focus-visible {
  outline-color: var(--ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--mint);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
/* ページ全体・PCサイドバー */
.site-shell {
  width: min(880px, calc(100% - var(--rail) * 2));
  margin-inline: auto;
  border-inline: 1px solid #5c787880;
  background: var(--panel) url('../images/beas/texture-dark.webp') repeat;
  background-size: 800px auto;
}
.sidebar {
  position: fixed;
  z-index: 5;
  width: min(216px, calc(var(--rail) - 48px));
}
.sidebar-left {
  top: 72px;
  left: max(24px, calc((100vw - 1440px) / 2 + 32px));
  max-height: calc(100dvh - 104px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-logo {
  display: block;
  width: 112px;
  margin-bottom: 40px;
}
.anniversary {
  font: 500 14px/1.2 var(--english);
  color: var(--muted);
  margin-bottom: 40px;
}
.nav-list {
  display: grid;
  gap: 24px;
}
.nav-list a {
  display: block;
  transition: color 0.2s;
}
.nav-list a:hover,
.nav-list a[aria-current] {
  color: var(--mint);
}
.nav-en {
  display: block;
  font: 700 22px/1.2 var(--english);
}
.nav-number {
  margin-right: 8px;
}
.nav-ja {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-tagline {
  margin-top: 40px;
  color: var(--mint);
  font: 500 30px/1.1 var(--english);
}
.sidebar-right {
  top: 180px;
  right: max(24px, calc((100vw - 1440px) / 2 + 32px));
}
.sidebar-right h2 {
  color: var(--mint);
  font: 700 26px/1.1 var(--english);
  margin-bottom: 20px;
}
.sidebar-right > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.side-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  min-height: 58px;
  border: 1px solid #acdcd5e6;
  border-radius: 12px;
  background: #acdcd512;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s;
}
.side-line + .side-line {
  margin-top: 20px;
}
.side-line .button-arrow {
  font-size: 22px;
  line-height: 24px;
  color: var(--mint);
}
.side-line:hover {
  background: #acdcd52b;
}
.side-line,
.line-button {
  width: 100%;
  text-align: left;
}
.side-line:disabled,
.line-button:disabled {
  cursor: default;
}
/* ヘッダー・ファーストビュー */
.header {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 40px;
}
.header-logo {
  display: block;
  width: 92px;
  flex: none;
}
.header-anniversary {
  font: 500 13px/1.1 var(--english);
}
.menu-open {
  display: none;
}
/* 操作バーの表示状態でFVが縮まないよう、最大ビューポート高を使う。 */
.hero {
  min-height: calc(100vh - 77px);
  min-height: calc(100lvh - 77px);
  align-content: center;
  padding: 64px 48px;
  display: grid;
  gap: 30px;
  justify-items: center;
}
.hero-eyebrow {
  font: 500 14px/1.1 var(--english);
  letter-spacing: 3px;
  color: var(--mint);
}
.hero-title {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 72px 28px;
  background: var(--mint) url('../images/beas/texture-mint.webp') center/cover;
}
.hero-title img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}
.hero-scroll {
  font: 500 12px/1.1 var(--english);
  color: var(--muted);
  padding-block: 8px;
}
/* 共通セクション・ABOUT */
.section {
  padding: 80px 48px;
}
.about {
  padding-inline: 64px;
}
.about h2 {
  color: var(--mint);
  font: 700 34px/1.2 var(--english);
  margin-bottom: 32px;
}
.about-meaning {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}
.about-story {
  font-size: 18px;
  line-height: 2;
}
.about-story p + p {
  margin-top: 32px;
}
.about-tagline {
  margin-top: 32px;
  font: 500 32px/1.3 var(--english);
  color: var(--mint);
}
.sp-break {
  display: none;
}
.section-title {
  text-align: center;
  font: 700 68px/1.1 var(--english);
  margin-bottom: 32px;
}
/* タイムテーブル */
.timetable {
  padding-inline: 40px;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.program-part {
  min-width: 0;
}
.program-part summary {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  padding: 16px;
  background: var(--dark);
  font-size: 14px;
  min-height: 74px;
}
.program-part summary::-webkit-details-marker {
  display: none;
}
.part-number {
  font: 700 38px/1.1 var(--english);
  color: var(--mint);
}
.part-toggle {
  display: none;
}
.program-row {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  min-height: 89px;
  border-bottom: 1px solid var(--line);
}
.program-number {
  color: var(--mint);
  font: 500 18px/1.1 var(--english);
}
.program-title {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.program-teacher {
  margin-top: 4px;
  font: 500 16px/1.1 var(--english);
  color: var(--muted);
}
.timetable-note {
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted);
}
/* インストラクター・スペシャルサンクス */
.instructors {
  padding: 80px 0;
}
.instructors-image {
  display: block;
}
.instructors-note {
  margin: 32px 40px 0;
  font-size: 12px;
  color: var(--muted);
}
/* PC素材の下部透明余白だけを隠す。人物の縦横比は維持する。 */
@media (min-width: 1100px) {
  .instructors-image {
    aspect-ratio: 3405 / 4004;
    overflow: hidden;
  }
}
@media (max-width: 1099px) {
  .instructors-note {
    margin-inline: 24px;
  }
}
.instructors img {
  width: 100%;
}
.sponsors {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}
.sponsor {
  flex: 0 0 calc((100% - 32px) / 3);
  gap: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 24px;
  background: transparent;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.7;
}
.sponsor img {
  width: 100%;
  aspect-ratio: 2.8;
  height: auto;
  object-fit: cover;
}
.thanks-message {
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}
/* 体験案内CTA・フッター */
.contact {
  padding-block: 64px;
  background: var(--mint) url('../images/beas/texture-mint.webp') center/cover;
  color: var(--ink);
}
.contact h2 {
  font: 700 64px/1.1 var(--english);
  margin-bottom: 28px;
}
.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.line-button {
  min-height: 76px;
  padding: 18px 16px 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
}
.line-button .button-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--ink);
  background: var(--mint);
  border-radius: 50%;
  font-weight: 400;
  font-size: 22px;
  transition: transform 0.2s;
}
.line-button:hover {
  background: #252c31;
  transform: translateY(-2px);
}
.line-button:hover .button-arrow {
  transform: rotate(45deg);
}
.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 64px 48px;
  background: var(--ink);
}
.footer-schools {
  display: grid;
  gap: 32px;
  width: 238px;
}
.footer-school {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-school-logo {
  display: grid;
  place-items: center;
  width: 96px;
}
.footer-school-logo--tenjin img {
  width: 96px;
  height: auto;
}
.footer-school-logo--arae {
  height: 58px;
  overflow: hidden;
}
.footer-school-logo--arae img {
  width: 96px;
  height: 58px;
  object-fit: contain;
}
.footer-instagram {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.footer-instagram img {
  width: 24px;
  height: 24px;
}
.footer-tagline {
  color: var(--mint);
  font: 500 16px/1.1 var(--english);
}
.footer-divider {
  width: 100%;
  height: 1px;
  background: #acdcd54d;
}
.footer small {
  font-size: 11px;
}
/* スマホ追従CTA */
.floating-cta {
  position: fixed;
  z-index: 15;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--mint);
  border-radius: 6px;
  box-shadow: 0 4px 16px #0003;
  text-align: center;
  transition:
    opacity 0.2s,
    visibility 0.2s,
    background 0.2s;
}
.floating-cta strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.floating-cta:hover {
  background: #c7e9e4;
}
.floating-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* スマホメニュー */
.mobile-menu {
  margin: 0;
  padding: 24px;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  color: var(--white);
  background: var(--panel) url('../images/beas/texture-dark.webp') repeat;
  background-size: 800px auto;
}
.mobile-menu::backdrop {
  background: #0d0e13d9;
}
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.menu-close,
.menu-open {
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
}
.menu-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  line-height: 1;
}
.menu-label {
  font-size: 10px;
  letter-spacing: 0.06em;
}
.menu-caption {
  color: var(--mint);
  font: 500 14px/1.2 var(--english);
  margin-bottom: 40px;
}
.mobile-menu .nav-list a {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .nav-en {
  font-size: 30px;
}
.menu-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.menu-line .side-line {
  border-radius: 12px;
  margin: 0;
  padding-inline: 14px;
  font-size: 12px;
}
/* PC（1100px以上）。JSのDESKTOP_MEDIA_QUERYと揃える */
@media (min-width: 1100px) {
  .floating-cta {
    display: none;
  }
  .program-part:not([open]) > .program-list {
    display: block;
  }
  .program-part summary {
    cursor: default;
  }
}
/* タブレット・スマホ（1099px以下） */
@media (max-width: 1099px) {
  .sidebar {
    display: none;
  }
  .site-shell {
    width: min(100%, 760px);
  }
  .header-anniversary {
    display: none;
  }
  /* ヘッダーはスクロールし、メニューボタンのみ本文右上に固定する。 */
  .menu-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    line-height: 1;
    position: fixed;
    top: max(24px, env(safe-area-inset-top));
    right: max(24px, calc((100vw - 760px) / 2 + 40px));
    z-index: 20;
    background: transparent;
    border-radius: 0;
  }
  .program-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .program-part summary {
    cursor: pointer;
    gap: 12px;
    border-radius: 4px;
  }
  .part-toggle {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
    margin-left: auto;
    color: var(--mint);
  }
  .part-toggle::before,
  .part-toggle::after {
    content: '';
    position: absolute;
    inset: 11px 5px;
    height: 2px;
    background: currentColor;
  }
  .part-toggle::after {
    transform: rotate(90deg);
    transition: transform 0.2s;
  }
  [open] > summary .part-toggle::after {
    transform: rotate(0);
  }
  .program-row {
    min-height: 77px;
  }
  .program-title {
    font-size: 13px;
  }
  .program-teacher {
    font-size: 17px;
  }
  .floating-cta {
    width: min(360px, calc(100% - 40px));
  }
}
/* スマホ（600px以下） */
@media (max-width: 600px) {
  .site-shell {
    border-inline: 0;
  }
  .header {
    height: 92px;
    padding: 24px;
  }
  .hero {
    min-height: calc(100vh - 92px);
    min-height: calc(100lvh - 92px);
    padding: 56px 24px 44px;
  }
  .hero-title {
    padding: 50px 16px;
  }
  .hero-title img {
    height: 64px;
  }
  .section {
    padding: 64px 24px;
  }
  .about h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }
  .about-meaning {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .about-story {
    font-size: 16px;
  }
  .about-story p + p {
    margin-top: 24px;
  }
  .about-tagline {
    font-size: 26px;
    margin-top: 24px;
  }
  .sp-break {
    display: initial;
  }
  .pc-break {
    display: none;
  }
  .section-title {
    font-size: clamp(38px, 12.3vw, 48px);
  }
  .instructors {
    padding: 64px 0;
  }
  .sponsors {
    flex-wrap: wrap;
    gap: 0 12px;
  }
  .sponsor {
    flex-basis: calc((100% - 12px) / 2);
    gap: 12px;
    padding-block: 12px;
    font-size: 12px;
  }
  .thanks-message {
    font-size: 13px;
  }
  .contact {
    padding: 48px 24px;
  }
  .contact h2 {
    font-size: clamp(34px, 10.77vw, 42px);
  }
  .contact-buttons {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 48px 24px 64px;
  }
  .floating-cta strong {
    font-size: 18px;
  }
}
/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
