/*
Theme Name: 煌光学園グローバル
Theme URI: https://koko.school/
Author: Yuki Serizawa
Author URI: https://koko.school/
Description: 煌光学園グローバル公式サイト用テーマ
Version: 1.5.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: koukougakuen
*/

/* ========================================
   Variables
======================================== */
:root {
  --navy:   #1E3260;
  --coral:  #E86E4A;
  --amber:  #F9C46B;
  --cream:  #FEF8EE;
  --white:  #ffffff;
  --text:   #333333;
  --muted:  #777777;
  --border: #E2DAD0;
  --font:   'BIZ UDPGothic', sans-serif;
  --max-w:  1140px;
  --r:      8px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
  --ease:   .25s ease;
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

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

a { color: inherit; text-decoration: none; transition: opacity var(--ease); }
a:hover { opacity: .9; }

ul { list-style: none; }

/* ========================================
   Container
======================================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ========================================
   Section shared
======================================== */
.section-header { text-align: left; margin-bottom: 15px; }

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  display: block;
  padding-bottom: 2px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 200px; height: 3px;
  background: #E86E4A;
  border-radius: 2px;
}

.section-lead { color: #999; margin-top: 1px; font-size: 16px; text-align: left; }

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  transition: all var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: #c85a38; opacity: 1; }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #14244a; opacity: 1; }

.btn-outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--coral); opacity: 1; }

.btn-outline-coral { border-color: var(--coral); color: var(--coral); background: transparent; }
.btn-outline-coral:hover { background: var(--coral); color: var(--white); opacity: 1; }

.btn-sm { padding: 7px 18px; font-size: 12px; }
.btn-lg { padding: 15px 60px; font-size: 16px; }

/* ========================================
   Header
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-image: url('assets/image/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* サブメニュー（ドロップダウン） */
.global-nav .nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 300;
  padding: 6px 0;
}

.global-nav .nav-list li {
  position: relative;
  display: flex;
  align-items: center;
}

.global-nav .nav-list li:hover > .sub-menu {
  display: block;
}

.global-nav .nav-list .sub-menu li {
  display: block;
}
.global-nav .nav-list .sub-menu li a {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  display: block;
}

.global-nav .nav-list .sub-menu li a:hover {
  color: var(--coral);
  background: var(--cream);
  opacity: 1;
}

/* メニュー間のセパレーター */
.global-nav .nav-list > li::after {
  content: '';
  display: block;
  width: 1px;
  height: 12px;
  background: var(--navy);
  opacity: 0.3;
  margin-left: 4px;
  flex-shrink: 0;
}

.global-nav .nav-list > li:last-child::after {
  display: none;
}

.site-logo { flex-shrink: 0; }
.site-logo img { height: 50px; width: auto; }

/* 右側コンテンツ（上段＋下段） */
.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 0;
}

/* 上段：ボタン＋SNS */
.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-top .btn {
  width: 120px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E86E4A;
  color: var(--white);
  border-color: #E86E4A;
  border-radius: 15px;
  font-size: 0.9rem;
}
.header-top .btn:hover { background: #A0D8EF; border-color: #A0D8EF; color: #1E3260; opacity: 1; }

.header-sns { display: flex; align-items: center; }
.header-sns img { width: 30px; height: 30px; object-fit: contain; }

/* 下段：グローバルナビ */
.global-nav .nav-list { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.global-nav .nav-list li a {
  display: block;
  padding: 4px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1E3260;
  white-space: nowrap;
}
.global-nav .nav-list li a:hover { color: var(--coral); opacity: 1; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none;
  cursor: pointer; flex-shrink: 0; padding: 0;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all .3s;
}

/* SP ナビ */
.sp-nav { display: none; background: var(--navy); }
.sp-nav.is-open { display: block; }

/* 親メニュー行（リンク＋トグルボタン横並び） */
.sp-nav .sp-nav-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sp-nav .sp-nav-list > li > a {
  flex: 1;
  display: block;
  padding: 14px 12px 14px 24px;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}

/* アコーディオン トグルボタン */
.sp-nav-toggle {
  background: none;
  border: none;
  border-left: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  padding: 0 18px;
  cursor: pointer;
  font-size: 11px;
  transition: transform .25s;
}
.sp-nav-toggle .fa-chevron-down { transition: transform .25s; }
.sp-nav-toggle.is-open .fa-chevron-down { transform: rotate(180deg); }

/* サブメニュー（インデント） */
.sp-nav .sub-menu {
  width: 100%;
  background: rgba(0,0,0,.18);
}
.sp-nav .sub-menu li {
  display: block;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sp-nav .sub-menu li a {
  display: block;
  padding: 11px 20px 11px 40px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
}
.sp-nav .sub-menu li a::before {
  content: '– ';
  opacity: .5;
}

/* SPナビ フッター（Instagram） */
.sp-nav-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.sp-nav-sns {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.sp-nav-sns .fa-instagram { font-size: 22px; }
.sp-nav-sns:hover { color: #fff; opacity: 1; }

/* ========================================
   Hero
======================================== */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  min-height: 480px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  overflow: hidden;
}


/* スライダー本体 */
.hero-slider {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  will-change: border-radius;
  animation: morph 20s ease-in-out infinite;
}

@keyframes morph {
  0%   { border-radius: 48% 22% 42% 28% / 18% 45% 22% 48%; }
  14%  { border-radius: 28% 48% 18% 45% / 48% 22% 42% 18%; }
  28%  { border-radius: 42% 18% 48% 22% / 22% 48% 18% 42%; }
  42%  { border-radius: 18% 42% 28% 48% / 45% 18% 48% 22%; }
  57%  { border-radius: 45% 28% 22% 42% / 28% 42% 22% 45%; }
  71%  { border-radius: 22% 45% 48% 18% / 42% 28% 45% 22%; }
  85%  { border-radius: 38% 22% 45% 28% / 22% 48% 28% 38%; }
  100% { border-radius: 48% 22% 42% 28% / 18% 45% 22% 48%; }
}

/* 各スライド */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* ========================================
   Catch Section
======================================== */
.catch-section {
  background: #1E3260;
  padding: 40px 0;
}
.catch-section .container { max-width: 1200px; }

.catch-inner {
  background: rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--coral);
  padding: 20px;
  border-radius: 4px;
}
.catch-inner .btn {
  width: 160px;
  height: 45px;
  padding: 0;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 15px;
}
.catch-inner .btn:hover { background: #A0D8EF; border-color: #A0D8EF; color: #1E3260; opacity: 1; }
.catch-btn-arrow {
  font-size: 28px;
  line-height: 1;
  display: inline-block;
}

.catch-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 18px;
}
.catch-heading em {
  font-size: 1.4rem;
  font-style: normal;
  color: #f9c46b;
  display: inline-block;
}

.catch-text {
  color: rgba(255,255,255,.92);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ========================================
   Center Image Section
======================================== */
.center-image-section {
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
  background: #fff;
}
.center-image-section img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* ========================================
   Trouble Section
======================================== */
.trouble-section { padding: 40px 0; background: #FEF8EE; }

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trouble-card {
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform var(--ease), box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.trouble-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: #A0D8EF;
}

.trouble-card__img {
  flex: 1;
  margin: 0;
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.trouble-card__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.trouble-card__body {
  flex: 1;
  padding: 10px 20px 16px;
}
.trouble-card__body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trouble-card__body h3 i { color: #E86E4A; flex-shrink: 0; }
.trouble-card__body p { font-size: 13px; color: var(--muted); line-height: 1.8; padding-left: 2px; }

/* ========================================
   Course Section
======================================== */
.course-section { padding: 40px 0; background: #fff; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.course-card {
  background: #FEF8EE;
  border: 1px solid #f0e8d8;
  border-radius: var(--r);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: #A0D8EF;
}

.course-card__num {
  display: block;
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--coral);
  margin-bottom: -14px;
}

.course-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.course-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.course-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.course-card__tag {
  font-size: 11px;
  font-weight: 700;
  background: #1E3260;
  color: #fff;
  padding: 3px 12px;
  border-radius: 15px;
}

/* ========================================
   News Section
======================================== */
.news-section { padding: 40px 0; background: #FEF8EE; }

.news-section__more { text-align: center; margin-top: 50px; }

.section-header__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.section-header__more:hover { color: var(--coral); }

.news-list {
  background: #fff;
  border-radius: 15px;
  padding: 0 24px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
}
.news-item:last-child { border-bottom: none; }

.news-item__date {
  font-size: 13px;
  color: #E86E4A;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.news-item__cat {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #993C1D;
  background: #FEE8DC;
  border: 1px solid #FEE8DC;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.news-item__link { font-size: 14px; color: var(--text); flex: 1; }
.news-item__link:hover { color: var(--coral); opacity: 1; }

/* ========================================
   Access Section
======================================== */
.access-section { padding: 40px 0; background: #fff; }

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.access-grid--single {
  grid-template-columns: 1fr;
  max-width: calc(50% - 12px);
  margin-bottom: 0;
}

.access-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #FEF8EE;
}

.access-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #993C1D;
  background: #FEE8DC;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 15px;
  margin: 12px 16px;
}

.access-card__map {
  padding: 0 20px;
  background: #FEF8EE;
  overflow: hidden;
}
.access-card__map iframe {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  border: none;
}

.access-card__info {
  padding: 14px 16px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #1E3260;
  background: #FEF8EE;
}
.access-card__info p + p { margin-top: 6px; }

/* ========================================
   Contact Section
======================================== */
.contact-section {
  padding: 40px 0;
  background: var(--cream);
}
.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form__field { width: 100%; }
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #e0d8cc;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--navy);
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form__input:focus,
.contact-form__textarea:focus { border-color: #A0D8EF; }
.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: #aaa; }
.contact-form__textarea {
  height: 120px;
  resize: vertical;
}
.contact-form__checkboxes {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-form__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
}
.contact-form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--coral);
  cursor: pointer;
}
.contact-form__submit { text-align: center; margin-top: 8px; }
.contact-form__btn {
  width: 200px;
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 24px;
  border: none;
  cursor: pointer;
}
.contact-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}
.contact-message--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.contact-message--error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ========================================
   Reservation Form
======================================== */
.res-pref {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.res-pref__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.res-req {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.res-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23374151' d='M8 10L3 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.res-error {
  color: #c62828;
  font-size: 13px;
  min-height: 18px;
}

/* ========================================
   Brochure Thanks Page
======================================== */
.brochure-thanks {
  text-align: center;
  padding: 64px 16px;
  max-width: 560px;
  margin: 0 auto;
}
.brochure-thanks__icon {
  font-size: 56px;
  color: #2e7d32;
  margin-bottom: 24px;
}
.brochure-thanks__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.brochure-thanks__msg {
  color: #555;
  line-height: 1.8;
  margin-bottom: 32px;
}
.brochure-thanks__downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.brochure-thanks__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.brochure-thanks__btn:hover { opacity: .85; }
.brochure-thanks__no-pdf {
  color: #777;
  font-size: 14px;
}
.brochure-thanks__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background: var(--navy);
  color: var(--white);
}

/* サイトマップ */
.footer-sitemap { padding: 52px 0 40px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 72px;
  justify-content: center;
}

.footer-col__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col__list li a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.footer-col__list li a:hover { color: var(--white); }

.footer-col--standalone .footer-col__list { gap: 18px; }
.footer-col--standalone .footer-col__list li a {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

/* 区切りライン */
.footer-divider { height: 2px; background: var(--coral); }

/* ボトム */
.footer-bottom { padding: 28px 0 24px; text-align: center; }

.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 14px;
}
.footer-legal li { display: flex; align-items: center; }
.footer-legal li + li::before { content: '|'; margin: 0 16px; color: rgba(255,255,255,.4); font-size: 12px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

.footer-company {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-company:hover { color: var(--white); }

.copyright {
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* ========================================
   Single Post
======================================== */
.single-main {
  padding: 64px 0 80px;
  background: #fff;
  min-height: 60vh;
}

.single-post {
  padding: 0;
}

.single-post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.single-post__date {
  font-size: 13px;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.single-post__cat {
  font-size: 11px;
  font-weight: 700;
  color: #993C1D;
  background: #FEE8DC;
  padding: 2px 10px;
  border-radius: 10px;
}

/* ========================================
   Page (固定ページ)
======================================== */
.page-main {
  padding: 64px 0 80px;
  background: #fff;
  min-height: 60vh;
}
.page-post__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 16px;
  margin-bottom: 28px;
}
.page-post__thumb {
  max-width: 600px;
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
}
.page-post__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.page-post__content { line-height: 1.8; }
.page-post__content p { margin-bottom: 1.2em; }
.page-post__content h2 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 2em 0 0.8em; }
.page-post__content h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 1.6em 0 0.6em; }
.page-post__content img { max-width: 100%; border-radius: 8px; margin: 1em 0; }
.page-post__content a { color: var(--coral); text-decoration: underline; }

/* ========================================
   Facility（施設紹介パターン）
======================================== */
.page-post__content .facility-container {
  align-items: flex-start;
  max-width: none !important;
}
.page-post__content .facility-card {
  width: 90% !important;
  max-width: none !important;
}

/* ========================================
   Media Row（固定ページ用 2列カード行）
======================================== */
.media-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
  row-gap: 24px;
  margin-bottom: 40px;
}
.media-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #FEF8EE;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  text-decoration: none;
  border: 1px solid #e8e8e8;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  border-color: #A0D8EF;
}
/* page-post__content の a スタイルを上書き */
.page-post__content a.media-card {
  text-decoration: none;
  color: #1E3260;
}
.page-post__content a.media-card p {
  text-decoration: none;
  margin-bottom: 6px;
}
.media-card__img {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 108px;
  overflow: hidden;
  border-radius: 8px;
}
.media-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  border-radius: 0;
  transition: transform 0.3s;
}
.media-card:hover .media-card__img img {
  transform: scale(1.04);
}
/* WordPress image ブロックが <figure> で包んだ場合の対応 */
.media-card > figure {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 108px;
  overflow: hidden;
  border-radius: 8px;
  margin: 0;
}
.media-card > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  border-radius: 0;
  transition: transform 0.3s;
}
.media-card:hover > figure img {
  transform: scale(1.04);
}
.media-card > figure figcaption {
  display: none;
}
.media-card__body {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 108px;
  padding: 14px 0 14px;
  overflow: hidden;
}
.media-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E3260;
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.media-card__title i {
  color: var(--coral);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.media-card__desc {
  font-size: 0.82rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* ========================================
   Feature Section（固定ページ用カードグリッド）
======================================== */
.section-feature {
  padding: 56px 0;
}
.section-feature .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}
.section-feature .section-lead {
  font-size: 0.9rem;
  line-height: 1.9;
  text-align: center;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 40px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.card:hover .card-img img {
  transform: scale(1.04);
}
.card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 50, 96, 0.82);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.4;
}
.card-label span {
  color: var(--coral);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-left: 8px;
}
.card-desc {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text);
  padding: 14px 16px 18px;
}

/* ========================================
   Archive Page
======================================== */
.archive-main {
  padding: 64px 0 80px;
  background: #fff;
  min-height: 60vh;
}
.archive-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--coral);
}
.archive-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.archive-title i {
  color: var(--coral);
  margin-right: 6px;
}
.archive-description {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
}
.archive-list {
  background: #fff;
}
.archive-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.archive-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.archive-pagination .page-numbers {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: #A0D8EF;
  color: #1E3260;
  border-color: #A0D8EF;
}
.archive-empty {
  text-align: center;
  color: #666;
  padding: 40px 0;
}

.single-post__categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.single-post__categories-label {
  font-size: 0.8rem;
  color: #666;
}
.single-post__cat-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #993C1D;
  background: #FEE8DC;
  padding: 3px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.single-post__cat-link:hover {
  background: var(--coral);
  color: #fff;
}

.single-post__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--coral);
}

.single-post__thumb {
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
  max-width: 600px;
}
.single-post__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post__content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text);
}
.single-post__content p { margin-bottom: 1.2em; }
.single-post__content h2 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 2em 0 0.8em; }
.single-post__content h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 1.6em 0 0.6em; }
.single-post__content img { max-width: 100%; border-radius: 8px; margin: 1em 0; }
.single-post__content a { color: var(--coral); text-decoration: underline; }

.single-post__footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ========================================
   Responsive – Tablet
======================================== */
@media (max-width: 1024px) {
  .global-nav .nav-list li a { font-size: 15px; padding: 4px 6px; }
}

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

/* ========================================
   Responsive – Mobile
======================================== */
@media (max-width: 768px) {
  /* Header */
  .header-inner {
    justify-content: space-between;
    padding: 0 16px;
  }
  .header-right { display: none; }
  .hamburger    { display: flex; margin-left: auto; }

  /* Hero: スマホで余白を詰める */
  .hero-section {
    overflow: hidden;
    padding: 16px 12px;
    min-height: unset;
  }
  .hero-slider { width: 100%; }

  /* Sections */
  .trouble-grid { grid-template-columns: 1fr; }
  .course-grid  { grid-template-columns: 1fr; }

  .access-grid  { grid-template-columns: 1fr; }
  .access-grid--single { max-width: 100%; }

  .news-item { flex-wrap: wrap; gap: 4px 12px; }
  .news-item__link { flex: 0 0 100%; }

  .catch-section { padding: 40px 0; }

  .trouble-section,
  .course-section,
  .news-section,
  .access-section,
  .contact-section { padding: 40px 0; }

  .section-header { margin-bottom: 36px; }
  .contact-form__row { grid-template-columns: 1fr; }

  /* Footer: 大見出しのみ縦並び */
  .footer-sitemap { padding: 24px 0 16px; }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 0;
    justify-content: stretch;
  }
  .footer-col__title {
    padding: 12px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
  }
  .footer-col__list { display: none; }

  /* standalone列（先生紹介・よくある質問・採用情報）は大見出しと同スタイルで表示 */
  .footer-col--standalone .footer-col__list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .footer-col--standalone .footer-col__list li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .footer-col--standalone .footer-col__list li:last-child a {
    border-bottom: none;
  }

  /* Footer bottom: 各項目を1行ずつ */
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 0;
    gap: 10px;
    margin-bottom: 16px;
  }
  .footer-legal li + li::before { display: none; }
  .footer-legal a { font-size: 12px; }
  .footer-company { margin-bottom: 8px; font-size: 12px; }

  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-feature .section-title { font-size: 1.2rem; }
  .media-row { grid-template-columns: 1fr; gap: 14px; }
  .media-card__img { aspect-ratio: 16 / 9; }
  .media-card__body { padding: 14px 16px 18px; }
  .section-feature .section-lead { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .course-card { padding: 20px; }
  .btn-lg { padding: 14px 40px; font-size: 15px; }
}

/* ========================================
   Back to Top Button
======================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background 0.2s;
  z-index: 999;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: #d45a38;
}

/* ==========================================
   学校サイト用 カスタムテーブル共通スタイル（修正版）
========================================== */
.custom-school-table {
    margin: 2rem 0 !important;
}

.custom-school-table table {
    border-collapse: collapse !important;
    width: 100% !important;
    /* 一番上と一番下だけを上品な太線にする */
    border-top: 2px solid #1e3a8a !important;
    border-bottom: 2px solid #1e3a8a !important;
    /* テーマ側がつける「外枠の縦線」を完全に消す */
    border-left: none !important;
    border-right: none !important;
}

.custom-school-table tr {
    /* 行と行の間の横線だけを入れる */
    border-bottom: 1px solid #e5e7eb !important;
}

.custom-school-table td {
    padding: 1.25rem 1rem !important;
    color: #1f2937 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    vertical-align: middle !important;
    /* 【最重要】テーマ側が各セルにつける「縦線や囲み線」を強制クリア */
    border: none !important; 
}

/* 左側カラム（見出し・年月）の基本共通設定 */
.custom-school-table tr td:first-child {
    width: 25% !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

/* 【学校概要用】左側カラムに背景色をつける設定 */
.custom-school-table.is-profile tr td:first-child {
    background-color: #f8fafc !important;
    font-size: 0.95rem;
}

/* 「予定」のグレーバッジ */
.custom-school-table .badge-scheduled {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    background-color: #f3f4f6;
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1;
}
/* ========================================
   Events Page
======================================== */
.events-main { padding-bottom: 80px; background: var(--cream); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease);
}
.event-card:hover { transform: translateY(-4px); }

.event-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.event-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.event-card:hover .event-card__thumb img { transform: scale(1.04); }

.event-card__body { padding: 16px 20px 22px; }

.event-card__date { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; }

.event-card__title { font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.event-card__title a { color: var(--navy); }
.event-card__title a:hover { color: var(--coral); opacity: 1; }

.event-card__excerpt { font-size: 13px; color: var(--muted); line-height: 1.75; }

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

/* ========================================
   Events Page (page-events.php)
======================================== */
.events-hero {
  background: var(--navy);
  padding: 56px 0 48px;
  text-align: center;
}
.events-hero__en {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.events-hero__title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.events-body { padding: 64px 0 80px; background: var(--cream); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

/* カード */
.ev-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color 0.2s;
}
.ev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  border-color: #A0D8EF;
}

.ev-card__thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eee;
}
.ev-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ev-card:hover .ev-card__thumb img { transform: scale(1.06); }

.ev-card__no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
}

.ev-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ev-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ev-card__date {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ev-card__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--coral);
  border: 1px solid var(--coral);
  padding: 2px 8px;
  border-radius: 20px;
}

.ev-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
}
.ev-card__title { color: var(--navy); }

.ev-card__excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 16px;
}

.ev-card__more {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  align-self: flex-start;
}
.ev-card:hover .ev-card__more { opacity: .9; }

/* ページネーション */
.events-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.events-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  border: 2px solid var(--border);
  background: var(--white);
  transition: all var(--ease);
}
.events-pagination .page-numbers.current,
.events-pagination .page-numbers:hover {
  background: #A0D8EF;
  border-color: #A0D8EF;
  color: #1E3260;
  opacity: 1;
}

.events-empty {
  text-align: center;
  color: var(--muted);
  padding: 80px 0;
  font-size: 15px;
}

/* レスポンシブ */
@media (max-width: 860px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .events-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ========================================
   Events Page v2 (page-events.php)
======================================== */

/* ページヘッダー */
.ev-page-header {
  background: var(--white);
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.ev-page-header__en {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ev-page-header__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #1A1A2E;
  line-height: 1.35;
  margin-bottom: 16px;
}
.ev-page-header__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* 一覧ラッパー */
.ev-list-wrap {
  background: var(--white);
  padding: 56px 0 80px;
}

/* 3列グリッド */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

/* カード */
.ev-card {
  background: #FEF8EE;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.ev-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

/* サムネイル */
.ev-card__img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ddd;
}
.ev-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ev-card:hover .ev-card__img-wrap img { transform: scale(1.05); }

.ev-card__noimg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--amber), var(--coral));
}

/* カード本文 */
.ev-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ev-card__date {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.ev-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}
.ev-card__title a {
  color: var(--coral);
}
.ev-card__title a:hover { opacity: .9; }

.ev-card__excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 16px;
}
.ev-card__readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  align-self: flex-start;
}
.ev-card__readmore:hover { color: var(--coral); opacity: 1; }

/* ページネーション */
.ev-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ev-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 8px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  border: 2px solid var(--border);
  background: var(--white);
  transition: all var(--ease);
}
.ev-pagination .page-numbers.current,
.ev-pagination .page-numbers:hover {
  background: #A0D8EF;
  border-color: #A0D8EF;
  color: #1E3260;
  opacity: 1;
}

.ev-empty {
  text-align: center;
  color: var(--muted);
  padding: 80px 0;
}

/* レスポンシブ */
@media (max-width: 900px) { .ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .ev-grid { grid-template-columns: 1fr; gap: 20px; }
  .ev-page-header { padding: 40px 16px 32px; }
}

/* ========================================
   Events Page (page-events.php) - Final
======================================== */
.ev-main { background: #fff; }

/* ページヘッダー */
.ev-header {
  padding: 64px 24px 48px;
  text-align: center;
  background: #fff;
}
.ev-header__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ev-header__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #1A1A2E;
  line-height: 1.35;
  margin-bottom: 16px;
}
.ev-header__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* グリッドエリア */
.ev-body { padding: 0 0 80px; background: #fff; }

.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

/* カード */
.ev-card {
  background: #FEF8EE;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.ev-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

/* アイキャッチ */
.ev-card__thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ddd;
}
.ev-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ev-card:hover .ev-card__thumb img { transform: scale(1.05); }

.ev-card__noimg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--amber), var(--coral));
}

/* カード本文 */
.ev-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.ev-card__date {
  font-size: 12px;
  color: #999;
}
.ev-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.ev-card__title a { color: var(--coral); }
.ev-card__title a:hover { opacity: .9; }

.ev-card__text {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  flex: 1;
}
.ev-card__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  align-self: flex-start;
  margin-top: 4px;
}
.ev-card__more:hover { color: var(--coral); opacity: 1; }

/* ページネーション */
.ev-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ev-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  border: 2px solid var(--border);
  background: #fff;
  transition: all var(--ease);
}
.ev-pager .page-numbers.current,
.ev-pager .page-numbers:hover {
  background: #A0D8EF;
  border-color: #A0D8EF;
  color: #1E3260;
  opacity: 1;
}

.ev-empty { text-align: center; color: var(--muted); padding: 80px 0; }

@media (max-width: 900px) { .ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ev-grid { grid-template-columns: 1fr; gap: 20px; } }

/* もっと見るボタン */
.ev-more-wrap {
  text-align: center;
  margin-top: 48px;
}
.ev-more-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 50px;
  transition: background var(--ease), opacity var(--ease);
  text-decoration: none;
}
.ev-more-btn:hover { background: var(--coral); opacity: 1; }

/* archive.php サムネイル付きリスト */
.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.news-item__thumb {
  flex-shrink: 0;
  width: 96px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  background: var(--border);
}
.news-item__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.news-item:hover .news-item__thumb img { transform: scale(1.06); }

.news-item__noimg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--amber), var(--coral));
}

.news-item__body {
  flex: 1;
  min-width: 0;
}

.news-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

/* ========================================
   追尾ボタン（右側固定）
======================================== */
.float-btns {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.float-btn {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  border-radius: 6px 0 0 6px;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.18);
  transition: opacity 0.2s, transform 0.2s;
}

.float-btn:hover {
  opacity: 0.88;
  transform: translateX(-3px);
  color: #fff;
}

.float-btn--navy  { background: var(--navy); }
.float-btn--coral { background: var(--coral); }

@media (max-width: 768px) {
  .float-btns {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
  }
  .float-btn {
    writing-mode: horizontal-tb;
    flex: 1;
    padding: 14px 8px;
    font-size: 13px;
    letter-spacing: 0.05em;
    border-radius: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    text-align: center;
  }
  .float-btn:hover {
    transform: none;
  }
}
