@charset "UTF-8";
/* Single Stay（犬連れ宿） — Slim Edition
   目的：重複削減・共通化・可読性向上（見た目は維持） */

/* =========================
   0) 基本・共通ユーティリティ
========================= */

/* タイル共通（button既定抑止＋角丸＋カバー） */
.stay-hero-grid .tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  line-height: 0;
}
.stay-hero-grid .tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  background: transparent;
}
.stay-hero-grid .tile:focus { outline: none; }
.stay-hero-grid .tile:focus-visible {
  outline: 2px solid var(--wan-accent, #ff922b);
  outline-offset: 2px;
  border-radius: 16px;
}

/* 小さなピルCTA（固定位置＆非インタラクト） */
.stay-hero-grid .tile .tile-cta {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  color: #111; font-weight: 700; font-size: 13px; line-height: 1;
  letter-spacing: .01em; white-space: nowrap;
  pointer-events: none; user-select: none;
}
@media (max-width: 640px){
  .stay-hero-grid .tile .tile-cta { right: 10px; bottom: 10px; padding: 7px 12px; }
}

/* アイコン系の標準サイズ */
.icon svg,
.wan-room__specrow svg,
.wan-room__bedrow svg { width: 1.05em; height: 1.05em; }

/* =========================
   1) ヒーローギャラリー
========================= */

.stay-hero-gallery { margin: 18px 0 22px; }

/* SWELLのfloat/column干渉を最小で打消し */
.stay-hero-gallery, .stay-hero-gallery * {
  column-count: initial !important;
  column-width: auto !important;
  float: none !important;
}

/* 1大＋4小のグリッド */
.stay-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas: "A B C" "A D E";
  gap: 10px; align-items: stretch;
}
.stay-hero-grid .tile--hero { grid-area: A; height: 100%; min-height: 100%; aspect-ratio: auto; }
.stay-hero-grid .tile:nth-child(2){ grid-area: B; aspect-ratio: 1/1; }
.stay-hero-grid .tile:nth-child(3){ grid-area: C; aspect-ratio: 1/1; }
.stay-hero-grid .tile:nth-child(4){ grid-area: D; aspect-ratio: 1/1; }
.stay-hero-grid .tile:nth-child(5){ grid-area: E; aspect-ratio: 1/1; }

@media (max-width: 640px){
  .stay-hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "A A" "B C" "D E";
    gap: 8px;
  }
  .stay-hero-grid .tile { border-radius: 12px; }
}

/* =========================
   2) ページ基本（タイトル等）
========================= */

.post_content h1.post_title { margin-bottom: var(--wan-space-2); }

.post_content .wan-locationline{
  margin-bottom: var(--wan-space-5);
  display: flex; align-items: center; gap: 6px; line-height: 1;
}

.post_content .wan-subtitle{
  margin-bottom: var(--wan-space-2);
  font-weight: var(--wan-weight-bold);
  font-size: var(--wan-fsize-xl);
}

/* =========================
   3) セクション：犬情報/部屋/施設
========================= */

/* 3-1 犬情報 */
.wan-dogGrid{
  display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start;
}
@media (max-width: 768px){ .wan-dogGrid { grid-template-columns: 1fr; } }

.wan-box{
  background: var(--wan-surface);
  border: 1px solid var(--wan-line);
  border-radius: 6px;
  padding: 10px 12px; margin-bottom: 8px;
}
.wan-box__label{ font-size: .9rem; color: var(--wan-muted); }
.wan-box__value{ font-size: 1.1rem; font-weight: 600; }

/* 3-2 部屋：タイトル＋2カラム＋行パターン共通化 */
.wan-room__title{
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 800; margin: .3em 0 .6em;
}
.wan-room__grid{
  display: grid; grid-template-columns: 1.2fr 1.1fr; gap: 28px; align-items: start;
}
@media (max-width: 980px){
  .wan-room__grid{ grid-template-columns: 1fr; }
  .wan-room__media{ order: 2; } .wan-room__info{ order: 1; }
}

/* 行の共通（アイコン＋値） */
.wan-room__specrow,
.wan-room__bedrow{
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 6px 0 14px; padding: 0; list-style: none;
}
.wan-room__specrow li,
.wan-room__bedrow .item{ display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }

/* 特徴リスト */
.wan-room__features-wrap{ margin-top: 48px; }
.wan-room__features{
  display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 12px 0 14px; padding: 0;
}
.wan-room__features li{ display: flex; align-items: center; gap: .45em; line-height: 1.4; }
.wan-room__features .check svg{ width: 1.1em; height: 1.1em; display: block; flex-shrink: 0; vertical-align: middle; }

/* 「部屋の特徴」のh4（親テーマ打消し＋最小指定） */
.post_content .wan-room .wan-room__features-title{
  font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 8px 0; color: var(--wan-text, #111);
  border-left: none !important; padding-left: 0 !important; position: static !important;
}

/* =========================
   4) テーブル・カード
========================= */

.wan-table{ width: 100%; border-collapse: collapse; }
.wan-table th, .wan-table td{ border: 1px solid var(--wan-line); padding: 8px 10px; }
.wan-table th{ background: var(--wan-surface); text-align: left; font-weight: 500; }
.wan-table td.center{ text-align: center; }
.wan-card p{ font-size: .9rem; color: var(--wan-muted); }

/* 見出し下線＆thead配色（親テーマと整合） */
.post_content h2{
  margin: var(--wan-space-8) 0; padding: 0; color: #111; background: none;
}
.post_content h3{
  margin: var(--wan-space-6) 0; padding: 0; color: var(--wan-text); font-size: var(--wan-fsize-xl);
}
.post_content h3::before{ content: none; }
h2.c-secTitle{ border-left: none; }
.post_content h2::before{
  content:""; display:block; border-bottom: 2px solid var(--wan-line, #e5e7eb);
  margin-bottom: var(--wan-space-3);
  border-top: none;
  top: 12px;
}
.post_content thead td,
.post_content thead th{
  background-color: var(--wan-text-muted, #f2f2f2) !important;
  color: #fff; width: 50%;
}
.headcount-text{ margin-top: var(--wan-space-6); }

/* =========================
   5) ボタン・補助
========================= */

.wan-btn{
  display: inline-block; padding: .7em 1.2em; border-radius: 6px; color: #fff;
  font-weight: 600; text-align: center; transition: opacity .2s;
}
.wan-btn--rakuten{ background: #c92525; }
.wan-btn--jalan{ background: #f47920; }
.wan-btn--ikyu{ background: #003f7d; }
.wan-btn:hover{ opacity: .85; }

.wan-more{
  display: inline-block; margin: 1em auto 0; padding: .6em 1.4em;
  border: 1px solid var(--wan-accent); color: var(--wan-accent);
  border-radius: 30px; font-weight: 600; background: #fff; cursor: pointer;
}
.wan-note{ font-size: .9rem; color: var(--wan-muted); margin-top: 1em; text-align: right; }

/* =========================
   6) タブ（ページ層）
========================= */

/* 上端で固定。ヘッダーがあるなら CSS変数で調整 */
:root { --wan-sticky-top: 56px; } /* 無ければ定義。ヘッダー無なら 0 */

.post_content .wan-tabs{
  position: sticky;
  top: var(--wan-sticky-top);   /* ← 上端到達で固定 */
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--wan-line, #e5e7eb);
  transition: box-shadow .2s, border-color .2s, background-color .2s;
}

/* 貼り付いている間だけ、影などを付ける（視覚フィードバック） */
.post_content .wan-tabs.is-stuck{
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  border-bottom-color: transparent;
}

/* =========================
   7) レストラン / 施設 / スパ
========================= */

/* 2カラムの共通レイアウト（左右比率は部屋と揃える） */
.two-col{
  display: grid; grid-template-columns: 1.2fr 1.1fr; gap: 28px; align-items: start;
}
@media (max-width: 960px){ .two-col{ grid-template-columns: 1fr; } }

.stay-restaurant .restaurant-list,
.stay-facility .facility-list{ display: grid; gap: 20px; }

.stay-restaurant .restaurant-card{ margin-bottom: 24px; }
.stay-restaurant .restaurant-card__inner,
.stay-facility .facility-card__inner,
.spa-card__row{ composes: two-col; } /* CSS Modulesない場合は下で展開 */

.stay-restaurant .restaurant-card__inner,
.stay-facility .facility-card__inner,
.spa-card__row{
  display: grid; grid-template-columns: 1.2fr 1.1fr; gap: 28px; align-items: start;
}
@media (max-width: 960px){
  .stay-restaurant .restaurant-card__inner,
  .stay-facility .facility-card__inner,
  .spa-card__row{ grid-template-columns: 1fr; }
}

.stay-restaurant .restaurant-card__desc,
.stay-spa .spa-card__desc{ margin: 0 0 var(--wan-space-6); }

.spa-card__title{
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700; margin-bottom: 12px;
}

/* =========================
   8) アクセス
========================= */

.stay-access .access-header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin: var(--wan-space-6) 0;
}
.stay-access .access-address{ margin: 0; }
.stay-access .access-map-link{ margin: 0; flex: 0 0 auto; }
@media (max-width: 640px){
  .stay-access .access-header{ flex-wrap: wrap; }
  .stay-access .access-map-link{ width: 100%; margin-top: 6px; }
  .stay-access .access-map-link .c-btn{ width: 100%; text-align: center; }
}

.wan-access-map-embed{
  position: relative; border-radius: 12px; overflow: hidden;
  background: var(--wan-surface, #f8fafc); margin-bottom: var(--wan-space-6);
}
.wan-access-map-embed iframe{
  display: block; width: 100%; height: 56.25vw; max-height: 420px; border: 0;
}
@media (min-width: 768px){ .wan-access-map-embed iframe{ height: 420px; } }

/* =========================
   9) リスト微調整
========================= */

.post_content ol, .post_content ul{ padding-left: 0 !important; margin-left: 0; }

.stay-dog-policy > .dog-fee-block,
.stay-dog-policy > .dog-weight-limit-block,
.stay-dog-policy > .dog-capacity,
.stay-dog-policy > .dog-notes-block {
  margin-bottom: var(--wan-space-6);
}
/* =========================================================
   Tabs (.wan-tabs)
   - Sticky navigation bar
   - Active underline (hover / is-active / aria-current)
   - Optional :has(:target) support
========================================================= */

/* ---- List layout ---- */
.wan-tabs__list {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.wan-tabs__list::-webkit-scrollbar { display: none; }

/* ---- Underline (default hidden) ---- */
.wan-tabs__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--wan-accent, #ff922b);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s, opacity 0.22s;
  opacity: 0;
}

/* アクティブだけ下線にする（hoverは出さない） */
.wan-tabs__link[aria-current="true"]::after,
.wan-tabs__link.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* スクロール中は hover 下線を無効化（is-scrolling はJSが付与） */
.wan-tabs.is-scrolling .wan-tabs__link:hover::after {
  transform: scaleX(0) !important;
  opacity: 0 !important;
}

/* 例：ヘッダー(56px) + 余白40px = 合計96px 下で止める */
#sec-dog,
#sec-room,
#sec-restaurant,
#sec-facility,
#sec-access {
  scroll-margin-top: 96px; /* 固定値の保険 */
  scroll-margin-top: calc(var(--wan-sticky-top, 56px) + 40px); /* 本命 */
}

/* ===============================
   基本情報セクション（Basic + 設備・特徴）
=============================== */
.post_content .stay-basic__grid { display: grid; gap: 32px; }

/* ▼ 左ラベル／右内容 行組み */
.post_content .wan-defrows__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  padding: 24px 0;
}


/* グリッド：スマホ2列、タブレット以上3列 */
.post_content .wan-boolList {
  --cols: 2;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 8px 24px;
  max-height: 180px;            /* 初期は折りたたみ */
  overflow: hidden;
  transition: max-height .25s ease;
  margin: 0; padding: 0;
}
.post_content .wan-boolList.is-open { max-height: 2000px; }

@media (min-width: 768px) {
  .post_content .wan-boolList { --cols: 3; }
}

.post_content .wan-boolList li {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 32px;
  line-height: 1.7;
  margin: 0; padding: 0;
}

/* ○／×マーク */
.post_content .wan-bool {
  width: 1.1em;
  display: inline-block;
  text-align: center;
  font-feature-settings: "palt";
}
.post_content .wan-boolList li.is-false {
  color: var(--wan-text-muted, #9ca3af);
  opacity: .85;
}

.post_content .wan-seeall:hover { text-decoration: underline; }

/* 親テーマの余計な最初子スタイルに勝つ用（必要な場合） */
.post_content .stay-basic > *:first-child { margin-top: 0; }

ul.dog-notes,
ul.dog-facility-notes {
  list-style: none !important;
}
