.p-room {
  background: #fff;
  color: #3a3a3a;
  overflow-x: clip;
  padding-top: 72px;
}

.p-room-hero__head {
  margin: 0 auto;
  max-width: 1200px;
  padding: 90px 0 46px;
  position: relative;
  width: calc(100% - 80px);
}

.p-room-hero__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.3;
  text-align: center;
}

.p-room-hero__title span {
  align-items: center;
  color: #bb9a60;
  display: flex;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0;
  margin-top: 8px;
}

.p-room-hero__title span::before,
.p-room-hero__title span::after {
  background: currentColor;
  content: '';
  height: 1px;
  width: 16px;
}

.p-room-hero__times {
  bottom: 46px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.8;
  position: absolute;
  right: 0;
}

.p-room-hero__times dt {
  font-weight: inherit;
}

.p-room-hero__times div {
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.p-room-hero__photo {
  height: calc(100vh - 72px - 17px - 17px);
  margin: 0 40px;
  width: calc(100vw - 40px - 40px);
}

.p-room-hero__photo img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.p-room-intro {
  align-items: start;
  display: grid;
  gap: 8%;
  grid-template-columns: 1.45fr 1fr;
  margin: 80px auto 104px;
  max-width: 1200px;
  width: calc(100% - 80px);
}

.p-room-intro__lead {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.75;
}

.p-room-intro__text {
  font-size: 1.5rem;
  letter-spacing: .06em;
  line-height: 2.25;
  margin-top: 32px;
}

.p-room-intro__booking {
  margin-top: 40px;
}

.p-room-intro__spec {
  border-collapse: collapse;
  font-size: 1.2rem;
  line-height: 1.75;
  width: 100%;
}

.p-room-intro__spec caption {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.p-room-intro__spec th,
.p-room-intro__spec td {
  border-block: 2px solid #d8d8d8;
  font-weight: 400;
  padding: 10px 16px;
  text-align: left;
}

.p-room-intro__spec th {
  background: #eee;
  white-space: nowrap;
  width: 24%;
}

.p-room-layout {
  margin: 0 auto 160px;
  max-width: 1200px;
  width: calc(100% - 80px);
}

.p-room-layout__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
}

.p-room-layout__title span {
  align-items: center;
  display: flex;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  letter-spacing: normal;
  margin-top: 5px;
}

.p-room-layout__title span::before,
.p-room-layout__title span::after {
  background: currentColor;
  content: '';
  height: 1px;
  width: 16px;
}

.p-room-layout__viewport {
  display: grid;
  gap: 36px;
  grid-template-columns: 479px 1fr;
  margin-top: 64px;
}

.p-room-layout__plan {
  aspect-ratio: 475 / 457;
}

.p-room-layout__photo {
  aspect-ratio: 685 / 457;
}

.p-room-layout__plan img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.p-room-layout__photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.p-room-layout__dots {
  display: none;
}

.p-room-detail {
  display: grid;
  gap: 66px;
  grid-template-columns: 243px 1fr;
  margin: 0 auto;
  max-width: 1200px;
  width: calc(100% - 80px);
}

.p-room-menu {
  align-self: stretch;
  margin-bottom: -400px;
  min-width: 0;
}

.p-room-menu__list {
  position: sticky;
  top: 160px;
  z-index: 1;
}

.p-room-menu__list li + li {
  margin-top: 32px;
}

.p-room-menu__link:hover {
  text-decoration-line: none;
}

.p-room-menu__link {
  border-left: 2px solid transparent;
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.25;
  max-width: 225px;
  padding-left: 10px;
}

.p-room-menu__link.is-current {
  border-color: #bb9a60;
}

.p-room-menu__link span {
  display: block;
  font-family: var(--font-en);
  font-size: 1.6rem;
  letter-spacing: normal;
  margin-top: 4px;
}

.p-room-detail__body {
  min-width: 0;
}

.p-room-highlights {
  max-width: 788px;
  scroll-margin-top: 120px;
}

.p-room-highlights__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 70px;
  text-align: center;
}

.p-room-highlights__title span {
  align-items: center;
  display: flex;
  font-family: var(--font-en);
  font-size: 2rem;
  gap: 10px;
  justify-content: center;
  letter-spacing: normal;
  margin-top: 5px;
}

.p-room-highlights__title span::before,
.p-room-highlights__title span::after {
  background: currentColor;
  content: '';
  height: 1px;
  width: 16px;
}

.p-room-highlight + .p-room-highlight {
  margin-top: 64px;
}

.p-room-highlight__title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.75;
  margin-bottom: 16px;
}

.p-room-highlight > img {
  width: 100%;
}

.p-room-highlight__text {
  font-size: 1.5rem;
  letter-spacing: .06em;
  line-height: 2;
  margin-top: 16px;
}

.p-room-benefits {
  margin-top: 120px;
  scroll-margin-top: 120px;
}

.p-room-benefits__head {
  margin-bottom: 64px;
  max-width: 788px;
  position: relative;
}

.p-room-benefits__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.p-room-benefits__title span {
  align-items: center;
  display: flex;
  font-family: var(--font-en);
  font-size: 2rem;
  gap: 10px;
  justify-content: center;
  margin-top: 5px;
}

.p-room-benefits__title span::before,
.p-room-benefits__title span::after {
  background: currentColor;
  content: '';
  height: 1px;
  width: 16px;
}

.p-room-benefits__arrows {
  bottom: 0;
  display: flex;
  gap: 16px;
  position: absolute;
  right: 0;
}

.p-room-benefits__arrows button {
  align-items: center;
  background: #fff;
  border: 1px solid #3a3a3a;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  height: 25px;
  justify-content: center;
  width: 44px;
  transition: background-color .25s ease, border-color .25s ease;
}

.p-room-benefits__arrows button:hover:not(:disabled) {
  background: #3a3a3a;
}

.p-room-benefits__arrows img {
  filter: brightness(0) saturate(100%) invert(21%);
  height: 8px;
  width: 8px;
  transition: filter .25s ease;
}

.p-room-benefits__arrows button:hover:not(:disabled) img {
  filter: brightness(0) invert(1);
}

.p-room-benefits__arrows button:first-child img {
  transform: rotate(180deg);
}

.p-room-benefits__viewport {
  cursor: grab;
  margin-right: calc(20px - max(40px, (100vw - 1200px) / 2));
  overflow: hidden;
  touch-action: pan-y;
}

.p-room-benefits__viewport:active {
  cursor: grabbing;
}

.p-room-benefits__track {
  display: flex;
  gap: 36px;
  transition: transform .5s ease;
}

.p-room-benefit {
  flex: 0 0 320px;
  min-width: 0;
}

.p-room-benefit__photo {
  aspect-ratio: 320 / 214;
}

.p-room-benefit__photo img {
  width: 100%;
}

.p-room-benefit__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-top: 16px;
}

.p-room-benefit__text {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  line-height: 2;
  margin-top: 8px;
}

.p-room-amenities {
  margin-top: 112px;
  scroll-margin-top: 112px;
}

.p-room-amenities__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.p-room-amenities__title span {
  align-items: center;
  display: flex;
  font-family: var(--font-en);
  font-size: 2rem;
  gap: 10px;
  justify-content: center;
  margin-top: 5px;
}

.p-room-amenities__title span::before,
.p-room-amenities__title span::after {
  background: currentColor;
  content: '';
  height: 1px;
  width: 16px;
}

.p-room-amenities__body {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: 273px 1fr;
  margin-top: 64px;
}

.p-room-amenities__photo img {
  aspect-ratio: 273 / 410;
  object-fit: cover;
  width: 100%;
}

.p-room-amenities__list > div {
  border-bottom: 1px solid #B4B4B4;
  padding-bottom: 16px;
}

.p-room-amenities__list > div + div {
  padding-top: 16px;
}

.p-room-amenities__list dt {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 8px;
}

.p-room-amenities__list dd {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  line-height: 1.75;
}

.p-room-reserve {
  align-items: center;
  background: #bc9b60;
  border: 1px solid #bc9b60;
  color: #fff;
  display: inline-flex;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  height: 60px;
  justify-content: center;
  max-width: 100%;
  padding: 0 40px;
  position: relative;
  transition: background .25s, color .25s, border-color .25s;
  width: 273px;
}

.p-room-reserve img {
  filter: brightness(0) invert(1);
  height: auto;
  position: absolute;
  right: 38px;
  width: 4px;
}

.p-room-reserve:hover {
  text-decoration-line: none;
  background: #fff;
  border-color: #3a3a3a;
  color: #3a3a3a;
  opacity: 1;
}

.p-room-reserve:hover img {
  filter: brightness(0) saturate(100%) invert(21%);
}

html:has(.p-room) .booking-rail--pc .booking-rail__link {
  font-size: 1.6rem;
  gap: 8px;
  padding: 20px 12px;
}

.p-room-booking {
  background: #fff;
  margin: 0 auto;
  padding: 120px 0;
  position: relative;
  text-align: center;
  z-index: 2;
}

.p-room-booking::before {
  background: #fff;
  content: '';
  height: 400px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  width: 100%;
}

.p-room-anniversary {
  display: block;
  margin: 0 auto 120px;
  max-width: 1068px;
  overflow: hidden;
  position: relative;
  width: calc(100% - 80px);
  z-index: 3;
}

.p-room-anniversary img {
  transition: transform .4s ease;
  width: 100%;
}

.p-room-anniversary:not([href]) {
  cursor: inherit;
}

.p-room-anniversary:hover {
  text-decoration-line: none;
  opacity: 1;
}

.p-room-anniversary:hover img {
    transform: scale(1.05);
}

.p-room-others {
  background: #eee;
  padding: 100px 40px 120px;
}

.p-room-others__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.p-room-others__title span {
  align-items: center;
  display: flex;
  font-family: var(--font-en);
  font-size: 2rem;
  gap: 10px;
  justify-content: center;
  margin-top: 5px;
}

.p-room-others__title span::before,
.p-room-others__title span::after {
  background: currentColor;
  content: '';
  height: 1px;
  width: 16px;
}

.p-room-others__list {
  display: grid;
  gap: 64px 36px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 64px auto 0;
  max-width: 1200px;
}

.p-room-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.p-room-card__photo {
  overflow: hidden;
}

.p-room-card__photo img {
  aspect-ratio: 1.5;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
  width: 100%;
}

.p-room-card__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.3;
  margin-top: 16px;
  text-align: left;
}

.p-room-card:hover {
  text-decoration-line: none;
  opacity: 1;
}

.p-room-card:hover img {
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .p-room {
    padding-top: 64px;
  }

  .p-room-hero__head {
    padding: 65px 0 16px;
    width: calc(100% - 40px);
  }

  .p-room-hero__title {
    font-size: 1.8rem;
    letter-spacing: .04em;
    line-height: 1.6;
  }

  .p-room-hero__title span {
    font-size: 1.5rem;
    margin-top: 8px;
  }

  .p-room-hero__title span::before,
  .p-room-hero__title span::after {
    display: none;
  }

  .p-room-hero__times {
    font-size: 1.1rem;
    margin-top: 16px;
    position: static;
  }

  .p-room-hero__times div {
    gap: 12px;
    justify-content: flex-end;
  }

  .p-room-hero__photo {
    aspect-ratio: 1.5;
    height: auto;
    margin: 0 20px;
    width: calc(100% - 40px);
  }

  .p-room-intro {
    display: block;
    margin: 22px auto 70px;
    width: calc(100% - 56px);
  }

  .p-room-intro__lead {
    font-size: 1.8rem;
    line-height: 1.8;
  }

  .p-room-intro__text {
    font-size: 1.4rem;
    line-height: 2;
    margin-top: 18px;
  }

  .p-room-intro__booking {
    margin: 32px 0;
    text-align: center;
  }

  .p-room-intro__spec {
    font-size: 1.1rem;
  }

  .p-room-intro__spec th,
  .p-room-intro__spec td {
    padding: 9px 8px;
  }

  .p-room-intro__spec th {
    background: transparent;
    width: 36%;
  }

  .p-room-layout {
    margin-bottom: 70px;
    width: 100%;
  }

  .p-room-layout__title {
    font-size: 2rem;
  }

  .p-room-layout__title span {
    font-size: 1.6rem;
  }

  .p-room-layout__title span::before,
  .p-room-layout__title span::after {
    display: none;
  }

  .p-room-layout__viewport {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    overflow-x: auto;
    padding: 0 28px;
    scroll-padding-inline: 28px;
    scroll-snap-type: x mandatory;
  }

  .p-room-layout__plan,
  .p-room-layout__photo {
    aspect-ratio: 1.5;
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .p-room-layout__dots {
    display: flex;
    justify-content: center;
  }

  .p-room-layout__dots button {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 26px;
  }

  .p-room-layout__dots button::before {
    background: #b4b4b4;
    border-radius: 50%;
    content: '';
    height: 6px;
    width: 6px;
  }

  .p-room-layout__dots button[aria-pressed="true"]::before {
    background: var(--color-gold);
    height: 10px;
    width: 10px;
  }

  .p-room-detail {
    display: block;
    width: calc(100% - 56px);
  }

  .p-room-menu {
    display: none;
  }

  .p-room-highlights {
    scroll-margin-top: 90px;
  }

  .p-room-highlights__title {
    font-size: 2rem;
    margin-bottom: 32px;
  }

  .p-room-highlights__title span {
    font-size: 1.6rem;
  }

  .p-room-highlights__title span::before,
  .p-room-highlights__title span::after {
    display: none;
  }

  .p-room-highlight + .p-room-highlight {
    margin-top: 50px;
  }

  .p-room-highlight__title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .p-room-highlight > img {
    aspect-ratio: 1.5;
  }

  .p-room-highlight__text {
    font-size: 1.3rem;
    line-height: 2;
    margin-top: 16px;
  }

  .p-room-benefits {
    margin-top: 70px;
    scroll-margin-top: 90px;
  }

  .p-room-benefits__head {
    margin-bottom: 28px;
    padding-bottom: 42px;
  }

  .p-room-benefits__title {
    font-size: 2rem;
  }

  .p-room-benefits__title span {
    font-size: 1.6rem;
  }

  .p-room-benefits__title span::before,
  .p-room-benefits__title span::after {
    display: none;
  }

  .p-room-benefits__arrows {
    gap: 12px;
  }

  .p-room-benefits__arrows button {
    height: 25px;
    width: 42px;
  }

  .p-room-benefits__viewport {
    margin-left: 16px;
    margin-right: -28px;
  }

  .p-room-benefits__track {
    gap: 30px;
  }

  .p-room-benefit {
    flex-basis: 64%;
  }

  .p-room-benefit__title {
    font-size: 1.4rem;
    margin-top: 10px;
  }

  .p-room-benefit__text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-top: 6px;
  }

  .p-room-amenities {
    margin-top: 80px;
    scroll-margin-top: 90px;
  }

  .p-room-amenities__title {
    font-size: 1.9rem;
  }

  .p-room-amenities__title span {
    font-size: 1.6rem;
  }

  .p-room-amenities__title span::before,
  .p-room-amenities__title span::after {
    display: none;
  }

  .p-room-amenities__body {
    display: block;
    margin-top: 28px;
  }

  .p-room-amenities__photo img {
    aspect-ratio: 1.5;
    object-position: center 75%;
  }

  .p-room-amenities__list {
    margin-top: 18px;
  }

  .p-room-amenities__list dt {
    font-size: 1.5rem;
  }

  .p-room-amenities__list dd {
    font-size: 1.2rem;
  }

  .p-room-reserve {
    font-size: 1.4rem;
    height: 54px;
    width: 100%;
  }

  .p-room-reserve img {
    right: 24px;
  }

  .p-room-booking {
    margin: 40px 28px 50px;
    padding: 0;
  }

  .p-room-booking::before {
    display: none;
  }

  .p-room-anniversary {
    margin-bottom: 60px;
    width: calc(100% - 40px);
  }

  .p-room-others {
    padding: 60px 20px 70px;
  }

  .p-room-others__title {
    font-size: 2rem;
  }

  .p-room-others__title span {
    font-size: 1.6rem;
  }

  .p-room-others__title span::before,
  .p-room-others__title span::after {
    display: none;
  }

  .p-room-others__list {
    gap: 24px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px;
  }
  
  .p-room-card__title {
    font-size: 1.3rem;
    margin-top: 12px;
  }
}
