/*
Theme Name: 煌光学園グローバル
Theme URI: https://jobandeducation.poka-step.jp/
Author: Yuki Serizawa
Author URI: https://jobandeducation.poka-step.jp/
Description: 煌光学園グローバル公式サイト用テーマ
Version: 1.0.7
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(--cream);
}

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

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

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 a {
  display: block;
  padding: 13px 24px;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* ========================================
   Hero
======================================== */
.hero-section {
  width: 100%;
  height: 293px;
  display: flex;
  justify-content: center;
  background: var(--cream);
}
.hero-inner {
  width: 1200px;
  flex-shrink: 0;
  height: 293px;
  background-size: 1200px 293px;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ========================================
   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 0 40px 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
  background: #fff;
  overflow: hidden;
}
.center-image-section img {
  width: 1200px;
  max-width: 100%;
  height: auto;
  display: block;
  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: var(--coral);
}

.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: var(--coral);
}

.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-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: var(--coral); }
.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: #aaa; }
.contact-form__textarea {
  height: 120px;
  resize: vertical;
}
.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;
}

/* ========================================
   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; }

/* ========================================
   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: #E86E4A;
}
/* 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: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.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; }

  /* 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: 8px; }

  .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;
}
