/* ==========================================================================
   style.css  (for static prototype / WP theme-ready)
   Depends on: reset.css
   ========================================================================== */

/* ========== Design Tokens ==========
   目的：色・余白・フォントを一元管理
==================================== */
:root {
  /* brand colors */
  --c-bg: #ffffff;
  --c-surface: #f5f7fb;
  --c-surface-2: #ecf2f8;
  --c-primary: #198BC4;
  /* AA (white text) */
  --c-primary-dark: #223F59;
  --c-accent: #7eb4cf;
  --c-background: #abbfdb;
  --c-attention: #aa1e1e;
  /* notice tag */
  --c-text: #051524;
  /* main text */
  --c-text-muted: #4b5563;
  --c-border: #e5e7eb;
  --c-outline: #1F7AE0;

  /* typography */
  --ff-base: "Noto Sans JP", sans-serif;
  --fs-root: 16px;
  --lh-base: 1.7;

  /* spacing */
  --sp-2: 4px;
  --sp-3: 8px;
  --sp-4: 12px;
  --sp-5: 16px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 48px;
  --sp-9: 64px;

  /* radius & shadow */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-2: 0 6px 16px rgba(0, 0, 0, 0.5);

}


/* ========== Base Layout ========== */
html {
  font-size: var(--fs-root);
}

body {
  color: var(--c-text);
  background: var(--c-bg);
  font-family: var(--ff-base);
  line-height: var(--lh-base);
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Utilities */
.text-center,
.textCenter,
.center {
  text-align: center !important;
}

.mt-6 {
  margin-top: var(--sp-6) !important;
}

.mt-7 {
  margin-top: var(--sp-7) !important;
}

.mb-6 {
  margin-bottom: var(--sp-6) !important;
}

.mb-7 {
  margin-bottom: var(--sp-7) !important;
}

.right {
  text-align: right !important;
}

.left {
  text-align: left !important;
}

.justyfy-center {
  justify-content: center !important;
}

.bg-blue {
  background-color: var(--c-primary);
  color: white;
  text-align: center;
}

.bg-white {
  color: var(--c-primary);
  background-color: white;
  text-align: center;
}

.color-blue {
  color: var(--c-primary);
}

.color-red {
  color: var(--c-attention);
}

.btn:hover {
  text-decoration: none !important;
}

.bold,
.textBold {
  font-weight: bold;
}

/* -------------------------------------
   基本フォント設定
-------------------------------------- */
html {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  font-feature-settings: "palt";
}

/* -------------------------------------
   ウェイト
-------------------------------------- */
/* 通常本文 */
body {
  font-weight: 400;
}

/* 見出し・ナビ・強調 */
h1,
h2,
h3,
h4,
h5,
h6,
strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 中間トーン（サブタイトル・ボタンなど） */
nav a,
button {
  font-weight: 500;
}

.hero-title,
.page-title {
  font-weight: 900;
  letter-spacing: 0.03em;
}

/* 小さめ文字 */
small,
.note {
  font-size: 0.875rem !important;
  line-height: 1.6;
}

/* ========== Header ========== */
.site-header {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  padding: var(--sp-6);
}


.site-logo {
  font-weight: 700;
  line-height: 1.4;
}

.site-logo a {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.site-logo a:hover {
  text-decoration: none;
}

.site-logo img {
  width: auto;
  max-width: 100%;
  width: 67px;
}

.site-logo .en {
  font-weight: 500;
  font-size: 90%;
  line-height: 1.2;
  display: block;
  margin-top: .2rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-link {
  display: flex;
  gap: var(--sp-4);
}

.header-link a {
  display: flex;
  justify-content: center;
  width: 130px;
  align-items: center;
}

.header-link a:hover {
  text-decoration: none;
}

.header-link .bg-blue {
  border: solid 1px #087A52;
}

.header-link .bg-white {
  border: solid 1px var(--c-primary-dark);
}

.global-nav {
  width: 100%;
  border: solid 3px var(--c-primary);
  margin-top: var(--sp-4);
}

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2.2vw, 24px);
  align-items: stretch;
  height: 100%;
  justify-content: space-around;
}

.global-nav a {
  color: var(--c-text);
  font-weight: 700;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.global-nav a:hover {
  color: var(--c-primary);
}

.global-nav-parent {
  position: relative;
}

.global-nav-parent.active>.child {
  display: flex !important;
}

.global-nav-parent.active>a {
  color: var(--c-primary);
  text-decoration: none;
}

.global-nav .child {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  background-color: var(--c-surface);
  height: auto;
  gap: 0;
  width: 300px;
  flex-direction: column;
  flex-wrap: nowrap;
  border: solid 2px var(--c-primary);
  z-index: 2;
  box-shadow: var(--shadow-1);
}

.global-nav .child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15px;
  border-style: solid;
  border-width: 0 10px 20px 10px;
  border-color: transparent transparent var(--c-primary);
  translate: 0% -90%;
  filter: drop-shadow(0 -3px 0 var(--c-primary));
}

.global-nav .child .head a {
  background-color: var(--c-primary);
  color: white;
}

.global-nav .child li a {
  background-color: var(--c-surface);
  font-size: 1rem;
  border-radius: 0;
  padding: var(--sp-3);
  font-weight: 500;
  padding-left: 1em;
}

.global-nav .child li a::before {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-color: var(--c-primary);
  display: inline-block;
  content: '';
}

#hamburger-btn {
  display: none;
}

/* ========== Hero (Key Visual) ========== */
.hero {
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.key-visual {
  position: relative;
  overflow: hidden;
}

.key-visual .img {
  aspect-ratio: 8 / 3;
  height: 100%;
}

.key-visual img {
  object-fit: cover;
  width: 100%;
  object-position: top;
  height: 100%;
}

.key-visual .img.is-active {
  opacity: 1;
  z-index: 1;
}

/* ========== Section Generic ========== */
section {
  padding: var(--sp-8) 0;
}

.section-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--c-primary);
  margin-bottom: var(--sp-6);
}

/* ========== News Section ========== */
.news-section {
  background: transparent;
  padding-top: 0;
  margin-top: -10%;
  width: 100%;
}

/* slider */

.slider {
  max-width: 88%;
  width: 450px;
}

.slider-content {
  aspect-ratio: 2 / 1;
  display: block;
  height: 100%;
  border: solid 1px var(--c-primary);
  width: 450px;
  max-width: 100%;
  background-color: #fff;
  padding: var(--sp-6);
}

.slider-content:has(a) {
  padding: 0;
}

.slider-content a {
  height: 100%;
  padding: var(--sp-6);
  display: block;
  background-color: #fff;
}


.slider-content a:hover {
  text-decoration: none;
}

.slider-sub-title {
  display: inline-block;
  background-color: var(--c-primary-dark);
  color: #fff;
  font-size: 85%;
  padding: 0 var(--sp-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45ch;
}

.slider-title {
  color: var(--c-primary-dark);
  font-weight: 700;
  margin-top: var(--sp-3);
  border-bottom: solid 1px var(--c-background);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  text-overflow: ellipsis;
}


.slider-controls {
  text-align: center;
  margin-top: var(--sp-3);
}

.slider-controls button {
  width: 60px;
  height: 30px;
}

.slick-dots {
  display: flex !important;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 40px;
}

.slick-dots li {
  width: 12px;
  height: 12px;
}

.slick-dots li button {
  font-size: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.slick-dots li.slick-active button {
  background: var(--c-primary);
}

.news-inner {
  position: relative;
  z-index: 1;
  padding: var(--sp-6);
  background-color: #fff;
  border: solid 1px var(--c-primary);
}

.news-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

.news-tabs button {
  padding: 8px 12px;
  color: var(--c-primary);
  font-weight: 500;
}


.news-tabs .active:hover {
  text-decoration: none;
}


.news-tabs .active {
  border-bottom: solid 3px var(--c-primary);
  cursor: default;
}

.news-list {
  display: grid;
  margin-bottom: var(--sp-5);
}

.news-list li {
  display: grid;
  grid-template-columns: 120px 80px 1fr auto;
  align-items: start;
  gap: var(--sp-5);
  padding: 6px 12px;
  /* border-bottom: 1px solid var(--c-border); */
}

.news-list time {
  color: var(--c-text-muted);
  white-space: nowrap;
}

.news-list .category {
  padding: 2px 0;
  /* border: 1px solid var(--c-border); */
  font-size: 80%;
  text-align: center;
  white-space: nowrap;
}

.news-list a {
  color: blue;
  text-decoration: underline;
}

.news-list a:hover {
  color: var(--c-primary);
}

.badge {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  font-size: .85rem;
  margin-right: 8px;
  border: 1px solid var(--c-primary);
  background: #fff;
}

.badge:hover {
  text-decoration: none;
}

.news-list .badge {
  color: var(--c-primary);
}

/* ========== Education / CTA Cards ========== */

.education-section .container {
  display: flex;
  justify-content: center;
  gap: var(--sp-9);
}

.education-box {
  padding: var(--sp-6);
  width: 300px;
  box-shadow: var(--shadow-2);
  font-size: 1.2rem;
  font-weight: 700;
}

.education-box:hover {
  text-decoration: none;
}


/* icon */
.icon {
  width: 1.1em;
  height: 1em;
  vertical-align: middle;
  margin-left: .1rem;
  color: currentColor;
  text-decoration: underline;
}

.file-link:hover .icon {
  transform: translateY(-2px);
}

.ab-item .icon {
  display: none;
}

/* ========== banner  ========== */
.banner-section .container {
  padding: var(--sp-8);
}

.banner-grid {
  display: grid;
  gap: clamp(var(--sp-2), 2.2vw, var(--sp-8));
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
}

.banner-card {
  position: relative;
}

.banner-card .img {
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: flex;
  align-items: center;
  background-color: #fff;
  overflow: hidden;
}

.banner-card.no-img .img::before {
  content: none;
}

.banner-card .img::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff7c;
  z-index: 2;
}

.banner-card img {
  object-fit: cover;
  width: 100%;
}

.banner-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1rem, 2vw, 2.2rem);
  color: var(--c-text);
  z-index: 3;
  width: 100%;
  font-weight: 700;
}



/* ========== special section  ========== */
.special-section {
  padding-top: 0;
}

.special-section .container {
  max-width: 100%;
  padding: var(--sp-9) 0;
  background: #F6F9FC;
  border: solid 1px var(--c-primary);
  margin: auto;
  padding: var(--sp-8);
}

.special-grid {
  display: grid;
  gap: clamp(var(--sp-2), 2.2vw, var(--sp-8));
  grid-template-columns: 1fr 1fr 1fr;
}

.special-card {
  position: relative;
  background-color: var(--c-primary);
  color: #fff;
}

.special-card .img {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  width: 100%;
}

.special-card .img img {
  object-fit: cover;
  width: 100%;
}

.special-card svg,
.slider-content svg,
.link-list svg {
  display: none;
}

.special-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1rem, 2vw, 2.2rem);
  z-index: 3;
  font-weight: 700;
}

.btn-cpc {
  border: solid 2px var(--c-primary);
  color: var(--c-primary);
  font-weight: 700;
  font-size: 1.2rem;
  padding: var(--sp-6) var(--sp-8);
  display: inline-block;
  box-shadow: var(--shadow-2);
  background-color: #fff;
}

/* ========== Mascot Section ========== */

.mascot-section {
  padding-top: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.modal__dialog {
  position: relative;
  width: min(92vw, 640px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  padding: 20px 24px;
  outline: none;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__header h2 {
  text-align: center;
}

.modal__close {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  font-size: 20px;
}

.modal__body {
  display: flex;
}

.btn-modal {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  border: solid 1px var(--c-primary);
  background-color: #fff;
  padding: var(--sp-3) var(--sp-6);
  font-size: 1.2em;
  gap: var(--sp-3);
  font-weight: 500;
}

.modal__footer {
  margin-top: 12px;
  text-align: right;
}

.kerning {
  letter-spacing: .1em;
}

.btn-text,
.btn-text .note {
  line-height: 1.3;
  text-align: right;
}

/* link-section */

.link-section {
  padding: 0;
}

.link-list {
  display: flex;
  justify-content: space-between;
}

.link-list a {
  background-color: #fff;
  display: block;
}

.link-list img {
  height: 120px;
  max-width: 100%;
}

.link-list-right {
  display: flex;
  gap: var(--sp-3);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-8) 0 var(--sp-7);
  margin-top: var(--sp-8);
  position: relative;
}

.footer-inner {
  display: flex;
  gap: var(--sp-6);
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer address {
  font-size: .85rem;
}

.footer-title {
  font-weight: 700;
  font-size: 1.1em;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: var(--sp-6);
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer .copyright {
  opacity: .85;
  font-size: .75rem;
  margin-top: 8px;
}

.footer-link {
  display: flex;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.footer-link li {
  background-color: #fff;
}

.btn-footer {
  background-color: #fff;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
}

.page-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  display: none;
  background-color: var(--c-primary);
  color: white;
  padding: .5em;
  font-size: .9em;
}

.page-top a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: .2em;
  border-bottom: 0.7em solid white;
  border-left: 0.4em solid transparent;
  border-right: 0.4em solid transparent;
}

/*========== SUB PAGE ==========*/
.main-container-bg {
  background-image: linear-gradient(0deg, rgba(255, 254, 254, 1) 50%, #80d1fa);
  padding-top: var(--sp-6);
}

.main-container {
  margin: auto;
  width: 100%;
  max-width: calc(1200px + (var(--sp-7)*2));
  padding: var(--sp-7);
  background-color: #fff;
}

.page-contents {
  padding-top: 0;
}

.page-contents a {
  text-decoration: underline;
  color: blue;
}

.category-top {
  padding-top: var(--sp-4);
}

.subpage .category-top {
  padding-top: 0;
}

.grid-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(var(--sp-4), 2vw, var(--sp-6));
  align-items: stretch;
}

.grid-four {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  align-items: stretch;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  align-items: stretch;
}

.img-row {
  display: flex;
  gap: clamp(var(--sp-4), 2vw, var(--sp-6));
  align-items: stretch;
  flex-wrap: wrap;
}

.img-row img {
  height: 160px;
  width: auto;
  max-width: 100%;
  display: block;
}


/* 画像は比率維持で表示（トリミング・引き伸ばしなし） */
.page-contents .img-row img {
  height: 180px;
  width: fit-content;
  display: block;
  max-inline-size: 100%;
  flex: 1 1 180px;
  /* 1行に最大3つ、最小180pxで折り返し */
}

ol.grid-two img {
  max-width: 85%;
  margin: auto;
  text-align: center;
}

ol.grid-two li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.grid-two figure img,
.grid-three figure img,
.grid-four figure img {
  width: 100%;
}

.grid-two>.block,
.grid-three>.block,
.grid-four>.block {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.grid-two>.block figure,
.grid-three>.block figure,
.grid-four>.block figure {
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.grid-two>.block figure>img,
.grid-three>.block figure>img,
.grid-four>.block figure>img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.grid-four.trim-box {
  gap: var(--sp-6);
}

.trim-box img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.list-flex {
  display: flex;
  flex-wrap: wrap;
}

.list-flex li {
  width: 50%;
}



.left-small-box {
  grid-template-columns: 30% 1fr;
}

.float-box {
  overflow: auto;
  margin: var(--sp-6) 0;
}

.float-left {
  float: left;
  margin-right: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.float-right {
  float: right;
  margin-left: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.text-small {
  font-size: small;
}


.block .ph {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.block .ph img {
  width: 100%;
  max-width: initial;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-link-list a {
  display: block;
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: currentColor;
  border-left: solid 8px var(--c-primary);
  background-color: #fff;
}


.page-link-list .title {
  padding: var(--sp-6) var(--sp-3);
  font-size: clamp(.9rem, 2vw, 1.1rem);
  margin-bottom: 0;
  font-weight: 500;
}


.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.breadcrumbs li {
  position: relative;
  font-size: .9em;
}

.breadcrumbs li+li {
  padding-left: .7rem;
}

.breadcrumbs li+li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--c-text);
  transform: rotate(30deg) scale(.8);
}

.breadcrumbs li a {
  color: var(--c-text-muted);
  font-weight: 400;
}

.breadcrumbs li:last-child {
  font-weight: 500;
}

.page-title h2 {
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  margin-bottom: var(--sp-6);

}

.subpage {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(var(--sp-2), 4vw, var(--sp-9));
  padding-top: var(--sp-6);
}

.local-nav a {
  display: block;
  padding: var(--sp-3);
}

.local-nav a {
  border-bottom: solid 1px var(--c-border);
  background-color: #fff;
  font-size: 95%;
}


.local-nav li a::before {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left-color: var(--c-primary);
  display: inline-block;
  content: '';
}

.local-head a {
  color: white;
  font-size: 1.1em;
  background-color: var(--c-primary);
}

.local-nav .current>a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  filter: brightness(.9);
}

.local-nav .current:has(ul) a:not(.current) {
  text-decoration-thickness: 2px;
  filter: brightness(.95);
}

.local-nav .current ul {
  font-size: 95%;
  line-height: 1.3;
  background-color: var(--c-text-muted);
}

.local-nav .current ul ul {
  background-color: var(--c-background);
}

.local-nav .current ul li {
  padding-left: .5em;
}

.local-nav .current ul li a.current {}


.local-nav .current ul li a::before {
  border-left-color: var(--c-text-muted);
}

.local-nav .current ul ul li a::before {
  border-left-color: var(--c-background);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) auto var(--sp-6);
}

table td,
table th {
  border: solid 1px var(--c-text);
  padding: var(--sp-3);
}

table th {
  background-color: var(--c-surface-2);
  font-weight: 500;
}

table caption {
  font-size: .9em;
  margin-bottom: var(--sp-2);
  font-weight: 500;
}

.col3-1-2-3 table tr>*:first-child {
  width: 16.666%;
}

.col3-1-2-3 table tr>*:nth-child(2) {
  width: 33.333%;
}

.col3-1-2-3 table tr>*:nth-child(3) {
  width: 50%;
}

.page-contents h3,
.page-contents h4,
.page-contents h5 {
  margin: var(--sp-5) 0;
  font-weight: 900;
  line-height: 1.5;
}

.page-contents h3 {
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  background-color: var(--c-surface-2);
  padding: var(--sp-3);
  border-left: solid .4em var(--c-primary);
  box-shadow: var(--shadow-1);
  color: var(--c-primary);
}

.page-contents h4 {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  padding: var(--sp-3);
  border-left: solid .3em var(--c-primary);
  position: relative;
}

.page-contents h4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right,
      var(--c-primary) 0%,
      transparent 100%);
}

.page-contents h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right,
      var(--c-primary) 0%,
      transparent 100%);
}

.page-contents h5 {
  font-size: 1.1rem;
  padding: var(--sp-2) var(--sp-3);
  border-left: solid .3em var(--c-primary);
}

.page-contents img {
  max-width: 100%;
  height: auto;
}

.cpc-list {
  list-style: disc;
  padding-left: 1.5em;
}

.cpc-list li {
  position: relative;
}

.cpc-list li::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 1px;
  background-color: var(--c-border);
  left: -1.5em;
  bottom: calc(var(--sp-3)*-1);
}

.cpc-list li::marker {
  color: var(--c-primary);
}

.cpc-row {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: var(--sp-4);
}

.cpc-row .date {
  font-weight: 500;
  font-size: .95em;
}

.page-contents ul {
  margin-bottom: var(--sp-9);
}

ol.num {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: var(--sp-9);
}

/* ①②③… の丸数字（①〜⑳） */
@counter-style circled-ja {
  system: fixed;
  symbols:
    "①" "②" "③" "④" "⑤" "⑥" "⑦" "⑧" "⑨" "⑩"
    "⑪" "⑫" "⑬" "⑭" "⑮" "⑯" "⑰" "⑱" "⑲" "⑳";
  suffix: " ";
}

ol.num-circle {
  list-style: circled-ja;
  margin: 0;
  padding-left: 2.2em;
  margin-bottom: var(--sp-9);
}

ol.num-circle>li {
  margin: 0 0 .6em 0;
}


ul.dot {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: var(--sp-9);
}

.page-contents ol li,
.page-contents ul li {
  margin-top: calc(var(--sp-3)*2);
  line-height: 1.3;
}

ol.border li,
ul.border li {
  border-bottom: dotted 1px var(--c-primary-dark);
  padding-bottom: calc(var(--sp-3) * 2);
}

.anchorLink {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: .9em;
  margin-bottom: var(--sp-4) !important;
  background-color: var(--c-border);
  padding: var(--sp-4);
}

.anchorLink li {
  margin-top: 0 !important;
}

.anchorLink li a {
  color: var(--c-primary-dark);
}

.anchorLink li a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: .2em;
  border-left: .4em solid transparent;
  border-right: .4em solid transparent;
  border-top: .7em solid currentColor;
}

.flex-wrap {
  display: flex;
  column-gap: var(--sp-4);
  row-gap: var(--sp-2);
  flex-wrap: wrap;
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

.pagenation {
  display: flex;
  gap: .5em;
  justify-content: center;
  flex-wrap: wrap;
  font-size: clamp(.7rem, 1vw, 1rem);
}

.pagenation a {
  text-decoration: none;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  width: 2.2em;
  height: 2.2em;
  justify-content: center;
  background-color: #fff;
  border-radius: 50vh;
  border: solid 1px var(--c-text-muted);
}

.pagenation li.button a {
  border: none;
  border-radius: 0;
  background-color: transparent;
}

.pagenation li.button a:hover {
  text-decoration: underline;
}

.pagenation li.current {
  display: flex;
  align-items: center;
  width: 2.2em;
  height: 2.2em;
  justify-content: center;
  background-color: var(--c-text-muted);
  color: #fff;
  border-radius: 50vh;
  cursor: default;
}

.pagenation-dot {
  display: flex;
  align-items: center;
}

.borderBlock {
  border: var(--c-primary-dark) 1px solid;
  padding: var(--sp-5);
}

.extend summary {
  cursor: pointer;
  font-weight: bold;
}

.extend summary:hover {
  text-decoration: underline;
}

.dayBlock h3 {
  border: none;
  background-color: transparent;
  box-shadow: none;
  padding-left: 0;
  padding: 0;
  margin: 0;
  position: absolute;
  top: -29px;
  left: -9px;
}

.dayBlock .block {
  position: relative;
  margin-top: var(--sp-9);
}

.dayBlock .block+.block::before {
  content: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3v18M5 13l7 8 7-8' stroke='%232E7FD8' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -57px;
}

.dayBlock .inner {
  border: #2E7FD8 1px solid;
  padding: var(--sp-4) var(--sp-9);
  background-color: #EFE7D8;
  position: relative;
}

.dayBlock .inner .center {
  margin: var(--sp-6) 0;
}

dl {
  display: grid;
  grid-template-columns: 10em 1fr;
  column-gap: 1em;
  row-gap: 0.4em;
  margin: 1.5em 0;
}

dt::after {
  content: ':';
  margin-left: .5em;
}

.font-small {
  font-size: 85%;
}

.page-contents ul.sitemap-list a {
  color: currentColor;
  text-decoration-color: currentColor;
}

.page-contents ul.sitemap-list a:hover {
  text-decoration-color: transparent;

}

.page-contents ul.sitemap-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50vh;
  background-color: var(--c-primary);
  display: inline-block;
  margin-right: .2em;
  margin-bottom: .2em;
}

.page-contents ul.sitemap-list ul {
  margin-bottom: var(--sp-3);
  margin-left: 1em;
}

.page-contents ul.sitemap-list ul li::before {
  background-color: var(--c-text-muted);
}

.page-contents ul.sitemap-list ul ul li::before {
  background-color: var(--c-background);
}

.page-contents ul.sitemap-list ul ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--sp-4);
}

.sitemap-head {
  margin-bottom: var(--sp-4);
  font-size: 1.2em;
  border-top: solid 2px var(--c-primary);
  border-bottom: solid 2px var(--c-primary);
  padding: var(--sp-2) 0;
  padding-left: var(--sp-3);
  font-weight: 500;
}

.page-contents ul.sitemap-list .sitemap-head::before {
  content: none;
}

.page-contents ul.sitemap-list .sitemap-head a {
  text-decoration-color: transparent;
}

.page-contents ul.sitemap-list .sitemap-head a:hover {
  text-decoration-color: currentColor;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .header-link {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.875rem;
  }

  .site-header {
    position: absolute;
    background-color: transparent;
    border: none;
  }

  .site-logo img {
    display: none;
  }

  .site-logo a {
    font-size: 95%;
    margin-right: 64px;
  }

  .site-logo span {
    filter: drop-shadow(0 0 2px #ffffff);
  }

  .site-logo .en {
    font-size: 75%;
  }

  .header-inner {
    padding: var(--sp-3);

  }

  .header-link {
    display: none;
  }

  /* --- グローバルナビ：右からスライド --- */
  .global-nav {
    padding: var(--sp-6);
    margin-top: 0;
    position: fixed;
    top: 0;
    right: 0;
    /* 0固定にして transform で退避 */
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, .2);
    z-index: 10000;
    /* 重なり勝ちに */
    overflow-y: auto;

    display: block;
    transform: translateX(100%);
    transition: transform .35s ease;
    will-change: transform;
    pointer-events: none;
    /* 退避中は当たり判定なし */
  }

  .global-nav.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 44px;
  }

  .global-nav ul>li {
    border-bottom: solid 1px var(--c-border);
  }

  .global-nav a {
    padding: var(--sp-4);
    display: block;
    width: 100%;
    font-size: 1rem;
  }

  .global-nav .child {
    position: relative;
    width: 100%;
    margin-top: var(--sp-2);
  }

  .global-nav .header-link {
    flex-direction: row;
    margin-top: var(--sp-6);
    gap: var(--sp-2);
    flex-wrap: wrap;
  }

  .global-nav .header-link li {
    flex: 1;
  }

  .global-nav .header-link li a {
    white-space: nowrap;
    font-size: 90%;
    min-width: 120px;
  }

  .global-nav .header-link a.bg-blue {
    color: #fff;
  }

  #hamburger-btn {
    display: block;
    position: fixed;
    top: var(--sp-4);
    right: var(--sp-3);
    z-index: 99999;
    text-decoration: none;
    background-color: #ffffff75;
    padding-top: var(--sp-2);
  }

  #hamburger-btn:hover {
    filter: none;
  }

  .hamburger-text {
    font-size: 12px;
    color: #051524;
    letter-spacing: 0.1em;
  }

  /* --- 三本線 --- */
  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 39px;
    height: 18px;
    position: relative;
    transition: all 0.3s ease;
  }

  .hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background: #051524;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* --- active時：バツ印 --- */
  #hamburger-btn.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 8px;
  }

  #hamburger-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }

  #hamburger-btn.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 8px;
  }

  section {
    padding: var(--sp-4) 0;
  }

  .hero {
    margin-top: 80px;
  }

  .key-visual {
    aspect-ratio: 8 / 3;
  }

  .key-visual .img {
    height: auto;
  }

  .news-section {
    margin-top: 0;
  }

  .news-inner {
    padding: var(--sp-4);
  }

  .news-list li {
    grid-template-columns: 120px 1fr;
    grid-template-rows: repeat(2, auto);
  }

  .news-list time {
    grid-area: 1 / 1 / 2 / 2;
  }

  .news-list .category {
    grid-area: 1 / 2 / 2 / 3;
    width: fit-content;
  }

  .news-list li div {
    grid-area: 2 / 1 / 3 / 3;
  }

  .news-list li+li {
    border-top: solid 1px var(--c-border);
  }

  .education-section .container {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-6);
  }

  .banner-section .container,
  .special-section .container {
    padding: var(--sp-4);
  }

  .banner-grid,
  .special-grid {
    gap: var(--sp-4);
    grid-template-columns: 1fr 1fr;
  }

  .slider {
    width: 330px;
    max-width: 100%;
    margin: -10% auto 0;
  }


  .slider-content {
    width: 330px;
    padding: var(--sp-4);
  }

  .slider-title {
    -webkit-line-clamp: 3;
    margin: var(--sp-2) 0;
  }

  .btn-cpc {
    padding-right: var(--sp-4);
    padding-left: var(--sp-4);
    width: 100%;
  }

  ol.grid-two {
    grid-template-columns: 1fr;
  }

  .grid-three {
    grid-template-columns: 1fr 1fr;
  }

  .grid-four {
    grid-template-columns: 1fr 1fr;
  }

  .subpage {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--sp-7);
  }

  .main-container-bg {
    padding: 0;
  }

  .main-container {
    margin-top: 60px;
    padding-right: var(--sp-4);
    padding-left: var(--sp-4);
  }

  .list-flex li {
    width: 100%;
  }

}