/* 静的ページ（about / privacy など）共通スタイル */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Helvetica Neue", sans-serif;
  color: #222;
  line-height: 1.8;
  background: #fafafa;
}
.page-header {
  background: #5a1738;
  color: #fff;
  padding: 20px 16px 24px;
}
.page-header a {
  color: #f0c7da;
  text-decoration: none;
  font-size: 13px;
}
.page-header h1 {
  margin: 8px 0 0;
  font-size: 22px;
}
/* ナビ付きヘッダー（記事・生成ページ）だけ横並びにする。
   about/privacy の「戻るリンク＋h1」ヘッダーは :has で対象外にする */
.page-header:has(.site-nav) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative; /* ハンバーガー・ドロップダウンの位置基準 */
}
.site-brand {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.page-header .site-brand { color: #fff; }
.page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}
.page-main h2 {
  font-size: 17px;
  border-left: 4px solid #5a1738;
  padding-left: 10px;
  margin-top: 36px;
}
.page-main p, .page-main li { font-size: 14px; }
.page-main a { color: #a52964; }
.page-footer {
  border-top: 1px solid #e5e5e5;
  padding: 20px 16px 40px;
  text-align: center;
  font-size: 13px;
  background: #fff;
}
.page-footer a { color: #a52964; text-decoration: none; }
.page-footer .ad-disclosure { color: #888; font-size: 11px; }

/* ---- サイト共通ナビ（生成ページ用） ---- */
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: #f0c7da; text-decoration: none; font-size: 13px; }

/* ---- ハンバーガーボタン（スマホJS有効時のみ表示・CSSで3本バー描画） ---- */
.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  padding: 0;
  border: 1px solid #a3688a;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
}

/* ---- パンくず・バッジ ---- */
.breadcrumb { font-size: 12px; color: #888; margin: 14px 0 4px; }
.breadcrumb a { color: #a52964; text-decoration: none; }
.chain-badge {
  display: inline-block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}
.chain-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: baseline;
}

/* ---- 現地レポート（運営者の実訪問レビュー: 写真＋整えた文章） ---- */
.review {
  background: #fdf2f7;
  border: 1px solid #f0cfdd;
  border-radius: 12px;
  padding: 14px 16px 4px;
  margin: 18px 0 24px;
}
.review h2 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 17px;
  color: #5a1738;
}
.review h2::before { content: "📸 "; }
.review-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.rv-shot { display: block; }
.rv-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eecdda;
  background: #f3e3ea;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.rv-shot:hover img {
  transform: scale(1.02);
  box-shadow: 0 3px 12px rgba(90, 23, 56, 0.22);
}
.review-body { font-size: 14px; line-height: 1.85; color: #333; }
.review-body p { margin: 0 0 8px; }
.review-body ul { margin: 6px 0 10px; padding-left: 20px; }
.review-body li { margin: 3px 0; }
.review-meta { font-size: 11px; color: #a06886; margin: 6px 0 8px; }

/* ---- ホテル個別ページ ---- */
.hotel-main h1 { font-size: 22px; margin: 6px 0 12px; }
.hotel-photo {
  width: 100%;
  max-width: 560px;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  background: #e9e9e9;
}
.cta-label { font-weight: 700; margin: 16px 0 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.cta-row .btn,
.cta-row .btn-jalan-a8 a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
/* .page-main a のリンク色に負けないよう2クラスで指定 */
.cta-row .btn-rakuten { background: #bf0000; color: #fff; }
/* A8のじゃらん<a>は改変禁止のため、外側spanのCSSでボタン化する */
.cta-row .btn-jalan-a8 a { background: #fff; color: #e05a00; border: 2px solid #f08300; }
.cta-note { color: #999; font-size: 11px; }
.fact-table { border-collapse: collapse; width: 100%; max-width: 560px; font-size: 14px; }
.fact-table th, .fact-table td { border: 1px solid #e2e2e2; padding: 8px 12px; text-align: left; }
.fact-table th { background: #f4f6f9; width: 90px; white-space: nowrap; font-weight: 600; }
.chain-desc { color: #555; font-size: 13px; }
#minimap {
  width: 100%;
  max-width: 560px;
  height: 320px;
  border-radius: 10px;
  border: 1px solid #ddd;
}
.nearby-list, .hotel-list, .pref-list { padding-left: 20px; }
.nearby-list li, .hotel-list li { margin: 6px 0; font-size: 14px; }
.nb-meta { color: #888; font-size: 12px; }
.pref-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 16px;
  list-style: none;
  padding: 0;
  font-size: 14px;
}

/* ---- 記事（コラム） ---- */
.page-meta { color: #999; font-size: 12px; margin: 4px 0 20px; }
.disclaimer {
  background: #f6f7f9;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #666;
  margin: 24px 0;
}
.article-list { list-style: none; padding: 0; }
.article-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  background: #fff;
}
.article-list a { color: #a52964; font-weight: 700; text-decoration: none; font-size: 15px; }
.article-list .article-desc { color: #666; font-size: 13px; margin: 6px 0 0; }
.article-list .article-date { color: #aaa; font-size: 11px; margin-bottom: 0; }
.article-card__thumb {
  width: 150px;
  height: auto; /* width/height属性をaspect-ratioで上書きするために必須 */
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 8px;
  flex-shrink: 0;
  background: #fff;
}
.article-list .article-body { flex: 1; min-width: 0; }

/* 記事ヒーロー（テキストサムネ）はページ内では非表示（PC・スマホ共通）。
   役割はOGP/SNSカード（<head>の<meta>）と一覧カードに限定し、本文冒頭の
   h1との繰り返しを省いて「要点3つ」を前面に出す。<figure>とmetaは残すので
   SNS表示・一覧サムネは不変。再表示したい場合は display:block に戻すだけ。 */
.article-hero { display: none; margin: 4px 0 24px; }
.article-hero img {
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 1200 / 630;
  border: 1px solid #eee;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .article-card__thumb { width: 104px; }
}

/* ---- 記事コンポーネント（keypoints / バルーン / マップCTA） ---- */
/* 「まずはここだけ！3つの要点」= 濃紺ヘッダーバー＋✅リスト。
   見出しと✅はCSSで付与するので、HTMLは <div class="keypoints"><ul><li>…</li></ul></div> のままでOK
   （TTSは ::before を読まないので「💡見出し」「✅」は音声に混じらない） */
.keypoints {
  background: #fdf2f7;
  border: 1px solid #f0cfdd;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  font-size: 14px;
}
.keypoints::before {
  content: "💡 まずはここだけ！3つの要点";
  display: block;
  background: #5a1738;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 16px;
}
.keypoints ul {
  list-style: none;
  margin: 0;
  padding: 14px 16px;
}
.keypoints li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  line-height: 1.75;
}
.keypoints li:first-child { margin-top: 0; }
.keypoints li:last-child { margin-bottom: 0; }
.keypoints li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 14px;
}

.speech {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0;
}
.speech__avatar { font-size: 26px; line-height: 1.2; flex-shrink: 0; }
.speech__bubble {
  background: #fff7e0;
  border: 1px solid #f0dfae;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a4433;
}

.map-cta {
  display: inline-block;
  background: #5a1738;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  margin: 6px 0;
}
.article-table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 12px 0; }
.article-table th, .article-table td { border: 1px solid #e2e2e2; padding: 7px 10px; text-align: left; }
.article-table th { background: #f4f6f9; font-weight: 600; }

@media (max-width: 600px) {
  .cta-row .btn { flex: 1 1 100%; }

  /* no-JSフォールバック: ナビを1行の横スクロールにして2行折返しを根絶 */
  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .site-nav a { white-space: nowrap; flex: 0 0 auto; }

  /* JS有効時: ハンバーガー化。ブランドは常時表示、その他リンクはドロップダウンに畳む */
  html.js .nav-toggle { display: inline-flex; }
  html.js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    z-index: 1200;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    min-width: 210px;
    padding: 6px 0;
    margin-top: 4px;
    background: #5a1738;
    border: 1px solid #33456a;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
  html.js .site-nav.open { display: flex; }
  html.js .site-nav a { padding: 11px 18px; font-size: 14px; }
}

/* ═══ 記事 TTS（音声読み上げ）ウィジェット ═══
   鉄道サイトから移植。CSS変数は本サイトの実色に置換
   （accent=#5a1738 / border=#ddd / text=#222 / muted=#777 / bg=#f4f6f9） */
.tts-widget {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  font-family: inherit;
}
.tts-widget__fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #5a1738;
  color: white;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.tts-widget__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  background: #26406b;
}
.tts-widget__fab-icon { font-size: 14px; line-height: 1; }
.tts-widget[data-state="expanded"] .tts-widget__fab { display: none; }
.tts-widget[data-state="collapsed"] .tts-widget__panel { display: none; }
.tts-widget__panel {
  width: 250px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  padding: 14px 16px 12px;
  border: 1px solid #dddddd;
}
.tts-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.tts-widget__title { font-size: 13px; font-weight: 700; color: #222222; }
.tts-widget__close {
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #777777;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: inherit;
}
.tts-widget__close:hover { background: #f4f6f9; color: #222222; }
.tts-widget__controls { display: flex; gap: 4px; margin-bottom: 12px; }
.tts-widget__controls button {
  flex: 1;
  min-height: 34px;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #dddddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  color: #222222;
  white-space: nowrap;
  font-family: inherit;
}
.tts-widget__controls button:hover { background: #f4f6f9; }
.tts-widget__play,
.tts-widget__pause {
  background: #5a1738 !important;
  color: white !important;
  border-color: #5a1738 !important;
}
.tts-widget__play:hover,
.tts-widget__pause:hover {
  background: #26406b !important;
  border-color: #26406b !important;
}
.tts-widget__skip { flex: 0 0 36px; min-width: 36px; }
.tts-widget__rate { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tts-widget__rate label { font-size: 12px; color: #777777; }
.tts-widget__rate select {
  flex: 1;
  padding: 5px 8px;
  font-size: 13px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: white;
  font-family: inherit;
  color: #222222;
}
.tts-widget__note { margin: 0; font-size: 11px; color: #777777; line-height: 1.5; }
/* センテンス単位ハイライト（カラオケ風追従） */
.tts-sentence.tts-reading {
  background: linear-gradient(180deg, transparent 58%, #fef08a 58%);
  border-radius: 2px;
  transition: background 0.15s ease;
}
.speech__bubble .tts-sentence.tts-reading {
  background: #fde047;
  padding: 0 3px;
  margin: 0 -3px;
  border-radius: 3px;
}
tr.tts-reading { background: #fef9c3 !important; }
tr.tts-reading td, tr.tts-reading th { background: transparent; }

@media (max-width: 600px) {
  .tts-widget {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .tts-widget__fab {
    padding: 0;
    width: 52px;
    height: 52px;
    justify-content: center;
    border-radius: 50%;
  }
  .tts-widget__fab-icon { font-size: 18px; }
  .tts-widget__fab-label { display: none; }
  .tts-widget__panel { width: 230px; }
}
