/* 四国エリアページ固有スタイル。
   メインカラムの白背景やセクション区切り(下線)は top-renewal.css / guide-common.css の
   標準デザインをそのまま使い、ここでは四国ページ内の部品だけを定義する。
   （area-kansai.css / area-chiba.css と同じ方針） */

.shikoku-school-card,
.shikoku-school-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.shikoku-school-card--featured {
  background: var(--guide-gold-pale);
  border-color: rgba(217, 169, 0, .35);
}

.shikoku-school-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 4px 0 12px;
  border-radius: 10px;
}

.shikoku-school-card__access {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--guide-soft);
  color: var(--guide-ink);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

.shikoku-school-card__head,
.shikoku-school-card__head {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.shikoku-school-card__pref {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f4f1e8;
  color: #625b48;
  font-size: 0.78rem;
  font-weight: 700;
}

.shikoku-school-card__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.shikoku-school-card__badge--kokoro {
  background: #fff1f2;
  color: #b14b57;
  border: 1px solid rgba(177, 75, 87, .22);
}

.shikoku-school-card__badge--museum {
  background: #eef6ff;
  color: #33618f;
  border: 1px solid rgba(51, 97, 143, .22);
}

.shikoku-school-card h3,
.shikoku-school-card h4,
.shikoku-school-card p,
.shikoku-school-card .guide-button {
  margin-top: 18px;
}

.shikoku-school-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.shikoku-school-card__actions .guide-button {
  margin-top: 0;
}

.shikoku-school-grid {
  display: grid;
  /* 一覧レイアウトのカード（.sl-card）はカード内が2カラムなので1列に並べる */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.shikoku-check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.shikoku-check-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  background: var(--guide-gold-pale);
  color: var(--guide-ink);
  line-height: 1.7;
}

.shikoku-check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 10px;
  height: 6px;
  border-left: 3px solid var(--guide-gold-dark);
  border-bottom: 3px solid var(--guide-gold-dark);
  transform: rotate(-45deg);
}

.shikoku-check-list + .guide-button {
  margin-top: 20px;
}

/* 観光・グルメ */
.shikoku-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shikoku-nearby-card {
  display: block;
  padding: 22px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.shikoku-nearby-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(45, 52, 54, .1);
}

.shikoku-nearby-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--guide-ink);
  font-size: 1.05rem;
}

@media (max-width: 767px) {
  .shikoku-school-card,
  .shikoku-pref-block {
    padding: 18px;
  }

  .shikoku-pref-block__head {
    display: grid;
    gap: 12px;
  }

  .shikoku-pref-block__link {
    width: 100%;
  }

  .shikoku-school-card__actions {
    display: grid;
  }

}

/* 3県カード */
.shikoku-pref-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.shikoku-pref-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--guide-border);
  border-top: 5px solid var(--guide-gold);
  border-radius: 16px;
}

.shikoku-pref-card h3 { margin: 0; font-size: 1.14rem; }
.shikoku-pref-card h3 a { color: var(--guide-ink); text-decoration: none; }

.shikoku-pref-card__count {
  margin: 6px 0 0;
  color: var(--guide-gold-dark);
  font-weight: 800;
}

.shikoku-pref-card__facts {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--guide-soft);
}

.shikoku-pref-card__facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.shikoku-pref-card__facts dt {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.shikoku-pref-card__facts dd {
  margin: 0;
  color: var(--guide-ink);
  font-size: 0.86rem;
  line-height: 1.6;
}

.shikoku-pref-card__links {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 16px;
}

.shikoku-pref-card__sub {
  color: var(--guide-ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 県内の掲載校比較表（SPは横スクロール＋教習所名を固定） */
.shikoku-compare-table,
.shikoku-access-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.shikoku-compare-table th,
.shikoku-compare-table td,
.shikoku-access-table th,
.shikoku-access-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--guide-border);
  line-height: 1.65;
  vertical-align: top;
  text-align: left;
  font-size: 0.92rem;
}

.shikoku-compare-table thead th,
.shikoku-access-table thead th {
  background: var(--guide-soft);
  color: var(--guide-ink);
  font-size: 0.85rem;
  white-space: nowrap;
}

.shikoku-compare-table thead th:first-child,
.shikoku-access-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--guide-soft);
}

.shikoku-compare-table tbody th,
.shikoku-access-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 210px;
  background: #fff;
  border-right: 1px solid var(--guide-border);
  color: var(--guide-ink);
}

.shikoku-compare-table tbody th a,
.shikoku-access-table tbody th a,
.shikoku-access-table tbody td a {
  color: var(--guide-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shikoku-compare-table__pref {
  display: block;
  margin-top: 4px;
  color: var(--guide-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.shikoku-compare-table tbody tr:last-child th,
.shikoku-compare-table tbody tr:last-child td,
.shikoku-access-table tbody tr:last-child th,
.shikoku-access-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 学校カード内の識別タグ（カード本文の一部。gridの子にはしない） */
.shikoku-school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.shikoku-school-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--guide-soft);
  color: var(--guide-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .shikoku-pref-cards {
    grid-template-columns: 1fr;
  }

  .shikoku-compare-table,
  .shikoku-access-table {
    min-width: 640px;
  }
}


/* 県別比較表：PCの列幅を固定して「最短／卒業／日数」のような細切れ改行を防ぐ */
.shikoku-compare-table thead th:nth-child(1) { width: 30%; }
.shikoku-compare-table thead th:nth-child(2) { width: 22%; }
.shikoku-compare-table thead th:nth-child(3) { width: 18%; }
.shikoku-compare-table thead th:nth-child(4) { width: 30%; }

.shikoku-compare-table thead th,
.shikoku-compare-table tbody td {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.shikoku-compare-note {
  margin: 12px 0 0;
  color: var(--guide-muted);
  font-size: 0.88rem;
}

.shikoku-compare-note a {
  color: var(--guide-ink);
  font-weight: 700;
}

/* アクセス早見表：教習所 40% / 都道府県 15% / 交通費支給 25% / 詳細 20% */
.shikoku-access-table thead th:nth-child(1) { width: 40%; }
.shikoku-access-table thead th:nth-child(2) { width: 15%; }
.shikoku-access-table thead th:nth-child(3) { width: 25%; }
.shikoku-access-table thead th:nth-child(4) { width: 20%; }

/* 学校カード一覧：PC2列・SP1列。カード内部は縦積みのまま */
@media (max-width: 767px) {
  .shikoku-school-grid {
    grid-template-columns: 1fr;
  }

  .shikoku-school-grid > .area-school-card {
    width: 100%;
  }
}

/* ページヘッダーの掲載県・掲載校数。都道府県ページ（area-hokkaido.css の .hokkaido-page-meta）と同じピル型。 */
.shikoku-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.shikoku-page-meta > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--guide-soft);
  border: 1px solid var(--guide-border);
}

.shikoku-page-meta dt {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.shikoku-page-meta dd {
  margin: 0;
  color: var(--guide-ink);
  font-weight: 700;
}
