/* =============================================
   温泉ページ専用CSS（onsen.css）
   ============================================= */


.onsen-page {
  padding-top: 0;
}

/* ヒーローの高さを570pxに変更 */
.onsen-hero {
  position: relative;
  width: 100%;
  height: 570px;
  overflow: hidden;
}
.onsen-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.onsen-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
}
.onsen-hero__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.3em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* onsenページのヘッダーを透明に */
.onsen-page ~ * .site-header,
body:has(.onsen-page) .site-header {
  background: transparent;
  box-shadow: none;
}

body:has(.onsen-page) .header-left,
body:has(.onsen-page) .header-right {
  background-color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
}


/* 料金グリッドのヘッダー下線を修正 */
.onsen-card__price-header {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  margin-bottom: 4px;
}

/* 入浴料金テーブル */
.onsen-card__price-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  text-align: center;
}
.onsen-card__price-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onsen-card__price-head {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #ffffff;
}
.onsen-card__price-val {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-align: left;
}
.onsen-card__price-val--center {
  text-align: center;
  margin-top: 8px;
}


/* ── ② イントロ ── */
.onsen-intro {
  padding: 64px 0 80px;
  background-color: #ffffff;
}
.onsen-intro__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.onsen-intro__heading {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.75;
  color: #0051a3;
  margin-bottom: 24px;
}
.onsen-intro__text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #4f4f4f;
  margin-bottom: 48px;
}

/* カード2つ */
.onsen-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}
.onsen-card {
  background-color: #0051a3;
  border-radius: 40px;
  padding: 28px 32px 32px;
  color: #ffffff;
  text-align: center;
}
.onsen-card__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 12px;
}
.onsen-card__divider {
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6' viewBox='0 0 40 6'%3E%3Cpath d='M0 3 Q5 0 10 3 Q15 6 20 3 Q25 0 30 3 Q35 6 40 3' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 6px;
  opacity: 0.6;
  margin-bottom: 20px;
}
.onsen-card__row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
}
.onsen-card__label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  min-width: 48px;
  text-align: left;
}
.onsen-card__value {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
}
.onsen-card__note {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 13px;
  opacity: 0.85;
  margin-top: 8px;
}
.onsen-card__price-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 8px 16px;
  align-items: center;
}
.onsen-card__price-header {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.onsen-card__price-label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
.onsen-card__price-value {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
}
.onsen-note {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #4f4f4f;
  text-align: right;
}

/* ── ③ What's HARI ONSEN? ── */
.onsen-whats {
  background-color: #ffffff;
  padding: 80px 0;
}
.onsen-whats__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* カード全体 */
.onsen-whats__card {
  background-color: #fbf9f6;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 369px 1fr;
  gap: 0 48px;
  position: relative;
  overflow: hidden;
  align-items: center;
}

/* 背景テキスト */
.onsen-whats__bg-text {
    position: absolute;
    top: 20px;
    right: 4px;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 58px;
    letter-spacing: 0.05em;
    color: #d8dde5;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* 画像ラッパー */
.onsen-whats__img-wrap {
  grid-row: 1 / 3;
  border-radius: 20px 0 0 20px; /* ← 左上・左下のみ角丸 */
  overflow: hidden;
  aspect-ratio: 3 / 4;
  height: 100%;
}

.onsen-whats__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストエリア */
.onsen-whats__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-top: 150px;
  padding-right: 48px;
}

.onsen-whats__heading {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.75;
  color: #0051a3;
  margin-bottom: 16px;
}
.onsen-whats__text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #4f4f4f;
}

/* SP対応 */
@media (max-width: 768px) {
.onsen-whats { padding: 32px 16px; background-color: #ffffff; }
  .onsen-whats__inner { padding: 0; }
  .onsen-whats__card {
    grid-template-columns: 1fr;
    border-radius: 40px 40px 0 0;
    background-color: #fbf9f6;
    padding: 0 0 28px 0;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  .onsen-whats__img-wrap {
    grid-row: auto;
    aspect-ratio: 4/3;
    height: auto;
    border-radius: 40px 40px 0 0;
    width: 100%;
  }
  .onsen-whats__bg-text {
    position: relative;
    top: auto;
    right: auto;
    font-size: 34px;
    color: #d8dde5;
    white-space: normal;
    padding: 16px 20px 0;
    line-height: 1.2;
    text-align: left;
  }
  .onsen-whats__body {
    padding: 12px 20px 0;
    gap: 10px;
  }
  .onsen-whats__heading {
    font-size: 23px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #0051a3;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
    .onsen-whats__heading br {
    display: none;
  }
  .onsen-whats__text { font-size: 13px; }
}

/* ── ④ ONSEN GUIDE ── */
.onsen-guide {
  padding: 80px 0;
  background-color: #ffffff;
}
.onsen-guide__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.onsen-guide__header {
  text-align: center;
  margin-bottom: 24px;
}
.onsen-guide__title {
  font-family: 'Dela Gothic One', sans-serif;
  font-weight: normal;
  font-size: 62px;
  line-height: 1.73;
  letter-spacing: 0.1em;
  color: #0051a3;
}
.onsen-guide__subtitle {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #4f4f4f;
}
.onsen-guide__text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #4f4f4f;
  text-align: center;
  margin-bottom: 48px;
}

/* スライダー全体 */
.onsen-slider {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.onsen-slider__track-wrap {
  overflow: hidden;
  flex: 1;
}
.onsen-slider__track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 16px;
  align-items: center;
}

/* 各アイテム：通常は小さく */
.onsen-slider__item {
  flex: 0 0 26%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: flex 0.4s ease, opacity 0.4s ease;
  opacity: 0.7;
}

/* 中央アイテムは大きく */
.onsen-slider__item.is-active {
  flex: 0 0 44%;
  opacity: 1;
  z-index: 1;
}

.onsen-slider__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.onsen-slider__caption {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #4f4f4f;
  text-align: center;
}

/* 矢印ボタン */
.onsen-slider__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #0051a3;
  background-color: #ffffff;
  color: #0051a3;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  z-index: 2;
}
.onsen-slider__btn:hover {
  background-color: #0051a3;
  color: #ffffff;
}

/* インジケーター */
.onsen-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.onsen-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #c0c0c0;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}
.onsen-slider__dot.active {
  background-color: #0051a3;
}


/* SPスライダー */
@media (max-width: 768px) {
  .onsen-slider {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .onsen-slider__btn {
    display: none !important;
  }
  .onsen-slider__track-wrap {
    display: contents !important;
  }
  .onsen-slider__track {
    display: contents !important;
  }
  .onsen-slider__item,
  .onsen-slider__item.is-active {
    flex: none !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .onsen-slider__img {
    width: 100% !important;
    aspect-ratio: 4/3 !important;
    border-radius: 8px !important;
    height: auto !important;
  }
  .onsen-slider__caption {
    font-size: 12px !important;
    text-align: center !important;
  }
  .onsen-slider__dots {
    display: none !important;
  }
}

/* ── ⑤ 温泉データ ── */
.onsen-data {
  padding: 80px 0 40px;
  background-color: #ffffff;
}
.onsen-data__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 40px;
  background-color: #ffffff;
  border-radius: 40px;
  border: 1px solid #0051a3;
}
.onsen-data__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #0051a3;
  text-align: center;
  margin-bottom: 32px;
}
.onsen-data__table {
  width: 100%;
  border-collapse: collapse;
}
.onsen-data__table th,
.onsen-data__table td {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #4f4f4f;
  padding: 12px 16px;
  vertical-align: top;
  text-align: left;
}
.onsen-data__table th {
  font-weight: 700;
  color: #4f4f4f;
  width: 100px;
  white-space: nowrap;
}
.onsen-data__table tr:last-child th,
.onsen-data__table tr:last-child td {
  border-bottom: none;
}

/* ── ⑥ 注意事項 ── */
.onsen-caution {
  padding: 40px 0 80px;
  background-color: #ffffff;
}
.onsen-caution__inner {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 40px;
  border: 1px solid #0051a3;
  overflow: hidden;
}

/* 青帯タイトル */
.onsen-caution__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #ffffff;
  background-color: #0051a3;
  padding: 16px 64px;
  margin-bottom: 0;
}

/* リスト本体 */
.onsen-caution__body {
  padding: 28px 32px;
}
.onsen-caution__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.onsen-caution__list li {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #4f4f4f;
  padding-left: 1em;
  position: relative;
}
.onsen-caution__list li::before {
  content: '・';
  position: absolute;
  left: 0;
}
.onsen-caution__sub {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #4f4f4f;
  margin-bottom: 10px;
}

/* SP対応 */
@media (max-width: 768px) {
  .onsen-data__inner { padding: 28px 20px; }
  .onsen-caution__body { padding: 20px 16px; }
}
/* =============================================
   onsen.css SP追加対応
   ============================================= */
@media (max-width: 768px) {
  .onsen-hero { height: 220px; }
  .onsen-hero__title { font-size: 26px; }
  
  .onsen-intro { padding: 40px 0 56px; }
  .onsen-intro__inner { padding: 0 16px; }
  .onsen-intro__heading { font-size: 18px; line-height: 1.6; }
  .onsen-intro__text { font-size: 14px; margin-bottom: 32px; }
  
  .onsen-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 12px;
  }
  .onsen-card { border-radius: 20px; padding: 24px 20px; }
  .onsen-card__title { font-size: 17px; }
  .onsen-card__label { font-size: 14px; }
  .onsen-card__value { font-size: 14px; }
  .onsen-card__note { font-size: 12px; }
  .onsen-card__price-table {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .onsen-card__price-head { font-size: 12px; }
  .onsen-card__price-val { font-size: 13px; }
  .onsen-note { font-size: 12px; text-align: left; }
  
/* whats section */
  .onsen-whats { padding: 32px 16px; background-color: #ffffff; }
  .onsen-whats__inner { padding: 0; }
  .onsen-whats__card {
    grid-template-columns: 1fr;
    border-radius: 40px 40px 0 0;
    background-color: #fbf9f6;
    padding: 0 0 28px 0;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
  }
  .onsen-whats__img-wrap {
    order: 1;
    grid-row: auto;
    aspect-ratio: 4/3;
    height: auto;
    border-radius: 40px 40px 0 0;
    width: 100%;
  }
  .onsen-whats__bg-text {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    font-size: 34px;
    color: #d8dde5;
    white-space: normal;
    padding: 16px 20px 0;
    line-height: 1.2;
    text-align: left;
  }
  .onsen-whats__body {
    order: 3;
    padding: 12px 20px 0;
    gap: 10px;
  }
  .onsen-whats__heading {
    font-size: 23px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #0051a3;
  }
  .onsen-whats__text { font-size: 13px; }
  
  /* guide section */
  .onsen-guide { padding: 40px 0 48px; }
  .onsen-guide__inner { padding: 0 16px; }
  .onsen-guide__title { font-size: 36px; }
  .onsen-guide__subtitle { font-size: 14px; }
  .onsen-guide__text { font-size: 13px; text-align: left; margin-bottom: 24px; }
  
  /* data section */
  .onsen-data { padding: 48px 0 28px; }
  .onsen-data__inner { margin: 0 16px; padding: 20px 16px; border-radius: 20px; }
  .onsen-data__title { font-size: 17px; margin-bottom: 20px; }
  .onsen-data__table th,
  .onsen-data__table td { font-size: 13px; padding: 8px 10px; }
  .onsen-data__table th { width: 72px; }
  
  /* caution section */
  .onsen-caution { padding: 24px 0 60px; }
  .onsen-caution__inner { margin: 0 16px; }
  .onsen-caution__title { font-size: 16px; padding: 12px 20px; }
  .onsen-caution__body { padding: 20px 16px; }
  .onsen-caution__list li { font-size: 13px; }
  .onsen-caution__sub { font-size: 13px; }
}
