/* =====================================================================
   バリファン（balifan.jp） — 共通スタイル
   旧サイト（2012年版）の配色（紺の帯・水色のメニューと背景・白い本文の枠・オレンジの目印）を引き継ぎ、
   スマホでも崩れないようにしたもの. ビルド不要のプレーンな CSS.
   ===================================================================== */

:root {
  --text: #333333;
  --text-muted: #777777;
  --link: #1b6fb8;
  --teal: #22b1e8;           /* メニューの選択中・見出しの線（旧サイトの水色） */
  --teal-light: #9fdcf5;
  --navy: #0e1a4a;           /* 上の帯・フッター（旧サイトの紺） */
  --pale: #eaf7fd;
  --border: #cfe9f5;
  --red: #e41819;
  --orange: #f7931e;
  --sky: #b7e6fa;            /* 外側の背景 */
  --shell: 1080px;           /* 旧サイトは 1000px. 街のタブ（最大 9 つ）が 2 段にならないよう少し広げている */
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--link); }
a:hover { color: var(--orange); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

h1, h2, h3, p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 10; background: #fff; padding: 6px 10px; }

.count {
  display: inline-block;
  min-width: 1.6em;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--teal-light);
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  vertical-align: 1px;
}

.btn {
  display: inline-block;
  padding: 4px 22px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}
.btn:hover { background: #0a55c0; color: #fff; }

.empty { margin: 16px 0 8px; color: var(--text-muted); }

.view-more { margin: 8px 0; text-align: right; font-size: 13px; }

.lead { margin: 8px 0 12px; font-weight: bold; font-size: 16px; }

/* ------------------------------------------------------------- header */

.site-header { background: #fff; border-bottom: 3px solid var(--teal); }

.site-header__bar { background: var(--navy); }
.site-header__intro { max-width: var(--shell); margin: 0 auto; padding: 4px 16px; color: #fff; font-size: 12px; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header__logo img { display: block; }

/* --------------------------------------------------------- global nav */

.global-nav { flex: 1; min-width: 0; }
.global-nav__inner { display: flex; justify-content: flex-end; }
.global-nav li { flex: 1 1 0; max-width: 92px; }
.global-nav a {
  display: block;
  padding: 11px 2px 9px;
  border-left: 1px solid #dfe8ec;
  color: #222;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.global-nav li:last-child a { border-right: 1px solid #dfe8ec; }
.global-nav a:hover { background: var(--pale); color: #222; }
.global-nav a[aria-current="page"] { background: var(--teal); color: #fff; }

/* 本文の列が狭い幅では、メニューをロゴの下に回す */
@media (max-width: 1000px) {
  .site-header__inner { flex-wrap: wrap; padding-top: 8px; }
  .global-nav { flex-basis: 100%; }
  .global-nav__inner { justify-content: stretch; }
  .global-nav li { max-width: none; }
}

/* スマホでは横にはみ出さないよう、メニューを 4 列に折り返して全部見せる */
@media (max-width: 720px) {
  .global-nav__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px 0 8px; }
  .global-nav a,
  .global-nav li:last-child a {
    padding: 7px 2px 5px;
    border: 1px solid #dfe8ec;
    border-radius: 4px;
    white-space: normal;
    line-height: 1.3;
  }
}

/* ------------------------------------------------------------- layout */

body { background: var(--sky) linear-gradient(#e9f7fd, var(--sky) 480px) no-repeat; }

.page-bg { min-height: 50vh; }

.site-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 16px 30px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

/* 旧サイトと同じく、本文は白い枠に入れる */
.layout__main {
  padding: 14px 16px 18px;
  border-top: 3px solid var(--teal-light);
  background: #fff;
}

/* 本文の列が細くなりすぎる幅（タブが1段に入らない）では、サイドバーを本文の下に回す */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .site-main { padding: 12px 8px 24px; }
  .layout__main { padding: 12px 10px 16px; }
}

.section { margin: 24px 0; }
.panel { margin: 0 0 24px; }
.panel:last-child { margin-bottom: 0; }
.lead-text { margin: 10px 0; line-height: 1.9; }
.more { margin: 8px 0; text-align: right; font-size: 13px; }
.more a::before { content: "›"; display: inline-block; width: 14px; height: 14px; margin-right: 4px; border-radius: 50%; background: var(--link); color: #fff; font-size: 11px; line-height: 14px; text-align: center; }

/* ------------------------------------------------------------ headings */

.tagline,
.panel-title {
  position: relative;
  margin: 0 0 8px;
  padding: 4px 0 8px 32px;
  border-bottom: 1px dotted var(--teal-light);
  font-size: 20px;
  line-height: 1.4;
}
.tagline::before,
.panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px;
  height: 24px;
  border: 3px solid #d4f0fb;
  border-radius: 50%;
  background: var(--teal);
}
.panel-title--ribbon { padding-left: 42px; font-size: 17px; }
.panel-title--ribbon::before { top: -14px; width: 26px; height: 40px; border: 0; border-radius: 0; background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.panel-title--feature::before { background: var(--orange); border-color: #fde3c2; }
.panel-subtitle { margin: 14px 0 8px; font-size: 16px; }
.tagline a { text-decoration: none; }

.section-title {
  margin-bottom: 10px;
  padding: 0 0 4px 26px;
  border-bottom: 2px solid #ddd;
  font-size: 18px;
  line-height: 1.4;
  position: relative;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
}
.section-title--review::before { border-radius: 50% 50% 50% 2px; background: #e8534a; }
.section-title--globe::before { background: radial-gradient(circle at 35% 35%, #9fd6e2, var(--teal) 60%, #2f7f91); }
.section-title--map::before { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e8534a; }
.section-title--spot::before { border-radius: 3px; background: var(--navy); }

.sub-title { margin: 14px 0 8px; font-size: 15px; }

.breadcrumb { margin: 4px 0 12px; font-size: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: ">"; margin: 0 6px; color: #999; }
.breadcrumb span { color: var(--text-muted); }

/* ----------------------------------------------------- city sub nav */

/* カテゴリのタブ. PC では1段のタブ、スマホでは全部が見えるよう3列のボタンにする */
.subnav { margin: 10px 0 14px; border-bottom: 3px solid var(--teal); }
.subnav ul { display: flex; gap: 4px; }
.subnav li { flex: none; }
.subnav a {
  display: block;
  padding: 4px 12px 2px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: var(--pale);
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.subnav a:hover { background: #dcebec; }
.subnav a[aria-current="page"] { border-color: var(--teal); background: var(--teal); color: #fff; }
.subnav a[aria-current="page"] .count { background: #fff; color: var(--teal); }

@media (max-width: 720px) {
  .subnav { padding-bottom: 6px; }
  .subnav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  /* 幅が狭いときは件数を次の行に回し、ボタンからはみ出さないようにする */
  .subnav a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 4px;
    height: 100%;
    padding: 6px 4px 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 4px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }
  .subnav a .count { margin-left: 0; }
  .subnav__more { display: none; }
  .subnav a[aria-current="page"] { border-color: var(--teal); }
}

/* ----------------------------------------------------------- home */

.home-hero {
  position: relative;
  aspect-ratio: 1000 / 300;
  margin: -16px -16px 16px;
  background: url("/images/back/002.jpg") no-repeat center 30% / cover;
}

.home-hero__title {
  position: absolute;
  top: 18%;
  left: 5%;
  width: 46%;
  aspect-ratio: 483 / 95;
  overflow: hidden;
  background: url("/images/tx_topCopy.png") no-repeat left top / contain;
  color: transparent;
  font-size: 1px;
}

/* スマホではバナーが細くなりすぎて文字が読めないので、高さを出して見出しの画像を大きくする */
@media (max-width: 600px) {
  .home-hero { aspect-ratio: 1000 / 520; margin: -12px -8px 12px; }
  .home-hero__title { top: 10%; left: 4%; width: 88%; }
}

.home-latest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .home-latest { grid-template-columns: minmax(0, 1fr); }
}

.mini-review {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  grid-template-areas: "title title" "pic city" "pic text" "pic user";
  column-gap: 10px;
  align-content: start;
  padding: 8px 0 10px;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
  line-height: 1.5;
}
.mini-review__title { grid-area: title; margin-bottom: 4px; font-weight: bold; font-size: 15px; }
.mini-review__pic { grid-area: pic; }
.mini-review__pic img { width: 90px; height: 90px; object-fit: cover; border: 1px solid #ccc; padding: 2px; background: #fff; }
.mini-review__city { grid-area: city; text-align: right; font-size: 12px; }
.mini-review__text { grid-area: text; }
.mini-review__user { grid-area: user; text-align: right; font-size: 12px; }

.mini-reviews--wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  column-gap: 16px;
}

.home-photos__title { margin: 6px 0 8px; font-size: 14px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-grid a:hover img { opacity: 0.8; }

.city-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px 8px;
  margin-bottom: 16px;
}
.city-icons a { display: block; text-align: center; font-size: 12px; line-height: 1.4; }
.city-icons a > span { display: block; min-height: 1.4em; margin-bottom: 3px; }
.city-icons img { width: 70px; height: 70px; object-fit: cover; border: 1px solid #ccc; }

.region-tabs ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 0; border-bottom: 3px solid var(--teal); }
.region-tabs a { display: block; padding: 2px 10px; background: var(--pale); font-size: 13px; text-decoration: none; }
.region-tabs a:hover { background: var(--teal); color: #fff; }

.region {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--teal-light);
  border-top: 0;
  background: rgb(237 243 243 / 70%);
  scroll-margin-top: 10px;
}
.region__title { margin-bottom: 6px; color: var(--navy); font-size: 15px; }
.region__country { padding: 6px 0; border-top: 1px dotted #c9d8da; }
.region__country:first-of-type { border-top: 0; }
.region__country-name { font-weight: bold; }
.region__cities { display: flex; flex-wrap: wrap; gap: 0 14px; margin-left: 22px; font-size: 13px; }

/* ----------------------------------------------------------- city */

.city-about { display: flow-root; margin: 10px 0; }
.city-about img { float: left; width: 200px; margin: 0 14px 8px 0; border: 2px solid var(--teal); }

@media (max-width: 480px) {
  .city-about img { float: none; display: block; width: 100%; max-width: 320px; margin: 0 0 8px; }
}

.category-list li,
.link-list li { padding: 3px 0 3px 14px; position: relative; }
.category-list li::before,
.link-list li::before { content: "›"; position: absolute; left: 2px; color: var(--teal); }

.spot-list { border-top: 1px solid var(--link); }
.spot-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}
.spot-item__pic img { width: 100px; height: 100px; object-fit: cover; border: 1px solid #999; }
.spot-item__name { font-size: 16px; }
.spot-item__text { font-size: 13px; }

.spot-detail {
  margin: 0 0 16px;
  padding: 8px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--pale);
}
.spot-detail__head { padding-bottom: 6px; color: var(--text-muted); font-size: 13px; }
.spot-detail__main { padding: 12px 14px; background: #fff; }
.spot-detail__name { font-size: 22px; line-height: 1.35; color: var(--link); }
.spot-detail__en { margin-top: 2px; color: var(--text-muted); font-size: 13px; }
.spot-detail__body { display: flow-root; margin-top: 12px; line-height: 1.9; }
.spot-detail__pic { float: left; width: 200px; margin: 4px 16px 8px 0; padding: 2px; border: 1px solid #aaa; background: #fff; }
.spot-detail__info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 12px 0 0; padding: 8px 12px; background: var(--pale); font-size: 13px; }
.spot-detail__info dt { font-weight: bold; }
.spot-detail__info dd { margin: 0; }
.spot-detail .mini-map--wide { margin-top: 14px; }

@media (max-width: 480px) {
  .spot-detail__pic { float: none; display: block; width: 100%; max-width: 320px; margin: 0 0 8px; }
}

/* ------------------------------------------------ review (list/detail) */

.review {
  margin: 0 0 16px;
  padding: 8px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--pale);
}

.review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding-bottom: 6px;
  font-size: 13px;
}
.review__avatar { width: 25px; height: 25px; object-fit: cover; border: 1px solid #ccc; }
.review__date { margin-left: auto; color: var(--text-muted); }

.review__main { padding: 10px 12px; background: #fff; }
.review__title { font-size: 22px; line-height: 1.35; color: var(--link); }
.review__title a { text-decoration-thickness: 1px; }
.review__where { margin-top: 4px; font-size: 12px; text-align: right; }
.review__where img { vertical-align: 0; }

.review__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  margin-top: 10px;
}
.review__content:not(:has(.review__place)) { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 600px) {
  .review__content { grid-template-columns: minmax(0, 1fr); }
}

.review__text { line-height: 1.9; }
.review__more { white-space: nowrap; font-size: 13px; }

.review__photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.review__photos img { max-height: 160px; padding: 2px; border: 1px solid #aaa; background: #fff; }
.review__photos a:hover img { border-color: var(--orange); }

.review__place { font-size: 12px; }
.review__zoom { text-align: right; font-size: 11px; }
.review__address,
.review__url { margin-top: 4px; }

.review__stats {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dotted #ccc;
  font-size: 13px;
}
.review__stats span { font-weight: bold; }

.review__foot { margin-top: 8px; text-align: right; }

.stale-note { margin: -8px 0 16px; padding: 6px 10px; background: #fff8e8; color: #7a5a1c; font-size: 12px; }

/* ---------------------------------------------------------- comments */

.comments { margin: 20px 0; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee; }
.comment__avatar { width: 40px; height: 40px; object-fit: cover; }
.comment__meta { display: flex; gap: 10px; color: var(--text-muted); font-size: 12px; }

/* ---------------------------------------------------------------- map */

.guide-map { width: 100%; aspect-ratio: 2 / 1; min-height: 260px; border: 1px solid #999; background: #f5f5f5; }

.mini-map { width: 100%; height: 140px; border: 1px solid #999; background: #f5f5f5; }
.mini-map--wide { height: 260px; margin-top: 10px; }

.maplibregl-popup-content { padding: 10px; }
.map-info { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; max-width: 260px; font-family: var(--font); font-size: 12px; line-height: 1.5; }
.map-info img { width: 64px; height: 64px; object-fit: cover; border: 1px solid #aaa; }
.map-info__category { color: var(--text-muted); }
.map-info__title { display: block; font-weight: bold; font-size: 14px; color: var(--link); }
.map-info__excerpt { margin-top: 2px; }

/* ------------------------------------------------------------ sidebar */

.side-box { margin-bottom: 18px; }

.side-box__title {
  margin-bottom: 8px;
  padding: 5px 10px;
  border-top: 2px solid var(--teal-light);
  background: var(--pale);
  font-size: 14px;
}
.side-box__title--flag::before { content: "⚑ "; color: var(--teal); }
.side-box__title--plane::before { content: "✈ "; color: var(--teal); }

.side-time { display: flex; gap: 10px; margin: 0; padding: 0 10px; font-size: 13px; }
.side-time dt::after { content: " ›"; color: var(--teal); }
.side-time dd { margin: 0; }

.side-links { padding: 0 10px; font-size: 13px; }
.side-links li { padding: 2px 0 2px 12px; position: relative; }
.side-links li::before { content: "·"; position: absolute; left: 2px; color: var(--teal); font-weight: bold; }
.side-links--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }

.photo-grid--side { padding: 0 2px; }

/* --------------------------------------------------------------- user */

.user-head { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 3px double var(--teal); }
.user-head__avatar { width: 60px; height: 60px; object-fit: cover; border: 1px solid #ccc; }
.user-head__name { font-size: 20px; line-height: 1.4; }
.user-head__count { color: var(--text-muted); font-size: 13px; }

/* ---------------------------------------------------------------- prose */

.prose { line-height: 1.9; }
.prose h2 { margin: 22px 0 8px; padding-left: 8px; border-left: 4px solid var(--teal); font-size: 17px; }
.prose h3 { margin: 16px 0 6px; font-size: 15px; }
.prose p { margin: 8px 0; }
.prose ul { margin: 8px 0 8px 1.4em; list-style: disc; }
.prose ol { margin: 8px 0 8px 1.6em; list-style: decimal; }
.notice-box { padding: 10px 12px; border: 1px solid #ecd9a8; background: #fff8e8; }

/* ---------------------------------------------------------- pagination */

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin: 14px 0; }
.pagination__pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pagination a,
.pagination span { display: inline-block; min-width: 32px; padding: 3px 9px; border: 1px solid var(--teal-light); background: #fff; text-align: center; text-decoration: none; }
.pagination a:hover { background: var(--pale); }
.pagination span[aria-current="page"] { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: bold; }

/* ---------------------------------------------------------- 写真ページ */

.photo-page { max-width: 900px; margin: 0 auto; }

.photo-view { margin: 12px 0 0; padding: 8px; background: #222; }
.photo-view__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.photo-view__image { display: block; max-width: 100%; max-height: 80vh; object-fit: contain; }
.photo-view__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  text-decoration: none;
}
.photo-view__nav:hover { background: rgb(0 0 0 / 70%); color: #fff; }
.photo-view__nav--prev { left: 4px; }
.photo-view__nav--next { right: 4px; }
.photo-view__caption { margin-top: 8px; color: #fff; font-size: 13px; text-align: center; }

.photo-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0; }
.photo-thumbs img { width: 60px; height: 60px; object-fit: cover; border: 2px solid transparent; }
.photo-thumbs a[aria-current="page"] img { border-color: var(--orange); }

.photo-page__back { margin: 16px 0; text-align: center; }

/* ---------------------------------------------------------- 手動の広告枠 */

.ad { margin: 18px 0; max-width: 100%; overflow: hidden; text-align: center; }
.ad__label { display: block; font-size: 10px; color: #999; }
.sidebar .ad { margin: 0 0 18px; }

/* 広告が後から差し込まれてレイアウトがずれないよう、伸び縮みする枠も高さを先に確保する（固定サイズの枠は ins に幅と高さを指定済み） */
.ad ins.adsbygoogle[data-ad-format] { min-height: 100px; }

/* PC 用・スマホ用の出し分け（768px で切り替え） */
@media (max-width: 767px) {
  .ad__unit--pc, .ad--pc-only { display: none !important; }
}
@media (min-width: 768px) {
  .ad__unit--sp, .ad--sp-only { display: none !important; }
}

/* -------------------------------------------------------------- footer */

.site-footer { background: var(--navy); color: #fff; font-size: 13px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal-light); }
.site-footer .ad { margin: 0; padding: 14px 16px 0; background: var(--sky); }
.site-footer .ad__label { color: #555; }
.site-footer__top { max-width: var(--shell); margin: 0 auto; padding: 8px 16px 0; text-align: right; font-size: 12px; }
.site-footer__inner { max-width: var(--shell); margin: 0 auto; padding: 10px 16px 24px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.site-footer__copy { color: #cfd6ea; font-size: 12px; text-align: right; }

.error-page { padding: 30px 0; }

/* ============================================================ バリファンの部品 */

/* トップの「神々が住む島での…」（グルメ・ショッピング・エステ・スパ・観光情報） */
.product-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin-top: 12px; }
.product-card p { font-size: 13px; line-height: 1.7; }
.product-card__photo { position: relative; display: block; margin-bottom: 8px; border: 3px solid #d4f0fb; }
.product-card__photo img { display: block; width: 100%; height: auto; aspect-ratio: 294 / 154; object-fit: cover; }
.product-card__label {
  position: absolute;
  left: -8px;
  top: 16px;
  padding: 2px 22px 2px 12px;
  background: linear-gradient(#5fd0f7, #1aa3e0);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 2px rgb(0 0 0 / 20%);
}
@media (max-width: 600px) {
  .product-cards { grid-template-columns: minmax(0, 1fr); }
}

/* テーマのページの見出しの写真 */
.product-head { position: relative; margin: 6px 0 10px; }
.product-head img { display: block; width: 100%; height: auto; aspect-ratio: 634 / 144; object-fit: cover; border: 3px solid #d4f0fb; }
.product-head__title {
  position: absolute;
  left: -10px;
  top: 28%;
  padding: 6px 30px 6px 20px;
  background: linear-gradient(#5fd0f7, #1aa3e0);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 2px 3px rgb(0 0 0 / 25%);
}
@media (max-width: 600px) {
  .product-head__title { position: static; margin-top: 6px; font-size: 18px; }
}

.kind-box { margin: 14px 0; padding: 8px 14px 12px; border: 1px solid var(--border); background: var(--pale); }

.inline-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.inline-links--bar li + li { padding-left: 10px; border-left: 1px solid #aaa; }
.inline-links a[aria-current="page"] { color: var(--text); font-weight: bold; text-decoration: none; }

/* 観光エリア */
.area-tabs ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.area-tabs a { display: block; padding: 4px 12px; border-radius: 3px; background: var(--pale); font-size: 13px; text-decoration: none; }
.area-tabs a:hover { background: var(--teal); color: #fff; }
.area-block { margin: 20px 0; scroll-margin-top: 10px; }
.area-block__title { margin-bottom: 6px; padding: 4px 10px; background: linear-gradient(#e3f6fe, #c8ecfb); font-size: 16px; }
.area-block__about { margin-bottom: 10px; font-size: 13px; }

.city-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 10px 0 14px; }
.city-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.city-card__photo img { width: 90px; height: 90px; object-fit: cover; border: 3px solid #d4f0fb; }
.city-card__name { font-size: 15px; }
.city-card__text { font-size: 12px; line-height: 1.6; }
@media (max-width: 600px) {
  .city-cards { grid-template-columns: minmax(0, 1fr); }
}

/* トップの「バリ島のおすすめ人気エリア」 */
.city-icons { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.city-icons a { position: relative; }
.city-icons img { width: 100%; max-width: 107px; height: auto; aspect-ratio: 1; border: 3px solid #d4f0fb; }
.city-icons a > span { margin-top: 2px; font-weight: bold; }

.review { background: var(--pale); }

.side-box { background: #fff; border-top: 3px solid var(--teal-light); padding-bottom: 8px; }
.side-box__title { border-top: 0; background: #fff; border-bottom: 1px dotted var(--teal-light); }
.sidebar .view-more { padding: 0 10px; }

/* 街のタブは最大 9 つあるので、PC の広い画面では詰めて 1 段に並べ、それより狭い画面では全部が見えるボタンの並びにする */
@media (min-width: 1081px) {
  .subnav ul { gap: 1px; }
  .subnav a { padding: 4px 5px 2px; font-size: 12px; }
  .subnav .count { margin-left: 2px; padding: 0 4px; font-size: 10px; }
}
@media (min-width: 721px) and (max-width: 1080px) {
  .subnav { padding-bottom: 6px; }
  .subnav ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
  .subnav a { padding: 6px 4px 4px; border-bottom: 1px solid var(--border); border-radius: 4px; text-align: center; }
  .subnav a[aria-current="page"] { border-color: var(--teal); }
}
