:root {
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Sans JP', sans-serif;
  --font-en: 'Noto Sans JP', sans-serif;
  
  --color-dark: #1b1917;
  --color-light: #faf8f5;
  --paper-deep: #efebe2;
  --ink-soft: #5b584f;
  --clay-gold: #b78c30;
  --clay-deep: #7a5c3a;
  --moss-green: #4a5842;
  --line-light: rgba(0, 0, 0, 0.08);
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: inherit; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-light);
  color: var(--color-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   💡 1. 全画面メニュー (HTML: .menu-overlay)
   ========================================================= */
.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--color-dark); z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.menu-overlay.active { opacity: 1; pointer-events: auto; }
.menu-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.5s ease;
}
.menu-container {
  position: relative; z-index: 2; height: 100%;
  display: flex; padding: 100px 60px;
}
.menu-kids,
.menu-parents { display: grid; align-content: center; gap: 28px 48px; }
.menu-kids { flex: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-parents {
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 40px;
}
.menu-group { min-width: 0; }
.menu-group .menu-link {
  display: inline-block;
  margin-bottom: 10px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.menu-group ul { display: grid; gap: 7px; list-style: none; }
.menu-group li a,
.menu-group li span,
.menu-group li button {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.menu-group a:hover,
.menu-group a:focus-visible,
.menu-group li button:hover,
.menu-group li button:focus-visible { color: var(--clay-gold); }
.menu-group li span { opacity: 0.62; }
.menu-chime-button {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.menu-chime-caption {
  color: #fff;
  font-size: 12px;
}
.menu-chime-caption[hidden] { display: none; }

/* =========================================================
   💡 2. ヘッダー・ロゴ・メニューボタン (HTML: .header)
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  width: 100%;
  height: 78px;
  z-index: 1000;
  border: 1px solid rgba(122, 92, 58, 0.24);
  border-radius: 0;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transition: height 0.6s ease, width 0.6s ease, border-radius 0.6s ease, background-color 0.3s ease;
}
.header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 12px;
  background: linear-gradient(to bottom, rgba(27, 25, 23, 0.14), transparent);
  content: "";
  pointer-events: none;
  transform: translateY(100%);
}
.header.is-past-hero {
  width: calc(100% - 32px);
  border-radius: 24px;
}
.header.is-past-hero::after {
  right: 24px;
  left: 24px;
}
.header.is-compact {
  margin-top: 16px;
  height: 39px;
  border-radius: 20px;
  width: 160px;
  max-width: calc(100vw - 32px);
  transition: height 0.5s ease, width 0.5s ease, border-radius 0.5s ease, background-color 0.3s ease;
}
.header.is-compact .header-inner {
  width: auto;
  justify-content: center;
  gap: 0;
  padding-inline: 12px;
}
.header.is-compact .primary-nav,
.header.is-compact .menu-toggle {
  position: absolute;
}
.header .logo,
.header .primary-nav {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, filter 0.6s ease, visibility 0s;
}
.header .primary-nav {
  filter: blur(0);
}
.header.is-compact .logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.header.is-compact .primary-nav {
  filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.00s ease, filter 0.3s ease, visibility 0s linear 0.3s;
}
.header.is-compact .menu-toggle {
  filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.00s ease, filter 0.3s ease, visibility 0s linear 0.3s, background-color 0.2s ease, transform 0.2s ease;
}
.header-expand-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--clay-gold);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.header.is-compact .header-expand-toggle {
  position: static;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.5s ease, visibility 0s;
}
.header-expand-toggle .logo-crest {
  height: 28px;
}
.header-expand-toggle:focus-visible {
  outline: 2px solid var(--clay-gold);
  outline-offset: 4px;
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 36px);
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 24px;
}
.primary-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.primary-nav-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(160px, 20vw, 250px);
  width: 100%;
}
.primary-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0;
  list-style: none;
}
.primary-nav-list-left { justify-content: flex-start; }
.primary-nav-list-right { justify-content: flex-end; }
.primary-nav-list > li { position: relative; height: 100%; }
.primary-nav-link,
.primary-nav-trigger {
  display: flex;
  position: relative;
  align-items: center;
  height: 100%;
  padding: 0 clamp(6px, 0.75vw, 12px);
  border: 0;
  background: transparent;
  color: var(--color-dark);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.primary-nav-trigger { gap: 8px; }
.nav-indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease, color 0.2s ease;
}
.primary-nav-item:hover .nav-indicator,
.primary-nav-item:has(:focus-visible) .nav-indicator {
  margin-top: 4px;
  transform: rotate(225deg);
}
.primary-nav-cta-item {
  display: flex;
  align-items: center;
}
.primary-nav-link::after,
.primary-nav-trigger::after {
  position: absolute;
  right: 16px;
  bottom: 19px;
  left: 16px;
  height: 2px;
  background: var(--clay-gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.primary-nav-link:hover,
.primary-nav-link:focus-visible,
.primary-nav-trigger:hover,
.primary-nav-trigger:focus-visible,
.primary-nav-item:hover > .primary-nav-trigger,
.primary-nav-item:has(:focus-visible) > .primary-nav-trigger { color: var(--clay-deep); }
.primary-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 8px;
  padding: 0 16px;
  border: 1px solid var(--clay-gold);
  border-radius: 4px;
  background: var(--clay-gold);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(122, 92, 58, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.primary-nav-cta:hover,
.primary-nav-cta:focus-visible {
  transform: translateY(-1px);
  border-color: var(--clay-deep);
  background: var(--clay-deep);
  color: #fff;
  box-shadow: 0 5px 14px rgba(122, 92, 58, 0.22);
}
.primary-nav-cta:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }
.primary-nav-link:hover::after,
.primary-nav-link:focus-visible::after,
.primary-nav-trigger:hover::after,
.primary-nav-trigger:focus-visible::after,
.primary-nav-item:hover > .primary-nav-trigger::after,
.primary-nav-item:has(:focus-visible) > .primary-nav-trigger::after { transform: scaleX(1); }
.primary-nav-trigger:focus-visible,
.primary-nav-link:focus-visible { outline: 2px solid var(--clay-gold); outline-offset: -5px; }
.nav-dropdown {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px 24px;
  width: 100%;
  padding: 32px max(32px, calc((100vw - 1440px) / 2));
  border-top: 2px solid var(--clay-gold);
  background: rgba(250, 248, 245, 0.98);
  box-shadow: 0 18px 36px rgba(27, 25, 23, 0.16);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transform-origin: top;
  transition: opacity 0.24s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
}
.nav-dropdown::before {
  position: absolute;
  top: -18px;
  right: 0;
  left: 0;
  height: 18px;
  content: "";
}
.primary-nav-item:hover .nav-dropdown,
.primary-nav-item:has(:focus-visible) .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
  color: var(--color-dark);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.nav-dropdown-action {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  background: transparent;
  color: var(--color-dark);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.nav-dropdown-action:hover,
.nav-dropdown-action:focus-visible { background: var(--paper-deep); color: var(--clay-deep); transform: translateX(4px); }
.nav-dropdown-action:focus-visible { outline: 2px solid var(--clay-gold); outline-offset: -2px; }
.nav-chime-button.is-playing .nav-dropdown-icon { animation: chime-note-sway 0.65s ease-in-out infinite alternate; transform-origin: center bottom; }
.nav-chime-caption {
  display: block;
  padding: 0 16px 10px 48px;
  color: var(--clay-deep);
  font-size: 12px;
}
.nav-chime-caption[hidden] { display: none; }
.nav-dropdown-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.nav-dropdown-icon-instagram .instagram-flash {
  fill: currentColor;
  stroke: none;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible { background: var(--paper-deep); color: var(--clay-deep); transform: translateX(4px); }
.header-brand-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translate(-50%, -50%);
}
.header-brand-cluster .logo {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}
.header-chime-player {
  position: absolute;
  top: 50%;
  left: calc(50% + clamp(90px, 6.5vw, 102px));
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  z-index: 2;
  gap: 2px;
  padding: 3px 4px;
  border: 1px solid rgba(122, 92, 58, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-dark);
  box-shadow: 0 2px 8px rgba(27, 25, 23, 0.08);
  transform: translateY(-50%);
}
.header-chime-player[hidden] { display: none; }
.header-chime-time {
  padding-inline: 3px;
  color: var(--clay-deep);
  font-family: var(--font-en);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-chime-control {
  display: grid;
  width: 25px;
  height: 26px;
  flex: 0 0 25px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--clay-deep);
  cursor: pointer;
}
.header-chime-control:hover,
.header-chime-control:focus-visible {
  background: var(--paper-deep);
  outline: none;
}
.header-chime-control:focus-visible { box-shadow: 0 0 0 2px var(--clay-gold); }
.header-chime-control svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.header-chime-control .chime-icon-play { fill: currentColor; stroke: none; }
.header-chime-control .chime-icon-pause { display: none; fill: currentColor; stroke: none; }
.header-chime-player.is-playing .chime-icon-play { display: none; }
.header-chime-player.is-playing .chime-icon-pause { display: block; }
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.6vw, 24px); font-weight: 400; letter-spacing: 2px;
  text-decoration: none; color: var(--clay-gold); white-space: nowrap;
  transform: translate(-50%, -50%);
}
.logo-crest { display: block; height: 46px; width: auto; flex: 0 0 auto; }
.logo-label { position: relative; display: inline-block; }
.header .logo-miho { font-family: "Bryant Pro", sans-serif; font-weight: 300; }
.header .logo-school { font-family: "Noto Sans JP", sans-serif; font-weight: 300; }
.header.menu-open .logo { color: var(--clay-gold); }

@media (min-width: 901px) and (max-width: 1120px) {
  .header-inner { gap: 12px; padding-inline: 18px; }
  .logo { gap: 10px; font-size: 19px; letter-spacing: 1px; }
  .logo-crest { height: 40px; }
  .header-chime-player { left: calc(50% + 78px); transform: translateY(-50%) scale(0.62); transform-origin: left center; }
  .primary-nav-link,
  .primary-nav-trigger { padding-inline: 5px; font-size: 13px; }
  .primary-nav-trigger { gap: 5px; }
}

@media (min-width: 1121px) and (max-width: 1280px) {
  .header-chime-player {
    gap: 0;
    padding: 2px 3px;
  }
  .header-chime-time { font-size: 9px; }
  .header-chime-control { width: 21px; height: 22px; flex-basis: 21px; }
}

@media (min-width: 1281px) {
  .header-chime-player { left: calc(50% + clamp(98px, 7.1vw, 110px)); }
}

@media (min-width: 901px) and (max-width: 1000px) {
  .header.is-chime-locked .header-chime-player { visibility: hidden; pointer-events: none; }
}

@media (min-width: 1040px) and (max-width: 1079px) {
  .header.is-chime-locked .header-chime-player { transform: translateY(-50%) scale(0.72); }
}

@media (min-width: 1080px) and (max-width: 1120px) {
  .header.is-chime-locked .header-chime-player { transform: translateY(-50%) scale(0.85); }
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .header { height: 68px; }
  .header.is-past-hero { width: calc(100% - 20px); border-radius: 22px; }
  .header.is-past-hero::after { right: 22px; left: 22px; }
  .header.is-compact {
    height: 34px;
    width: 151px;
    border-radius: 18px;
    transition: height 0.5s ease, width 0.5s ease, border-radius 0.5s ease, background-color 0.3s ease;
  }
  .header-inner { padding-inline: 20px; }
  .header.is-chime-locked .header-brand-cluster { left: 20px; transform: translateY(-50%); }
  .header.is-chime-locked .header-brand-cluster .logo { gap: 5px; font-size: 14px; letter-spacing: 0; }
  .header.is-chime-locked .header-brand-cluster .logo-crest { height: 30px; }
  .header.is-chime-locked .header-chime-player { left: 158px; }
  .header.is-chime-locked .menu-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
  }
  .header.menu-open { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
  .header.is-compact .header-expand-toggle { font-size: 14px; }
  .header.is-compact .header-expand-toggle .logo-crest { height: 23px; }
  .menu-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 28px;
    overflow-y: auto;
    padding: 90px 32px 36px;
  }
  .menu-kids,
  .menu-parents {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 24px;
    border: 0;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .menu-container { grid-template-columns: 1fr; gap: 24px; padding: 86px 24px 32px; }
  .menu-kids,
  .menu-parents { gap: 20px; }
  .menu-group .menu-link { font-size: 16px; }
  .logo { gap: 10px; font-size: 18px; letter-spacing: 1px; }
  .logo-crest { height: 38px; }
  .header-inner { padding-inline: 16px; }
  .header.is-chime-locked .header-brand-cluster { left: 12px; gap: 6px; }
  .header.is-chime-locked .header-brand-cluster .logo { gap: 3px; font-size: 12px; letter-spacing: 0; }
  .header.is-chime-locked .header-brand-cluster .logo-crest { height: 26px; }
  .header.is-chime-locked .header-chime-player { left: 124px; }
  .header-chime-player { gap: 1px; padding: 2px; }
  .header-chime-time { padding-inline: 2px; font-size: 9px; }
  .header-chime-control { width: 24px; height: 26px; flex-basis: 24px; }
}

@media (max-width: 380px) {
  .header.is-chime-locked .header-brand-cluster { left: 8px; gap: 4px; }
  .header.is-chime-locked .header-brand-cluster .logo { gap: 3px; font-size: 12px; }
  .header.is-chime-locked .header-brand-cluster .logo-crest { height: 26px; }
  .header.is-chime-locked .header-chime-player { left: 112px; }
  .header-chime-player { gap: 0; padding: 1px; }
  .header-chime-time { padding-inline: 1px; font-size: 8px; }
  .header-chime-control { width: 22px; height: 24px; flex-basis: 22px; }
}

.header-ripple {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1002;
  width: 42vmax;
  height: 42vmax;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.header-ripple span {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(76, 153, 163, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(76, 153, 163, 0.24), inset 0 0 24px rgba(76, 153, 163, 0.18);
  opacity: 0;
  animation: header-water-ripple 1.6s cubic-bezier(0.16, 0.65, 0.35, 1) forwards;
}
.header-ripple span:nth-child(2) { animation-delay: 0.2s; }
.header-ripple span:nth-child(3) { animation-delay: 0.4s; }
@keyframes header-water-ripple {
  0% { opacity: 0; transform: scale(0.04); }
  12% { opacity: 0.7; }
  100% { opacity: 0; transform: scale(1.45); }
}
@keyframes chime-note-sway {
  from { transform: rotate(-16deg) translateY(1px); }
  to { transform: rotate(16deg) translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .header,
  .header.is-compact,
  .header.is-compact .logo,
  .header.is-compact .primary-nav,
  .header.is-compact .menu-toggle,
  .header-expand-toggle {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
  .nav-chime-button.is-playing .nav-dropdown-icon { animation: none; }
  .header-ripple { display: none; }
}

.menu-toggle {
  display: flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 0;
  border-radius: 50%;
  background: var(--clay-gold);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.5s ease, visibility 0s, background-color 0.2s ease, transform 0.2s ease;
  filter: blur(0);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1001;
}
.menu-toggle:hover { background: var(--clay-deep); transform: rotate(4deg); }
.menu-toggle:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }
.menu-toggle span {
  display: block; width: 20px; height: 1.5px; background: currentColor;
  transition: transform 0.3s, background-color 0.3s;
}

@media (max-width: 600px) {
  .menu-toggle { width: 44px; height: 44px; flex-basis: 44px; }
}

/* =========================================================
   💡 3. ヒーローセクション (HTML: .hero)
   ========================================================= */
.hero { 
  --header-offset: 78px;
  --hero-scroll-buffer: 0px;
  height: calc(100vh - var(--header-offset) + var(--hero-scroll-buffer));
  margin-top: var(--header-offset);
  position: sticky;
  top: var(--header-offset);
  z-index: 1;
  overflow: hidden;
  transition: height 0.5s ease, margin-top 0.5s ease, top 0.5s ease;
}
.header.is-compact ~ .hero { --header-offset: 39px; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero { --header-offset: 68px; }
  .header.is-compact ~ .hero { --header-offset: 34px; }
}
.hero-content {
  position: absolute; bottom: 100px; left: 60px; color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4); z-index: 2;
}
.hero-title { font-family: var(--font-serif); font-size: 4.2vw; line-height: 1.3; font-weight: 400; letter-spacing: 2px; text-shadow: 
    0 2px 4px rgba(120, 90, 40, 0.8),
    0 0 10px rgba(184, 134, 11, 0.6);}
.hero-subtitle { font-family: var(--font-sans); font-size: 24px; letter-spacing: 4px; margin-top: 16px; opacity: 0.9; text-shadow: 
    0 1px 3px rgba(120, 90, 40, 0.8);}

.hero-content.theme-light .hero-title {
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(90, 60, 20, 0.75),
    0 0 12px rgba(184, 134, 11, 0.5);
}
.hero-content.theme-light .hero-subtitle {
  color: #ffffff;
  text-shadow: 
    0 1px 3px rgba(90, 60, 20, 0.8),
    0 0 8px rgba(184, 134, 11, 0.4);
}

.hero-content.theme-dark .hero-title {
  color:#4f4943; 
  text-shadow: 
    0 0 50px rgba(255, 255, 255, 1),
    0 0 30px rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.15);
  }
.hero-content.theme-dark .hero-subtitle {
  color:#4f4943;;
  text-shadow: 
    0 0 12px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   💡 4. コンテンツレイヤー ＆ 導入セクション (HTML: .content-layer, .scroll-cloud-section)
   ========================================================= */
.content-layer {
  position: relative; z-index: 10;
  background-color: var(--color-light);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.12);
  border-top-left-radius: 28px; border-top-right-radius: 28px;
}

.scroll-cloud-section {
  position: relative;
  width: 100%;
  height: 300vh; /* 画面固定しながらスクロールさせるための高さ */
  background-color: var(--color-light);
  z-index: 5;
}

.scroll-cloud-section .sticky-container {
  position: sticky; /* 画面上端に固定 */
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 導入背景コンテンツ（最初から常時表示） */
.revealed-content {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  opacity: 1; /* 変更：最初から表示 */
  transform: none; /* 変更：変形なし */
  pointer-events: auto; /* 変更：最初から操作可能 */
  background-image: linear-gradient(rgba(250, 248, 245, 0.38), rgba(250, 248, 245, 0.38)), url('./images/hero/chapel2.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

.revealed-inner {
  max-width: 1100px;
  width: 100%;
  padding: 0px 350px 170px 0px; /* 上 | 右 | 下💡 テキスト表示位置の上方向への微調整 | 左 */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
}

.reveal-copy-switch { width: min(1040px, 100%); min-height: min(58vh, 640px); position: relative; display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; }

.reveal-copy-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.985); filter: blur(8px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 1.1s ease, filter 1.1s ease;
  box-sizing: border-box;
}

.reveal-copy-panel.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); filter: blur(0); }
.reveal-copy-panel.is-visible .reveal-title-serif { animation: copyFloat 2.2s ease-in-out 0.2s infinite alternate; }

.reveal-copy-panel .reveal-title-serif {
  max-width: 980px; font-size: clamp(28px, 3.2vw, 30px); line-height: 1.62; font-weight: 400; margin: 0; color: var(--clay-gold);
  overflow-wrap: break-word;
}
.reveal-copy-panel .reveal-tag { display: inline-block; font-size: 11px; letter-spacing: 4px; margin-bottom: 24px; color: var(--clay-gold); }

@keyframes copyFloat {
  from { transform: translateY(0px); opacity: 0.98; }
  to { transform: translateY(-5px); opacity: 1; }
}

/* =========================================================
   💡 画面右上のスクロールステップゲージ ( 2セグメント / MAXエフェクト)
   ========================================================= */
.scroll-gauge-container {
  position: absolute;
  top: 100px;
  right: 28px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 15px;
  height: 100px;
  pointer-events: none;
}

.gauge-segment {
  position: relative;
  flex: 1;
  width: 100%;
  background-color: rgba(183, 140, 48, 0.18);
  border-radius: 9999px;
  overflow: visible; /* 波紋エフェクトを外側に広げるため */
}

.gauge-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #ecb53f;
  border-radius: 9999px;
  transition: height 0.05s linear, background-color 0.3s ease;
}

.gauge-segment.is-completed .gauge-fill {
  height: 100% !important;
  background-color: #ecb53f;
}

/* MAX到達時のポップアップアニメーション */
.gauge-segment.is-popping {
  animation: gaugePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes gaugePop {
  0%   { transform: scale(1); }
  40%  { transform: scaleX(2.2) scaleY(1.05); }
  100% { transform: scale(1); }
}

/* MAX到達時の波紋（リップル）エフェクト */
.gauge-ripple {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid #b78c30;
  opacity: 0;
  pointer-events: none;
}

.gauge-ripple.is-active {
  animation: gaugeRipple 0.6s ease-out forwards;
}

@keyframes gaugeRipple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scaleX(2.5) scaleY(1.3);
    opacity: 0;
  }
}

@media (max-width: 800px) {
  .revealed-inner { padding: 0px 200px 170px 0px; /* 💡 スマホ時は押し上げ幅を小さく調整 */ }
  .reveal-copy-switch { min-height: 48vh; }
  .reveal-copy-panel .reveal-title-serif { font-size: 24px; line-height: 1.5; }
  
  .scroll-gauge-container {
    top: 24px;
    right: 16px;
    height: 120px;
    width: 5px;
    gap: 6px;
  }
}
/* =========================================================
   💡 セクション共通見出し (HTML内で複数回使用)
   ========================================================= */
.section-header-center { text-align: center; margin-bottom: 30px; }
.section-sub { font-family: var(--font-en); font-size: 11px; letter-spacing: 4px; color: var(--clay-gold); display: block; margin-bottom: 8px; }
.section-title-serif { font-family: var(--font-serif); font-size: 30px; font-weight: 600; letter-spacing: 2px; color: var(--color-dark); }
.title-divider { width: 30px; height: 1px; background-color: var(--clay-gold); margin: 16px auto 0; }


/* =========================================================
   💡 5. お知らせ (HTML: .news)
   ========================================================= */
.news { position: relative; padding: 40px 0 100px 0; }
.news-container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.news-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }

.section-title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; letter-spacing: 2px; }
.section-title .en { display: block; font-family: var(--font-en); font-size: 11px; letter-spacing: 3px; color: var(--clay-gold); margin-top: 4px; }

.news-archive-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-dark); font-size: 14px; letter-spacing: 1px; }
.news-archive-link .arrow-circle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.news-archive-link:hover .arrow-circle { background: var(--color-dark); color: white; transform: translateX(4px); }

.news-filter-bar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 0; border-bottom: 1px solid var(--line-light); padding-bottom: 16px; }
.tag-scroll-area { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tag-chip, .modal-tag-btn { background: white; border: 1px solid rgba(0,0,0,0.1); padding: 6px 16px; border-radius: 100px; font-size: 12px; color: var(--ink-soft); cursor: pointer; transition: all 0.25s; }
.tag-chip.active, .modal-tag-btn.active { background: var(--color-dark); color: white; border-color: var(--color-dark); }

@media (max-width: 900px) {
  .tag-scroll-area .tag-chip:nth-child(n + 5) { display: none; }
}

.news-filter-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.news-instagram-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: 6px; background: white; color: var(--color-dark); font-size: 12px; text-decoration: none; white-space: nowrap; transition: border-color 0.25s, background-color 0.25s; }
.instagram-brand-icon { width: 20px; height: 20px; flex: 0 0 auto; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.instagram-banner-icon { width: 48px; height: 48px; }
.news-instagram-link:hover,
.news-instagram-link:focus-visible { border-color: var(--clay-gold); background: var(--paper-deep); }
.news-instagram-link:focus-visible { outline: 2px solid var(--clay-gold); outline-offset: 3px; }
.tag-modal-trigger { width: 10em; flex: 0 0 10em; justify-content: center; white-space: nowrap; background: var(--paper-deep); border: none; padding: 6px 8px; border-radius: 6px; font-size: 12px; color: var(--color-dark); cursor: pointer; display: flex; align-items: center; gap: 6px; }

@media (max-width: 600px) {
  .news-filter-bar { flex-wrap: wrap; }
  .tag-scroll-area { flex: 1 1 100%; min-width: 0; }
  .tag-scroll-area .tag-chip:nth-child(n + 4) { display: none; }
  .news-filter-actions { margin-left: auto; }
}

.news-content { display: grid; grid-template-columns: 1fr 440px; gap: 48px; }
.news-right { position: sticky; top: 100px; }
.news-display-img { width: 100%; height: 420px; border-radius: 16px; background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: background-image 0.4s ease; background-image: url('./images/hero/chapel_sakura.png'); }

.news-list { list-style: none; }
.news-item.is-hidden { display: none; }
.news-link { display: block; padding: 20px 0; text-decoration: none; color: var(--color-dark); border-bottom: 1px solid var(--line-light); transition: padding 0.3s; }
.news-link:hover { padding-left: 8px; color: var(--clay-gold); }
.news-link:hover .news-title { color: var(--clay-gold); }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 0; }
.news-date { font-family: var(--font-en); font-size: 12px; color: #888; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-badge { font-size: 10px; color: var(--clay-gold); background: rgba(183, 140, 48, 0.08); padding: 2px 6px; border-radius: 4px; }
.news-title { font-size: 15px; font-weight: 500; line-height: 1.6; transition: color 0.3s ease; color: var(--color-dark); }

.tag-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.tag-modal.is-open { opacity: 1; pointer-events: auto; }
.tag-modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
.tag-modal-dialog { position: relative; width: calc(100% - 40px); max-width: 520px; background: var(--color-light); border-radius: 16px; padding: 32px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.tag-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--line-light); padding-bottom: 12px; }
.tag-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #888; }
.tag-group { margin-bottom: 16px; }
.group-title { font-size: 11px; font-weight: 700; color: #888; display: block; margin-bottom: 8px; }
.group-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* =========================================================
   💡 NEWS / Instagram案内カプセルバナー
   ========================================================= */

/* 外枠（カプセル状の背景＆全体リンク） */
.news-banner {
  display: block;
  width: min(100%, 1200px); /* バナーの最大幅 */
  margin: 40px auto;
  padding: 20px 0;
  background-color:var(--clay-deep); /* 背景色（参考画像風の明るい水色） */
  border-radius: 9999px;     /* 両端をきれいな半円（カプセル形）にする */
  overflow: hidden;          /* はみ出たテキストを隠す */
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* マウスホバー時：少し浮き上がる演出 */
.news-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.35);
  background-color: var(--clay-gold); 
  color: var(--moss-green);
}

/* マウスホバー時：流れるアニメーション */
.news-banner:hover .news-banner-track {
  animation-play-state:running paused;
}

/* 流れる横長トラック */
.news-banner-track {
  display: flex;
  width: max-content;
  animation: bannerMarquee 10s linear infinite; /*でスピード調整 */
}

/* テキストコンテンツのセット */
.news-banner-content {
  display: flex;
  align-items: center;
  gap: 70px;          /* アイテム同士の間隔 */
  padding-right: 70px;/* 1セット目と2セット目の間の余白 */
}

/* 個別アイテム（矢印＋テキスト） */
.news-banner-item {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap; /* テキストが途中で改行されるのを防止 */
}

/* 丸い矢印アイコン */
.news-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

/* ホバー時に矢印が右に少し動く */
.news-banner:hover .news-banner-icon {
  transform: translateX(4px);
  background-color:var(--moss-green);
  color:  #ffffff;
}

/* テキストエリア */
.news-banner-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* 英語タイトル（Instagram等） */
.news-banner-text .en-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

/* 日本語サブテキスト */
.news-banner-text .jp-sub {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.95;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* 無限ループのアニメーション定義（左から右へ流す） */
@keyframes bannerMarquee {
  0% {
    transform: translateX(-50%); /* スタート位置を1セット分左に配置 */
  }
  100% {
    transform: translateX(0);    /* 右に向かって移動 */
  }
}

/* 📱 スマホ表示用の微調整 */
@media (max-width: 800px) {
  .news-banner {
    padding: 14px 0;
    border-radius: 9999px;
  }

  .news-banner-content {
    gap: 40px;
    padding-right: 40px;
  }

  .news-banner-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .news-banner-text .en-title {
    font-size: 22px;
  }

  .news-banner-text .jp-sub {
    font-size: 11px;
  }
}

/* =========================================================
   💡 6. 学びの特色 (HTML: .learning-feature-scroll)
   ========================================================= */
.learning-feature-scroll {
  min-height: 500vh;
  background: var(--color-light);
  position: relative;
}

.feature-scroll-toggle {
  position: absolute; z-index: 6; top: 108px; right: clamp(24px, 4vw, 64px);
  padding: 10px 16px; border: 1px solid rgba(90, 65, 15, 0.28); border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); color: var(--color-dark); font: inherit; font-size: 13px;
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.feature-scroll-toggle:hover { background: var(--clay-gold); color: #fff; }
.feature-scroll-toggle:focus-visible { outline: 2px solid var(--clay-gold); outline-offset: 3px; }

.learning-feature-stage {
  position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 90px clamp(24px, 4vw, 86px); box-sizing: border-box;
}

.feature-header-block {
  position: absolute; top: 72px; left: clamp(40px, 6vw, 104px); right: clamp(40px, 6vw, 104px); z-index: 4; text-align: center;
}
.feature-header-block .section-title-serif {
  font-size: clamp(34px, 4.8vw, 50px); line-height: 1.05; margin-top: 10px;
}
.feature-header-block .title-divider {
  margin-top: 20px;
}

.feature-slide-rail {
  position: absolute; z-index: 5; left: clamp(20px, 2.7vw, 34px); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; color: var(--clay-gold);
}
.feature-slide-rail .feature-slide-number {
  display: inline-block; font-family: var(--font-en); font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 600; color: var(--clay-gold);
}
.feature-slide-rail .feature-slide-separator,
.feature-slide-rail .feature-slide-total {
  font-family: var(--font-en); font-size: 20px; color: rgba(35, 30, 19, 0.62);
}

.learning-slide-deck {
  position: relative; width: min(100%, 1180px); height: min(620px, 72vh); min-height: min(620px, 72vh); margin: 94px auto 0;
}

.learning-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,244,233,0.95)); border: 1px solid rgba(90, 65, 15, 0.16);
  box-shadow: 0 30px 90px rgba(32, 28, 22, 0.12); opacity: 0; transform: translateX(12%) scale(0.98);
  transition: opacity 0.62s ease, transform 0.82s cubic-bezier(.2,.8,.2,1), filter 0.62s ease; filter: blur(8px); overflow: hidden;
}

.learning-slide.is-active {
  opacity: 1; transform: translateX(0) scale(1); filter: blur(0);
}

.learning-slide-content {
  position: relative; z-index: 1; width: 100%; height: 100%; min-height: min(620px, 72vh);
  display: grid; grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.88fr); align-items: stretch;
}

.slide-copy {
  display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 4vw, 88px);
}
.slide-copy h3 {
  font-family: var(--font-serif); font-size: clamp(36px, 4.1vw, 58px); line-height: 1.03; letter-spacing: 1px; color: var(--color-dark); margin: 12px 0 22px;
}
.slide-kicker {
  display: inline-block; font-family: var(--font-en); font-size: 12px; letter-spacing: 3px; color: var(--clay-gold);
}
.slide-lead {
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.55; margin-bottom: 24px; color: var(--color-dark);
}
.slide-body-text {
  max-width: 560px; font-size: 16px; line-height: 2; color: rgba(35, 30, 19, 0.82);
}

.slide-image-panel {
  position: relative; min-height: 100%; background: var(--color-sage-soft);
}
.slide-image-panel:after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18)); pointer-events: none;
}
.slide-image-wrap {
  position: absolute; inset: 26px; overflow: hidden; border-radius: 16px;
}
.slide-image {
  display: block;
  width: 100%; height: 100%; object-fit: cover;
}

.learning-slide[data-slide-index="4"] .slide-image { object-fit: contain; }

.learning-slide:nth-child(1) .slide-image-panel { background: linear-gradient(120deg, #ded6b4, #efe8d5); }
.learning-slide:nth-child(2) .slide-image-panel { background: linear-gradient(120deg, #bfcaaa, #ecead9); }
.learning-slide:nth-child(3) .slide-image-panel { background: linear-gradient(120deg, #b9b09b, #f3eadc); }
.learning-slide:nth-child(4) .slide-image-panel { background: linear-gradient(120deg, #b2b2a9, #e9e6df); }
.learning-slide:nth-child(5) .slide-image-panel { background: linear-gradient(120deg, #d1d1bd, #efe9d6); }

/* =========================================================
   💡 学びの特色：プログラムリスト (追加)
   ========================================================= */
.slide-program-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.program-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* スマホで長くなった時に綺麗に折り返す */
  gap: 4px;
  margin-bottom: 6px;
}

.program-badge {
  font-family: var(--font-serif);
  color: var(--clay-gold);
  font-weight: 600;
  font-size: 15px;
  margin-left: -6px; /* 「【」の左側の余白を少し詰めて視覚的に揃える */
}

.program-title {
  font-weight: 500;
  color: var(--color-dark);
  font-size: 15px;
}

.program-desc {
  font-size: 13px;
  color: rgba(35, 30, 19, 0.82);
  line-height: 1.6;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(183, 140, 48, 0.3); /* ゴールドの細線をあしらう */
}

.learning-feature-scroll.is-vertical { min-height: 0; }
.learning-feature-scroll.is-vertical .learning-feature-stage {
  position: relative; top: auto; display: block; min-height: 0; overflow: visible;
  padding: 40px clamp(24px, 4vw, 86px) 90px;
}
.learning-feature-scroll.is-vertical .feature-header-block {
  position: relative; top: auto; left: auto; right: auto; margin-bottom: 40px;
}
.learning-feature-scroll.is-vertical .feature-slide-rail { display: none; }
.learning-feature-scroll.is-vertical .learning-slide-deck {
  display: grid; gap: 28px; width: min(100%, 1180px); height: auto; min-height: 0; margin: 0 auto;
}
.learning-feature-scroll.is-vertical .learning-slide {
  position: relative; inset: auto; min-height: 460px; opacity: 1; transform: none; filter: none;
}
.learning-feature-scroll.is-vertical .learning-slide-content { min-height: 460px; }
.learning-feature-scroll.is-vertical .slide-image-panel { min-height: 460px; }

@media (max-width: 900px) {
  .learning-feature-stage { padding-inline: 12px; }
  .learning-slide-deck { margin-top: 120px; }
  .learning-slide-content { grid-template-columns: 1fr; }
  .slide-image-panel { height: clamp(220px, 38vw, 320px); min-height: 0; }
  .slide-image-wrap { position: absolute; inset: 12px; min-height: 0; }
  .slide-copy { padding: 34px 24px; }
  .feature-slide-rail { top: 120px; transform: none; }
  .feature-scroll-toggle { top: 82px; right: 16px; padding: 8px 12px; font-size: 12px; }
  .learning-feature-scroll.is-vertical .learning-feature-stage { padding: 24px 12px 60px; }
  .learning-feature-scroll.is-vertical .feature-slide-rail { display: none; }
  .learning-feature-scroll.is-vertical .feature-header-block { margin-bottom: 28px; }
  .learning-feature-scroll.is-vertical .learning-slide { min-height: 0; }
  .learning-feature-scroll.is-vertical .learning-slide-content { min-height: 0; }
  .learning-feature-scroll.is-vertical .slide-image-panel { height: clamp(220px, 38vw, 320px); min-height: 0; }
}

/* =========================================================
   💡 「3つの芸術をリンクした学び」余白＆パララックス準備
   ========================================================= */
.gs-topics-section {
  position: relative;
  z-index: 5;
  margin-top: 140px;
  padding-top: 40px; /* 直前の演出からの切り替えのためのゆとり */
  padding-bottom: 120px;
}

/* アニメーションの描画を滑らかにする設定 */
.section-header-center,
.gs-topic-card-wrapper {
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .gs-topics-section {
    padding-top: 100px;
    padding-bottom: 80px;
  }
}

.news-article-page { min-height: 100vh; }
.news-article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 32px;
}
.news-article-brand {
  color: var(--color-dark);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.news-article-home-link {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}
.news-article-home-link:hover,
.news-article-breadcrumb a:hover,
.news-article-footer a:hover { color: var(--clay-gold); }
.news-article-main {
  width: min(100% - 48px, 860px);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 136px 0 100px;
}
.news-article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  color: #8a867d;
  font-size: 12px;
}
.news-article-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.news-article-heading { margin-bottom: 32px; }
.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.news-article-date {
  color: #817c72;
  font-family: var(--font-en), var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.news-article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.news-article-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.55;
}
.news-article-gallery { margin-bottom: 34px; }
.news-article-image {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-deep);
}
.news-article-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.art-slide-img {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-image-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 50%;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.gallery-image-nav.previous {
  left: 0;
  justify-content: flex-start;
  background: linear-gradient(90deg, rgba(20, 18, 15, 0.32), transparent);
}
.gallery-image-nav.next {
  right: 0;
  justify-content: flex-end;
  background: linear-gradient(270deg, rgba(20, 18, 15, 0.32), transparent);
}
.gallery-image-nav::before {
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease;
}
.gallery-image-nav.previous::before { content: "\2039"; }
.gallery-image-nav.next::before { content: "\203A"; }
.news-article-image:hover .gallery-image-nav,
.gallery-image-nav:focus-visible { opacity: 1; }
.gallery-image-nav.previous:hover::before { transform: translateX(-3px); }
.gallery-image-nav.next:hover::before { transform: translateX(3px); }
.gallery-image-nav:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.news-article-gallery.is-single-image .gallery-image-nav { display: none; }
@media (hover: none) {
  .news-article-image .gallery-image-nav { opacity: 0.8; }
}
.news-article-gallery.is-single-image .news-article-gallery-footer { display: none; }
.news-article-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding: 10px 4px 0;
}
.news-article-gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.news-article-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 25, 23, 0.22);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.news-article-gallery-dot.is-active {
  background: var(--clay-gold);
  transform: scale(1.25);
}
.news-article-gallery-dot:focus-visible { outline: 2px solid var(--clay-gold); outline-offset: 3px; }
.news-article-gallery-count {
  color: var(--ink-soft);
  font-family: var(--font-en), var(--font-sans);
  font-size: 11px;
}
.news-article-body {
  color: #454139;
  font-size: 15px;
  line-height: 2.1;
}
.news-article-body p + p { margin-top: 18px; }
.news-article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  color: var(--color-dark);
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.news-article-back:hover {
  border-color: var(--color-dark);
  background: var(--color-dark);
  color: #fff;
}
.news-article-not-found {
  padding: 100px 0;
  text-align: center;
}
.news-article-not-found h1 {
  font-family: var(--font-serif);
  font-size: 28px;
}
.news-article-not-found p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}
.news-article-footer {
  padding: 24px;
  border-top: 1px solid var(--line-light);
  text-align: center;
}
.news-article-footer a {
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .news-article-header { padding: 18px 20px; }
  .news-article-main {
    width: min(100% - 40px, 860px);
    padding-top: 112px;
  }
  .news-article-breadcrumb { margin-bottom: 26px; }
  .news-article-heading { margin-bottom: 24px; }
  .news-article-gallery { margin-bottom: 26px; }
  .news-article-image { border-radius: 10px; }
  .news-article-gallery-footer { gap: 8px; }
  .news-article-gallery-dots { gap: 6px; }
  .news-article-body { font-size: 14px; }
}

/* --- 共通のホバーアクション（動きや線の色など） --- */
.topic-card-wrapper:hover .card-deco-layer {
  transform: translate(4px, 4px);
  border-color: rgba(183, 140, 48, 0.8);
}

/* --- 1枚目のカードのホバー時の塗りつぶし色 --- */
.topic-card-wrapper:nth-child(1):hover .card-deco-layer {
  background-color: #E8A87C; /* 例：温かみのあるテラコッタ系 */
}

/* --- 2枚目のカードのホバー時の塗りつぶし色 --- */
.topic-card-wrapper:nth-child(2):hover .card-deco-layer {
  background-color: #85CDCA; /* 例：爽やかなブルーグリーン系 */
}

/* --- 3枚目のカードのホバー時の塗りつぶし色 --- */
.topic-card-wrapper:nth-child(3):hover .card-deco-layer {
  background-color: #C38D9E; /* 例：落ち着いたモーヴ・ピンク系 */
}


/* =========================================================
   💡 7. 3つの芸術トピック (HTML: .topics, .card-container)
   ========================================================= */


.three-arts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-inline: clamp(16px, 3vw, 40px);
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .gs-topics-section {
    margin-top: 80px;
    padding-bottom: 80px;
  }
}

.topic-card-wrapper {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  cursor: pointer;
  transition: opacity 0.55s ease;
  padding-right: 12px;
  padding-bottom: 12px;
}

.topic-card-wrapper:hover,
.topic-card-wrapper:focus-within {
  animation: topic-card-wiggle 0.45s ease-in-out;
}

@keyframes topic-card-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-0.8deg); }
  75% { transform: rotate(0.8deg); }
}

.card-deco-layer {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 12px); 
  height: calc(100% - 12px);
  border: 1px solid rgba(183, 140, 48, 0.4); 
  border-radius: 16px; 
  z-index: 0;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.topic-card {
  position: relative;
  z-index: 1; 
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  background: #1b1917;
}

.topic-card-wrapper:hover .topic-card {
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.topic-card-wrapper:hover .card-deco-layer {
  transform: translate(4px, 4px); 
  border-color: rgba(183, 140, 48, 0.8);
}

.card-media { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.parallax-img-wrapper { width: 100%; height: 100%; overflow: hidden; }
.gs-parallax-inner { width: 100%; height: 130%; transform: translateY(-15%); }
.hover-scale-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }

.topic-card-wrapper:hover .hover-scale-img {
  transform: scale(1.06); 
}

.media-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(27, 25, 23, 0) 30%, rgba(27, 25, 23, 0.4) 60%, rgba(27, 25, 23, 0.9) 100%);
  transition: opacity 0.6s ease;
}
.topic-card-wrapper:hover .media-overlay { opacity: 0.7; }

.card-content { position: absolute; bottom: 30px; left: 30px; right: 30px; color: white; z-index: 2; pointer-events: none; }
.badge-subtle { display: inline-block; font-family: var(--font-en); font-size: 10px; letter-spacing: 2px; padding: 5px 12px; border-radius: 100px; margin-bottom: 12px; }
.card-content h3 { font-size: 20px; margin-bottom: 8px; }
.card-desc { font-size: 13px; transform: translateY(8px); }
.card-kicker { font-size: 11px; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .topic-card-wrapper:hover,
  .topic-card-wrapper:focus-within {
    animation: none;
  }
}
/* =========================================================
   💡 8. 創立の思い
   ========================================================= */
.three-arts { 
  padding: 120px 0; 
  background-color: var(--color-light); /* 元の背景色 */
  transition: background-color 1.5s ease; /* 💡 1.5秒かけて滑らかに色を変える */
}

/* 💡 スクロールして画面に入った時に付与されるクラス */
.three-arts.is-active-bg {
  background-color: #dedbd5;
}

.three-arts-container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.art-card {
  position: relative; height: 60vh; min-height: 500px; margin-bottom: 40px;
  border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; padding: 60px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.art-card:last-child { margin-bottom: 0; }
.art-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow:hidden; }
.parallax-img { width: 100%; height: 100%; object-fit: cover; }
.art-image-contained { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 50%, rgba(15,13,11,0.85) 100%);
}

.art-content {
  position: relative; z-index: 2; color: rgb(255, 255, 255); display: flex; justify-content: space-between;
  align-items: flex-end; width: 100%; gap: 40px;
}
.art-tag { display: inline-block; font-family: var(--font-en); font-size: 11px; letter-spacing: 3px; color:whitesmoke; margin-bottom: 12px; }
.art-title-serif { font-family: var(--font-serif); font-size: 3vw; font-weight: 400; line-height: 1.35; letter-spacing: 2px; }
.art-philosophy { flex: 0 0 380px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 28px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); }
.art-philosophy h4 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 8px; color:#0000009d /*var(--clay-gold) */; letter-spacing: 1px; }
.art-philosophy p { font-size: 13px; line-height: 1.7; opacity: 0.9; font-weight: 300; }

/* =========================================================
   🔘 ボタン化とホバーアクションの追加
   ========================================================= */

/* --- ボタンとしての基本設定 --- */
.art-philosophy.art-link-btn {
  display: block; /* クリック範囲を広げる */
  text-decoration: none;
  color: inherit;
  position: relative;
  isolation: isolate;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  /* 💡元のすりガラスデザインを活かすため、背景色やpaddingの上書きは行いません */
}

/* --- 左から右へ広がるテーマカラー --- */
.art-philosophy.art-link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--clay-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.art-philosophy.art-link-btn > * {
  position: relative;
  z-index: 1;
}

/* --- ホバー（マウスカーソルを乗せたとき）のアクション --- */
.art-philosophy.art-link-btn:hover {
  transform: translateY(-4px); /* 少し上に浮く */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* 背景が暗いので、影は少し濃いめに設定 */
  border-color: var(--clay-gold, #b78c30); /* 枠線をテーマカラーに変化させる */
}

.art-philosophy.art-link-btn:hover::before {
  transform: scaleX(1);
}

.art-philosophy.art-link-btn:hover h4,
/*.art-philosophy.art-link-btn:hover p,*/
.art-philosophy.art-link-btn:hover::after {
  color: var(--moss-green, #3a4b3c); /* テキスト色をテーマカラーに変化させる */
}

/* --- リンクであることを示す矢印アイコン --- */
.art-philosophy.art-link-btn::after {
  content: '→';
  position: absolute;
  z-index: 2;
  bottom: 28px; /* 💡元のpadding(28px)に合わせて位置を微調整 */
  right: 28px;
  font-size: 18px;
  color: var(--clay-gold, #b78c30);
  
  /* 初期状態では少し左にずらして透明にする */
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- ホバー時に矢印をスライド表示 --- */
.art-philosophy.art-link-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   💡 9. 入学案内バナー (HTML: #admission-banner)
   ========================================================= */
.floating-banner {
  position: relative;
  width: min(250px, calc(100vw - 40px));
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  background-color: #ffffff;
  border: 2px solid var(--clay-gold, #b78c30);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 12px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 10px 10px;
}
.sticky-banner-container {
  position: fixed;
  right: 30px;
  bottom: 100px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.sticky-banner-container .floating-banner { pointer-events: auto; }
.floating-banner::before,
.floating-banner::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  content: "";
}
.floating-banner::after {
  z-index: 0;
  background: #fff5dc;
  opacity: 0;
}
.floating-banner::before {
  z-index: 2;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%);
  transform: translate(-130%, 130%);
}
.floating-banner:hover,
.floating-banner:focus-within {
  border-color: var(--clay-deep);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}
.floating-banner:hover::before,
.floating-banner:focus-within::before { animation: banner-shine 0.65s ease-out; }
.floating-banner:hover::after,
.floating-banner:focus-within::after { animation: banner-background-reveal 0.25s ease 0.45s forwards; }
@keyframes banner-shine {
  to { transform: translate(130%, -130%); }
}
@keyframes banner-background-reveal {
  to { opacity: 1; }
}
.floating-banner.is-visible {
  opacity: 1;
  visibility: visible;
  animation: float-animation 3s ease-in-out infinite;
}
.floating-banner.is-closed { display: none; }
.floating-banner.is-event-info-visible {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}
.floating-banner.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  animation: none;
}
@keyframes float-animation {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  gap: 12px;
  min-height: 100px;
  padding: 8px 8px 8px 8px;
  text-decoration: none;
  color: #333;
  transition: transform 0.25s ease;
}
.floating-banner:hover .banner-content,
.floating-banner:focus-within .banner-content { transform: translateY(-2px); }
.banner-thumb {
  display: block;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.banner-text {
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
}
.floating-instagram-banner {
  min-height: 76px;
}
.floating-instagram-banner .banner-content { min-height: 72px; }
.floating-instagram-banner .banner-text { color: var(--color-dark); }
.banner-close-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 26px;
  height: 26px;
  background-color: #555;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}
.banner-close-btn:hover { background-color: #333; }
@media (max-width: 768px) {
  .sticky-banner-container { right: 20px; bottom: 80px; }
  .floating-banner { padding: 10px; }
  .floating-instagram-banner { min-height: 68px; }
  .floating-instagram-banner .banner-content { min-height: 64px; }
  .banner-content { min-height: 68px; padding: 4px 24px 4px 4px; }
  .banner-thumb {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }
  .instagram-banner-icon { width: 40px; height: 40px; }
  .banner-text { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-banner:hover::before,
  .floating-banner:focus-within::before,
  .floating-banner:hover::after,
  .floating-banner:focus-within::after { animation: none; }
  .floating-banner:hover::after,
  .floating-banner:focus-within::after { opacity: 1; }
}

/* =========================================================
   💡 10. 受験生向け行事案内 (HTML: .event-info-section)
   ========================================================= */
.event-info-section {
  position: relative;
  overflow: hidden;
  background-color: #7a5c3a;
  background-image: url("./images/logo/緞帳.jpg");
  background-repeat: repeat;
  background-size: 420px auto;
  color: #fff;
  padding: 100px 5vw;
}
.event-info-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  max-width: 1440px;
  margin: 0 auto;
}
.event-info-copy { text-align: center; }
.event-info-eyebrow {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.event-info-title {
  font-family: var(--font-en), var(--font-serif);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
}
.event-info-subtitle {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.08em;
}
.event-info-card {
  margin: 34px 0 28px;
  padding: 24px 28px;
  border-radius: 8px;
  background: #f8f8fb;
  color: #252c3b;
  text-align: left;
}
.event-info-card ul {
  display: grid;
  gap: 14px;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.8;
}
.event-info-card li::marker { color: #b78c30; }
.event-info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 210px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.event-info-link:hover,
.event-info-link:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #082f6c;
}
.event-info-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.event-info-link-arrow { font-size: 18px; transition: transform 0.25s ease; }
.event-info-link:hover .event-info-link-arrow { transform: translateX(4px); }
.event-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.event-gallery-row { overflow: hidden; }
.event-gallery-track,
.event-gallery-group {
  display: flex;
  width: max-content;
}
.event-gallery-track {
  animation: event-gallery-scroll 38s linear infinite;
  will-change: transform;
}
.event-gallery-row-reverse .event-gallery-track { animation-direction: reverse; }
.event-gallery-group { gap: 12px; padding-right: 12px; }
.event-gallery-card {
  width: clamp(190px, 21vw, 290px);
  height: clamp(145px, 17vw, 220px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}
.event-gallery-row-reverse .event-gallery-card { height: clamp(130px, 14vw, 185px); }
.event-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.event-gallery-card:hover img { transform: scale(1.05); }
@keyframes event-gallery-scroll {
  to { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .event-info-section { padding: 80px 24px; }
  .event-info-inner { grid-template-columns: 1fr; gap: 48px; }
  .event-info-copy { max-width: 600px; margin: 0 auto; }
  .event-gallery-card { width: clamp(190px, 36vw, 260px); height: 180px; }
  .event-gallery-row-reverse .event-gallery-card { height: 150px; }
}
@media (max-width: 600px) {
  .event-info-section { padding: 68px 16px; }
  .event-info-card { padding: 20px; text-align: left; }
  .event-info-card ul { gap: 10px; font-size: 13px; }
  .event-gallery { gap: 10px; }
  .event-gallery-group { gap: 10px; padding-right: 10px; }
  .event-gallery-card { width: 62vw; height: 155px; }
  .event-gallery-row-reverse .event-gallery-card { height: 125px; }
}
@media (prefers-reduced-motion: reduce) {
  .event-gallery-track { animation: none; }
  .event-gallery-row { overflow-x: auto; }
}

/* =========================================================
   💡 11. フッター (HTML: .footer)
   ========================================================= */
.footer { background: var(--paper-deep); color: var(--color-dark); position: relative; padding-top: 60px; }
.footer-top { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); }

.back-to-top {
  width: 56px; height: 56px; background: var(--clay-gold); color: white; border: none; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.2); transition: transform 0.3s, background-color 0.3s;
}
.back-to-top:hover { transform: translateY(-4px); background: #c89c3a; }
.top-arrow { font-size: 14px; line-height: 1; }
.top-text { font-family: var(--font-en); font-size: 9px; letter-spacing: 1px; margin-top: 2px; }

.footer-container { max-width: 1160px; margin: 0 auto; padding: 60px 32px; display: flex; justify-content: space-between; gap: 60px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.footer-title { font-family: var(--font-serif); font-size: 18px; font-weight: 400; line-height: 1.6; margin-bottom: 16px; letter-spacing: 1px; }
.footer-address { font-size: 13px; opacity: 0.6; line-height: 1.8; font-weight: 300; }

.footer-nav { display: flex; gap: 60px; }
.footer-col-ttl { font-family: var(--font-serif); font-size: 13px; color: var(--clay-deep); display: block; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(27,25,23,0.72); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-col a:hover { color: var(--clay-deep); }

.footer-bottom { padding: 24px 32px; text-align: center; }
.copyright { font-family: var(--font-en); font-size: 11px; opacity: 0.4; letter-spacing: 1px; }

/* =========================================================
   💡 よくあるご質問 (HTML: .school-faq)
   ========================================================= */
.school-faq {
  padding: 136px 0 100px;
  background: var(--paper-deep);
  scroll-margin-top: 96px;
}
.school-faq-inner { max-width: 960px; margin: 0 auto; padding: 0 32px; }
.school-faq .section-header-center { margin-bottom: 48px; }
.school-faq-home-link { margin: 24px 0 0; }
.school-faq-category + .school-faq-category { margin-top: 40px; }
.school-faq-category-title {
  margin-bottom: 12px;
  color: var(--clay-deep);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}
.school-faq-item { border-bottom: 1px solid rgba(122, 92, 58, 0.22); }
.school-faq-item:first-of-type { border-top: 1px solid rgba(122, 92, 58, 0.22); }
.school-faq-question {
  position: relative;
  padding: 20px 44px 20px 4px;
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  list-style: none;
  cursor: pointer;
}
.school-faq-question::-webkit-details-marker { display: none; }
.school-faq-question::after {
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--clay-gold);
  font-size: 22px;
  font-weight: 300;
  content: "+";
  transform: translateY(-50%);
}
.school-faq-item[open] .school-faq-question::after { content: "\2212"; }
.school-faq-question:focus-visible { outline: 2px solid var(--clay-gold); outline-offset: 3px; }
.school-faq-answer {
  padding: 0 44px 22px 4px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
  white-space: pre-line;
}

/* スマホ等レスポンシブ最適化の一括まとめ（トピック以降） */
@media (max-width: 900px) {
  /* ニュース */
  .news-content { grid-template-columns: 1fr; }
  .news-right { display: none; }
  /* トピックカード */
  .three-arts-grid { grid-template-columns: 1fr; gap: 24px; }
  .topic-card-wrapper { width: 100%; max-width: 400px; margin: 0 auto; }
  .topic-card { height: 360px; }
  .card-content { bottom: 24px; left: 24px; right: 24px; }
  /* 三つの柱 */
  .art-card { height: auto; padding: 40px 24px; }
  .art-content { flex-direction: column; align-items: flex-start; }
  .art-title-serif { font-size: 24px; }
  .art-philosophy { flex: none; width: 100%; margin-top: 24px; }
  /* フッター周辺 */
  .footer-container { flex-direction: column; gap: 40px; }
  .footer-nav { flex-direction: column; gap: 30px; }
  .school-faq { padding: 112px 0 76px; }
  .school-faq-inner { padding: 0 24px; }
  .school-faq .section-header-center { margin-bottom: 36px; }
  .school-faq-question { padding-block: 17px; }
  .school-faq-answer { padding-bottom: 18px; }
}

/* =========================================================
  💡 12. 3つの芸術 モーダル＆カルーセル
   ========================================================= */

/* 1. モーダル全体構造 */
.art-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* JavaScriptで開いた時に表示される設定 */
.art-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.art-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 13, 11, 0.75);
  backdrop-filter: blur(8px);
}

.art-modal-dialog {
  position: relative;
  width: min(92vw, 1000px);
  height: min(85vh, 650px);
  background: var(--color-light);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.art-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20;
  background: rgba(27, 25, 23, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
}
.art-modal-close:hover {
  background: var(--clay-gold);
}

/* 2. カルーセル構造 */
.art-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.art-carousel-track {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.art-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
}

.art-slide::before,
.art-slide::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 50%;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.art-slide::before {
  left: 0;
  justify-content: flex-start;
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(20, 18, 15, 0.2), transparent 55%);
  content: "\2039";
}

.art-slide::after {
  right: 0;
  justify-content: flex-end;
  padding-right: 18px;
  background: linear-gradient(270deg, rgba(20, 18, 15, 0.2), transparent 55%);
  content: "\203A";
}

.art-slide.has-carousel-nav:hover::before,
.art-slide.has-carousel-nav:hover::after { opacity: 1; }

@media (hover: none) {
  .art-slide.has-carousel-nav::before,
  .art-slide.has-carousel-nav::after { opacity: 0.8; }
}

/* 3. テキストコンテンツ */
.art-slide-content {
  padding: 60px 70px 60px 40px; /* 右パディング70pxで矢印の被りを防止 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 上揃えで固定 */
  overflow-y: auto;
  background: var(--color-light);
}

.art-slide-tag {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--clay-gold);
  margin-bottom: 12px;
  line-height: 1.2;
}

.art-slide-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 20px;
  color: var(--color-dark);
  line-height: 1.4;
  min-height: 2.8em; /* タイトルの行数差による本文位置のズレを防止 */
  display: flex;
  align-items: flex-start;
}

.art-slide-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* 4. カルーセル操作ボタン・ドット */
.art-carousel-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 20px;
  background: var(--color-light);
}

.art-carousel-nav {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--color-dark);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-carousel-nav:hover,
.art-carousel-nav:focus-visible {
  background: var(--clay-gold);
  color: #ffffff;
  border-color: var(--clay-gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.art-carousel-nav:focus-visible { outline: 2px solid var(--color-dark); outline-offset: 3px; }

.art-carousel-dots {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.art-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.art-dot.is-active {
  background: var(--clay-gold);
  width: 24px;
  border-radius: 10px;
}

/* 5. レスポンシブ */
@media (max-width: 768px) {
  .art-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }
  .art-slide-img { border-radius: 12px; }
  .art-slide-content {
    padding: 30px 20px 60px 20px;
  }
  .art-slide-title {
    min-height: auto;
  }
  .art-carousel-nav {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 13px;
  }
  .art-carousel-controls {
    gap: 10px;
    min-height: 58px;
    padding: 8px 12px;
  }
}

/* =========================================================
   💡 13. 右下追従トップへ戻るボタン (HTML: #floatingBackToTop)
   ========================================================= */
.floating-back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  background: var(--clay-gold);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s, background-color 0.3s;
}
.floating-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floating-back-to-top.is-visible:hover {
  transform: translateY(-4px);
  background: #c89c3a;
}

.page-container {
  min-height: 100vh;
}

@media (max-width: 900px) {
  .floating-back-to-top {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }
}
