/*
Theme Name: AOHAMA HS
Theme URI: https://example.com/
Author: Kanesawa Inc.
Author URI: https://example.com/
Description: 架空の県立高校「〇〇県立青浜高等学校」を想定したモデルサイト用WordPressテーマ。受験生・保護者・在校生・卒業生の4ターゲット向けサイト構成(6セクション+子ページ)を自動生成。100vhファーストビュー(スライダー/静止アニメーション切替)、フローズングリッド、グラデーション、6カラーパレット、5フォントパターン、年別アーカイブ、モバイル追従フッターを搭載。
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: aohama-hs
*/

/* ==========================================================
   0. Custom Properties (palette / fonts are injected inline
      from the Customizer — these are fallbacks)
   ========================================================== */
:root {
  --c-primary: #1c63b7;
  --c-secondary: #37b5e6;
  --c-dark: #12274a;
  --c-accent: #f5a623;
  --c-grad: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  --c-grad-soft: linear-gradient(135deg, rgba(28,99,183,.08), rgba(55,181,230,.08));
  --c-text: #26303b;
  --c-text-weak: #6b7683;
  --c-bg: #ffffff;
  --c-bg-alt: #f4f8fb;
  --c-line: #e2e9f0;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-head: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', 'Noto Sans JP', sans-serif;
  --header-h: 88px;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(18, 39, 74, .1);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ==========================================================
   1. Reset / Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: opacity .25s var(--ease), color .25s var(--ease); }
a:hover { opacity: .78; }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.45; font-weight: 700; margin: 0 0 .6em; }
:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 2px; }

.inner { width: min(1140px, 92%); margin-inline: auto; }
.inner--wide { width: min(1360px, 94%); margin-inline: auto; }

/* Section heading */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--alt { background: var(--c-bg-alt); }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .en {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: .3em;
  text-transform: uppercase;
  background: var(--c-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.sec-head .ja {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0;
}
.sec-head--center { text-align: center; }
.sec-head--white .en { background: linear-gradient(135deg, #fff, rgba(255,255,255,.75)); -webkit-background-clip: text; background-clip: text; }
.sec-head--white .ja { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  border-radius: 999px;
  background: var(--c-grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  box-shadow: 0 8px 24px rgba(18, 39, 74, .22);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,39,74,.3); opacity: 1; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--c-primary); box-shadow: inset 0 0 0 2px var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--white { background: #fff; color: var(--c-primary); }

/* ==========================================================
   2. Header
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-inline: clamp(16px, 3vw, 40px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.is-solid,
body.header-solid .site-header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(18, 39, 74, .08);
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-dark); }
.brand:hover { opacity: 1; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--c-grad);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-en); font-weight: 700; font-size: 19px;
  box-shadow: 0 6px 16px rgba(18,39,74,.25);
}
.brand-text { line-height: 1.3; }
.brand-text .name { font-weight: 700; font-size: clamp(15px, 2vw, 18px); color: #fff; transition: color .4s; display: block; }
.brand-text .sub { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; color: rgba(255,255,255,.8); transition: color .4s; display: block; }
.site-header.is-solid .brand-text .name, .header-page .brand-text .name { color: var(--c-dark); }
.site-header.is-solid .brand-text .sub, .header-page .brand-text .sub { color: var(--c-text-weak); }

.gnav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.gnav .gnav-list { display: flex; gap: clamp(14px, 2.2vw, 28px); list-style: none; margin: 0; padding: 0; }
.gnav a { color: #fff; font-weight: 600; font-size: 15px; position: relative; padding: 6px 2px; }
.gnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--c-grad); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease); border-radius: 2px;
}
.gnav a:hover { opacity: 1; }
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header.is-solid .gnav a, .header-page .gnav a { color: var(--c-text); }
.gnav .nav-cta { color: #fff !important; }
.gnav .nav-cta::after { display: none; }

/* Hamburger */
.ham {
  display: none;
  width: 48px; height: 48px;
  border: none; background: transparent; cursor: pointer;
  position: relative; z-index: 130; margin-left: auto;
}
.ham span {
  position: absolute; left: 11px; width: 26px; height: 2px; border-radius: 2px;
  background: #fff; transition: all .35s var(--ease);
}
.site-header.is-solid .ham span, .header-page .ham span { background: var(--c-dark); }
.ham span:nth-child(1) { top: 16px; }
.ham span:nth-child(2) { top: 23px; }
.ham span:nth-child(3) { top: 30px; }
body.menu-open .ham span { background: #fff; }
body.menu-open .ham span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.menu-open .ham span:nth-child(2) { opacity: 0; }
body.menu-open .ham span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 120;
  background: linear-gradient(150deg, var(--c-dark), var(--c-primary));
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer ul { list-style: none; margin: 0; padding: 0; text-align: center; display: grid; gap: 10px; }
.drawer a {
  color: #fff; font-size: 20px; font-weight: 700; display: inline-block; padding: 10px 20px;
  transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
body.menu-open .drawer a { transform: translateY(0); opacity: 1; }
.drawer li:nth-child(2) a { transition-delay: .05s; }
.drawer li:nth-child(3) a { transition-delay: .1s; }
.drawer li:nth-child(4) a { transition-delay: .15s; }
.drawer li:nth-child(5) a { transition-delay: .2s; }
.drawer li:nth-child(6) a { transition-delay: .25s; }

/* ==========================================================
   3. Hero (First View)
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #fff;
}
.hero--full { min-height: 100vh; min-height: 100svh; width: 100vw; }
.hero--large { min-height: 78vh; }
.hero--medium { min-height: 62vh; }

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
/* Ken Burns */
.hero--kenburns .hero-slide { transform: scale(1); }
.hero--kenburns .hero-slide.is-active { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
/* Slide effect */
.hero--slide .hero-slide { transition: opacity 1.2s ease, transform 1.2s var(--ease); transform: translateX(4%); }
.hero--slide .hero-slide.is-active { transform: translateX(0); }
/* Zoom effect */
.hero--zoom .hero-slide.is-active { animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--c-dark) 78%, transparent) 0%, color-mix(in srgb, var(--c-primary) 42%, transparent) 46%, transparent 78%);
}
.hero-grad-edge {
  position: absolute; inset: auto 0 0; height: 34%; z-index: 2;
  background: linear-gradient(to top, rgba(10, 22, 44, .55), transparent);
}
/* Diagonal signature stripe */
.hero::after {
  content: ""; position: absolute; z-index: 3;
  right: -12%; top: -20%;
  width: 46%; height: 150%;
  background: var(--c-grad);
  opacity: .16;
  transform: rotate(18deg);
  pointer-events: none;
}

.hero-body {
  position: relative; z-index: 5;
  width: min(1140px, 92%);
  margin-inline: auto;
  padding: calc(var(--header-h) + 24px) 0 90px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 700; letter-spacing: .3em;
  font-size: clamp(10px, 1.4vw, 12px);
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 22px;
}
.hero-catch {
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.35;
  margin: 0 0 18px;
  font-weight: 700;
  text-shadow: 0 4px 30px rgba(10, 22, 44, .4);
}
.hero-catch .line { display: block; overflow: hidden; }
.hero-catch .line > span { display: inline-block; transform: translateY(110%); }
.hero.is-in .hero-catch .line > span { animation: lineUp 1s var(--ease) forwards; }
.hero.is-in .hero-catch .line:nth-child(2) > span { animation-delay: .18s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  max-width: 34em;
  opacity: 0; transform: translateY(16px);
  transition: opacity .9s ease .5s, transform .9s var(--ease) .5s;
}
.hero.is-in .hero-sub { opacity: .96; transform: none; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
/* 初期フェード演出はファーストビュー内に限定(CTAバンド等で再利用しても消えないように) */
.hero .hero-actions { opacity: 0; transform: translateY(16px); transition: opacity .9s ease .75s, transform .9s var(--ease) .75s; }
.hero.is-in .hero-actions { opacity: 1; transform: none; }

.hero-scroll {
  position: absolute; z-index: 6; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: #fff; font-family: var(--font-en); font-size: 10px; letter-spacing: .35em; text-align: center;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 42px; margin: 8px auto 0;
  background: linear-gradient(to bottom, #fff, transparent);
  animation: scrollHint 2s ease infinite;
}
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero-dots { position: absolute; z-index: 6; right: clamp(16px, 3vw, 40px); bottom: 30px; display: flex; gap: 10px; }
.hero-dots button {
  width: 28px; height: 4px; border: none; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .3s;
}
.hero-dots button.is-active { background: #fff; }

/* ==========================================================
   4. News (front)
   ========================================================== */
.news-strip { display: grid; grid-template-columns: 220px 1fr auto; gap: 30px; align-items: start; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; }
.news-list li { border-bottom: 1px solid var(--c-line); }
.news-list a {
  display: grid; grid-template-columns: 110px 96px 1fr; gap: 16px; align-items: center;
  padding: 18px 6px; color: var(--c-text);
}
.news-list a:hover { background: var(--c-grad-soft); opacity: 1; }
.news-date { font-family: var(--font-en); font-weight: 600; color: var(--c-text-weak); font-size: 14px; }
.news-cat {
  font-size: 11px; font-weight: 700; text-align: center; padding: 4px 8px; border-radius: 999px;
  background: var(--c-grad); color: #fff; letter-spacing: .06em; white-space: nowrap;
}
.news-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================
   5. Features (3 pillars)
   ========================================================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 34px); }
.feature {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 44px 30px 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(18,39,74,.16); }
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c-grad);
}
.feature .num {
  font-family: var(--font-en); font-weight: 700; font-size: 46px; line-height: 1;
  background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.feature h3 { font-size: 20px; }
.feature p { color: var(--c-text-weak); font-size: 14.5px; margin: 0; }

/* ==========================================================
   6. Frozen Grid — SCHOOL LIFE
   ========================================================== */
.sec--life {
  background:
    radial-gradient(900px 500px at 90% -10%, color-mix(in srgb, var(--c-secondary) 18%, transparent), transparent 60%),
    linear-gradient(160deg, var(--c-dark) 0%, color-mix(in srgb, var(--c-dark) 70%, var(--c-primary)) 100%);
  color: #fff;
}
.frozen-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  gap: 14px;
}
.fg-cell {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background-size: cover; background-position: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.28);
}
/* frozen (fixed) mosaic spans */
.fg-cell:nth-child(1) { grid-column: span 3; grid-row: span 3; }
.fg-cell:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.fg-cell:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.fg-cell:nth-child(4) { grid-column: span 1; grid-row: span 2; }
.fg-cell:nth-child(5) { grid-column: span 2; grid-row: span 3; }
.fg-cell:nth-child(6) { grid-column: span 4; grid-row: span 2; }
.fg-cell::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c-primary) 65%, transparent), transparent 65%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.fg-cell:hover::after { opacity: .85; }
.fg-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fg-cell:hover img { transform: scale(1.06); }
.fg-label {
  position: absolute; z-index: 2; left: 16px; bottom: 12px;
  font-weight: 700; font-size: clamp(13px, 1.6vw, 16px); color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  padding-left: 14px;
}
.fg-label::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 1.15em; border-radius: 3px; background: var(--c-grad);
}

/* ==========================================================
   7. Counters (進路実績)
   ========================================================== */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.5vw, 28px); text-align: center; }
.counter {
  background: #fff; border-radius: var(--radius); padding: 34px 12px 28px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.counter::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--c-grad); }
.counter .val {
  font-family: var(--font-en); font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.1;
  background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter .unit { font-size: .45em; font-weight: 700; }
.counter .label { color: var(--c-text-weak); font-size: 13.5px; font-weight: 600; margin-top: 6px; }

/* ==========================================================
   8. Clubs
   ========================================================== */
.clubs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.club-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  background-size: cover; background-position: center; color: #fff; display: flex; align-items: flex-end;
}
.club-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--c-dark) 85%, transparent), transparent 55%); transition: background .4s; }
.club-card:hover::before { background: linear-gradient(to top, color-mix(in srgb, var(--c-primary) 85%, transparent), color-mix(in srgb, var(--c-primary) 20%, transparent)); }
.club-card .in { position: relative; padding: 18px; }
.club-card h3 { font-size: 17px; margin: 0 0 2px; }
.club-card .en { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; opacity: .85; text-transform: uppercase; }

/* ==========================================================
   9. Instagram
   ========================================================== */
.insta-note { color: var(--c-text-weak); font-size: 13px; margin-top: 18px; }
.insta-dummy { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.insta-dummy .ph { aspect-ratio: 1; border-radius: 10px; background: var(--c-grad-soft); position: relative; overflow: hidden; }
.insta-dummy .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 22%, transparent), color-mix(in srgb, var(--c-secondary) 30%, transparent)); }

/* ==========================================================
   10. CTA / Access
   ========================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--c-grad);
  color: #fff; text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.1); pointer-events: none;
}
.cta-band::before { width: 380px; height: 380px; left: -120px; top: -160px; }
.cta-band::after { width: 480px; height: 480px; right: -160px; bottom: -240px; }
.cta-band h2 { font-size: clamp(24px, 3.6vw, 36px); }
.cta-band p { opacity: .92; max-width: 38em; margin: 0 auto 28px; }

/* ==========================================================
   11. Page hero (下層)
   ========================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 90px)) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(700px 380px at 105% 10%, color-mix(in srgb, var(--c-secondary) 25%, transparent), transparent 62%),
    linear-gradient(140deg, var(--c-dark), var(--c-primary));
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: -30%; width: 36%; height: 170%;
  background: var(--c-grad); opacity: .18; transform: rotate(18deg);
}
.page-hero .en { font-family: var(--font-en); letter-spacing: .3em; font-size: 12px; text-transform: uppercase; opacity: .85; }
.page-hero h1 { font-size: clamp(26px, 4.4vw, 42px); margin: 6px 0 0; }
.breadcrumb { font-size: 12px; opacity: .85; margin-top: 14px; }
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   12. Archive (index) — year groups + category chips
   ========================================================== */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.cat-chips a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--c-primary); background: #fff; box-shadow: inset 0 0 0 1.5px var(--c-primary);
  transition: all .3s var(--ease);
}
.cat-chips a:hover, .cat-chips a.is-current { background: var(--c-grad); color: #fff; box-shadow: none; opacity: 1; }
.cat-chips .count { font-family: var(--font-en); font-size: 11px; opacity: .75; }

.year-block { margin-bottom: 26px; }
.year-head {
  width: 100%; display: flex; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left; padding: 0 0 14px;
  border-bottom: 2px solid var(--c-line); font-family: inherit;
}
.year-head .y {
  font-family: var(--font-en); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); line-height: 1;
  background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.year-head .meta { color: var(--c-text-weak); font-size: 13px; font-weight: 600; }
.year-head .toggle-icon {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--c-grad); color: #fff; display: grid; place-items: center;
  transition: transform .35s var(--ease);
}
.year-block.is-open .toggle-icon { transform: rotate(45deg); }
.year-body { overflow: hidden; max-height: 0; transition: max-height .6s var(--ease); }
.year-block.is-open > .year-body, .year-block--open > .year-body { max-height: none; }
.year-more { text-align: center; padding: 18px 0 6px; }

.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(18,39,74,.15); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-grad-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .thumb--ph { display: grid; place-items: center; }
.post-card .thumb--ph span { font-family: var(--font-en); font-weight: 700; letter-spacing: .25em; font-size: 12px; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-card .row { display: flex; align-items: center; gap: 10px; }
.post-card .date { font-family: var(--font-en); font-size: 13px; color: var(--c-text-weak); font-weight: 600; }
.post-card .cat { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--c-grad); color: #fff; }
.post-card h3 { font-size: 16px; margin: 0; }
.post-card h3 a { color: var(--c-text); }
.post-card .excerpt { font-size: 13px; color: var(--c-text-weak); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 10px;
  border-radius: 12px; font-family: var(--font-en); font-weight: 700; color: var(--c-primary);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--c-line);
}
.pagination .page-numbers.current { background: var(--c-grad); color: #fff; box-shadow: none; }

/* ==========================================================
   13. Single / Page content
   ========================================================== */
.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.entry-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.entry-content { font-size: 16px; }
.entry-content h2 {
  font-size: clamp(20px, 2.6vw, 26px); margin-top: 2.2em; padding: 12px 18px; border-radius: 10px;
  background: var(--c-grad-soft); border-left: 5px solid; border-image: var(--c-grad) 1;
}
.entry-content h3 { font-size: clamp(18px, 2.2vw, 21px); margin-top: 1.8em; padding-bottom: 8px; border-bottom: 2px solid; border-image: var(--c-grad) 1; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--c-bg-alt); border-left: 4px solid var(--c-primary); border-radius: 0 10px 10px 0; }

.sidebar .widgetbox { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; margin-bottom: 24px; }
.sidebar h3 { font-size: 16px; padding-bottom: 10px; border-bottom: 2px solid; border-image: var(--c-grad) 1; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px dashed var(--c-line); }
.sidebar li a { display: block; padding: 10px 2px; color: var(--c-text); font-size: 14px; }

.post-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 44px; }
.post-nav a { font-weight: 700; font-size: 14px; }

/* ==========================================================
   14. Footer
   ========================================================== */
.site-footer {
  background: linear-gradient(160deg, var(--c-dark) 0%, color-mix(in srgb, var(--c-dark) 78%, var(--c-primary)) 100%);
  color: #dfe8f2;
  padding: clamp(52px, 7vw, 84px) 0 0;
  position: relative;
}
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c-grad); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding-bottom: 48px; }
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-brand .name { font-weight: 700; font-size: 18px; color: #fff; }
.footer-brand p { font-size: 13px; opacity: .8; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .12em; margin-bottom: 14px; padding-left: 12px; position: relative; }
.footer-col h4::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 1.1em; border-radius: 2px; background: var(--c-grad); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #dfe8f2; font-size: 13.5px; }
.copyright { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; text-align: center; font-size: 12px; opacity: .7; font-family: var(--font-en); letter-spacing: .1em; }

.page-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--c-grad); color: #fff; box-shadow: 0 8px 22px rgba(18,39,74,.3);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .4s var(--ease);
}
.page-top.is-show { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================
   15. Mobile sticky footer
   ========================================================== */
.sp-fixed-footer {
  position: fixed; inset: auto 0 0; z-index: 95;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  box-shadow: 0 -6px 24px rgba(18,39,74,.22);
}
.sp-fixed-footer.is-show { transform: none; }
.sp-fixed-footer a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 8px calc(15px + env(safe-area-inset-bottom, 0px));
  color: #fff; font-weight: 700; font-size: 14.5px; letter-spacing: .06em;
}
.sp-fixed-footer a:hover { opacity: 1; }
.sp-fixed-footer .tel { background: var(--c-dark); }
.sp-fixed-footer .contact { background: var(--c-grad); }
.sp-fixed-footer svg { width: 19px; height: 19px; flex: none; }

/* ==========================================================
   16. Contact / CF7
   ========================================================== */
.contact-box { max-width: 760px; margin-inline: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 52px); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--c-line); border-radius: 10px;
  font: inherit; background: var(--c-bg-alt); transition: border-color .3s, background .3s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--c-primary); background: #fff; }
.wpcf7 label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 22px; }
.wpcf7 input[type="submit"] {
  display: block; width: min(320px, 100%); margin: 8px auto 0; padding: 16px;
  border: none; border-radius: 999px; background: var(--c-grad); color: #fff;
  font-weight: 700; font-size: 16px; letter-spacing: .1em; cursor: pointer;
  box-shadow: 0 8px 24px rgba(18,39,74,.22); transition: transform .3s var(--ease);
}
.wpcf7 input[type="submit"]:hover { transform: translateY(-3px); }

/* ==========================================================
   17. Reveal animations
   ========================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--left.is-in, .reveal--right.is-in { transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .3s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .4s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .reveal-stagger > *, .hero-catch .line > span, .hero-sub, .hero-actions { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================
   18. Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .gnav .gnav-list { display: none; }
  .gnav .nav-cta { display: none; }
  .ham { display: block; }
}
@media (max-width: 900px) {
  .features, .post-cards { grid-template-columns: repeat(2, 1fr); }
  .clubs { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .news-strip { grid-template-columns: 1fr; gap: 16px; }
  .single-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .insta-dummy { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  body { padding-bottom: 62px; } /* sticky footer clearance */
  .sp-fixed-footer { display: grid; }
  .page-top { bottom: 84px; right: 16px; width: 46px; height: 46px; }
  .frozen-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; gap: 10px; }
  .fg-cell:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .fg-cell:nth-child(2) { grid-column: span 1; grid-row: span 2; }
  .fg-cell:nth-child(3) { grid-column: span 1; grid-row: span 2; }
  .fg-cell:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .fg-cell:nth-child(5) { grid-column: span 1; grid-row: span 1; }
  .fg-cell:nth-child(6) { grid-column: span 2; grid-row: span 2; }
  .news-list a { grid-template-columns: 92px 1fr; grid-template-rows: auto auto; padding: 14px 4px; gap: 6px 12px; }
  .news-cat { grid-column: 2; justify-self: start; }
  .news-title { grid-column: 1 / -1; white-space: normal; }
}
@media (max-width: 560px) {
  .features, .post-cards, .clubs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================
   11. v2.0 追加: ドロップダウンナビ / トップ新セクション /
       固定ページ2カラム / ドロワーアコーディオン
   ========================================================== */

/* ---- グローバルナビ(ドロップダウン) ---- */
.gnav .gnav-list { align-items: center; }
.gnav .gnav-list > li { position: relative; }
.gnav .gnav-list > li > a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 14px; }
.gnav .caret {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .7; transition: transform .25s;
}
.gnav .has-sub:hover .caret, .gnav .has-sub:focus-within .caret { transform: rotate(225deg) translateY(-1px); }
.gnav .sub {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 210px; padding: 10px; margin: 0; list-style: none;
  background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(10, 30, 60, .18);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 60;
}
.gnav .sub::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.gnav .has-sub:hover .sub, .gnav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnav .sub a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--c-text) !important; font-size: 13.5px; font-weight: 600;
}
.gnav .sub a::after { display: none; }
.gnav .sub a:hover { background: var(--c-bg-alt); color: var(--c-primary) !important; }
.gnav .nav-cta { white-space: nowrap; }

/* ---- ドロワー(SP)アコーディオン ---- */
.drawer { overflow-y: auto; padding: 90px 24px 40px; align-items: flex-start; }
.drawer .drawer-list { width: min(420px, 100%); margin-inline: auto; text-align: left; gap: 4px; }
.drawer .drawer-list > li > a { display: block; padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.14); }
.drawer-acc summary {
  list-style: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 17px;
  padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-acc summary::-webkit-details-marker { display: none; }
.drawer-acc summary::after {
  content: ''; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg); transition: transform .25s; opacity: .8;
}
.drawer-acc[open] summary::after { transform: rotate(225deg); }
.drawer-acc ul { display: grid; gap: 0; padding: 4px 0 8px; text-align: left; }
.drawer-acc ul a { display: block; font-size: 14.5px; font-weight: 500; padding: 9px 6px 9px 20px; opacity: .92; }

/* ---- ヒーロー: 校名表示・3ボタン ---- */
.hero-school { font-size: clamp(15px, 2.2vw, 19px); font-weight: 700; letter-spacing: .08em; margin: 10px 0 2px; opacity: .95; }
.btn--ghost-white { background: transparent; border: 2px solid rgba(255,255,255,.85); color: #fff; box-shadow: none; }
.btn--ghost-white:hover { background: rgba(255,255,255,.15); }

/* ---- セクション共通「もっと見る」 ---- */
.sec-more { text-align: center; margin-top: clamp(26px, 4vw, 40px); }
.sec-more--white .btn { box-shadow: none; }

/* ---- 特色4カラム ---- */
.features--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- 年間行事タイムライン ---- */
.event-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: ev; }
.event-item {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 22px 14px 18px; text-align: center;
  box-shadow: 0 8px 24px rgba(10, 30, 60, .07);
  border-top: 4px solid; border-image: var(--c-grad) 1;
}
.event-item .month {
  display: inline-block; font-family: var(--font-en); font-weight: 800;
  font-size: 20px; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.event-item .name { display: block; margin-top: 6px; font-weight: 700; font-size: 14px; }
.event-item::after {
  content: ''; position: absolute; top: 50%; right: -11px; width: 8px; height: 8px;
  border-top: 2px solid var(--c-primary); border-right: 2px solid var(--c-primary);
  transform: translateY(-50%) rotate(45deg); opacity: .5;
}
.event-item:last-child::after { display: none; }

/* ---- 部活動5カラム ---- */
.clubs--5 { grid-template-columns: repeat(5, 1fr); }
.club-card .club-note {
  display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  padding: 3px 10px; border-radius: 999px; color: #fff;
}

/* ---- アクセス ---- */
.access { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3.5vw, 40px); align-items: stretch; }
.access-map { border-radius: var(--radius); overflow: hidden; min-height: 320px; box-shadow: 0 10px 30px rgba(10,30,60,.1); }
.access-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-ph {
  height: 100%; min-height: 320px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--c-bg-alt), #dfe9f5); color: var(--c-text-weak); font-weight: 600;
}
.map-ph small { font-weight: 400; }
.access-info h3 { margin: 4px 0 14px; font-size: clamp(18px, 2.4vw, 22px); }
.access-info dl { display: grid; grid-template-columns: 64px 1fr; gap: 10px 14px; margin: 0 0 20px; font-size: 15px; }
.access-info dt { font-weight: 700; color: var(--c-primary); }
.access-info dd { margin: 0; }

/* ---- 固定ページ2カラム+ローカルナビ ---- */
.page-cols { display: grid; grid-template-columns: 1fr 260px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.page-cols--single { grid-template-columns: 1fr; max-width: 860px; }
.localnav {
  position: sticky; top: 96px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(10, 30, 60, .08); overflow: hidden;
}
.localnav-title { margin: 0; }
.localnav-title a {
  display: block; padding: 15px 18px; background: var(--c-grad); color: #fff;
  font-weight: 700; font-size: 15px;
}
.localnav ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.localnav li a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--c-text); }
.localnav li a:hover { background: var(--c-bg-alt); color: var(--c-primary); }
.localnav li.is-current a { background: var(--c-bg-alt); color: var(--c-primary); position: relative; }
.localnav li.is-current a::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 3px; background: var(--c-grad); }
.breadcrumb .sep { margin: 0 6px; opacity: .6; }

/* ---- 本文テーブル・リスト(学校サイト用) ---- */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; background: #fff; }
.entry-content th, .entry-content td { border: 1px solid #dbe4ef; padding: 10px 14px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--c-bg-alt); font-weight: 700; white-space: nowrap; }
.entry-content tr th:first-child { color: var(--c-primary); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin: .35em 0; }
.entry-content a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---- レスポンシブ(v2.0追加分) ---- */
@media (max-width: 1180px) {
  .features--4 { grid-template-columns: repeat(2, 1fr); }
  .clubs--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .page-cols { grid-template-columns: 1fr; }
  .localnav { position: static; }
  .event-line { grid-template-columns: repeat(3, 1fr); }
  .event-item::after { display: none; }
}
@media (max-width: 900px) {
  .access { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features--4 { grid-template-columns: 1fr; }
  .clubs--5 { grid-template-columns: repeat(2, 1fr); }
  .event-line { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================
   12. v2.1 追加: タイトルボックス型ページヒーロー /
       4ボタン追従フッター / NEWSカテゴリ色分け / ドロワー刷新
   ========================================================== */

/* ---- ページヒーロー(文字背景タイトルボックス・オフセット配置) ---- */
.page-hero {
  padding: calc(var(--header-h) + clamp(34px, 6vw, 64px)) 0 0;
  margin-bottom: clamp(58px, 8vw, 84px);
  overflow: visible;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; width: auto; height: auto;
  transform: none; opacity: 1;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 110px),
    linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--c-secondary) 22%, transparent));
  pointer-events: none;
}
.page-hero .inner { position: relative; z-index: 3; }
.page-hero .breadcrumb { margin: 0 0 clamp(22px, 4vw, 38px); position: relative; z-index: 3; }
.page-title-box {
  position: relative; z-index: 4;
  display: inline-block;
  background: #fff;
  color: var(--c-text);
  padding: clamp(18px, 3vw, 26px) clamp(30px, 4.5vw, 56px) clamp(20px, 3.2vw, 28px) clamp(22px, 3.6vw, 34px);
  box-shadow: 0 16px 40px rgba(10, 30, 60, .16);
  transform: translateY(46%);
}
.page-title-box::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--c-grad);
}
.page-title-box .en {
  display: block;
  font-family: var(--font-en); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 1;
}
.page-title-box h1 { margin: 4px 0 0; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.25; color: var(--c-dark); }

/* SPはボックスをほぼ全幅・中央寄せで下にずらす(ライバルサイトのSP挙動) */
@media (max-width: 768px) {
  .page-hero { margin-bottom: 64px; padding-top: calc(var(--header-h) + 26px); }
  .page-hero .breadcrumb { margin-bottom: 20px; }
  .page-title-box {
    display: block;
    width: calc(100% - 18px);
    transform: translateY(52%);
    padding: 16px 20px 18px 18px;
  }
  .page-title-box h1 { font-size: 22px; }
}

/* ---- NEWSカテゴリ色分け ---- */
.news-cat, .post-card .cat { color: #fff; }
.cat--news      { background: var(--cat-news, #4a7ab5) !important; }
.cat--events    { background: var(--cat-events, #3d9970) !important; }
.cat--club      { background: var(--cat-club, #e08a2e) !important; }
.cat--career    { background: var(--cat-career, #7a5bb5) !important; }
.cat--admission { background: var(--cat-admission, #d05a5a) !important; }
.cat--default   { background: var(--c-primary) !important; }

/* ---- ヒーロー注記(架空サイトの明示) ---- */
.hero-note {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 64px;
  text-align: center; font-size: 11px; letter-spacing: .04em;
  color: rgba(255, 255, 255, .82); padding: 0 20px; margin: 0;
}
.hero--medium .hero-note, .hero--large .hero-note { bottom: 56px; }

/* ---- フッター注記 ---- */
.footer-note { font-size: 11.5px; opacity: .62; margin-top: 10px; line-height: 1.7; }

/* ---- 4ボタン追従フッター(アイコン上・ラベル下) ---- */
.sp-fixed-footer .sp-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 4px calc(9px + env(safe-area-inset-bottom, 0px));
  color: #fff; font-weight: 700; font-size: 10.5px; letter-spacing: .04em; line-height: 1;
}
.sp-fixed-footer .sp-item svg { width: 20px; height: 20px; flex: none; }
.sp-item--tel      { background: var(--c-dark); }
.sp-item--briefing { background: var(--c-grad); }
.sp-item--access   { background: var(--c-secondary); }
.sp-item--contact  { background: var(--c-accent, var(--c-primary)); filter: saturate(1.05); }

/* ---- ドロワー刷新 ---- */
body.menu-open .site-header { z-index: 140; } /* ハンバーガー(×)を最前面に */
.drawer { padding: 0 0 32px; display: block; }
.drawer-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, rgba(10, 25, 50, .55), transparent);
  backdrop-filter: blur(2px);
}
.drawer-brand { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.drawer-close {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.drawer-close svg { width: 14px; height: 14px; }
.drawer .drawer-list { padding: 8px 24px 0; }
.drawer-cta {
  width: min(420px, calc(100% - 48px)); margin: 22px auto 0;
  display: grid; gap: 10px;
}
.drawer-cta .btn { justify-content: center; }
@media (min-width: 769px) {
  .drawer .drawer-list, .drawer-cta { width: min(520px, calc(100% - 48px)); margin-inline: auto; }
}

/* ==========================================================
   13. v2.2 追加: スクリム濃度 / SP用スライド画像 / 横スライド /
       アイキャッチ見出し背景 / ドロワー修正 / 楽しさの演出
   ========================================================== */

/* ---- ヒーロー: スクリム濃度(カスタマイザー連動) ---- */
.hero-scrim { opacity: var(--hero-scrim, .7); }

/* ---- ヒーロー: PC/SP画像出し分け+SP切り抜き位置 ---- */
.hero-slide { background-image: var(--img-pc); }
@media (max-width: 768px) {
  .hero-slide { background-image: var(--img-sp, var(--img-pc)); background-position: var(--sp-focus, center center); }
  .hero-slide[style*="--img-sp"] { background-position: center; } /* SP専用画像はそのまま中央 */
}

/* ---- ヒーロー: 横スライド(シンプルカルーセル) ---- */
.hero--slidex .hero-slide {
  opacity: 1;
  transform: translateX(100%);
  transition: transform .85s cubic-bezier(.65, 0, .3, 1);
  animation: none;
  z-index: 1;
}
.hero--slidex .hero-slide.is-active { transform: translateX(0); z-index: 2; }
.hero--slidex .hero-slide.is-prev { transform: translateX(-100%); z-index: 1; }

/* ---- 固定ページ: アイキャッチを見出し背景に ---- */
.page-hero.has-image {
  background-size: cover;
  background-position: center;
}
.page-hero.has-image::after {
  background: linear-gradient(115deg, color-mix(in srgb, var(--c-dark) 72%, transparent) 0%, color-mix(in srgb, var(--c-dark) 45%, transparent) 55%, color-mix(in srgb, var(--c-dark) 28%, transparent) 100%);
}

/* ---- ドロワー: ボタン文字色修正+スムーズ化 ---- */
.drawer {
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
  transform: translateX(4%);
  will-change: opacity, transform;
}
body.menu-open .drawer { transform: translateX(0); }
.drawer a {
  transform: none !important;
  opacity: 1 !important;
  transition: background .2s ease, color .2s ease !important;
}
.drawer .drawer-list a { color: #fff; }
.drawer-cta .btn--white { background: #fff !important; color: var(--c-primary) !important; }
.drawer-cta .btn--ghost-white { color: #fff !important; }

/* ---- 追従フッター: 2ボタン構成 ---- */
.sp-fixed-footer--2 { grid-template-columns: 1fr 1fr; }
.sp-fixed-footer--2 .sp-item { flex-direction: row; gap: 8px; font-size: 14px; padding: 14px 8px calc(14px + env(safe-area-inset-bottom, 0px)); }
.sp-fixed-footer--2 .sp-item svg { width: 18px; height: 18px; }
.sp-fixed-footer--2 .sp-item--contact { background: var(--c-grad); }

/* ---- ヘッダーロゴ画像 ---- */
.brand-logo { display: block; height: auto; width: auto; max-height: 48px; max-width: min(440px, 56vw); }
@media (max-width: 768px) { .brand-logo { max-height: 40px; max-width: 58vw; } }

/* ==========================================================
   14. 「学校は楽しい」演出(やりすぎない範囲で)
   ========================================================== */

/* 見出しにマーカー風ハイライト */
.sec-head .ja { display: inline-block; padding: 0 6px; background: linear-gradient(transparent 68%, color-mix(in srgb, var(--c-accent) 38%, transparent) 68%); }
.sec-head--white .ja { background: linear-gradient(transparent 68%, rgba(255, 255, 255, .26) 68%); }

/* 特色ナンバーをカラフルな丸バッジに */
.features .feature { position: relative; overflow: hidden; }
.features .num {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 17px;
  background: var(--c-grad);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c-primary) 35%, transparent);
}
.features .feature:nth-child(2) .num { background: linear-gradient(135deg, #3d9970, #7cc99f); }
.features .feature:nth-child(3) .num { background: linear-gradient(135deg, #e08a2e, #f0b45e); }
.features .feature:nth-child(4) .num { background: linear-gradient(135deg, #7a5bb5, #a98ed6); }
.features .feature::after {
  content: ""; position: absolute; right: -34px; bottom: -34px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--c-grad-soft); pointer-events: none;
}

/* セクション背景にふわっとした水玉 */
.sec--alt { position: relative; }
.sec--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--c-primary) 7%, transparent) 2.5px, transparent 2.5px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.sec--alt > .inner { position: relative; }

/* 年間行事: 月バッジをカラフルに */
.event-item:nth-child(6n+1) .month { background: linear-gradient(135deg, #e26d8f, #f0a3b8); -webkit-background-clip: text; background-clip: text; }
.event-item:nth-child(6n+2) .month { background: linear-gradient(135deg, #3d9970, #7cc99f); -webkit-background-clip: text; background-clip: text; }
.event-item:nth-child(6n+3) .month { background: linear-gradient(135deg, #e08a2e, #f0b45e); -webkit-background-clip: text; background-clip: text; }
.event-item:nth-child(6n+4) .month { background: linear-gradient(135deg, #7a5bb5, #a98ed6); -webkit-background-clip: text; background-clip: text; }
.event-item:nth-child(6n+5) .month { background: linear-gradient(135deg, #2b8ab5, #6cc0dd); -webkit-background-clip: text; background-clip: text; }
.event-item:nth-child(6n+6) .month { background: linear-gradient(135deg, #d05a5a, #eb9494); -webkit-background-clip: text; background-clip: text; }

/* 部活カード: ホバーでちょっと弾む */
.club-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.club-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 36px rgba(10, 30, 60, .2); }

/* カウンター数字もグラデーションで楽しく */
.counter .val { background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================
   15. v2.3 追加: ロゴ表示改善 / メニュー時のヘッダー整理 /
       部活写真カード / FVスタイル3種
   ========================================================== */

/* ---- 正方形シンボルロゴ ---- */
.brand-mark--img {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px; object-fit: cover; background: #fff;
  display: block;
}
.footer-brand .brand-mark--img { margin-bottom: 14px; }
.footer-brand-logo { display: block; height: auto; width: auto; max-height: 54px; max-width: min(320px, 80%); margin-bottom: 14px; background: #fff; padding: 8px 12px; border-radius: 10px; }

/* ---- メニュー展開時: ヘッダーのロゴ/ナビは隠し、ハンバーガー(×)だけ残す ---- */
body.menu-open .site-header { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
body.menu-open .site-header .brand,
body.menu-open .site-header .gnav { opacity: 0; pointer-events: none; transition: opacity .2s; }

/* ---- ドロワーヘッドのロゴ ---- */
.drawer-brand-logo { display: block; height: auto; max-height: 36px; width: auto; max-width: 60vw; background: #fff; border-radius: 8px; padding: 4px 10px; }

/* ---- 部活カード(写真あり) ---- */
.club-card.has-photo { position: relative; }
.club-card.has-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 25, 50, .08) 30%, rgba(10, 25, 50, .68) 100%);
}
.club-card.has-photo .in { position: relative; }

/* ==========================================================
   16. FVスタイル(顔の印象)3タイプ
   ========================================================== */

/* タイプ2: センター(中央寄せ・伸びやか) */
.hero--f2 .hero-body { text-align: center; align-items: center; }
.hero--f2 .hero-tag { display: inline-flex; align-items: center; gap: 14px; }
.hero--f2 .hero-tag::before, .hero--f2 .hero-tag::after {
  content: ""; width: 34px; height: 1px; background: rgba(255, 255, 255, .7);
}
.hero--f2 .hero-catch { letter-spacing: .12em; }
.hero--f2 .hero-catch .line { text-align: center; }
.hero--f2 .hero-sub { margin-inline: auto; }
.hero--f2 .hero-actions { justify-content: center; }

/* タイプ3: 帯(キャッチに色帯・ポスター風) */
.hero--f3 .hero-catch .line span {
  display: inline-block;
  background: color-mix(in srgb, var(--c-primary) 82%, transparent);
  color: #fff;
  padding: .18em .5em .22em;
  box-decoration-break: clone;
}
.hero--f3 .hero-catch .line:nth-child(2) span {
  background: color-mix(in srgb, var(--c-dark) 84%, transparent);
  margin-left: clamp(14px, 3vw, 40px);
}
.hero--f3 .hero-catch { gap: 10px; }
.hero--f3 .hero-sub {
  display: inline-block;
  background: rgba(255, 255, 255, .92);
  color: var(--c-dark);
  padding: 8px 14px;
  font-weight: 600;
  text-shadow: none;
}
