/* Yokoso — warm pastel Japanese school aesthetic */
:root {
  --bg-cream: #f8f1dc;
  --bg-soft: #fff6d8;
  --bg-warm: #f6e7b2;
  --accent: #f3e3a1;
  --accent-deep: #e8d48a;
  --text: #3a3428;
  --text-muted: #6b6356;
  --text-light: #8a8274;
  --white: #fffef9;
  --overlay: rgba(42, 36, 28, 0.48);
  --glass: rgba(255, 246, 216, 0.72);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 40px rgba(58, 52, 40, 0.08);
  --shadow-hover: 0 20px 50px rgba(58, 52, 40, 0.12);
  --font-en: "DM Sans", system-ui, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --container: min(1280px, 94vw);
  --section-pad: clamp(4rem, 10vw, 7rem);
  --nav-height: 52px;
}

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

html {
  scroll-behavior: smooth;
}

/* Offset fixed navbar when scrolling to section anchors */
.hero,
.section[id],
.footer {
  scroll-margin-top: calc(var(--nav-height) + 0.75rem);
}

body:has(.site-notice) .hero,
body:has(.site-notice) .section[id],
body:has(.site-notice) .footer {
  scroll-margin-top: calc(var(--nav-height) + 2.75rem);
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Page top padding so sub-page content is clear of extended/hovered navbar */
main {
  padding-top: 120px;
}

body:has(.site-notice) main {
  padding-top: 150px;
}

main:has(#hero) {
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  main {
    padding-top: 90px;
  }
  body:has(.site-notice) main {
    padding-top: 120px;
  }
  main:has(#hero) {
    padding-top: 0 !important;
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-jp);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
  opacity: 0.75;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Notice bar */
.site-notice {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--accent);
  color: var(--text);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

body:has(.site-notice) .navbar {
  top: 2rem;
}

/* Navbar — always readable (glass at top, cream when scrolled) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002; /* ensure navbar above site notice */
  height: auto;
  padding: 0.2rem 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  transition:
    padding 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    background 0.45s ease,
    box-shadow 0.45s ease,
    backdrop-filter 0.45s ease,
    color 0.45s ease;
}

@media (max-width: 600px) {
  body:has(.site-notice) .navbar {
    top: 4rem; /* increase offset for taller notice on mobile */
  }
}

.navbar:hover,
.navbar:focus-within {
  padding: 0.45rem 0;
  background: rgba(255, 255, 255, 0.24);
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(58, 52, 40, 0.08);
  color: var(--text);
}

.navbar.is-scrolled:hover,
.navbar.is-scrolled:focus-within {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 28px rgba(58, 52, 40, 0.12);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__brand {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.05rem;
  color: inherit;
  padding: 0.15rem 0;
  flex-shrink: 0;
  text-decoration: none;
  transition: font-size 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar:hover .navbar__brand,
.navbar:focus-within .navbar__brand {
  font-size: 1.25rem;
}

.navbar__name {
  color: inherit;
}

.navbar__logo {
  height: 32px;
  width: auto;
  max-width: min(240px, 45vw);
  object-fit: contain;
  display: block;
  transition: height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar:hover .navbar__logo,
.navbar:focus-within .navbar__logo {
  height: 52px;
}

.navbar__list {
  display: grid;
  grid-template-columns: repeat(var(--nav-cols, 6), auto);
  grid-auto-flow: row;
  gap: 0.2rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: end;
  transition: gap 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar:hover .navbar__list,
.navbar:focus-within .navbar__list {
  gap: 0.35rem 0.45rem;
}

.navbar__list > li {
  display: flex;
  width: 100%;
}

/* Minimized normal button state */
.navbar__link {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
  opacity: 0.82;
  white-space: nowrap;
  padding: 0.12rem 0.2rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition:
    font-size 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    padding 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-radius 0.35s ease,
    opacity 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* Full size button state when navbar is hovered */
.navbar:hover .navbar__link,
.navbar:focus-within .navbar__link {
  font-size: 0.85rem;
  padding: 0.38rem 0.35rem;
  opacity: 0.95;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}

.navbar:hover .navbar__link:hover,
.navbar:focus-within .navbar__link:hover,
.navbar__link.is-active,
.navbar__link.active,
.navbar:hover .navbar__link.is-active,
.navbar:hover .navbar__link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
  font-weight: 600;
}

.navbar.is-scrolled .navbar__link {
  background: rgba(58, 52, 40, 0.05);
}

.navbar.is-scrolled:hover .navbar__link,
.navbar.is-scrolled:focus-within .navbar__link {
  background: rgba(58, 52, 40, 0.08);
}

.navbar.is-scrolled:hover .navbar__link:hover,
.navbar.is-scrolled:focus-within .navbar__link:hover,
.navbar.is-scrolled .navbar__link.is-active,
.navbar.is-scrolled .navbar__link.active,
.navbar.is-scrolled:hover .navbar__link.is-active,
.navbar.is-scrolled:hover .navbar__link.active {
  background: rgba(58, 52, 40, 0.16);
  opacity: 1;
  font-weight: 600;
  color: var(--text);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.navbar__lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.navbar__lang-link {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.45s ease;
}

.navbar__lang-link:hover,
.navbar__lang-link.is-active {
  opacity: 1;
}

.navbar__lang-sep {
  color: inherit;
  opacity: 0.4;
  user-select: none;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: background 0.45s ease, transform 0.3s ease;
}

@media (max-width: 1080px) {
  .navbar__list {
    grid-template-columns: repeat(var(--nav-cols, 6), auto);
    grid-auto-flow: row;
    gap: 0.25rem 0.3rem;
  }
  .navbar__link {
    font-size: 0.72rem;
    padding: 0.25rem 0.3rem;
  }
}

@media (max-width: 900px) {
  .navbar__logo {
    height: 34px;
    max-width: min(160px, 50vw);
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__nav {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    color: var(--text);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
  }

  .navbar__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar__list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 0.6rem 0.75rem;
    width: 100%;
  }

  .navbar__link {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0.4rem;
    font-size: 0.85rem;
    background: rgba(58, 52, 40, 0.06);
  }

  .navbar__lang {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(58, 52, 40, 0.12);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--primary {
  background: var(--white);
  color: var(--text);
}

.btn--secondary {
  background: var(--accent);
  color: var(--text);
}

.scroll-down-btn {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}
.scroll-down-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-down-btn.show {
  opacity: 1;
  transform: translateY(0);
}
.scroll-down-btn svg {
  stroke: var(--text);
  width: 24px;
  height: 24px;
}

.hero .btn--outline {
  border-color: var(--white);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero .btn--primary,
.hero .btn--secondary {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image,
.hero__image--fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero__image--fallback {
  background: linear-gradient(135deg, #d4c4a0 0%, #8a7d68 50%, #5c5348 100%);
  background-attachment: scroll;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.45) 45%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: calc(var(--nav-height) + 2rem) 1rem 4rem;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.hero__panel {
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 1050px;
  margin: 0 auto 1.25rem;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 180px));
  gap: 0.85rem 1rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.hero .btn {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0.85rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .hero__actions {
    grid-template-columns: repeat(2, 1fr);
    max-width: 440px;
    gap: 0.75rem;
  }
}

@media (max-width: 400px) {
  .hero__actions {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: float 2.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero__image,
  .hero__image--fallback {
    background-attachment: scroll;
    background-position: center center;
  }

  .hero__panel {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius);
  }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 820px;
  margin-inline: auto;
}

.section-header__eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7f7f7f;
  margin: 0 0 0.5rem;
}

.section-header__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-header__subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Highlights */
.section--highlights .container {
  max-width: 1380px;
  width: 96vw;
}

.highlights-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

.highlight-card {
  flex: 1 1 220px;
  max-width: calc(20% - 1rem);
  min-width: 210px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-sizing: border-box;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.highlight-card__icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.highlight-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.highlight-card__value {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0.25rem 0;
}

.highlight-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 1200px) {
  .highlight-card {
    max-width: calc(25% - 1rem);
  }
}

@media (max-width: 920px) {
  .highlight-card {
    max-width: calc(33.333% - 1rem);
  }
}

@media (max-width: 640px) {
  .highlights-grid {
    gap: 1rem;
  }
  .highlight-card {
    max-width: calc(50% - 0.75rem);
    min-width: 140px;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 440px) {
  .highlight-card {
    max-width: 100%;
    width: 100%;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__kominka {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal;
  color: var(--text-muted);
}

.about__placeholder {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--bg-warm), var(--accent));
  border-radius: var(--radius-lg);
}

.about__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-card__title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.feature-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* Courses */
.courses-grid {
  display: grid;
  gap: 2rem;
}

.course-card {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease;
}

.course-card:hover {
  box-shadow: var(--shadow-hover);
}

.course-card__image {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.course-card__image--placeholder {
  background: linear-gradient(145deg, var(--bg-warm), var(--accent));
}

.course-card__body {
  padding: 2rem;
}

.course-card__meta {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.course-card__meta li {
  margin-bottom: 0.35rem;
}

.course-card__meta span {
  display: inline-block;
  min-width: 4em;
  color: var(--text-light);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .course-card {
    grid-template-columns: 1fr;
  }
}

/* Tuition tables */
.tuition-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tuition-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
}

.tuition-table th,
.tuition-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bg-cream);
}

.tuition-table th {
  background: var(--bg-soft);
  font-weight: 500;
}

.tuition-table__total td {
  font-weight: 600;
  background: var(--bg-warm);
}

.tuition-block {
  margin-bottom: 2.5rem;
}

.tuition-block__title {
  margin-bottom: 1rem;
}

/* Life */
.life-block {
  margin-bottom: 2rem;
}

.life-block__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.life-block__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.living-costs__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.living-costs__table th,
.living-costs__table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--bg-cream);
}

.living-costs__title {
  margin: 2.5rem 0 1rem;
}

.part-time {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .life-block__grid {
    grid-template-columns: 1fr;
  }
}

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.support-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.support-card__icon {
  font-size: 1.5rem;
}

/* Culture */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.culture-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.culture-card__image {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.culture-card__image--placeholder {
  background: linear-gradient(160deg, var(--accent), var(--bg-warm));
}

.culture-card h3,
.culture-card p {
  padding: 0 1.25rem;
}

.culture-card h3 {
  margin: 1rem 0 0.5rem;
}

.culture-card p {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Access */
.access-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.access-grid .access__train {
  color: var(--text-muted);
}

.access__image {
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.access__map {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.access__map iframe {
  width: 100%;
  min-height: clamp(280px, 50vw, 450px);
  height: 450px;
  border: 0;
  display: block;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  background: var(--white);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-card__thumb {
  display: block;
  height: 160px;
  background-size: cover;
  background-position: center;
}

.news-card__body {
  padding: 1.25rem;
}

.news-card time {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* CTA */
.cta-banner {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 241, 220, 0.88);
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  margin-bottom: 1rem;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Parallax sections */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
}

.section--about {
  background: var(--bg-soft);
}

.section--life {
  background: linear-gradient(180deg, var(--bg-cream), var(--bg-soft));
}

/* Footer */
.footer {
  background: var(--text);
  color: var(--bg-soft);
  padding: 4rem 0 2rem;
}

.footer a {
  color: var(--bg-warm);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.footer__en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer__heading {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.4rem;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

/* Page hero */
.page-hero {
  padding: calc(var(--nav-height) + 3rem) 0 2rem;
  background: var(--bg-soft);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Apply page */
.steps {
  display: grid;
  gap: 1rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-card__num {
  grid-row: span 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 600;
}

.step-card h3 {
  margin: 0;
  align-self: end;
}

.step-card p {
  margin: 0;
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.requirements-list {
  padding-left: 1.25rem;
}

.requirements-list li {
  margin-bottom: 0.75rem;
}

.housing-meta {
  list-style: none;
  padding: 0;
}

.housing-meta li {
  margin-bottom: 0.5rem;
}

/* Article */
.article {
  max-width: 720px;
  padding-top: calc(var(--nav-height) + 2rem);
}

.article h1 {
  margin: 0.5rem 0 1.5rem;
}

.article__thumb {
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.back-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--accent);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__image,
  .hero__image--fallback { background-attachment: scroll; }
  .cta-banner__bg { background-attachment: scroll; }
}

/* ==================== About Page / School Introduction ==================== */
.page-hero__eyebrow {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7f7f7f;
  display: block;
  margin-bottom: 0.5rem;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sticky 3-Tab Sub-Navigation */
.about-subnav-sticky {
  position: sticky;
  top: 5.5rem;
  z-index: 990;
  background: rgba(255, 254, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 52, 40, 0.1);
  padding: 0.75rem 0;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(58, 52, 40, 0.04);
}

.about-subnav {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 1.5rem);
}

.about-subnav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid rgba(58, 52, 40, 0.08);
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.about-subnav__num {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(58, 52, 40, 0.08);
  color: inherit;
}

.about-subnav__btn:hover {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.about-subnav__btn.is-active {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
  box-shadow: 0 4px 14px rgba(58, 52, 40, 0.15);
}

.about-subnav__btn.is-active .about-subnav__num {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Tab Panels */
.about-content-wrapper {
  padding-bottom: 5rem;
}

.about-tab-panel {
  display: none;
}

.about-tab-panel.is-active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: Educational Philosophy */
.philosophy-motto {
  margin-top: 1rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-deep);
  display: inline-block;
  text-align: center;
}

.philosophy-motto__main {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.philosophy-motto__sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0;
}

.philosophy-body-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.06);
  margin-bottom: 4rem;
}

.philosophy-body__text {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.philosophy-body__text:last-child {
  margin-bottom: 0;
}

.philosophy-body__text--highlight {
  background: var(--bg-soft);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-deep);
  font-weight: 500;
}

/* YO-KO-SO 3 Vertical Accent Cards */
.yokoso-cards-section {
  margin-top: 3rem;
}

.yokoso-section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.yokoso-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.yokoso-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 196, 160, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.yokoso-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4c4a0, #e8d48a, #8a7d68);
}

.yokoso-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.yokoso-card__header {
  margin-bottom: 1.25rem;
}

.yokoso-card__letter {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-right: 0.5rem;
  letter-spacing: -0.02em;
}

.yokoso-card__label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.yokoso-card__body {
  flex-grow: 1;
}

.yokoso-card__text {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text);
  margin: 0;
}

/* Tab 2: Educational Goals Grid (I-VI) */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.goal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.goal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.goal-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.goal-card__badge {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--text);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  flex-shrink: 0;
  line-height: 1;
}

.goal-card__roman {
  font-family: serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}

.goal-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  color: var(--text);
}

.goal-card__desc {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0;
}

/* Tab 3: School Features (1-8) */
.about-optional-section-wrapper {
  margin-bottom: 2.5rem;
}

.features-grid--deletable {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.features-main-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card--full {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card--full:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.feature-card__badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-card__num {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--text-muted);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(58, 52, 40, 0.08);
}

.feature-card__icon {
  font-size: 1.5rem;
}

.feature-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.feature-card__desc {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0;
}

/* Media Queries for About Page */
@media (max-width: 992px) {
  .yokoso-cards-grid {
    grid-template-columns: 1fr;
  }
  .goals-grid {
    grid-template-columns: 1fr;
  }
  .features-grid--deletable {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-subnav {
    flex-wrap: wrap;
  }
  .about-subnav__btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* ==================== Courses Page Styles ==================== */
.courses-page-wrapper {
  padding-bottom: 6rem;
}

.courses-section {
  margin-top: 4rem;
}

.courses-section:first-child {
  margin-top: 2rem;
}

/* Course Overview Cards */
.courses-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.course-overview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.course-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.course-overview-card__header {
  padding: 1.75rem 2rem 1.25rem;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  border-bottom: 1px solid rgba(58, 52, 40, 0.08);
}

.course-overview-card__badge {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-deep);
  color: var(--text);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.course-overview-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.course-overview-card__body {
  padding: 2rem;
  flex-grow: 1;
}

.course-overview-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.course-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(58, 52, 40, 0.12);
}

.course-spec-item:last-child {
  border-bottom: none;
}

.course-spec-item__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.course-spec-item__val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.course-spec-item__val--badge {
  background: var(--bg-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-en);
  font-size: 0.9rem;
}

.course-spec-item__val--badge-gold {
  background: var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
}

.course-overview-card__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.course-overview-card__footer {
  padding: 1.25rem 2rem;
  background: var(--bg-cream);
  border-top: 1px solid rgba(58, 52, 40, 0.06);
}

.btn--full {
  width: 100%;
}

/* CEFR Level Progression Placeholder Grid */
.level-progression-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.06);
}

.level-progression-info {
  margin-bottom: 2rem;
  text-align: center;
}

.level-progression-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  display: inline-block;
  margin: 0;
  border: 1px solid rgba(58, 52, 40, 0.08);
}

.level-progression-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.level-card {
  background: var(--bg-cream);
  border-radius: var(--radius);
  border: 1px solid rgba(58, 52, 40, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.level-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(58, 52, 40, 0.08);
}

.level-card__header {
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(58, 52, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.level-card__badge {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  background: var(--accent);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.level-card__stage {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.level-card__slot-container {
  padding: 1.25rem 1rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.level-slot-placeholder {
  border: 2px dashed rgba(58, 52, 40, 0.18);
  border-radius: 8px;
  padding: 1.25rem 0.75rem;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.level-card:hover .level-slot-placeholder {
  border-color: var(--accent-deep);
  background: var(--white);
}

.level-slot-placeholder__icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.level-slot-placeholder__text {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
  display: block;
}

/* Annual Schedule Timeline Grid */
.schedule-timeline-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.06);
}

.schedule-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.schedule-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(58, 52, 40, 0.08);
  position: relative;
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(58, 52, 40, 0.08);
  background: var(--white);
}

.schedule-card__month-badge {
  background: var(--text);
  color: var(--white);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: max-content;
}

.schedule-card__month-num {
  font-family: var(--font-jp);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-card__content {
  flex-grow: 1;
}

.schedule-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.schedule-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

/* Media Queries for Courses Page */
@media (max-width: 1080px) {
  .level-progression-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .schedule-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .courses-overview-grid {
    grid-template-columns: 1fr;
  }
  .level-progression-grid {
    grid-template-columns: 1fr;
  }
  .schedule-timeline {
    grid-template-columns: 1fr;
  }
}

/* ==================== Schedule Page Styles ==================== */
.schedule-page-wrapper {
  padding-bottom: 6rem;
}

.schedule-section {
  margin-top: 4rem;
}

.schedule-section:first-child {
  margin-top: 2rem;
}

/* Class Hours Table Card */
.class-hours-card {
  max-width: 850px;
  margin: 0 auto 3rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  overflow: hidden;
}

.class-hours-table-wrap {
  overflow-x: auto;
}

.class-hours-table {
  width: 100%;
  border-collapse: collapse;
}

.class-hours-table th {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid rgba(58, 52, 40, 0.1);
}

.class-hours-table th.th-morning {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  color: var(--text);
  border-right: 1px solid rgba(58, 52, 40, 0.1);
}

.class-hours-table th.th-afternoon {
  background: linear-gradient(135deg, #f6e8d4 0%, var(--bg-soft) 100%);
  color: var(--text);
}

.class-hours-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(58, 52, 40, 0.08);
  vertical-align: middle;
}

.class-hours-table td:first-child {
  border-right: 1px solid rgba(58, 52, 40, 0.08);
}

.time-slot-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.period-badge {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(58, 52, 40, 0.1);
}

.time-range {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Class Hours Notice */
.class-hours-notice {
  padding: 1.25rem 2rem;
  background: var(--bg-cream);
  border-top: 1px solid rgba(58, 52, 40, 0.08);
}

.notice-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

/* Curriculum Dynamic Tables */
.curriculum-tables-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.curriculum-table-block {
  max-width: 850px;
  margin: 0 auto;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  overflow: hidden;
}

.curriculum-table-header {
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  border-bottom: 1px solid rgba(58, 52, 40, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.table-number-badge {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--text);
  color: var(--white);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.curriculum-table-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.curriculum-data-table {
  width: 100%;
  border-collapse: collapse;
}

.curriculum-data-table th {
  background: var(--bg-cream);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid rgba(58, 52, 40, 0.1);
  text-align: left;
}

.curriculum-data-table th.col-subject {
  width: 220px;
  min-width: 200px;
}

.curriculum-data-table th.col-hours {
  text-align: center;
  width: 190px;
  min-width: 170px;
}

.curriculum-data-table th .sub-label {
  font-size: 0.78rem;
  font-weight: normal;
  color: var(--text-muted);
}

.curriculum-data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(58, 52, 40, 0.06);
  font-size: 0.95rem;
  vertical-align: middle;
}

.curriculum-data-table tr:hover td {
  background: rgba(255, 254, 249, 0.8);
}

.cell-subject {
  font-weight: 600;
  color: var(--text);
  width: 220px;
  min-width: 200px;
}

.cell-activity {
  color: var(--text-muted);
  line-height: 1.6;
}

.cell-hours {
  text-align: center;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--text);
}

.cell-hours--2yr {
  background: rgba(232, 212, 138, 0.12);
}

.cell-hours--15yr {
  background: rgba(212, 196, 160, 0.1);
}

@media (max-width: 768px) {
  .time-slot-item {
    flex-direction: column;
    gap: 0.35rem;
  }

  .curriculum-data-table th,
  .curriculum-data-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
  }

  .curriculum-data-table th.col-hours {
    width: auto;
  }
}

/* ==================== Sample Timetables (時間割 例) ==================== */
.sample-timetables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sample-timetable-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sample-timetable-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.sample-timetable-header {
  padding: 1.15rem 1.75rem;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  border-bottom: 1px solid rgba(58, 52, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sample-timetable-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sample-timetable-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.15rem;
  background: var(--accent-deep);
  border-radius: 2px;
}

.sample-timetable-table-wrap {
  overflow-x: auto;
  padding: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.sample-timetable-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  text-align: center;
  border: 1.5px solid rgba(58, 52, 40, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.sample-timetable-table th,
.sample-timetable-table td {
  border-right: 1px solid rgba(58, 52, 40, 0.12);
  border-bottom: 1px solid rgba(58, 52, 40, 0.12);
  padding: 0.75rem 0.45rem;
  vertical-align: middle;
}

.sample-timetable-table th:last-child,
.sample-timetable-table td:last-child {
  border-right: none;
}

.sample-timetable-table tr:last-child td {
  border-bottom: none;
}

.sample-timetable-table thead th {
  background: var(--bg-cream);
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.sample-timetable-table th.col-period {
  width: 44px;
  min-width: 42px;
  background: rgba(232, 212, 138, 0.2);
}

.sample-timetable-table th.col-day {
  width: calc((100% - 44px) / 5);
  font-family: var(--font-jp);
}

.sample-timetable-table td.cell-period {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(232, 212, 138, 0.14);
  width: 44px;
  min-width: 42px;
}

.sample-timetable-table td.cell-day-content {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
  font-weight: 500;
  background: var(--white);
  transition: background 0.2s ease;
}

.sample-timetable-table tr:hover td.cell-day-content {
  background: rgba(255, 246, 216, 0.45);
}

@media (max-width: 992px) {
  .sample-timetables-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
  }
}

@media (max-width: 576px) {
  .sample-timetable-table-wrap {
    padding: 0.75rem;
  }

  .sample-timetable-table th,
  .sample-timetable-table td {
    padding: 0.55rem 0.3rem;
    font-size: 0.78rem;
  }

  .sample-timetable-table td.cell-period {
    font-size: 0.95rem;
    width: 32px;
    min-width: 30px;
  }

  .sample-timetable-table th.col-period {
    width: 32px;
    min-width: 30px;
  }
}

/* ==================== Admissions / Apply Page Styles ==================== */
.apply-page-wrapper {
  padding-bottom: 6rem;
}

.apply-section {
  margin-top: 4rem;
}

.apply-section:first-child {
  margin-top: 2rem;
}

.apply-section--tight {
  margin-top: 1.5rem;
}

/* Application Form Download Banner */
.apply-download-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -1rem auto 2.25rem;
}

.btn-app-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #246342 0%, #1b4d33 100%);
  color: #ffffff !important;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(36, 99, 66, 0.28);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.btn-app-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(36, 99, 66, 0.38);
  background: linear-gradient(135deg, #2c7a52 0%, #205c3d 100%);
  color: #ffffff !important;
  text-decoration: none;
}

.btn-app-download:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(36, 99, 66, 0.2);
}

/* Excel Theme */
.btn-app-download--excel {
  background: linear-gradient(135deg, #1f6e43 0%, #154c2e 100%);
  box-shadow: 0 4px 18px rgba(31, 110, 67, 0.32);
}
.btn-app-download--excel:hover {
  background: linear-gradient(135deg, #278552 0%, #1b5f3a 100%);
  box-shadow: 0 8px 24px rgba(31, 110, 67, 0.42);
}

/* PDF Theme */
.btn-app-download--pdf {
  background: linear-gradient(135deg, #b92b27 0%, #891a17 100%);
  box-shadow: 0 4px 18px rgba(185, 43, 39, 0.32);
}
.btn-app-download--pdf:hover {
  background: linear-gradient(135deg, #d33430 0%, #9e201d 100%);
  box-shadow: 0 8px 24px rgba(185, 43, 39, 0.42);
}

/* Word Theme */
.btn-app-download--word {
  background: linear-gradient(135deg, #1d5f9e 0%, #13426e 100%);
  box-shadow: 0 4px 18px rgba(29, 95, 158, 0.32);
}
.btn-app-download--word:hover {
  background: linear-gradient(135deg, #2372be 0%, #185289 100%);
  box-shadow: 0 8px 24px rgba(29, 95, 158, 0.42);
}

/* ZIP / Archive Theme */
.btn-app-download--zip {
  background: linear-gradient(135deg, #a66a1e 0%, #764b15 100%);
  box-shadow: 0 4px 18px rgba(166, 106, 30, 0.32);
}
.btn-app-download--zip:hover {
  background: linear-gradient(135deg, #be7a24 0%, #8c5919 100%);
  box-shadow: 0 8px 24px rgba(166, 106, 30, 0.42);
}

/* General / Default Theme */
.btn-app-download--general {
  background: linear-gradient(135deg, #3d3b38 0%, #262422 100%);
  box-shadow: 0 4px 18px rgba(45, 43, 40, 0.28);
}
.btn-app-download--general:hover {
  background: linear-gradient(135deg, #4d4a46 0%, #33302d 100%);
  box-shadow: 0 8px 24px rgba(45, 43, 40, 0.38);
}

.btn-app-download__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-app-download__text {
  font-weight: 700;
  white-space: nowrap;
}

.btn-app-download__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  line-height: 1;
  vertical-align: middle;
}

.btn-app-download.is-disabled,
.btn-app-download:disabled {
  background: #e8e3d6;
  color: #968e7f !important;
  box-shadow: none;
  border: 1px solid rgba(58, 52, 40, 0.1);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.85;
}

.btn-app-download.is-disabled .btn-app-download__icon,
.btn-app-download:disabled .btn-app-download__icon {
  opacity: 0.6;
}

.btn-app-download__badge.is-pending {
  background: rgba(58, 52, 40, 0.1);
  color: #787063;
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 0.72rem;
}

@media (max-width: 600px) {
  .apply-download-banner {
    margin: -0.5rem auto 1.75rem;
    width: 100%;
  }

  .btn-app-download {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Section 1: Requirements */
.requirements-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  padding: 2.5rem 2rem;
}

.requirements-list-styled {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.requirement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(58, 52, 40, 0.06);
  transition: transform 0.25s ease, background 0.25s ease;
}

.requirement-item:hover {
  transform: translateX(4px);
  background: var(--bg-cream);
}

.requirement-item__num {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-deep);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.requirement-item__text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text);
}

/* Section 2: Flowchart Steps Timeline */
.steps-flowchart {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.flow-step-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.flow-step-card__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.flow-step-card__badge {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--text);
  color: var(--white);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.flow-step-card__connector {
  width: 2px;
  flex-grow: 1;
  background: rgba(58, 52, 40, 0.15);
  margin-top: 0.75rem;
  margin-bottom: -1.75rem;
}

.flow-step-card__content {
  flex-grow: 1;
}

.flow-step-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.flow-step-card__desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0;
}

/* Section 3: Required Documents Table */
.documents-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  overflow: hidden;
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
}

.documents-table th {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid rgba(58, 52, 40, 0.1);
  text-align: left;
}

.documents-table th.col-doc-num {
  width: 70px;
  text-align: center;
}

.documents-table th.col-doc-name {
  width: 320px;
}

.documents-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(58, 52, 40, 0.06);
  font-size: 0.95rem;
  vertical-align: middle;
  line-height: 1.7;
}

.documents-table tr:hover td {
  background: rgba(255, 254, 249, 0.8);
}

.cell-doc-num {
  font-family: var(--font-en);
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
}

.cell-doc-name {
  color: var(--text);
}

.cell-doc-notes {
  color: var(--text-muted);
}

/* Documents Warning Banners Footer */
.documents-notice-footer {
  padding: 1.25rem 2rem;
  background: var(--bg-cream);
  border-top: 1px solid rgba(58, 52, 40, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-notice-line {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* Section 5: Refund Policy Card */
.refund-policy-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  border: 1px solid rgba(58, 52, 40, 0.08);
  box-shadow: var(--shadow-sm);
}

.refund-policy-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.refund-policy-lead {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.refund-policy-list-numbered {
  padding-left: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.refund-policy-list-numbered li {
  display: flex;
  gap: 0.5rem;
}

.policy-num {
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.policy-text {
  flex-grow: 1;
}

/* Media Queries for Admissions Page */
@media (max-width: 768px) {
  .flow-step-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
  }

  .flow-step-card__connector {
    display: none;
  }

  .documents-table th.col-doc-name {
    width: auto;
  }

  .refund-policy-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ==================== Support Page Styles ==================== */
.support-page-wrapper {
  padding-bottom: 6rem;
}

.support-section {
  margin-top: 2rem;
}

.support-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.support-pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.support-pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 212, 138, 0.6);
}

.support-pillar-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.support-pillar-card__icon-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(58, 52, 40, 0.08);
}

.support-pillar-card__icon {
  font-size: 1.65rem;
}

.support-pillar-card__num {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-light);
  background: var(--bg-cream);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(58, 52, 40, 0.06);
}

.support-pillar-card__body {
  flex-grow: 1;
}

.support-pillar-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.support-pillar-card__desc {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0;
}

.support-pillar-card__desc p {
  margin: 0 0 0.5rem;
}

.support-pillar-card__desc p:last-child {
  margin-bottom: 0;
}

/* Media Queries for Support Page */
@media (max-width: 1080px) {
  .support-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .support-pillars-grid {
    grid-template-columns: 1fr;
  }
  .support-pillar-card {
    padding: 1.75rem 1.5rem;
  }
}

/* ==================== Living in Japan Page Styles ==================== */
.living-page-wrapper {
  padding-bottom: 6rem;
}

.living-section {
  margin-top: 4rem;
}

.living-section:first-child {
  margin-top: 2rem;
}

/* Housing Intro Card */
.housing-intro-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
}

.housing-intro-text {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1rem;
}

.housing-intro-text:last-child {
  margin-bottom: 0;
}

/* Housing Sample Card (1K Type) */
.housing-sample-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(58, 52, 40, 0.08);
  padding: 2.5rem 2.5rem;
}

.housing-sample-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.6rem;
  display: inline-block;
}

.housing-sample-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.housing-sample-floorplan {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(58, 52, 40, 0.1);
  box-shadow: var(--shadow-sm);
}

.floorplan-svg-wrap {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.housing-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.housing-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.spec-label {
  font-weight: 700;
  color: var(--text);
}

.spec-val {
  color: var(--text);
}

.spec-val.highlight-val {
  font-weight: 700;
  color: var(--accent-deep);
  font-size: 1.1rem;
}

.spec-sublist-wrap {
  margin-top: 0.25rem;
}

.spec-sublist {
  list-style: none;
  padding-left: 0.5rem;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.housing-fine-print {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1.75rem;
  margin-bottom: 0;
  font-weight: 500;
}

/* Living Cost Table */
.living-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.living-table {
  width: 100%;
  border-collapse: collapse;
}

.living-table th {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid rgba(58, 52, 40, 0.1);
  text-align: left;
}

.living-table th.col-item-cost {
  text-align: right;
}

.living-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(58, 52, 40, 0.06);
  font-size: 0.96rem;
  vertical-align: middle;
}

.cell-item-cost {
  text-align: right;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--text);
}

.living-table tr:hover td {
  background: rgba(255, 254, 249, 0.8);
}

.living-table__total td {
  background: rgba(232, 212, 138, 0.18) !important;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  border-top: 2px solid rgba(58, 52, 40, 0.12);
}

.living-table-notice {
  padding: 1.1rem 1.5rem;
  background: var(--bg-cream);
  border-top: 1px solid rgba(58, 52, 40, 0.08);
}

.living-table-notice p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* Section 3: Event Photo Album Grid (Budonoki Style) */
.section-header__desc-box {
  max-width: 850px;
  margin: 1rem auto 0;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.event-album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.event-album-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-album-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.event-album-card__image-container {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f5f2eb 0%, #e8e2d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(58, 52, 40, 0.08);
}

.event-album-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-album-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.event-placeholder-icon {
  font-size: 2.5rem;
}

.event-placeholder-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.event-album-card__content {
  padding: 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-album-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.event-album-card__desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

/* Media Queries for Living Page */
@media (max-width: 992px) {
  .housing-sample-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .event-album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-sublist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .housing-intro-card,
  .housing-sample-card {
    padding: 1.5rem 1.25rem;
  }
  .event-album-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== Operator / Founder Page Styles ==================== */
.operator-page-wrapper {
  padding-bottom: 6rem;
}

.operator-section {
  margin-top: 4rem;
}

.operator-section:first-child {
  margin-top: 2rem;
}

.operator-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

/* Corporate Profile Table */
.operator-profile-table {
  width: 100%;
  border-collapse: collapse;
}

.operator-profile-table th,
.operator-profile-table td {
  padding: 1.15rem 1.6rem;
  border-bottom: 1px solid rgba(58, 52, 40, 0.06);
  font-size: 0.98rem;
  line-height: 1.7;
}

.operator-profile-table tr:last-child th,
.operator-profile-table tr:last-child td {
  border-bottom: none;
}

.col-profile-label {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  width: 220px;
  min-width: 180px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  border-right: 1px solid rgba(58, 52, 40, 0.08);
}

.col-profile-val {
  color: var(--text);
  font-weight: 500;
}

.operator-profile-table tr:hover td {
  background: rgba(255, 254, 249, 0.8);
}

/* Faculty & Staff Structure Table */
.staff-structure-table {
  width: 100%;
  border-collapse: collapse;
}

.staff-structure-table th {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  padding: 1.1rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid rgba(58, 52, 40, 0.1);
  text-align: left;
}

.col-staff-cat {
  width: 150px;
  text-align: center;
}

.col-staff-role {
  width: 240px;
}

.col-staff-count {
  text-align: left;
}

.staff-structure-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(58, 52, 40, 0.06);
  font-size: 0.96rem;
  vertical-align: middle;
}

.cell-staff-cat {
  background: var(--bg-cream);
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  border-right: 1px solid rgba(58, 52, 40, 0.08);
}

.cell-staff-role {
  font-weight: 600;
  color: var(--text);
}

.cell-staff-count {
  color: var(--text);
  font-weight: 500;
}

.row-highlight-sub td {
  background: rgba(232, 212, 138, 0.12);
}

.row-border-top td {
  border-top: 2px solid rgba(58, 52, 40, 0.1);
}

.staff-structure-table tr:hover td:not(.cell-staff-cat) {
  background: rgba(255, 254, 249, 0.85);
}

/* Media Queries for Operator Page */
@media (max-width: 640px) {
  .col-profile-label {
    width: 130px;
    min-width: 110px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }
  .col-profile-val {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }
  .staff-structure-table th,
  .staff-structure-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
  .cell-staff-cat {
    width: 90px;
    font-size: 0.95rem;
  }
}

/* Footer PDF Action Buttons (学則, 自己点検・評価) */
.footer-btn-card {
  display: inline-block;
  background: #ffffff;
  color: #2b261f;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.footer-btn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background: #faf8f5;
  color: #1a1713;
}

.footer-social-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-right: 0.85rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-social-link:hover {
  color: #ffffff;
}

.footer__contact-line {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__contact-line a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer__contact-line a:hover {
  text-decoration: underline;
}

/* Placeholder / Under Preparation Page Styles */
.placeholder-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  padding: 4rem 1.5rem 8rem;
}

.placeholder-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  padding: 4rem 3rem;
  max-width: 580px;
  width: 100%;
  text-align: center;
}

.placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.placeholder-status-badge {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(58, 52, 40, 0.12);
  margin-bottom: 1.5rem;
}

.placeholder-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

.placeholder-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 2.25rem;
}

.placeholder-actions {
  display: flex;
  justify-content: center;
}

/* Level Progression Table Styles */
.level-progression-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 52, 40, 0.08);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.level-progression-table {
  width: 100%;
  border-collapse: collapse;
}

.level-progression-table th {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  padding: 1.15rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid rgba(58, 52, 40, 0.1);
  text-align: left;
}

.col-level-title {
  width: 280px;
  min-width: 260px;
}

.col-level-content {
  width: auto;
}

.level-progression-table td {
  padding: 1.25rem 1.6rem;
  border-bottom: 1px solid rgba(58, 52, 40, 0.06);
  font-size: 0.98rem;
  line-height: 1.75;
  vertical-align: middle;
}

.level-progression-table tr:last-child td {
  border-bottom: none;
}

.cell-level-title {
  min-width: 260px;
  text-align: center;
  background: var(--bg-cream);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  border-right: 1px solid rgba(58, 52, 40, 0.08);
}

.level-badge-tag {
  display: inline-block;
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(58, 52, 40, 0.12);
  box-shadow: 0 2px 6px rgba(58, 52, 40, 0.04);
}

.cell-level-content {
  color: var(--text);
  font-weight: 400;
}

.level-progression-table tr:hover td:not(.cell-level-title) {
  background: rgba(255, 254, 249, 0.85);
}

@media (max-width: 640px) {
  .col-level-title {
    width: 150px;
    min-width: 130px;
  }
  .level-progression-table th,
  .level-progression-table td {
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
  }
  .level-badge-tag {
    font-size: 0.82rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Course Subjects Table (授業科目) */
.subjects-table-wrap {
  max-width: 850px;
  margin: 0 auto;
  background: var(--bg-card, #ffffff);
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(58, 52, 40, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.subjects-table {
  width: 100%;
  border-collapse: collapse;
}

.subjects-table th {
  background: linear-gradient(135deg, var(--bg-soft, #faf7f2) 0%, var(--bg-warm, #f5efe6) 100%);
  padding: 1.1rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid rgba(58, 52, 40, 0.1);
  text-align: left;
}

.col-subject-name {
  width: 1%;
  white-space: nowrap;
}

.col-subject-content {
  width: auto;
}

.subjects-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(58, 52, 40, 0.06);
  font-size: 0.95rem;
  vertical-align: top;
  line-height: 1.65;
}

.cell-subject-name {
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
  vertical-align: top;
}

.cell-subject-content {
  color: var(--text);
}

.subjects-table tr:last-child td {
  border-bottom: none;
}

.subjects-table tr:hover td {
  background: rgba(255, 254, 249, 0.85);
}

@media (max-width: 640px) {
  .subjects-table th,
  .subjects-table td {
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   Documentation & Regulations / Evaluation Placeholder Pages (.doc-*)
   ========================================================================== */
.doc-page-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 7rem;
}

.doc-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.doc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 246, 216, 0.95);
  border: 1px solid rgba(184, 134, 11, 0.28);
  padding: 0.38rem 1.1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #855b0a;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.06);
}

.doc-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d49726;
  box-shadow: 0 0 0 3px rgba(212, 151, 38, 0.22);
}

.doc-title {
  font-size: clamp(2.1rem, 4.5vw, 2.85rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.doc-subtitle {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
}

.doc-notice-banner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #fffdf8 0%, #fbf3df 100%);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-left: 5px solid #d49726;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3.5rem;
}

.doc-notice-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.doc-notice-content {
  flex: 1;
}

.doc-notice-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.doc-notice-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

.doc-section {
  margin-bottom: 3.5rem;
}

.doc-section-title-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.doc-section-eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9a7620;
  margin-bottom: 0.35rem;
}

.doc-section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.doc-card {
  background: var(--white);
  border: 1px solid rgba(58, 52, 40, 0.09);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

.doc-card__num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-card__status-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid rgba(58, 52, 40, 0.1);
  color: var(--text-muted);
}

.doc-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.doc-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.doc-download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 1.5px dashed rgba(58, 52, 40, 0.22);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 2px 10px rgba(58, 52, 40, 0.03);
}

.doc-download-card__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.doc-file-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.doc-file-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.doc-file-meta {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

.doc-btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  border: 1px solid rgba(58, 52, 40, 0.12);
  cursor: not-allowed;
  white-space: nowrap;
}

.doc-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .doc-notice-banner {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.4rem 1.5rem;
  }
  .doc-download-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 1.5rem;
  }
  .doc-download-card__right {
    width: 100%;
  }
  .doc-btn-disabled {
    width: 100%;
  }
}

