/* =====================================================================
   shared/area-top.css
   エリアのトップページ（/<エリア>/index.html、scripts/export/area_top_v2.py が出力）の見た目（2026-09-30新設）。
   土台は shared/spot-detail.css（sd-）。ここではトップページだけの部品（at-）を足す。
   方針はスポットページと同じ：白基調、装飾をなくし細い線と余白で区切る、画像の角丸は残す。
   ===================================================================== */
.at-main { max-width: 1080px; }
.at-root .sd-header-inner, .at-root .sd-footer-inner { max-width: 1080px; }

/* ---- ヒーロー：写真のモザイク ----
   PC：n7＝大1（2列×2段）＋小6（3列×2段）／n5＝大1＋小4（2×2）／single＝エリア写真1枚
   スマホ：大1（横いっぱい）の下に正方形を3列（n5は4枚目まで） */
.at-mosaic { display: grid; gap: 6px; height: 440px; }
.at-mosaic.n7 { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
.at-mosaic.n7 > .at-tile:first-child { grid-column: span 2; grid-row: span 2; }
.at-mosaic.n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.at-mosaic.n5 > .at-tile:first-child { grid-row: span 2; }
.at-mosaic.single { grid-template-columns: 1fr; }
.at-tile { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #f1f3f4; text-decoration: none; min-width: 0; }
.at-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
a.at-tile:hover img { transform: scale(1.03); }
.at-tile.broken img { visibility: hidden; }
.at-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 8px; display: flex; flex-direction: column;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.5)); color: #fff; line-height: 1.4; pointer-events: none; }
.at-tile .cap b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-tile .cap small { font-size: 11px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-tile:first-child .cap b { font-size: 14px; }
.at-mosaic-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.at-mosaic-foot a { font-size: 13px; color: var(--sd-navy); text-decoration: none; }
.at-mosaic-foot a:hover { text-decoration: underline; }

/* ---- 見出しと紹介文 ---- */
.at-intro { max-width: 760px; margin: 0; }
.at-eyebrow-top { margin-top: 28px; }
.at-eyebrow { font-size: 13px; color: var(--sd-text-sub); }
.at-intro h1 { font-size: 28px; line-height: 1.35; font-weight: 700; margin-top: 4px; letter-spacing: .01em; }
.at-lead { font-size: 16px; line-height: 1.9; margin-top: 16px; font-weight: 500; }
.at-copy { font-size: 14.5px; line-height: 1.95; margin-top: 12px; color: var(--sd-text-sub); overflow-wrap: anywhere; }
.at-note { font-size: 12.5px; color: var(--sd-text-sub); margin-top: 12px; }
.at-note span { display: block; margin-top: 2px; }
.at-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; background: var(--sd-navy); color: #fff !important;
  text-decoration: none; font-size: 15px; font-weight: 700; padding: 12px 24px; border-radius: 999px; }
.at-cta svg { width: 18px; height: 18px; }
.at-cta:hover { opacity: .9; }
.at-bottom { margin-top: 48px; text-align: center; }
.at-bottom .at-cta { margin-top: 0; }

/* ---- 動画（sd-vgrid を使う） ---- */
.at-vspot { font-size: 12px; color: var(--sd-navy); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-vhl { list-style: none; margin: 6px 0 0; padding: 0; }
.at-vhl li { font-size: 12px; color: var(--sd-text-sub); line-height: 1.6; display: flex; gap: 8px; }
.at-vhl .t { color: var(--sd-navy); font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.at-more { margin-top: 24px; text-align: center; }

/* ---- 観光スポット ---- */
.at-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.at-filter button { border: 1px solid var(--sd-line-strong); background: #fff; color: var(--sd-text); border-radius: 999px;
  padding: 4px 12px; font-size: 13px; cursor: pointer; line-height: 1.6; }
.at-filter button small { color: var(--sd-text-sub); margin-left: 6px; font-size: 11.5px; }
.at-filter button:hover { background: var(--sd-hover); }
.at-filter button.on { background: var(--sd-navy); border-color: var(--sd-navy); color: #fff; }
.at-filter button.on small { color: rgba(255,255,255,.8); }
.at-spots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--sd-line); }
.at-spot { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sd-line); text-decoration: none; color: inherit; min-width: 0; }
.at-spot .th { width: 104px; height: 78px; border-radius: 8px; overflow: hidden; background: var(--sd-chip); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #b9bdc1; }
.at-spot .th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.at-spot:hover .th img { transform: scale(1.05); }
.at-spot .th svg { width: 22px; height: 22px; }
.at-spot .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.at-spot .nm { font-size: 15px; font-weight: 700; line-height: 1.5; }
.at-spot:hover .nm { text-decoration: underline; }
.at-spot .mt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.at-spot .mt .sd-chip { font-size: 11.5px; padding: 1px 8px; }
.at-spot .ds { font-size: 12.5px; color: var(--sd-text-sub); line-height: 1.65; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.at-hidden { display: none !important; }

@media (max-width: 768px) {
  .at-mosaic, .at-mosaic.n5, .at-mosaic.n7 { height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: 4px; }
  .at-mosaic > .at-tile:first-child, .at-mosaic.n5 > .at-tile:first-child, .at-mosaic.n7 > .at-tile:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .at-mosaic > .at-tile:not(:first-child) { aspect-ratio: 1 / 1; }
  .at-mosaic > .at-tile.m-hide { display: none; }
  .at-mosaic.single > .at-tile:first-child { aspect-ratio: 16 / 10; }
  .at-tile:not(:first-child) .cap { padding: 18px 6px 5px; }
  .at-tile:not(:first-child) .cap b { font-size: 11px; }
  .at-tile:not(:first-child) .cap small { display: none; }
  .at-eyebrow-top { margin-top: 20px; }
  .at-intro h1 { font-size: 23px; }
  .at-lead { font-size: 15px; }
  .at-copy { font-size: 14px; }
  .at-cta { display: flex; justify-content: center; }
  .at-spots { grid-template-columns: minmax(0, 1fr); }
  .at-spot .th { width: 88px; height: 66px; }
}

/* ---- 見出しの横の地図ページの画面写真（2026-09-30、Koba氏） ----
   PC：左に紹介文、右に画面写真＋「地図で〇〇を探索する」。スマホ：紹介文の下。 */
.at-intro-wrap.has-map { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.at-intro-wrap.has-map .at-intro { max-width: none; }
.at-mapcard { margin-top: 9px; } /* 見出し（H1）の文字の上端に合わせる */
.at-mapcard-img { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--sd-line); aspect-ratio: 16 / 10; background: var(--sd-chip); }
.at-mapcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; transition: transform .4s ease; }
.at-mapcard-img:hover img { transform: scale(1.03); }
.at-mapcard-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.95);
  color: var(--sd-navy); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.at-mapcard-badge svg { width: 14px; height: 14px; }
.at-mapcard .at-cta { margin-top: 14px; display: flex; justify-content: center; }
@media (max-width: 900px) {
  .at-intro-wrap.has-map { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .at-mapcard { margin-top: 24px; }
}
