/* ===========================================================================
   b hotel - 物件詳細＋見積りモーダル（フェーズ2 / M1）
   既存サイトのデザイン言語に合わせる（Noto Sans JP / グレー基調）。
   =========================================================================== */

.bd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  overflow-y: auto;
}

.bd-overlay.active {
  display: flex;
}

.bd-modal {
  position: relative;
  background: #fff;
  border-radius: 0.75rem;
  max-width: 60rem;
  width: 100%;
  margin: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  font-family: 'Noto Sans JP', sans-serif;
  overflow: hidden; /* 中身がはみ出してもモーダルの外へ広がらない */
}

.bd-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  color: #374151;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}
.bd-close:hover { background: #f3f4f6; }

.bd-body { padding: 0; }

.bd-status {
  padding: 4rem 2rem;
  text-align: center;
  color: #5b6070;
  font-size: 0.95rem;
}
.bd-status.error { color: #b91c1c; }

/* --- レビュー一覧 --- */
.bd-reviews-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.5rem;
  font: inherit;
  font-size: 0.82rem;
  color: #5b6070;
  text-decoration: underline;
  cursor: pointer;
}
.bd-reviews-btn:hover { color: #374151; }
.bd-reviews {
  margin: 0.75rem 0 0.5rem;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.25rem 0.9rem;
  background: #fafafa;
}
.bd-reviews-note {
  font-size: 0.75rem;
  color: #5b6070;
  padding: 0.6rem 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bd-reviews-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #5b6070;
  text-decoration: underline;
  cursor: pointer;
}
.bd-reviews-toggle:hover { color: #374151; }
.bd-review { padding: 0.7rem 0; border-bottom: 1px solid #f3f4f6; }
.bd-review:last-child { border-bottom: none; }
.bd-review-meta { font-size: 0.78rem; color: #5b6070; font-weight: 700; }
.bd-review-text { margin: 0.3rem 0 0; font-size: 0.85rem; line-height: 1.7; color: #374151; }
.bd-reviews-loading { color: #9ca3af; font-size: 0.82rem; padding: 0.5rem 0; }

/* --- 地図リンクの選択メニュー（Google/Apple/OSM） --- */
.bd-map-menu { position: relative; display: inline-block; }
.bd-map-menu .bd-map-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.bd-map-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 11rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 0.25rem;
}
.bd-map-options[hidden] { display: none; }
.bd-map-options a {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #374151;
  text-decoration: none;
  border-radius: 0.375rem;
  white-space: nowrap;
}
.bd-map-options a:hover { background: #f3f4f6; }

/* --- 詳細グリッド --- */
.bd-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}
/* 写真列・情報列が中身（サムネイルの枚数など）につられて広がらないようにする保険 */
.bd-grid > * { min-width: 0; }

.bd-main {
  position: relative; /* 矢印・カウンター表示の基準 */
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f3f4f6;
}
.bd-main img { width: 100%; height: 100%; object-fit: cover; }

/* 写真送りの矢印ボタン */
.bd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.2rem; /* ‹›の光学中心合わせ */
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}
.bd-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.bd-nav-prev { left: 0.6rem; }
.bd-nav-next { right: 0.6rem; }

/* 「3 / 16」の枚数カウンター */
.bd-counter {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  background: rgba(17, 24, 39, 0.65);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  pointer-events: none;
}

.bd-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  /* 全枚数表示: 横スクロールで何枚でも見られるように */
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.bd-thumb {
  flex: 0 0 auto;
  width: 4rem;
  height: 3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  overflow: hidden;
  cursor: pointer;
  background: #f3f4f6;
}
.bd-thumb.active { border-color: #111827; }
.bd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.bd-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 0.4rem;
}
.bd-rating { color: #374151; font-size: 0.9rem; margin-bottom: 0.4rem; }
.bd-rating span { color: #5b6070; }
.bd-meta { color: #5b6070; font-size: 0.85rem; margin: 0 0 1rem; }
.bd-desc { color: #374151; font-size: 0.9rem; line-height: 1.8; margin: 0 0 1rem; }

.bd-amenities { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bd-amenity {
  font-size: 0.78rem;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

/* --- 見積りパネル --- */
.bd-quote {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0 0 0.75rem 0.75rem;
}
.bd-quote-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.bd-quote-head h4 { font-size: 1.1rem; font-weight: 500; color: #111827; margin: 0; }
.bd-quote-dates { font-size: 0.85rem; color: #5b6070; }

.bd-plans { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.bd-plan {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
}
.bd-plan-name { flex: 1; font-size: 0.9rem; color: #374151; }
.bd-plan-total { font-weight: 700; color: #111827; }

.bd-breakdown { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 1rem 1.1rem; }
.bd-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #4b5563;
  padding: 0.35rem 0;
}
.bd-row.bd-total {
  border-top: 1px solid #e5e7eb;
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}
.bd-cancel { font-size: 0.78rem; color: #5b6070; margin: 0.6rem 0 0; }
.bd-fxnote { font-size: 0.78rem; color: #5b6070; margin: 0.6rem 0 0; }
.bd-charge-note {
  font-size: 0.82rem;
  color: #374151;
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  margin: 0.8rem 0 0;
  line-height: 1.6;
}
.bd-charge-note strong { color: #111827; }

.bd-quote-error {
  background: #fff;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
}

.bd-reserve {
  margin-top: 1rem;
  width: 100%;
  padding: 0.85rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  border: 1px solid #6b7687;
  background: #6b7687;
  color: #fff;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bd-reserve:hover:not(:disabled) { background: #565f6d; }
.bd-reserve:disabled { opacity: 0.55; cursor: not-allowed; }

/* --- M2: チェックアウト（ゲスト情報・支払い）--- */
.bd-checkout-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0;
}
.bd-back {
  border: none;
  background: transparent;
  color: #374151;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
}
.bd-back:hover { color: #111827; }
.bd-step-label { font-size: 0.85rem; color: #5b6070; }

.bd-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}
.bd-summary-title { font-weight: 500; color: #111827; margin: 0 0 0.2rem; }
.bd-summary-sub { font-size: 0.82rem; color: #5b6070; margin: 0; }
.bd-summary-total { font-size: 1.2rem; font-weight: 700; color: #111827; white-space: nowrap; }

.bd-form { padding: 0 1.5rem 1.5rem; }
.bd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.bd-field { display: flex; flex-direction: column; gap: 0.35rem; }
.bd-field.bd-col-2 { grid-column: 1 / -1; }
.bd-field label { font-size: 0.8rem; color: #5b6070; }
.bd-req { color: #b91c1c; }
.bd-field input {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  color: #374151;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
}
.bd-field input:focus { outline: none; border-color: #5b6070; }

.bd-consents { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.bd-consent { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: #374151; cursor: pointer; }
.bd-consent input { margin-top: 0.2rem; }
.bd-consent a { color: #374151; text-decoration: underline; }

.bd-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.bd-next {
  width: 100%;
  padding: 0.85rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  border: 1px solid #6b7687;
  background: #6b7687;
  color: #fff;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bd-next:hover:not(:disabled) { background: #565f6d; }
.bd-next:disabled { opacity: 0.55; cursor: not-allowed; }

.bd-guest-recap {
  margin: 0 1.5rem 1rem;
  padding: 0.9rem 1.1rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.88rem;
  color: #374151;
}
.bd-guest-recap p { margin: 0.15rem 0; }

.bd-pay { padding: 0 1.5rem 1.5rem; }
.bd-pay-label { display: block; font-size: 0.8rem; color: #5b6070; margin-bottom: 0.5rem; }
.bd-card-wrap {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  background: #fff;
  min-height: 3rem;
}
.bd-pay-note { font-size: 0.78rem; color: #5b6070; margin: 0.6rem 0 0; }
.bd-pay .bd-form-error { margin-top: 0.8rem; }
.bd-pay .bd-next { margin-top: 1rem; }

/* モック決済フォーム */
.bd-mock-card { display: flex; flex-direction: column; gap: 0.5rem; }
.bd-mock-row { display: flex; gap: 0.5rem; }
.bd-mock-input {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  width: 100%;
}
.bd-mock-row .bd-mock-input { flex: 1; }
.bd-mock-tag { font-size: 0.75rem; color: #9ca3af; margin: 0.2rem 0 0; }

/* 完了画面 */
.bd-confirm { padding: 2.5rem 1.5rem; text-align: center; }
.bd-confirm-icon {
  width: 3.5rem; height: 3.5rem; line-height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #6b7687; color: #fff;
  font-size: 1.8rem;
}
.bd-confirm-title { font-size: 1.3rem; font-weight: 500; color: #111827; margin: 0 0 0.5rem; }
.bd-confirm-code { font-size: 1rem; color: #374151; margin: 0 0 1.25rem; }
.bd-confirm-code strong { color: #111827; }
.bd-confirm .bd-summary-card { margin-left: 0; margin-right: 0; text-align: left; }
.bd-confirm-note { font-size: 0.85rem; color: #5b6070; margin: 1rem 0 1.25rem; }
.bd-confirm .bd-next { max-width: 16rem; margin: 0 auto; }

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .bd-grid { grid-template-columns: 1fr; }
  .bd-overlay { padding: 1rem; }
  .bd-form-grid { grid-template-columns: 1fr; }
}

/* レビュー対応: 住所/地図リンク・見積り期限・アメニティ注記 */
.bd-address { font-size: 0.9rem; color: #4b5563; margin: 0.25rem 0 0.5rem; }
.bd-map-link { color: #6b7687; text-decoration: underline; margin-left: 0.25rem; white-space: nowrap; }
.bd-map-link:hover { color: #4b5563; }
.bd-expiry { margin-top: 0.6rem; font-size: 0.85rem; color: #5b6070; text-align: center; }
.bd-expiry.expired { color: #b91c1c; font-weight: 600; }

/* --- アクセス地図・よく聞かれる質問（会議決定: サイト構成図 6ページ） --- */
.bd-quote { border-radius: 0; } /* 下に区画が続くので角丸を外す */
.bd-extra { border-top: 1px solid #e5e7eb; background: #fff; border-radius: 0 0 0.75rem 0.75rem; }
.bd-extra section { padding: 1.5rem; }
.bd-extra section + section { border-top: 1px solid #e5e7eb; }
.bd-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.bd-sec-head h4 { font-size: 1.1rem; font-weight: 500; color: #111827; margin: 0; }
.bd-sec-head a { font-size: 0.85rem; color: #6b7687; text-decoration: none; white-space: nowrap; }
.bd-sec-head a:hover { color: #374151; text-decoration: underline; }

.bd-access-grid { display: grid; grid-template-columns: 1fr 15rem; gap: 1rem; align-items: stretch; }
.bd-map { height: 260px; border-radius: 0.5rem; overflow: hidden; background: #f3f4f6; }
.bd-map .maplibregl-ctrl-attrib { font-size: 10px; }
.bd-map-pin { width: 26px; height: 26px; border-radius: 50%; background: #1a2233; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: 'Noto Sans JP', sans-serif; line-height: 1; }
.bd-map-lm { display: flex; align-items: center; gap: 4px; pointer-events: none; }
.bd-map-lm-dot { width: 9px; height: 9px; border-radius: 50%; background: #6b7280; border: 2px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,.4); flex: none; }
.bd-map-lm-name { font-size: 11px; color: #374151; background: rgba(255,255,255,.85); padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.bd-near-wrap { background: #f9fafb; border-radius: 0.5rem; padding: 0.9rem 1rem; }
.bd-near-title { font-size: 0.8rem; color: #5b6070; margin-bottom: 0.4rem; }
.bd-near { list-style: none; margin: 0; padding: 0; }
.bd-near li { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.9rem; color: #111827; padding: 0.3rem 0; border-top: 1px solid #e5e7eb; }
.bd-near li:first-child { border-top: none; }
.bd-near-km { color: #5b6070; white-space: nowrap; }

.bd-qa-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bd-qa-item { border: 1px solid #e5e7eb; border-radius: 0.5rem; background: #fff; }
.bd-qa-item summary { cursor: pointer; padding: 0.75rem 1rem; font-size: 0.95rem; color: #111827; list-style: none; display: flex; gap: 0.4rem; align-items: baseline; }
.bd-qa-item summary::-webkit-details-marker { display: none; }
.bd-qa-item summary::after { content: '＋'; margin-left: auto; color: #9ca3af; font-size: 0.9rem; }
.bd-qa-item[open] summary::after { content: '−'; }
.bd-qa-q { color: #6b7687; font-weight: 600; flex: none; }
.bd-qa-a { padding: 0 1rem 0.9rem 2.2rem; font-size: 0.9rem; line-height: 1.7; color: #374151; white-space: pre-line; }
.bd-qa-meta { margin-top: 0.4rem; font-size: 0.78rem; color: #5b6070; }
.bd-qa-meta a { color: #6b7687; margin-left: 0.3rem; }

@media (max-width: 768px) {
  .bd-access-grid { grid-template-columns: 1fr; }
  .bd-map { height: 220px; }
  .bd-extra section { padding: 1.1rem 1rem; }
  .bd-sec-head { flex-wrap: wrap; }
}

/* S2（2026-10-02）: 表示名の下にGuestyの販促タイトルを小さく */
.bd-sub { margin: -0.3rem 0 0.5rem; font-size: 0.85rem; color: #5b6070; line-height: 1.5; }

/* --- 2026-10-02 レビュー反映（P1 予約条件 / P2 請求額 / P3 清掃料の説明・1泊換算） --- */
.bd-row.bd-terms span:last-child { font-weight: 500; color: #111827; }
.bd-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.1rem; height: 1.1rem; margin-left: 0.25rem; padding: 0;
  border: 1px solid #9ca3af; border-radius: 50%; background: #fff; color: #5b6070;
  font-size: 0.7rem; font-weight: 700; font-style: italic; line-height: 1; cursor: help; position: relative; vertical-align: 1px;
}
.bd-tip::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: #111827; color: #fff; font-size: 0.75rem; font-weight: 400; font-style: normal; line-height: 1.5;
  padding: 0.4rem 0.6rem; border-radius: 0.35rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5;
}
.bd-tip:hover::after, .bd-tip:focus::after { opacity: 1; }
.bd-pernight { display: block; font-size: 0.78rem; font-weight: 400; color: #5b6070; margin-top: 0.15rem; }
.bd-policy-note { font-size: 0.9rem; color: #111827; line-height: 1.7; margin: 0.9rem 0 0.6rem; }
.bd-charge-note { color: #374151; }
