/* =====================================================================
   moatabi Design System
   Concept: Modern Japan Travel × Price Intelligence
   - Design Tokenを共通管理し、季節Theme(.theme-*)はTokenだけを上書きする
   - 季節が変わってもHTML構造・レイアウト・操作方法は変わらない
   - Mobile First / Spacious / Rounded / Editorial
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* base palette */
  --color-background: #faf9f7;
  --color-surface: #ffffff;
  --color-surface-alt: #f3f1ec;
  --color-text-primary: #1f2430;
  --color-text-secondary: #6b7280;
  --color-border: #e7e3dc;

  /* price semantics */
  --color-price: #16324f;
  --color-price-positive: #0e8a5f; /* 下落 = 旅行者に有利 */
  --color-price-negative: #d64545; /* 上昇 */

  /* season accent (Themeが上書きする) */
  --color-accent-season: #e05c7b;
  --color-accent-season-soft: #fdeef2;
  --color-accent-season-deep: #b23a57;

  /* shape & spacing */
  --radius-card: 20px;
  --radius-button: 999px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  --shadow-card: 0 2px 10px rgba(31, 36, 48, 0.06), 0 8px 30px rgba(31, 36, 48, 0.06);
  --shadow-card-hover: 0 4px 14px rgba(31, 36, 48, 0.10), 0 14px 40px rgba(31, 36, 48, 0.10);

  --font-sans: "Pretendard", "Pretendard Variable", "Apple SD Gothic Neo",
    "Noto Sans KR", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

/* ---------- Season Themes(Token上書きのみ) ---------- */
.theme-spring {
  --season-motif: url("/static/images/motifs/spring.svg");
  /* 提供素材のピンク(#ffb0fc)から紫みを抜き、白背景で沈むよう少し濃くした色 */
  --motif-color: #eb9ec4;
  --motif-origin: 50% 50%;
  --motif-anim-open: motif-spin;
  --motif-anim-idle: none;
  --motif-anim-spark: none;
  --color-accent-season: #e05c7b;
  --color-accent-season-soft: #fdeef2;
  --color-accent-season-deep: #b23a57;
}
.theme-summer {
  --season-motif: url("/static/images/motifs/summer.svg");
  --motif-origin: 50% 7%;
  --motif-anim-open: motif-sway;
  --motif-anim-idle: motif-sway-idle;
  --motif-anim-spark: none;
  --color-accent-season: #0e7fc0;
  --color-accent-season-soft: #e6f4fc;
  --color-accent-season-deep: #085e91;
}
.theme-autumn {
  --season-motif: url("/static/images/motifs/autumn.svg");
  --motif-origin: 50% 96%;
  --motif-anim-open: motif-flutter;
  --motif-anim-idle: none;
  --motif-anim-spark: none;
  --color-accent-season: #c95d2c;
  --color-accent-season-soft: #faeee4;
  --color-accent-season-deep: #96421d;
}
.theme-winter {
  --season-motif: url("/static/images/motifs/winter.svg");
  --motif-origin: 50% 92%;
  --motif-anim-open: motif-rise;
  --motif-anim-idle: none;
  --motif-anim-spark: motif-puff;
  --color-accent-season: #4f5fae;
  --color-accent-season-soft: #eef1fa;
  --color-accent-season-deep: #38437e;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* 内容が短いページでもFooterが画面下へ張り付くようにする(Sticky Footer) */
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  padding-bottom: 76px; /* bottom nav分 */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
#main { flex: 1 0 auto; }
.site-footer { flex: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 var(--space-sm); }
h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 var(--space-sm); }
button { font-family: inherit; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; }
/* FHD以上では基準幅を広げる。ヒーローだけ広げるとロゴ・メニューと左端がずれる */
@media (min-width: 1500px) {
  .container { width: min(1400px, 100% - 80px); }
  .brand { font-size: 1.8rem; }
}
.container-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-xs);
  border: none; cursor: pointer;
  border-radius: var(--radius-button);
  padding: 10px 20px;
  font-size: 0.92rem; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--color-accent-season); color: #fff; }
.btn-primary:hover { background: var(--color-accent-season-deep); }
.btn-ghost {
  background: transparent; color: var(--color-accent-season-deep);
  border: 1.5px solid var(--color-accent-season);
}
.btn-ghost:hover { background: var(--color-accent-season-soft); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn:active { transform: scale(0.97); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-accent { color: var(--color-accent-season); }
.top-nav { display: none; gap: var(--space-lg); font-weight: 600; font-size: 0.95rem; }
.top-nav a:hover { color: var(--color-accent-season-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(20, 22, 34, 0.18) 0%, rgba(20, 22, 34, 0.42) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.hero-inner { padding: clamp(48px, 10vw, 96px) 0 clamp(36px, 8vw, 72px); }
.hero-season-copy {
  font-weight: 700; font-size: clamp(0.95rem, 3vw, 1.1rem);
  opacity: 0.95; margin-bottom: var(--space-sm);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero-title {
  white-space: pre-line;
  font-size: clamp(1.85rem, 7vw, 3rem);
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-lg);
}
.hero-search {
  display: flex; gap: var(--space-sm);
  background: #fff; border-radius: var(--radius-button);
  padding: 6px; max-width: 560px;
  box-shadow: var(--shadow-card);
}
.hero-search input {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 8px 16px; font-size: 1rem; background: transparent;
  color: var(--color-text-primary); font-family: inherit;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.hero-chips a {
  display: inline-block; padding: 6px 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-button);
  font-size: 0.88rem; font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
}
.hero-chips a:hover { background: rgba(255, 255, 255, 0.32); }

/* ---------- ハンバーガーメニュー(狭幅のみ) ---------- */
/* top-navは900px未満で隠れ、bottom-navにも「旅行ガイド」が無いため、ここから辿れるようにする */
.nav-toggle {
  position: relative;
  display: grid; justify-items: center; align-content: center; gap: 2px;
  /* タップ領域は48px確保しつつ、アイコン自体を大きく見せる */
  width: 48px; height: 48px; margin-right: -10px;
  border: none; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* モチーフだけでは押せる合図が弱いので文字を添える。主役はモチーフのまま */
.nav-toggle-label {
  font-size: 0.62rem; font-weight: 800; line-height: 1;
  letter-spacing: 0.09em; color: var(--color-text-secondary);
}
.nav-toggle-icon { position: relative; width: 34px; height: 34px; }
.nav-toggle-motif, .nav-toggle-spark { position: absolute; inset: 0; display: block; }
/* 形はTokenで差し替え、色はアクセント色に追従する */
.nav-toggle-motif {
  background: var(--motif-color, var(--color-accent-season-deep));
  transform-origin: var(--motif-origin, 50% 50%);
  -webkit-mask-image: var(--season-motif); mask-image: var(--season-motif);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 富士山から噴き出す粒。使わない季節は --motif-anim-spark: none で出ない */
.nav-toggle-spark {
  width: 7px; height: 7px; inset: auto auto 62% 50%;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--color-accent-season);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-toggle[aria-expanded="true"] .nav-toggle-spark {
    animation: var(--motif-anim-spark, none) 1.1s ease-out;
  }
  /* 開いている間の待機モーション(風鈴だけ揺れ続ける) */
  .nav-toggle[aria-expanded="true"] .nav-toggle-motif {
    animation:
      var(--motif-anim-open, none) 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      var(--motif-anim-idle, none) 3.2s ease-in-out 0.7s infinite;
  }
}
/* 春: 回る */
@keyframes motif-spin {
  from { transform: rotate(0deg) scale(1); }
  60%  { transform: rotate(200deg) scale(1.12); }
  to   { transform: rotate(180deg) scale(1); }
}
/* 回り切った角度を開いている間は保つ(閉じると戻る) */
.nav-toggle[aria-expanded="true"] { --motif-rest: rotate(180deg); }
.theme-spring .nav-toggle[aria-expanded="true"] .nav-toggle-motif { transform: var(--motif-rest); }
/* 夏: 開いている間の待機の揺れ */
@keyframes motif-sway-idle {
  0%, 100% { transform: rotate(0deg); }
  30%      { transform: rotate(5deg); }
  65%      { transform: rotate(-4deg); }
}
/* 夏: 風鈴が揺れる */
@keyframes motif-sway {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(15deg); }
  45%  { transform: rotate(-11deg); }
  70%  { transform: rotate(6deg); }
  88%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
/* 秋: 葉が舞う(揺れながら少し落ちて戻る) */
@keyframes motif-flutter {
  0%   { transform: rotate(0deg) translateY(0); }
  25%  { transform: rotate(-18deg) translateY(2px); }
  50%  { transform: rotate(14deg) translateY(4px); }
  75%  { transform: rotate(-8deg) translateY(1px); }
  100% { transform: rotate(0deg) translateY(0); }
}
/* 冬: 山がせり上がる */
@keyframes motif-rise {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-2px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
/* 冬: 山頂から噴き出す */
@keyframes motif-puff {
  0%   { opacity: 0; transform: translateY(0) scale(0.4); }
  25%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-14px) scale(1.5); }
}

/* ドロワーは本文の上に被せる。stickyで流れに入れると本文が下へずれて違和感が出る。
   下のスクリムはヘッダ(56px)より下だけを覆い、bottom-nav(z-index:50)は触れるまま残す */
.nav-drawer {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 39;
  max-height: calc(100dvh - 56px);
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 14px 34px rgba(31, 36, 48, 0.18);
}
.nav-drawer[hidden] { display: none; }
.nav-scrim {
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0; z-index: 38;
  background: rgba(23, 27, 38, 0.34);
  /* 背面のスクロールはここで止める。html/bodyへoverflow:hiddenを掛けると
     スクロールポートが消えて sticky のヘッダーが本来位置(画面外)へ戻ってしまう */
  touch-action: none;
}
.nav-scrim[hidden] { display: none; }
.nav-drawer-inner { padding: var(--space-md) 0 var(--space-lg); }
.nav-drawer nav { display: flex; flex-direction: column; }
.nav-drawer nav a {
  padding: 13px 0;
  font-weight: 700; font-size: 1.05rem;
  border-bottom: 1px solid var(--color-border);
}
.nav-drawer nav a:last-child { border-bottom: none; }
.nav-drawer nav a:active { color: var(--color-accent-season-deep); }
.nav-drawer-sub { font-size: 0.9rem !important; font-weight: 600 !important; color: var(--color-text-secondary); }
@media (prefers-reduced-motion: no-preference) {
  .nav-drawer:not([hidden]) { animation: nav-drawer-in 0.26s cubic-bezier(0.16, 1, 0.3, 1); }
  .nav-scrim:not([hidden]) { animation: nav-scrim-in 0.22s ease; }
  .nav-drawer:not([hidden]) .nav-drawer-inner > nav > a {
    animation: nav-item-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .nav-drawer:not([hidden]) nav a:nth-child(2) { animation-delay: 40ms; }
  .nav-drawer:not([hidden]) nav a:nth-child(3) { animation-delay: 80ms; }
  .nav-drawer:not([hidden]) nav a:nth-child(4) { animation-delay: 110ms; }
  .nav-drawer:not([hidden]) nav a:nth-child(n + 5) { animation-delay: 140ms; }
}
@keyframes nav-drawer-in {
  from { opacity: 0; transform: translate3d(0, -12px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes nav-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nav-item-in {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--space-md);
}
.section-more { font-size: 0.88rem; font-weight: 700; color: var(--color-accent-season-deep); }
.page-head { padding: var(--space-lg) 0 var(--space-md); }
.page-head-editorial { padding-top: var(--space-xl); }

/* ---------- Card grid ---------- */
.card-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }

/* ---------- Cards(共通) ---------- */
.card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--space-md); }
.card-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm); margin-top: var(--space-sm);
}

/* hotel card */
.hotel-name a:hover { color: var(--color-accent-season-deep); }
.hotel-meta { color: var(--color-text-secondary); font-size: 0.88rem; }
.ota-count { font-size: 0.82rem; color: var(--color-text-secondary); font-weight: 600; }

/* guide card */
.guide-title { margin: var(--space-xs) 0; }
.guide-title a:hover { color: var(--color-accent-season-deep); }
.guide-summary {
  color: var(--color-text-secondary); font-size: 0.92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-meta { color: var(--color-text-secondary); font-size: 0.82rem; margin: 0; }
.guide-card-lg .guide-title { font-size: 1.2rem; }

/* region card */
.region-name {
  position: absolute; left: var(--space-md); bottom: var(--space-md);
  color: #fff; font-size: 1.3rem; font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.region-card .card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 18, 30, 0.45));
}
/* 変化率が主役。絶対値(中央値)は補足として下に置く(ADR-0006) */
.region-delta-block {
  display: flex; align-items: baseline; gap: var(--space-sm);
  flex-wrap: wrap; margin: 0 0 2px;
}
.region-delta-value {
  font-size: 1.55rem; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.region-delta-label { font-size: 0.8rem; color: var(--color-text-secondary); font-weight: 600; }
.region-delta-block.delta-up .region-delta-value { color: var(--color-price-negative); }
.region-delta-block.delta-down .region-delta-value { color: var(--color-price-positive); }
.region-delta-block.delta-flat .region-delta-value {
  color: var(--color-text-secondary); font-size: 1.15rem;
}

.region-price { display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; margin: 0; }
.region-price-label { font-size: 0.82rem; color: var(--color-text-secondary); font-weight: 600; }
.region-price-value {
  font-size: 1.05rem; font-weight: 700; color: var(--color-price);
  font-variant-numeric: tabular-nums;
}
.region-basis { font-size: 0.78rem; color: var(--color-text-secondary); margin: 2px 0 0; }
.region-range { display: flex; align-items: baseline; gap: var(--space-sm); margin: 2px 0 0; }
.region-range-label { font-size: 0.78rem; color: var(--color-text-secondary); font-weight: 600; }
.region-range-value {
  font-size: 0.88rem; font-weight: 700; color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.region-test-notice {
  display: inline-block; padding: 6px 14px; margin-bottom: var(--space-md);
  background: #fff8e6; border: 1px solid #f0d890; color: #7a5b00;
  border-radius: 10px; font-size: 0.82rem; font-weight: 600;
}
.region-collecting {
  display: inline-block; padding: 4px 12px;
  background: var(--color-surface-alt); border-radius: var(--radius-button);
  font-size: 0.85rem; font-weight: 600; color: var(--color-text-secondary); margin: 0;
}

/* ---------- 通貨換算の注記(参考値であることを必ず見せる) ---------- */
.fx-note {
  display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-sm);
  align-items: baseline;
  font-size: 0.78rem; color: var(--color-text-secondary);
  margin: 0 0 var(--space-md);
}
.fx-basis { font-variant-numeric: tabular-nums; opacity: 0.85; }
.region-price-sub, .offer-price-sub {
  font-size: 0.82rem; color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums; margin: 0;
}
.offer-price-sub { margin-top: -2px; }

/* ---------- Favorite button ---------- */
.fav-btn {
  position: absolute; top: var(--space-sm); right: var(--space-sm); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: grid; place-items: center;
  transition: transform 0.15s ease;
}
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--color-text-secondary); stroke-width: 2; }
.fav-btn:active { transform: scale(0.9); }
.fav-btn.is-active svg { fill: var(--color-accent-season); stroke: var(--color-accent-season); }
.fav-btn.is-active { animation: fav-pop 0.3s ease; }
@keyframes fav-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.fav-btn-lg { position: static; width: 48px; height: 48px; flex: none; }
.fav-btn-lg svg { width: 24px; height: 24px; }

/* ---------- Chips / Tags ---------- */
.tag-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tag-chips a {
  display: inline-block; padding: 3px 10px;
  background: var(--color-accent-season-soft);
  color: var(--color-accent-season-deep);
  border-radius: var(--radius-button);
  font-size: 0.78rem; font-weight: 700;
  transition: background 0.15s ease;
}
.tag-chips a:hover { background: var(--color-accent-season); color: #fff; }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.filter-chips a {
  display: inline-block; padding: 7px 16px;
  background: var(--color-surface); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-button);
  font-size: 0.88rem; font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.filter-chips a:hover { border-color: var(--color-accent-season); }
.filter-chips a.is-active {
  background: var(--color-accent-season); border-color: var(--color-accent-season); color: #fff;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.tag-cloud a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-button);
  font-weight: 600; font-size: 0.9rem;
}
.tag-cloud a:hover { border-color: var(--color-accent-season); color: var(--color-accent-season-deep); }
.tag-count { font-size: 0.75rem; color: var(--color-text-secondary); }

/* ---------- Search bar / list ---------- */
.search-bar {
  display: flex; gap: var(--space-sm);
  background: var(--color-surface); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-button); padding: 5px; max-width: 560px;
}
.search-bar input {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 8px 14px; font-size: 1rem; background: transparent; font-family: inherit;
}
.result-count { color: var(--color-text-secondary); font-size: 0.88rem; }
.hotel-results-head {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 10px; margin-bottom: var(--space-md);
}
.hotel-results-head .result-count {
  margin: 0;
  color: var(--color-text-primary); font-weight: 700;
}
.hotel-map-mobile-link,
.hotel-map-toggle {
  flex: none;
  min-height: 48px;
  padding: 11px 20px;
  white-space: nowrap;
  font-size: 0.92rem; font-weight: 800;
  color: #fff;
  background: var(--color-accent-season-deep);
  border-color: var(--color-accent-season-deep);
  box-shadow: 0 6px 18px rgba(31, 36, 48, 0.16);
}
.hotel-map-mobile-link:hover,
.hotel-map-toggle:hover {
  color: #fff;
  background: var(--color-accent-season-deep);
  border-color: var(--color-accent-season-deep);
  box-shadow: 0 8px 22px rgba(31, 36, 48, 0.2);
  transform: translateY(-1px);
}
.hotel-map-mobile-link:focus-visible,
.hotel-map-toggle:focus-visible {
  outline: 3px solid var(--color-accent-season-deep);
  outline-offset: 3px;
}
.hotel-map-mobile-link { width: 100%; }
.hotel-map-toggle { display: none; }
.hotel-map-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface-alt);
}
.hotel-map-panel-list { margin-bottom: var(--space-lg); }

/* 地図の開閉は .hotel-map-zone の data-map-state で決める。
   default = 記録が無い状態。広い画面だけ最初から開き、狭い画面はカードを先に見せる。
   JSが無いと地図は描けないので、html.js が付くまでは常に閉じたまま(空箱を出さない)。
   ラベルも同じ状態から出し分けるので、JSを待たずに文言が確定する(ちらつき防止)。 */
.hotel-map-panel-list { display: none; }
.hotel-map-toggle-close { display: none; }
.hotel-map-zone[data-map-state="open"] .hotel-map-toggle-open { display: none; }
.hotel-map-zone[data-map-state="open"] .hotel-map-toggle-close { display: inline; }
@media (min-width: 900px) {
  /* 埋め込み地図は広い画面だけ。狭い画面は専用画面(/hotels/map)へ送るので、
     ここを外すと「開いた記録」が残っている端末で地図が出たまま閉じられなくなる
     (狭い画面ではトグルを display:none にしているため) */
  .js .hotel-map-zone[data-map-state="open"] .hotel-map-panel-list { display: block; }
  .js .hotel-map-zone[data-map-state="default"] .hotel-map-panel-list { display: block; }
  .js .hotel-map-zone[data-map-state="default"] .hotel-map-toggle-open { display: none; }
  .js .hotel-map-zone[data-map-state="default"] .hotel-map-toggle-close { display: inline; }
}
.hotel-map { width: 100%; height: 320px; }
.hotel-map-error {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  margin: 0; padding: var(--space-lg);
  color: var(--color-text-secondary); background: var(--color-surface-alt);
  text-align: center;
}
.hotel-map-error[hidden] { display: none; }
.hotel-map-panel .leaflet-container { z-index: 0; font-family: inherit; }
/* ホイール拡大が使えることの案内。地図を触ると消える。
   タッチ端末では2本指ズームが最初から効くので出さない */
.hotel-map-hint {
  position: absolute; top: 10px; left: 50%; z-index: 500;
  transform: translateX(-50%);
  margin: 0; padding: 5px 12px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.14);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.hotel-map-panel.is-map-active .hotel-map-hint { opacity: 0; }
@media (hover: none) { .hotel-map-hint { display: none; } }

/* 番号ピン。ベース地図が日本語でも、下の凡例と番号で対応が取れる */
.hotel-map-pin { background: none; border: none; }
.hotel-map-pin span {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  font-size: 0.85rem; font-weight: 800; color: #fff;
  background: var(--color-accent-season-deep, #2563eb);
  border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.35);
}
.guide-map-legend {
  list-style: none; margin: var(--space-md) 0 0; padding: 0;
  display: grid; gap: 8px;
}
.guide-map-legend li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-card);
  cursor: pointer;
}
.guide-map-legend li:hover { background: var(--color-surface); box-shadow: var(--shadow-card); }
.guide-map-legend-no {
  flex: none;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  font-size: 0.78rem; font-weight: 800; color: #fff;
  background: var(--color-accent-season-deep, #2563eb); border-radius: 50%;
}
.guide-map-legend-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-map-legend-body strong { font-size: 0.95rem; }
.guide-map-legend-body span { font-size: 0.84rem; color: var(--color-text-secondary); }
.hotel-map-popup { min-width: 190px; }
.hotel-map-popup-name { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.hotel-map-popup-location,
.hotel-map-popup-compare { margin: 0 0 6px; font-size: 0.8rem; color: var(--color-text-secondary); }
.hotel-map-popup-compare { font-weight: 700; color: var(--color-text-primary); }
.hotel-map-popup-link { display: block; margin-top: 8px; text-align: center; color: #fff !important; }
.hotel-map-screen {
  display: flex; flex-direction: column;
  width: min(1080px, 100% - 32px);
  min-height: 70dvh;
  margin: var(--space-lg) auto var(--space-xl);
}
.hotel-map-screen-bar {
  display: flex; align-items: center; gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.hotel-map-screen-back { flex: none; white-space: nowrap; }
.hotel-map-screen-heading { min-width: 0; }
.hotel-map-screen-heading h1 { margin: 0; }
.hotel-map-screen-heading p {
  margin: 0; color: var(--color-text-secondary); font-size: 0.8rem;
}
.hotel-map-panel-screen { flex: 1 1 auto; min-height: 420px; }
.hotel-map-panel-screen .hotel-map { height: 100%; min-height: 420px; }
.hotel-map-screen-empty {
  display: grid; flex: 1 1 auto; place-items: center;
  margin: 0; padding: var(--space-lg);
  color: var(--color-text-secondary); background: var(--color-surface-alt);
  border-radius: var(--radius-card); text-align: center;
}
.empty-state {
  padding: var(--space-xl); text-align: center;
  color: var(--color-text-secondary);
  background: var(--color-surface); border-radius: var(--radius-card);
}

/* ---------- 日程・人数(ページ間で引き継ぐ検索条件) ---------- */
.stay-conditions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
  max-width: 640px;
}
.stay-conditions label {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 0.75rem; font-weight: 700; color: var(--color-text-secondary);
  /* min-width:auto のままだと input[type=date] の固有幅がGridを押し広げ、
     狭幅でヒーロー全体(見出し・検索窓)がはみ出す */
  min-width: 0;
}
.stay-conditions input, .stay-conditions select {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.95rem; font-family: inherit;
  background: var(--color-surface); color: var(--color-text-primary);
}
.stay-conditions input:focus-visible, .stay-conditions select:focus-visible {
  outline: 2px solid var(--color-accent-season); outline-offset: 1px;
}
@media (min-width: 600px) {
  /* 日付は文字数が多いので人数より広く取る */
  .stay-conditions { grid-template-columns: 1.2fr 1.2fr 0.8fr 0.8fr; max-width: 700px; }
}

/* ---------- Hotel detail ---------- */
.hotel-hero { max-height: 420px; overflow: hidden; }
.hotel-hero img { width: 100%; object-fit: cover; }
.hotel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-md); padding-top: var(--space-lg);
}
.hotel-address { color: var(--color-text-secondary); font-size: 0.88rem; }
.hotel-description { margin: var(--space-md) 0; max-width: 720px; }
.hotel-location-section { margin: var(--space-lg) 0; }
.hotel-location-section h2 { margin-bottom: var(--space-sm); }
.hotel-map-panel-detail .hotel-map { height: 260px; }

/* ---------- Rates(価格比較: 信頼感・可読性優先) ---------- */
.rates-section {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-card);
}
.rates-form {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm); margin-bottom: var(--space-md);
}
.rates-form label { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; font-weight: 600; color: var(--color-text-secondary); }
.rates-form input, .rates-form select {
  padding: 9px 12px; border: 1.5px solid var(--color-border);
  border-radius: 10px; font-size: 0.95rem; font-family: inherit;
  background: var(--color-surface);
}
.rates-form button { grid-column: 1 / -1; }
.rates-loading { color: var(--color-text-secondary); text-align: center; padding: var(--space-lg) 0; }

.test-notice {
  display: flex; gap: var(--space-sm); align-items: flex-start;
  background: #fff8e6; border: 1px solid #f0d890;
  color: #7a5b00; border-radius: 12px;
  padding: 10px 14px; font-size: 0.85rem; margin-bottom: var(--space-md);
}
.offer-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.offer-row:last-child { border-bottom: none; }
.offer-row.offer-lowest {
  background: var(--color-accent-season-soft);
  border-radius: 12px; padding-inline: var(--space-md);
  border-bottom: none; margin-bottom: var(--space-xs);
}
.offer-provider { font-weight: 800; font-size: 0.95rem; }
.offer-room { color: var(--color-text-secondary); font-size: 0.85rem; }
.offer-badges { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: 4px; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700;
  background: var(--color-surface-alt); color: var(--color-text-secondary);
}
.badge-lowest { background: var(--color-accent-season); color: #fff; }
.badge-test { background: #fff1cc; color: #7a5b00; }
.badge-refundable { background: #e2f5ec; color: #0e8a5f; }
.badge-nonrefundable { background: #fdecec; color: #c04040; }
.offer-price-block { text-align: right; flex: none; }
.offer-price {
  font-size: 1.3rem; font-weight: 800; color: var(--color-price);
  font-variant-numeric: tabular-nums;
  animation: price-in 0.35s ease;
}
@keyframes price-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.offer-price-note { font-size: 0.72rem; color: var(--color-text-secondary); }
.offer-cta { margin-top: var(--space-xs); }
.link-only-row { opacity: 0.92; }
.rates-error { color: var(--color-text-secondary); font-size: 0.85rem; margin-top: var(--space-sm); }

/* ---------- Guide detail(Editorial) ---------- */
/* 以前は親のmax-heightで写真の「上端だけ」を切り出しており、被写体が画面外へ出ていた。
   img自身に比率と object-position を持たせ、中央を基準に切り抜く */
.guide-hero { overflow: hidden; border-radius: 0 0 28px 28px; }
.guide-hero img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover; object-position: center;
}
@media (min-width: 900px) {
  /* 広い画面ほど縦を詰めないと本文が下がるが、切り抜きすぎると何の写真か分からなくなる。
     21:9 で止めて上限も置く */
  .guide-hero img { aspect-ratio: 21 / 9; max-height: 460px; }
}
.guide-head { padding: var(--space-lg) 0 var(--space-md); }
.article-body { font-size: 1.02rem; line-height: 1.85; }
.article-body h2 {
  margin-top: var(--space-xl);
  padding-left: var(--space-sm);
  border-left: 4px solid var(--color-accent-season);
}
.article-body h3 { margin-top: var(--space-lg); }
.article-body img { border-radius: var(--radius-card); max-width: 100%; height: auto; }
/* 本文中の写真とキャプション。classは本文から通さないので要素セレクタで整える */
.article-body figure { margin: var(--space-lg) 0; }
.article-body figure img { display: block; width: 100%; }
.article-body figcaption {
  margin-top: 6px; font-size: 0.85rem; line-height: 1.6;
  color: var(--color-text-secondary); text-align: center;
}
.guide-map-section { padding-top: var(--space-lg); }
.article-body a { color: var(--color-accent-season-deep); text-decoration: underline; }
.article-body blockquote {
  margin: var(--space-md) 0; padding: var(--space-sm) var(--space-md);
  background: var(--color-surface-alt); border-radius: 12px;
  color: var(--color-text-secondary);
}

/* Markdown内の表(法務ページ・ガイド記事で使う)。狭い画面では横スクロールさせる */
.article-body table {
  width: 100%; margin: var(--space-md) 0;
  border-collapse: collapse; font-size: 0.92rem;
}
.article-body th, .article-body td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border); text-align: left; vertical-align: top;
}
.article-body th { background: var(--color-surface-alt); font-weight: 700; }
.article-body ol, .article-body ul { padding-left: 1.4em; }
.article-body li { margin: var(--space-xs) 0; }

/* ---------- お知らせ(全ページのバナー + 一覧ページ) ---------- */
.notice-banner { background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); }
.notice-banner .container { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.notice-banner-item {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  font-size: 0.9rem; padding: var(--space-xs) 0;
}
.notice-banner-text { flex: 1; min-width: 0; }
.notice-dismiss {
  flex: none; border: 0; background: transparent; cursor: pointer;
  color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1;
  padding: var(--space-xs); border-radius: 50%;
}
.notice-dismiss:hover { background: rgba(0, 0, 0, 0.06); }
.notice-banner-item strong { display: block; }
.notice-banner-body p { margin: 0; color: var(--color-text-secondary); }
.notice-banner-item.notice-warning strong { color: var(--color-price-negative); }
.notice-banner-more { display: inline-block; margin-top: var(--space-xs); font-size: 0.82rem; text-decoration: underline; }

.notices-page { padding: var(--space-lg) 0 var(--space-xl); }
.notices-page h1 { font-size: 1.5rem; margin-bottom: var(--space-lg); }
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-item {
  padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border);
}
.notice-item h2 { font-size: 1.05rem; margin: var(--space-xs) 0 var(--space-sm); }
.notice-item.notice-warning h2 { color: var(--color-price-negative); }
.notice-date { color: var(--color-text-secondary); font-size: 0.82rem; }

/* ---------- 固定ページ(プライバシーポリシー・利用規約) ---------- */
.legal-page { padding: var(--space-lg) 0 var(--space-xl); }
.legal-head { margin-bottom: var(--space-lg); }
.legal-head h1 { font-size: 1.6rem; line-height: 1.35; }
.legal-meta { margin-top: var(--space-xs); color: var(--color-text-secondary); font-size: 0.85rem; }
.legal-operator {
  margin-top: var(--space-xl); padding: var(--space-md);
  background: var(--color-surface-alt); border-radius: var(--radius-card);
}
.legal-operator h2 { font-size: 1rem; margin-bottom: var(--space-sm); }
.legal-operator dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs) var(--space-md); }
.legal-operator dt { color: var(--color-text-secondary); font-size: 0.9rem; }
.legal-nav {
  display: flex; gap: var(--space-md); flex-wrap: wrap;
  margin-top: var(--space-xl); padding-top: var(--space-md);
  border-top: 1px solid var(--color-border); font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-xl);
  padding: var(--space-xl) 0 calc(var(--space-xl) + 56px);
  background: #232735; color: #c6c9d4;
  font-size: 0.85rem;
}
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-disclosure { opacity: 0.8; }
.footer-legal { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-md); }
.footer-legal a { color: #e8eaf0; text-decoration: underline; }

/* ---------- Bottom Navigation(Mobile) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 10px;
  font-size: 0.68rem; font-weight: 600;
  color: var(--color-text-secondary);
}
.bottom-nav svg { width: 22px; height: 22px; fill: currentColor; }
.bottom-nav a.is-active { color: var(--color-accent-season-deep); }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: var(--space-xl) 0; }
.error-code { font-size: 3.5rem; font-weight: 800; color: var(--color-accent-season); margin: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .card-grid-2, .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rates-form { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
  .rates-form button { grid-column: auto; }
}
@media (max-width: 899px) {
  body[data-map-screen="true"] {
    height: 100dvh; min-height: 100dvh;
    padding-bottom: 0; overflow: hidden;
  }
  body[data-map-screen="true"] > .site-header,
  body[data-map-screen="true"] > .notice-banner,
  body[data-map-screen="true"] > .nav-drawer,
  body[data-map-screen="true"] > .nav-scrim,
  body[data-map-screen="true"] > .site-footer,
  body[data-map-screen="true"] > .bottom-nav { display: none; }
  body[data-map-screen="true"] #main { min-height: 0; }
  .hotel-map-screen {
    width: 100%; height: 100dvh; min-height: 100dvh;
    margin: 0;
  }
  .hotel-map-screen-bar {
    flex: none;
    min-height: calc(64px + env(safe-area-inset-top));
    margin: 0; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }
  .hotel-map-screen-back { min-height: 44px; padding-inline: 14px; }
  .hotel-map-screen-heading h1 { font-size: 1rem; }
  .hotel-map-panel-screen {
    min-height: 0; border: 0; border-radius: 0;
  }
  .hotel-map-panel-screen .hotel-map { height: 100%; min-height: 0; }
  .hotel-map-screen-empty { border-radius: 0; }
}
@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .top-nav { display: flex; }
  .bottom-nav { display: none; }
  /* 広幅は top-nav があるのでハンバーガーは出さない */
  .nav-toggle, .nav-drawer, .nav-scrim { display: none; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: var(--space-xl); }
  .hotel-map-mobile-link { display: none; }
  .hotel-results-head {
    flex-direction: row; align-items: center; justify-content: space-between;
  }
  .hotel-map-toggle { display: inline-flex; min-height: 44px; }
  /* 地図が見えている時は閉じる操作を控えめにし、閉じた時だけ地図導線を主役にする */
  .hotel-map-zone[data-map-state="default"] .hotel-map-toggle,
  .hotel-map-zone[data-map-state="open"] .hotel-map-toggle {
    color: var(--color-accent-season-deep);
    background: var(--color-surface);
    border-color: var(--color-accent-season);
    box-shadow: none;
  }
  .hotel-map-zone[data-map-state="default"] .hotel-map-toggle:hover,
  .hotel-map-zone[data-map-state="open"] .hotel-map-toggle:hover {
    color: var(--color-accent-season-deep);
    background: var(--color-accent-season-soft);
  }
  .hotel-map-panel-list .hotel-map { height: 460px; }
}

/* ---------- Motion: 操作フィードバックに限定 / reduced-motion尊重 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
