/*
Theme Name: Sozan 0215
Theme URI: https://www.sozan.okayama-c.ed.jp/
Description: 岡山県立岡山操山中学校のWordPressテーマ（ブロックエディタ対応版）
Author: 岡山操山中学校
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sozan-static
*/

/* Google Fonts から BIZ UDPGothic / BIZ UDPMincho を読み込み */
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=BIZ+UDPMincho:wght@400;700&display=swap');

:root {
  color-scheme: light;
  --navy-900: #0e1b57;
  --navy-800: #17246f;
  --navy-700: #233a86;
  --sky-50: #f5f9ff;
  --sky-100: #e7f1ff;
  --sky-200: #d4e6ff;
  --sky-300: #c0dbff;
  --white: #ffffff;
  --ink-900: #101421;
  --ink-700: #3e4761;
  --accent: #f7cf3c;
  --accent-deep: #d7aa1f;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --space-7: 56px;
  --space-8: 72px;
  --shadow-soft: 0 20px 50px rgba(14, 27, 87, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  overflow-x: hidden;
}

body {
  margin: 0;
  margin-top: 10px;
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink-900);
  background: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1120px, 92vw);
  max-width: 100%;
  margin: 0 auto;
}

/* ブロックコンテンツの通常幅 */
.entry-content {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* 全幅ブロックがentry-contentを突き抜けて画面端まで広がる */
.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* 全幅カバーの中身は通常幅に収める */
.alignfull .wp-block-cover__inner-container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* カバー内のalignfullブロックは画面端まで広げる */
.wp-block-cover__inner-container .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.site-header::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--white);
  z-index: 51;
}

.site-header {
  background: var(--white);
  position: fixed;
  width: 100%;
  top: 15px;
  left: 0;
  z-index: 50;
  /* box-shadow: 0 8px 24px rgba(14, 27, 87, 0.08); */
  transition: transform 0.3s ease;
}

.site-header .container {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--space-4);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* ホームページ: オープニング直下にヘッダーを配置 */
.site-header.is-below-opening {
  position: absolute;
  /* top は JS で動的に設定 */
}

.site-header.is-below-opening::before {
  display: none;
}

.site-header.is-fixed {
  position: fixed;
  top: 15px;
}


.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-brand a {
  display: inline-flex;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.site-brand a:hover {
  background: rgba(14, 27, 87, 0.05);
}

.site-brand__logo {
  height: 60px;
}


.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* Header Buttons */
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 27, 87, 0.25);
  filter: brightness(1.1);
}

.header-btn--primary {
  background-color: var(--navy-900);
  /* Dark Blue */
  color: var(--white);
}

.header-btn--secondary {
  background-color: #5b9bd5;
  /* Light Blue */
  color: var(--white);
}

.header-btn--white {
  background-color: var(--white);
  color: var(--navy-900);
  border: 1px solid var(--navy-900);
}

.header-social {
  display: flex;
  gap: 0;
  min-width: 101.5px;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.header-social a:hover {
  background: rgba(14, 27, 87, 0.05);
}

.header-social :first-child img {
  width: 30px;
  height: 30px;
}

.header-social :last-child img {
  width: 30px;
  height: 30px;
}

.global-nav {
  background: var(--white);
  border-bottom: 1px solid rgba(14, 27, 87, 0.1);
}

.global-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.global-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  margin-left: auto;
}

.global-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--navy-900);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.global-nav__link:hover,
.global-nav__link:focus-visible {
  background: rgba(14, 27, 87, 0.05);
  /* Subtle dark hover */
  color: var(--navy-700);
}

.site-main {
  padding: 140px 0 0;
  /* Header height + spacing */
  overflow-x: hidden;
}

.home .site-main {
  padding-top: 0;
  /* No padding for Home with opening visual */
}

.home .site-main > .section:first-child {
  margin-top: 0;
}

body.home,
body.page-template-default.home {
  margin-top: 0 !important;
}

.hero {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
}

.hero__media {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__title {
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.8rem, 2vw + 1.4rem, 2.8rem);
  color: var(--navy-900);
  margin: 0 0 var(--space-2);
}

/* OPENING VISUAL */
.opening-visual {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: var(--white);
}

.opening-visual__img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.opening-visual__scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.opening-visual__scroll::after {
  content: "";
  display: block;
  width: 2px;
  height: 40px;
  background: var(--white);
  margin: 8px auto 0;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.opening-visual__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opening-visual__haikei {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 101%;
  z-index: 0;
  margin: 0;
}

.opening-visual__haikei img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.opening-visual__text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* width is set dynamically by main.js */
  z-index: 2;
  margin: 0;
  text-align: center;
}

.opening-visual__text img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.opening-visual__illust {
  position: absolute;
  z-index: 1;
  margin: 0;
}

.opening-visual__illust img {
  display: block;
  margin: 0 auto;
  width: 20%;
  height: auto;
}

.opening-visual__illust--left {
  top: 10%;
  left: 5%;
  /* width is set dynamically by main.js */
}

.opening-visual__illust--center {
  bottom: 13%;
  /* width is set dynamically by main.js */
}

.opening-visual__vertical-text {
  position: absolute;
  top: 10%;
  left: 5%;
  writing-mode: vertical-rl;
  color: #0e1b57;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.8;
  z-index: 3;
  text-shadow: none;
  margin: 0;
}

/* Global Leader Section */
.global-leader-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: var(--space-7) 0;
  overflow: hidden;
  color: var(--navy-900);
  background: url("../assets/images/gl_bg_main.png") center/cover no-repeat;
}

/* Background Layers (Patterns) */
.gl-bg-layer {
  position: absolute;
  top: 0;
  width: 50%;
  /* Only half width needed for patterns basically, or contain covers it */
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.gl-bg-main {
  display: none;
  /* Handled by section background */
}

.gl-bg-left {
  left: 0;
  width: 40%;
  max-width: 500px;
  /* Limit max size */
  background: url("../assets/images/gl_bg_left.png") left center/contain no-repeat;
  opacity: 0.8;
}

.gl-bg-right {
  right: 0;
  width: 40%;
  max-width: 500px;
  /* Limit max size */
  background: url("../assets/images/gl_bg_right.png") right center/contain no-repeat;
  opacity: 0.8;
}

/* Global Leader Title */
.gl-title-sub,
.gl-title-main,
.gl-sub-title {
  display: block;
  line-height: 1.8;
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 2.2rem;
  color: var(--navy-900);
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* HERO WIDE (Refined Design) */
.hero-wide {
  position: relative;
  background: var(--white);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.hero-wide__inner {
  position: relative;
  height: min(600px, 80vh);
  display: flex;
  align-items: center;
}

.hero-wide__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-wide__content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin-left: 5%;
  box-shadow: var(--shadow-soft);
}

.hero-wide__bg::after {
  /* Optional overlay if image is too busy */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent);
}

.gl-highlight {
  background-color: #f1ea4d;
}

.gl-diagram-img {
  display: block;
  /* Ensure margin auto works */
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-5);
  /* Filter shadow if needed for contrast against blue bg */
}

.hero-wide__curve {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--white);
  /* Or match body bg if needed, but white creates the cutout effect on the image */
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.5);
  display: none;
  /* Masking complicated without SVG, simplifying */
}

/* TARGET LINKS (Guardians / Elementary) */
.target-links {
  margin-top: var(--space-8);
}

.target-link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}

.target-link-card:hover {
  transform: translateY(-4px);
}

.target-link-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.3s;
}

.target-link-card:hover .target-link-card__bg {
  transform: scale(1.05);
}

.target-link-card__content {
  position: relative;
  z-index: 2;
  background: rgba(14, 27, 87, 0.8);
  /* Fallback/Contrast */
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
}

.target-link-card__content h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.target-link-card__content p {
  margin: var(--space-1) 0 0;
  font-size: 1rem;
  opacity: 0.9;
}

.education-diagram {
  margin: var(--space-5) 0;
  text-align: center;
}


.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: var(--space-4);
}

/* Utility adjustments */
.center {
  justify-content: center;
}

.hero__actions,
.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.section__actions {
  margin-top: var(--space-3);
  flex-direction: column;
  align-items: flex-end;
}

.section__actions.center {
  align-items: center;
}

.section__footer {
  text-align: right;
  margin-top: var(--space-4);
}

.view-all-link {
  display: inline-block;
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1.1rem;
  color: var(--navy-900);
  /* Dark Blue */
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}

.view-all-link:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .section__footer {
    text-align: center;
  }
}

.section {
  margin-top: var(--space-7);
}

/* Notice Section Background */
.notice-section {
  padding: var(--space-7) 0;
  margin-top: var(--space-7);
}

.section--tight {
  margin-top: var(--space-5);
}

.section__title {
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.3rem, 1vw + 1.2rem, 3rem);
  color: var(--navy-900);
  margin: 0 0 var(--space-3);
}

.section__lead {
  margin: 0 0 var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.events-grid__item {
  aspect-ratio: 1;
  overflow: hidden;
  /* Optional: shadow or border? Image shows plain images usually */
}

.events-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.events-grid__item:hover img {
  transform: scale(1.05);
}

.sns-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.sns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0px 47px 0px 32px;
  border: 1px solid var(--navy-900);
  border-radius: 999px;
  color: var(--navy-900);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  background: var(--white);
  transition: background 0.2s, color 0.2s;
  min-width: 240px;
  box-shadow: 0 12px 20px rgba(14, 27, 87, 0.2);
}

.sns-btn img {
  margin: 15px;
  padding: 0px;
  width: 30px;
  height: 30px;
}

.sns-btn:hover {
  background: var(--navy-900);
  color: var(--white);
}

/* Update responsive styles */
@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sns-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sns-btn {
    width: 100%;
    min-width: unset;
    box-sizing: border-box;
  }

  .sns-btn img {
    width: 20px;
    height: 20px;
    margin: 10px;
  }
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px rgba(14, 27, 87, 0.1);
  padding: var(--space-4);
  border: 1px solid rgba(14, 27, 87, 0.08);
}

.card__title {
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--navy-900);
}

.card__title--numbered {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  text-align: left;
  width: 100%;
  margin-bottom: var(--space-3);
}

.card__title-num {
  display: inline-block;
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", sans-serif;
  font-weight: 400;
  font-size: 3.4rem;
  color: var(--navy-900);
  letter-spacing: 0.1em;
  line-height: 1;
}

.card__title-text {
  display: inline-block;
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--navy-900);
  letter-spacing: 0.1em;
  line-height: 1;
  transform: translateY(-0.15em);
}

/* メタ情報テキスト共通スタイル */
.card__meta,
.post-meta {
  font-size: 1rem;
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.7;
}

.card__meta {
  margin-bottom: var(--space-2);
}

/* 学校紹介ナビボタン 3列×3行グリッド */
.overview-nav-buttons.wp-block-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.overview-nav-buttons .wp-block-button {
  width: 100%;
}

.overview-nav-buttons .wp-block-button__link {
  width: 100%;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.1em;
  color: var(--navy-900);
  box-shadow: 0 4px 10px rgba(14, 27, 87, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn--primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 12px 20px rgba(14, 27, 87, 0.2);
}

.section__actions a {
  padding: 16px 0px;
  display: flex;
  width: 430px;
}

.btn--primary:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--navy-900);
}

.btn--ghost {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: transparent;
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.1em;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 1rem;
  background: var(--sky-100);
  color: var(--navy-900);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 1rem;
}

.post-archive {
  display: grid;
  gap: var(--space-4);
}

.post-archive__grid {
  gap: var(--space-4);
}

.post-archive--news-grid .post-card {
  width: auto;
}

.post-card {
  display: grid;
  gap: var(--space-3);
  width: 35%;
}

.post-archive .post-card.is-hidden,
.wp-block-post.is-hidden {
  display: none;
}

.wp-block-post-template .wp-block-post {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.wp-block-post-template .wp-block-post > * {
  max-width: 100%;
}

.post-card__thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: transparent;
  width: 324px;
  height: 200px;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  display: grid;
  gap: var(--space-2);
}

/* TOPIX Specific Styles */
.topix-card,
.notice-card {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

a.topix-card,
a.notice-card {
  display: block;
  text-decoration: none;
}

.topix-card .post-card__thumb,
.notice-card .post-card__thumb {
  border-radius: 0;
  /* Assuming sharp edges from image, or keep rounded? Image looks sharpish */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.topix-meta {
  font-family: "BIZ UDPGothic", sans-serif;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1rem;
  margin-bottom: 4px;
}

.topix-tag {
  display: inline-block;
  background-color: #9bc4e2;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.016em;
  padding: 4px 24px;
  border-radius: 6px;
  text-align: center;
  width: fit-content;
  margin-bottom: 8px;
}

.topix-tag a {
  color: var(--navy-900);
  text-decoration: none;
  pointer-events: none;
}

.topix-tag-white {
  display: inline-block;
  background-color: #fff;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.016em;
  padding: 4px 24px;
  border-radius: 6px;
  text-align: center;
  width: fit-content;
  margin-bottom: 8px;
}

.topix-tag-white a {
  color: var(--navy-900);
  text-decoration: none;
  pointer-events: none;
}

.topix-tag-navy,
.wp-block-post-terms.topix-tag-navy {
  display: inline-block;
  background-color: var(--navy-900) !important;
  color: var(--white) !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.016em;
  padding: 4px 24px !important;
  border-radius: 6px !important;
  text-align: center;
  width: fit-content;
  margin-bottom: 8px;
}

.topix-tag-navy a,
.wp-block-post-terms.topix-tag-navy a {
  color: var(--white) !important;
  text-decoration: none !important;
  pointer-events: none;
}

.notice-tag {
  display: inline-block;
  background-color: var(--white);
  /* White tag for notice */
  color: var(--navy-900);
  font-weight: 700;
  padding: 4px 24px;
  border-radius: 999px;
  font-size: 1rem;
  text-align: center;
  width: fit-content;
  margin-bottom: 8px;
}

.topix-title,
.notice-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
}

.section__header-image {
  margin-bottom: var(--space-4);
}

.topix-header-container {
  display: flex;
  /* Ensure horizontal alignment */
  align-items: center;
  /* Vertically center */
  gap: var(--space-2);
}

.section-sub-title.topix-header-container--listing {
  margin-bottom: 50px;
}

.topix-header-container--center {
  justify-content: center;
}

.topix-header-icon {
  max-height: 50px;
  max-width: 50px;
}

.history-header {
  position: relative;
  display: block;
  width: 100%;
}

.history-header__image {
  display: block;
  width: 100%;
  height: auto;
}

.history-header__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding-left: 12%;
}

.history-dropdown {
  position: relative;
  display: block;
  width: 100%;
}

.history-dropdown__toggle {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--navy-900);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.history-dropdown__toggle:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 4px;
  border-radius: 6px;
}

.history-header.section__header-image,
.access-header.section__header-image {
  margin-bottom: 0;
  width: 100%;
}

.access-header {
  position: relative;
  display: block;
  width: 100%;
}

.access-header__image {
  display: block;
  width: 100%;
  height: auto;
}

.access-header__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-left: 12%;
}

.access-header__toggle {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-900);
  font-size: 1.6rem;
  line-height: 1;
  pointer-events: none;
}

.history-dropdown__content {
  margin-top: 0;
  width: 100%;
  padding: var(--space-3);
  background: #F0F5F6;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 10px 24px rgba(14, 27, 87, 0.12);
}

.curriculum-subtitle {
  display: inline-block;
  margin: var(--space-3) 0;
  padding: 6px 18px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: var(--white);
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.class-subtitle {
  display: inline-block;
  margin: var(--space-3) 0;
  padding: 6px 18px;
  border-radius: var(--radius-md);
  background: #9bc4e2;
  color: var(--navy-900);
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  line-height: 1.2;
}

.class-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-3) 0 var(--space-4);
}

.class-media-item {
  margin: 0;
  text-align: center;
}

.class-media-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.class-media-text {
  margin-top: var(--space-2);
  text-align: center;
}

.facility-carousel {
  position: relative;
  display: block;
  --facility-item-width: 50%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.facility-viewport {
  overflow: hidden;
  width: 100%;
}

.facility-track {
  display: flex;
  gap: var(--space-7);
  transition: transform 0.35s ease;
  will-change: transform;
}

.facility-track picture {
  flex: 0 0 var(--facility-item-width);
  max-width: var(--facility-item-width);
}

.facility-track img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.facility-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  width: 44px;
  height: 80px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
  overflow: hidden;
}

/* next: > の形 */
.facility-nav::after {
  content: "";
  display: block;
  width: 16px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 28'%3E%3Cpolyline points='4,2 13,14 4,26' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* prev: < の形 */
.facility-nav--prev::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 28'%3E%3Cpolyline points='12,2 3,14 12,26' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.facility-nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.facility-nav--prev {
  left: calc((100% - var(--facility-item-width)) / 2);
}

.facility-nav--next {
  right: calc((100% - var(--facility-item-width)) / 2);
  left: auto;
}

.facility-nav:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
}

.facility-nav[disabled] {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 700px) {
  .facility-carousel {
    --facility-item-width: 80%;
  }

  .facility-track picture {
    flex-basis: var(--facility-item-width);
    max-width: var(--facility-item-width);
  }
}

@media (max-width: 700px) {
  .class-media-grid {
    grid-template-columns: 1fr;
  }
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 220px);
  gap: var(--space-3);
  align-items: start;
  margin-bottom: var(--space-3);
}

.curriculum-actions {
  display: flex;
  align-items: flex-start;
  justify-self: end;
}

@media (max-width: 900px) {
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
}

/* Education Goals Section */
.education-goals-section {
  padding-bottom: 36px;
}

.goals-header {
  margin-bottom: var(--space-7);
}

.goals-title {
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.4rem, 1.5vw + 1rem, 2.2rem);
  color: var(--navy-900);
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
}

.goals-icon {
  height: 40px;
  width: auto;
  margin: 0 auto var(--space-3);
}

.goals-main-text {
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy-900);
  line-height: 1.8;
  margin-bottom: var(--space-3);
  letter-spacing: 0.1em;
}

/* 見出し h3 スタイル */
.h3 {
  font-size: 2rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--navy-900);
  margin-block: 0.8em;
  font-weight: 700;
}

.h3-white {
  font-size: 2rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-block: 0.8em;
  font-weight: 700;
}

/* 中見出し（white-sub-headingと同じ文字、背景なし） */
.sub-heading {
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--navy-900);
  margin-block: 0.8em;
  font-weight: 700;
}

/* テキスト大（textより大きく、sub-headingより小さい） */
.text-large {
  font-size: 1.2rem;
  line-height: 1.8;
  letter-spacing: 0.024em;
  color: var(--navy-900);
  margin-block: 0.8em;
  font-weight: 400;
}

/* 本文テキスト共通スタイル */
.text {
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.016em;
  color: var(--navy-900);
  margin-block: 0.8em;
  font-weight: 400;
}

.text-white {
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.016em;
  color: var(--white);
  margin-block: 0.8em;
  font-weight: 400;
}

/* 本文テキスト明朝体版 */
.text-mincho {
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.016em;
  color: var(--navy-900);
  margin-block: 0.8em;
  font-weight: 400;
}

.goals-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 28px;
}

.goals-item {
  display: flex;
  align-items: center;
  position: relative;
}

.goals-item__image {
  width: 60%;
  overflow: hidden;
  z-index: 1;
}

.goals-item__image img {
  width: 100%;
  height: auto;
  display: block;
}

.goals-item__content {
  padding: var(--space-5) var(--space-6);
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Right: Image Left, Content Right */
.goals-item--right {
  flex-direction: row;
}

/* Left: Image Right, Content Left */
.goals-item--left {
  flex-direction: row-reverse;
}

/* .goals-item__header removed */

h4,
.goals-item__sub {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--navy-900);
  margin-bottom: var(--space-2);
  display: block;
  letter-spacing: 0.1em;
}

.goals-item__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.goals-item__content.right .goals-item__title-row {
  width: 100%;
  justify-content: flex-end;
}

.goals-item__title-img {
  height: 50px;
  width: auto;
  margin-bottom: 0;
  align-self: flex-start;
}

.goals-item__title-text {
  font-size: 3rem;
  font-weight: 400;
  color: var(--navy-900);
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.1em;
}

.goals-btn {
  padding: 14px 60px;
  font-size: 1.2rem;
  font-weight: 400;
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.1em;
}


@media (max-width: 768px) {
  .goals-list {
    gap: 40px;
  }

  .goals-item {
    flex-direction: column;
    gap: 0;
  }

  .goals-item__image {
    width: 100%;
  }

  .goals-item__content {
    width: 100%;
    padding-top: 0;
  }

  .goals-list > .goals-item:nth-child(1) .goals-item__content {
    padding-top: 0;
    padding-left: 0;
  }

  .goals-list > .goals-item:nth-child(1) .goals-item__sub {
    margin-top: 0;
  }

  .goals-list > .goals-item:nth-child(2) .goals-item__content {
    padding-right: 0;
    text-align: right;
  }

  .goals-list > .goals-item:nth-child(3) .goals-item__content {
    padding-left: 0;
  }

  .goals-item--left {
    flex-direction: column;
  }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.post-single {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

/* カバーブロック内のフィルター付きコンテンツを上寄せにする */
.wp-block-cover:has(.filters) {
  align-items: flex-start;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.filters .btn {
  padding: 20px 32px;
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.016em;
  font-weight: 700;
  border-radius: 12px;
  background-color: var(--navy-900);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 6px rgba(14, 27, 87, 0.2);
  transition: all 0.2s ease;
  width: 15%;
  cursor: pointer;
}

.filters .btn:hover {
  background-color: var(--white);
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(14, 27, 87, 0.25);
}

/* 選択中のフィルターボタン（水色） */
.filters .btn.btn--current {
  background-color: #5b9bd5;
  color: var(--white);
  pointer-events: none;
  cursor: default;
}

.filters .btn.btn--current:hover {
  background-color: #5b9bd5;
  color: var(--white);
  transform: none;
  box-shadow: 0 12px 20px rgba(14, 27, 87, 0.2);
}

/* SP: フィルターボタンを折り返して文字が横書きになるように */
@media (max-width: 768px) {
  .filters {
    justify-content: flex-start;
  }
  .filters .btn {
    width: auto;
    min-width: 28%;
    flex: 0 1 auto;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .filters .btn {
    min-width: 40%;
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* 単一記事カバー背景（全幅） */
.single-cover {
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
}

.single-cover .post-single {
  background: transparent;
}

/* 単一記事ページの要素間隔 */
.single .breadcrumb {
  margin-bottom: 50px;
}

.single .topix-header-container {
  margin-bottom: 50px;
}

.single .filters {
  margin-bottom: 50px;
}

/* 単一記事: 日付とカテゴリを縦並び */
.single .post-single .post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.016em;
  color: var(--navy-900);
  font-weight: 400;
}

/* 単一記事: カテゴリタグをネイビー背景・白文字に */
.single .post-single .tag {
  background: var(--navy-900);
  color: var(--white);
}

/* Notice (School Updates) Page */
.notice-hero {
  background: var(--white);
  padding: var(--space-6) 0 var(--space-4);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-700);
  margin-bottom: var(--space-3);
}

.breadcrumb a {
  color: inherit;
}

.notice-hero__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.notice-hero__icon {
  width: 40px;
  height: auto;
}

.notice-hero h1 {
  margin: 0;
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  color: var(--navy-900);
  letter-spacing: 0.08em;
}

.notice-archive {
  background: url("../assets/images/gl_bg_main.png") center top / 100% auto repeat-y;
  padding: var(--space-6) 0 var(--space-8);
}

.notice-filters .btn {
  min-width: 140px;
  border-radius: 10px;
  font-size: 1rem;
}

.notice-grid {
  margin-top: var(--space-5);
}

.notice-card {
  padding: var(--space-3);
  box-shadow: none;
  border: none;
  background: transparent;
}

.notice-card .post-card__thumb {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(14, 27, 87, 0.15);
}

.notice-card .post-card__body {
  margin-top: var(--space-2);
  gap: var(--space-2);
}

.notice-card .post-meta {
  font-weight: 700;
  color: var(--navy-900);
}

.notice-card .card__title {
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.4rem, 1.5vw + 1rem, 2.2rem);
  color: var(--navy-900);
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .notice-filters {
    justify-content: center;
  }
}

/* 月別アーカイブ記事一覧（single.php サイドバーから展開） */
.archive-month-link.is-active {
  font-weight: 700;
  color: #5b9bd5;
}

.archive-month-posts {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 2px solid var(--sky-200);
}

.archive-month-posts__heading,
.archive-month-page__heading {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem);
  font-weight: 400;
  color: var(--navy-900);
  margin-bottom: var(--space-4);
  letter-spacing: 0.08em;
}

.archive-post-item {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--sky-200);
}

.archive-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.archive-loading,
.archive-empty {
  text-align: center;
  color: var(--ink-700);
  padding: var(--space-5) 0;
}

.notice-page {
  background: url("../assets/images/haikei_blue01.png") center top / 100% auto repeat-y;
}

.events-detail-page {
  background: url("../assets/images/haikei.png") center top / 100% auto repeat-y;
}

/* Guardians Page */
.guardians-hero {
  padding: var(--space-6) 0 var(--space-4);
}

.guardians-hero__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.guardians-hero__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-900);
  box-shadow: 18px 0 0 #7db1d9;
}

.guardians-hero h1 {
  margin: 0;
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  color: var(--navy-900);
  letter-spacing: 0.08em;
}

.guardians-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.guardians-nav .btn {
  border-radius: 999px;
  border: 1px solid var(--navy-900);
  color: var(--navy-900);
  background: transparent;
  font-weight: 700;
  padding: 10px 16px;
}
.section__title {
  font-size: 1.9rem;
  margin-bottom: var(--space-2);
}
.bordered {
  border-bottom:  #0d025d solid 2px;
  padding-bottom: 10px;

}

.guardians-notes {
  display: grid;
  gap: var(--space-4);
}

.guardians-notes .note {
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.guardians-notes .note h3 {
  margin-top: 0;
  color: var(--navy-900);
}

.guardians-uniform img {
  width: min(520px, 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: block;
}

@media (max-width: 900px) {
  .guardians-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .guardians-nav {
    grid-template-columns: 1fr;
  }
}

/* Elementary Page */
.elementary-hero {
  position: relative;
}

.school-guide-badge {
  position: absolute;
  right: max(2vw, 16px);
  top: calc(100% + 20px);
  width: clamp(80px, 10vw, 120px);
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-guide-badge img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(14, 27, 87, 0.25));
}

.school-guide-badge:hover {
  transform: scale(1.05);
}

.school-guide-badge:hover img {
  filter: drop-shadow(0 6px 16px rgba(14, 27, 87, 0.35));
}

.elementary-topix .post-card {
  width: auto;
}
/* 
.info-row {
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(14, 27, 87, 0.2);
}

.info-row:last-child {
  border-bottom: none;
} */

.elementary-page .section__actions a {
  width: auto;
  min-width: 220px;
}

.placeholder-box {
  width: 100%;
  min-height: 180px;
  background: var(--sky-100);
  border: 1px dashed rgba(14, 27, 87, 0.2);
  border-radius: var(--radius-md);
}

.placeholder-box--landscape {
  aspect-ratio: 4 / 3;
}

.placeholder-box--portrait {
  aspect-ratio: 3 / 4;
  min-height: 320px;
}

.school-guide-figure {
  display: inline-block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.school-guide-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(360px, 100%);
}

.placeholder-strip {
  width: 100%;
  height: clamp(120px, 18vw, 180px);
  border-radius: var(--radius-lg);
  background: var(--sky-100);
  border: 1px dashed rgba(14, 27, 87, 0.2);
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(14, 27, 87, 0.2);
  margin: var(--space-2) 0 var(--space-4);
}

.bullet-list {
  list-style: disc;
  padding-left: 1.4rem;
}

.cta-banner {
  display: block;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  box-shadow: 0 12px 24px rgba(14, 27, 87, 0.2);
}

.cta-banner--image {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 72px;
}

.cta-banner--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.cta-banner--image span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  min-height: 90px;
  font-size: x-large;
}

.section__note {
  margin: var(--space-2) 0 0;
  font-size: 1rem;
  color: var(--ink-700);
}

/* SP用: ハンバーガー+バッジ縦並びラッパー */
.hamburger-wrap {
  display: none;
}

.school-guide-badge--sp {
  display: none;
}

@media (max-width: 900px) {
  .school-guide-badge:not(.school-guide-badge--sp) {
    display: none;
  }
  .hamburger-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
  }
  .school-guide-badge--sp {
    display: block;
    width: 45px;
  }
  .school-guide-badge--sp img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(14, 27, 87, 0.2));
  }
}

.site-footer {
  margin-top: 0;
  color: var(--white);
}

.footer-banner img {
  width: 100%;
  display: block;
}

.footer-main {
  background: var(--navy-900);
  padding: var(--space-6) 0 0;
}

.footer-main__inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: var(--space-6);
  align-items: start;
}

.footer-brand {
  padding-bottom: 10rem;
}

.footer-brand__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.footer-brand__logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.footer-brand__name {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-brand__address,
.footer-brand__tel,
.footer-brand__fax {
  margin: 0 0 var(--space-3);
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.footer-social img {
  width: 30px;
  height: 30px;
  margin: 15px 0;
}

.footer-social a:first-child img {
  margin-left: 0;
  margin-right: 8px;
}

.footer-social a:last-child img {
  margin-right: 0;
  margin-left: 8px;
}

.footer-links a {
  color: var(--sky-200);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-cta {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.footer-right {
  display: grid;
  gap: var(--space-3);
}

.footer-right__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: start;
}

.footer-cta__pill-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: var(--space-3);
}

.footer-cta__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--white);
  color: var(--navy-900);
  border: 1px solid var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.footer-cta__pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 27, 87, 0.25);
  filter: brightness(1.1);
}

.footer-top-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-bottom: -20px;
}

.footer-cta__item {
  display: inline-block;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.footer-cta__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 27, 87, 0.25);
  filter: brightness(1.1);
}

.footer-cta__item img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.footer-bottom {
  background: var(--white);
  color: var(--navy-900);
  text-align: center;
  padding: var(--space-3) 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .footer-main__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: center;
  }

  .footer-brand__head {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-cta {
    justify-items: center;
  }

  .footer-cta__pill-group {
    justify-items: center;
  }

  .footer-right__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-main {
    background: #ffffff;
    padding: 0;
  }

  .site-footer .footer-main__inner {
    display: none;
  }

  .site-footer .footer-bottom {
    background: #ffffff;
    color: var(--navy-900);
    font-size: 8px;
  }
}

.media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.note {
  background: var(--sky-100);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

/* Unique Education Section */
.unique-education-section {
  background: url("../assets/images/haikei.png") center top / 100% auto repeat-y;
  padding: var(--space-7) 0 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -5px;
}

/* School Introduction Strip */
.school-intro-section {
  padding: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
}

.school-intro-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 180px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.school-intro-banner .school-intro-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 0;
}

.school-intro-banner .school-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.school-intro-banner:hover .school-intro-img img {
  transform: scale(1.1);
}

.school-intro-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.school-intro-text {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.unique-education-section>.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.feature-block {
  margin-bottom: var(--space-8);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.feature-icon {
  height: 40px;
  width: auto;
}

.section-title {
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 2.5rem;
  color: var(--navy-900);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.section-sub-title {
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 2.3rem;
  color: var(--navy-900);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: none;
}

.feature-lead {
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy-900);
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.feature-sublead {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: var(--space-3);
  display: block;
}

.feature-desc {
  font-size: 1.3rem;
  color: var(--ink-700);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.feature-images img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

/* Card Swap Animation - Click/Tap triggered */
@keyframes card1-to-back {
  0% {
    transform: translate(0, 0) rotateZ(0deg);
    z-index: 2;
  }
  49.9% {
    transform: translate(-50%, 0) rotateZ(-30deg);
    z-index: 2;
  }
  50% {
    transform: translate(-50%, 0) rotateZ(-30deg);
    z-index: 0;
  }
  100% {
    transform: translate(16px, 16px) rotateZ(0deg);
    z-index: 0;
  }
}

@keyframes card1-to-front {
  0% {
    transform: translate(16px, 16px) rotateZ(0deg);
    z-index: 0;
  }
  49.9% {
    transform: translate(-50%, 0) rotateZ(-30deg);
    z-index: 0;
  }
  50% {
    transform: translate(-50%, 0) rotateZ(-30deg);
    z-index: 2;
  }
  100% {
    transform: translate(0, 0) rotateZ(0deg);
    z-index: 2;
  }
}

@keyframes card2-to-front {
  0% {
    transform: translate(16px, 16px) rotateZ(0deg);
  }
  50% {
    transform: translate(8px, 8px) rotateZ(5deg);
  }
  100% {
    transform: translate(0, 0) rotateZ(0deg);
  }
}

@keyframes card2-to-back {
  0% {
    transform: translate(0, 0) rotateZ(0deg);
  }
  50% {
    transform: translate(8px, 8px) rotateZ(5deg);
  }
  100% {
    transform: translate(16px, 16px) rotateZ(0deg);
  }
}

.feature-flip-card {
  perspective: 1200px;
  aspect-ratio: 7 / 10;
  position: relative;
}

.feature-flip-card__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.feature-flip-card__label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
}

/* Card 1 (Front - Image) */
.feature-flip-card__card1 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  z-index: 2;
  transform-origin: center bottom;
  transform-style: preserve-3d;
}

.feature-flip-card__card1 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card 2 (Back - Text) */
.feature-flip-card__card2 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--white);
  color: var(--navy-900);
  line-height: 1.7;
  font-size: 1rem;
  box-sizing: border-box;
  text-align: center;
  transform: translate(16px, 16px);
  transform-origin: center bottom;
  transform-style: preserve-3d;
}

.feature-flip-card__card2 p {
  margin: 0;
}

.feature-flip-card__card2 .feature-lead,
.feature-flip-card__card2 .feature-sublead,
.feature-flip-card__card2 .goals-item__text,
.feature-flip-card__card2 .text-white {
  color: var(--navy-900);
}

/* Card 2 title - Mincho font */
.feature-flip-card__card2 .feature-lead {
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* On checkbox checked - Card 1 swings to back, Card 2 moves to front position */
.feature-flip-card__checkbox:checked ~ .feature-flip-card__label .feature-flip-card__card1 {
  animation: card1-to-back 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-flip-card__checkbox:checked ~ .feature-flip-card__label .feature-flip-card__card2 {
  animation: card2-to-front 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* On checkbox unchecked - Card 1 swings to front, Card 2 moves to back position */
.feature-flip-card__checkbox:not(:checked) ~ .feature-flip-card__label .feature-flip-card__card1 {
  animation: card1-to-front 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-flip-card__checkbox:not(:checked) ~ .feature-flip-card__label .feature-flip-card__card2 {
  animation: card2-to-back 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-flip-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.feature-flip-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 27, 87, 0.25);
  filter: brightness(1.1);
}

/* Legacy toggle support (deprecated) */
.feature-toggle__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  aspect-ratio: 7 / 10;
}

.feature-toggle__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-toggle__desc {
  display: none;
}

.feature-toggle.is-active .feature-toggle__image {
  display: none;
}

.feature-toggle.is-active .feature-toggle__desc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--white);
  color: var(--navy-900);
  line-height: 1.7;
  font-size: 1rem;
}

/* Overlapping Images Layout */
.feature-images--overlap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-images--overlap img:first-child {
  width: 55%;
  margin-right: -3%;
  /* Negative margin for overlap */
  position: relative;
  z-index: 1;
}

.feature-images--overlap img:last-child {
  width: 48%;
  position: relative;
  z-index: 2;
  /* Bring to front */
}

.feature-content .section__actions {
  margin-top: var(--space-5);
}

@media (max-width: 600px) {
  .feature-images.grid--3 {
    grid-template-columns: 1fr;
    /* Stack on mobile */
  }

  .feature-images.grid--2 {
    grid-template-columns: 1fr;
  }

  .feature-images--overlap {
    flex-direction: column;
  }

  .feature-images--overlap img:first-child {
    width: 90%;
    margin-right: 0;
    margin-bottom: -10%;
    z-index: 1;
  }

  .feature-images--overlap img:last-child {
    width: 90%;
    margin-left: 10%;
    /* Offset for visual interest */
    z-index: 2;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .grid--2,
  .grid--3,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-header__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .global-nav__list {
    gap: var(--space-1);
  }

  .global-nav__link {
    font-size: 0.8rem;
  }

  .hero__inner {
    padding: var(--space-4);
  }

  .post-single {
    padding: var(--space-4);
  }
}

/* Button Links Section */
.button-links-section {
  padding: var(--space-xl) 0;
}

.button-links-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.button-link-item {
  display: block;
  position: relative;
  width: 48%;
  aspect-ratio: 5 / 2;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  transition: background-color 0.3s ease, border 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button-link-item:hover {
  background-color: #fff;
  border: 2px solid #1b2a4a;
  box-shadow: none;
}

.button-link-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
}

.button-link-item:hover .button-link-bg {
  opacity: 0;
}

.button-link-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  width: 90%;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.button-link-item:hover .button-link-text {
  color: #1b2a4a;
}


@media (max-width: 768px) {
  .button-links-grid {
    flex-direction: column;
    align-items: center;
  }

  .button-link-item {
    width: 100%;
    max-width: 400px;
  }

  .button-link-text {
    font-size: 1.4rem;
  }
}

/* Access Section */
.access-row {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 20px;
}

.access-row .wp-block-image img {
  border-radius: 20px;
  height: 100%;
  object-fit: cover;
}

.access-row iframe {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.access-section {
  padding: var(--space-8) 0;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: var(--space-lg);
  align-items: stretch;
}

.access-image,
.access-map {
  height: 300px;
}

/* 黄色背景の角丸見出し（h4用） */
.yellow-heading {
  display: inline-block;
  background: #f5c518;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy-900);
  margin: 0;
  font-weight: 700;
}

/* 白背景の角丸ボックス中見出し（h3とtextの中間サイズ） */
.white-sub-heading {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--navy-900);
  margin: 0;
  font-weight: 700;
}

/* 白背景の角丸見出し */
.white-heading {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy-900);
  margin: 0;
  font-weight: 700;
}

/* 黄色背景の角丸吹き出し見出し（h4用） */
.yellow-balloon {
  display: inline-block;
  background: #f5c518;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy-900);
  margin: 0 0 12px 0;
  font-weight: 700;
  position: relative;
}

.yellow-balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #f5c518;
}

/* WordPressボタンブロック → guardians-navスタイル */
.wp-block-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.wp-block-button.is-style-outline {
  width: 100%;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border-radius: 999px;
  border: 1px solid var(--navy-900);
  color: var(--navy-900);
  background: transparent;
  padding: 12px 16px;
  text-align: center;
  width: 100%;
  display: block;
  box-sizing: border-box;
  font-size: 1rem;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--navy-900);
  color: var(--white);
}

/* 明朝体ボタン（追加CSSクラス: btn-mincho） */
/* 個別ボタンに付けた場合 */
.wp-block-button.btn-mincho .wp-block-button__link {
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  padding: 14px 32px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  text-align: center;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.wp-block-button.btn-mincho .wp-block-button__link:hover {
  opacity: 0.85;
}

/* コンテナ(wp-block-buttons)に付けた場合 — ナビボタン等 */
.wp-block-buttons.btn-mincho .wp-block-button__link {
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  min-width: 230px;
  text-align: center;
  box-sizing: border-box;
}

/* 明朝体丸型ボタン（追加CSSクラス: btn-mincho-pill） */
.wp-block-button.btn-mincho-pill {
  max-width: 430px;
}

.wp-block-button.btn-mincho-pill .wp-block-button__link {
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  padding: 16px 0;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  border: 2px solid transparent;
  text-align: center;
  display: flex;
  justify-content: center;
  width: 430px;
  box-sizing: border-box;
  box-shadow: 0 12px 20px rgba(14, 27, 87, 0.2);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.wp-block-button.btn-mincho-pill .wp-block-button__link:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--navy-900);
}

/* 吹き出し風コンパクト丸型ボタン（追加CSSクラス: btn-balloon-pill） */
.wp-block-button.btn-balloon-pill .wp-block-button__link {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  border: 2px solid transparent;
  display: inline-block;
  width: auto;
  box-shadow: 0 12px 20px rgba(14, 27, 87, 0.2);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.wp-block-button.btn-balloon-pill .wp-block-button__link:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--navy-900);
}

@media (max-width: 768px) {
  .wp-block-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-block-button.btn-mincho-pill {
    max-width: 100%;
    width: 100%;
  }

  .wp-block-button.btn-mincho-pill .wp-block-button__link {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .wp-block-buttons {
    grid-template-columns: 1fr;
  }
}

/* 縦書き英語ラベル（セクション右端の装飾テキスト） */
.vertical-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  margin: 0;
  padding: 20px 8px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #c2dbeb;
  pointer-events: none;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}

/* 親グループに position: relative が必要 */
.has-vertical-label {
  position: relative;
  overflow: hidden;
  padding-left: 6rem;
}

/* 番号付き見出し（学校経営目標 h3用） */
.numbered-heading {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 2rem;
  color: var(--navy-900);
  letter-spacing: 0.1em;
  line-height: 1;
}

/* 画像の上にテキスト重ね（沿革・アクセス等） */
.image-header-overlay {
  position: relative;
  display: block;
  width: 100%;
}

.image-header-overlay > img,
.image-header-overlay > picture {
  display: block;
  width: 100%;
  height: auto;
}

.image-header-overlay > picture img {
  display: block;
  width: 100%;
  height: auto;
}

.image-header-overlay > h2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 12%;
  margin: 0;
}

/* WPブロック用ドロップダウンボタン */
.wp-dropdown-toggle {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  margin-bottom: var(--space-2);
}

.wp-dropdown-toggle:hover {
  opacity: 0.9;
}

/* 画像オーバーレイ上のトグルボタン（沿革・アクセス用） */
.wp-dropdown-toggle--overlay {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 0;
  background: transparent;
  color: var(--navy-900);
  font-size: 1.6rem;
  line-height: 1;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

.wp-dropdown-toggle--overlay:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 4px;
  border-radius: 6px;
}

/* 沿革リスト（2カラムグリッド） */
.history-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
}

.history-list .history-date {
  font-weight: 700;
  white-space: nowrap;
}

/* WPブロック用ドロップダウン中身 */
.wp-dropdown-content {
  padding: var(--space-3);
  background: #F0F5F6;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 10px 24px rgba(14, 27, 87, 0.12);
}

/* 施設カルーセル（ギャラリーブロック変換） */
.facility-carousel-gallery {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.facility-carousel-gallery .wp-block-image {
  display: none;
  min-width: 100%;
}

.facility-carousel-gallery .wp-block-image.active {
  display: block;
}

.facility-carousel-gallery .wp-block-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.facility-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
}

.facility-carousel-nav--prev {
  left: 0;
}

.facility-carousel-nav--next {
  right: 0;
}

.access-image img {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.access-map iframe {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.access-info {
  max-width: 800px;
  margin: 0 auto;
  color: var(--navy-900);
}

.access-address {
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.access-row {
  margin-bottom: var(--space-md);
}

.access-row-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 8px;
}

.access-label {
  background-color: var(--accent);
  color: var(--navy-900);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-block;
}

.access-link-button {
  font-size: 1rem;
  text-decoration: none;
  background: #e0e0e0;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--ink-900);
  transition: background 0.3s;
}

.access-link-button:hover {
  background: #d0d0d0;
}

.access-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.access-list li,
.access-text {
  margin-left: 4px;
}

.access-header-banner {
  width: 100%;
  padding: var(--space-lg) 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  gap: var(--space-sm);
}

.access-header-icon {
  width: 40px;
  height: auto;
  display: block;
}

.access-header-title {
  color: var(--navy-900);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
}

@media (max-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr;
  }

  .access-header-banner {
    min-height: 100px;
  }

  .access-header-title {
    font-size: 1.8rem;
  }

  .access-header-icon {
    width: 30px;
  }

  .access-row {
    grid-template-columns: 1fr !important;
  }

  .access-row iframe {
    min-height: 250px;
  }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 700;
}

.pagination__link,
.pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  color: var(--navy-900);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.pagination__current {
  color: #5b9bd5;
  cursor: default;
}

.pagination__link:hover {
  text-decoration: none;
  color: #5b9bd5;
}

.pagination__link--prev,
.pagination__link--next {
  margin: 0 var(--space-2);
  font-size: 1rem;
}

/* WordPress default pagination (the_posts_pagination) */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 700;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  color: var(--navy-900);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.nav-links .page-numbers.current {
  color: #5b9bd5;
  cursor: default;
}

.nav-links .page-numbers:hover {
  text-decoration: none;
  color: #5b9bd5;
}

/* WordPress Block Pagination (wp-block-query-pagination) */
.wp-block-query-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.016em;
  font-weight: 700;
}

.wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2em;
  padding: 0.25em 0.5em;
  color: var(--navy-900);
  text-decoration: none;
  transition: color 0.2s;
}

.wp-block-query-pagination .page-numbers.current {
  color: #5b9bd5;
  cursor: default;
}

.wp-block-query-pagination .page-numbers:hover {
  text-decoration: none;
  color: #5b9bd5;
}

.section > .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  color: var(--navy-900);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.section > .page-numbers.current {
  background-color: #5b9bd5;
  color: #fff;
  border-radius: 50%;
  cursor: default;
}

.section > .page-numbers:hover {
  text-decoration: none;
  color: #5b9bd5;
}

.section {
  text-align: center;
}

.section > .grid {
  text-align: left;
}

/* Post Navigation */
.post-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: 100%;
  max-width: 400px;
  margin: var(--space-5) auto 0;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.016em;
  color: var(--navy-900);
  font-weight: 400;
}

.post-single__content img {
  max-width: 70%;
}

/* Sidebar Layout */
.main-content {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.main-content--single {
  grid-template-columns: 1fr 240px !important;
}

.main-column {
  min-width: 0;
}

.main-content--single .entry-content {
  width: 100% !important;
  max-width: 100%;
}

.sidebar {
  /* position: sticky; top: 100px; */
}

.widget {
  margin-bottom: var(--space-6);
}

.widget-title {
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.016em;
  color: var(--navy-900);
  border-bottom: 2px solid var(--navy-900);
  padding-bottom: var(--space-2);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  text-align: right;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.widget-list li {
  margin-bottom: var(--space-2);
}

.widget-list a {
  text-decoration: none;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.016em;
  transition: opacity 0.2s;
}

.widget-list a:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .main-content,
  .main-content--single {
    grid-template-columns: 1fr !important;
    gap: var(--space-5);
  }

  .sidebar {
    order: 2;
  }

  .widget-title,
  .widget-list {
    text-align: center;
  }
}

/* Definition List */
.definition-list {
  margin: 0;
}

.definition-list__row {
  display: flex;
  border-bottom: 1px solid rgba(14, 27, 87, 0.1);
  padding: var(--space-3) 0;
}

.definition-list__row:last-child {
  border-bottom: none;
}

.definition-list__row dt {
  width: 140px;
  font-weight: 700;
  color: var(--navy-900);
  flex-shrink: 0;
}

.definition-list__row dd {
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 600px) {
  .definition-list__row {
    flex-direction: column;
    gap: var(--space-1);
  }
}

/* Events List Page Background */
.events-list-page {
  background: url('../assets/images/haikei.png') center top / 100% auto repeat-y;
}

.right{
  text-align: right;
}

.free-card{
  padding : 0 20px; 
}

.free-card img + p{
  margin-top: 0.5em;
}

.heightCard {
  max-height: 250px;
}
.heightCard img {
  max-height: 250px;
  width: auto;
  margin : 0 auto;
}

#curriculum-image img{
  margin: 5px auto;
  background-color: #fff;
  padding : 10px;
}
.notice-section div div a {
  background-color:  #fff;
}

/* 沿革テーブル */
.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table td {
  padding: 0.5rem 0;
  vertical-align: top;
}

.history-date {
  padding-left: 6rem;
  padding-right: 7rem;
  white-space: nowrap;
}

/* Education Page Styles */
.page-title {
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem);
  color: var(--navy-900);
  margin: 0 0 var(--space-4);
  letter-spacing: 0.05em;
}

.page-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  justify-content: center;
}

.page-nav-buttons .btn {
  padding: 10px 20px;
  font-size: 1rem;
}

.page-nav-buttons .btn:hover {
  transform: translateY(-2px);
}

.lead-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--ink-700);
  margin-bottom: var(--space-4);
}

.subsection {
  margin-bottom: var(--space-6);
}

.subsection-title {
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1.4rem;
  color: var(--navy-900);
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--navy-900);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.feature-item {
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(14, 27, 87, 0.08);
}

.feature-item h4,
.feature-item__title {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

/* Year Tabs for 未来航路プロジェクト */
.year-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-bottom: 2px solid rgba(14, 27, 87, 0.1);
  padding-bottom: var(--space-2);
}

.year-tab {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--navy-900);
  border-radius: 999px;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.year-tab:hover {
  background: rgba(14, 27, 87, 0.05);
}

.year-tab.active {
  background: var(--navy-900);
  color: var(--white);
}

.year-content {
  display: block;
  padding: var(--space-4);
  background: var(--sky-50);
  border-radius: var(--radius-md);
}

.year-content.hidden {
  display: none;
}

.year-content h3,
.year-content h4,
.year-content__title {
  font-size: 1.2rem;
  color: var(--navy-900);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

.international-project__title {
  font-size: 1.3rem;
  color: var(--navy-900);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

.club-category__title {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}

.project-images {
  margin-top: var(--space-3);
}

.project-images img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

.curriculum-image {
  margin: var(--space-4) 0;
  text-align: center;
}

.curriculum-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* International Project (SOZAN国際塾) */
.international-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.international-project {
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(14, 27, 87, 0.08);
  border-left: 4px solid var(--navy-900);
  margin-bottom: var(--space-4);
}

.international-project:last-child {
  margin-bottom: 0;
}

.international-project h4 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin: 0 0 var(--space-2);
}

/* Clubs Section */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.club-category {
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(14, 27, 87, 0.08);
}

.club-category h4 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--accent);
}

.club-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.club-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--sky-100);
  border-radius: 999px;
  font-size: 1rem;
  color: var(--navy-900);
  font-weight: 500;
}

@media (max-width: 600px) {
  .page-nav-buttons {
    flex-direction: column;
  }

  .page-nav-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .year-tabs {
    flex-direction: column;
  }

  .year-tab {
    width: 100%;
    text-align: center;
  }
}

/* ── Clickable image hover effect ── */
#post-30 > div > div:nth-child(54) > div > figure > a,
#post-51 > div > div:nth-child(17) > div:nth-child(1) > figure > a {
  display: inline-block;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

#post-30 > div > div:nth-child(54) > div > figure > a > img,
#post-51 > div > div:nth-child(17) > div:nth-child(1) > figure > a > img {
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

#post-30 > div > div:nth-child(54) > div > figure > a:hover > img,
#post-51 > div > div:nth-child(17) > div:nth-child(1) > figure > a:hover > img {
  transform: scale(1.05);
  opacity: 0.8;
}

/* ── Student Council columns: remove image spacing ── */
.wp-block-columns .wp-block-column .wp-block-image {
  margin: 0 !important;
  padding: 0 !important;
}

.wp-block-columns .wp-block-column .wp-block-image img {
  display: block;
}

/* ── Hamburger Menu (SP only) ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.hamburger__line {
  display: block;
  width: 34px;
  height: 2px;
  background: #0e1b57;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when open */
.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hamburger {
    display: flex !important;
    flex-shrink: 0;
  }

  .site-header__top {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .site-brand__logo {
    height: 26px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
  }

  /* オープニング上のときだけ白 */
  .site-header.is-below-opening .hamburger__line {
    background: #fff !important;
  }

  .site-header.is-below-opening .site-brand__logo {
    filter: brightness(0) invert(1);
  }

  /* スクロール後は元の色＋白背景 */
  .site-header.is-fixed {
    background: rgba(255, 255, 255, 0.95) !important;
  }

  .header-links,
  .global-nav {
    display: none !important;
  }

  .site-header.menu-open .header-links,
  .site-header.menu-open .global-nav {
    display: flex !important;
  }

  .site-header.menu-open,
  .site-header.is-below-opening.menu-open {
    background: rgba(255, 255, 255, 0.95) !important;
  }

  .site-header.menu-open .site-brand__logo,
  .site-header.is-below-opening.menu-open .site-brand__logo {
    filter: none !important;
  }

  .site-header.menu-open .hamburger__line,
  .site-header.is-below-opening.menu-open .hamburger__line {
    background: #0e1b57 !important;
  }

  .site-header.menu-open .site-header__top {
    flex-wrap: wrap;
  }

  .site-header.menu-open .header-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) 0;
  }

  .site-header.menu-open .header-links .header-btn {
    text-align: center;
    justify-content: center;
  }

  .site-header.menu-open .global-nav__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.menu-open .global-nav__list {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    margin-left: 0;
  }

  .site-header.menu-open .global-nav__link {
    display: block;
    padding: 12px 16px;
    border-radius: 0;
    font-size: 1rem;
    text-align: left;
  }

  .site-header.menu-open .header-social {
    justify-content: center;
    padding: var(--space-2) 0;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 25px;
  }

  .topix-query .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
