@charset "UTF-8";
/* ==========================================================
   Kist Open Campus 2026 — renewal
   ========================================================== */
:root {
  --navy: #1d2088;
  --deep: #0d0d5e;
  --grad: linear-gradient(90deg, #f2f24a 0%, #c3ebe4 28%, #5fb8dc 50%, #7b9fdb 74%, #dc8fae 100%);
  --blue: #2f6fd0;
  --sky: #7ec3ea;
  --sky-pale: #eaf5fb;
  --yellow: #f8ca00;
  --ink: #21243a;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(29, 32, 136, .10);
  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Montserrat", sans-serif;
  --header-h: 64px;
  --cta-h: 59px;   /* SP下部固定CTAの高さ。SNSバーとフッター余白の基準 */
  --container-w: 1200px; /* PCコンテンツ幅。.p-feature-head の左端揃えもこれを参照 */
  /* 濃紺の地に敷く「Kist」の透かし。大きさ・角度・濃さを散らした1200px角のタイル。
     右端・下端をまたぐ語は複製を置いてあるので、繰り返しても継ぎ目が出ない。
     敷く面が小さいときは background-size で縮めて使う。 */
  --kist-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='1200'%3E%3Cg font-family='Helvetica,Arial,sans-serif' font-weight='700' fill='%23ffffff'%3E%3Ctext x='40' y='300' font-size='230' fill-opacity='0.08' transform='rotate(-6 40 300)'%3EKist%3C/text%3E%3Ctext x='640' y='160' font-size='100' fill-opacity='0.05' transform='rotate(8 640 160)'%3EKist%3C/text%3E%3Ctext x='900' y='350' font-size='150' fill-opacity='0.06' transform='rotate(-12 900 350)'%3EKist%3C/text%3E%3Ctext x='-300' y='350' font-size='150' fill-opacity='0.06' transform='rotate(-12 -300 350)'%3EKist%3C/text%3E%3Ctext x='330' y='520' font-size='80' fill-opacity='0.07' transform='rotate(14 330 520)'%3EKist%3C/text%3E%3Ctext x='520' y='700' font-size='280' fill-opacity='0.07' transform='rotate(4 520 700)'%3EKist%3C/text%3E%3Ctext x='60' y='900' font-size='120' fill-opacity='0.05' transform='rotate(-10 60 900)'%3EKist%3C/text%3E%3Ctext x='1000' y='800' font-size='90' fill-opacity='0.06' transform='rotate(18 1000 800)'%3EKist%3C/text%3E%3Ctext x='380' y='1130' font-size='170' fill-opacity='0.06' transform='rotate(-4 380 1130)'%3EKist%3C/text%3E%3Ctext x='880' y='1050' font-size='60' fill-opacity='0.08' transform='rotate(10 880 1050)'%3EKist%3C/text%3E%3Ctext x='900' y='130' font-size='110' fill-opacity='0.05' transform='rotate(5 900 130)'%3EKist%3C/text%3E%3Ctext x='600' y='1240' font-size='130' fill-opacity='0.06'%3EKist%3C/text%3E%3Ctext x='600' y='40' font-size='130' fill-opacity='0.06'%3EKist%3C/text%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  line-height: 1.8;
  background: var(--white);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

.u-marker { background: linear-gradient(transparent 62%, #ffe873 62%); font-weight: 700; }

/* ---------- layout ---------- */
.l-container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }
.l-section { padding: 96px 0; background: var(--white); }
.l-section--tint { background: var(--sky-pale); }
.l-section--flush { padding-top: 0; padding-bottom: 0; }
@media (max-width: 560px) { .l-section { padding: 72px 0; } }

/* ---------- header ---------- */
.l-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3ecf3;
}
.l-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.l-header__logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.l-header__logo img { width: 200px; height: auto; }
.l-header__sub { font-size: 10px; color: var(--navy); font-weight: 700; letter-spacing: .06em; }
.l-header__nav { display: flex; gap: 18px; margin-left: auto; }
.l-header__nav a {
  font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.l-header__nav a:hover { color: var(--blue); }
.l-header__actions { display: flex; align-items: center; gap: 12px; margin-left: 20px; }

/* ハンバーガー（SPのみ表示）: 2本線が×に回転 */
.l-header__toggle {
  display: none; position: relative;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  flex-shrink: 0; z-index: 111;
}
.l-header__toggle-bar { display: none; }
.l-header__toggle::before,
.l-header__toggle::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--navy);
  transition: transform .5s, background-color .3s;
}
.l-header__toggle::before { transform: translateY(-4px); }
.l-header__toggle::after  { transform: translateY(4px); }
.l-header__toggle[aria-expanded="true"]::before { transform: translateY(0) rotate(135deg); }
.l-header__toggle[aria-expanded="true"]::after  { transform: translateY(0) rotate(-135deg); }
.l-header__toggle[aria-expanded="true"]::before,
.l-header__toggle[aria-expanded="true"]::after  { background: var(--white); }

/* ドロワーの黒幕 */
.l-drawer-overlay {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(13, 13, 94, .45);
  opacity: 0; transition: opacity .6s ease;
}
.l-drawer-overlay.is-visible { opacity: 1; }

/* PCではドロワー用の要素を透過させて横並びに戻す */
.l-header__nav-inner { display: contents; }
.l-header__nav .nav-cta { display: none; }
.l-header__cta {
  background: var(--yellow); color: var(--navy);
  font-weight: 900; font-size: 14px; text-decoration: none;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 3px 0 #d3ab00;
  white-space: nowrap;
}
.l-header__cta:hover { transform: translateY(1px); box-shadow: 0 2px 0 #d3ab00; }
/* 資料請求は白地アウトラインで、黄色の予約ボタンを主役のまま並べる */
.l-header__cta--request {
  background: var(--white); color: var(--navy);
  border: 2px solid var(--navy);
  padding: 8px 18px;
  box-shadow: 0 3px 0 rgba(13, 13, 94, .25);
}
.l-header__cta--request:hover { box-shadow: 0 2px 0 rgba(13, 13, 94, .25); }
/* スマホでは下部固定CTAに資料請求があるため、ヘッダー側は出さない */
@media (max-width: 820px) { .l-header__cta--request { display: none; } }
@media (max-width: 900px) {
  .l-header__actions { margin-left: auto; }
  .l-header__toggle { display: block; }

  /* 右から斜めに滑り込むドロワー */
  .l-header__nav {
    position: fixed; top: 0; right: -24vh; z-index: 110;
    width: calc(70% + 24vh); max-width: calc(300px + 24vh); height: 100dvh;
    display: flex; align-items: center; gap: 0; margin-left: 0;
    background: var(--deep);
    box-shadow: -18px 0 50px -24px rgba(0, 0, 0, .5);
    transform-origin: 100% 0;
    /* ふわっと出るよう、減速の強いイージング＋フェードを重ねる */
    transform: skew(-12deg) translate(118%) scale(1.04);
    opacity: 0;
    transition:
      transform .78s cubic-bezier(.16, 1, .3, 1),
      opacity .5s ease;
    pointer-events: none;
  }
  body.is-nav-open .l-header__nav {
    transform: skew(-12deg) translate(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  /* メニュー項目は少しずつ遅れて浮かび上がる */
  .l-header__nav-inner > * {
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
  }
  body.is-nav-open .l-header__nav-inner > * { opacity: 1; transform: none; }
  body.is-nav-open .l-header__nav-inner > *:nth-child(1) { transition-delay: .20s; }
  body.is-nav-open .l-header__nav-inner > *:nth-child(2) { transition-delay: .26s; }
  body.is-nav-open .l-header__nav-inner > *:nth-child(3) { transition-delay: .32s; }
  body.is-nav-open .l-header__nav-inner > *:nth-child(4) { transition-delay: .38s; }
  body.is-nav-open .l-header__nav-inner > *:nth-child(5) { transition-delay: .44s; }
  body.is-nav-open .l-header__nav-inner > *:nth-child(6) { transition-delay: .52s; }
  body.is-nav-open .l-header__nav-inner > *:nth-child(7) { transition-delay: .58s; }
  body.is-nav-open .l-header__nav-inner > *:nth-child(8) { transition-delay: .64s; }
  /* ドロワーはヘッダーの重なり文脈の中にあるため、開いている間はヘッダーごと黒幕より前に出す */
  body.is-nav-open .l-header { z-index: 120; }

  /* 中身は逆に傾けて文字をまっすぐに戻す */
  .l-header__nav-inner {
    display: flex; flex-direction: column; gap: 2px;
    width: 200px; margin-left: 96px;
    transform: skew(12deg);
  }
  .l-header__nav a {
    padding: 13px 4px; font-size: 17px; font-weight: 500;
    color: rgba(255, 255, 255, .85); letter-spacing: .06em; white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    transition: color .2s, padding-left .2s;
  }
  .l-header__nav a:hover { color: var(--white); padding-left: 10px; }

  /* 最下部のCTA */
  .l-header__nav .nav-cta {
    display: block; text-align: center; margin-top: 12px;
    background: var(--yellow); color: var(--navy);
    font-weight: 900; border-radius: 3px; border-bottom: 0;
  }
  .l-header__nav .nav-cta:hover { background: #ffd633; color: var(--navy); padding-left: 4px; }
  /* ドロワー内の資料請求: 白枠アウトラインで、黄色の予約ボタンを主役のまま並べる */
  .l-header__nav .nav-cta--request {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255, 255, 255, .75);
    margin-top: 20px;
  }
  .l-header__nav .nav-cta--request:hover { background: var(--white); color: var(--navy); padding-left: 4px; }
  /* 資料請求と学校見学が並ぶときは間隔を詰める */
  .l-header__nav .nav-cta--request + .nav-cta--request { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .l-header__nav, .l-drawer-overlay,
  .l-header__toggle::before, .l-header__toggle::after { transition: none; }
}
@media (max-width: 420px) {
  .l-header__inner { gap: 8px; }
  .l-header__logo img { width: 150px; }
  .l-header__sub { font-size: 9px; white-space: nowrap; }
  /* margin-left は auto のまま維持する(数値にするとハンバーガーが右端に寄らなくなる) */
  .l-header__actions { gap: 8px; margin-left: auto; }
  .l-header__sns { width: 36px; height: 36px; }
  .l-header__cta { font-size: 13px; padding: 9px 14px; }
}
@media (max-width: 369px) {
  .l-header__sub { display: none; }
  .l-header__cta { font-size: 12px; padding: 8px 12px; }
}

/* ---------- buttons ---------- */
.c-btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 900; border-radius: 999px; padding: 14px 32px;
  font-size: 16px; line-height: 1.4; border: 0; cursor: pointer;
  font-family: var(--font-ja);
  transition: transform .15s, box-shadow .15s;
}
.c-btn--primary { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 #d3ab00; }
.c-btn--primary:hover { transform: translateY(2px); box-shadow: 0 2px 0 #d3ab00; }
.c-btn--ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.c-btn--ghost:hover { background: rgba(255,255,255,.15); }
.c-btn--outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.c-btn--outline:hover { background: var(--navy); color: var(--white); }
.c-btn--lg { padding: 18px 48px; font-size: 18px; }

/* ---------- heading ---------- */
.c-heading { text-align: center; margin: 0 0 48px; }
.c-heading__en {
  display: block; font-family: var(--font-en); font-weight: 800;
  color: var(--blue); letter-spacing: .18em; font-size: 14px;
}
.c-heading__ja {
  margin: 6px 0 0; font-size: clamp(22px, 3.4vw, 32px); font-weight: 900;
  color: var(--navy); line-height: 1.5;
}
.c-heading__ja::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--yellow); margin: 14px auto 0;
}
.c-heading__lead { margin: 14px 0 0; font-size: 15px; } /* 本文はFAQ回答と同じ15px(SP14px)に統一 */
.c-heading--left { text-align: left; margin-bottom: 0; }
.c-heading--left .c-heading__ja::after { margin-left: 0; }
.c-heading--left .c-heading__lead { max-width: 40em; }

/* 濃紺背景＋グラデーション見出し */
/* 円周を回る SCROLL DOWN */
.c-scrolldown {
  position: relative; display: grid; place-items: center;
  width: 118px; height: 118px; margin: 36px auto 0;
  color: inherit; text-decoration: none; border-radius: 50%;
}
.c-scrolldown:hover .c-scrolldown__arrow { color: var(--yellow); }
.c-scrolldown:focus-visible { outline: 2px solid var(--white); outline-offset: 6px; }
.c-scrolldown__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: scroll-spin 16s linear infinite;
}
.c-scrolldown__ring text {
  font-family: var(--font-en); font-weight: 600;
  fill: rgba(255, 255, 255, .82);
}
.c-scrolldown__arrow {
  width: 26px; height: 26px; color: var(--white);
  animation: scroll-bob 2s ease-in-out infinite;
}
@keyframes scroll-spin { to { transform: rotate(360deg); } }
@keyframes scroll-bob {
  0%, 100% { transform: translateY(-4px); opacity: .55; }
  50%      { transform: translateY(4px);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .c-scrolldown__ring, .c-scrolldown__arrow { animation: none; }
}

/* 見出しは帯の中で上寄せ(ギャラリーに対して中央だと下がりすぎるため) */
.p-feature-head > .c-heading { align-self: start; margin-top: 40px; }
.c-heading--onnavy .c-heading__en { color: #c3ebe4; }
.c-heading--onnavy .c-heading__lead { color: var(--white); }
.c-heading__ja--grad {
  width: fit-content; max-width: 100%;
  font-size: clamp(24px, 3.6vw, 40px); letter-spacing: .04em;
  color: var(--white);
}
.c-heading__ja--grad::after { content: none; }
.c-gradline {
  display: block; width: fit-content; max-width: 100%;
  position: relative; padding-bottom: 14px; margin-bottom: 12px;
  color: var(--white); /* グラデが使えない環境でも読めるように白で表示 */
}
/* グラデ文字は「文字を直接持つ要素」に指定する。
   親の h2 に background-clip:text を付けると iOS Safari で文字が消える */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .c-gradline {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  /* 下線は別要素なので通常どおり塗る */
  .c-gradline::after { -webkit-text-fill-color: initial; }
}
.c-gradline:last-child { margin-bottom: 0; }
.c-gradline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--grad);
}
.c-heading--onphoto .c-heading__en,
.c-heading--onphoto .c-heading__ja,
.c-heading--onphoto .c-heading__lead { color: var(--white); }

/* ---------- hero ---------- */
.p-hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, #59a8dd 0%, #7ec3ea 45%, #a5d8f2 100%);
  padding: 48px 0 64px;
  position: relative;
  overflow: hidden;
}
.p-hero::after {
  /* 次セクション(濃紺)へ斜めにつなぐ */
  content: ""; position: absolute; inset: auto 0 0 0; height: 60px;
  background: var(--deep);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 80%); /* 右へ48px上がる */
  z-index: 2;
}
.p-hero__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px; align-items: center;
}
.p-hero__en {
  margin: 0; font-family: var(--font-en); font-weight: 900;
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.05;
  color: var(--navy); letter-spacing: .02em;
}
.p-hero__catch {
  margin: 14px 0 0; font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 900; color: var(--white);
  text-shadow: 0 2px 10px rgba(29,32,136,.25);
}
.p-hero__date {
  display: inline-flex; align-items: baseline; gap: 12px;
  background: var(--white); border-radius: var(--radius);
  padding: 10px 20px; margin-top: 18px; box-shadow: var(--shadow);
}
.p-hero__year { font-family: var(--font-en); font-weight: 800; color: var(--blue); font-size: 18px; }
.p-hero__day { font-family: var(--font-en); font-weight: 900; color: var(--navy); font-size: 44px; line-height: 1; }
.p-hero__day small { font-size: 26px; }
.p-hero__dow {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; margin-left: 6px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); font-size: 14px; font-weight: 900;
  transform: translateY(-6px);
}
.p-hero__time { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.p-hero__time small { font-weight: 500; color: #667; }
.p-hero__next {
  align-self: center;
  background: var(--blue); color: var(--white);
  font-size: 12px; font-weight: 900; line-height: 1;
  border-radius: 6px; padding: 5px 8px;
}
.p-hero__next[hidden] { display: none; }
/* 開催日程リスト(is-next=次回・is-past=終了は main.js が付ける) */
.p-hero__dates { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.p-hero__dates li {
  background: rgba(255, 255, 255, .92); color: var(--navy);
  font-family: var(--font-en); font-size: 14px; font-weight: 800;
  border-radius: 999px; padding: 5px 13px;
}
.p-hero__dates li small { font-size: 11px; font-weight: 700; margin-left: 4px; color: var(--blue); }
.p-hero__dates li.is-next { background: var(--navy); color: var(--white); }
.p-hero__dates li.is-next small { color: var(--yellow); }
.p-hero__dates li.is-past {
  background: rgba(255, 255, 255, .4); color: #7a7f99;
  text-decoration: line-through;
}
.p-hero__dates li.is-past small { color: #9aa; text-decoration: none; }
.p-hero__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.p-hero__tags li {
  background: var(--navy); color: var(--white); font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 4px 12px;
}
.p-hero__countdown {
  margin-top: 14px; color: var(--navy); font-weight: 700; font-size: 14px;
}
.p-hero__countdown strong {
  font-family: var(--font-en); font-size: 34px; margin: 0 6px; color: var(--white);
  text-shadow: 0 2px 8px rgba(29,32,136,.35);
}
.p-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.p-hero__visual { position: relative; perspective: 1400px; }
.p-hero__img { position: relative; margin: 0; }
.p-hero__img img { border-radius: var(--radius); box-shadow: var(--shadow); }
/* PCのスライドショー: 真ん中(縦軸)を軸にくるっと回転して次の画像へ。
   1枚目で高さを確保し、2枚目以降を重ねる(切替は横向きになった瞬間にJSが行う) */
.p-hero__img.has-slides {
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .5s ease-in;
}
.p-hero__img.is-returning { transition-timing-function: ease-out; }
.p-hero__slide { opacity: 0; }
.p-hero__slide:not(:first-child) {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.p-hero__slide.is-active { opacity: 1; }
/* 左右の送りボタン */
.p-hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(29, 32, 136, .85); color: var(--white); font-size: 26px; line-height: 1;
  display: grid; place-items: center; padding: 0 0 4px; z-index: 2;
}
.p-hero__arrow:hover { background: var(--navy); }
.p-hero__arrow--prev { left: -14px; }
.p-hero__arrow--next { right: -14px; }
/* スマホ: ヒーロー右側に縦長パネルを重ねて2枚目以降の写真を自動フェード(PCでは非表示)。
   テキストが上(前面)・画像が下(背面)になるよう、コピー全体より低いz-indexで敷く */
.p-hero__sp-slides { display: none; }
@media (max-width: 820px) {
  .p-hero__arrow { display: none; }
  .p-hero__visual { position: static; perspective: none; }
  .p-hero__copy { position: relative; z-index: 1; }
  .p-hero__sp-slides {
    display: block;
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(46%, 250px);
    z-index: 0;
  }
  .p-hero__sp-half { position: absolute; inset: 0; }
  .p-hero__sp-half img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    border-radius: 12px; box-shadow: var(--shadow);
    opacity: 0; transition: opacity 1.2s ease;
  }
  .p-hero__sp-half img.is-active { opacity: 1; }
}
@media (max-width: 820px) {
  .p-hero__inner { grid-template-columns: 1fr; }
  /* SPではキービジュアルをコピーの背景に敷く(文字が競合しないようぼかす) */
  .p-hero::before {
    content: "";
    position: absolute; inset: -8px;
    background: url("../img/hero_pc.png") 30% 80% / cover no-repeat;
    filter: blur(9px);
    opacity: .45;
    z-index: 0;
  }
  .p-hero__inner { position: relative; z-index: 1; }
  .p-hero__img { display: none; }
}
/* 極小幅で日付カードが折り返さないよう詰める */
@media (max-width: 369px) {
  .p-hero__date { gap: 8px; padding: 10px 14px; }
  .p-hero__day { font-size: 36px; }
  .p-hero__day small { font-size: 22px; }
  .p-hero__time { font-size: 12px; }
}

/* ---------- feature head + 縦スクロールギャラリー ---------- */
.p-feature-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(34vw, 460px);
  gap: 40px;
  align-items: center;
  /* 左は l-container と揃え、右はビューポート端まで抜く */
  padding-left: max(20px, calc((100% - var(--container-w)) / 2));
  padding-top: 56px; padding-bottom: 56px;
  background: var(--deep);
  overflow: hidden;
  position: relative;
}
/* 下端も上端(.p-hero::after)と同じ角度で右上がりに切る */
.p-feature-head::after {
  content: ""; position: absolute; inset: auto 0 -3px 0; height: 63px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 76.2%); /* 上端と同じ48px上がり */
}
.p-vscroll {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  height: 420px; margin-top: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
}
.p-vscroll__col { overflow: hidden; }
.p-vscroll__track {
  display: grid; gap: 12px;
  animation: vscroll 44s linear infinite;
  will-change: transform;
}
.p-vscroll__col:nth-child(2) .p-vscroll__track { animation-duration: 52s; animation-direction: reverse; }
.p-vscroll__col:nth-child(3) .p-vscroll__track { animation-duration: 60s; }
.p-vscroll__track img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 12px; box-shadow: var(--shadow);
}
/* 1セット分ちょうど流すため、gap の半分だけ余分に動かす */
@keyframes vscroll {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-50% - 6px)); }
}
@media (max-width: 1023px) {
  .p-feature-head {
    grid-template-columns: 1fr; gap: 28px;
    padding-left: 20px; padding-right: 20px; margin-bottom: 48px;
  }
  .c-heading--left { text-align: center; }
  .c-heading--left .c-heading__ja::after { margin-left: auto; }
  .c-heading__ja--grad, .c-gradline { margin-left: auto; margin-right: auto; }
  .p-feature-head > .c-heading { align-self: auto; margin-top: 0; }
  .c-scrolldown { margin-inline: auto; }
  /* SPでは見出しより上にギャラリーを置く */
  .p-vscroll { order: -1; height: 300px; margin-top: -60px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-vscroll__track { animation: none; }
}

/* ---------- feature ---------- */
.p-feature { display: grid; gap: 32px; }
.p-feature__item {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px; align-items: center;
  padding: 40px 36px;
  border-radius: 28px;
}
/* 01 は右端まで、03 は左端まで背景を伸ばす(内容はコンテナ内に保つ) */
.p-feature__item:nth-child(1) {
  margin-right: calc(50% - 50vw);
  padding-right: calc(50vw - 50% + 36px);
  border-radius: 28px 0 0 28px;
}
.p-feature__item:nth-child(3) {
  margin-left: calc(50% - 50vw);
  padding-left: calc(50vw - 50% + 36px);
  border-radius: 0 28px 28px 0;
}
/* 01・03 を濃紺のベタ塗り矩形＋大きな透かし文字に */
.p-feature__item:nth-child(odd) {
  color: var(--white);
  background-color: var(--navy);
  background-image: var(--kist-watermark);
  background-repeat: repeat;
  background-size: 820px 820px; /* カードは背が低いのでタイルを縮めて散らし感を出す */
}
.p-feature__item:nth-child(odd) .p-feature__num { color: rgba(255, 255, 255, .55); }
.p-feature__item:nth-child(odd) .p-feature__title { color: var(--white); }
/* 濃い地の上では黄色のマーカーを下線に変える */
.p-feature__item:nth-child(odd) .u-marker {
  background: linear-gradient(transparent 86%, var(--yellow) 86%);
}
.p-feature__item.is-reverse .p-feature__img { order: 2; }
.p-feature__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.p-feature__num {
  font-family: var(--font-en); font-weight: 800; font-size: 40px;
  color: var(--sky); line-height: 1;
}
.p-feature__title {
  margin: 6px 0 12px; font-size: clamp(19px, 2.4vw, 24px);
  color: var(--navy); font-weight: 900;
}
.p-feature__body p { margin: 0; }
@media (max-width: 720px) {
  .p-feature__item,
  .p-feature__item.is-reverse { grid-template-columns: 1fr; gap: 16px; }
  .p-feature__item.is-reverse .p-feature__img { order: 0; }
}

/* ---------- schedule ---------- */
.p-schedule {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px 20px; /* 下にはみ出すキャラクターの分、行間を広めに */
}
/* 上下2ブロック構成：上=時間／下=内容＋キャラクター */
.p-schedule__item { display: flex; flex-direction: column; gap: 10px; }
.p-schedule__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--white); border-radius: var(--radius);
  padding: 12px 20px; box-shadow: var(--shadow);
}
.p-schedule__time {
  font-family: var(--font-en); font-weight: 800; font-size: 19px;
  color: var(--cat, var(--blue)); letter-spacing: .01em; white-space: nowrap;
}
.p-schedule__num {
  font-family: var(--font-en); font-weight: 800; font-size: 30px; line-height: 1;
  color: var(--cat, var(--blue));
}
@supports (-webkit-text-stroke: 2px currentColor) {
  .p-schedule__num { -webkit-text-stroke: 2px var(--cat, var(--blue)); color: transparent; }
}
.p-schedule__body {
  position: relative; flex: 1;
  background: var(--white); border-radius: var(--radius);
  padding: 22px 22px 106px; box-shadow: var(--shadow);
}
.p-schedule__title { margin: 0; font-size: 20px; color: var(--navy); line-height: 1.4; }
.p-schedule__item p { margin: 0; font-size: 14px; }
/* キャラクターはカードに重ねて置き、下に少しはみ出させる */
.p-schedule__chara {
  position: absolute; right: 12px; bottom: -12px; margin: 0;
  pointer-events: none; z-index: 1;
}
.p-schedule__chara img {
  height: 106px; width: auto; display: block;
  filter: drop-shadow(0 6px 14px rgba(29, 32, 136, .18));
  transform-origin: 50% 100%;
  animation: chara-bob 2.6s ease-in-out infinite;
}
/* カードごとに動きとタイミングをずらして単調にならないように */
.p-schedule__item:nth-child(2) .p-schedule__chara img { animation-duration: 3.1s; animation-delay: .4s; }
.p-schedule__item:nth-child(3) .p-schedule__chara img { animation-name: chara-sway; animation-duration: 3.4s; }
.p-schedule__item:nth-child(4) .p-schedule__chara img { animation-name: chara-sway; animation-duration: 2.9s; animation-delay: .6s; }
@keyframes chara-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes chara-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .p-schedule__chara img { animation: none; }
}
/* SPはカードを「左=タイトル／右=キャラ」の横並びにして下の余白を詰める */
@media (max-width: 767px) {
  .p-schedule__body {
    display: flex; align-items: center;
    padding: 16px 112px 16px 20px; min-height: 104px;
  }
  .p-schedule__chara { right: 14px; bottom: -10px; }
  .p-schedule__chara img { height: 94px; }
}
.p-schedule__note { text-align: center; font-size: 15px; color: #556; margin: 28px 0 0; }

/* ---------- course ---------- */
.p-course-wrap {
  display: flex; align-items: center; justify-content: center; gap: 28px;
}
.p-course__mascot { width: auto; height: 160px; flex-shrink: 0; }
.p-course {
  list-style: none; padding: 0; margin: 0;
  /* 3列×2段。fit-content と 1fr の組合せで全ラベルを最長のものに合わせる */
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 14px; /* 縦は広めに */
  width: fit-content; max-width: 100%;
}
.p-course li {
  background: var(--cat, var(--blue)); color: var(--white);
  font-weight: 900; border-radius: 999px; padding: 13px 26px; font-size: 17px;
  box-shadow: 0 3px 10px rgba(29, 32, 136, .12);
  white-space: nowrap;
  display: grid; place-items: center; /* 幅を揃えたときに文字を中央へ */
}
@media (max-width: 860px) {
  .p-course-wrap { gap: 18px; }
  .p-course__mascot { height: 140px; }
  /* 幅を確定させないと 1fr が列ごとの内容幅に寄って不揃いになる */
  .p-course { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; width: 100%; } /* 2列×3段。縦は広めに */
  .p-course li { font-size: 15px; padding: 11px 20px; }
}
@media (max-width: 560px) {
  /* SPはキャラクターを学科の上に */
  .p-course-wrap { flex-direction: column; gap: 16px; }
  .p-course__mascot { height: 150px; }
  .p-course li { font-size: 14px; padding: 11px 12px; }
}

/* ---------- 学科カード(6学科ぶんを一覧表示) ---------- */
.p-course-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 26px; margin-top: 56px;
}
@media (max-width: 900px) { .p-course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; margin-top: 40px; } }
@media (max-width: 600px) { .p-course-cards { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

.p-course-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); border-top: 5px solid var(--cat, var(--blue));
}
.p-course-card__photo {
  margin: 0; aspect-ratio: 4 / 3; background: #eef2f7;
}
.p-course-card__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.p-course-card__body {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px; padding: 16px 18px 20px;
}
.p-course-card__label {
  background: var(--cat, var(--blue)); color: var(--white);
  font-size: 12px; font-weight: 900; letter-spacing: .08em;
  border-radius: 999px; padding: 5px 15px;
}
.p-course-card__title { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.75; }
.p-course-card__desc { margin: 0; font-size: 15px; line-height: 1.8; color: #445; }
.p-course-card__title span {
  color: var(--ink);
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--cat, var(--blue)) 30%, transparent) 68%);
  padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.p-course-card__tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0;
}
.p-course-card__tags li {
  border: 2px solid var(--cat, var(--blue)); color: var(--cat, var(--blue)); background: var(--white);
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 11px;
}
/* 参加者の声: 複数件あればJSがふわっと切り替える。カードの一番下に寄せる */
.p-course-card__voice {
  width: 100%; margin-top: auto; padding: 11px 14px;
  background: color-mix(in srgb, var(--cat, var(--blue)) 8%, var(--white));
  border-left: 3px solid var(--cat, var(--blue)); border-radius: 0 10px 10px 0;
}
.p-course-card__voice-label {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--cat, var(--blue));
}
.p-course-card__voice-label svg {
  width: 15px; height: 15px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round;
}
.p-course-card__voice-text {
  margin: 5px 0 0; min-height: 3.5em;
  font-size: 15px; line-height: 1.75; color: #445;
  transition: opacity .6s ease;
}
.p-course-card__voice-text.is-fading { opacity: 0; }

/* ---------- FAQ ---------- */
.p-faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.p-faq__item {
  background: var(--sky-pale); border-radius: 14px;
  border: 1px solid #dbe9f4;
}
.p-faq__item[open] { background: var(--white); box-shadow: var(--shadow); }
.p-faq__q {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px;
  padding: 18px 20px;
  font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.6;
}
.p-faq__q::-webkit-details-marker { display: none; }
.p-faq__q::before {
  content: "Q"; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-en); font-size: 15px; font-weight: 800;
}
/* 開閉のプラス／マイナス */
.p-faq__q::after {
  content: ""; width: 16px; height: 16px; margin-top: 6px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat;
  transition: transform .2s;
}
.p-faq__item[open] .p-faq__q::after {
  background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat;
  transform: rotate(180deg);
}
.p-faq__q:hover { color: var(--blue); }
.p-faq__q:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; border-radius: 14px; }
.p-faq__a {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding: 0 20px 20px;
}
.p-faq__a::before {
  content: "A"; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
  font-family: var(--font-en); font-size: 15px; font-weight: 800;
}
.p-faq__a p { margin: 0; font-size: 15px; padding-top: 2px; }
@media (max-width: 560px) {
  .p-faq__q { font-size: 15px; padding: 15px 16px; gap: 10px; }
  .p-faq__a { padding: 0 16px 18px; gap: 10px; }
  .p-faq__a p { font-size: 14px; }
}

/* 本文テキストはFAQ回答と同じサイズ(PC15px/SP14px)に統一 */
@media (max-width: 560px) {
  .c-heading__lead,
  .p-schedule__note,
  .p-course-card__desc,
  .p-course-card__voice-text { font-size: 14px; }
}

/* ---------- event (WordPress版: 投稿カードの3列×2段グリッド。SPは2列×3段) ---------- */
.p-event {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px;
}
@media (max-width: 900px) { .p-event { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; } }
@media (max-width: 600px) {
  /* SPも2列を保ち、カード内を圧縮(ボタンは縦積み) */
  .p-event { gap: 18px 12px; }
  .p-event__card { padding: 10px 10px 14px; gap: 8px; }
  .p-event__title { font-size: 13px; }
  .p-event__dates { font-size: 11px; padding: 6px 9px; }
  .p-event__actions { flex-direction: column; gap: 6px; }
  .p-event__btn { justify-content: center; font-size: 12px; padding: 7px 10px; }
}
.p-event__card {
  min-width: 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 12px;
}
/* アイキャッチの枠。バナー素材の16:9に合わせている(推奨アップロード 1280x720)。
   比率が違う画像は object-fit: cover で左右または上下が切り取られる */
.p-event__thumb {
  display: block; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #d9dde3; text-decoration: none;
}
.p-event__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-event__title { margin: 0; font-size: 17px; line-height: 1.5; }
.p-event__title a { color: var(--ink); text-decoration: none; }
.p-event__title a:hover { color: var(--blue); }
.p-event__dates {
  margin: 0; background: var(--sky-pale); border-radius: 6px;
  padding: 8px 12px; font-size: 13px;
}
.p-event__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.p-event__btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 8px 18px;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.p-event__btn span { font-weight: 400; transform: translateY(-1px); }
.p-event__btn--ghost { background: var(--white); color: var(--ink); border: 2px solid #d5dae2; }
.p-event__btn--ghost:hover { border-color: var(--navy); }
.p-event__btn--fill { background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.p-event__btn--fill:hover { opacity: .85; }
/* 準備中カード(投稿が6件未満のときの埋め枠) */
.p-event__card--soon .p-event__thumb img { filter: grayscale(1); opacity: .45; }
.p-event__card--soon .p-event__title { color: #8a93a3; }
.p-event__card--soon .p-event__btn--ghost { color: #a3aab6; border-color: #e2e6ec; cursor: default; }
/* 一覧を見る(7件以上投稿があるときだけ表示) */
.p-event__more { text-align: center; margin-top: 34px; }
.p-event__more .c-btn span { font-weight: 400; margin-left: 6px; transform: translateY(-1px); }
/* 投稿一覧ページ(home.php)のページ送り */
.p-event-list__pagination { margin-top: 40px; }
.p-event-list__pagination .nav-links {
  display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap;
}
.p-event-list__pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px;
  padding: 0 8px; border-radius: 50%; text-decoration: none;
  font-weight: 700; color: var(--navy); background: var(--white);
  border: 2px solid #d5dae2;
}
.p-event-list__pagination .page-numbers:hover { border-color: var(--navy); }
.p-event-list__pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.p-event-list__pagination .page-numbers.dots { border: 0; background: transparent; }

/* ---------- single (WordPress版: 投稿詳細) ---------- */
.p-single__article {
  max-width: 760px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
}
.p-single__date { margin: 0 0 6px; font-size: 13px; color: #667; }
.p-single__title { margin: 0 0 18px; font-size: clamp(20px, 3vw, 28px); color: var(--navy); line-height: 1.5; }
.p-single__thumb { margin: 0 0 20px; text-align: center; }
.p-single__thumb img { max-width: 100%; height: auto; border-radius: 10px; }
.p-single__body { font-size: 15px; line-height: 1.9; }
.p-single__body img { max-width: 100%; height: auto; }
.p-single__body p { margin: 0 0 1em; }
/* ブロックエディタ(Gutenberg)で作った固定ページの本文が馴染むように */
.p-single__body h2 {
  margin: 2em 0 .8em; padding-bottom: 8px; font-size: 20px; color: var(--navy);
  border-bottom: 2px solid var(--sky-pale);
}
.p-single__body h3 { margin: 1.6em 0 .6em; font-size: 17px; color: var(--navy); }
.p-single__body ul, .p-single__body ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.p-single__body li { margin-bottom: .4em; }
.p-single__body a { color: var(--blue); }
.p-single__body blockquote {
  margin: 0 0 1.2em; padding: 12px 18px; background: var(--sky-pale); border-radius: 8px;
}
.p-single__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 14px; }
.p-single__body th, .p-single__body td { border: 1px solid #dbe4ee; padding: 8px 12px; text-align: left; }
.p-single__body th { background: var(--sky-pale); }
.p-single__body hr { border: 0; border-top: 1px solid #dbe4ee; margin: 2em 0; }
.p-single__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- voice ---------- */
.p-voice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.p-voice__card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 24px; text-align: center;
}
.p-voice__img {
  width: 120px; height: 120px; margin: 0 auto 14px;
  border-radius: 50%; overflow: hidden; border: 4px solid var(--sky-pale);
}
.p-voice__img img { width: 100%; height: 100%; object-fit: cover; }
.p-voice__name { margin: 0 0 10px; color: var(--navy); font-size: 17px; }
.p-voice__name small { display: block; font-size: 12px; color: #667; font-weight: 500; }
.p-voice__card p { margin: 0; font-size: 14px; text-align: left; }
.p-voice__movie { text-align: center; margin-top: 40px; }
@media (max-width: 820px) { .p-voice { grid-template-columns: 1fr; } }

/* ---------- reserve ---------- */
.p-reserve {
  padding: 72px 0;
  /* 魅力セクション(01・03)と同じ濃紺ベタ＋「Kist」透かしのあしらい */
  background-color: var(--navy);
  background-image: var(--kist-watermark);
  background-repeat: repeat;
}
/* SPはタイルを縮小して散らし感を保つ(等倍だと1語しか見えない) */
@media (max-width: 560px) {
  .p-reserve { background-size: 640px 640px; }
}
/* 予約以外の申込先ボタン(資料請求・学校見学) */
.p-reserve__alt { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 28px; }
.p-reserve__alt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255, 255, 255, .85); color: var(--white);
  border-radius: 999px; padding: 10px 24px; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background .2s, color .2s;
}
.p-reserve__alt-btn span { font-weight: 400; transform: translateY(-1px); }
.p-reserve__alt-btn:hover { background: var(--white); color: var(--navy); }

.p-form {
  max-width: 760px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow);
}
.p-form__group { margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }
.p-form__label {
  display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--navy);
}
.p-form__req {
  display: inline-block; background: #d94141; color: var(--white);
  font-size: 11px; font-weight: 700; border-radius: 4px;
  padding: 1px 8px; margin-left: 8px; vertical-align: 2px;
}
.p-form input[type="text"],
.p-form input[type="tel"],
.p-form input[type="email"],
.p-form select,
.p-form textarea {
  width: 100%; padding: 12px 14px; font-size: 16px;
  border: 2px solid #dbe4ee; border-radius: 10px;
  font-family: var(--font-ja); background: #fbfdff;
}
.p-form select { max-width: 280px; }
.p-form textarea { min-height: 110px; resize: vertical; }
.p-form input:focus,
.p-form select:focus,
.p-form textarea:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.p-form__input--short { max-width: 220px; }
/* チェックボックス群の下に添える「その他」記入欄 */
.p-form__followup { margin-top: 10px; }
.p-form__check { display: block; margin-top: 8px; font-size: 13px; }
.p-form__check--single { margin-top: 0; font-size: 15px; font-weight: 700; }
.p-form__options { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.p-form__options--column { flex-direction: column; gap: 8px; }
.p-form__options--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.p-form__options label { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.p-form__options input { accent-color: var(--blue); width: 18px; height: 18px; }
.p-form__hint { margin: 10px 0 0; font-size: 13px; color: #667; }
.p-form__conditional {
  background: var(--sky-pale); border-radius: 10px; padding: 16px 18px; margin-bottom: 22px;
}
.p-form__conditional .p-form__group:last-child { margin-bottom: 0; }
.p-form__submit { text-align: center; margin-top: 30px; }
.p-form__done {
  margin: 20px 0 0; text-align: center; font-weight: 700; color: #2c7a3f;
  background: #ecf8ef; border-radius: 10px; padding: 14px;
}
/* Contact Form 7 (WordPress版) のマークアップを静的版と同じ見た目にする */
.p-form .wpcf7-form-control-wrap { display: block; }
.p-form__options .wpcf7-form-control-wrap,
.p-form__options .wpcf7-radio,
.p-form__options .wpcf7-checkbox,
.p-form__check .wpcf7-form-control-wrap,
.p-form__check .wpcf7-checkbox { display: contents; }
.p-form .wpcf7-list-item { margin: 0; }
.p-form .wpcf7-list-item label { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.p-form .wpcf7-list-item input { accent-color: var(--blue); width: 18px; height: 18px; }
.p-form__check .wpcf7-list-item label { font-size: 13px; }
.p-form input[type="submit"].c-btn { border: 0; cursor: pointer; }
.p-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12px; color: #d94141; }
.p-form .wpcf7-response-output {
  margin: 20px 0 0; padding: 14px; border: 0; border-radius: 10px;
  text-align: center; font-weight: 700; background: #fdeeee; color: #d94141;
}
.p-form form.sent .wpcf7-response-output { background: #ecf8ef; color: #2c7a3f; }
.p-form .wpcf7-spinner { display: block; margin: 10px auto 0; }

/* ---------- access ---------- */
.p-access {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: start;
}
.p-access__logo { width: 320px; }
.p-access__addr { font-size: 14px; }
.p-access__tel a {
  font-family: var(--font-en); font-weight: 900; font-size: 34px;
  color: var(--navy); text-decoration: none;
}
.p-access__free {
  font-family: var(--font-ja); font-size: 12px; font-weight: 700; color: var(--white);
  background: var(--blue); border-radius: 4px; padding: 2px 8px;
  margin-right: 10px; vertical-align: 6px;
}
.p-access__hours { font-size: 13px; color: #556; margin-top: 4px; }
.p-access__links { margin-top: 18px; }
.p-access__sns { list-style: none; display: flex; gap: 14px; padding: 0; margin: 18px 0 0; }
.p-access__sns a {
  display: inline-block; font-weight: 700; font-size: 14px;
  color: var(--navy); text-decoration: none;
  border: 2px solid var(--navy); border-radius: 999px; padding: 6px 18px;
}
.p-access__sns a:hover { background: var(--navy); color: var(--white); }
.p-access__map iframe {
  width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 820px) { .p-access { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.l-footer {
  background: var(--navy); color: var(--white);
  text-align: center; font-size: 13px;
  /* CTA(59px) ＋ SNSバー(44px) の分を空ける */
  padding: 26px 16px calc(26px + var(--cta-h) + 44px);
}
.l-footer__links { margin: 0 0 10px; }
.l-footer__links a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.l-footer__links a:hover { opacity: .8; }
@media (min-width: 821px) { .l-footer { padding-bottom: 26px; } }

/* ---------- 右端固定 セクション送り ---------- */
/* 基本(SP)は右端の縦型 */
.l-pager {
  position: fixed; right: 6px; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; align-items: center;
  padding: 4px; border-radius: 21px;
  background: rgba(13, 13, 94, .9);
  /* 白地でも紺地でも輪郭が出るよう、内側に薄い縁を足す */
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.l-pager__btn {
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  background: transparent; border: 0; border-radius: 16px;
  color: var(--white); cursor: pointer;
  transition: background-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.l-pager__btn:hover { background: rgba(255, 255, 255, .16); }
.l-pager__btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: -3px; }
.l-pager__btn[disabled] { opacity: .3; cursor: default; }
.l-pager__btn[disabled]:hover { background: transparent; }
.l-pager__btn svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.l-pager__line { width: 16px; height: 1px; background: rgba(255, 255, 255, .25); margin: 2px 0; }
.l-pager__count {
  margin: 0; font-family: var(--font-en); font-size: 9px; font-weight: 700;
  color: rgba(255, 255, 255, .75); line-height: 1; letter-spacing: .04em;
}
.l-pager__slash { opacity: .5; margin: 0 1px; }

/* PCは画面下中央の横型 */
@media (min-width: 901px) {
  .l-pager {
    flex-direction: row;
    top: auto; bottom: 24px;
    left: auto; right: 24px;
    transform: none;
    padding: 5px 10px; border-radius: 26px;
  }
  .l-pager__btn { width: 40px; height: 40px; border-radius: 20px; }
  .l-pager__btn svg { width: 18px; height: 18px; transform: rotate(-90deg); }
  .l-pager__line { width: 1px; height: 20px; margin: 0 6px; }
  .l-pager__count { font-size: 11px; padding: 0 2px; }
}

/* ---------- 右端固定SNS ---------- */
.l-sns {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 90; display: grid; gap: 1px;
  background: #e3ecf3;
  border-radius: 12px 0 0 12px; overflow: hidden;
  box-shadow: -2px 0 14px rgba(29, 32, 136, .14);
}
.l-sns__btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--white); color: var(--navy);
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.l-sns__btn:hover { color: var(--white); }
.l-sns__btn.is-ig:hover { background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 55%, #6228d7 100%); }
.l-sns__btn.is-x:hover  { background: #000; }
.l-sns__btn.is-tt:hover { background: #010101; }
.l-sns__btn.is-yt:hover { background: #ff0000; }
.l-sns__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
@media (max-width: 900px) {
  /* SPは下部固定CTAの上に横並びで置く */
  .l-sns {
    top: auto; transform: none;
    left: 0; right: 0; bottom: var(--cta-h);
    grid-auto-flow: column; justify-content: center; gap: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
    border-top: 1px solid #e3ecf3;
    box-shadow: 0 -2px 10px rgba(29, 32, 136, .08);
  }
  .l-sns__btn { width: 60px; height: 44px; background: transparent; }
  .l-sns__btn svg { width: 19px; height: 19px; }
  .l-sns__btn.is-yt svg { width: 21px; height: 21px; }
}

/* ---------- SP fixed CTA ---------- */
.l-fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: none; gap: 1px; background: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
.l-fixed-cta a {
  flex: 1; text-align: center; padding: 16px 4px;
  font-weight: 900; font-size: 14px; text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 369px) { .l-fixed-cta a { font-size: 12px; } }
.l-fixed-cta__request { background: var(--white); color: var(--navy); }
.l-fixed-cta__reserve { background: var(--yellow); color: var(--navy); }
@media (max-width: 820px) { .l-fixed-cta { display: flex; } }

/* ---------- scroll reveal ---------- */
.js-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
}
