/* =====================================================================
   flyturkish — 共通スタイル
   旧サイト（2012年版）の配色（水色 #53abbf・紺 #044097・世界地図の背景）と部品を引き継ぎ、
   スマホでも崩れないようにしたもの. ビルド不要のプレーンな CSS.
   ===================================================================== */

:root {
  --text: #333333;
  --text-muted: #777777;
  --link: #0678a9;
  --teal: #53abbf;
  --teal-light: #aad0d9;
  --navy: #044097;
  --pale: #edf3f3;
  --border: #d5dfe0;
  --red: #e41819;
  --orange: #f90;
  --shell: 1080px;           /* 旧サイトは 950px. タブなどが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__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px 16px 8px;
}

.site-header__logo img { display: block; }

.site-header__intro { color: var(--text-muted); font-size: 12px; }

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

.global-nav {
  border-bottom: 4px solid var(--teal);
  background: rgb(255 255 255 / 85%);
}

.global-nav__inner {
  display: flex;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.global-nav a {
  display: block;
  padding: 9px 18px 7px;
  border: 1px solid #dde6e7;
  border-bottom: 0;
  background: #f7fafa;
  color: var(--link);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.global-nav li + li a { border-left: 0; }
.global-nav a:hover { background: var(--pale); }
.global-nav a[aria-current="page"] { border-color: var(--teal); background: var(--teal); color: #fff; }

/* スマホでは横にはみ出さないよう、メニューを折り返して全部見せる */
@media (max-width: 720px) {
  .global-nav__inner { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 6px 16px; overflow: visible; }
  .global-nav__more { display: none; }
  .global-nav li { grid-column: span 2; }
  .global-nav li:nth-child(n+4) { grid-column: span 3; }
  .global-nav a,
  .global-nav li + li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 6px 2px 4px;
    border: 1px solid #dde6e7;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }
  .global-nav a[aria-current="page"] { border-color: var(--teal); }
}

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

/* 旧サイトと同じく、世界地図の背景をメニューの線のすぐ下から横に繰り返して敷く */
.page-bg { background: url("/images/cmn/bg-layout.png") repeat-x 0 0; }

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

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

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

.section { margin: 24px 0; }

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

.tagline {
  margin-bottom: 4px;
  padding: 0 0 6px;
  border-bottom: 3px double var(--teal);
  font-size: 20px;
  line-height: 1.4;
}
.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: 950 / 236;
  margin-bottom: 24px;
  background: url("/images/home/header-bg.jpg") no-repeat center / cover;
  border: 1px solid var(--teal-light);
}

.home-hero__title {
  position: absolute;
  top: 16%;
  left: 1%;
  width: 40%;
  aspect-ratio: 376 / 70;
  overflow: hidden;
  background: url("/images/home/header-title.jpg") no-repeat left top / contain;
  color: transparent;
  font-size: 1px;
}

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

.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 { border-top: 4px solid var(--teal); background: var(--pale); font-size: 13px; }
.site-footer .ad { margin: 0; padding: 14px 16px 0; }
.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: var(--text-muted); font-size: 12px; }

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