/* ===========================================================================
   b hotel - 物件紹介ページ（静的生成 /rooms/）用スタイル
   generate-pages.js が生成するページで使用。styles.css と併用する。
   =========================================================================== */

.rm-main { max-width: 68rem; margin: 0 auto; padding: 6rem 1.25rem 4rem; font-family: 'Noto Sans JP', sans-serif; color: #1f2937; }

/* パンくず */
.rm-breadcrumb { font-size: 0.78rem; color: #9ca3af; margin-bottom: 1rem; }
.rm-breadcrumb a { color: #6b7280; text-decoration: none; }
.rm-breadcrumb a:hover { text-decoration: underline; }

.rm-title { font-size: 1.6rem; font-weight: 700; line-height: 1.4; margin: 0 0 0.5rem; }
.rm-sub { color: #6b7280; font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ギャラリー */
.rm-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.75rem; background: #f3f4f6; }
/* 写真ギャラリー: 2段×横スクロールで全写真を見られる（2026-08-18 レビュー反映）
   1画面に横4列（スマホは2列）が見え、横にスワイプ/スクロールすると続きが出る */
.rm-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: calc((100% - 1.5rem) / 4);
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.rm-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.5rem; background: #f3f4f6; scroll-snap-align: start; }
.rm-grid::-webkit-scrollbar { height: 8px; }
.rm-grid::-webkit-scrollbar-thumb { background: #c7ccd4; border-radius: 8px; }
@media (max-width: 640px) { .rm-grid { grid-auto-columns: calc((100% - 0.5rem) / 2); } }

/* 基本情報（引用されやすい事実ボックス） */
.rm-facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.1rem 1.4rem; margin: 1.75rem 0; }
.rm-fact { font-size: 0.92rem; }
.rm-fact b { font-size: 1.15rem; }
.rm-fact span { color: #6b7280; font-size: 0.78rem; display: block; }

.rm-section { margin: 2.25rem 0; }
.rm-section h2 { font-size: 1.15rem; font-weight: 700; border-left: 4px solid #374151; padding-left: 0.7rem; margin-bottom: 1rem; }
.rm-desc { line-height: 1.9; font-size: 0.95rem; white-space: pre-line; }

/* 設備 */
.rm-amenities { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rm-amenity { background: #f3f4f6; border-radius: 9999px; padding: 0.4rem 0.9rem; font-size: 0.82rem; color: #374151; }

/* アクセス */
.rm-access { list-style: none; padding: 0; margin: 0; }
.rm-access li { padding: 0.55rem 0; border-bottom: 1px solid #f3f4f6; font-size: 0.92rem; display: flex; justify-content: space-between; gap: 1rem; }
.rm-access li span:last-child { color: #6b7280; white-space: nowrap; }
.rm-address { color: #6b7280; font-size: 0.85rem; margin-top: 0.75rem; }

/* FAQ（見えるテキストとして重要） */
.rm-faq dt { font-weight: 700; font-size: 0.95rem; margin-top: 1.25rem; }
.rm-faq dt::before { content: 'Q. '; color: #9ca3af; }
.rm-faq dd { margin: 0.4rem 0 0; line-height: 1.8; font-size: 0.92rem; color: #374151; }
.rm-faq dd::before { content: 'A. '; color: #d1d5db; }

/* 予約CTA */
.rm-cta { text-align: center; margin: 3rem 0 1rem; }
.rm-cta a { display: inline-block; background: #4b5563; color: #fff; text-decoration: none; padding: 1rem 3rem; border-radius: 9999px; font-size: 1rem; font-weight: 700; transition: background 0.2s ease; }
.rm-cta a:hover { background: #374151; }
.rm-cta p { color: #9ca3af; font-size: 0.8rem; margin-top: 0.6rem; }

/* 一覧ページ */
.rm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.rm-card { border: 1px solid #e5e7eb; border-radius: 0.75rem; overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.rm-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.rm-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f3f4f6; }
.rm-card-body { padding: 0.9rem 1rem 1.1rem; }
.rm-card-title { font-size: 0.95rem; font-weight: 700; line-height: 1.5; margin: 0 0 0.3rem; }
.rm-card-meta { font-size: 0.8rem; color: #6b7280; }

/* フッター（簡易） */
.rm-footer { border-top: 1px solid #e5e7eb; margin-top: 3rem; padding: 2rem 1.25rem; text-align: center; color: #9ca3af; font-size: 0.8rem; font-family: 'Noto Sans JP', sans-serif; }
.rm-footer a { color: #6b7280; }

/* --- 部屋バッジ（建物ページの部屋一覧・2026-08-18追加） --- */
.rm-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: #4b5563;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.08rem 0.55rem;
  margin-left: 0.45rem;
  vertical-align: 0.08rem;
  white-space: nowrap;
}
.rm-badge-hot {
  background: #6b7687;
  border-color: #6b7687;
  color: #fff;
}

/* ---- 予約ウィジェット（2026-08-18 レビュー反映） ----
   物件ページ・建物ページから日付と人数を入れて直接予約へ進むフォーム */
.rm-book {
  margin: 2.2rem 0;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}
.rm-book h2 { font-size: 1.15rem; font-weight: 700; border-left: 4px solid #374151; padding-left: 0.7rem; margin: 0 0 1rem; }
.rm-book-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.rm-book-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; color: #6b7280; flex: 1 1 9rem; min-width: 8rem; }
.rm-book-form input {
  height: 2.6rem;
  padding: 0 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  background: #fff;
  color: #374151;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
}
.rm-book-form input:focus { outline: none; border-color: #6b7687; box-shadow: 0 0 0 3px rgba(107, 118, 135, 0.18); }
.rm-book-form button {
  height: 2.6rem;
  padding: 0 1.6rem;
  background: #6b7687;
  color: #fff;
  border: none;
  border-radius: 0.55rem;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  flex: 1 1 10rem;
  transition: background 0.2s ease;
}
.rm-book-form button:hover { background: #565f6d; }
.rm-book-note { margin: 0.8rem 0 0; font-size: 0.78rem; color: #6b7280; }
@media (max-width: 560px) {
  .rm-book-form label { flex: 1 1 100%; }
  .rm-book-form button { flex: 1 1 100%; }
}

/* --- 建物ページ v2: 部屋ページ統合・基本情報・地図・Q&A抜粋（2026-09-28） --- */
.btn-primary { background: #374151; color: #fff !important; border-color: #374151 !important; }
.rm-info { display: grid; grid-template-columns: 9em 1fr; gap: 0.45rem 1rem; margin: 0; padding: 1.1rem 1.4rem; border: 1px solid #e5e7eb; border-radius: 0.75rem; background: #fff; font-size: 0.93rem; }
.rm-info dt { color: #6b7280; }
.rm-info dd { margin: 0; color: #111827; }
.rm-book-best { margin: -0.4rem 0 0.9rem; font-size: 0.8rem; color: #6b7280; }
.rm-note { font-size: 0.85rem; color: #6b7280; margin: -0.4rem 0 0.8rem; }
.rm-toc li span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.rm-room { border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.4rem; margin-top: 1.25rem; background: #fff; scroll-margin-top: 5.5rem; }
.rm-room-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.9rem; }
.rm-room-head h3 { margin: 0; font-size: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.rm-room-chips { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.88rem; color: #6b7280; }
.rm-room-gallery { margin-bottom: 1rem; }
.rm-room-hero { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 0.6rem; background: #f3f4f6; }
.rm-grid-sm { grid-template-rows: repeat(1, 1fr); grid-auto-columns: calc((100% - 2.5rem) / 6); }
@media (max-width: 640px) { .rm-grid-sm { grid-auto-columns: calc((100% - 1rem) / 3); } }
.rm-room .rm-desc { font-size: 0.92rem; margin: 0 0 0.9rem; }
.rm-room .rm-amenities { margin-bottom: 1rem; }
.rm-room-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; }
.rm-room-book { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.5rem; border-radius: 0.5rem; background: #6b7687; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.rm-room-book:hover { background: #565f6d; }
.rm-room-top { font-size: 0.85rem; color: #6b7280; text-decoration: none; }
.rm-map { height: 360px; border-radius: 0.75rem; overflow: hidden; border: 1px solid #e5e7eb; margin-top: 1rem; background: #f3f4f6; }
.rm-map-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #374151; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.rm-map-pin::after { content: ''; }
.rm-map .maplibregl-marker { transform-origin: 50% 100%; }
.rm-qa-meta { display: block; margin-top: 0.4rem; font-size: 0.78rem; color: #9ca3af; }
.rm-qa-link { color: #6b7280; margin-left: 0.4rem; }
.rm-qa-more { margin-top: 1rem; font-size: 0.92rem; }
@media (max-width: 600px) { .rm-info { grid-template-columns: 1fr; gap: 0.1rem 0; } .rm-info dt { margin-top: 0.5rem; } .rm-map { height: 260px; } .rm-room { padding: 1rem; } }

/* ---- 部屋タイプごとの表示（2026-10-02 レビュー反映: 青字リンク廃止・似たカードの連続を解消） ---- */
.rm-type-toc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem; }
.rm-type-toc a { display: block; padding: 0.8rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.6rem; text-decoration: none; color: #111827; background: #fff; }
.rm-type-toc a:hover { border-color: #374151; }
.rm-type-toc b { display: block; font-size: 0.95rem; font-weight: 600; }
.rm-type-toc span { display: block; font-size: 0.82rem; color: #6b7280; margin-top: 0.15rem; letter-spacing: 0.02em; }
.rm-type-toc em { display: block; font-style: normal; font-size: 0.78rem; color: #9ca3af; margin-top: 0.3rem; }
.rm-type { border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.4rem; margin-top: 1.25rem; background: #fff; scroll-margin-top: 90px; }
.rm-type-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.9rem; }
.rm-type-head h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.rm-type-count { font-size: 0.88rem; color: #6b7280; }
.rm-type-gallery { margin-bottom: 1rem; }
.rm-type-hero { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 0.6rem; background: #f3f4f6; }
.rm-type .rm-desc { font-size: 0.92rem; margin: 0 0 0.9rem; }
.rm-type .rm-amenities { margin-bottom: 1.1rem; }
.rm-room-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e5e7eb; }
.rm-room-row { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid #f3f4f6; scroll-margin-top: 90px; }
.rm-room-row.is-target { background: #f9fafb; box-shadow: inset 3px 0 0 #374151; padding-left: 0.6rem; }
.rm-room-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; min-width: 0; }
.rm-room-no { font-size: 1.1rem; font-weight: 700; color: #111827; letter-spacing: 0.02em; }
.rm-room-subcopy { flex-basis: 100%; font-size: 0.8rem; color: #9ca3af; line-height: 1.5; }
.rm-room-side { display: flex; align-items: center; gap: 0.9rem; font-size: 0.85rem; color: #6b7280; white-space: nowrap; }
.rm-room-side .rm-room-book { min-height: 2.3rem; padding: 0.4rem 1.1rem; font-size: 0.85rem; }
.rm-room-detail { grid-column: 1 / -1; font-size: 0.9rem; }
.rm-room-detail summary { cursor: pointer; color: #6b7280; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.rm-room-detail[open] summary { margin-bottom: 0.6rem; }
.rm-room-detail .rm-grid-sm { margin-bottom: 0.6rem; }
@media (max-width: 600px) {
  .rm-type { padding: 1rem; }
  .rm-room-row { grid-template-columns: 1fr; }
  .rm-room-side { justify-content: space-between; white-space: normal; }
}

.rm-book-best small { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: #6b7280; font-weight: 400; }
