/* ==========================================================================
   Lodging page (宿泊施設 / Private Lodging)
   Source: _reference/pdf/PC_JP_sample_0911.pdf, Responsive_JP_sample_0911.pdf
   (page 3).
   ========================================================================== */

.lodging-hero {
  /* SP ratio is a shared estimate across the four page-hero pages, not a
     pixel measurement per page like the TOP hero — see docs/todo.md. */
  aspect-ratio: 3 / 4;
}

@media (min-width: 768px) {
  .lodging-hero {
    /* PC ratio from the supplied photo's native pixel size (1631x882),
       matching the measured 1631px PC canvas width — see docs/todo.md. */
    aspect-ratio: 1631 / 882;
  }
}

.lodging-hero__armor {
  position: absolute;
  z-index: 1;
  right: var(--space-4);
  bottom: 0;
  width: 120px;
  height: auto;
}

@media (min-width: 768px) {
  .lodging-hero__armor {
    right: var(--space-6);
    width: 200px;
  }
}

/* -- 1F / 2F floor sections ------------------------------------------- */

.floor-section {
  padding-block: var(--space-8);
}

.floor-section--2f {
  background: linear-gradient(to bottom, var(--color-gold), #f3ead0 60%, var(--color-white));
}

.floor-section .container {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "frame label" "text text";
  align-items: start;
  gap: var(--space-4);
}

.floor-section__frame {
  grid-area: frame;
  position: relative;
  min-width: 0;
}

.floor-section__label {
  grid-area: label;
  writing-mode: vertical-rl;
  font-family: var(--font-en-serif);
  font-size: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.2);
}

.floor-section__text {
  grid-area: text;
  margin-top: var(--space-5);
  text-align: center;
  line-height: 2;
}

.floor-badge {
  position: absolute;
  z-index: 2;
  right: var(--space-3);
  bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-en-serif);
  line-height: 1.3;
  text-align: center;
}

/* -- Gallery --------------------------------------------------------------
   Baseline (no JS / SP): .gallery__photos is a plain stacked list of full
   width images, matching the supplied SP design exactly.
   Enhanced (assets/js/slider.js, PC only via the media query below): a
   large .gallery__main preview is inserted and .gallery__photos becomes a
   row of clickable thumbnails. */

.gallery__photos {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gallery__photos img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery__main {
  display: none;
}

@media (min-width: 768px) {
  .gallery__main {
    display: block;
  }

  .gallery__main-photo {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
  }

  .gallery__main-photo.is-fading {
    opacity: 0;
  }

  .gallery__photos {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
    overflow-x: auto;
  }

  .gallery__thumb {
    flex: 1 0 0;
    min-width: 0;
  }

  .gallery__thumb img {
    opacity: 0.6;
    transition: opacity 0.2s ease;
  }

  .gallery__thumb.is-active img,
  .gallery__thumb:hover img {
    opacity: 1;
  }
}

/* -- Amenities ------------------------------------------------------------ */

.amenities {
  padding-block: var(--space-8);
  text-align: center;
}

.amenities__icon {
  width: 80px;
  height: auto;
  margin-inline: auto;
}

.amenities__lead {
  margin-top: var(--space-4);
  line-height: 2;
}

.amenity-table {
  width: 100%;
  max-width: 700px;
  margin: var(--space-6) auto 0;
  border-collapse: collapse;
  border: 1px solid var(--color-deep-gold);
}

.amenity-table th,
.amenity-table td {
  border: 1px solid var(--color-deep-gold);
  padding: var(--space-3) var(--space-4);
  font-weight: var(--fw-regular);
}

.amenity-table th {
  width: 30%;
  text-align: center;
}

.amenity-table td {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.9;
}

.amenity-table tr:nth-child(odd) th {
  background: var(--color-table-label-gray);
}

.amenity-table tr:nth-child(even) th {
  background: var(--color-table-label-beige);
}

.amenities__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.amenities__photos img {
  width: 100%;
  height: auto;
}

.amenities__closing {
  margin-top: var(--space-7);
  line-height: 2;
}
