/*
Theme Name: Summer School 2026
Theme URI: https://example.com/summer-school-2026
Author: Kaya
Author URI: https://example.com
Description: International Summer School 2026 — 子どもたちの国際感覚と自立心を育む、サマースクール公式WordPressテーマ。モダンなデザインと軽量パフォーマンスを両立し、レスポンシブ対応で全デバイスに最適化。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: summer-school-2026
Tags: education, one-page, custom-menu, featured-images, translation-ready
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
*/

/* ==========================================================================
   0. CSS Custom Properties
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #1B3D6F;
  --color-primary-dark: #122B50;
  --color-primary-light: #2A5298;
  --color-accent: #3B82F6;
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-light: #F5F8FC;
  --color-border: #e2e8f0;

  /* Typography */
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Montserrat", var(--font-ja);
  --fs-hero: clamp(2rem, 6vw, 4rem);
  --fs-section: clamp(1.75rem, 4vw, 2.75rem);
  --fs-body: clamp(0.875rem, 1.2vw, 1rem);
  --fs-small: clamp(0.75rem, 1vw, 0.875rem);

  /* Spacing */
  --section-py: clamp(60px, 10vw, 120px);
  --container-px: clamp(16px, 4vw, 40px);
  --container-max: 1100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.4s;

  /* Misc */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(27, 61, 111, 0.08);
  --shadow-lg: 0 8px 40px rgba(27, 61, 111, 0.12);
  --header-h: 60px;
  --bottom-bar-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bottom-bar-h);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

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

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.sp-only { display: inline; }

/* ==========================================================================
   2. Utility – Animations (data-animate)
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-animate="fade-left"] { transform: translateX(-30px); }
[data-animate="fade-right"] { transform: translateX(30px); }
[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background var(--duration), box-shadow var(--duration);
}
.site-header--scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.header-logo img {
  height: 40px;
  width: auto;
}

/* Hamburger */
.menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 200;
  transition: transform 0.3s var(--ease-spring);
}
.menu-toggle:active { transform: scale(0.9); }
.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

/* ==========================================================================
   4. Fullscreen Menu Overlay
   ========================================================================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.fullscreen-menu[hidden] { display: flex; }
.fullscreen-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.fullscreen-menu.is-open .fullscreen-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-menu__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: transform 0.3s var(--ease-spring);
  z-index: 210;
}
.fullscreen-menu__close:hover,
.fullscreen-menu__close:active { transform: rotate(90deg); }

.fullscreen-menu__nav { text-align: center; }

.fullscreen-menu__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fullscreen-menu__link {
  display: inline-block;
  padding: 10px 24px;
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.25s;
  border-radius: var(--radius-sm);
}
/* Stagger animations */
.fullscreen-menu__list li:nth-child(1) .fullscreen-menu__link { transition-delay: 0.05s; }
.fullscreen-menu__list li:nth-child(2) .fullscreen-menu__link { transition-delay: 0.08s; }
.fullscreen-menu__list li:nth-child(3) .fullscreen-menu__link { transition-delay: 0.11s; }
.fullscreen-menu__list li:nth-child(4) .fullscreen-menu__link { transition-delay: 0.14s; }
.fullscreen-menu__list li:nth-child(5) .fullscreen-menu__link { transition-delay: 0.17s; }
.fullscreen-menu__list li:nth-child(6) .fullscreen-menu__link { transition-delay: 0.20s; }
.fullscreen-menu__list li:nth-child(7) .fullscreen-menu__link { transition-delay: 0.23s; }
.fullscreen-menu__list li:nth-child(8) .fullscreen-menu__link { transition-delay: 0.26s; }
.fullscreen-menu__list li:nth-child(9) .fullscreen-menu__link { transition-delay: 0.29s; }
.fullscreen-menu__list li:nth-child(10) .fullscreen-menu__link { transition-delay: 0.32s; }
.fullscreen-menu__list li:nth-child(11) .fullscreen-menu__link { transition-delay: 0.35s; }
.fullscreen-menu__list li:nth-child(12) .fullscreen-menu__link { transition-delay: 0.38s; }
.fullscreen-menu__list li:nth-child(13) .fullscreen-menu__link { transition-delay: 0.41s; }
.fullscreen-menu__list li:nth-child(14) .fullscreen-menu__link { transition-delay: 0.44s; }

.fullscreen-menu__link:hover,
.fullscreen-menu__link:focus-visible {
  background: rgba(255,255,255,0.12);
}

.fullscreen-menu__link--sub {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}
.fullscreen-menu__link--sub:hover { color: var(--color-white); }

.fullscreen-menu__divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 8px auto;
}

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

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 61, 111, 0.35) 0%,
    rgba(27, 61, 111, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 20px;
}

.hero__emblem {
  margin-bottom: 20px;
}
.hero__emblem img {
  width: clamp(100px, 22vw, 180px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero__title {
  margin-bottom: 16px;
}
.hero__title-en {
  display: block;
  font-family: var(--font-en);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__title-year {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-top: 4px;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ==========================================================================
   6. Wave Dividers
   ========================================================================== */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  width: 100%;
  height: clamp(50px, 8vw, 120px);
  display: block;
}

/* Sections that have wave-dividers need relative positioning */
.hero, .features, .overview, .growth, .activities, .stay,
.team, .schedule, .safety, .flow, .faq {
  position: relative;
}

/* ==========================================================================
   7. Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 50px);
}
.section-header__en {
  font-family: var(--font-en);
  font-size: var(--fs-section);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  line-height: 1.2;
}
.section-header__ja {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-top: 4px;
  letter-spacing: 0.1em;
}

.section-header--light .section-header__en { color: var(--color-white); }
.section-header--light .section-header__ja { color: rgba(255,255,255,0.7); }

/* ==========================================================================
   8. Intro Section
   ========================================================================== */
.intro {
  padding: clamp(40px, 6vw, 80px) 0;
  text-align: center;
}
.intro__text {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 2;
  color: var(--color-text);
  max-width: 640px;
  margin-inline: auto;
}

/* ==========================================================================
   9. Features Section
   ========================================================================== */
.features {
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
}
.feature-card__img {
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-lg);
}
.feature-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.feature-card:hover .feature-card__img img {
  transform: scale(1.08);
}
.feature-card__title {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ==========================================================================
   10. Overview Section
   ========================================================================== */
.overview {
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
  background: var(--color-bg-light);
}

.overview__table {
  max-width: 700px;
  margin-inline: auto;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.overview__list { padding: 0; }
.overview__row {
  display: flex;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  gap: 16px;
}
.overview__row:last-child { border-bottom: none; }
.overview__row dt {
  flex-shrink: 0;
  width: 100px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--fs-small);
}
.overview__row dd {
  flex: 1;
  font-size: var(--fs-small);
}
.overview__sub {
  display: block;
  font-size: 0.8em;
  color: var(--color-text-light);
  margin-top: 2px;
}

.overview__cta {
  text-align: center;
  margin-top: 36px;
}

/* ==========================================================================
   11. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-ja);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(27, 61, 111, 0.3);
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(27, 61, 111, 0.2);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn--white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.btn--sm { padding: 10px 24px; font-size: var(--fs-small); }
.btn--full { width: 100%; }

/* Ripple effect */
.btn--ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
  border-radius: inherit;
}
.btn--ripple:active::after {
  transform: scale(2.5);
  opacity: 1;
  transition: none;
}

.section-cta { text-align: center; margin-top: 32px; }

/* ==========================================================================
   12. Growth Section
   ========================================================================== */
.growth {
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
}

.growth__content {
  max-width: 800px;
  margin-inline: auto;
}
.growth__text {
  text-align: center;
  margin-bottom: 40px;
}
.growth__text p {
  margin-bottom: 12px;
  line-height: 1.9;
}

.growth__points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.growth__point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-bg-light);
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.growth__point:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.growth__point-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.growth__point h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.growth__point p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ==========================================================================
   13. Carousel (Activities & Stay)
   ========================================================================== */
.activities,
.stay {
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
}
.activities { background: var(--color-bg-light); }

.carousel {
  position: relative;
  padding: 0 var(--container-px);
  max-width: 1200px;
  margin-inline: auto;
}

.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0 20px;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 auto;
  width: clamp(260px, 72vw, 360px);
  scroll-snap-align: center;
}

.carousel__card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-white);
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.carousel__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.carousel__card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.carousel__card:hover img {
  transform: scale(1.05);
}

.carousel__caption {
  padding: 12px 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
}

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s var(--ease-spring);
}
.carousel__btn:hover { background: var(--color-primary-light); }
.carousel__btn:active { transform: scale(0.9); }

.carousel__dots {
  display: flex;
  gap: 8px;
}
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease-spring);
}
.carousel__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* Stay buttons */
.stay__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ==========================================================================
   14. Team Section
   ========================================================================== */
.team {
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
  background: var(--color-primary);
  color: var(--color-white);
}

.team__desc {
  text-align: center;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.8;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 700px;
  margin-inline: auto;
}

.team__card {
  text-align: center;
  transition: transform 0.3s var(--ease-out);
}
.team__card:hover { transform: translateY(-5px); }

.team__card-img {
  width: clamp(80px, 18vw, 130px);
  height: clamp(80px, 18vw, 130px);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,0.3);
}
.team__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__card-name {
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  margin-bottom: 2px;
}
.team__card-role {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   15. Accordion (Schedule & FAQ)
   ========================================================================== */
.schedule,
.faq {
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
}
.faq { background: var(--color-bg-light); }

.accordion {
  max-width: 700px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  text-align: left;
  transition: background 0.25s;
}
.accordion__trigger:hover { background: var(--color-bg-light); }

.accordion__day {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.accordion__q {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion__title {
  flex: 1;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--color-text);
}

.accordion__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-out);
  color: var(--color-text-light);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.accordion__trigger[aria-expanded="true"] + .accordion__panel {
  grid-template-rows: 1fr;
}
.accordion__content {
  overflow: hidden;
}
.accordion__content > * {
  padding: 0 20px 20px;
}
.accordion__content p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Schedule list */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.schedule-list li {
  display: flex;
  gap: 16px;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.schedule-list time {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--color-primary);
  min-width: 50px;
}
.schedule-list span {
  color: var(--color-text);
}

/* ==========================================================================
   16. Safety Section
   ========================================================================== */
.safety {
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
  background: var(--color-bg-light);
}

.safety__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin-inline: auto;
}

.safety__card {
  background: var(--color-white);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out);
}
.safety__card:hover { transform: translateY(-3px); }
.safety__icon { margin-bottom: 12px; }
.safety__card h3 {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.safety__card p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ==========================================================================
   17. Flow Section
   ========================================================================== */
.flow {
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
}

.flow__steps {
  max-width: 650px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.flow__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}
/* Connecting line */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 22px;
  width: 2px;
  height: calc(100% - 40px);
  background: var(--color-border);
}

.flow__step-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.flow__step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.flow__step-body p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ==========================================================================
   18. Contact Section
   ========================================================================== */
.contact {
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 20px);
  background: var(--color-primary);
  color: var(--color-white);
}

.contact__form-wrap {
  max-width: 600px;
  margin-inline: auto;
}

/* Fallback form styles */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.9);
}
.form-group .required { color: #ff6b6b; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  transition: border-color 0.3s, background 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
}
.form-group select option { color: var(--color-text); background: var(--color-white); }
.form-group--submit { margin-top: 8px; }

/* CF7 / WPForms overrides */
.wpcf7-form,
.wpforms-container {
  color: var(--color-white);
}
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea,
.wpforms-container input,
.wpforms-container select,
.wpforms-container textarea {
  border: 2px solid rgba(255,255,255,0.2) !important;
  background: rgba(255,255,255,0.08) !important;
  color: var(--color-white) !important;
  border-radius: var(--radius-sm) !important;
}

/* ==========================================================================
   19. Footer
   ========================================================================== */
.site-footer {
  padding: 40px 0;
  text-align: center;
  background: var(--color-bg-light);
}
.footer-logo {
  margin-bottom: 12px;
}
.footer-logo img {
  margin-inline: auto;
  opacity: 0.6;
}
.footer-copy {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

/* ==========================================================================
   20. Fixed Bottom Bar
   ========================================================================== */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-h);
  z-index: 90;
  display: flex;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.fixed-bottom-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 700;
  color: var(--color-white);
  transition: filter 0.25s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.fixed-bottom-bar__btn:active { transform: scale(0.97); }
.fixed-bottom-bar__btn--contact {
  background: var(--color-primary);
}
.fixed-bottom-bar__btn--booking {
  background: var(--color-accent);
}
.fixed-bottom-bar__btn:hover { filter: brightness(1.1); }

/* Tap pulse */
.fixed-bottom-bar__btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  opacity: 0;
  transition: opacity 0.3s;
}
.fixed-bottom-bar__btn:active::after { opacity: 1; }

/* ==========================================================================
   21. Lightbox (for carousel images)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: var(--fs-small);
  text-align: center;
}

/* ==========================================================================
   22. Responsive – Tablet (≥768px)
   ========================================================================== */
@media (min-width: 768px) {
  .sp-only { display: none; }

  .overview__row dt { width: 140px; }

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

/* ==========================================================================
   23. Responsive – Desktop (≥1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
    --bottom-bar-h: 0px; /* Hide bottom bar on desktop */
  }

  body { padding-bottom: 0; }

  .fixed-bottom-bar { display: none; }

  /* Show inline CTA on desktop instead */
  .site-header .header-inner {
    /* Additional desktop nav items could be added here */
  }

  .features__grid { gap: 40px; }

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

  .team__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .carousel__slide {
    width: 340px;
  }

  /* Desktop menu: fullscreen still but with bigger text */
  .fullscreen-menu__link {
    font-size: 1.3rem;
    padding: 12px 32px;
  }
}

/* ==========================================================================
   24. Responsive – Small Mobile (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
  .features__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .safety__grid {
    grid-template-columns: 1fr;
  }

  .team__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .overview__row {
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
  }
  .overview__row dt {
    width: auto;
    font-size: 0.75rem;
    opacity: 0.8;
  }
}

/* ==========================================================================
   25. Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; }
}

/* ==========================================================================
   26. Print
   ========================================================================== */
@media print {
  .site-header,
  .fixed-bottom-bar,
  .fullscreen-menu,
  .wave-divider,
  .carousel__nav { display: none !important; }

  body { padding: 0; }
  section { break-inside: avoid; }
}

/* ==========================================================================
   27. Sub-page Styles (Activities & Members pages)
   ========================================================================== */
.subpage-hero {
  position: relative;
  height: 50vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.subpage-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,61,111,0.4), rgba(27,61,111,0.6));
}
.subpage-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}
.subpage-hero__title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.subpage-hero__subtitle {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.12em;
  margin-top: 8px;
  color: rgba(255,255,255,0.85);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  background: var(--color-bg-light);
}
.breadcrumb__list {
  display: flex;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--color-text-light);
}
.breadcrumb__list li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
}
.breadcrumb__list a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb__list a:hover { text-decoration: none; }

/* Activities Page */
.activities-page {
  position: relative;
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
}
.activities-page__intro,
.members-page__intro {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 60px);
  line-height: 2;
  color: var(--color-text);
}

.activity-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 60px);
}
.activity-detail--reverse { direction: rtl; }
.activity-detail--reverse > * { direction: ltr; }

.activity-detail__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.activity-detail__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.activity-detail:hover .activity-detail__img img {
  transform: scale(1.04);
}

.activity-detail__num {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 4px;
}
.activity-detail__title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.activity-detail__desc {
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--color-text-light);
}

@media (max-width: 767px) {
  .activity-detail {
    grid-template-columns: 1fr;
  }
  .activity-detail--reverse { direction: ltr; }
}

/* Members Page */
.members-page {
  position: relative;
  padding: var(--section-py) 0;
  padding-bottom: calc(var(--section-py) + 60px);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.member-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.member-card__img {
  aspect-ratio: 1;
  overflow: hidden;
}
.member-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.member-card:hover .member-card__img img { transform: scale(1.05); }

.member-card__body { padding: 20px; }
.member-card__name {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.member-card__role {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-bottom: 10px;
}
.member-card__bio {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--color-text);
}

@media (max-width: 480px) {
  .members-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .members-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* Sub-page CTA */
.subpage-cta {
  padding: clamp(50px, 8vw, 80px) 0;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}
.subpage-cta p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  margin-bottom: 24px;
  line-height: 1.8;
}
