/* Guest Rooms — supplied editorial reference rebuilt with authoritative room facts */
#rooms.rooms-editorial {
  --rooms-paper: #F1EDE4;
  --rooms-brown: var(--brand-ink, #584B3A);
  --rooms-green: var(--brand-accent, #3E7150);
  --rooms-rule: rgba(88, 75, 58, .2);
  --rooms-side: max(var(--gutter), calc((100vw - 1440px) / 2));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: clamp(86px, 8.2vw, 138px) 0 clamp(104px, 9vw, 150px);
  color: var(--rooms-brown);
  background: var(--rooms-paper);
}

.rooms-editorial__rail {
  width: min(calc(100% - (2 * var(--gutter))), 1440px);
  margin-inline: auto;
}

.rooms-editorial__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(72px, 7vw, 116px);
  color: var(--rooms-green);
  font-family: var(--serif-en);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .18em;
}

.rooms-editorial__meta-label,
.rooms-editorial__meta-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  white-space: nowrap;
}

.rooms-editorial__meta span {
  display: block;
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .78;
}

.rooms-editorial__meta-index span {
  width: clamp(48px, 5vw, 80px);
  color: var(--rooms-brown);
  opacity: .2;
}

.rooms-editorial__layout {
  display: grid;
  grid-template-columns: minmax(300px, 29fr) minmax(0, 71fr);
  align-items: stretch;
  column-gap: clamp(52px, 5vw, 86px);
  margin-top: 0;
}

.rooms-editorial__information {
  position: relative;
  z-index: 4;
  min-width: 0;
  padding-top: 0;
}

.rooms-editorial__title {
  display: grid;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: var(--rooms-brown);
  font-family: var(--section-display-family);
  font-size: var(--section-display-size);
  font-style: italic;
  font-weight: var(--section-display-weight);
  line-height: var(--section-display-leading);
  letter-spacing: var(--section-display-tracking);
}

.rooms-editorial__title span { display: block; }

.rooms-editorial__kicker {
  margin: clamp(40px, 4vw, 64px) 0 0;
  color: var(--rooms-brown);
  font-family: var(--section-heading-family);
  font-size: var(--section-heading-size);
  font-weight: var(--section-heading-weight);
  line-height: var(--section-heading-leading);
  letter-spacing: var(--section-heading-tracking);
}

.rooms-editorial__kicker span { display: block; }

@media (min-width: 1121px) {
  .rooms-editorial__kicker {
    width: calc(100% + clamp(36px, calc(5vw - 16px), 70px));
  }
}

.rooms-editorial__short-rule {
  display: block;
  width: 44px;
  height: 1px;
  margin-top: clamp(18px, 1.7vw, 28px);
  background: var(--rooms-green);
}

.rooms-editorial__copy {
  max-width: 36em;
  margin: clamp(26px, 2.5vw, 40px) 0 0;
  color: var(--rooms-brown);
  font-family: var(--section-body-family);
  font-size: var(--section-body-size);
  font-weight: var(--section-body-weight);
  line-height: var(--section-body-leading);
  letter-spacing: var(--section-body-tracking);
}

.rooms-editorial__facts {
  margin: clamp(34px, 3.4vw, 54px) 0 0;
  color: var(--rooms-brown);
  /* カフェのスペック行（--section-body-size）とサイズを統一 */
  font-size: var(--section-body-size, clamp(13px, .98vw, 15px));
}

.rooms-editorial__facts > div {
  display: grid;
  grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rooms-rule);
}

.rooms-editorial__facts > div:first-child { border-top: 1px solid var(--rooms-rule); }

.rooms-editorial__facts dt {
  color: var(--rooms-green);
  font-family: var(--serif-en);
  font-size: 1em;
  font-weight: 400;
  letter-spacing: .08em;
}

.rooms-editorial__facts dd {
  margin: 0;
  min-width: 0;
  line-height: 1.55;
  letter-spacing: .04em;
}

.rooms-editorial__summary {
  margin: 20px 0 0;
  color: var(--rooms-brown);
  font-size: var(--section-body-size, clamp(13px, .98vw, 15px));
  line-height: 1.7;
  letter-spacing: .07em;
}

.rooms-editorial__gallery {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-width: 0;
  width: calc(100% + var(--rooms-side));
}

.rooms-editorial__left-cover {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 100%;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  background: var(--rooms-paper);
}

.rooms-editorial__toolbar {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: calc(100% + 22px);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 2vw, 34px);
  padding-right: var(--rooms-side);
  margin: 0;
}

.rooms-editorial__counter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--rooms-green);
  font-family: var(--serif-en);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .13em;
}

.rooms-editorial__counter i {
  display: block;
  width: clamp(46px, 4vw, 68px);
  height: 1px;
  background: rgba(62, 113, 80, .52);
}

.rooms-editorial__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rooms-editorial__arrow {
  width: clamp(48px, 3.6vw, 58px);
  height: clamp(48px, 3.6vw, 58px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(62, 113, 80, .62);
  border-radius: 50%;
  color: var(--rooms-green);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color .35s ease, background-color .35s ease, opacity .35s ease;
}

.rooms-editorial__arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rooms-editorial__arrow:hover {
  color: var(--rooms-paper);
  background: var(--rooms-green);
}

.rooms-editorial__arrow:focus-visible {
  outline: 2px solid var(--rooms-green);
  outline-offset: 4px;
}

.rooms-editorial__arrow.is-disabled {
  opacity: .28;
  cursor: default;
  pointer-events: none;
}

.rooms-editorial__slider {
  z-index: 1;
  height: 100%;
  overflow: visible;
}

.rooms-editorial__slide {
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--rooms-paper);
  opacity: .46;
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1);
}

.rooms-editorial__slide.swiper-slide-active { opacity: 1; }

.rooms-editorial__slide picture,
.rooms-editorial__slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.rooms-editorial__slide img {
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Each illustration keeps the edge requested by the art direction. */
.rooms-editorial__slide:nth-child(1) img { object-position: 0% 50%; transform-origin: 0% 50%; }
.rooms-editorial__slide:nth-child(2) img { object-position: 100% 50%; transform-origin: 100% 50%; }
.rooms-editorial__slide:nth-child(3) img { object-position: 40% 50%; transform-origin: 40% 50%; }
.rooms-editorial__slide:nth-child(4) img { object-position: 100% 50%; transform-origin: 100% 50%; }

@keyframes roomsKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

.rooms-editorial__slide.swiper-slide-active img {
  animation: roomsKenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}

.rooms-editorial__caption {
  position: absolute;
  z-index: 4;
  top: calc(100% + 16px);
  right: var(--rooms-side);
  margin: 0;
  color: var(--rooms-brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(13px, 1vw, 16px);
  font-style: italic;
  line-height: 1.3;
  letter-spacing: .16em;
  text-align: right;
}

.rooms-editorial__caption span {
  font-family: var(--serif-jp);
  font-size: .72em;
  font-style: normal;
  letter-spacing: .12em;
}

@media (max-width: 1120px) {
  .rooms-editorial__layout {
    display: block;
    margin-top: 0;
  }

  .rooms-editorial__information {
    width: min(88%, 640px);
    padding-top: 0;
  }

  .rooms-editorial__copy { max-width: 48em; }

  .rooms-editorial__facts {
    width: min(100%, 620px);
  }

  .rooms-editorial__gallery {
    align-self: auto;
    width: calc(100% + var(--rooms-side));
    margin-top: clamp(50px, 7vw, 78px);
  }

  .rooms-editorial__left-cover {
    top: 0;
    height: 100%;
  }

  .rooms-editorial__toolbar {
    position: relative;
    right: auto;
    bottom: auto;
    margin-bottom: clamp(18px, 1.8vw, 28px);
  }

  .rooms-editorial__slider { height: auto; }

  .rooms-editorial__slide {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .rooms-editorial__caption {
    position: relative;
    top: auto;
    right: auto;
    margin: 16px var(--rooms-side) 0 0;
  }
}

@media (max-width: 768px) {
  #rooms.rooms-editorial {
    padding: 72px 0 92px;
    --rooms-side: 22px;
  }

  .rooms-editorial__rail { width: calc(100% - 44px); }

  .rooms-editorial__meta {
    margin-bottom: 64px;
    font-size: 10px;
  }

  .rooms-editorial__meta-label,
  .rooms-editorial__meta-index { gap: 10px; }
  .rooms-editorial__meta span { width: 24px; }
  .rooms-editorial__meta-index span { width: 36px; }

  /* SP order: copy -> photos -> specs (facts follow the gallery) */
  .rooms-editorial__layout {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .rooms-editorial__information { display: contents; }
  .rooms-editorial__title { order: 1; }
  .rooms-editorial__kicker { order: 2; }
  .rooms-editorial__short-rule { order: 3; }
  .rooms-editorial__copy { order: 4; }
  .rooms-editorial__gallery { order: 5; }
  .rooms-editorial__facts { order: 6; }
  .rooms-editorial__summary { order: 7; }

  .rooms-editorial__kicker {
    width: calc(100% + 42px);
    max-width: calc(100vw - 44px);
    margin-top: 34px;
  }

  .rooms-editorial__copy {
    margin-top: 24px;
  }

  .rooms-editorial__facts {
    margin-top: 40px;
  }

  .rooms-editorial__facts > div {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 10px 0;
  }

  .rooms-editorial__gallery { margin-top: 44px; }

  .rooms-editorial__toolbar {
    min-height: 46px;
    gap: 18px;
    padding-right: var(--rooms-side);
    margin-bottom: 16px;
  }

  .rooms-editorial__counter { font-size: 11px; gap: 9px; }
  .rooms-editorial__counter i { width: 38px; }
  .rooms-editorial__nav { gap: 8px; }

  .rooms-editorial__arrow {
    width: 44px;
    height: 44px;
  }

  .rooms-editorial__slide { aspect-ratio: 4 / 3; }

  .rooms-editorial__caption {
    position: static;
    margin-top: 12px;
    margin-right: var(--rooms-side);
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rooms-editorial__arrow,
  .rooms-editorial__slide {
    transition: none;
  }

  .rooms-editorial__slide img,
  .rooms-editorial__slide.swiper-slide-active img {
    animation: none;
    transform: none;
    will-change: auto;
  }
}
