/* ========================================
   温泉ページ
======================================== */

#onsen {
  --onsen-brown: #4b3927;
  --onsen-gold: #8b8258;
  --onsen-bg: #f7f5ef;
  --onsen-text: #403a32;

  width: 100%;
  overflow: hidden;
  color: var(--onsen-text);
  background: var(--onsen-bg);
  font-size: 16px;
  line-height: 1.9;
}

#onsen *,
#onsen *::before,
#onsen *::after {
  box-sizing: border-box;
}

#onsen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#onsen h1,
#onsen h2 {
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* メインビジュアル */

#onsen .onsen-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  color: #fff;
  background: #392b1d;
}

#onsen .onsen-hero__image,
#onsen .onsen-hero__overlay {
  position: absolute;
  inset: 0;
}

#onsen .onsen-hero__image img {
  object-position: center 65%;
}

#onsen .onsen-hero__overlay {
  background: linear-gradient(90deg,
      rgba(31, 23, 15, 0.88) 0%,
      rgba(31, 23, 15, 0.68) 34%,
      rgba(31, 23, 15, 0.08) 72%,
      rgba(31, 23, 15, 0) 100%);
}

#onsen .onsen-hero__content {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: 620px;
  padding: 45px 0 45px 7%;
}

#onsen .onsen-eyebrow,
#onsen .onsen-heading__en {
  display: inline-block;
  color: var(--onsen-gold);
  font-size: 14px;
}

#onsen .onsen-hero .onsen-eyebrow {
  color: #d3c7a0;
  font-size: 16px;
}

#onsen .onsen-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(23px, 3vw, 39px);
  line-height: 1.65;
}

#onsen .onsen-hero__description {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #fff;
}

/* 各セクション共通 */

#onsen .onsen-section {
  position: relative;
  padding: 40px 0;
  background: var(--onsen-bg);
}

#onsen .onsen-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

#onsen .onsen-section__text {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 6%;
}

#onsen .onsen-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 3px;
}

#onsen .onsen-heading__number {
  color: var(--onsen-gold);
  font-size: 35px;
  line-height: 1.2;
}

#onsen .onsen-section h2 {
  margin-bottom: 15px;
  font-size: 26px;
  line-height: 1.65;
  text-align: start;
}

#onsen .onsen-section__text>p {
  line-height: 2.0;
  font-size: 16px
}

#onsen .onsen-section__image {
  aspect-ratio: 5 / 3;
  overflow: hidden;
}

#onsen .onsen-section__image img,
#onsen .onsen-time-gallery__item img {
  transition: transform 0.7s ease;
}

@media (hover: hover) {
  #onsen .onsen-section__image:hover img {
    transform: scale(1.025);
  }

  #onsen .onsen-time-gallery__item:hover img {
    transform: scale(1.025);
  }
}

/* 01 */

#onsen .onsen-section--01 .onsen-section__inner {
  grid-template-columns: 0.95fr 1.05fr;
}

/* 02 左に大きな写真、右にテキスト */

#onsen .onsen-section--02 .onsen-section__inner {
  grid-template-columns: 1.05fr 0.95fr;
}

#onsen .onsen-spec {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

#onsen .onsen-spec>div {
  display: grid;
  grid-template-columns: 65px 1fr;
  border-bottom: 1px solid #e0ddd3;
}

#onsen .onsen-spec dt,
#onsen .onsen-spec dd {
  margin: 0;
  padding: 7px 8px;
}

#onsen .onsen-spec dt {
  background: #e9e6db;
  text-align: center;
}

#onsen .onsen-note {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

/* 03 昼・夜ギャラリー */

#onsen .onsen-section--03 .onsen-section__inner {
  grid-template-columns: 0.8fr 1.2fr;
}

#onsen .onsen-time-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#onsen .onsen-time-gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}

#onsen .onsen-time-gallery__label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(248, 246, 239, 0.9);
  color: #484136;
  line-height: 1.4;
}

#onsen .onsen-time-gallery__label span {
  font-size: 16px;
}

#onsen .onsen-time-gallery__label small {
  font-size: 9px;
}

/* 04 */

#onsen .onsen-section--04 .onsen-section__inner {
  grid-template-columns: 0.95fr 1.05fr;
}

#onsen .onsen-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 160px;
  margin-top: 18px;
  padding: 9px 16px;
  border: 1px solid #a49a7c;
  border-radius: 30px;
  color: var(--onsen-text);
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  font-size: 15px;
}

#onsen .onsen-button:hover {
  background: var(--onsen-brown);
  color: #fff;
}

@media screen and (max-width: 1060px) {
  #onsen .onsen-section--03 .onsen-section__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  #onsen .onsen-time-gallery {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 8px;
  }
}

@media screen and (max-width: 896px) {
  #onsen .onsen-hero {
    min-height: 440px;
    align-items: flex-end;
  }

  #onsen .onsen-hero__overlay {
    background: linear-gradient(0deg,
        rgba(28, 22, 15, 0.9) 0%,
        rgba(28, 22, 15, 0.58) 48%,
        rgba(28, 22, 15, 0.08) 100%);
  }

  #onsen .onsen-hero__content {
    width: 100%;
    max-width: none;
    padding: 110px 18px 28px;
  }

  #onsen .onsen-hero h1 {
    font-size: 26px;
    line-height: 1.65;
  }

  #onsen .onsen-hero__description {
    font-size: 14px;
  }

  #onsen .onsen-section {
    padding: 24px 0;
  }

  #onsen .onsen-section__inner,
  #onsen .onsen-section--01 .onsen-section__inner,
  #onsen .onsen-section--02 .onsen-section__inner,
  #onsen .onsen-section--03 .onsen-section__inner,
  #onsen .onsen-section--04 .onsen-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* スマホではテキストを先、写真を後に表示 */
  #onsen .onsen-section--02 .onsen-section__image {
    order: 2;
  }

  #onsen .onsen-section--02 .onsen-section__text {
    order: 1;
  }

  #onsen .onsen-section__text {
    padding: 20px;
  }

  #onsen .onsen-section h2 {
    margin-bottom: 12px;
    font-size: 24px;
  }

  #onsen .onsen-button {
    margin-top: 14px;
  }
}