/* 役割: 客室一覧のカード・写真ダイアログ・間取り・折りたたみ表示。
 * 利用ページ: Rooms.html（日英）。関係棚: S01/S03/S04/S05/S07/S12/S18。
 * PHP/pretty依存: 旧IDと配信境界を保持。旧ID→本ファイルの区画は placement.json。
 * 確認手順: test/run.py、equivalence.cjs、地図の更新.mdの操作票。
 */
main.collection .r2l-lead-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: inherit;
}
main.collection>.grid {
  grid-template-columns: minmax(0,1fr);
  row-gap: 44px;
}
main.collection>.grid>article.room+article.room {
  border-top: 1px solid transparent;
  padding-top: 43px;
}
main.collection .r2l-details {
  margin-top: 26px;
  min-width: 0;
}
main.collection .r2l-details>summary {
  list-style: none;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  letter-spacing: .08em;
  transition: border-color .26s,color .26s;
}
main.collection .r2l-details>summary::-webkit-details-marker {
  display: none;
}
main.collection .r2l-details>summary:hover {
  background: transparent;
  color: #fff;
  border-color: #999;
}
main.collection .r2l-details>summary:focus-visible {
  outline: 2px solid #d2cbba;
  outline-offset: 6px;
}
main.collection .r2l-details>summary svg {
  display: none;
}
main.collection .r2l-details>summary:after {
  content: "＋";
  flex: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
main.collection .r2l-details[open]>summary:after {
  content: "−";
}
main.collection .r2l-body {
  padding-top: 30px;
  overflow-wrap: anywhere;
}
main.collection .r2l-body h3 {
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: .08em;
  margin: 0 0 18px;
}
main.collection .r2l-body .lr-intro {
  font-size: 14px;
  line-height: 2.1;
  color: #ddd;
}
main.collection .r2l-specs {
  margin: 26px 0 0;
  font-size: 13px;
  line-height: 1.9;
}
main.collection .r2l-specs>div {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #444;
}
main.collection .r2l-specs dt,
main.collection .r2l-specs dd {
  margin: 0;
  min-width: 0;
}
main.collection .r2l-specs dt {
  color: #aaa;
}
main.collection .r2l-about {
  margin-top: 24px;
  color: #ddd;
  font-size: 14px;
  line-height: 2.1;
}
main.collection .r2l-fold {
  margin-top: 22px;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
  font-size: 14px;
  line-height: 2;
}
main.collection .r2l-fold+.r2l-fold {
  border-top: 0;
  margin-top: 0;
}
main.collection .r2l-fold>summary {
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
main.collection .r2l-fold>summary::-webkit-details-marker {
  display: none;
}
main.collection .r2l-fold>summary:after {
  content: '＋';
  flex: none;
  font-size: 16px;
  font-weight: 400;
}
main.collection .r2l-fold[open]>summary:after {
  content: '−';
}
main.collection .r2l-fold-content {
  padding: 6px 0 24px;
}
main.collection .r2l-fold-content ul {
  margin: 0;
  padding-left: 20px;
  color: #ddd;
  font-size: 13px;
}
main.collection .r2l-photos {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 24px;
}
main.collection .r2l-photos button {
  display: block;
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0;
}
main.collection .r2l-photos img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}
main.collection .r2l-booking {
  width: 100%;
  max-width: 360px;
  margin-top: 28px;
}
main.collection .r2l-booking svg {
  width: 7px;
  height: 8px;
}
dialog.r2l-photo {
  width: min(1240px,94vw);
  max-width: 94vw;
  max-height: 92vh;
  border: 0;
  background: #080808;
  padding: 24px;
  color: #fff;
}
dialog.r2l-photo::backdrop {
  background: rgba(0,0,0,.9);
}
.r2l-photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.r2l-photo-head h2 {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: .08em;
  margin: 0;
}
.r2l-photo-head .close {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid #777;
  padding: 0;
}
.r2l-photo-head .close:before {
  content: '';
  position: absolute;
  left: 12px;
  top: 21px;
  width: 18px;
  height: 1px;
  background: #fff;
  transform: rotate(45deg);
}
.r2l-photo-head .close:after {
  content: '';
  position: absolute;
  left: 12px;
  top: 21px;
  width: 18px;
  height: 1px;
  background: #fff;
  transform: rotate(-45deg);
}
.r2l-photo-stage {
  position: relative;
  min-width: 0;
}
.r2l-photo-stage figure {
  margin: 0;
}
.r2l-photo-stage figure[hidden] {
  display: none;
}
.r2l-photo-stage img {
  display: block;
  width: 100%;
  height: min(71vh,790px);
  object-fit: contain;
  aspect-ratio: auto;
}
.r2l-photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 48px;
  height: 64px;
  border: 0;
  background: rgba(0,0,0,.28);
  padding: 0;
  color: #fff;
}
.r2l-photo-arrow:before {
  content: '';
  display: block;
  width: 21px;
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 13px;
  top: 31px;
}
.r2l-photo-arrow:after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  position: absolute;
  right: 14px;
  top: 27px;
  transform: rotate(45deg);
}
.r2l-photo-arrow[data-r2l-direction='previous'] {
  left: 0;
  transform: translateY(-50%) rotate(180deg);
}
.r2l-photo-arrow[data-r2l-direction='next'] {
  right: 0;
}
.r2l-photo-arrow:hover,
.r2l-photo-arrow:focus-visible {
  background: rgba(0,0,0,.55);
}
.r2l-photo-count {
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0 0;
  color: #aaa;
}
@media (max-width:750px) {
  main.collection>.grid {
    row-gap: 28px;
  }
  main.collection>.grid>article.room+article.room {
    padding-top: 27px;
  }
  main.collection .r2l-details>summary {
    min-height: 60px;
    padding: 18px 0;
  }
  main.collection .r2l-body {
    padding-top: 24px;
  }
  main.collection .r2l-body h3 {
    font-size: 19px;
  }
  main.collection .r2l-specs>div {
    grid-template-columns: 80px minmax(0,1fr);
  }
  main.collection .r2l-photos {
    gap: 8px;
  }
  dialog.r2l-photo {
    padding: 14px;
  }
  .r2l-photo-stage img {
    height: 65vh;
  }
  .r2l-photo-arrow {
    width: 44px;
    height: 60px;
  }
  .r2l-photo-head {
    margin-bottom: 12px;
  }
  .r2l-photo-arrow:before {
    left: 11px;
    width: 20px;
    top: 29px;
  }
  .r2l-photo-arrow:after {
    right: 13px;
    top: 25px;
  }
}
@media (prefers-reduced-motion:reduce) {
  main.collection .r2l-details>summary,
main.collection .r2l-details>summary svg {
    transition: none;
  }
}
dialog[data-r2l-plan].lr-dialog {
  box-sizing: border-box;
  inset: 0;
  margin: auto;
  width: min(1200px,calc(100% - 32px));
  height: fit-content;
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 20px 24px;
  overflow: hidden;
}
dialog[data-r2l-plan].lr-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-r2l-plan] .lr-dialog-head {
  position: static;
  flex: 0 0 auto;
  top: auto;
  padding-bottom: 12px;
  margin: 0;
}
[data-r2l-plan] .lr-dialog-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-r2l-plan] .lr-plan-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}
[data-r2l-plan] .lr-plan-controls button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #888;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: background .2s,color .2s;
}
[data-r2l-plan] .lr-plan-controls button:hover:not(:disabled) {
  background: #fff;
  color: #000;
}
[data-r2l-plan] .lr-plan-controls button:disabled {
  opacity: .35;
  cursor: default;
}
[data-r2l-plan] .lr-plan-controls button[data-plan-action=fit] {
  margin-left: 8px;
  font-size: 13px;
  letter-spacing: .03em;
}
[data-r2l-plan] .lr-plan-level {
  display: block;
  min-width: 48px;
  text-align: center;
  font: 12px/1.4 sans-serif;
  font-variant-numeric: tabular-nums;
}
[data-r2l-plan] .lr-plan-window {
  position: relative;
  flex: 0 1 auto;
  height: 300px;
  min-height: 100px;
  max-height: calc(100dvh - 250px);
  overflow: auto;
  background: #fff;
  touch-action: none;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}
[data-r2l-plan] .lr-plan-canvas {
  position: relative;
  min-width: 100%;
  min-height: 100%;
  background: #fff;
}
[data-r2l-plan] .lr-plan-window img {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
[data-r2l-plan] .lr-plan-window.lr-plan-zoomed {
  cursor: grab;
}
[data-r2l-plan] .lr-plan-window.lr-plan-dragging {
  cursor: grabbing;
}
[data-r2l-plan] .lr-plan-hint {
  display: none;
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
  color: #ccc;
  text-align: center;
  line-height: 1.6;
}
[data-r2l-plan] :is(button,.lr-plan-window,.lr-plan-note):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
[data-r2l-plan] .lr-plan-window:focus-visible {
  outline-offset: -3px;
  outline-color: #333;
}
@media (max-width:750px) {
  dialog[data-r2l-plan].lr-dialog {
    width: calc(100% - 20px);
    height: fit-content;
    max-height: calc(100dvh - 24px);
    padding: 12px;
    gap: 10px;
  }
  [data-r2l-plan] .lr-dialog-head {
    gap: 8px;
    padding-bottom: 8px;
  }
  [data-r2l-plan] .lr-dialog-head h2 {
    font-size: 18px;
    line-height: 1.4;
  }
  [data-r2l-plan] .lr-plan-controls {
    gap: 6px;
  }
  [data-r2l-plan] .lr-plan-controls button[data-plan-action=fit] {
    margin-left: 4px;
    padding-inline: 9px;
    font-size: 12px;
  }
  [data-r2l-plan] .lr-plan-hint {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  [data-r2l-plan] .lr-plan-controls button {
    transition: none;
  }
}
[data-r2l-plan] button.close {
  box-sizing: border-box;
  position: relative;
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #777;
  background: #000;
  color: #fff;
  border-radius: 0;
  opacity: 1;
  isolation: isolate;
  cursor: pointer;
}
[data-r2l-plan] button.close::before {
  content: "";
  position: absolute;
  inset: auto;
  left: 10px;
  top: 20px;
  width: 22px;
  height: 2px;
  margin: 0;
  background: currentColor;
  opacity: 1;
  transform: rotate(45deg);
  transform-origin: center;
}
[data-r2l-plan] button.close::after {
  content: "";
  position: absolute;
  inset: auto;
  left: 10px;
  top: 20px;
  width: 22px;
  height: 2px;
  margin: 0;
  background: currentColor;
  opacity: 1;
  transform-origin: center;
  transform: rotate(-45deg);
}
[data-r2l-plan] button.close:hover {
  background: #fff;
  color: #000;
}
[data-r2l-plan] button.close:hover::before,
[data-r2l-plan] button.close:hover::after {
  background: #000;
}
@media (max-height:600px) {
  dialog[data-r2l-plan].lr-dialog {
    gap: 6px;
    padding-block: 10px;
  }
  [data-r2l-plan] .lr-dialog-head {
    padding-bottom: 6px;
  }
  [data-r2l-plan] .lr-plan-controls button {
    min-height: 44px;
  }
  [data-r2l-plan] .lr-plan-window {
    max-height: calc(100dvh - 235px);
  }
}
[data-r2l-plan] .lr-plan-hint span {
  white-space: pre-line;
}
@media (min-width:751px) {
  dialog[data-r2l-plan].lr-dialog {
    width: min(1020px,calc(85vw - 27.2px));
  }
  [data-r2l-plan] .lr-plan-window {
    max-height: calc(85dvh - 212.5px);
  }
}
@media (min-width:751px) and (max-height:600px) {
  [data-r2l-plan] .lr-plan-window {
    max-height: calc(85dvh - 199.75px);
  }
}
[data-r2l-plan] .lr-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
[data-r2l-plan] .lr-dialog-head h2 {
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
}
main.collection article.room>.r2l-preview {
  padding-top: 30px;
  overflow-wrap: anywhere;
}
main.collection article.room>.r2l-preview h3 {
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: .08em;
  margin: 0 0 18px;
}
main.collection article.room>.r2l-preview .lr-intro {
  font-size: 14px;
  line-height: 2.1;
  color: #ddd;
}
@media (max-width:750px) {
  main.collection article.room>.r2l-preview {
    padding-top: 24px;
  }
  main.collection article.room>.r2l-preview h3 {
    font-size: 19px;
  }
}
main.collection>.grid>article.room>p.catch {
  display: none;
}
main.collection article.room .r2l-fold > summary {
  transition: background-color .22s ease, color .22s ease;
}
@media (hover: hover) {
  main.collection article.room .r2l-fold > summary:hover {
    background-color: rgba(255, 255, 255, .08);
    color: #fff;
  }
}
main.collection article.room .r2l-fold > summary:focus-visible {
  outline: 2px solid #d2cbba;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  main.collection article.room .r2l-fold > summary {
    transition: none;
  }
}
main.collection article.room .r2l-plan-launcher > button.r2l-plan-open {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  line-height: 2;
  cursor: pointer;
  transition: background-color .22s ease,color .22s ease;
}
@media (hover:hover) {
  main.collection article.room .r2l-plan-launcher > button.r2l-plan-open:hover {
    background-color: rgba(255,255,255,.08);
    color: #fff;
  }
}
main.collection article.room .r2l-plan-launcher > button.r2l-plan-open:focus-visible {
  outline: 2px solid #d2cbba;
  outline-offset: 3px;
}
@media (prefers-reduced-motion:reduce) {
  main.collection article.room .r2l-plan-launcher > button.r2l-plan-open {
    transition: none;
  }
}
