/*
 * Hotel index
 * ツアー一覧部分は area.css / tour-card.css で管理します。
 */

:root {
  --hotel-navy: #07345c;
  --hotel-blue: #0879c9;
  --hotel-ice: #f1f7fb;
  --hotel-white: #fff;
  --hotel-ink: #172536;
  --hotel-muted: #607184;
  --hotel-line: #d5e3ed;
  --hotel-radius: 16px;
  --hotel-shadow: 0 10px 30px rgba(7, 52, 92, 0.09);
  --hotel-shadow-hover: 0 18px 42px rgba(7, 52, 92, 0.16);
}

/* ==================================================
   Base
================================================== */
.hotel-page-main,
.hotel-page-main *,
.hotel-page-main *::before,
.hotel-page-main *::after {
  box-sizing: border-box;
}

.hotel-page-main {
  color: var(--hotel-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

.hotel-container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

/* ==================================================
   Hero
================================================== */
.hotel-hero {
  position: relative;
  display: grid;
  min-height: 430px;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #174d70 var(--hotel-hero) center 48% / cover no-repeat;
}

.hotel-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 32, 54, 0.84) 0%,
      rgba(4, 42, 68, 0.57) 48%,
      rgba(4, 42, 68, 0.08) 82%
    ),
    linear-gradient(
      0deg,
      rgba(2, 28, 47, 0.52),
      transparent 56%
    );
}

.hotel-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 72px 62px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.26);
}

.hotel-hero__season {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hotel-hero__eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

/* rental / spa と同じ見出しタイポグラフィ */
.hotel-hero h2 {
  margin: 5px 0 12px;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.23;
  letter-spacing: -0.02em;
}

.hotel-hero__lead {
  max-width: 700px;
  margin: 0;
  font-size: 15px;
}

.hotel-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  text-shadow: none;
}

.hotel-hero__tags li {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--hotel-navy);
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 800;
}

/* ==================================================
   Hotel index heading
================================================== */
.hotel-index {
  padding: 72px 0 82px;
  background: var(--hotel-white);
}

.hotel-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.hotel-section-heading__num {
  flex: none;
  color: var(--hotel-blue);
  font: 800 2.2rem/1 Arial, sans-serif;
}

.hotel-section-heading p {
  margin: 0 0 3px;
  color: var(--hotel-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hotel-section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.45;
}

.hotel-section-copy {
  margin: 0 0 34px;
  color: var(--hotel-ink);
}

/* ==================================================
   Hotel grid / card
================================================== */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hotel-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hotel-line);
  border-radius: var(--hotel-radius);
  background: var(--hotel-white);
  box-shadow: var(--hotel-shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hotel-card:hover {
  border-color: #bfd7e5;
  box-shadow: var(--hotel-shadow-hover);
  transform: translateY(-4px);
}

/* ==================================================
   Card gallery
================================================== */
.hotel-card__gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 3px;
  height: 245px;
  overflow: hidden;
  background: var(--hotel-ice);
}

.hotel-card__image {
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.hotel-card__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hotel-card:hover .hotel-card__gallery img {
  transform: scale(1.035);
}

/* 1 image */
.hotel-card__gallery--count-1 {
  grid-template-columns: 1fr;
}

/* 2 images */
.hotel-card__gallery--count-2 {
  grid-template-columns: 1fr 1fr;
}

/* 3 images */
.hotel-card__gallery--count-3 {
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.hotel-card__gallery--count-3 .hotel-card__image--1 {
  grid-row: 1 / 3;
}

/* ==================================================
   Plan type labels
================================================== */
.hotel-card__types {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 28px);
}

.hotel-card__type {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 52, 92, 0.9);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

/* ==================================================
   Card content
================================================== */
.hotel-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
}

.hotel-card__lead {
  margin: 0 0 5px;
  color: var(--hotel-blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.hotel-card h3 {
  margin: 0 0 13px;
  color: var(--hotel-navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}

.hotel-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.hotel-card__features li {
  padding: 4px 9px;
  border-radius: 6px;
  color: #246181;
  background: #eaf6fb;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.hotel-card__description {
  flex: 1;
  margin: 0;
  color: var(--hotel-muted);
  font-size: 14px;
  line-height: 1.85;
}

.hotel-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  margin-top: 20px;
  padding: 11px 16px;
  border: 2px solid var(--hotel-blue);
  border-radius: 8px;
  color: var(--hotel-blue) !important;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.hotel-card__link:hover {
  color: #fff !important;
  background: var(--hotel-blue);
  transform: translateY(-2px);
}

.hotel-card__link span {
  font-size: 18px;
}

/* ==================================================
   Tablet / Smartphone
================================================== */
@media (max-width: 767px) {
  .hotel-container {
    width: min(100% - 36px, 560px);
  }

  .hotel-hero {
    min-height: 460px;
    background-position: 58% center;
  }

  .hotel-hero__overlay {
    background: linear-gradient(
      0deg,
      rgba(3, 32, 54, 0.9) 0%,
      rgba(4, 42, 68, 0.56) 62%,
      rgba(4, 42, 68, 0.1) 100%
    );
  }

  .hotel-hero__inner {
    padding-block: 72px 45px;
  }

  .hotel-hero h2 {
    font-size: 34px;
  }

  .hotel-index {
    padding: 52px 0 60px;
  }

  .hotel-section-heading {
    gap: 12px;
  }

  .hotel-section-heading__num {
    font-size: 1.65rem;
  }

  .hotel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hotel-card__gallery {
    height: 220px;
  }

  .hotel-card__body {
    padding: 21px 20px 22px;
  }

  .hotel-card h3 {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .hotel-card__gallery {
    height: 190px;
  }

  .hotel-hero__tags {
    gap: 6px;
  }

  .hotel-hero__tags li {
    padding: 5px 9px;
  }
}

/* ==================================================
   Reduced motion
================================================== */
@media (prefers-reduced-motion: reduce) {
  .hotel-card,
  .hotel-card__gallery img,
  .hotel-card__link {
    transition: none;
  }

  .hotel-card:hover,
  .hotel-card:hover .hotel-card__gallery img,
  .hotel-card__link:hover {
    transform: none;
  }
}
