/* Rei Village — 公開用スタイル */
:root {
  --rv-radius: 16px; /* カード・写真の角丸。ボタン/バッジはピル型（999px） */
  /* 明るい背景に乗せる「文字」専用アンバー（#FAF6EE上で5.29:1・WCAG AA適合）。
     ボタン背景・罫線・装飾は従来の #C4860A のまま使う */
  --rv-amber-text: #8A5E07;
  --rv-focus-dark: #8A5E07;  /* フォーカスリング（明るい背景用） */
  --rv-focus-light: #F0C24A; /* フォーカスリング（暗い背景・写真上用） */
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-text-size-adjust: 100%; /* 旧Safariの文字自動拡大を抑止 */
  background: #FAF6EE;
  color: #2A1F14;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 2.2;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rv-amber-text); text-decoration: none; }
a:hover { color: #D4A045; }
img { display: block; }
/* picture はレイアウトに関与させない（img の height:100% を親コンテナ基準に保つ） */
picture { display: contents; }

/* ===== keyframes ===== */
@keyframes rv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rv-spin { to { transform: rotate(360deg); } }
@keyframes rv-kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes rv-walk { from { transform: translateX(85vw); } to { transform: translateX(-160%); } }
@keyframes rv-bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes rv-scrollline {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
@keyframes rv-aerial-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes rv-fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== ヘッダー ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; padding: 14px clamp(20px, 4vw, 48px);
  background: transparent; box-shadow: none;
  transition: background .4s ease, box-shadow .4s ease;
}
.site-header .hd-title {
  font-family: 'Shippori Mincho', serif; font-weight: 600; font-size: 19px;
  letter-spacing: .06em; color: #FAF6EE; transition: color .4s ease;
}
.site-header .hd-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 12px;
  letter-spacing: .24em; color: #D4A045; transition: color .4s ease;
}
.site-header.is-scrolled, .site-header.is-menu-open { background: #FAF6EE; box-shadow: 0 24px 60px -20px rgba(42,31,20,.35); }
.site-header.is-scrolled .hd-title, .site-header.is-menu-open .hd-title { color: #2A1F14; }
.site-header.is-scrolled .hd-sub, .site-header.is-menu-open .hd-sub { color: var(--rv-amber-text); }

/* ヘッダーCTA（高さはハンバーガーの丸=42pxに揃える。スマホでは幅も小さく） */
.site-header .hd-cta {
  display: inline-flex; align-items: center; height: 42px; line-height: 1;
  box-sizing: border-box; font-size: 13px; letter-spacing: .12em; padding: 0 24px;
}
@media (max-width: 640px) {
  .site-header .hd-cta { font-size: 12px; letter-spacing: .08em; padding: 0 15px; }
}

/* ===== ハンバーガーメニュー ===== */
#rv-menu-btn {
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: none; border: 1px solid currentColor; cursor: pointer;
  color: #FAF6EE; transition: color .4s ease;
}
.site-header.is-scrolled #rv-menu-btn, .site-header.is-menu-open #rv-menu-btn { color: var(--rv-amber-text); }
#rv-menu-btn span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform .35s ease, opacity .3s ease;
}
#rv-menu-btn span:nth-child(1) { top: 15px; }
#rv-menu-btn span:nth-child(2) { top: 20px; }
#rv-menu-btn span:nth-child(3) { top: 25px; }
#rv-menu-btn.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
#rv-menu-btn.is-open span:nth-child(2) { opacity: 0; }
#rv-menu-btn.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

#rv-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: #FAF6EE; box-shadow: 0 24px 60px -20px rgba(42,31,20,.35);
  border-radius: 0 0 var(--rv-radius) var(--rv-radius);
  padding: 82px 24px 26px; padding: 82px clamp(24px, 6vw, 48px) 26px;
  max-height: 100vh; max-height: 100svh; overflow-y: auto;
  transform: translateY(-105%); visibility: hidden;
  transition: transform .45s ease, visibility .45s;
}
#rv-menu.is-open { transform: translateY(0); visibility: visible; }
#rv-menu a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 4px; border-top: 1px solid rgba(42,31,20,.1);
  font-family: 'Shippori Mincho', serif; font-weight: 500; font-size: 15px;
  letter-spacing: .12em; color: #2A1F14;
}
#rv-menu a:hover { color: var(--rv-amber-text); }
#rv-menu a .en {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
  font-size: 12px; letter-spacing: .2em; color: #C4860A;
}
#rv-menu a.menu-cta { color: var(--rv-amber-text); border-top-color: rgba(196,134,10,.4); }
section[id], :target { scroll-margin-top: 96px; } /* 固定ヘッダー分＋余白（アンカー着地位置） */
@media (prefers-reduced-motion: reduce) {
  #rv-menu, #rv-menu-btn span { transition: none; }
}

/* ===== ボタン ===== */
.btn-gold {
  background: #C4860A; color: #FAF6EE; transition: background .3s;
}
.btn-gold:hover { background: #D4A045; color: #FAF6EE; }
.btn-outline {
  display: inline-block; border: 1px solid #C4860A; color: #C4860A; background: transparent;
  font-size: 16px; letter-spacing: .14em; padding: 16px 40px; border-radius: 999px;
  transition: background .3s, color .3s;
}
.btn-outline:hover { background: #C4860A; color: #FAF6EE; }

/* ===== イベントカード ===== */
.event-card {
  border: 1px solid rgba(42,31,20,.14); border-radius: var(--rv-radius); padding: 26px 24px;
  transition: border-color .3s;
}
.event-card:hover { border-color: #C4860A; }

/* ===== 写真プレースホルダー（差し替え用） ===== */
.img-placeholder {
  width: 100%; height: 100%; min-height: 180px; border-radius: var(--rv-radius);
  display: flex; align-items: center; justify-content: center;
  background: #EDE0C4; border: 1px dashed rgba(196,134,10,.5);
  box-sizing: border-box; padding: 16px; text-align: center;
  font-size: 11px; letter-spacing: .08em; color: rgba(42,31,20,.55); line-height: 1.9;
}

/* ===== 動物病院カード（アコーディオン・複数同時に開ける） ===== */
.vet-card {
  border: 1px solid rgba(42,31,20,.14); border-radius: var(--rv-radius);
  transition: border-color .3s; overflow: hidden; align-self: start;
}
.vet-card:hover, .vet-card.is-open { border-color: #C4860A; }
.vet-card__head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; padding: 20px 24px; cursor: pointer;
  background: none; border: 0; text-align: left; color: inherit; font: inherit;
}
.vet-card__name {
  display: block; margin: 0 0 4px; font-family: 'Shippori Mincho', serif; font-weight: 600;
  font-size: 17px; letter-spacing: .08em; line-height: 1.7;
}
.vet-card__distance {
  display: block; margin: 0; font-size: 15px; letter-spacing: .06em; color: var(--rv-amber-text); font-weight: 400;
}
.vet-card__mark {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px;
  color: var(--rv-amber-text); flex: none; line-height: 1;
  transition: transform .35s ease;
}
.vet-card.is-open .vet-card__mark { transform: rotate(45deg); }
.vet-card__body {
  padding: 0 24px; overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-6px);
  transition: max-height .5s ease, opacity .4s ease .05s, transform .4s ease .05s, padding .4s ease;
}
.vet-card.is-open .vet-card__body { max-height: 480px; opacity: 1; transform: none; padding: 2px 24px 22px; }
.vet-card__row {
  display: flex; gap: 12px; align-items: baseline;
  border-top: 1px solid rgba(42,31,20,.1); padding: 9px 0;
  font-size: 15px; line-height: 1.9; color: rgba(42,31,20,.8);
}
.vet-card__label {
  flex: 0 0 64px; font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 13.5px; letter-spacing: .12em; color: var(--rv-amber-text);
}
.vet-card__row a { letter-spacing: .04em; }
.vet-card__note {
  margin: 14px 0 0; font-size: 13.5px; letter-spacing: .06em; color: rgba(42,31,20,.55);
}

/* ===== Safety 数値スタッツ ===== */
.safety-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px; gap: clamp(24px, 4vw, 48px); text-align: center;
}
.safety-stat__num {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 44px; font-size: clamp(44px, 6vw, 72px); line-height: 1.2; color: #2A1F14;
}
.safety-stat__label { font-size: 15px; letter-spacing: .08em; margin-top: 6px; }
.safety-stat__desc {
  font-size: 13px; letter-spacing: .06em; color: rgba(42,31,20,.6); margin-top: 4px; line-height: 1.9;
}
@media (max-width: 640px) {
  /* スマホは「数字＋説明」の横並びコンパクト行にして縦の間延びを防ぐ */
  .safety-stats { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .safety-stat {
    display: flex; align-items: center; gap: 18px;
    padding: 14px 2px; border-top: 1px solid rgba(42,31,20,.16);
  }
  .safety-stat:last-child { border-bottom: 1px solid rgba(42,31,20,.16); }
  .safety-stat__num { font-size: 38px; flex: 0 0 128px; }
  .safety-stat__text { flex: 1; min-width: 0; }
  .safety-stat__label { margin-top: 0; }
  .safety-stat__desc { line-height: 1.8; }
}

/* ===== Safety 仕様リスト ===== */
.safety-spec__row {
  display: flex; gap: 16px; align-items: baseline;
  border-top: 1px solid rgba(42,31,20,.16); padding: 13px 4px;
}
.safety-spec__row:last-child { border-bottom: 1px solid rgba(42,31,20,.16); }
.safety-spec__label {
  flex: 0 0 220px; font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 14px; letter-spacing: .12em; color: #C4860A;
}
.safety-spec__value { flex: 1; font-size: 15px; line-height: 2; color: rgba(42,31,20,.7); min-width: 0; }
.safety-spec__value a { border-bottom: 1px solid rgba(196,134,10,.4); }
@media (max-width: 640px) {
  /* スマホはラベルの下に値を左寄せ（右カラム極細の折り返し崩れを構造的に防ぐ） */
  .safety-spec__row { flex-direction: column; gap: 2px; padding: 12px 2px; }
  .safety-spec__label { flex: none; }
}

/* ===== 設備写真ギャラリー ===== */
.spec-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 10px; gap: clamp(10px, 1.6vw, 18px);
}
.spec-thumb {
  display: block; padding: 0; background: none; border: 0;
  cursor: zoom-in; text-align: left; font: inherit; color: inherit;
}
.spec-thumb picture { display: contents; }
.spec-thumb img {
  display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 12px;
}
.spec-thumb img { transition: opacity .3s; }
.spec-thumb:hover img { opacity: .85; }
.spec-thumb__cap {
  display: block; margin-top: 8px;
  font-size: 14px; letter-spacing: .08em; color: rgba(42,31,20,.65);
}

/* ===== 料金（泊まる/日帰りタブ切替） ===== */
.rv-price__scarce {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(196,134,10,.55); color: var(--rv-amber-text); border-radius: 999px;
  padding: 7px 18px; font-size: 13px; letter-spacing: .08em;
  background: rgba(196,134,10,.06);
}
.rv-seg {
  display: flex; max-width: 420px; margin: 28px auto 0;
  border: 1px solid #233A1C; border-radius: 999px; overflow: hidden; background: #FAF6EE;
}
.rv-seg__btn {
  flex: 1; min-height: 56px; border: 0; background: transparent; cursor: pointer;
  font-family: 'Shippori Mincho', serif; font-weight: 600; font-size: 15px;
  letter-spacing: .1em; color: #233A1C; padding: 10px 8px;
  transition: background .25s ease, color .25s ease;
}
.rv-seg__cap {
  display: block; font-family: 'Noto Sans JP', sans-serif; font-weight: 300;
  font-size: 11px; letter-spacing: .06em; color: rgba(42,31,20,.55); margin-top: 2px; line-height: 1.6;
}
.rv-seg__btn[aria-selected="true"] { background: #233A1C; color: #FAF6EE; }
.rv-seg__btn[aria-selected="true"] .rv-seg__cap { color: rgba(250,246,238,.7); }

.rv-panel { margin-top: 28px; margin-top: clamp(28px, 4vw, 40px); }
.rv-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .rv-panel.is-active { animation: rv-fadein .35s ease; }
}

.rv-stay {
  background: #FAF6EE; border: 1px solid rgba(42,31,20,.14); border-radius: var(--rv-radius);
  padding: 28px 20px; padding: clamp(28px, 4.5vw, 44px) clamp(20px, 4vw, 40px);
  max-width: 640px; margin: 0 auto; text-align: center;
}

.rv-day { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 768px) { .rv-day { grid-template-columns: repeat(3, 1fr); gap: 16px; gap: clamp(16px, 2vw, 24px); } }
.rv-card {
  position: relative; background: #FAF6EE; border: 1px solid rgba(42,31,20,.14);
  border-radius: var(--rv-radius); padding: 28px 22px 24px;
  display: flex; flex-direction: column; text-align: left;
}
.rv-card--rec { border: 1.6px solid #233A1C; box-shadow: 0 14px 32px -18px rgba(35,58,28,.5); }
.rv-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #C4860A; color: #FAF6EE; font-size: 11.5px; letter-spacing: .1em;
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}
.rv-card__nm { font-family: 'Shippori Mincho', serif; font-weight: 600; font-size: 16px; letter-spacing: .08em; color: #233A1C; }
.rv-card__en { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 12px; letter-spacing: .14em; color: var(--rv-amber-text); margin-bottom: 12px; }
.rv-card__time { font-size: 13.5px; letter-spacing: .04em; color: rgba(42,31,20,.6); margin-bottom: 10px; }
.rv-card__strike { font-size: 13px; color: rgba(42,31,20,.55); }
.rv-card__strike s { font-family: 'Cormorant Garamond', serif; font-size: 17px; text-decoration-color: rgba(196,134,10,.7); }
.rv-card__amt { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 34px; line-height: 1.2; color: #2A1F14; }
.rv-card__amt--sm { font-family: 'Shippori Mincho', serif; font-weight: 600; font-size: 19px; line-height: 1.5; }
.rv-card__amt small { font-size: 13px; color: rgba(42,31,20,.6); font-weight: 400; }
.rv-card__desc { margin: 12px 0 0; font-size: 14px; line-height: 2; color: rgba(42,31,20,.7); flex: 1; }
.rv-add-note { margin: 22px 0 0; font-size: 14px; letter-spacing: .04em; color: rgba(42,31,20,.65); text-align: center; }
.rv-add-note b { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 17px; color: #233A1C; }

.rv-cta { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; margin-top: clamp(24px, 4vw, 32px); flex-wrap: wrap; }
.rv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 34px; border-radius: 999px;
  font-size: 14px; letter-spacing: .12em; box-sizing: border-box;
}
.rv-btn--ghost { border: 1px solid #233A1C; color: #233A1C; background: transparent; transition: background .3s, color .3s; }
.rv-btn--ghost:hover { background: #233A1C; color: #FAF6EE; }
.rv-cta__cap { margin: 14px 0 0; font-size: 14px; letter-spacing: .08em; color: rgba(42,31,20,.6); text-align: center; }
.rv-notes { max-width: 720px; margin: 28px auto 0; margin: clamp(28px, 4.5vw, 40px) auto 0; }
.rv-notes div { font-size: 13.5px; line-height: 2.2; letter-spacing: .06em; color: rgba(42,31,20,.65); text-align: left; }
@media (max-width: 640px) {
  .rv-cta { flex-direction: column; }
  .rv-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-seg__btn, .rv-btn--ghost { transition: none; }
}

/* ===== LINE予約CTAブロック（#price 最下部と #rv-final-cta の2箇所で共用。文言は両方同期） ===== */
.rv-linecta { margin-top: 40px; margin-top: clamp(40px, 6vw, 64px); text-align: center; }
.rv-linecta__lead {
  margin: 0 0 24px; font-family: 'Shippori Mincho', serif; font-weight: 600;
  font-size: 16px; letter-spacing: .1em; line-height: 2;
}
.rv-linecta__steps {
  list-style: none; counter-reset: rv-step; margin: 28px auto 0; padding: 0;
  display: flex; justify-content: center; gap: 14px; gap: clamp(14px, 3vw, 40px); flex-wrap: wrap;
}
.rv-linecta__steps li {
  counter-increment: rv-step; display: flex; align-items: center; gap: 9px;
  font-size: 14px; letter-spacing: .06em; line-height: 1.8;
}
.rv-linecta__steps li::before {
  content: counter(rv-step); flex: none; width: 27px; height: 27px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(196,134,10,.55); color: var(--rv-amber-text);
  font-family: 'Cormorant Garamond', serif; font-size: 14px; line-height: 1;
}
.rv-linecta__cap { margin: 20px 0 0; font-size: 14px; letter-spacing: .08em; color: rgba(42,31,20,.65); }
.rv-linecta__mail { margin: 12px 0 0; font-size: 13px; letter-spacing: .04em; line-height: 2.1; color: rgba(42,31,20,.6); }
.rv-linecta__mail a { border-bottom: 1px solid rgba(196,134,10,.4); }
/* 暗い背景（最終CTA）に置くとき */
.rv-linecta--dark .rv-linecta__lead { color: rgba(250,246,238,.9); }
.rv-linecta--dark .rv-linecta__steps li { color: rgba(250,246,238,.85); }
.rv-linecta--dark .rv-linecta__steps li::before { color: #D4A045; border-color: rgba(212,160,69,.55); }
.rv-linecta--dark .rv-linecta__cap { color: rgba(250,246,238,.65); }
.rv-linecta--dark .rv-linecta__mail { color: rgba(250,246,238,.6); }
.rv-linecta--dark .rv-linecta__mail a { color: #D4A045; border-bottom-color: rgba(212,160,69,.4); }
.rv-linecta--dark a:focus-visible { outline-color: var(--rv-focus-light); }
@media (max-width: 640px) {
  /* 3ステップはスマホで縦積み。リスト全体は中央・各項目は左揃え */
  .rv-linecta__steps {
    flex-direction: column; align-items: flex-start; gap: 10px;
    width: fit-content; margin-left: auto; margin-right: auto;
  }
}

/* ===== 周辺スポット（Leaflet地図＋タブ） ===== */
.rv-near * { box-sizing: border-box; }
.nb-map {
  height: 380px; height: min(48vh, 380px); width: 100%;
  border-radius: var(--rv-radius); overflow: hidden;
  border: 1px solid rgba(42,31,20,.14);
  box-shadow: 0 24px 60px -20px rgba(42,31,20,.35);
  background: #EDE0C4;
}
.nb-map__hint { margin: 12px 0 0; font-size: 12.5px; letter-spacing: .04em; line-height: 1.9; color: rgba(42,31,20,.6); }
.rv-near .leaflet-container { font-family: 'Noto Sans JP', sans-serif; background: #EDE0C4; }
.rv-near .leaflet-control-zoom a { color: #2A1F14; background: #FAF6EE; border-color: rgba(42,31,20,.14); }
.rv-near .leaflet-popup-content-wrapper { border-radius: 10px; background: #FAF6EE; color: #2A1F14; box-shadow: 0 12px 32px -12px rgba(42,31,20,.4); }
.rv-near .leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.8; }
.rv-near .leaflet-popup-tip { background: #FAF6EE; }

/* ピン */
.nb-pin {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 700; color: #FAF6EE;
  border: 2px solid #FAF6EE;
  box-shadow: 0 2px 6px rgba(42,31,20,.35);
  transition: transform .18s ease, opacity .25s ease;
}
.nb-pin--dog { background: #233A1C; }
.nb-pin--human { background: #6E5842; }
.nb-pin--home { background: #C4860A; width: 36px; height: 36px; font-size: 15px; }
.nb-marker--dim .nb-pin { opacity: .22; }
.nb-marker--active .nb-pin { transform: scale(1.25); }

/* タブ */
.nb-tabs {
  display: flex; gap: 8px; margin: 36px 0 4px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.nb-tabs::-webkit-scrollbar { display: none; }
.nb-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; letter-spacing: .04em;
  padding: 11px 18px; border-radius: 999px; cursor: pointer; min-height: 44px;
  border: 1px solid rgba(42,31,20,.2); background: transparent; color: rgba(42,31,20,.7);
  transition: border-color .2s ease, color .2s ease, background .2s ease; white-space: nowrap;
}
.nb-tab:hover { border-color: #C4860A; color: #2A1F14; }
.nb-tab:focus-visible { outline: 2px solid #C4860A; outline-offset: 2px; }
.nb-tab[aria-selected="true"] { background: #233A1C; border-color: #233A1C; color: #FAF6EE; }
.nb-tab__count { font-size: 11.5px; opacity: .65; }

.nb-panel[hidden] { display: none; }
.nb-panel__note {
  margin: 18px 0 6px; padding-left: 12px; border-left: 2px solid #C4860A;
  font-size: 13px; line-height: 1.9; color: rgba(42,31,20,.65);
}

/* スポットカード */
.nb-list { list-style: none; margin: 0; padding: 0; }
.nb-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 0 16px;
  padding: 22px 4px 22px 0; border-bottom: 1px solid rgba(42,31,20,.14);
  cursor: pointer; transition: background .2s ease;
}
.nb-card:hover { background: rgba(196,134,10,.05); }
.nb-card:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #C4860A; border-radius: 10px; }
.nb-card.is-active { background: rgba(196,134,10,.08); }
.nb-lane { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.nb-thumb {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: #EDE0C4; border: 1px solid rgba(42,31,20,.14);
}
.nb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nb-thumb svg { width: 24px; height: 24px; stroke: rgba(42,31,20,.65); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.nb-card.is-active .nb-thumb { border-color: #C4860A; }
.nb-lane__time { font-size: 12px; line-height: 1.5; color: rgba(42,31,20,.6); letter-spacing: .02em; }
.nb-lane__time b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; color: #2A1F14; }
.nb-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; letter-spacing: .06em; padding: 4px 12px;
  border-radius: 999px; margin-bottom: 8px;
}
.nb-badge--dog { background: rgba(35,58,28,.1); color: #233A1C; }
.nb-badge--human { background: rgba(42,31,20,.07); color: rgba(42,31,20,.65); }
.nb-card__name { margin: 0 0 6px; font-family: 'Shippori Mincho', serif; font-size: 17px; font-weight: 600; letter-spacing: .05em; }
.nb-card__desc { margin: 0 0 10px; font-size: 13.5px; line-height: 2; color: rgba(42,31,20,.7); }
.nb-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 0 0 12px; font-size: 12.5px; color: rgba(42,31,20,.6); }
.nb-meta__caution { color: #8B4A2B; }
.nb-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.nb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; letter-spacing: .06em; text-decoration: none;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(42,31,20,.2); color: #2A1F14; background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nb-btn:hover { background: #C4860A; color: #FAF6EE; border-color: #C4860A; }
.nb-btn--primary { background: #C4860A; color: #FAF6EE; border-color: #C4860A; }
.nb-btn--primary:hover { background: #D4A045; border-color: #D4A045; }
.nb-btn:focus-visible { outline: 2px solid #C4860A; outline-offset: 2px; }

/* 注記 */
.nb-fine {
  margin-top: 40px; padding: 22px 24px; background: #EDE0C4;
  border-radius: var(--rv-radius); font-size: 12px; line-height: 2.1; color: rgba(42,31,20,.65);
}
.nb-fine p { margin: 0; font-size: 12px !important; line-height: 2.1 !important; }
.nb-fine p + p { margin-top: 8px; }

@media (max-width: 640px) {
  .nb-map { height: 44vh; }
  .nb-card { grid-template-columns: 56px 1fr; gap: 0 13px; padding: 20px 0; }
  .nb-thumb { width: 46px; height: 46px; }
  .nb-fine p { font-size: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-pin, .nb-tab, .nb-card, .nb-btn { transition: none !important; }
}

/* ===== トップに戻るボタン ===== */
#rv-to-top {
  position: fixed; right: 16px; right: clamp(16px, 3vw, 32px); bottom: 16px; bottom: clamp(16px, 3vw, 32px); z-index: 150;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(250,246,238,.94); border: 1px solid rgba(196,134,10,.55); color: var(--rv-amber-text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 12px 32px -12px rgba(42,31,20,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease, visibility .4s, background .3s, color .3s;
}
#rv-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#rv-to-top:hover { background: #C4860A; color: #FAF6EE; }
#rv-to-top svg { display: block; }
@media (prefers-reduced-motion: reduce) {
  #rv-to-top { transition: none; }
}

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid rgba(42,31,20,.14); }
.faq-q {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 4px; cursor: pointer; width: 100%;
  background: none; border: 0; text-align: left; color: inherit; font: inherit;
}
.faq-q .q-text {
  font-family: 'Shippori Mincho', serif; font-weight: 600; font-size: 17px;
  letter-spacing: .06em; line-height: 1.9;
}
.faq-q .q-mark {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px;
  color: var(--rv-amber-text); flex: none;
  transition: transform .35s ease;
}
.faq-item.is-open .q-mark { transform: rotate(45deg); }
.faq-a {
  margin: 0; padding: 0 4px; font-size: 15.5px; line-height: 2.2; color: rgba(42,31,20,.7);
  display: block; overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-6px);
  transition: max-height .5s ease, opacity .4s ease .05s, transform .4s ease .05s, padding .4s ease;
}
.faq-item.is-open .faq-a { max-height: 640px; opacity: 1; transform: none; padding: 2px 4px 24px; }
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-q .q-mark, .vet-card__body, .vet-card__mark { transition: none; }
}

/* ===== アクセシビリティ（フォーカスリング・タップ領域） ===== */
/* :focus-visible = キーボード（Tab）操作時のみリング表示。マウスクリックでは出ない */
.faq-q:focus-visible, .vet-card__head:focus-visible, .spec-thumb:focus-visible,
.rv-seg__btn:focus-visible, #rv-to-top:focus-visible, a:focus-visible {
  outline: 3px solid var(--rv-focus-dark); outline-offset: 3px; border-radius: 4px;
}
/* 暗い背景・写真・アンバー地の上に乗る要素は明るい金のリング */
#rv-menu-btn:focus-visible, #rv-menu a:focus-visible, .btn-gold:focus-visible,
.rv-btn:focus-visible, .menu-cta:focus-visible, #rv-lightbox-close:focus-visible {
  outline: 3px solid var(--rv-focus-light); outline-offset: 3px; border-radius: 4px;
}
/* ヘッダーの背景が明るくなったら暗いリングに戻す */
.site-header.is-scrolled #rv-menu-btn:focus-visible,
.site-header.is-scrolled .hd-cta:focus-visible,
.site-header.is-menu-open #rv-menu-btn:focus-visible { outline-color: var(--rv-focus-dark); }
/* :focus-visible 非対応ブラウザ向けフォールバック */
@supports not selector(:focus-visible) {
  .faq-q:focus, .vet-card__head:focus, .spec-thumb:focus, .rv-seg__btn:focus, .btn-gold:focus,
  .rv-btn:focus, #rv-menu-btn:focus, #rv-to-top:focus, #rv-lightbox-close:focus, a:focus {
    outline: 3px solid var(--rv-focus-dark); outline-offset: 3px;
  }
}
/* ライトボックスの×ボタン: 背景クリック(閉じる)より手前＋44px以上のタップ領域 */
#rv-lightbox-close {
  z-index: 210; display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}
/* 空の src="" が自ページへ余計なリクエストを出すのを防ぐ */
#rv-lightbox-img[src=""] { display: none; }
/* スマホのタップ領域確保（WCAG 2.5.5。現状いずれも44px超だが下限の保険） */
@media (max-width: 768px) {
  .spec-thumb, .rv-seg__btn, .vet-card__head, .faq-q { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *:focus-visible { transition: none !important; }
}

/* ===== 読みやすさ調整（50〜60代のゲストにも読みやすく、小さい文字を全デバイスで拡大） ===== */
[style*="font-size:11px"]   { font-size: 12.5px !important; }
[style*="font-size:11.5px"] { font-size: 13px !important; }
[style*="font-size:12px"]   { font-size: 13.5px !important; }
[style*="font-size:12.5px"] { font-size: 14px !important; }
[style*="font-size:13px"]   { font-size: 15px !important; }
[style*="font-size:13.5px"] { font-size: 15px !important; }
[style*="font-size:14px"]   { font-size: 16px !important; }
[style*="font-size:14.5px"] { font-size: 16px !important; }

/* ===== スマートフォン ===== */
@media (max-width: 640px) {
  p { font-size: 16px !important; line-height: 2.2 !important; }
  [style*="font-size:13px"], [style*="font-size:13.5px"], [style*="font-size:14px"], [style*="font-size:14.5px"] { font-size: 16px !important; }
  [style*="font-size:11px"], [style*="font-size:11.5px"], [style*="font-size:12px"], [style*="font-size:12.5px"] { font-size: 14px !important; }
}

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  #rv-hero-a, #rv-hero-b, #rv-rei-walk, #rv-rei-walk img { animation: none !important; }
  #rv-rei-walk { display: none; }
  #rv-marquee-track { animation-play-state: paused !important; }
  #rv-aerial { animation: none !important; }
}

/* ===== 古いSafari向けフォールバック（2026-09-02 iPad実機の崩れ対応） =====
   aspect-ratio 未対応の環境では写真ボックスの高さが0に潰れるため、固定高で代替する。
   新しいブラウザはこのブロックを読まない（@supports not）。
   インラインstyleの clamp()/min()/inset/svh のフォールバックは tools/css-fallbacks.js が挿入済み。
   新しく clamp() 等を書き足したら同スクリプトを再実行すること */
@supports not (aspect-ratio: 1) {
  .rv-arfb-square { height: 170px; }   /* Special Events 季節写真4連 */
  .rv-arfb-portrait { height: 440px; } /* コンセプトの縦写真 */
}
