:root {
  --hotel-navy: #07345c;
  --hotel-blue: #0879c9;
  --hotel-ice: #f1f7fb;
  --hotel-white: #fff;
  --hotel-ink: #172536;
  --hotel-muted: #607184;
  --hotel-line: #d5e3ed;
}

/* ==================================================
   Base
================================================== */
.hotel-detail,
.hotel-detail *,
.hotel-detail *::before,
.hotel-detail *::after {
  box-sizing: border-box;
}

.hotel-detail {
  color: var(--hotel-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

.hotel-detail-container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

/* ==================================================
   Opening / Title
================================================== */
.hotel-detail-opening {
  padding: 66px 0 72px;
  background: linear-gradient(180deg, #f3f9fc 0, #fff 100%);
}

.hotel-detail-title {
/*  max-width: 820px;*/
  margin-bottom: 30px;
}

.hotel-detail-title__area {
  margin: 0 0 5px;
  color: var(--hotel-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hotel-detail-title__type {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--hotel-navy);
  background: #e4f3fa;
  font-size: 11px;
  font-weight: 800;
}

.hotel-detail-title h2 {
  margin: 0;
  color: var(--hotel-navy);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hotel-detail-title__lead {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.hotel-detail-title__features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hotel-detail-title__features li {
  padding: 5px 10px;
  border: 1px solid var(--hotel-line);
  border-radius: 6px;
  color: #246181;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* ==================================================
   Gallery: common
================================================== */
.hotel-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 190px);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--hotel-ice);
  box-shadow: 0 12px 34px rgba(7, 52, 92, 0.1);
}

.hotel-gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #dfeaf0;
}

.hotel-gallery__item--1 {
  grid-row: 1 / 3;
}

.hotel-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hotel-gallery__item:hover img {
  transform: scale(1.035);
}

/* 1 image */
.hotel-gallery--count-1 {
  grid-template-columns: 1fr;
}

.hotel-gallery--count-1 .hotel-gallery__item--1 {
  grid-column: 1 / -1;
  grid-row: 1 / 3;
}

/* 2 images */
.hotel-gallery--count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.hotel-gallery--count-2 .hotel-gallery__item {
  grid-row: 1 / 3;
}

/* 3 images */
.hotel-gallery--count-3 {
  grid-template-columns: 1.5fr 1fr;
}

.hotel-gallery--count-3 .hotel-gallery__item--3 {
  grid-column: 2;
}

/* 4 images */
.hotel-gallery--count-4 {
  grid-template-columns: 1.55fr 1fr 1fr;
}

.hotel-gallery--count-4 .hotel-gallery__item--4 {
  grid-column: 2 / 4;
}

/* 5 images */
.hotel-gallery--count-5 {
  grid-template-columns: 1.5fr 1.5fr 1fr;
  grid-template-rows: repeat(3, 125px);
}

.hotel-gallery--count-5 .hotel-gallery__item--1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.hotel-gallery--count-5 .hotel-gallery__item--4 {
  grid-column: 1 / 2;
}

.hotel-gallery--count-5 .hotel-gallery__item--5 {
  grid-column: 2 / 4;
}

/* 6 images: PC = 3 columns × 3 rows */
.hotel-gallery--count-6 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 175px);
}

.hotel-gallery--count-6 .hotel-gallery__item--1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* ==================================================
   Content sections
================================================== */
.hotel-detail-section {
  padding: 72px 0;
}

.hotel-detail-section--soft {
  background: #eff8fd;
}

.hotel-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 54px;
  align-items: start;
}

.hotel-detail-heading span {
  color: var(--hotel-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hotel-detail-heading h2 {
  margin: 5px 0 16px;
  color: var(--hotel-navy);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.45;
}

.hotel-detail-summary p {
  margin: 0;
  color: var(--hotel-muted);
}

.hotel-detail-points {
  padding: 24px;
  border: 1px solid var(--hotel-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 52, 92, 0.07);
}

.hotel-detail-points strong {
  color: var(--hotel-navy);
  font-size: 15px;
}

.hotel-detail-points ul {
  margin: 13px 0 0;
  padding-left: 1.25em;
}

.hotel-detail-points li + li {
  margin-top: 7px;
}

/* ==================================================
   Hotel information
================================================== */
.hotel-detail-spec {
  overflow: hidden;
  margin: 26px 0 0;
  border: 1px solid var(--hotel-line);
  border-radius: 14px;
  background: #fff;
}

.hotel-detail-spec > div {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.hotel-detail-spec > div + div {
  border-top: 1px solid var(--hotel-line);
}

.hotel-detail-spec dt,
.hotel-detail-spec dd {
  margin: 0;
  padding: 18px 20px;
  font-size: 14px;
}

.hotel-detail-spec dt {
  color: var(--hotel-navy);
  background: #f4f9fc;
  font-weight: 800;
}

/* ==================================================
   Access
================================================== */
.hotel-detail-access {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 38px;
  align-items: center;
}

.hotel-detail-access iframe {
  width: 100%;
  height: 390px;
  border: 0;
  border-radius: 14px;
  background: var(--hotel-ice);
}

.hotel-detail-button {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 8px;
  color: #fff !important;
  background: var(--hotel-blue);
  font-weight: 800;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hotel-detail-button:hover {
  background: var(--hotel-navy);
  transform: translateY(-2px);
}

.hotel-detail-title__types {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.hotel-detail-title__types .hotel-detail-title__type {
  margin-bottom: 0;
}

/* ==================================================
   Smartphone
================================================== */
@media (max-width: 767px) {
  .hotel-detail-container {
    width: min(100% - 36px, 560px);
  }

  .hotel-detail-opening {
    padding: 45px 0 52px;
  }

  .hotel-detail-title h2 {
    font-size: 34px;
  }

  .hotel-gallery {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(3, 116px);
    border-radius: 14px;
  }

  .hotel-gallery__item--1 {
    grid-row: 1 / 3;
  }

  .hotel-gallery--count-4 .hotel-gallery__item--4 {
    grid-column: 1 / 3;
  }

  /* 5 images: first image full width + 2 columns × 2 rows */
  .hotel-gallery--count-5 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: 116px;
  }

  .hotel-gallery--count-5 .hotel-gallery__item--1 {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .hotel-gallery--count-5 .hotel-gallery__item--4,
  .hotel-gallery--count-5 .hotel-gallery__item--5 {
    grid-column: auto;
  }

  /* 6 images: 2 columns × 3 rows */
  .hotel-gallery--count-6 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: 116px;
  }

  .hotel-gallery--count-6 .hotel-gallery__item--1 {
    grid-column: auto;
    grid-row: auto;
  }

  .hotel-detail-section {
    padding: 52px 0;
  }

  .hotel-detail-summary,
  .hotel-detail-access {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hotel-detail-spec > div {
    grid-template-columns: 1fr;
  }

  .hotel-detail-spec dt {
    padding-bottom: 8px;
  }

  .hotel-detail-spec dd {
    padding-top: 0;
  }

  .hotel-detail-access iframe {
    height: 300px;
  }
}

/* ==================================================
   Reduced motion
================================================== */
@media (prefers-reduced-motion: reduce) {
  .hotel-gallery img,
  .hotel-detail-button {
    transition: none;
  }

  .hotel-gallery__item:hover img,
  .hotel-detail-button:hover {
    transform: none;
  }
}
