@charset "UTF-8";
/* =====================================================================
   みのかもを考古学しよう / 地区別（kouko/tiku/）
   2026.10 再構築
   共通CSS（com_item / com_layout / com_acce / header / footer）の
   CSSカスタムプロパティのみを参照する。色の直書きはしない。
   → 黒テーマ（html.theme-black）・黄テーマ（html.theme-yellow）に自動対応。
   ===================================================================== */

/* ---------- 本文共通 ---------- */
.kt-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}
.kt-body p { margin: 0 0 1em; color: var(--ink); line-height: 1.8; }
.kt-body h2, .kt-body h3 { line-height: 1.4; }

/* ページ見出しと本文の間隔 */
.kt-head { margin: 8px 0 24px; }

.kt-intro {
  max-width: 44em;
  margin: 0 0 28px;
  color: var(--ink-soft);
}

/* ---------- 共通フォーカス表示（キーボード操作） ---------- */
.kt-body a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- 全体マップ・遺跡位置図 ---------- */
.kt-map { margin: 0; }
.kt-map img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--paper-2);
}
.kt-map figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.kt-map__zoom {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--forest);
  font-weight: 700;
  text-underline-offset: 4px;
}
.kt-map__zoom:hover { color: var(--forest-2); }

/* ---------- 地区一覧（index） ---------- */
.kt-section-title {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 6px solid var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 700;
  color: var(--forest);
}

.kt-areas {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--gap);
}
.kt-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 20px;
  box-sizing: border-box;
}
.kt-card__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
}
.kt-card__count {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.kt-card__sites {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
/* ボタンは常にカード下端にそろえる */
.kt-card__btn { margin-top: auto; }

/* カードのリンクはボタンのみ */
.kt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: var(--forest-contrast);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.kt-btn:hover { background: var(--forest-2); border-color: var(--forest-2); }
.kt-btn--ghost {
  background: transparent;
  color: var(--forest);
}
.kt-btn--ghost:hover {
  background: var(--forest);
  color: var(--forest-contrast);
  border-color: var(--forest);
}

/* ---------- 地区ページ（詳細） ---------- */
.kt-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin-bottom: 32px;
}
@media (max-width: 860px) {
  .kt-detail { grid-template-columns: 1fr; }
}

.kt-sites {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: site;
  display: grid;
  gap: 8px;
}
.kt-sites li { counter-increment: site; }
.kt-sites a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  box-sizing: border-box;
}
.kt-sites a::before {
  content: counter(site);
  flex: none;
  min-width: 2em;
  height: 2em;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--forest);
  color: var(--forest-contrast);
  font-size: 0.85rem;
  font-weight: 700;
  box-sizing: border-box;
}
.kt-sites a:hover {
  border-color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 前後の地区へ ---------- */
.kt-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.kt-pager__spacer { flex: 1 1 0; }

/* ---------- 文字拡大・動きを減らす設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  .kt-btn { transition: none; }
}

/* ---------- 地区一覧ページ：左にカード、右にマップ（2026.10） ---------- */
.kt-index {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.kt-index .kt-areas {
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
}
.kt-index__map .kt-map img { width: 100%; height: auto; }
/* 右のマップは、カードを見ながらでも見える位置に追従 */
.kt-index__map {
  position: sticky;
  top: calc(var(--header-total-h, 102px) + 16px);
}
@media (max-width: 720px) {
  .kt-index { grid-template-columns: 1fr; }
  .kt-index__map { position: static; }
  .kt-index .kt-areas { margin-bottom: 32px; }
}

/* ---------- 全体図の地区名をリンクにする（2026.10） ---------- */
.kt-map__stage { position: relative; }
.kt-hot {
  position: absolute;
  display: block;
  border-radius: var(--radius-s);
  /* 見えないボタン。マウスを乗せる／キーボードで選ぶと枠が出る */
  background: transparent;
  box-sizing: border-box;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.kt-hot:hover {
  background: rgba(47, 74, 61, 0.16);
  box-shadow: 0 0 0 3px var(--forest);
}
.kt-hot:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  background: rgba(47, 74, 61, 0.16);
}
@media (prefers-reduced-motion: reduce) {
  .kt-hot { transition: none; }
}
