/* ==========================================================
   草津看護専門学校 2026 — top (upper half)
   ========================================================== */
:root {
  --c-navy: #14306b;
  --c-blue: #1f6fd0;
  --c-sky: #e8f2fc;
  --c-coral: #f26b6b;
  --c-orange: #e68011;
  --c-yellow: #fd4;
  --c-yellow_tra: #fd4c; /* 半透明（黄色）*/
  --c-cream: #f1f9ee; /* 薄い緑（セクション背景）*/
  --c-green: #bfe3b4;
  --c-pink: #f9c5d1;
  --c-text: #235;
  --c-sub: #66728c;
  --c-line: #14306b11;
  --c-line-strong: #14306b33;
  /* 見出しサイズ（共通）: h1〜h6 要素 / .fs-h1〜.fs-h6 / 各コンポーネントがここを参照する */
  --fs-h1: clamp(1.75rem, 4vw, 2.5rem);
  --fs-h2: clamp(1.5rem, 3.2vw, 2rem);
  --fs-h3: clamp(1.25rem, 2.8vw, 1.75rem);
  --fs-h4: clamp(1.125rem, 2.4vw, 1.5rem);
  --fs-h5: clamp(1rem, 2vw, 1.25rem);
  --fs-h6: clamp(0.875rem, 1.6vw, 1rem);
  --lh-heading: 1.5;
  --ff-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --ff-hand: "Zen Kurenaido", "Hiragino Maru Gothic ProN", cursive;
  --header-h: 84px;
  --inner: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--ff-base); font-size:clamp(0.875rem, 2vw, 1rem); color: var(--c-text); line-height: 1.8; background: #fff; overflow-x: clip; -webkit-font-smoothing: antialiased;}
/* フッターを常にページ下部へ（コンテンツが少ない場合も） */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .footer, body > footer { flex-shrink: 0; margin-top: auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
/* 見出しの共通指定（:where で詳細度0 → .sec-title などのクラス指定が常に優先） */
:where(h1, h2, h3, h4, h5, h6) { margin: 0 0 0.5rem 0; font-family: var(--ff-round); font-weight: 500; line-height: var(--lh-heading); color: var(--c-navy); }
:where(h1) { font-size: var(--fs-h1); }
:where(h2) { font-size: var(--fs-h2); }
:where(h3) { font-size: var(--fs-h3); }
:where(h4) { font-size: var(--fs-h4); }
:where(h5) { font-size: var(--fs-h5); }
:where(h6) { font-size: var(--fs-h6); }
/* 見出し以外の要素に見出しサイズを当てるとき */
.fs-h1 { font-size: var(--fs-h1); } .fs-h2 { font-size: var(--fs-h2); } .fs-h3 { font-size: var(--fs-h3); }
.fs-h4 { font-size: var(--fs-h4); } .fs-h5 { font-size: var(--fs-h5); } .fs-h6 { font-size: var(--fs-h6); }
p { margin: 0 0 1rem 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.inner { width: min(var(--inner), 100% - 48px); margin-inline: auto; position: relative; z-index: 1; }
.sec { position: relative; }

/* ---------- icons / arrows ---------- */
.ico { font-size: 1.25em; line-height: 1; flex: none; }
.arrow { display: inline-block; width: .55em; height: .55em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); flex: none; }

/* ---------- decorative circles (個性・可能性) ---------- */
.dot { position: absolute; border-radius: 63% 37% 54% 46% / 38% 62% 38% 62%; pointer-events: none; mix-blend-mode: multiply; z-index: -2; animation: blob 5s ease-in-out infinite alternate; }
.info__dot1b, .movie__dot1b, .about__dot1b, .about__dot2b, .oc__dot1b { border-radius: 40% 60% 58% 42% / 60% 42% 58% 40%; animation-duration: 5s; animation-delay: -11s; }
.info__dot1c, .about__dot1c, .oc__dot1c { border-radius: 66% 34% 36% 64% / 38% 62% 38% 62%; animation-duration: 5s; animation-delay: -5s; }
@keyframes blob {
  0%   { border-radius: 63% 37% 54% 46% / 38% 62% 38% 62%; transform: rotate(0deg); }
  50%  { border-radius: 33% 67% 40% 60% / 66% 35% 65% 34%; transform: rotate(14deg); }
  100% { border-radius: 55% 45% 68% 32% / 40% 58% 42% 60%; transform: rotate(-10deg); }
}
.dot--yellow { background: rgba(255, 244, 160, .5); }
.dot--blue   { background: rgba(200, 226, 250, .5); }
.dot--coral  { background: rgba(250, 196, 196, .5); }
.dot--green  { background: rgba(212, 236, 206, .5); }
.dot--pink   { background: rgba(251, 218, 226, .5); }

.multiply { mix-blend-mode: multiply; }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
}
/* band lives on a pseudo-element: backdrop-filter on .header itself would make it
   the containing block of the fixed SP menu panel */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,0); box-shadow: 0 2px 14px rgba(20,48,107,0);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-scrolled::before, .header.is-open::before { background: rgba(255,255,255,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 14px rgba(20,48,107,.06); }
.header:not(.is-scrolled):not(.is-open) .header__logo,
.header:not(.is-scrolled):not(.is-open) .header__util,
.header:not(.is-scrolled):not(.is-open) .gnav { text-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 3px rgba(255,255,255,.9); }
.header__inner {
  height: 100%; padding-inline: clamp(12px, 2vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.header__logo-img { width: clamp(44px, 4.2vw, 60px); height: auto; flex: none; }
.header__logo-text { display: flex; flex-direction: column; }
.header__logo-sub { font-size: .875rem; font-weight: 500; color: var(--c-navy); transition: font-size .3s; }
.header__logo-main { font-family: var(--ff-round); font-size: clamp(20px, 2vw, 32px); font-weight: 500; color: var(--c-navy); letter-spacing: .02em; transition: font-size .3s; }

.header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; white-space: nowrap; }
.header__util { display: flex; align-items: center; gap: 22px; font-family: var(--ff-round); font-size: .875rem; font-weight: 500; color: var(--c-navy); }
.header__util a:hover { opacity: .6; }
.header__util .ico, .header__insta .ico { font-size: 22px; display: block; }
.header__util li { display: flex; align-items: center; }
.header__util a { display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s; line-height: 1; }
.header__insta { gap: 0; }

.gnav ul { display: flex; gap: 0; font-family: var(--ff-round); font-size:1rem; font-weight: 500; color: var(--c-navy); }
.gnav a { display: inline-block; white-space: nowrap; padding: 2px 14px; position: relative; transition: color .2s; }
.gnav li:last-child a { padding-right: 0; }
.gnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; background: var(--c-yellow); transform: scaleX(0); transition: transform .25s; }
.gnav li:last-child a::after { right: 0; }
.gnav a:hover { color: var(--c-navy); }
.gnav a:hover::after { transform: scaleX(1); }
/* active page: body class (page-xxx) matches the nav item (gnav-xxx) */
.page-news .gnav-news a::after, .page-about .gnav-about a::after, .page-life .gnav-life a::after,
.page-visit .gnav-visit a::after, .page-exam .gnav-exam a::after, .page-alumni .gnav-alumni a::after { transform: scaleX(1); }

.menu-btn { display: none; }
.gnav__ico, .sp-only { display: none; }
.gnav br { display: none; } /* line breaks are for the SP card menu only */

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; height: clamp(620px, 66vw, 980px); padding-bottom: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 22%); }

.hero__dot1 { border-radius: 68% 32% 55% 45% / 36% 64% 36% 64%; width: 13vw; height: 11.5vw; left: -3vw; bottom: -1vw; z-index: 2; }
.hero__dot2 { border-radius: 34% 66% 70% 30% / 60% 32% 68% 40%; animation-duration: 5s; animation-delay: -5s; width: 8vw; height: 7.5vw; left: 5.5vw; bottom: -4.5vw; z-index: 2; }
.hero__dot3 { border-radius: 70% 30% 38% 62% / 34% 66% 34% 66%; animation-duration: 5s; animation-delay: -9s; width: 12vw; height: 10.5vw; right: -2.5vw; bottom: 9vw; z-index: 2; }

.hero__hand--top, .hero__hand--side { display: none; }
.hero__hand { position: absolute; font-family: var(--ff-hand); color: var(--c-navy); line-height: 1.6; z-index: 2; }
.hero__hand--top { left: clamp(36px, 4vw, 70px); top: calc(var(--header-h) + clamp(10px, 1.5vw, 24px)); font-size: clamp(16px, 1.7vw, 26px); transform: rotate(-4deg); text-shadow: 0 0 10px #fff, 0 0 4px #fff; }
.hero__hand--top span { display: block; }
.hero__hand--top span:nth-of-type(2) { padding-left: .6em; }
.hero__hand--top span:nth-of-type(3) { padding-left: 1.2em; }
.hero__hand--side { right: clamp(36px, 8vw, 150px); top: 50%; font-size: clamp(16px, 1.7vw, 26px); color: #fff; transform: rotate(-6deg); text-shadow: 0 1px 8px rgba(20,48,107,.45); }

.hero__copy { position: absolute; left: clamp(24px, 4.5vw, 80px); bottom: clamp(40px, 5vw, 95px); z-index: 3; transform: rotate(-4deg); transform-origin: left bottom; filter: drop-shadow(0 8px 14px rgba(20,48,107,.14)); }
.hero__title {
  font-family: var(--ff-round); font-weight: 500; line-height: 1.25;
  font-size: clamp(30px, 4.6vw, 72px); color: var(--c-navy);
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero__title span { display: inline-block; background: #fff; padding: .05em .8em .1em .65em; clip-path: polygon(.32em 0, 100% 0, calc(100% - .32em) 100%, 0 100%); }
.hero__title span:nth-child(2) { color: var(--c-navy); margin-top: -.02em; margin-left: .7em; }
.hero__sub {
  display: inline-block; margin: clamp(8px, 1vw, 14px) 0 0 clamp(8px, 1.5vw, 28px);
  font-family: var(--ff-round); font-weight: 500; color: var(--c-navy);
  font-size: clamp(14px, 1.7vw, 26px); line-height: 1.3;
  background: var(--c-yellow);
  padding: .3em 1.1em .35em 1em; clip-path: polygon(.5em 0, 100% 0, calc(100% - .5em) 100%, 0 100%);
}

.hero__cta { position: absolute; right: clamp(24px, 5vw, 90px); bottom: clamp(100px, 10vw, 170px); display: flex; flex-direction: column; gap: 14px; z-index: 3; width: clamp(250px, 24vw, 340px); }
.btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-radius: 999px;
  font-family: var(--ff-round); font-weight: 500; font-size: clamp(.875rem, 1.1vw, 16px); line-height: 1.35;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn .ico { font-size: 1.9em; }
.btn span { flex: 1; }
.fab { position: fixed; right: clamp(16px, 2vw, 32px); bottom: clamp(16px, 2vw, 32px); z-index: 1000; display: flex; align-items: stretch; gap: 10px; }
.btn--exam { white-space: nowrap; font-size: clamp(16px, 1.45vw, 21px); padding-block: 12px; background: var(--c-yellow_tra); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--c-navy); box-shadow: 0 8px 20px -5px rgba(20,48,107,.12); }
.btn--exam span, .btn--yellow span { flex: none; }
.btn--yellow { white-space: nowrap; width: auto; font-size: clamp(16px, 1.45vw, 21px); padding-block: 12px; background: var(--c-yellow_tra); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--c-navy); box-shadow: 0 8px 20px -5px rgba(20,48,107,.12); }
.btn--line { display: none; background: #fff; color: var(--c-blue); border: 2px solid var(--c-blue); box-shadow: 0 8px 20px rgba(31,111,208,.15); }

/* ==========================================================
   Common: section title
   ========================================================== */
.sec-title { font-family: var(--ff-round); font-weight: 500; color: var(--c-navy); display: flex; align-items: baseline; gap: 12px; }
.sec-title--en, .sec-title--news { flex-direction: column; align-items: flex-start; gap: 0; }
.sec-title--en .en, .sec-title--news .en { line-height: 1.15; }
.sec-title .ico { font-size: 1.1em; color: var(--c-navy); align-self: center; }
.sec-title--en .en { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .04em; }
.sec-title--en .ja { font-size: clamp(0.75rem, 1.6vw, 1rem); font-weight: 600; color: var(--c-navy); letter-spacing: .07em; }
.sec-title--news .en { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .04em; }
.sec-title--news .ja { font-size: .875rem; font-weight: 600; color: var(--c-navy); }
/* トップのセクション見出し: 上に小さく英語（頭に黄色い丸）、下に日本語を大きく */
.home .sec-title--en, .home .sec-title--news { flex-direction: column-reverse; }
.home .sec-title--en .en, .home .sec-title--news .en { display: flex; align-items: center; gap: .25em; font-size: clamp(0.75rem, 1.6vw, 1rem); font-weight: 600; letter-spacing: .12em; line-height: 1.4; }
.home .sec-title--en .en::before, .home .sec-title--news .en::before { content: var(--ico, "\e2a8"); flex: none; font-family: var(--ico-ff, "Phosphor-Fill"); font-weight: normal; font-size: 1.15em; line-height: 1; color: var(--ico-c, var(--c-yellow)); } /* 既定: 黄色の♥(ph-fill ph-heart) */
/* 見出しの英語の頭のアイコン: スマホのバーガーメニューと同じアイコン(Phosphor regular・紺)。該当しないページ/セクションは黄色の♥ */
:is(.home .news, .blog, .archive, .category, .single-post)                     { --ico: "\e0ce"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* bell: お知らせ */
:is(.home .about, .page-about)                                   { --ico: "\e102"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* buildings: 学校紹介 */
:is(.home .life, .page-life)                                     { --ico: "\e68e"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* users-three: 学校生活 */
:is(.home .oc, .page-visit)                                      { --ico: "\ea64"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* binoculars: 見学・説明会 */
.page-exam                                                       { --ico: "\ebc6"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* pencil-simple-line: 入試・学費 */
.page-alumni                                                     { --ico: "\e320"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* medal: 卒業生 */
.home .pickup                                                    { --ico: "\e6a2"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* sparkle: PICK UP */
.home .movie                                                     { --ico: "\e3d2"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* play-circle: MOVIE */
.slug-disclosure                                                 { --ico: "\e2ce"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* info: 情報公開 */
.slug-file                                                       { --ico: "\e23a"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* file-text: 資料請求 */
.slug-contact                                                    { --ico: "\e218"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* envelope-simple: お問い合わせ */
.slug-oc-apply                                                   { --ico: "\ecf2"; --ico-ff: "Phosphor"; --ico-c: var(--c-navy); } /* flag-banner-fold: オープンキャンパス申し込み（右下ボタンと同じ） */
.home .sec-title--en .ja, .home .sec-title--news .ja { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 500; letter-spacing: .04em; line-height: 1.3; }
.sec-title--insta { align-items: center; font-size: clamp(26px, 2.6vw, 36px); gap: 10px; }
.sec-title--insta .ico { font-size: 1.3em; color: var(--c-navy); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--c-navy); transition: gap .2s; margin-bottom: 6px; }
.more:hover { gap: 12px; }

/* ==========================================================
   PICK UP
   ========================================================== */
.pickup { padding: clamp(16px, 2vw, 28px) 0 clamp(40px, 5vw, 70px); }
.hero__dot4 { border-radius: 38% 62% 66% 34% / 64% 36% 64% 36%; animation-duration: 5s; width: clamp(120px, 15vw, 220px); aspect-ratio: 1; right: 4vw; bottom: -1vw; z-index: 0; }
.pickup .sec-title { margin-bottom: 22px; }
.pickup__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }

.card { position: relative; display: block; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 6px 22px rgba(20,48,107,.1); transition: transform .25s, box-shadow .25s; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(20,48,107,.16); }
.card__img { position: relative; aspect-ratio: 4 / 3; }
.card__thumb { display: block; width: 100%; height: 100%; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 54px 16px 16px 20px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.82) 45%, rgba(255,255,255,.95) 100%); }
.card__body h3 { font-size: var(--fs-h4); line-height: 1.4; }
.card__body p { display: none; font-size: 12.5px; color: var(--c-sub); margin-top: 6px; }

.tag { display: none; position: absolute; left: 14px; bottom: 0; transform: translateY(50%); z-index: 2; padding: 3px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; }
.tag--yellow { background: var(--c-yellow); color: var(--c-navy); }
.tag--pink   { background: var(--c-pink); color: #b4405a; }
.tag--blue   { background: #cfe4fb; color: var(--c-blue); }

.circle-arrow { mix-blend-mode: multiply; flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; position: relative; background: var(--c-yellow); color: var(--c-navy); transition: background .2s, color .2s, transform .2s; }
.circle-arrow::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); }
.card:hover .circle-arrow { background: rgba(255,200,30,.8); transform: translateX(3px); }

/* ==========================================================
   NEWS + INSTAGRAM
   ========================================================== */
.info { padding: clamp(20px, 3vw, 40px) 0 clamp(30px, 4vw, 56px); }
.info__dot1 { border-radius: 64% 36% 42% 58% / 40% 62% 38% 60%; animation-duration: 5s; animation-delay: -3s; width: clamp(110px, 18vw, 260px); aspect-ratio: 1; left: -6vw; top: -2vw; }
.info__dot2 { border-radius: 36% 64% 58% 42% / 66% 34% 66% 34%; animation-duration: 5s; animation-delay: -7s; width: clamp(130px, 22vw, 320px); aspect-ratio: 320 / 300; right: 2%; bottom: -2vw; }
.info__grid { z-index: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 3vw, 48px); /* NEWS | Instagram の列間 */ align-items: start; }

/* divider between columns */
.insta { padding-left: clamp(24px, 3vw, 48px); }

/* tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.tab { mix-blend-mode: multiply; flex: 1; border: 0; padding: 9px 8px; border-radius: 999px; background: rgba(20,48,107,.06); color: rgba(20,48,107,.7); font-size: clamp(12px, 1.1vw, 14px); font-weight: 600; transition: background .2s, color .2s; }
/* inactive: faint translucent gray / active: color follows the matching .label */
.tab:hover { background: rgba(20,48,107,.1); }
.tab.is-active:hover { filter: brightness(.97); }
.tab.is-active { background: var(--c-yellow); color: var(--c-navy); box-shadow: 0 3px 10px -5px rgba(20,48,107,.12); }
.tab[data-filter="info"].is-active  { background: #9fc3f2; color: var(--c-navy); }
.tab[data-filter="event"].is-active { background: #f6a9b3; color: #a82f40; }
.tab[data-filter="exam"].is-active  { background: #a6d99a; color: #2b6a29; }

.news__list li[hidden] { display: none; }
.news__list li + li { border-top: 1px solid var(--c-line); }
.news__list li:first-child { border-top: 0; }
.news__list a { display: grid; grid-template-columns: auto auto 1fr auto; grid-template-areas: "date label . arrow" "ttl ttl ttl arrow"; align-items: center; column-gap: 12px; row-gap: 4px; padding: 14px 4px; transition: background .2s, padding .2s; color: var(--c-text); }
.news__list a:hover { background: rgba(255,198,12,.22); padding-inline: 12px; }
.news__list time { grid-area: date; font-size: .875rem; color: rgba(20,48,107,.6); letter-spacing: .04em; }
.news__list .label { grid-area: label; font-size: .75rem; }
.news__list .news__ttl { grid-area: ttl; font-size: 14px; font-weight: 500; }
.news__list .arrow { grid-area: arrow; color: var(--c-navy); }

.label { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.6; }
.label--info  { background: #e5eefb; color: var(--c-navy); }
.label--event { background: #fde6e8; color: #d6485a; }
.label--exam  { background: #e4f4df; color: #3d8a3a; }
.label--alumni { background: #fff1c2; color: #8a6a00; }

/* instagram */
.insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.insta__grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.insta__grid a:hover img { transform: scale(1.08); opacity: .88; }

/* ==========================================================
   Common: pill buttons
   ========================================================== */
.sec-title--plain { font-size: clamp(22px, 2vw, 28px); letter-spacing: .04em; }
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; /*gap: 10px;*/
  padding: 9px 26px; border-radius: 999px; border: 1.5px solid var(--c-line-strong);
  background: #fff; color: var(--c-navy); font-family: var(--ff-round); font-size: 1rem; font-weight: 500; line-height: 1.4;
  /* white-space: nowrap;*/ transition: background .2s, transform .2s;
}
.btn-pill:hover { background: rgba(255,198,12,.45); transform: translateY(-2px); }
.btn-pill .arrow { width: .5em; height: .5em; }
.btn-pill--fill { background: var(--c-yellow); border-color: var(--c-yellow); padding: 14px 32px; font-size: 1.125rem; }
.btn-pill--fill:hover { background: rgba(255,200,30,.85); }
.btn-pill--sub { background: #fff; border-color: var(--c-navy); }

/* ==========================================================
   MOVIE
   ========================================================== */
.movie { padding: clamp(24px, 3vw, 44px) 0 clamp(30px, 4vw, 60px); }
.movie__dot1 { width: clamp(110px, 18vw, 260px); aspect-ratio: 260 / 230; left: -3vw; top: 3vw; }
.movie .sec-head { margin-bottom: 22px; }
.movie__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.movie__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 8px 24px -8px rgba(20,48,107,.25); }
.movie__thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.movie__cap { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--c-text); }

/* ==========================================================
   ABOUT / LIFE
   ========================================================== */
.about { padding: clamp(56px, 7vw, 100px) 0 clamp(50px, 6vw, 90px); }
.about__dot2 { width: clamp(110px, 19.5vw, 280px); aspect-ratio: 280 / 250; left: -7vw; bottom: 8vw; }

.intro { display: grid; grid-template-columns: 5fr 6fr; align-items: center; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(105px, 12.5vw, 188px); }
.intro__img { display: block; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 8px 24px -8px rgba(20,48,107,.25); }
.intro__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.intro__img:hover img { transform: scale(1.05); }
.intro__img--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.intro__body p { margin: 16px 0 22px; font-size: 15px; }

.life .sec-title { margin-bottom: 0; align-items: center; text-align: center; position: relative; z-index: 1; }
.life__arc { --r: clamp(130px, 17.5vw, 320px); margin-top: calc(var(--r) * -.3); display: flex; justify-content: space-between; align-items: flex-start; gap: 0; width: 100vw; margin-inline: calc(50% - 50vw); padding: 0 clamp(16px, 4vw, 72px); }
.life__arc li { flex: 0 1 var(--r); }
.life__arc li:nth-child(1) { transform: rotate(9deg); }
.life__arc li:nth-child(2) { transform: translateY(calc(var(--r) * .3)) rotate(4.5deg); }
.life__arc li:nth-child(3) { transform: translateY(calc(var(--r) * .5)); }
.life__arc li:nth-child(4) { transform: translateY(calc(var(--r) * .3)) rotate(-4.5deg); }
.life__arc li:nth-child(5) { transform: rotate(-9deg); }
.life__arc a { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; font-family: var(--ff-round); font-size: clamp(15px, 1.4vw, 20px); font-weight: 500; line-height: 1.4; color: var(--c-navy); }
.life__thumb { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 58% 42% 51% 49% / 46% 57% 43% 54%; box-shadow: 0 10px 24px -8px rgba(20,48,107,.3); animation: blobShape 12s ease-in-out infinite alternate; transition: transform .3s; }
.life__arc li:nth-child(1) .life__thumb { border-radius: 63% 37% 54% 46% / 38% 62% 38% 62%; animation-duration: 13s; }
.life__arc li:nth-child(2) .life__thumb { border-radius: 36% 64% 62% 38% / 58% 36% 64% 42%; animation-duration: 16s; animation-delay: -4s; }
.life__arc li:nth-child(3) .life__thumb { border-radius: 52% 48% 40% 60% / 62% 48% 52% 38%; animation-duration: 14s; animation-delay: -8s; }
.life__arc li:nth-child(4) .life__thumb { border-radius: 68% 32% 45% 55% / 40% 60% 40% 60%; animation-duration: 18s; animation-delay: -2s; }
.life__arc li:nth-child(5) .life__thumb { border-radius: 42% 58% 66% 34% / 56% 40% 60% 44%; animation-duration: 15s; animation-delay: -6s; }
@keyframes blobShape {
  0%   { border-radius: 58% 42% 51% 49% / 46% 57% 43% 54%; }
  50%  { border-radius: 38% 62% 44% 56% / 62% 38% 62% 38%; }
  100% { border-radius: 54% 46% 64% 36% / 40% 60% 42% 58%; }
}
.life__thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.life__arc a:hover .life__thumb { transform: scale(1.06); }
.life__label { position: relative; z-index: 1; margin-top: -.9em; white-space: nowrap; padding: 4px 18px; border-radius: 999px; background: var(--c-yellow_tra); }
.life { padding-bottom: clamp(90px, 12vw, 170px); }

/* ==========================================================
   OPEN CAMPUS
   ========================================================== */
.oc { padding: clamp(10px, 2vw, 30px) 0 clamp(70px, 8vw, 120px); }
.oc__dot2 { width: clamp(80px, 12.5vw, 180px); aspect-ratio: 180 / 160; left: 2%; bottom: 3vw; }
.oc__title { margin-bottom: 22px; }
.oc__box { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.oc__imgs { position: relative; aspect-ratio: 4 / 3; }
.oc__imgs img { width: 100%; height: 100%; object-fit: cover; }
.oc__lead { font-family: var(--ff-round); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; color: var(--c-navy); line-height: 1.4; }
.oc__text { margin: 12px 0 22px; font-size: 14.5px; }
.oc__links, .oc__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.oc__cta { margin-top: 16px; gap: 14px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer__info { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; }
.footer__logo { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.footer address { font-style: normal; font-size: 14px; line-height: 1.8; color: var(--c-text); }
.footer__tel { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--ff-round); font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; line-height: 1.3; letter-spacing: .04em; color: var(--c-navy); }
.footer__tel span { font-size: .45em; letter-spacing: .08em; }
.footer address small { display: block; font-size: 12px; color: rgba(20,48,107,.6); }
.footer__nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .875rem; color: var(--c-navy); }
.footer__nav a { transition: opacity .2s; }
.footer__nav a:hover { opacity: .6; }
.footer__sns { gap: 14px !important; font-size: 28px !important; }
.footer__copy { margin-top: 28px; /* text-align: center; */ font-size: 11.5px; color: rgba(20,48,107,.6); }

/* overlapping circle clusters (sized with the main circle of each group) */
.info__dot1b  { width: clamp(70px, 11vw, 160px); aspect-ratio: 1; left: -4vw; top: 12vw; }
.info__dot1c  { width: clamp(50px, 7vw, 100px); aspect-ratio: 1; left: 3vw; top: 22vw; }
.movie__dot1b { width: clamp(60px, 9vw, 130px); aspect-ratio: 1; left: 9vw; top: -1vw; }
.about__dot2b { width: clamp(70px, 11vw, 160px); aspect-ratio: 1; left: 1vw; bottom: 1vw; }

/* ==========================================================
   SAMPLE watermark (dummy / reference photos) - delete this block for production
   ========================================================== */
.card__thumb, .insta__grid a, .intro__img, .life__thumb, .sample-box { position: relative; container-type: inline-size; }
.hero__photo { position: absolute; inset: 0; overflow: hidden; background: var(--c-sky); clip-path: url(#heroClip); container-type: inline-size; } /* keeps its own position (absolute on PC / relative on SP) */
/*.hero__photo::before, .card__thumb::after, .insta__grid a::after, .intro__img::after, .life__thumb::after, .sample-box::after {
  content: "SAMPLE"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none;
  font-family: var(--ff-round); font-size: 17cqw; font-weight: 500; letter-spacing: .05em; line-height: 1;
  color: rgba(255,255,255,.6); text-shadow: 0 1px 10px rgba(20,48,107,.12);
}*/
.hero__photo::before { font-size: 11cqw; }
.insta__grid a::after, .sample-box::after { font-size: 15cqw; }
.oc__img1 { display: block; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; box-shadow: 0 8px 24px -8px rgba(20,48,107,.25); position: relative; }

/* footer: circle cluster at the top right */

/* right-side clusters: varied sizes / offsets so they do not look alike */
.about__dot1 { width: clamp(110px, 16vw, 230px); aspect-ratio: 200 / 180; right: -3vw; top: 0; left: auto; }
.about__dot1b { width: clamp(46px, 6vw, 86px); aspect-ratio: 1; right: 11vw; top: 12vw; }
.about__dot1c { width: clamp(30px, 3.6vw, 52px); aspect-ratio: 1; right: 5vw; top: 17vw; }

.oc__dot1 { width: clamp(80px, 12vw, 170px); aspect-ratio: 240 / 210; right: 10vw; top: 6vw; }
.oc__dot1b { width: clamp(50px, 7vw, 100px); aspect-ratio: 1; right: 19vw; top: 13vw; }
.oc__dot1c { width: clamp(60px, 8vw, 116px); aspect-ratio: 1; right: 3vw; top: -1vw; }

.footer__dot1 { border-radius: 60% 40% 52% 48% / 44% 58% 42% 56%; width: clamp(100px, 15vw, 220px); aspect-ratio: 1; right: -3vw; top: 3vw; }
.footer__dot1b { border-radius: 38% 62% 60% 40% / 62% 40% 60% 38%; width: clamp(46px, 6vw, 86px); aspect-ratio: 1; right: 13vw; top: -2vw; animation-duration: 5s; animation-delay: -6s; }
.footer__dot1c { border-radius: 66% 34% 40% 60% / 38% 62% 38% 62%; width: clamp(30px, 3.6vw, 52px); aspect-ratio: 1; right: 12vw; top: 10vw; animation-duration: 5s; animation-delay: -3s; }

.news__empty { padding: 36px 8px; text-align: center; font-size: 14px; color: rgba(20,48,107,.6); border-top: 1px solid var(--c-line); }
.news__empty[hidden] { display: none; }

/* ==========================================================
   Mascot characters (くさかんも)
   ========================================================== */
.chara { position: absolute; z-index: 3; height: auto; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(20,48,107,.12)); }
.pickup__list > li { position: relative; }
.chara--greeting { z-index: auto; width: clamp(118px, 12.4vw, 186px); right: 9%; bottom: calc(100% - clamp(118px, 12.4vw, 186px) * .2); rotate: 5deg; } /* sits behind the card thumbnail: DOM order puts it before the card */
.movie__list li { position: relative; }
/* DOM: inside the 1st video item. PC: shifted over to the 2nd video; SP (1 column): centered above the 1st video */
.chara--sit { width: clamp(106px, 12vw, 178px); left: calc(106% + clamp(16px, 2.4vw, 32px)); top: auto; bottom: calc(100% - clamp(106px, 12vw, 178px) * .08 - 5px); }
.oc .inner { position: relative; }
.chara--pair { width: clamp(126px, 15vw, 226px); right: -3%; bottom: calc(clamp(126px, 15vw, 226px) * -.18); rotate: -4deg; }
.footer { position: relative; z-index: 1; padding: clamp(36px, 4vw, 56px) 0 24px; background: #fff; border-top: 1px solid var(--c-line); overflow: visible; }

/* ==========================================================
   Sub pages (shared): page hero / in-page nav / blocks / grids
   ========================================================== */

.page-hero { position: relative; padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) 0 clamp(40px, 5vw, 70px); background: none /* 一旦なし。元: linear-gradient(180deg, var(--c-sky), #fff) */; z-index: 51; } /* above the sticky .subnav so the mascot feet / circle are not cut off */
.page-hero__dot1 { width: clamp(120px, 16vw, 240px); aspect-ratio: 1; right: -3vw; top: calc(var(--header-h) - 10px); }
.page-hero .chara { width: clamp(130px, 16vw, 230px); right: 12vw; bottom: -20px; z-index: 2; }

/* in-page nav (sticky chips) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.subnav ul { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; width: min(var(--inner), 100% - 48px); margin-inline: auto; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 6px 16px; border-radius: 999px; font-family: var(--ff-round); font-size: .9375rem; font-weight: 500; color: var(--c-navy); background: rgba(20,48,107,.05); transition: background .2s; }
.subnav a:hover, .subnav a.is-current { background: var(--c-yellow); }

/* content block (alternates white / sky) */
.page-sec { position: relative; padding: clamp(2rem, 6vw, 4rem) 0; scroll-margin-top: 24px; } /* アンカー移動時、ヘッダー/サブナビの下に少し余白を開ける */
.page-sec--tint { background: linear-gradient(180deg, #fff, var(--c-cream) 14%, var(--c-cream) 86%, #fff); }
.page-sec .sec-title { margin-bottom: clamp(20px, 2.5vw, 34px); }
.dummy-note { display: inline-block; margin: 0 0 14px; padding: 1px 12px; border-radius: 999px; background: #fff3c4; color: #7a5b00; font-size: .75rem; font-weight: 600; } /* delete for production */

/* generic parts */
.ttl-h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.lead { font-family: var(--ff-round); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight:500; color: var(--c-navy);}
.photo-cap__name { display: block; margin-top: 2px; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.6; }
.photo-cap { margin: 10px 0 0; font-family: var(--ff-round); font-size: clamp(.875rem, 1.4vw, 1rem); color: var(--c-navy); line-height: 1.5; }
.photo { position: relative; border-radius: 26px; overflow: hidden; box-shadow:0 0.5rem 1rem -0.25rem var(--c-line-strong); aspect-ratio: 3 / 2; background: var(--c-sky); }
.photo img, .photo iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* layout: photo + text / grids */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.split--rev { grid-template-columns: 6fr 5fr; }
.split--rev > :first-child { order: 2; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.75rem, 2.4vw, 1.5rem); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 2.4vw, 1.5rem); }
.grid2--top, .grid3--top { align-items: start; }
.grid2--wide { gap: clamp(20px, 3vw, 48px); align-items: start; }

/* white rounded box (+ pill heading) */
.box { position: relative; background: #fff; border-radius: 24px; padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--c-line); }
/* 影だけ乗算: 影を疑似要素に持たせて mix-blend-mode: multiply（.box 自体は z-index を付けない＝背景と合成できる） */
.box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0.5rem 1rem -0.25rem var(--c-line-strong); mix-blend-mode: multiply; pointer-events: none; }
.box ul { list-style: disc; padding-left: 1.3em; }
.box > h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.box li + li { margin-top: 6px; }
.box p:last-child { margin-bottom: 0; }

/* photo card */
.card-box { background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--c-line); box-shadow:0 0.5rem 1rem -0.25rem var(--c-line-strong); }
.card-box .photo { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 9; }
.card-box__body { padding: 18px 22px 22px; }
.card-box__body p { margin: 0 0 10px; }
.card-box__body ul { list-style: disc; padding-left: 1.3em; }

/* photo ratios / photo list */
.photo--2x3 { aspect-ratio: 2 / 3; }
.split--sm { grid-template-columns: 1fr 4fr; align-items: start; }
.photo-list h3 { font-size: var(--fs-h4); padding:0.25rem 1rem; }

/* grouped lists: field heading + chip list */
.group { margin-top: 0; }
.stack { display: grid; gap: clamp(0.75rem, 2.4vw, 1.5rem); align-content: start; }
.group__ttl { font-size: var(--fs-h3); line-height: 1.4; display: flex; align-items: center; gap: 10px; padding: 2px 0; margin: 0 0 4px; }
.group__ttl::before { content: ""; flex: none; margin-left: -10px; width: 22px; height: 22px; border-radius: 50%; background: var(--fc, var(--c-yellow)); }
.group--1 { --fc: var(--c-yellow); } 
.group--2 { --fc: #9fc3f2; } 
.group--3 { --fc: var(--c-green); } 
.group--4 { --fc: var(--c-pink); }
.group__sub { margin: 16px 0 8px; font-size: var(--fs-h5); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.box .chips li + li { margin-top: 0; }
.box ul.chips { list-style: none; padding-left: 0; }
.chips li { padding: 2px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); font-size: .9375rem; line-height: 1.7; }
.box .chips li { background: var(--c-sky); border-color: transparent; }

/* timeline */
.history { position: relative; /*max-width: 860px; margin-inline: auto;*/ }
.history::before { content: ""; position: absolute; left: 5.5rem; top:0; bottom:0; width: 2px; background: var(--c-line); }
.history li { position: relative; display: grid; grid-template-columns: 4rem 1fr; gap: 0 3rem; padding: 12px 0; }
.history li::before { content: ""; position: absolute; left: calc(5.5rem - 0.5rem + 1px); top: calc(1rem + 2px); width: 1rem; height: 1rem; border-radius: 50%; background: var(--c-yellow); /*border: 2px solid var(--c-navy);*/ }
.history time { font-family: var(--ff-round); color: var(--c-navy); font-weight: 500; text-align: right; }
.history p { margin: 0; }

/* figures */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 2.4vw, 1.5rem); margin: 20px 0 0; }
.stats .box { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: clamp(12px, 1.6vw, 18px); align-items: center; padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 24px); }
.stats__ico { grid-row: 1 / 3; display: grid; place-items: center; width: clamp(48px, 5vw, 60px); aspect-ratio: 1; border-radius: 50%; background: var(--c-yellow); color: var(--c-navy); font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.stats__ico--g { background: var(--c-green); }
.stats__ico--p { background: var(--c-pink); }
.stats dt { align-self: end; font-size: .875rem; font-weight: 500; color: var(--c-sub); }
.stats dd { align-self: start; margin: 0; font-family: var(--ff-round); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; color: var(--c-navy); }
.stats dd small { margin-left: .15em; font-size: .5em; }

/* common.css (utility set) is loaded before this file; neutralise the parts that clash with this design */
div.inner { padding: 0; }
address { font-style: normal; }
.footer__tel, .footer__tel:hover { color: var(--c-navy) !important; text-decoration: none !important; }

/* icon in table header cell (access etc.) */
.deco-tb th .ico { margin-right: .4em; vertical-align: -.2em; color: var(--c-navy); }
.deco-tb th { white-space: nowrap; }
table.deco-tb th { border: 1px solid var(--c-line); border-block-color: var(--c-line-strong); }
table.deco-tb td { border: 1px solid var(--c-line); border-block-color: var(--c-line-strong); }

/* ==========================================================
   Decorative circles in sub-page sections (generic modifiers of .dot)
   ========================================================== */
.page-sec > .dot { top: 6%; }
.dot--left  { left: -4vw; }
.dot--right { right: -4vw; }
.page-sec > .dot--btm { top: auto; bottom: 4%; }
.page-sec > .dot--mid { top: 42%; }
.dot--l2    { left: 3vw; }
.dot--l1    { left: -1vw; }  /* barely off the edge */
.dot--r1    { right: -1vw; }
.dot--r2    { right: 4vw; }
.dot--sm { width: clamp(36px, 5vw, 76px);  aspect-ratio: 1; }
.dot--md { width: clamp(72px, 11vw, 160px); aspect-ratio: 1; }
.dot--lg { width: clamp(110px, 15vw, 220px); aspect-ratio: 1; }
.dot--v2 { border-radius: 40% 60% 58% 42% / 60% 42% 58% 40%; animation-duration: 5s; animation-delay: -11s; }
.dot--v3 { border-radius: 66% 34% 36% 64% / 38% 62% 38% 62%; animation-duration: 5s; animation-delay: -5s; }

/* ==========================================================
   Month card / photo thumbs / interview card (life page etc.)
   ========================================================== */
.muted { color: var(--c-sub); list-style: none; margin-left: -1.3em; }

/* month card: month label image + list */
.month { display: grid; grid-template-columns: clamp(64px, 8vw, 90px) minmax(0, 1fr); gap: 0 clamp(14px, 2vw, 24px); align-items: start; padding: 22px 24px; }
.box > h3.month__ttl { /*margin: -12px 0 0; font-size: var(--fs-h5);*/ line-height: 1.3; white-space: nowrap; }
.month__ttl span { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.month__body ul { margin-top: 6px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumbs .photo { flex: 0 0 calc(25% - 8px); border-radius: 16px; box-shadow: none; }

/* interview card: portrait + name + button that opens a modal Q&A */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.grid4--top { align-items: start; }
.voice { padding: 0 0 8px; overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.voice__name i { flex: none; display: grid; place-items: center; width: 1.8em; aspect-ratio: 1; border-radius: 50%; background: var(--c-yellow); font-size: .9em; transition: transform .25s; }
.voice:hover .voice__name i { transform: translateX(3px); }
.voice:hover, .voice:focus-visible { transform: translateY(-4px); box-shadow:0 0.5rem 1rem -0.25rem var(--c-line-strong);; }
.voice:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.voice__img { background: #fff; }
.voice__img img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.box > h3.voice__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 20px; font-size: var(--fs-h4); }

/* modal (<dialog>) */
.modal { width: min(720px, 92vw); max-height: 86vh; margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--c-text); box-shadow: 0 20px 60px rgba(20,48,107,.3); overflow: hidden; }
.modal[open] { display: flex; flex-direction: column; }
.modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 4vw, 40px) 32px; }
.modal::backdrop { background: rgba(20,48,107,.5); }
.modal__head { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); padding: 24px 0 18px; border-bottom: 1px solid var(--c-line); }
.modal__head img { flex: none; width: clamp(96px, 20vw, 160px); height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--c-sky); object-fit: cover; mix-blend-mode: multiply; }
.modal__name { margin: 0; font-family: var(--ff-round); font-weight: 500; color: var(--c-navy); }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; width: 40px; aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--c-sky); color: var(--c-navy); font-size: 1.25rem; cursor: pointer; }
/* prev / next arrows: fixed at the sides of the viewport so they stay reachable while the Q&A scrolls */
.modal__arrow { position: fixed; top: 50%; z-index: 2; display: grid; place-items: center; width: 52px; aspect-ratio: 1; margin-top: -26px; border: 0; border-radius: 50%; background: var(--c-yellow); color: var(--c-navy); font-size: 1.5rem; box-shadow: 0 6px 18px rgba(20,48,107,.3); cursor: pointer; transition: transform .2s; }
.modal__arrow:hover { transform: scale(1.08); }
.modal__arrow--prev { left: max(8px, calc(50% - 360px - 72px)); }
.modal__arrow--next { right: max(8px, calc(50% - 360px - 72px)); }
.qa { margin: 0; padding-top: 6px; }
.qa dt { --qa-fs: var(--fs-h4); display: flex; align-items: flex-start; gap: .6em; margin-top: 20px; font-family: var(--ff-round); font-size: var(--qa-fs); font-weight: 500; color: var(--c-navy); line-height: 1.6; }
/* Q番号: 質問1行目の行の高さ(--qa-fs x line-height)に合わせて上下中央に配置 */
.qa__no { flex: none; display: inline-flex; align-items: center; margin-top:-0.15rem; height: calc(var(--qa-fs) * 1.8); padding: 0 .75em; border-radius: 999px; background: var(--c-yellow); font-size:1rem; line-height: 1; }
.qa dd { margin: 6px 0 0; font-size: .9375rem; }

/* Q&A accordion */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; box-shadow:0 0.5rem 1rem -0.25rem var(--c-line-strong);; padding: 0 22px; border: 1px solid var(--c-line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: .7em; padding: 16px 0; line-height: 1.7; font-family: var(--ff-round); font-weight: 500; color: var(--c-navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; display: grid; place-items: center; width: 1.8em; aspect-ratio: 1; border-radius: 50%; background: var(--c-yellow); font-size: .9375rem; }
.faq summary::after { content: "+"; margin-left: auto; padding-left: .5em; font-size: 1.25rem; line-height: 1.35; }
.faq details[open] summary::after { content: "−"; }
.faq details.is-closing summary::after { content: "+"; }
.faq details p { margin: 0; padding: 0 0 18px; display: flex; align-items: flex-start; gap: .7em; font-size: .9375rem; line-height: 1.8; }
.faq details p::before { content: "A"; flex: none; display: grid; place-items: center; width: 1.8em; aspect-ratio: 1; border-radius: 50%; background: var(--c-green); font-family: var(--ff-round); font-weight: 500; font-size: .9375rem; color: var(--c-navy); }

/* keep circles from overlapping each other */
.page-sec > .dot--l2:not(.dot--btm):not(.dot--mid),
.page-sec > .dot--r2:not(.dot--btm):not(.dot--mid) { margin-top: clamp(84px, 13vw, 180px); }

/* vertical position steps for scattering circles along a long section */
.page-sec > .dot--t15 { top: 15%; } .page-sec > .dot--t25 { top: 25%; } .page-sec > .dot--t35 { top: 35%; }
.page-sec > .dot--t55 { top: 55%; } .page-sec > .dot--t65 { top: 65%; } .page-sec > .dot--t75 { top: 75%; } .page-sec > .dot--t85 { top: 85%; }
.page-hero__dot3 { width: clamp(70px, 10vw, 150px); aspect-ratio: 1; left: -3vw; bottom: clamp(8px, 1.5vw, 20px); background: rgba(255, 244, 160, .5); }
.page-hero__dot2 { width: clamp(50px, 7vw, 100px); aspect-ratio: 1; right: 27vw; top: calc(var(--header-h) + min(8vw, 115px)); background: rgba(212, 236, 206, .5); }

/* about: greeting has no blue band */
#greeting.page-sec { background: none; }
.gnav__sub a i { flex: none; display: flex; align-items: center; height: 1.5rem; margin-right: .3em; font-size: .85em; color: var(--c-navy); position: relative; top: .03em; }


a.btn-pill[href$=".doc"]:after, a.btn-pill [href$=".docx"]:after,
a.btn-pill[href$=".xls"]:after, a.btn-pill[href$=".xlsx"]:after,
a.btn-pill[href$=".pdf"]:after, a.btn-pill[href$=".zip"]:after { margin:0 0.25rem; }




/* ==========================================================
   RESPONSIVE（@media をサイズごとにまとめて記述）
   ========================================================== */
@media (max-width: 1100px) {
  .header__util li:not(:last-child) a { font-size: 0; gap: 0; }
  .gnav a { padding-inline: 9px; font-size: 14px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}

@media print, (max-width: 900px) {
  :root { --header-h: 64px; }

  .menu-btn { mix-blend-mode: multiply; display: block; position: fixed; top: calc((var(--header-h) - 44px) / 2); right: 10px; z-index: 1010; width: 44px; height: 44px; border: 0; background: var(--c-yellow); border-radius: 50%; box-shadow: 0 4px 12px -5px rgba(20,48,107,.12); }
  .menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--c-navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .menu-btn span:nth-child(1) { top: 15px; }
  .menu-btn span:nth-child(2) { top: 21px; }
  .menu-btn span:nth-child(3) { top: 27px; }
  .is-open + .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .is-open + .menu-btn span:nth-child(2) { opacity: 0; }
  .is-open + .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .header__right {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 24px 24px 40px;
    align-items: stretch; gap: 24px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .is-open .header__right { opacity: 1; visibility: visible; }
  .gnav { order: 1; }
  .gnav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: .875rem; }
  .gnav li { border: 0; }
  .gnav a, .gnav li:last-child a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    height: 100%; padding: 16px 6px; border-radius: 16px; text-align: center; line-height: 1.4;
    background: rgba(20,48,107,.05);
  }
  .gnav a:hover, .gnav a:active { background: rgba(255,198,12,.4); }
  .page-news .gnav-news a, .page-about .gnav-about a, .page-life .gnav-life a,
  .page-visit .gnav-visit a, .page-exam .gnav-exam a, .page-alumni .gnav-alumni a { background: rgba(255,198,12,.4); }
  .gnav br { display: inline; }
  .gnav__ico { display: block; font-size: 38px; line-height: 1; color: var(--c-navy); }
  .gnav a::after { display: none; }
  .header__util { order: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 12px; }
  .header__util li:not(:last-child) a, .header__util a { flex-direction: column; justify-content: flex-start; font-size: 12px; gap: 6px; text-align: center; line-height: 1.4; }
  .header__util li { justify-content: center; align-items: flex-start; }
  .header__util .ico, .header__insta .ico { font-size: 32px; }
  .sp-only { display: inline; }

  .hero { height: auto; display: flex; flex-direction: column; }
  .hero__photo { position: relative; inset: auto; height: calc(62vw + var(--header-h)); min-height: 320px; }
  .hero__hand--top { font-size: 15px; left: 18px; top: calc(var(--header-h) + 8px); }
  .hero__hand--side { display: none; }
  .hero__copy { position: relative; left: auto; bottom: auto; margin:-6rem 0 1rem 1rem; z-index: 3; }
  .hero__title { font-size: clamp(24px, 7vw, 44px); }
  .info__grid > *, .pickup__list > * { min-width: 0; }
  .hero__cta { display: contents; } /* wrapper only; the yellow OC button stays fixed at the bottom */
  .fab { left: 16px; right: 16px; bottom: 12px; gap: 8px; justify-content: flex-end; }
  .btn--yellow { flex: none; width: auto; padding: 10px 14px; gap: 8px; font-size: 14px; line-height: 1.25; }
  .btn--exam { flex: none; padding: 10px 14px; gap: 6px; font-size: 14px; }
  .hero__dot4 { width: 120px; height: 108px; aspect-ratio: auto; right: 8vw; bottom: -8vw; }

  /* SP: PICK UP flows sideways, driven by the vertical scroll (see script) */
  .pickup__list {
    display: flex; flex-wrap: nowrap; gap: 14px;
    margin: calc(-12px - 23vw) -16px -28px; padding: calc(12px + 23vw) 16px 28px;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none;
  }
  .pickup__list::-webkit-scrollbar { display: none; }
  .pickup__list > li { flex: 0 0 72%; min-width: 0; }
  .card__img { aspect-ratio: 4 / 3; }
  .tag { display: none; }

  .info__grid { grid-template-columns: 1fr; gap: 44px; }
  .insta { padding-left: 0; border-left: 0; }
  .movie__list { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; }
  .life .sec-title { margin-bottom: 28px; }
  .life__arc { margin-top: 0; flex-wrap: wrap; justify-content: center; gap: 18px 6vw; padding-inline: 12px; --r: 46vw; }
  .life__arc li, .life__arc li:nth-child(n) { flex: 0 0 46%; transform: none; }
  .oc__box { grid-template-columns: 1fr; }
  .btn--yellow ~ * { }
  .footer { padding-bottom: 88px; }
  .chara--greeting { width: 25vw; right: 8%; bottom: calc(100% - 25vw * .2); }
  .chara--sit { width: 24vw; left: auto; right: 4%; translate: none; top: auto; bottom: calc(100% - 24vw * .08 - 5px); }
  /* SP: the thumbnail is the first block (4:3, full width) -> hang the mascot off its bottom-left corner */
  .chara--pair { width: 30vw; left: auto; right: 1vw; bottom: auto; top: calc((100vw - 32px) * .75 - 30vw * .55); }
  
/* SP: circle spacing + hero-bottom colour order (yellow / red / blue / green, left to right) */
  .hero__dot1 { width: 30vw; height: 25vw; left: -9vw; bottom: 4vw; }
  .hero__dot2 { width: 13vw; height: 14vw; bottom: -11vw; left: 17vw; }
  .hero__dot3 { width: 21vw; height: 18vw; bottom: 12vw; right: -2.5vw; }
  .info__dot1b { left: 1vw; top: 16vw; }
  .info__dot1c { left: 14vw; top: 30vw; }
  .footer__dot1b { right: 22vw; top: -6vw; }
  .footer__dot1c { right: 19vw; top: 17vw; }
/* SP: open campus buttons, two per row */
  .oc__links, .oc__cta { gap: 10px 4%; }
  .oc__links li, .oc__cta li { width: 48%; }
  .oc__links .btn-pill, .oc__cta .btn-pill { width: 100%; justify-content: space-between; padding: 0.75rem 1rem; font-size: 1rem; }
  .oc__cta .btn-pill--fill { font-size: 1.125rem; }
/* label + text rows (access etc.) */
  .page-hero .chara { right: 4vw; width: min(32vw, 170px); bottom:8px; }
  .page-sec { scroll-margin-top: 24px; }
  .split, .split--rev, .grid2, .grid3 { grid-template-columns: 1fr; }
  /* horizontal swipe slider (SP): full-bleed, snap, no scrollbar */
  .slider { display: flex; gap: 14px; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); scroll-padding-inline: calc(50vw - 50%); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
  .slider::-webkit-scrollbar { display: none; }
  .slider--link { scroll-snap-type: none; } /* position is driven by the vertical scroll (JS) */
  .slider > * { flex: 0 0 76%; min-width: 0; scroll-snap-align: start; }
  .split--sm .photo--2x3 { width: min(60%, 180px); margin-inline: auto; }
  .split--sm .photo-cap { text-align: center; }
  .split--rev > :first-child { order: 0; }
  .history::before { left: 5.4em; }
  .history li { grid-template-columns: 5em 1fr; gap: 0 1.6em; }
  .history li::before { left: calc(5.4em - 5px); }
  .stats { grid-template-columns: 1fr; }
  .subnav ul { width: 100%; margin-inline: 0; padding-inline: 16px; box-sizing: border-box; scroll-padding-inline: 16px; } /* 左右ともウインドウ端まで(チップの両端に16pxの余白) */
  .modal__arrow { width: 36px; margin-top: -18px; font-size: 1.125rem; }
  .modal__arrow--prev { left: 0; }
  .modal__arrow--next { right: 0; }
  .grid4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .month { padding: 18px; grid-template-columns: 60px minmax(0, 1fr); gap: 0 14px; }
  .box > h3.month__ttl { margin-top: -16px; }
  .box > h3.voice__name { margin-inline: 14px; font-size: var(--fs-h5); }
/* SP: keep the decorative circles apart from each other and from the headings */
  .dot--md { width: 64px; }
  .dot--sm { width: 32px; }
  .page-sec > .dot { top: 2%; }
  .page-sec > .dot--btm { top: auto; bottom: 1%; }
  .page-sec > .dot--mid { top: 50%; }
/* sits below the large circle on the same side */
  .page-sec > .dot--l2:not(.dot--btm):not(.dot--mid),
  .page-sec > .dot--r2:not(.dot--btm):not(.dot--mid) { margin-top: 72px; }
 .gnav .gnav__sub { display: none; } 
}

@media (max-width: 480px) {
  .inner { width: calc(100% - 32px); }
  .tab { padding: 8px 4px; }
  .insta__grid { gap: 5px; }
}

@media screen and (min-width: 901px) {
/* top of page: larger school name (back to normal once scrolled) */
  .header:not(.is-scrolled) .header__logo-sub { font-size: .875rem; }
  .header:not(.is-scrolled) .header__logo-main { font-size: clamp(26px, 2.5vw, 34px); }
/* PC: body text 1rem */
  .news__list .news__ttl, .movie__cap, .intro__body p, .oc__text, .footer address, .news__empty { font-size: 1rem; }
/* PC: left circle overlaps the page title; green / yellow circles swapped */
  .page-hero__dot3 { top: calc(var(--header-h) + clamp(24px, 4vw, 56px) - 14px); }
/* PC: events list on the left, photos in 2 columns on the right */
  .month__body:has(.thumbs) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: 0 clamp(20px, 3vw, 40px); align-items: start; }
  .month__body .thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
  .month__body .thumbs .photo { flex: none; }
/* PC: gnav pull-down  */
  .gnav > ul > li { position: relative; }
  .gnav .gnav__sub { position: absolute; left: 50%; top: calc(100% + 8px); z-index: 10; display: block; min-width: 100%; margin: 0; padding: 10px; transform: translate(-50%, 6px); border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px -8px rgba(20,48,107,.25); text-shadow: none; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .gnav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
  .gnav li:hover > .gnav__sub, .gnav li:focus-within > .gnav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .gnav li:last-child > .gnav__sub { left: auto; right: 0; transform: translate(0, 6px); } /* keep the last pull-down inside the viewport */
  .gnav li:last-child:hover > .gnav__sub, .gnav li:last-child:focus-within > .gnav__sub { transform: translate(0, 0); }
  .gnav__sub li { white-space: nowrap; }
  .gnav .gnav__sub li a { display: flex; align-items: flex-start; line-height: 1.5rem; padding: 8px 24px 8px 12px; border-radius: 999px; color: var(--c-navy); transition: background .2s; }
  .gnav .gnav__sub li a::after { display: none; }
  .gnav .gnav__sub a:hover { background: rgba(255,198,12,.4); }
}

@media (prefers-reduced-motion: reduce) {
  .dot, .life__thumb { animation: none !important; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

