/* 東北エリアページ固有スタイル。
   メインカラムの白背景やセクション区切り(下線)は top-renewal.css / guide-common.css の
   標準デザインをそのまま使い、ここでは東北ページ内の部品だけを定義する。
   （area-kansai.css / area-aichi.css と同じ方針。kokoroバッジ配色は area-hyogo.css と整合） */

/* mv */
.guide-page-header {
  /* background: url(/img/area/tohoku_mv.jpg) bottom center / cover no-repeat; */
}

/* 学校カードコンポーネント（inc/tool/school-card.php） */
.tohoku-pref-block .area-school-card + .area-school-card {
  margin-top: 18px;
}

/* 注目グループカード（マツキドライビングスクール / group_badge_type: kokoro） */
/* 県別ブロック */
.tohoku-pref-list {
  display: grid;
  gap: 34px;
}

.tohoku-pref-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.tohoku-pref-block__head h3 {
  margin: 0;
  color: var(--guide-ink);
  font-size: 1.12rem;
}

.tohoku-pref-block__link {
  color: var(--guide-red);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 料金確認テーブル */
/* 確認したいことリスト */
.tohoku-check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

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

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

a.guide-button {
  margin-top: 12px;
}

/* 観光・グルメ */
/* 近隣エリア */
.tohoku-nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tohoku-nearby-card {
  display: block;
  padding: 22px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tohoku-nearby-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(45, 52, 54, .1);
}

.tohoku-nearby-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--guide-ink);
  font-size: 1.05rem;
}

.tohoku-nearby-card span {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.8;
}

/* 掲載県・掲載校数
   2ブロックを同じ幅・同じ内部グリッドにして、dt と dd の左端をブロック間で揃える。 */
.tohoku-page-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  max-width: 420px;
  margin: 16px 0 0;
}

.tohoku-page-meta > div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.tohoku-page-meta dt {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.tohoku-page-meta dd {
  margin: 0;
  color: var(--guide-ink);
  font-size: 1.02rem;
  font-weight: 800;
}

.tohoku-school-count,
.tohoku-pref-block__count {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--guide-gold-pale);
  color: var(--guide-gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
}

/* 学校カード直下の stay / access リンク */
.tohoku-school-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 26px;
}

.tohoku-school-links a,
.tohoku-access-table a {
  color: var(--guide-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 宿泊・アクセス早見表 */
.tohoku-access-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.tohoku-access-table th,
.tohoku-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;
}

.tohoku-access-table thead th {
  background: var(--guide-soft);
  color: var(--guide-ink);
  font-size: 0.85rem;
  white-space: nowrap;
}

.tohoku-access-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--guide-soft);
}

.tohoku-access-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  border-right: 1px solid var(--guide-border);
  color: var(--guide-ink);
}

.tohoku-access-table tbody tr:last-child th,
.tohoku-access-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 所在地と周辺の環境 */
.tohoku-around-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.tohoku-around-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
}

.tohoku-around-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.tohoku-around-card p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

  .tohoku-access-table {
    min-width: 640px;
  }
}


/* 宿泊・アクセス早見表：PCで4列（教習所45% / 都道府県10% / 交通費20% / 宿泊・アクセス25%） */
.tohoku-access-table {
  table-layout: fixed;
}

.tohoku-access-table thead th:nth-child(1) { width: 45%; }
.tohoku-access-table thead th:nth-child(2) { width: 10%; }
.tohoku-access-table thead th:nth-child(3) { width: 20%; }
.tohoku-access-table thead th:nth-child(4) { width: 25%; }

.tohoku-access-table thead th:not(:first-child),
.tohoku-access-table tbody td {
  text-align: center;
}

.tohoku-access-table tbody th {
  text-align: left;
}

.tohoku-access-table__links a {
  margin: 2px 3px;
  white-space: nowrap;
}

/* 学校カード直下の宿泊・アクセスリンク：左端と行間を揃える */
.tohoku-school-links {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin: 10px 0 26px;
  padding-left: 0;
  line-height: 1.7;
}
