/* =========================
Common
========================= */
.room-page {
  background: #f8f5f0;
  color: #2f2a28;
}
.room-page__inner {
  width: min(1720px, calc(100% - 64px));
  margin: 0 auto;
}
/* =========================
   Room Hero
========================= */
.room-page-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  background: #2f2a28;
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.03);
  transition:
    opacity 1.2s ease,
    filter 1.2s ease,
    transform 1.4s ease;
}

.room-page-hero.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.room-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.room-page-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.room-page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.28) 45%,
      rgba(0, 0, 0, 0.42) 100%
    );
}

.room-page-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: 56px;
}

.room-page-hero__content {
  width: min(100%, 760px);
  color: #fff;
}

.room-page-hero__subtitle {
  margin: 0 0 12px;
  font-size: 15.4px;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.room-page-hero__title {
  margin: 0;
font-size: clamp(34px, 8vw, 100px);
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.room-page-hero__lead {
  margin: 20px 0 0;
  max-width: 680px;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 2;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
@media (max-width: 767px) {
  .room-page-hero {
    min-height: 88vw;
  }

  .room-page-hero__inner {
    min-height: 88vw;
    align-items: flex-end;
    padding-top: 88px;
    padding-bottom: 28px;
  }

  .room-page__inner {
    width: min(100%, calc(100% - 24px));
  }

  .room-page-hero__subtitle {
    margin-bottom: 10px;
    font-size: 13.5px;
    letter-spacing: 0.14em;
  }

  .room-page-hero__title {
 font-size: clamp(68px, 8vw, 40px);
    line-height: 1.18;
  }

  .room-page-hero__lead {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.9;
max-width: 300px;
  }
}
/* =========================
   Building
========================= */
.room-page-intro {
  padding: 0 0 96px;
}

.room-buildings {
  padding: 0 0 128px;
}

.room-section-head {
  margin-bottom: 40px;
}

.room-section-head__subtitle {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(47, 42, 40, 0.62);
}

.room-section-head__title {
  margin: 8px 0 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.2;
  color: #2f2a28;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.room-section-head__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 360px;
  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(122, 106, 86, 0.9) 0%,
    rgba(122, 106, 86, 0.7) 70%,
    rgba(122, 106, 86, 0.0) 100%
  );
}
.room-section-head__title::before {
  content: "";
  position: absolute;
  left: 360px;
  bottom: -1px;

  width: 18px;
  height: 18px;

  background: linear-gradient(
    135deg,
    rgba(122, 106, 86, 0.9) 0%,
    rgba(122, 106, 86, 0) 70%
  );

  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  opacity: 0.7;
}
.room-section-head__title::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-section-head.is-visible .room-section-head__title::after {
  transform: scaleX(1);
}


.room-buildings__list {
  display: grid;
  gap: 56px;
}

.building-card {
  position: relative;
}

.building-card__main {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 0;
  align-items: start;
}

/* 左：写真 */
.building-card__slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #1f1b19;
  border-radius: 80px 0 0 0;
}

.building-card__slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 620px;
}

.building-card__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.building-card__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.building-card__slide img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  display: block;
}

/* ドット */
.building-card__dots {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.building-card__dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  padding: 0;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.building-card__dot.is-active,
.building-card__dot:hover {
  background: #fff;
  transform: scale(1.15);
}
/* 右カラム */
.building-card__text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: end;
  min-height: auto;
  padding: 34px 30px 30px;
color:#2f2a28;
}

/* タイトル全体 */
.building-card__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
}

/* きらっとSVG */
.room-section-head {
  position: relative;
}
.room-section-head__mark {
  position: absolute;
  top: -48px;
  left: 5px;
  display: inline-flex;
  width: 34px;
  height: auto;
  color: #7a6a56;
  opacity: 0.9;
  pointer-events: none;
  animation: roomSparkle 4.8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes roomSparkle {
  0% {
    opacity: 0.72;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(186, 160, 112, 0));
  }

  12% {
    opacity: 1;
transform: scale(1.14) rotate(3deg);
filter: drop-shadow(0 0 12px rgba(186, 160, 112, 0.34));
  }

  18% {
    opacity: 0.92;
    transform: scale(1.02) rotate(-1deg);
    filter: drop-shadow(0 0 4px rgba(186, 160, 112, 0.14));
  }

  100% {
    opacity: 0.72;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(186, 160, 112, 0));
  }
}

.room-section-head__mark svg {
  display: block;
  width: 100%;
  height: auto;
}

/* タイトル文字 */
.building-card__title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #655d57;
  font-size: clamp(34px, 3.5vw, 65px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  box-sizing: border-box;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* hover時だけ変化 */
.building-card__text:hover .building-card__title {
  color: #b29a80;
}

.building-card__text:hover .building-card__title-mark {
  color: #b29a80;
  transform: rotate(-2deg) scale(1.06);
  opacity: 1;
}

/* 本文 */
.building-card__body {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 2.05;
  color: rgba(247, 242, 235, 0.84);
}

/* Galleryボタン */
.building-card__gallery-button {
  margin: 26px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 58px;
  min-width: 220px;
  padding: 0 30px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 18px 2px 18px 2px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

  background: rgba(117, 106, 95, 0.08);
  color: #6b625b;
  border: 1px solid rgba(117, 106, 95, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.building-card__gallery-button:hover {
  background: rgba(117, 106, 95, 0.14);
  color: #5d554f;
  border-color: rgba(117, 106, 95, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.building-card__gallery-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}
.building-card__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 18px;
}

.building-card__number {
width: clamp(52px, 10vw, 70px);
  line-height: 0;
  opacity: 0.92;
margin-left: -10px;
}

.building-card__number-image {
  display: block;
  width: 100%;
  height: auto;
}

.building-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.building-card__title {
  margin: 0;
}

.building-card__lead {
  margin: 0 0 22px;
  padding: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: #6f655c;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  text-shadow: none;
}

@media (max-width: 1024px) {
  .building-card__main {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .building-card__slider,
  .building-card__slides,
  .building-card__slide img {
    min-height: 520px;
  }

}

@media (max-width: 767px) {
  .building-card__lead {
    padding: 14px 18px;
    margin: 0 0 18px;
    line-height: 1.85;
    border-radius: 16px 12px 18px 10px;
    transform: rotate(-0.6deg);
  }


  .room-buildings {
    padding: 0 0 96px;
  }

  .room-section-head {
    margin-bottom: 26px;
  }

  .building-card__slider,
  .building-card__slides,
  .building-card__slide img {
    min-height: 92vw;
  }

  .building-card__slider {
    border-radius: 22px 0 22px 0;
  }

  .building-card__dots {
    left: 16px;
    bottom: 16px;
    gap: 8px;
  }

  .building-card__dot {
    width: 9px;
    height: 9px;
  }
.building-card__text {
    padding: 24px 18px 22px;
  }

  .building-card__title-wrap {
    gap: 10px;
    margin-bottom: 14px;
  }

  .building-card__title-mark {
    width: 16px;
  }

  .building-card__title {
    font-size: clamp(28px, 10vw, 44px);
    line-height: 0.98;
  }

  .building-card__body {
    font-size: 13px;
    line-height: 1.95;
  }

  .building-card__gallery-button {
    margin-top: 20px;
    min-height: 52px;
    min-width: 190px;
    padding: 0 22px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }
}

.js-fade-slide-left,
.js-building-reveal {
  opacity: 0;
  transform: translateX(-32px);
  filter: blur(6px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
  will-change: opacity, transform, filter;
}

.js-fade-slide-left.is-visible,
.js-building-reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}



/* =========================
Spaces
========================= */
.room-spaces {padding: 50px 0 112px;
  position: relative;
  z-index: 1;
}

.room-space {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 72px;
}

.room-space__media img {
  width: 100%;
  border-radius: 24px;
  display: block;
}


.room-space__text {
  margin-top: 18px;
  line-height: 2;
}

.room-space__points {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding-left: 1.2em;
}


/* 背景のふわっと暗転レイヤー */
.room-spaces::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0) 30%
    ),
    linear-gradient(
      180deg,
      rgba(24, 22, 21, 0.82) 0%,
      rgba(38, 34, 33, 0.92) 100%
    ),
    url("https://varie-fuji-terrace.com/wp-content/uploads/2026/03/vv40-6-scaled.webp") center center / cover no-repeat;

  opacity: 0;
  transition: opacity 0.9s ease;
  transform: scale(1.03);
}

/* セクションが表示されたら背景を出す */
.room-spaces.is-dark::before {
  opacity: 1;
}

/* 背景が暗くなった時、文字色も白寄りに */
.room-spaces.is-dark .room-section-head__subtitle,
.room-spaces.is-dark .room-section-head__title,
.room-spaces.is-dark .room-space__title,
.room-spaces.is-dark .room-space__text {
  color: #f7f3ee;
}

.room-space {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 88px;
}

.room-space:last-child {
  margin-bottom: 0;
}

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

/* メイン画像：角丸なし */
.room-space__main-image {
  overflow: hidden;
}

.room-space__main-image img {
  width: 100%;
  display: block;
  border-radius: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* サムネ一覧：小さめにして左寄せ */
.room-space__thumbs {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* サムネ画像：小さめ、角丸なし */
.room-space__thumb {
  width: 88px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}

.room-space__thumb.is-active,
.room-space__thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.room-space__thumb img {
  width: 100%;
  display: block;
  border-radius: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* テキスト側 */
.room-space__content {
  position: relative;
}

.room-space__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;

  margin-top: 0;
  margin-bottom: 18px;
  padding: 24px 34px;

  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0.08em;
  font-weight: 500;

  background-image: url("https://varie-fuji-terrace.com/wp-content/uploads/2026/03/vv7-6.png");
  background-size: auto 100%;
  background-position: center;
  background-repeat: repeat-x;

  width: fit-content;
  max-width: 100%;

  overflow: hidden; 
}
.room-space__title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.15)
  );
  z-index: 0;
}
.room-space__title::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(245, 241, 232, 0.72);
  flex-shrink: 0;
}

/* 文字と線を前面に */
.room-space__title > *,
.room-space__title::before {
  position: relative;
  z-index: 1;
}
.room-space__text {
  margin-top: 0;
  line-height: 2;
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* section全体が暗くなった時、画像を少しだけなじませる */
.room-spaces.is-dark .room-space__main-image img,
.room-spaces.is-dark .room-space__thumb img {
  filter: brightness(0.96);
}

@media (max-width: 767px) {
  .room-space {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 56px;
  }

  .room-space__thumbs {
    gap: 6px;
  }

  .room-space__thumb {
    width: 64px;
  }

  .room-space__main-image img {
    aspect-ratio: 16 / 11;
  }
 .room-space__title {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 28px 5px;
    gap: 14px;
    font-size: clamp(20px, 6vw, 28px);
    letter-spacing: 0.06em;
  }

  .room-space__title::before {
    width: 28px;
    flex-shrink: 0;
  }
}

/* =========================
Amenities
========================= */

.room-info-panels {
    margin-top: 80px;
  padding: 0 0 112px;
}

.room-info-panels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.room-info-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
}

.room-info-card__title {
  font-size: 24px;
  margin-bottom: 20px;
}

.room-chip-list,
.room-rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.room-chip-list li {
  padding: 10px 14px;
  font-size: 14px;
}

.room-rule-list {
  display: grid;
  gap: 12px;
}

.room-rule-list li {
  line-height: 1.8;
}

.room-cta {
  padding: 0 0 120px;
}

.room-cta__box {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 0 28px 0 28px;
  padding: 44px;
  text-align: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 通常背景 */
.room-cta--default .room-cta__box {
  background-image: url("https://varie-fuji-terrace.com/wp-content/uploads/2026/03/vv7-6.png");
}

/* 新しい背景 */
.room-cta--terrace .room-cta__box {
  background-image: url("https://varie-fuji-terrace.com/wp-content/uploads/2026/04/012-4.webp");
  background-position: center center;
}

/* オーバーレイ */
.room-cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.38),
    rgba(0, 0, 0, 0.22)
  );
  z-index: 0;
}

/* terrace版だけ少し深く */
.room-cta--terrace .room-cta__box::before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.48),
    rgba(0, 0, 0, 0.28)
  );
}

/* 中身を前面 */
.room-cta__box > * {
  position: relative;
  z-index: 1;
}

.room-cta__title {
  color: #fff;
}

.room-cta__text {
  color: rgba(255, 255, 255, 0.92);
}

.room-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-width: 220px;
  min-height: 54px;
  border-radius: 999px;
  background: #fff;
  color: #2f2a28 !important;
  text-decoration: none;
}
.room-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.room-modal.is-open {
  display: block;
}
.room-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.64);
}

.room-modal__dialog {
  position: relative;
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  z-index: 1;
}

.room-modal__close {
  display: inline-flex;
  margin-left: auto;
  margin-bottom: 20px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.room-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.room-modal__thumb {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.room-modal__thumb img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

body.room-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .room-page-hero {
    padding: 96px 0 56px;
  }

  .building-card {
    padding: 20px;
  }

  .building-card__main,
  .room-space,
  .room-info-panels__grid {
    grid-template-columns: 1fr;
  }

  .room-space {
    gap: 22px;
    margin-bottom: 56px;
  }

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

  .room-cta__box {
    padding: 32px 20px;
  }
}

.room-space__main-image img {
  width: 100%;
  display: block;
  border-radius: 24px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.room-space__thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.room-space__thumb {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.room-space__thumb.is-active,
.room-space__thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.room-space__thumb img {
  width: 100%;
  display: block;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}