/* 下層ページ共通の追加パーツ（見学・説明会 / 入試・学費 / 卒業生の方 / お問い合わせ） */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-scroll table.deco-tb { background: #fff; }
.tbl-scroll table.deco-tb th { background: #eef4fb; }
.tbl-scroll table.deco-tb th, .tbl-scroll table.deco-tb td { line-height: 1.7; }
.tbl-scroll table.deco-tb ul:not(.note), .tbl-scroll table.deco-tb ol { padding-left: 1.3em; margin: 0; }
.tbl-scroll table.deco-tb ul:not(.note) { list-style: disc; }
.tbl-scroll table.deco-tb ul.note { margin: 0; }
.tbl-scroll table.deco-tb ol { list-style: decimal; }
.ttl-h4 { font-size: var(--fs-h4); margin: 0 0 8px; }
ul.note { list-style: none; padding: 0; /*font-size: .875rem;*/ }
ul.note li { position: relative; padding-left: 1.2em; }
ul.note li + li { margin-top: 4px; }
ul.note li::before { content: "※"; position: absolute; left: 0; }
.btn-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0 0 8px; }
.box ul.btn-list { padding-left: 0; list-style: none; }
.box .btn-list li + li { margin-top: 0; }
/* アコーディオン（学費・奨学金） */
.acc-list { display: grid; gap: 12px; }
.acc { background: #fff; border-radius: 20px; box-shadow: 0 0.5rem 1rem -0.5rem rgba(34,51,85,.2); padding: 0 22px; border: 1px solid var(--c-line); }
.acc summary { cursor: pointer; list-style: none; display: flex; align-items: center; padding: 16px 0; font-family: var(--ff-round); font-weight: 500; color: var(--c-navy); line-height: 1.6; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-left: auto; padding-left: .5em; font-size: 1.25rem; }
.acc[open] summary::after { content: "−"; }
.acc.is-closing summary::after { content: "+"; }
.acc__body { padding: 0 0 18px; font-size: .9375rem; line-height: 1.8; }
.acc__body p { margin: 0 0 .8em; }
.acc__body ul { list-style: disc; padding-left: 1.3em; }
.acc__body img { max-width: 100%; height: auto; }
/* お問い合わせフォーム */
.kk-form { max-width: 60rem; margin-inline: auto; }
.kk-form .wpcf7-form-control-wrap { display: block; }
.kk-form .wpcf7-not-valid-tip, .kk-form .kk-cf7-err { display: block; margin-top: 6px; color: #dc4340; font-size: .8125rem; }
.kk-form .wpcf7-spinner { display: none; }
.kk-form .wpcf7 form .wpcf7-response-output, .kk-form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid #f2b8c0; background: #fff0f2; color: #b02a3c; font-size: .875rem; }
.kk-form.is-sent .wpcf7-response-output, .wpcf7 form.sent .wpcf7-response-output { display: none; }
.kk-form input[type=submit].btn-pill { cursor: pointer; font: inherit; border: 0; }
.kk-form .req, .kk-form .opt { display: inline-block; margin-right: .6em; padding: .1em .75em; border-radius: 999px; background: #dc4340; color: #fff; font-size: .75rem; font-weight: 500; line-height: 1.6; vertical-align: .1em; }
.kk-form .opt { background: var(--c-sub); }
/* 表は横線のみ */
table.deco-tb.kk-form__tb { width: 100%; border: 0; border-collapse: collapse; background: none; }
table.deco-tb.kk-form__tb th, table.deco-tb.kk-form__tb td { border: 0; border-bottom: 1px solid var(--c-line); background: none; padding: 20px 12px; vertical-align: middle; }
table.deco-tb.kk-form__tb tr:first-child th, table.deco-tb.kk-form__tb tr:first-child td { border-top: 1px solid var(--c-line); }
table.deco-tb.kk-form__tb th { width: 26%; white-space: normal; text-align: left; font-weight: 500; }
.kk-form input[type=text], .kk-form input[type=tel], .kk-form input[type=email], .kk-form textarea {
  width: 100%; max-width: 560px; padding: 12px 14px; border: 1px solid #b8c3da; border-radius: 10px; background: #fff; font: inherit; color: inherit; box-sizing: border-box;
}
.kk-form textarea { max-width: 100%; resize: vertical; }
.kk-form input:focus, .kk-form textarea:focus { outline: 2px solid var(--c-yellow); outline-offset: 1px; border-color: var(--c-navy); }
.kk-form .is-error { border-color: #dc4340; background: #fff6f7; }
.kk-form__btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.kk-form__btns button { cursor: pointer; font: inherit; }
@media (max-width: 600px) {
  table.deco-tb.kk-form__tb, table.deco-tb.kk-form__tb tbody, table.deco-tb.kk-form__tb tr, table.deco-tb.kk-form__tb th, table.deco-tb.kk-form__tb td { display: block; width: 100%; box-sizing: border-box; }
  table.deco-tb.kk-form__tb th { border-bottom: 0; padding: 16px 0 4px; }
  table.deco-tb.kk-form__tb td { padding: 0 0 16px; }
  table.deco-tb.kk-form__tb tr:first-child th { border-top: 1px solid var(--c-line); }
  table.deco-tb.kk-form__tb tr:first-child td { border-top: 0; }
}

/* ---- 本文内のテキストリンク(ボタン類は除く) ---- */
:is(.page-sec .inner, .entry) a:not([class*="btn"]):not(.more):not(.footer__tel):not([href^="tel:"]):not(.news__list a):not(.nav-links a):not(.tab) {
  color: var(--c-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s, background-color .2s;
}
:is(.page-sec .inner, .entry) a:not([class*="btn"]):not(.more):not(.footer__tel):not([href^="tel:"]):not(.news__list a):not(.nav-links a):not(.tab):hover {
  color: var(--c-coral);
  background: rgba(255,211,60,.25);
}
:is(.page-sec .inner, .entry) a[target="_blank"]:not([class*="btn"]):not([href$=".pdf"])::after {
  content: "\2197"; display: inline-block; margin-left: .2em; font-size: .85em; text-decoration: none;
}

/* ページトップへ戻るボタン: 矢印を上向きに */
.btn-pagetop .arrow { transform: translateY(2px) rotate(-45deg); }

/* 色指定クラス(太字などに付ける: <strong class="orange">) */
.orange { color: var(--c-orange); }

/* お知らせ一覧: 背景の薄い青なし / PCは 日付・ラベル・タイトルを1列、下線なし */
.page-sec--plain { background: none; }
@media (min-width: 901px) {
  .page-sec--plain .news__list a {
    grid-template-columns: 5.6em 5.2em 1fr auto;
    grid-template-areas: "date label ttl arrow";
    column-gap: 10px; padding: 14px 4px;
  }
  .page-sec--plain .news__list .news__ttl { font-size: 1rem; }
  .page-sec--plain .news__list time { font-size: .875rem; }
  .page-sec--plain .news__list .label { justify-self: start; }
}
.page-sec--plain .news__list a, .page-sec--plain .news__list a:hover { text-decoration: none; }

/* お知らせ詳細の本文 */
.entry img { max-width: 100%; height: auto; display: block; margin: 1em auto; border-radius: 8px; }
.entry p { margin: 0 0 1em; }
.entry table { max-width: 100%; }
.entry ul:not(.note):not(.btn-list):not(.news__list) { list-style: disc; padding-left: 1.3em; }
.entry ul:not(.note):not(.btn-list):not(.news__list) li + li { margin-top: 4px; }

/* ページ送り: 円の中に数字(通常=透過グレー / 現在=黄色) */
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers {
  display: grid; place-items: center; width: 40px; aspect-ratio: 1; border-radius: 50%;
  background: rgba(20,48,107,.06); color: rgba(20,48,107,.7); font-size: .875rem; font-weight: 600; line-height: 1;
  mix-blend-mode: multiply; text-decoration: none; transition: background .2s, color .2s;
}
a.page-numbers:hover { background: rgba(20,48,107,.1); }
.nav-links .page-numbers.current { background: var(--c-yellow); color: var(--c-navy); mix-blend-mode: normal; box-shadow: 0 3px 10px -5px rgba(20,48,107,.12); }
.nav-links .page-numbers.dots { background: none; mix-blend-mode: normal; width: auto; aspect-ratio: auto; padding: 0 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* お知らせ(一覧・詳細)などの余白を詰める */
.page-hero--compact { padding-bottom: clamp(12px, 2vw, 24px); }
.page-hero--compact .sec-title { margin-bottom: 0; }
.page-sec--plain { /*padding-top: clamp(1.5rem, 5vw, 3rem);*/ position: relative; z-index:100; padding-top:0; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-sec--plain time { margin-right:0.5rem; }
/* お知らせ一覧のカテゴリータブ(リンク) */
a.tab { display: block; text-align: center; text-decoration: none; }
.page-sec--plain .tabs { margin-bottom: 16px; justify-content: flex-start; flex-wrap: wrap; }
.page-sec--plain .tab { flex: none; min-width: 7.5em; padding: 8px 20px; }

/* 校歌などの音声プレーヤー */
.history audio, audio.song { display: block; width: 100%; max-width: 420px; margin-top: 10px; }

/* CF7 の隠しフィールド用 fieldset: 線・余白なし(非表示) */
.kk-form fieldset, form.wpcf7-form fieldset.hidden-fields-container { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.kk-form [hidden] { display: none !important; }
/* CF7 のラッパーも kk-form と同じ幅に */
.wpcf7 { max-width: 60rem; margin-inline: auto; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; } /* 読み上げ専用: 画面上の余白を作らない(CF7標準CSSを使わないため) */
/* お知らせ詳細: 本文の先頭に余計な余白を入れない */
.entry > :first-child { margin-top: 0; }

/* 見出し(.box > h3)の先頭アイコン: <h3><i class="ph ph-xxx"></i>見出し</h3> */
.box > h3:not(.voice__name) > i.ph:first-child { display: inline-grid; place-items: center; width: 1.9em; aspect-ratio: 1; margin-right: .5em; border-radius: 50%; background: var(--c-sky); color: var(--c-blue); font-size: .95em; vertical-align: .05em; }

/* 注意事項ボックス: <div class="notice">…</div>（薄い黄色の背景で囲む） */
.notice { padding: clamp(16px, 2.5vw, 28px); border-radius: 20px; background: rgba(255, 211, 60, .18); }
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }
.notice p { margin: 0 0 .8em; }
/* 丸数字の自動番号(①②…⑩。11以降は通常の数字) */
@counter-style circled { system: fixed; symbols: ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩; suffix: " "; fallback: decimal; }
.notice__list { margin: 0 0 1em; padding-left: 1.6em; list-style: circled; }
.notice__list li + li { margin-top: 4px; }
.notice strong { color: var(--c-navy); }

/* 入試日程: 2列(区分 | 日程の一覧) */
table.deco-tb.tb-sched th { width: 14em; vertical-align: top; white-space: normal; }
.tb-sched .sched { display: grid; grid-template-columns: 8.5em 1fr; gap: 0; margin: 0; }
.tb-sched .sched dt, .tb-sched .sched dd { margin: 0; padding: 8px 0; border-top: 1px dashed var(--c-line-strong); }
.tb-sched .sched dt:first-of-type, .tb-sched .sched dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.tb-sched .sched dt:last-of-type, .tb-sched .sched dt:last-of-type + dd { padding-bottom: 0; }
.tb-sched .sched dt { font-family: var(--ff-round); font-weight: 500; color: var(--c-navy); }
@media (max-width: 600px) {
  table.deco-tb.tb-sched th { width: auto; }
  .tb-sched .sched { grid-template-columns: 1fr; }
  .tb-sched .sched dt { padding-bottom: 0; border-top: 1px dashed var(--c-line); }
  .tb-sched .sched dd { padding-top: 2px; border-top: 0; }
  .tb-sched .sched dt:first-of-type { border-top: 0; }
}

/* 来場順路マップ（マップ画像＋上下はテキスト） */
.map { margin:0; }
.map > h4 { margin: 0 0 14px; }
.map img { display: block; width: 100%; max-width: 640px; height: auto; margin-inline: auto; }
.map__note { margin: 14px auto 0; max-width: 640px; text-align: left; }
.map__note p { margin: 0 0 .4em; }

/* トップ以外のsec-title: 英語を上に小さく、下に日本語を大きく */
.page-sec .sec-title--en { flex-direction: column-reverse; }
.page-sec .sec-title--en .en { font-size: clamp(0.75rem, 1.6vw, 1rem); font-weight: 600; letter-spacing: .12em; line-height: 1.4; }
.page-sec .sec-title--en .ja { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 500; letter-spacing: .04em; line-height: 1.3; }
/* 電話番号を少し大きく: <a href="tel:..." class="tel-lg"> */
.tel-lg { font-size: 1.5em; font-weight: 500; letter-spacing: .04em; line-height: 1.4; }

/* 中ページ(.page-sec)のsec-title: 英語の頭に黄色い丸 */
.page-sec .sec-title--en .en { display: flex; align-items: center; gap: .5em; }
.page-sec .sec-title--en .en::before { content: ""; flex: none; width: .9em; aspect-ratio: 1; border-radius: 50%; background: var(--c-yellow); } /* ページ内の見出し: 黄色い丸 */

/* 404: キャラの頭がヘッダーに被らないよう、キャラが収まる高さを確保 */
.page-hero--404, .page-hero--chara { --chara-w: clamp(130px, 16vw, 230px); min-height: calc(var(--header-h) + var(--chara-w)); }
.page-hero--404 .chara, .page-hero--chara .chara { width: var(--chara-w); }
@media print, (max-width: 900px) {
  .page-hero--404, .page-hero--chara { --chara-w: min(32vw, 170px); }
}

/* 中ページのヘッダー(.page-hero): 上に小さく英語（頭に黄色い丸）、下に日本語を大きく */
.page-hero .sec-title--en { flex-direction: column-reverse; }
.page-hero .sec-title--en .en { display: flex; align-items: center; gap: .5em; font-size: clamp(0.75rem, 1.6vw, 1rem); font-weight: 600; letter-spacing: .12em; line-height: 1.4; }
.page-hero .sec-title--en .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) */
.page-hero .sec-title--en .ja { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 500; letter-spacing: .04em; line-height: 1.3; }

/* サイトマップ */
.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 48px); }
.sitemap__col { margin-bottom: 40px; min-width: 0; }
.sitemap__col .ttl-h3 a { text-decoration: none; }
@media (max-width: 1000px) { .sitemap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sitemap { grid-template-columns: 1fr; } }
.entry .sitemap a:hover { color: var(--c-blue) !important; background: none !important; }
.entry .sitemap .ttl-h3 a { color: inherit !important; text-decoration: none !important; }
.sitemap .ttl-h3 .ico { margin-right: .4em; font-size: 1em; vertical-align: -.1em; color: inherit; }

/* フォームのラジオ・チェックボックス（CF7） */
.kk-form .wpcf7-radio, .kk-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.kk-form .wpcf7-checkbox { flex-direction: column; gap: 10px; }
.kk-form .wpcf7-list-item { margin: 0; }
.kk-form .wpcf7-list-item label { display: inline-flex; align-items: center; gap: .5em; cursor: pointer; }
.kk-form input[type=radio], .kk-form input[type=checkbox] { width: 1.2em; height: 1.2em; margin: 0; accent-color: var(--c-navy); flex: none; }

/* フォームのあるページ(.has-form): 見出し(h1)の左端を .kk-form(60rem)に合わせる */
.has-form .page-hero .inner { width: min(60rem, 100% - 48px); }
