/* =========================================================
   room-detail.css（room-ocean.html など客室詳細ページ専用）
   common.css を先に読み込んだ上で使用してください。
   ========================================================= */

/* =========================================================
   BREADCRUMB／ページ全体の上余白
   ========================================================= */
@charset "utf-8";

.room-detail-main {
  padding-top: 120px;
}

.breadcrumb {
  font-size: 12px;
  color: #8A8578;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #8A8578;
}

.breadcrumb span[aria-current] {
  color: var(--color-heading);
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 44px;
  min-width: 0;
}

.gallery-main,
.gallery-thumbs {
  min-width: 0;
}

.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.gallery-main-photo {
  aspect-ratio: 16/12.2;
  background-size: cover;
  background-position: center;
  background-color: #E4DAC9;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .85);
  color: var(--color-heading);
  font-size: 18px;
  cursor: pointer;
}

.gallery-nav.prev {
  left: 16px;
}

.gallery-nav.next {
  right: 16px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
}

.gthumb {
  min-width: 0;
  border-radius: 14px;
  aspect-ratio: 1/0.78;
  background-size: cover;
  background-position: center;
  background-color: #E4DAC9;
}

.gthumb-wide {
  grid-column: 1 / -1;
  aspect-ratio: 2/1.05;
}

/* =========================================================
   タイトル＆料金
   ========================================================= */
.room-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-line);
}

.room-head h1 {
  font-family: var(--font-jp-serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--color-heading);
  margin: 0 0 6px;
}

.room-catch {
  color: var(--color-accent);
  font-size: 13.5px;
  margin: 0 0 16px;
}

.room-desc {
  font-size: 13.5px;
  margin: 0 0 18px;
}

.room-badges {
  display: flex;
  gap: 10px;
}

.room-badges li {
  font-size: 11.5px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--color-heading);
}

.room-price-box {
  background: var(--color-white);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 12px 34px rgba(60, 50, 30, .06);
  align-self: start;
}

.price-label {
  font-size: 11.5px;
  color: var(--color-text);
  margin: 0 0 8px;
}

.price-value {
  font-family: var(--font-en);
  font-size: 26px;
  color: var(--color-accent);
  margin: 0 0 18px;
}

.price-value span {
  font-size: 12px;
  color: var(--color-text);
  font-family: var(--font-jp);
  margin-left: 4px;
}

/* =========================================================
   客室情報バー
   ========================================================= */
.room-info-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(60, 50, 30, .06);
  margin-bottom: 44px;
}

.room-info-bar>div {
  padding: 22px 18px;
  border-right: 1px solid var(--color-line);
  text-align: center;
}

.room-info-bar>div:last-child {
  border-right: none;
}

.info-label {
  display: block;
  font-size: 11px;
  color: #8A8578;
  margin-bottom: 8px;
}

.info-value {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-heading);
}

.info-value small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--color-text);
}

/* =========================================================
   アメニティ＋間取り
   ========================================================= */
.room-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 70px;
}

.amenity-box,
.floorplan-box {
  background: var(--color-white);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 12px 34px rgba(60, 50, 30, .06);
}

.amenity-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 10px;
  margin: 22px 0 14px;
}

.amenity-list li {
  text-align: center;
  font-size: 11px;
  color: var(--color-heading);
}

.am-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  border-radius: 8px;
  border: 1.4px solid var(--color-accent);
  color: var(--color-accent);
}

.am-icon svg {
  width: 16px;
  height: 16px;
}

.floorplan-img {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--color-bg);
  margin: 20px 0;
}

.floorplan-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--color-heading);
  margin: 0 0 14px;
  padding-left: 18px;
}

/* =========================================================
   キャンセルポリシー（ご滞在にあたって は terms-box を共通使用）
   ========================================================= */
.cancel-list {
  margin: 16px 0 0;
}

.cancel-list div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 13px;
}

.cancel-list div:last-child {
  border-bottom: none;
}

.cancel-list dt {
  color: var(--color-heading);
  font-weight: 700;
}

.cancel-list dd {
  margin: 0;
  color: var(--color-text);
}

.wave {
  position: relative;
  height: 200px;
  /*何も表示されない場合は各波の親要素に高さを持たせましょう。*/
}

.wave-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* 波紋の上にマウスが乗ってもリンク操作を邪魔しないように */
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1080px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .room-head {
    grid-template-columns: 1fr;
  }

  .room-detail-grid {
    grid-template-columns: 1fr;
  }

  .amenity-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width:860px) {
  .room-detail-main {
    padding-top: 96px;
  }

  .room-info-bar {
    grid-template-columns: 1fr 1fr;
  }

  .room-info-bar>div {
    border-bottom: 1px solid var(--color-line);
  }

  .amenity-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:520px) {
  .amenity-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .floorplan-list {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: 1fr;
  }

  .gthumb-wide {
    grid-column: auto;
  }
}