@charset "utf-8";

/* =========================== */
/* 🎨 カラーパレット（CSS変数） */
/* =========================== */
:root {
  --color-1: #F29BAB;   /* ライトピンク：メインカラー */
  --color-2: #A2D9CE;   /* ライトティール：サブカラー */
  --color-3: #F2EFDF;   /* ライトピーチ：背景色 */
  --color-4: #F1948A;   /* コーラル：アクセントカラー */
  --color-5: #A569BD;   /* パープル：追加アクセント */

  /* テキスト・UI用 */
  --color-text: #2d2926;
  --color-text-secondary: #5a4f46;
  --color-border: #ddd6cd;
  --color-white: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-light: #faf8f5;

  --color-1-dark: #e07f95;   /* color-1のホバー用（ダーク） */
  --color-sage: #6b9e84;     /* セージグリーン */
  --color-forest: #0F4C3A;   /* ダークフォレスト */

  /* 旧カラー → 新カラーへの対応（移行用） */
  --primary: var(--color-1);
  --primary-light: var(--color-2);
  --accent: var(--color-4);
  --bg: var(--color-3);

  /* ボタン統一トークン */
  --btn-color: #F29BAB;
  --btn-color-hover: #e07f95;
  --btn-color-active: #d4697e;
  --btn-radius: 16px;
  --btn-border: 1px solid #F29BAB;
  --btn-border-inactive: 1px solid #E8E1D5;
  --btn-transition: all 0.25s ease;
  --btn-hover-transform: translateY(-2px);
  --btn-font-size: 14px;
  --btn-font-weight: 600;
  --btn-padding: 8px 20px;
  --btn-padding-sm: 6px 14px;
}

/* =========================== */
/* 🌟 共通設定 */
/* =========================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', YuGothic, Meiryo, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-3);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* スマホサイズではパディングを調整 */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
}

/* =========================== */
/* 🌟 ヘッダー (Glassmorphism) */
/* =========================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1240;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-img:hover {
  transform: rotate(5deg) scale(1.08);
}

.site-header nav {
  flex: 1 1 auto;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-header nav ul li {
  display: inline-block;
  margin: 0 5px;
}

.site-header nav ul li a {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  /* Warm Brown */
  text-decoration: none;
  padding: 8px 12px;
  white-space: nowrap;
  position: relative;
  transition: color 0.3s ease;
}

.site-header nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -4px;
  left: 50%;
  background: var(--color-1);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.site-header nav ul li a:hover {
  color: var(--color-1);
}

.site-header nav ul li a:hover::after {
  width: 100%;
}

/* =========================== */
/* 🌟 メインエリア */
/* =========================== */
.main-column {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.left-column {
  flex: 3;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 30px;
  position: relative;
  /* Fixed coordinate origin for map labels */
}

.right-column {
  flex: 1;
  width: auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

h1,
h2,
h3 {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

section,
.map-section,
#prefecture-list,
#tab-menu,
#sub-tab-menu,
.card-container {
  margin-top: 16px;
}

/* =========================== */
/* 📍 現在地周辺から探すボタン */
/* =========================== */
.find-nearby-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-1);
  color: white;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-weight: var(--btn-font-weight);
  font-size: var(--btn-font-size);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(242, 155, 171, 0.3);
  transition: var(--btn-transition);
  margin-top: 12px;
}

.find-nearby-btn:hover {
  background: var(--btn-color-hover);
  transform: var(--btn-hover-transform);
  box-shadow: 0 6px 20px rgba(242, 155, 171, 0.4);
}

.find-nearby-btn .icon {
  font-size: 16px;
}

.nearby-search-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nearby-radius-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f6258;
  font-size: 14px;
  font-weight: 600;
}

.nearby-radius-control select {
  min-width: 116px;
  padding: 10px 42px 10px 18px;
  border-radius: 22px;
  border: 1px solid rgba(175, 203, 190, 0.65);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 6.75L9 11.25L13.5 6.75' stroke='%234A3F35' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
  color: #4a3f35;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.nearby-radius-control select:focus {
  outline: none;
  border-color: var(--btn-color);
  box-shadow: 0 0 0 3px rgba(242, 155, 171, 0.14);
}

/* =========================== */
/* 🔍 検索＆フィルターコントロール */
/* =========================== */
.search-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed rgba(242, 155, 171, 0.3);
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f6258;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.sort-control select {
  min-width: 160px;
  padding: 10px 56px 10px 24px;
  border-radius: 24px;
  border: 1px solid rgba(175, 203, 190, 0.5);
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 6.75L9 11.25L13.5 6.75' stroke='%234A3F35' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 18px 18px;
  color: #4a3f35;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.sort-control select:focus {
  outline: none;
  border-color: var(--btn-color);
  box-shadow: 0 0 0 3px rgba(242, 155, 171, 0.15);
  background-color: #fff;
}

.search-icon {
  position: absolute;
  left: 15px;
  font-size: 16px;
  pointer-events: none;
}

#free-word-search {
  width: 100%;
  padding: 12px 20px 12px 42px;
  border-radius: 30px;
  border: 1px solid rgba(175, 203, 190, 0.5);
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  color: #4a3f35;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

#free-word-search:focus {
  outline: none;
  border-color: var(--btn-color);
  box-shadow: 0 0 0 3px rgba(242, 155, 171, 0.15), inset 0 2px 5px rgba(0, 0, 0, 0.02);
  background: #fff;
}

#free-word-search::placeholder {
  color: #a8b8b0;
}

.clear-filters {
  background: #fff;
  color: var(--btn-color);
  border: 1px solid var(--btn-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--btn-transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.clear-filters:hover {
  background: var(--btn-color);
  color: #fff;
  transform: var(--btn-hover-transform);
  box-shadow: 0 4px 10px rgba(242, 155, 171, 0.3);
}

/* =========================== */
/* 🌟 ボタン設定 (地域＆カテゴリ) */
/* =========================== */
#tab-menu button,
.sub-category {
  padding: var(--btn-padding-sm);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border: var(--btn-border-inactive);
  background: #fff;
  color: #3D3D3D;
  border-radius: var(--btn-radius);
  cursor: pointer;
  box-shadow: none;
  transition: var(--btn-transition);
  margin: 4px;
}

#tab-menu button:hover,
.sub-category:hover {
  background: var(--btn-color);
  color: #fff;
  border-color: var(--btn-color);
  transform: var(--btn-hover-transform);
  box-shadow: 0 4px 12px rgba(242, 155, 171, 0.3);
}

#tab-menu button.active,
.sub-category.active {
  background: var(--btn-color);
  color: #fff;
  border-color: var(--btn-color);
  box-shadow: 0 4px 12px rgba(242, 155, 171, 0.3);
}

#sub-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

/* =========================== */
/* 🌟 地図・ポップアップエリア */
/* =========================== */
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 515 / 532;
}

.map-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
}

.region-label {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--color-1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  transition: var(--btn-transition);
}

.region-label:hover {
  background: var(--btn-color-hover);
  transform: translate(-50%, -50%) scale(1.05) translateY(-2px);
  box-shadow: 0 8px 16px rgba(242,155,171,0.3);
  color: #fff;
}

.pref-popup {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 12px;
  min-width: 100px;
  max-width: 150px;
  display: none;
  z-index: 100;
  font-size: 15px;
  animation: fadeIn 0.3s ease;
}

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

.pref-popup li {
  padding: 8px 12px;
  text-align: center;
  margin: 4px 0;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  color: #4a3f35;
  transition: var(--btn-transition);
}

.pref-popup li:hover {
  background: var(--color-1);
  color: #fff;
  transform: translateX(4px);
}

/* =========================== */
/* 🌟 スマホ時の都道府県リスト */
/* =========================== */
#prefecture-list {
  display: none;
}

.prefecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.prefecture-item,
.prefecture-grid li {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.prefecture-item:hover,
.prefecture-grid li:hover {
  background: var(--btn-color);
  transform: var(--btn-hover-transform);
  box-shadow: 0 4px 12px rgba(242, 155, 171, 0.3);
  color: #fff;
  border-color: var(--btn-color);
}

.arrow {
  color: #a0aec0;
  font-size: 18px;
  transition: transform 0.3s;
}

.prefecture-item:hover .arrow,
.prefecture-grid li:hover .arrow {
  transform: translateX(4px);
  color: #0F4C3A;
}

.pref-region-header {
  font-size: 16px;
  color: var(--color-1);
  margin-top: 24px;
  margin-bottom: 12px;
  border-bottom: 2px solid #ede9de;
  text-align: left;
  padding-bottom: 4px;
}

/* =========================== */
/* 🌟 SP：都道府県リストをチップ表示に圧縮（T2・2026-09-19） */
/* フッター .seo-pref-links-list a のチップ意匠を踏襲。 */
/* #prefecture-list にスコープし、PC用popup(.prefecture-item)や */
/* .prefecture-grid li の既存見た目には影響させない。 */
/* =========================== */
@media (max-width: 768px) {
  #prefecture-list .pref-region-header {
    font-size: 13px;
    color: var(--color-forest);
    margin-top: 16px;
    margin-bottom: 8px;
    padding-bottom: 2px;
  }

  #prefecture-list .prefecture-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  #prefecture-list .prefecture-item {
    box-sizing: border-box; /* min-height 36px を枠線・余白込みで効かせる */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    padding: var(--btn-padding-sm);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--btn-radius);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
  }

  #prefecture-list .prefecture-item:hover {
    background: var(--color-white);
    border-color: var(--color-1);
    color: var(--color-1);
    transform: none;
    box-shadow: none;
  }

  #prefecture-list .arrow {
    display: none;
  }
}

/* =========================== */
/* 🌟 検索結果の見出し・件数表示 */
/* =========================== */
.search-results-wrapper {
  display: flex;
  flex-wrap: wrap;            /* 幅が足りないときはページャを次の行へ */
  align-items: center;
  gap: 12px 16px;
  margin: 20px 0 25px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(107, 158, 132, 0.2);
}

.search-results-wrapper h2 {
  flex: 1 1 auto;             /* 見出しは本来の幅を確保。入り切らないときはページャが次の行へ */
  min-width: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.search-results {
  flex: 0 0 auto;
  white-space: nowrap;        /* 「24 件」を1行に固定 */
  font-size: 28px;
  /* 件数を大きくして目立たせる */
  font-weight: 800;
  color: var(--color-4);
  /* アクセントカラー */
}

.search-results-wrapper .pagination {
  flex: 0 1 auto;
  margin-top: 0;
  margin-left: auto;          /* 右端に寄せる。入り切らなければ次の行へ */
  justify-content: flex-end;
}

/* 内部データ保持用の選択地域ラベルは画面上から非表示にする */
#selected-prefecture-label {
  display: none;
}

/* =========================== */
/* 🧭 初回案内パネル（地域未選択時） */
/* =========================== */
.search-guide {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 32px 20px;
  margin: 16px 0; /* PC: 都道府県セクション（#classroom-map）の直上 */
  text-align: center;
}

@media (max-width: 768px) {
  /* スマホ: ロケーションバー（範囲／現在地）の直上。上下左右とも同じ余白で白いバーと離す */
  .search-guide {
    margin: 16px;
  }
}

.search-guide-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-forest);
}

.search-guide-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.search-guide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.search-guide-btn {
  margin-top: 0;
  justify-content: center;
  padding: 14px 28px;
}

.search-guide-btn--sub {
  background: var(--color-white);
  color: var(--btn-color-hover);
  border: var(--btn-border);
  box-shadow: none;
}

.search-guide-btn--sub:hover {
  background: var(--color-bg-light);
  color: var(--btn-color-active);
  box-shadow: none;
}

@media (max-width: 480px) {
  .search-guide {
    padding: 24px 16px;
  }

  .search-guide-title {
    font-size: 20px;          /* 375pxで文節の途中で折れないサイズ */
    line-height: 1.4;
  }

  .search-guide-title .search-guide-phrase {
    display: inline-block;    /* 折り返しは文節の境目だけ */
  }

  .search-guide-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-guide-btn {
    width: 100%;
  }
}

/* =========================== */
/* 🌟 教室カードエリア */
/* =========================== */
.card-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 0;
  /* For Inner gradient border effect */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--color-1);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  opacity: 0.9;
  transition: width 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}

/* 申込掲載（source_association=依頼）のカード: ほんのりピンクの塗りで区別 */
.card--official {
  background: #FFF6F8;
}

/* 桜色背景では白コンテンツ箱の上角カーブが区切り線とずれて見えるため直角に */
.card--official .card-content {
  border-radius: 0 0 18px 18px;
}

.card:hover::before {
  width: 8px;
}

/* トップページの新着・お知らせ */
/* seo-intro と同じ content-box 幅（max-width:1100px＋padding16px）で枠の縦ラインを揃える */
.index-news {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.index-news-inner {
  padding: 14px 18px;
  background: var(--color-bg-card);
  border-radius: var(--btn-radius);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--color-text) 8%, transparent);
}

.index-news-inner h2 {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
}

.index-news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-news-item {
  min-width: 0;
}

.index-news-link,
.index-news-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--btn-radius) - 4px);
  color: var(--color-text);
  background: var(--color-bg-light);
}

.index-news-link {
  text-decoration: none;
  transition: var(--btn-transition);
}

.index-news-link:hover {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-2) 18%, var(--color-bg-light));
  transform: var(--btn-hover-transform);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-text) 8%, transparent);
}

.index-news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.index-news-date {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.index-news-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.index-news-category--new {
  color: var(--color-1-dark);
  background: color-mix(in srgb, var(--color-1) 20%, var(--color-bg-card));
}

.index-news-category--update {
  color: var(--color-sage);
  background: color-mix(in srgb, var(--color-2) 28%, var(--color-bg-card));
}

.index-news-category--notice {
  color: var(--color-5);
  background: color-mix(in srgb, var(--color-5) 16%, var(--color-bg-card));
}

.index-news-category--default {
  color: var(--color-text-secondary);
  background: var(--color-bg-card);
}

.index-news-title {
  color: var(--color-forest);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .index-news {
    margin: 16px auto;
    padding: 0 12px;
  }

  .index-news-inner {
    padding: 12px;
  }

  .index-news-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.card-container.sort-updated .card {
  animation: sort-card-enter 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--sort-delay, 0ms);
}

@keyframes sort-card-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card--deeplink-focus {
  animation: deeplink-focus 2s ease-out both;
}

@keyframes deeplink-focus {
  0% {
    outline: 0 solid color-mix(in srgb, var(--color-4) 0%, transparent);
    outline-offset: 0;
  }
  28% {
    outline: 5px solid color-mix(in srgb, var(--color-4) 30%, transparent);
    outline-offset: 2px;
  }
  100% {
    outline: 0 solid color-mix(in srgb, var(--color-4) 0%, transparent);
    outline-offset: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-container.sort-updated .card {
    animation: none;
  }

  .card--deeplink-focus {
    animation: none;
    outline: 3px solid var(--color-4);
    outline-offset: 2px;
  }
}

.card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 18px;
}

.card-content .left-column,
.card-content .right-column {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.card-content .left-column {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content .right-column {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
}

.card-content .right-column img {
  width: 100%;
  max-width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.card:hover .right-column img {
  transform: scale(1.05) rotate(1deg);
}

.card-content .description {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  text-align: center;
  width: 100%;
  line-height: 1.4;
}

/* 紹介文（description列あり）: 3行で省略し「続きを読む」で全文展開 */
.card-content .description-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-align: left;
  color: var(--color-forest);
}

.card-content .description-clamp.description-expanded {
  -webkit-line-clamp: unset;
}

/* 折りたたみ中は本文もクリックで展開できる */
.card-content .description-clamp:not(.description-expanded) {
  cursor: pointer;
}

/* 展開中は右カラムを広げて読みやすく */
.card-content:has(.description-expanded) .right-column {
  flex: 1 1 45%;
  width: auto;
}

.card-content .desc-toggle {
  background: none;
  border: none;
  padding: 6px 12px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-1-dark);
  cursor: pointer;
  text-decoration: underline;
}

.card-content .desc-toggle:hover {
  opacity: 0.7;
}

/* 保険: カード内の画像はマークアップ位置がずれても原寸で暴れないように */
.card img {
  max-width: 110px;
  height: auto;
}

/* 教室写真（image_url設定時）: クリックで拡大 */
.card-content .right-column img.card-photo {
  cursor: zoom-in;
  object-fit: cover;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox.open { display: flex; }

#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  animation: lbIn 0.2s ease;
}

@keyframes lbIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

#lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  opacity: 0.8;
}

#lightbox-close:hover { opacity: 1; }

/* カード内テキスト設定 */
.school-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  padding: 14px 24px 10px 20px;
  border-left: 4px solid var(--color-1);
  border-bottom: 1px solid rgba(107, 158, 132, 0.15);
}

.school-name a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.school-name a:hover {
  color: var(--color-1);
}

.new-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: var(--btn-radius);
  color: var(--color-4);
  background: color-mix(in srgb, var(--color-4) 20%, var(--color-bg-card));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

.type-container {
  display: flex;
  flex-wrap: wrap;
  /* 横並びにして、溢れたら改行 */
  gap: 8px;
  /* タグとタグの間の隙間 */
  margin-bottom: 12px;
}

.type-box {
  display: inline-block;
  padding: 4px 10px;
  border: none;
  background: rgba(162, 217, 206, 0.2);
  color: #2a7a6e;
  font-weight: 700;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  /* タグの中身の文字は折り返さない */
}

.address {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.address-link {
  color: var(--color-1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.address-link:hover {
  color: var(--color-1-dark);
  text-decoration: underline;
}

.no-address,
.no-homepage {
  color: #b0a8a0;
  font-style: italic;
  font-size: 14px;
}

/* 電話・HPボタン横並びラッパー */
.tel-hp-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

/* 電話ボタン */
.tel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--btn-color);
  background: #fff;
  border: 1px solid var(--btn-color);
  border-radius: var(--btn-radius);
  text-decoration: none;
  box-shadow: none;
  transition: var(--btn-transition);
}

.tel-link::before {
  content: "";
}

.tel-link:hover {
  background: var(--btn-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 155, 171, 0.3);
}

/* 電話番号なし: HP文言と同じ薄いテキスト（ボタン風にしない） */
.tel .tel-note.tel-wanted {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  color: #a39585;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.tel-link.tel-none {
  background: #f7f3ef;
  color: #8c7f70;
  border-color: #e8e0d5;
  box-shadow: none;
  font-weight: 500;
  cursor: default;
}

.tel-link.tel-none:hover {
  background: #f7f3ef;
  color: #8c7f70;
  border-color: #e8e0d5;
  transform: none;
  box-shadow: none;
}

/* HP Button */
.homepage-link {
  margin-top: 0;
}

.homepage-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--btn-color);
  border-radius: var(--btn-radius);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(242, 155, 171, 0.25);
  transition: var(--btn-transition);
}

.homepage-link a:hover {
  background: var(--btn-color-hover);
  transform: var(--btn-hover-transform);
  box-shadow: 0 6px 16px rgba(242, 155, 171, 0.35);
}

/* HP不明 (情報提供のお願い) — ボタンではなく薄いテキスト */
.homepage-link .homepage-note.hp-wanted {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  color: #a39585;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

/* =========================== */
/* 🌟 ページネーション */
/* =========================== */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.pagination-bottom {
  margin-top: 24px;
  margin-bottom: 20px;
}

/* 数字ボタン */
.pagination button {
  background: #fff;
  color: #2D2926;
  border: 2px solid var(--color-border);
  padding: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover:not(.active):not(:disabled) {
  border-color: var(--btn-color);
  color: var(--btn-color);
}

.pagination button.active {
  background: var(--btn-color);
  color: #fff;
  border-color: var(--btn-color);
}

.pagination button:disabled {
  background: #f5f2ee;
  color: #c8bfb5;
  cursor: not-allowed;
  border-color: #e8e0d5;
}

/* 前へ・次へボタン */
.pagination .page-nav-btn {
  width: auto;
  min-width: 44px;
  height: 36px;
  padding: 0 14px;
  background: #fff;
  color: var(--btn-color);
  border-color: var(--btn-color);
  font-weight: 600;
}

.pagination .page-nav-btn:hover:not(:disabled) {
  background: var(--btn-color);
  color: #fff;
  opacity: 1;
}

.pagination .page-nav-btn:disabled {
  border-color: #e8e0d5;
  color: #c8bfb5;
  background: #f5f2ee;
}

/* =========================== */
/* 🌟 広告対応 */
/* =========================== */
.advertisement {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.4s ease;
  position: relative;
}

.advertisement::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.advertisement h2 {
  font-size: 18px;
  color: var(--color-forest);
  margin-bottom: 8px;
  font-weight: 700;
}

.advertisement h3 {
  font-size: 14px;
  color: #6b9e84;
  margin-bottom: 15px;
  line-height: 1.4;
}

.advertisement p {
  font-size: 13px;
  color: #4a3f35;
  margin-top: 15px;
  line-height: 1.5;
}

.advertisement:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}

.advertisement-link {
  display: block;
  text-decoration: none;
}

.ad-sidebar-heading {
  margin: 0 0 16px;
}

.ad-sidebar-heading span {
  color: var(--color-forest);
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ad-sidebar-heading p,
.affiliate-disclosure {
  color: #7d6f63;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.ad-label,
.pr-label {
  background: #f8f1e8;
  border-radius: 999px;
  color: #5a3428;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 10px;
  padding: 5px 9px;
}

.market-mini-cta {
  background: #fbf6ef;
  border-radius: 16px;
  margin: -10px 0 20px;
  padding: 18px;
}

.market-mini-cta h3 {
  color: #5a3428;
  font-size: 16px;
  margin: 0 0 8px;
}

.market-mini-cta p {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.market-mini-cta a {
  background: var(--color-1);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
}

.advertisement img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.advertisement:hover img {
  transform: scale(1.02);
}

/* =========================== */
/* 📋 関係者様へ セクション   */
/* =========================== */
.forschoolcontact {
  margin-top: 24px;
}

.message-box {
  border-top: 1px solid var(--color-border);
  background: rgba(162, 217, 206, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}

.message-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 10px 0;
}

.message-box .message-body {
  /* 背景は .message-box 全体に移動 */
}

.message-box .message-body p {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 8px 0;
}

.message-box .message-body p:last-of-type {
  margin-bottom: 10px;
}

.message-box .message-body a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #2d6b60;
  background: var(--color-2);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 2px 0 6px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(162, 217, 206, 0.4);
}

.message-box .message-body a::before {
  content: "✉";
  font-size: 11px;
}

.message-box .message-body a:hover {
  background: #8bcec3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(162, 217, 206, 0.5);
}

/* =========================== */
/* 🌟 フッター */
/* =========================== */
.site-footer {
  background: #ede9de;
  /* soft pastel background */
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0 0 20px 0;
  list-style: none;
}

.site-footer nav ul li a {
  font-size: 16px;
  font-weight: 600;
  color: #4a3f35;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer nav ul li a:hover {
  color: var(--color-1);
}

.site-footer p {
  color: #8c7b6c;
  font-size: 14px;
}

.site-footer .footer-disclosure {
  font-size: 12px;
  margin-top: 8px;
}


/* =========================== */
/* 🌟 スマホ対応 (Responsive Overrides) */
/* =========================== */
@media (min-width: 769px) {
  .card-content .right-column .homepage-link {
    display: none;
  }
}

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

  .main-column {
    flex-direction: column;
    padding: 10px 0;
    gap: 20px;
  }

  .left-column,
  .right-column {
    padding: 20px 15px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .site-header {
    flex-direction: column;
    padding: 10px 16px;
  }

  .logo-img {
    height: 36px;
  }

  .site-header nav {
    width: 100%;
  }

  .site-header nav ul {
    justify-content: flex-start;
    gap: 0;
    margin-top: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px 2px;
  }

  .site-header nav ul::-webkit-scrollbar {
    display: none;
  }

  .site-header nav ul li {
    margin: 0;
  }

  .site-header nav ul li a {
    font-size: 12px;
    padding: 5px 8px;
    white-space: nowrap;
  }

  .right-column img {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .map-wrapper,
  .map-container,
  .region-label,
  .pref-popup,
  .sub_tytle,
  #tab-menu {
    display: none;
  }

  #prefecture-list {
    display: block;
    margin-top: 20px;
  }

  /* フィルターボタン: margin削除してgapだけで間隔制御 */
  .sub-category {
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
  }

  #sub-tab-buttons {
    gap: 8px;
  }

  .prefecture-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .prefecture-item,
  .prefecture-grid li {
    padding: 12px 10px;
    font-size: 14px;
  }

  .search-results-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
  }

  .search-results-wrapper h2 {
    font-size: 20px;
  }

  .search-results {
    font-size: 24px;
  }

  .card-container {
    padding: 0;
  }

  .card-content {
    flex-direction: row;
    /* スマホでも左右2カラムを維持 */
    align-items: stretch;
    justify-content: flex-start;
    padding: 15px 20px 15px 15px;
    gap: 15px;
  }

  .card-content .left-column {
    padding: 0;
    flex: 1;
    align-items: flex-start;
  }

  .card-content .right-column {
    flex: 0 0 110px;
    /* 固定幅にして右端から少し離す */
    align-items: center;
    text-align: center;
    margin-top: 0;
  }

  .card-content .right-column img {
    margin: 0 auto 10px;
    width: 100%;
    max-width: 110px;
    height: auto;
  }

  .card-content .description {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    /* スマホではフォントサイズを小さく */
    max-width: 120px;
  }

  .card-content .description-clamp {
    text-align: left;
  }

  .card-content .description-expanded {
    max-width: none;
  }

  .school-name {
    font-size: 19px;
    text-align: left;
    margin: 0;
    padding: 15px 20px 10px 16px;
    border-left: 5px solid var(--color-1);
    border-bottom: 1px solid rgba(107, 158, 132, 0.2);
  }

  .type-container {
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 10px;
  }

  .type-box {
    margin: 0;
    font-size: 12px;
    padding: 3px 8px;
  }

  .address-tel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }

  .address {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
  }

  .tel-hp-wrapper {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .homepage-link {
    display: flex;
    justify-content: flex-start;
    width: auto;
  }

  .card-content .left-column .homepage-link {
    display: flex;
    justify-content: flex-start;
    width: auto;
  }

  .homepage-link a {
    padding: 8px 16px;
    font-size: 13px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination button {
    font-size: 14px;
    padding: 6px 12px;
    min-width: 36px;
  }

  /* スマホ版: PC版と同サイズに揃える */
  .tel-link {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 0;
  }

  .tel-link::before {
    content: "";
  }

  .tel-link::after {
    content: "";
  }

  .tel-link:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }
}

/* =========================== */
/* 🌟 ページトップへ戻るボタン */
/* =========================== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--color-4);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(241, 148, 138, 0.4);
  transition: var(--btn-transition);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  animation: bounceIn 0.5s ease;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(241, 148, 138, 0.6);
  background: #e8766b;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* =========================== */
/* 🗾 PC版 地図背景＋リストUI */
/* =========================== */

/* 表示切り替え */
.pc-only {
  display: block;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}

/* 全体：地図を背景に、リストを上に重ねる */
.map-list-layout {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #e8e0d0;
}

/* 地図背景 */
.map-list-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.map-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  opacity: 0.4;
  padding: 16px;
}

/* リスト部分 */
.map-list-left {
  position: relative;
  z-index: 1;
  padding: 4px 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  width: 100%;
}

/* 地方行 */
.region-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(237, 233, 222, 0.8);
  min-height: 40px;
}

.region-row:last-child {
  border-bottom: none;
}

/* 地方ラベル：角丸・やわらか */
.region-row-label {
  flex: 0 0 96px;
  background: rgba(112, 138, 88, 0.15);
  color: #4a6335;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 8px 6px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
  border-right: 2px solid rgba(112, 138, 88, 0.25);
}

/* 都道府県ボタン群 */
.region-row-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 10px;
  flex: 1;
}

/* PC版 都道府県ボタン */
.map-list-left .prefecture-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d4cec5;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #4a3f35;
  cursor: pointer;
  transition: var(--btn-transition);
  display: inline-flex;
  align-items: center;
}

.map-list-left .prefecture-item:hover {
  background: var(--btn-color);
  border-color: #708A58;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(112, 138, 88, 0.25);
}

.map-list-left .prefecture-item.active {
  background: #F2D64B;
  border-color: #F2D64B;
  color: #3D3D3D;
  font-weight: 700;
}

/* ============================================ */
/* 🎀 教室を探す ページ — Pencilデザイン適用   */
/* ============================================ */

/* ヒーローセクション（動画背景） */
.index-hero {
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: -85px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d8cbc1;
}

.index-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 720 / 406;
}

.index-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(89, 70, 58, 0.24);
}

.index-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 85px; /* ヘッダー分の高さ補正 */
}

.index-hero-title {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', YuGothic, Meiryo, 'Helvetica Neue', Arial, sans-serif;
  text-shadow: 0 2px 14px rgba(0,0,0,0.24);
  letter-spacing: 0.05em;
}

.index-hero-sub {
  display: block;
  font-size: 17px;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.24);
}

/* ヒーロー下部の紹介文（旧 seo-intro の本文を移設。箇条書きは廃止 2026-09-19） */
.index-hero-intro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 40px 24px 22px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  background: linear-gradient(to bottom, rgba(45,41,38,0) 0%, rgba(45,41,38,0.55) 100%);
}

@media (max-width: 768px) {
  .index-hero-intro {
    font-size: 13px;
    line-height: 1.7;
    padding: 36px 16px 18px;
    text-align: left;
  }
  .index-hero-intro br { display: none; } /* 狭幅では改行位置を自然な折り返しに任せる */
}

/* ロケーションバー（現在地ボタン + 選択地域ラベル） */
.index-location-bar {
  background: #fff;
  border-bottom: 1px solid #E8E1D5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 40px;
}

.index-location-bar .find-nearby-btn {
  background: #F29BAB;
  box-shadow: none;
  margin-top: 0;
  padding: 12px 28px;
}

.index-location-bar .find-nearby-btn:hover {
  box-shadow: none;
  background: #e07f95;
}

.distance-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #F2E7D8;
  color: #4A2F22;
  font-size: 13px;
  font-weight: 700;
}

.nearby-empty-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #F7EFE6;
  color: #5F4638;
  line-height: 1.8;
}

.index-region-label {
  font-size: 13px;
  color: #6B7280;
  font-weight: normal;
  background: none;
  border: none;
  padding: 0;
  min-height: unset;
}

/* 地方ラベル — Pencilスタイル（ピンク） */
.region-row-label {
  flex: 0 0 120px;
  background: transparent;
  color: #F29BAB;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 8px 10px 8px 0;
  align-self: center;
  border-right: none;
  letter-spacing: 0.02em;
}

/* 都道府県タグ — Pencilスタイル（丸め + #E8E1D5ボーダー） */
.map-list-left .prefecture-item {
  background: #FFFFFF;
  border: 1px solid #E8E1D5;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #3D3D3D;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
}

.map-list-left .prefecture-item:hover {
  background: #F29BAB;
  border-color: #F29BAB;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(242, 155, 171, 0.35);
}

/* map-section を非表示に（機能はロケーションバーに移動済み） */
.map-section {
  display: none;
}

/* 選択済みラベルの旧スタイルを上書き（highlight-labelは残す） */
#classroom-map .highlight-label {
  display: none;
}
/* 全国ボタン — 都道府県タグと完全同一スタイル */
.btn-all-japan {
  background: #FFFFFF;
  border: 1px solid #E8E1D5;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  line-height: inherit;
  color: #3D3D3D;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
}

.btn-all-japan:hover {
  background: #F29BAB;
  border-color: #F29BAB;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(242, 155, 171, 0.35);
}

.btn-all-japan.active {
  background: #F2D64B;
  border-color: #F2D64B;
  color: #3D3D3D;
  font-weight: 700;
}

.map-list-left .prefecture-item.active,
#prefecture-list .prefecture-item.active {
  background: #F2D64B;
  border-color: #F2D64B;
  color: #3D3D3D;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(212, 184, 0, 0.22);
}
/* =========================== */
/* ✨ ページ遷移フェード */
/* =========================== */
body.is-leaving {
  opacity: 0;
  transition: opacity 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: fadeIn 0.4s ease forwards;
}

/* Temporarily hide the column page from global navigation. */
.site-header nav li:has(a[href$="column.html"]),
.site-footer nav li:has(a[href$="column.html"]) {
  display: none !important;
}

/* =========================== */
/* 📱 スマホ：教室カードをフラット化 */
/* =========================== */
@media (max-width: 768px) {
  .card {
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
  }
  .card::before {
    display: none;
  }
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  .card-container > .card:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .card-content {
    background: transparent;
    border-radius: 0;
    padding: 12px 16px;
  }
  .school-name {
    border-left: 3px solid var(--color-1);
    border-bottom: none;
    padding: 12px 16px 8px 14px;
    font-size: 16px;
  }

  /* フッターナビをすっきり横並びに */
  .site-footer nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-footer nav ul li a {
    font-size: 14px;
  }
}

/* ===========================
   index hero: PC=動画 / モバイル=静止画像
=========================== */
.index-hero-mobile-img {
  display: none;       /* PCでは非表示 */
}

@media (max-width: 768px) {
  .index-hero-video {
    display: none;     /* モバイルでは動画を隠す */
  }
  .index-hero-mobile-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

/* =========================== */
/* 🔤 ヒーローの見出し・本文は文節単位で折り返す（手動brは使わない） */
/* =========================== */
.hero-phrase {
  display: inline-block;
}

/* 2026-10-15 ヘッダーのナビが 5 項目（練習ツール追加）になったので、400px 以下では 5 つを 1 行に収める
   （横スクロールのままだと「お問い合わせ」が画面の外に隠れる） */
@media (max-width: 400px) {
  .site-header nav ul { justify-content: space-between; padding: 0; }
  .site-header nav ul li a { font-size: 11px; padding: 5px 5px; }
}
