/* 部屋ページ（/ezoshika/ /susuki/）：Airbnbの部屋ページと同じ並び。色と書体は style.css の変数を使う */

.pdp-main { padding-top: clamp(16px, 3vw, 28px); padding-bottom: 40px; }
.pdp section { padding-block: 0; }
.pdp section + section { border-top: 0; }

.pdp-title h1 { font-family: var(--serif); font-weight: 500; letter-spacing: .08em; font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.pdp-title__sub { margin: 6px 0 18px; color: var(--ink-soft); font-size: 14px; }

/* ---- いちばん上の写真5枚（左に大きく1枚、右に4枚） */
.pdp-grid { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 2.1 / 1; border-radius: 14px; overflow: hidden; }
.pdp-grid__cell { display: block; padding: 0; border: 0; background: var(--bg-soft); cursor: zoom-in; overflow: hidden; min-height: 0; }
.pdp-grid__cell.is-main { grid-row: 1 / span 2; }
.pdp-grid__cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.pdp-grid__cell:hover img { filter: brightness(.88); }
.pdp-grid__all { text-decoration: none; position: absolute; right: 16px; bottom: 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; }
@media (max-width: 760px) {
  .pdp-grid { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: 4 / 3; border-radius: 0; margin-inline: calc(var(--gutter) * -1); }
  .pdp-grid__cell:not(.is-main) { display: none; }
  .pdp-grid__cell.is-main { grid-row: auto; }
}

/* ---- 本文と右の予約カード */
.pdp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 80px); margin-top: clamp(20px, 3vw, 32px); }
@media (max-width: 960px) { .pdp-cols { grid-template-columns: minmax(0, 1fr); } .pdp-side { display: none; } }

.pdp-sec { padding-block: 28px !important; border-bottom: 1px solid var(--line); }
.pdp-body > .pdp-sec:first-child { padding-top: 0 !important; }
.pdp-sec h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .04em; margin: 0 0 14px; }
.pdp-sec h2::after { display: none; }
.pdp-wide { border-bottom: 1px solid var(--line); }

.pdp-overview h2 { font-size: 20px; margin-bottom: 4px; }
.pdp-summary { margin: 0 0 8px; color: var(--ink-soft); }
.pdp-rating { color: var(--ink); text-decoration: none; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pdp-rating:hover { text-decoration: underline; }
.pdp-badge { border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 1px 10px; font-size: 12px; }

.pdp-host-line { display: flex; gap: 14px; align-items: center; }
.pdp-host-line b { display: block; }
.pdp-host-line small { color: var(--ink-soft); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--river); color: #fff; display: grid; place-items: center; font-size: 12px; letter-spacing: .02em; flex: none; }
.avatar--lg { width: 72px; height: 72px; font-size: 16px; }

.pdp-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.pdp-highlights li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.pdp-highlights li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pdp-highlights span { color: var(--ink-soft); font-size: 14px; }

.pdp-desc .clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.pdp-desc p, .pdp-dialog p { margin: 0 0 1em; line-height: 1.9; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; color: var(--ink); cursor: pointer; margin-top: 8px; }

/* ---- 寝室 */
.bed-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bed-card { margin: 0; }
.bed-card__img { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--bg-soft); }
.bed-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bed-card figcaption { margin-top: 8px; display: grid; }
.bed-card figcaption span { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 560px) { .bed-cards { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; } .bed-card { scroll-snap-align: start; } }

/* ---- アメニティ */
.amen-top { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
@media (max-width: 560px) { .amen-top { grid-template-columns: 1fr; } }
.amen-list { list-style: none; padding: 0; margin: 0 0 18px; }
.amen-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.amen-list small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 2px; line-height: 1.7; }

/* ---- 予約カード */
.pdp-side { position: relative; }
.book-card { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--paper); box-shadow: 0 6px 20px rgba(38,36,31,.08); }
.book-card__title { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; letter-spacing: .06em; }
.book-card__title small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); letter-spacing: 0; }
.book-card__note { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }
.book-card__btn { display: block; text-align: center; width: 100%; }
.book-card__btn--sub { margin-top: 10px; background: var(--paper); }
.book-card__fine { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }

/* ---- フォトツアー */
.tour-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 28px; }
.tour-nav__item { text-decoration: none; color: var(--ink); font-size: 13px; }
.tour-nav__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
.tour-room { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding-block: 28px !important; border-top: 1px solid var(--line) !important; scroll-margin-top: 80px; }
.tour-room h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0; position: sticky; top: 90px; align-self: start; }
.tour-room h3 small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 760px) { .tour-room { grid-template-columns: 1fr; gap: 12px; } .tour-room h3 { position: static; } }
.tour-room__photos { display: grid; gap: 8px; }

.tb { display: grid; gap: 8px; }
.tb__cell { padding: 0; border: 0; background: var(--bg-soft); cursor: zoom-in; overflow: hidden; display: block; min-height: 0; }
.tb__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb--one_landscape .tb__cell { aspect-ratio: 3 / 2; }
.tb--one_portrait { grid-template-columns: minmax(0, 2fr); justify-content: center; }
.tb--one_portrait .tb__cell { aspect-ratio: 2 / 3; max-width: 66%; margin-inline: auto; }
.tb--two_landscapes, .tb--two_portraits, .tb--one_portrait_one_landscape { grid-template-columns: 1fr 1fr; }
.tb--two_landscapes .tb__cell { aspect-ratio: 3 / 2; }
.tb--two_portraits .tb__cell { aspect-ratio: 2 / 3; }
.tb--one_portrait_one_landscape .tb__cell { aspect-ratio: 2 / 3; }
.tb--three_portraits_tall { grid-template-columns: repeat(3, 1fr); }
.tb--three_portraits_tall .tb__cell { aspect-ratio: 2 / 3; }
.tb--one_portrait_two_landscapes { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.tb--one_portrait_two_landscapes .tb__cell:first-child { grid-row: 1 / span 2; }
.tb--one_portrait_two_landscapes.is-flip .tb__cell:first-child { grid-column: 2; }
.tb--one_portrait_two_landscapes.is-flip .tb__cell:not(:first-child) { grid-column: 1; }
.tb.is-flip.tb--one_portrait_one_landscape .tb__cell:first-child { order: 2; }

/* ---- 滞在エリア・ホスト・留意事項 */
.pdp-narrow { max-width: 720px; }
.pdp-narrow p { line-height: 1.9; }
.host-card { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; background: var(--paper); margin-bottom: 20px; max-width: 560px; }
.host-card__id { display: grid; justify-items: center; gap: 4px; text-align: center; }
.host-card__id small { color: var(--ink-soft); font-size: 12px; }
.host-card__stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.host-card__stats b { display: block; font-size: 20px; color: var(--ink); }
.host-facts { color: var(--ink-soft); font-size: 14px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
ul.plain li { padding: 4px 0; line-height: 1.7; }
.know { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.know h3 { font-size: 16px; margin: 0 0 10px; }
@media (max-width: 860px) { .know { grid-template-columns: 1fr; gap: 20px; } }
.permit { color: var(--ink-soft); font-size: 13px; margin-top: 24px; }
.pdp-next { border-bottom: 0 !important; text-align: center; }
.pdp-next a { color: var(--ink); font-family: var(--serif); font-size: 18px; letter-spacing: .04em; }

/* ---- 「さらに表示」の画面 */
.pdp-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 48px); border: 0; border-radius: 14px; padding: 28px clamp(20px, 4vw, 40px); background: var(--paper); color: var(--ink); }
.pdp-dialog::backdrop { background: rgba(20, 18, 15, .55); }
.pdp-dialog h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 18px; }
.pdp-dialog h3 { font-size: 16px; margin: 26px 0 8px; }
.dlg-close { position: sticky; top: 0; float: right; border: 0; background: var(--bg-soft); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink); }

/* ---- 写真を大きく見る画面（説明つき） */
.viewer { position: fixed; inset: 0; z-index: 1000; background: #111; color: #eee; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: auto minmax(0, 1fr); }
.viewer[hidden] { display: none; }
.viewer__bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; }
.viewer__close { background: none; border: 0; color: #eee; font: inherit; cursor: pointer; }
.viewer__nav { background: none; border: 1px solid rgba(255,255,255,.4); color: #eee; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; align-self: center; justify-self: center; cursor: pointer; }
.viewer__fig { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; padding-bottom: 16px; }
.viewer__fig img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.viewer__fig figcaption { max-width: 760px; margin: 12px auto 0; font-size: 14px; line-height: 1.8; padding-inline: 8px; }
.viewer__room { display: block; font-weight: 600; color: #fff; margin-bottom: 2px; }
@media (max-width: 640px) { .viewer { grid-template-columns: 0 minmax(0, 1fr) 0; } .viewer__nav { display: none; } }
body.viewer-open { overflow: hidden; }

/* ---- フォトツアーのページ（/<部屋>/photos/） */
.tour-back { display: inline-block; color: var(--ink); text-decoration: none; font-size: 14px; margin-bottom: 14px; }
.tour-back:hover { text-decoration: underline; }
.tour-title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px); letter-spacing: .06em; margin: 0 0 20px; }
.tour-title small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); letter-spacing: 0; margin-top: 4px; }

/* 下の予約帯：直接予約とAirbnbの2つ */
.pdp .book-bar { gap: 8px; }
.pdp .book-bar .btn { padding: 12px 16px; }
.book-bar__sub { background: var(--paper); }
@media (max-width: 420px) { .pdp .book-bar small { display: none; } .pdp .book-bar strong { font-size: 13px; } }
.book-card__off { display: block; font-size: 12px; color: var(--accent); margin-top: 2px; letter-spacing: .02em; }
.book-bar__sub { line-height: 1.25; text-align: center; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding-block: 7px !important; }
.book-bar__off { display: block; font-size: 10px; color: var(--accent); }

/* ---- ハウスルールのページ（/<部屋>/rules/） */
.rules-body h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 40px 0 8px; }
.rules-body h2::after { display: none; }
.rules-body h3 { font-size: 16px; margin: 26px 0 8px; }
.rules-body p { line-height: 1.9; }

/* 直接予約の「1泊 ¥◯◯〜」 */
.book-card__price { margin: 0 0 4px; font-size: 13px; color: var(--ink-soft); }
.book-card__price b { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); letter-spacing: .02em; margin: 0 2px 0 4px; }
.book-card__clean { margin: 0 0 12px; font-size: 12px; color: var(--ink-soft); line-height: 1.7; }

/* 予約カード：① Airbnbで料金を見る → ② 7%引きでリクエスト */
.book-steps { list-style: none; counter-reset: st; padding: 0; margin: 4px 0 10px; }
.book-steps li { counter-increment: st; position: relative; padding-left: 26px; margin-bottom: 14px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.book-steps li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }
.book-steps b { display: block; color: var(--ink); font-size: 13.5px; }
.book-steps .book-card__btn { margin-top: 8px; }
