:root {
  --room-ink: #22251f;
  --room-muted: #62675e;
  --room-paper: #faf8f2;
  --room-washi: #f3efe5;
  --room-line: #d6d1c4;
  --room-moss: #56634d;
  --room-dark: #263027;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body.room-page {
  background: var(--room-paper);
  color: var(--room-ink);
  font-family: "Shippori Mincho", "Yu Mincho", YuMincho, serif;
  font-size: 1.6rem;
  line-height: 1.8;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.room-page *,
.room-page *::before,
.room-page *::after {
  box-sizing: border-box;
}

.room-page a {
  color: inherit;
}

.room-page img {
  display: block;
  max-width: 100%;
}

.room-detail__hero-image:not(.is-placeholder) img,
.room-gallery:not(.is-placeholder) img,
.room-slider__track img {
  filter: brightness(1.08);
}

.room-page :focus-visible {
  outline: 3px solid #8d552f;
  outline-offset: 4px;
}

.room-page [data-lang="en"] {
  display: none;
}

html[data-site-lang="en"] .room-page [data-lang="ja"] {
  display: none;
}

html[data-site-lang="en"] .room-page [data-lang="en"] {
  display: initial;
}

.room-skip-link {
  background: #fff;
  left: 1.6rem;
  padding: 1rem 1.4rem;
  position: fixed;
  top: -10rem;
  z-index: 100;
}

.room-skip-link:focus {
  top: 1.6rem;
}

.room-site-header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--room-line);
  display: grid;
  gap: clamp(2.4rem, 3vw, 4.8rem);
  grid-template-columns: auto minmax(0, 1fr);
  min-height: clamp(11.5rem, 9.31vw, 13.4rem);
  padding: clamp(3.2rem, 3.125vw, 4.5rem) clamp(3.2rem, 3.125vw, 4.5rem) 0;
  position: relative;
  z-index: 20;
}

.room-site-header__brand {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
  width: clamp(11.7rem, 11.46vw, 16.5rem);
}

.room-site-header__brand img {
  height: auto;
  width: 100%;
}

.room-site-menu {
  align-items: flex-start;
  display: grid;
  gap: clamp(2.4rem, 3vw, 4.8rem);
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.room-site-nav {
  align-items: center;
  display: flex;
  gap: clamp(1.8rem, 2.8vw, 4rem);
  justify-content: flex-end;
  padding-top: .5rem;
}

.room-site-nav a {
  font-size: 1.5rem;
  letter-spacing: .06em;
  text-decoration: none;
}

.room-site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: .5rem;
}

.room-site-header__tools {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.room-menu-toggle {
  display: none;
}

.room-language-switcher {
  align-items: center;
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--room-line);
  display: flex;
  font-family: "Josefin Slab", serif;
  font-weight: 600;
  gap: .2rem;
  padding: .1rem .3rem;
}

.room-language-switcher button {
  background: transparent;
  border: 0;
  color: var(--room-muted);
  cursor: pointer;
  font: inherit;
  min-height: max(3.6rem, 44px);
  min-width: max(3.6rem, 44px);
  padding: .6rem;
}

.room-language-switcher button:hover {
  background: var(--room-washi);
  color: var(--room-ink);
}

.room-language-switcher button:focus-visible {
  outline: 3px solid #8d552f;
  outline-offset: 2px;
}

.room-language-switcher button[aria-pressed="true"] {
  color: var(--room-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .4rem;
}

.room-button {
  align-items: center;
  background: var(--room-dark);
  border: 1px solid var(--room-dark);
  color: #fff !important;
  display: inline-flex;
  font-size: 1.4rem;
  justify-content: center;
  letter-spacing: .06em;
  min-height: 5rem;
  padding: 1rem 2.2rem;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}

.room-button:hover {
  background: var(--room-moss);
}

.room-contact-link {
  align-items: center;
  border: 1px solid var(--room-ink);
  display: inline-flex;
  font-size: 1.4rem;
  justify-content: center;
  letter-spacing: .06em;
  min-height: 4.4rem;
  min-width: clamp(10.25rem, 7.78vw, 11.2rem);
  padding: .7rem 1.8rem;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}

.room-contact-link:hover {
  background: var(--room-dark);
  color: #fff;
}

.room-detail {
  min-height: 65vh;
}

.room-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(34rem, .75fr);
  min-height: min(76rem, calc(100vh - 9rem));
}

.room-detail__hero-image {
  background: var(--room-washi);
  min-height: 56rem;
  overflow: hidden;
}

.room-detail__hero-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.room-detail__hero-image.is-placeholder {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: clamp(5rem, 10vw, 12rem);
}

.room-detail__hero-image.is-placeholder img {
  height: auto;
  max-height: 22rem;
  object-fit: contain;
  width: min(70%, 34rem);
}

.room-detail__hero-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 8vw, 11rem);
}

.room-breadcrumb {
  align-items: center;
  color: var(--room-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 1.4rem;
  gap: .8rem;
  margin-bottom: clamp(4rem, 7vw, 8rem);
}

.room-breadcrumb a {
  text-underline-offset: .3rem;
}

.room-detail__number {
  color: var(--room-muted);
  font-family: "Josefin Slab", serif;
  font-size: 1.4rem;
  letter-spacing: .18em;
  margin: 0 0 1.6rem;
  text-transform: uppercase;
}

.room-detail__title {
  font-size: clamp(5rem, 7vw, 9rem);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0 0 2.4rem;
}

.room-detail__title-roman {
  display: block;
  font-family: "Josefin Slab", serif;
  font-size: .28em;
  letter-spacing: .12em;
  margin-top: 1.2rem;
  text-transform: uppercase;
}

.room-detail__location {
  color: var(--room-muted);
  font-size: 1.5rem;
  margin: 0 0 3rem;
}

.room-photo-status {
  align-items: center;
  background: var(--room-washi);
  color: #40473c;
  display: inline-flex;
  font-size: 1.3rem;
  gap: .8rem;
  margin: 0;
  padding: .9rem 1.2rem;
}

.room-photo-status::before {
  background: var(--room-moss);
  border-radius: 50%;
  content: "";
  height: .7rem;
  width: .7rem;
}

.room-photo-status.is-reference::before {
  background: #9a764e;
}

.room-detail__content {
  margin: 0 auto;
  max-width: 132rem;
  padding: clamp(8rem, 11vw, 15rem) clamp(2rem, 6vw, 8rem);
}

.room-detail__intro {
  display: grid;
  gap: clamp(4rem, 7vw, 10rem);
  grid-template-columns: minmax(24rem, .7fr) minmax(0, 1.3fr);
  margin-bottom: clamp(8rem, 12vw, 15rem);
}

.room-section-kicker {
  color: var(--room-muted);
  font-family: "Josefin Slab", serif;
  font-size: 1.3rem;
  letter-spacing: .18em;
  margin: 0 0 1.8rem;
  text-transform: uppercase;
}

.room-section-title {
  font-size: clamp(3rem, 4.2vw, 5rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.room-detail__description {
  font-size: clamp(1.7rem, 1.6vw, 2rem);
  line-height: 2.1;
  margin: 0;
  max-width: 50ch;
}

.room-detail__notice {
  background: var(--room-washi);
  color: var(--room-muted);
  font-size: 1.4rem;
  margin-top: 3rem;
  max-width: 62ch;
  padding: 1.5rem 1.8rem;
}

.room-gallery {
  margin-bottom: clamp(8rem, 12vw, 15rem);
}

.room-gallery figure {
  background: var(--room-washi);
  margin: 0;
  min-height: min(70vw, 76rem);
  overflow: hidden;
  position: relative;
}

.room-gallery img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.room-gallery.is-placeholder figure {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: clamp(5rem, 10vw, 12rem);
}

.room-gallery.is-placeholder img {
  height: auto;
  max-height: 20rem;
  object-fit: contain;
  width: min(62%, 30rem);
}

.room-gallery figcaption {
  background: rgba(246, 243, 235, .92);
  bottom: 0;
  color: var(--room-muted);
  font-size: 1.2rem;
  left: 0;
  padding: .8rem 1.2rem;
  position: absolute;
}

.room-slider {
  margin-bottom: clamp(8rem, 12vw, 15rem);
}

.room-slider__viewport {
  background: var(--room-washi);
  overflow: hidden;
  touch-action: pan-y;
}

.room-slider__track {
  display: flex;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

.room-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.room-slider__open {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: zoom-in;
  display: block;
  height: min(68vw, 76rem);
  padding: 0;
  position: relative;
  width: 100%;
}

.room-slider__open img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.room-slider__zoom {
  background: rgba(28, 31, 26, .82);
  bottom: 1.8rem;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: .06em;
  padding: 1rem 1.4rem;
  position: absolute;
  right: 1.8rem;
}

.room-slider__controls {
  align-items: center;
  border-bottom: 1px solid var(--room-line);
  display: grid;
  gap: 1.4rem;
  grid-template-columns: auto 1fr auto auto;
  min-height: 7rem;
}

.room-slider__arrow,
.room-slider__dot,
.room-lightbox__close,
.room-lightbox__arrow {
  cursor: pointer;
}

.room-slider__arrow {
  background: transparent;
  border: 0;
  color: var(--room-ink);
  font-size: 2.4rem;
  min-height: 4.8rem;
  min-width: 4.8rem;
}

.room-slider__dots {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.room-slider__dot {
  background: transparent;
  border: 0;
  height: 4.4rem;
  padding: 0;
  position: relative;
  width: 4.4rem;
}

.room-slider__dot::before {
  border: 1px solid var(--room-muted);
  border-radius: 50%;
  content: "";
  height: 1.2rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.2rem;
}

.room-slider__dot.is-active::before {
  background: var(--room-ink);
}

.room-slider__status {
  color: var(--room-muted);
  font-family: "Josefin Slab", serif;
  font-size: 1.3rem;
  min-width: 4.8rem;
  text-align: center;
}

.room-slider__instruction {
  color: var(--room-muted);
  font-size: 1.3rem;
  margin: 1.2rem 0 0;
  text-align: right;
}

.room-lightbox {
  background: rgba(20, 23, 19, .97);
  border: 0;
  color: #fff;
  height: 100%;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 0;
  width: 100%;
}

.room-lightbox::backdrop {
  background: rgba(20, 23, 19, .9);
}

.room-lightbox__inner {
  display: grid;
  grid-template-columns: minmax(5.6rem, 9rem) minmax(0, 1fr) minmax(5.6rem, 9rem);
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  position: relative;
}

.room-lightbox__figure {
  align-items: center;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  justify-content: center;
  margin: 0;
  min-height: 0;
  padding: 5rem 0 2rem;
  touch-action: pan-y;
}

.room-lightbox__figure img {
  max-height: calc(100vh - 13rem);
  object-fit: contain;
  width: auto;
}

.room-lightbox__figure figcaption {
  color: rgba(255, 255, 255, .78);
  font-size: 1.3rem;
  margin-top: 1.2rem;
  text-align: center;
}

.room-lightbox__close,
.room-lightbox__arrow {
  background: transparent;
  border: 0;
  color: #fff;
  min-height: 5rem;
  min-width: 5rem;
}

.room-lightbox__close {
  font-size: 3.4rem;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 2;
}

.room-lightbox__arrow {
  align-self: center;
  font-size: 3rem;
  grid-row: 1;
}

.room-lightbox__arrow--previous {
  grid-column: 1;
}

.room-lightbox__arrow--next {
  grid-column: 3;
}

.room-lightbox__status {
  font-family: "Josefin Slab", serif;
  font-size: 1.4rem;
  grid-column: 2;
  grid-row: 2;
  padding: 1.2rem 0 2.2rem;
  text-align: center;
}

.room-visually-hidden {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.room-facts {
  border-top: 1px solid var(--room-ink);
  display: grid;
  grid-template-columns: minmax(22rem, .7fr) minmax(0, 1.3fr);
  margin-bottom: clamp(8rem, 12vw, 15rem);
}

.room-facts__heading {
  padding: 3rem 3rem 3rem 0;
}

.room-facts dl {
  margin: 0;
}

.room-facts__row {
  border-bottom: 1px solid var(--room-line);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(14rem, .45fr) 1fr;
  padding: 2.6rem 0;
}

.room-facts dt {
  color: var(--room-muted);
  font-size: 1.4rem;
  letter-spacing: .08em;
}

.room-facts dd {
  font-size: 1.6rem;
  margin: 0;
}

.room-stay-note {
  background: var(--room-washi);
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(20rem, .7fr) minmax(0, 1.3fr);
  margin-bottom: clamp(8rem, 12vw, 15rem);
  padding: clamp(3rem, 6vw, 7rem);
}

.room-stay-note p {
  font-size: 1.6rem;
  line-height: 2;
  margin: 0;
  max-width: 58ch;
}

.room-detail__cta {
  align-items: center;
  border-bottom: 1px solid var(--room-line);
  border-top: 1px solid var(--room-line);
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  padding: clamp(4rem, 6vw, 7rem) 0;
}

.room-detail__cta h2 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.room-detail__cta p {
  color: var(--room-muted);
  font-size: 1.4rem;
  margin: 0;
}

.room-button--light {
  background: transparent;
  color: var(--room-ink) !important;
}

.room-button--light:hover {
  color: #fff !important;
}

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

.room-pagination a {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 22rem;
  padding: 3rem;
  text-align: center;
  text-decoration: none;
}

.room-pagination a + a {
  border-left: 1px solid var(--room-line);
}

.room-pagination a:hover {
  background: var(--room-washi);
}

.room-pagination__direction {
  color: var(--room-muted);
  font-family: "Josefin Slab", serif;
  font-size: 1.2rem;
  letter-spacing: .16em;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}

.room-pagination__name {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
}

.room-site-footer {
  background: #fff;
  border-top: 1px solid var(--room-line);
  color: var(--room-ink);
  padding: clamp(5rem, 8vw, 9rem) clamp(2rem, 5vw, 7.2rem) 3rem;
}

.room-site-footer__inner {
  margin: 0 auto;
  max-width: 132rem;
}

.room-site-footer__head {
  align-items: flex-start;
  display: flex;
  gap: 4rem;
  justify-content: space-between;
  margin-bottom: 5rem;
}

.room-site-footer__brand {
  display: block;
  width: min(16.5rem, 30vw);
}

.room-site-footer__brand img {
  height: auto;
  width: 100%;
}

.room-site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: flex-end;
}

.room-site-footer__nav a,
.room-site-footer__info a,
.room-site-footer__bottom a {
  font-size: 1.3rem;
  text-underline-offset: .35rem;
}

.room-site-footer__nav a {
  text-decoration: none;
}

.room-site-footer__nav a:hover,
.room-site-footer__nav a:focus-visible {
  text-decoration: underline;
}

.room-site-footer__info {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 3rem;
  margin-bottom: 4rem;
}

.room-site-footer__info address {
  font-size: 1.3rem;
  font-style: normal;
}

.room-site-footer__bottom {
  align-items: center;
  border-top: 1px solid var(--room-line);
  color: var(--room-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 1.2rem;
  gap: 1.2rem 2.4rem;
  justify-content: flex-end;
  padding-top: 2.4rem;
}

.room-site-footer__bottom span:last-child {
  margin-left: auto;
}

@media (max-width: 900px) {
  body.room-page.room-menu-open {
    overflow: hidden;
  }

  .room-site-header {
    align-items: start;
    gap: 0;
    grid-template-columns: 1fr auto;
    min-height: 8.5rem;
    padding: 2rem 1.5rem;
  }

  .room-site-header__brand {
    position: relative;
    width: 11.4rem;
    z-index: 2;
  }

  .room-menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--room-ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: "Josefin Slab", serif;
    font-size: 1.4rem;
    gap: .6rem;
    justify-content: flex-start;
    min-height: 4.4rem;
    min-width: 4.4rem;
    padding: 0;
    position: relative;
    z-index: 2;
  }

  .room-menu-toggle__icon {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding-top: .2rem;
    width: 4rem;
  }

  .room-menu-toggle__icon span {
    background: currentColor;
    display: block;
    height: 1px;
    transform-origin: center;
    transition: transform .24s ease;
    width: 100%;
  }

  .room-menu-toggle__label {
    line-height: 1;
    white-space: nowrap;
  }

  .room-site-menu {
    display: none;
  }

  .room-site-header.is-menu-open {
    align-content: start;
    height: 100dvh;
    inset: 0;
    overflow-y: auto;
    position: fixed;
    width: 100%;
    z-index: 80;
  }

  .room-site-header.is-menu-open .room-menu-toggle__icon span:first-child {
    transform: translateY(.35rem) rotate(45deg);
  }

  .room-site-header.is-menu-open .room-menu-toggle__icon span:last-child {
    transform: translateY(-.35rem) rotate(-45deg);
  }

  .room-site-header.is-menu-open .room-site-menu {
    border-top: 1px solid var(--room-line);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    grid-column: 1 / -1;
    margin-top: 1.2rem;
    padding: 2.4rem 1.5rem 5rem;
  }

  .room-site-nav {
    align-items: stretch;
    border-top: 1px solid var(--room-line);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
  }

  .room-site-nav a {
    align-items: center;
    border-bottom: 1px solid var(--room-line);
    display: flex;
    font-size: 1.6rem;
    min-height: 4.8rem;
    text-decoration: none;
  }

  .room-site-header__tools {
    align-self: center;
    max-width: 26rem;
    width: 100%;
  }

  .room-contact-link,
  .room-language-switcher {
    width: 100%;
  }

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

  .room-detail__hero-image {
    min-height: 55vw;
  }

  .room-detail__hero-copy {
    padding: 5rem 3rem 7rem;
  }

  .room-breadcrumb {
    margin-bottom: 4rem;
  }

  .room-detail__intro,
  .room-facts,
  .room-stay-note {
    grid-template-columns: 1fr;
  }

  .room-lightbox__figure {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 560px) {
  body.room-page {
    font-size: 1.6rem;
  }

  .room-language-switcher {
    gap: 0;
    justify-content: center;
  }

  .room-language-switcher button {
    min-width: max(3.6rem, 44px);
  }

  .room-contact-link {
    min-width: 0;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .room-detail__hero-image {
    min-height: 70vw;
  }

  .room-detail__hero-copy {
    padding: 4rem 2rem 6rem;
  }

  .room-detail__title {
    font-size: clamp(4.2rem, 13vw, 5.4rem);
  }

  .room-detail__content {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .room-gallery figure {
    min-height: 72vw;
  }

  .room-slider__open {
    height: 70vw;
    min-height: 28rem;
  }

  .room-slider__controls {
    gap: .6rem;
    grid-template-columns: auto 1fr auto auto;
  }

  .room-slider__zoom {
    bottom: 1.2rem;
    right: 1.2rem;
  }

  .room-slider__instruction {
    text-align: left;
  }

  .room-lightbox__inner {
    grid-template-columns: 5.6rem minmax(0, 1fr) 5.6rem;
  }

  .room-lightbox__figure {
    grid-column: 1 / -1;
    padding: 7rem 1.6rem 8rem;
  }

  .room-lightbox__figure img {
    max-height: calc(100vh - 19rem);
  }

  .room-lightbox__arrow {
    align-self: end;
    grid-row: 1;
    margin-bottom: 2rem;
    z-index: 2;
  }

  .room-lightbox__arrow--previous {
    grid-column: 1;
  }

  .room-lightbox__arrow--next {
    grid-column: 3;
  }

  .room-lightbox__status {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    padding-bottom: 2.8rem;
    z-index: 2;
  }

  .room-facts__row {
    gap: .8rem;
    grid-template-columns: 1fr;
  }

  .room-detail__cta {
    align-items: stretch;
    flex-direction: column;
  }

  .room-detail__cta .room-button {
    width: 100%;
  }

  .room-pagination a {
    min-height: 16rem;
    padding: 2rem 1rem;
  }

  .room-site-footer__head,
  .room-site-footer__info,
  .room-site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-site-footer__nav {
    justify-content: flex-start;
  }

  .room-site-footer__bottom span:last-child {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .room-gallery img,
  .room-slider__track,
  .room-menu-toggle__icon span,
  .room-contact-link,
  .room-button {
    transition: none;
  }
}
