/* ========================================
   ONSEN / 温泉
   写真・ページ見出しは common.css で管理
======================================== */

/* 温泉紹介・写真 */

.onsen-page .facility-page-hero__photo img {
  object-position: center 65%;
}

.bath-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.bath-images {
  position: relative;
  min-height: 610px;
  margin-bottom: 0;
}

.bath-wide {
  width: 88%;
  height: 530px;
  object-fit: cover;
}

.bath-square {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(120px, 24vw, 300px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: clamp(5px, 0.7vw, 10px) solid var(--paper);
}

.image-stamp {
  position: absolute;
  top: -30px;
  right: 3%;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Yu Mincho", serif;
  line-height: 1.5;
  letter-spacing: .08em;
  transform: rotate(8deg);
}

.detail-list {
  list-style: none;
  margin: 0 0 35px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.detail-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--copper);
}

.detail-list span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #777;
  font-size: 11px;
}

.detail-list strong {
  color: var(--ink);
  font-size: 13px;
}

/* 料金・営業時間 */

.price-head {
  color: #888;
  font-size: 11px;
  text-align: right;
  padding-bottom: 10px;
}

.spring-details {
  padding-top: 40px;
}

.spring-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  margin-top: 42px;
}

/* 泉質紹介 */

.spring-profile {
  background: var(--ink);
  color: #fff;
  padding: 38px;
}

.spring-profile>p:first-child {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
}

.spring-profile dl {
  margin: 0;
}

.spring-profile dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 17px 0;
  border-top: 1px solid #ffffff2e;
}

.spring-profile dt {
  font-size: 10px;
  color: #ffffff8f;
}

.spring-profile dd {
  margin: 0;
  font-family: "Yu Mincho", serif;
  font-size: 16px;
}

.spring-profile .spring-note {
  line-height: 1.8;
  color: #ffffff99;
  margin: 18px 0 0;
}

/* お風呂案内 */

.bath-catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.bath-catalog article {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bath-catalog article:nth-child(2n) {
  border-right: 0;
}

.bath-catalog article:nth-child(n+3) {
  border-bottom: 0;
}

.bath-catalog span {
  position: absolute;
  right: 18px;
  top: 16px;
}

.bath-catalog h3 {
  margin: 0 0 8px;
  font-family: "Yu Mincho", serif;
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  padding-right: 32px;
}

.bath-catalog p {
  font-size: 13px;
  line-height: 1.8;
  color: #777;
  margin: 0;
}

.facility-section {
  padding-top: 30px;
}

/* 施設カード */

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  margin-top: 42px;
}

.facility-grid article {
  border-right: 1px solid var(--line);
}

.facility-grid article:last-child {
  border: 0;
}

.facility-grid span {
  font-size: 12px;
  color: var(--copper);
  letter-spacing: .12em;
}

.facility-grid h3 {
  font-family: "Yu Mincho", serif;
  font-weight: 500;
  font-size: clamp(18px, 4vw, 24px);
  margin: 18px 0 13px;
}

.facility-grid p {
  color: #777;
  line-height: 1.8;
  margin: 0;
}

.facility-note {
  text-align: right;
  color: #92938f;
  font-size: 12px;
  margin-top: 12px;
}

.lang-en .spring-profile dl div {
  grid-template-columns: 135px 1fr;
}

.lang-en .price-head {
  font-size: 9px;
}

/* ページカラー・温泉専用の調整 */

.onsen-page {
  --ink: #1c1b18;
  --paper: #fbfaf6;
  --copper: #963c2e;
  --gold: #ab9871;
  --line: #cbc6bc;
  background: #fbfaf6;
  color: #1c1b18;
}

.onsen-page .breadcrumb span {
  color: #963c2e;
}

.onsen-page .section-heading.compact {
  border-bottom-color: #39362f;
}

.onsen-page .section-heading.compact .eyebrow,
.onsen-page .eyebrow.dark {
  color: #963c2e;
}

.onsen-page .bath-wide,
.onsen-page .bath-square {
  filter: saturate(.76) contrast(.96);
}

.onsen-page .bath-square {
  border-color: #fbfaf6;
}

.onsen-page .image-stamp {
  width: 84px;
  height: 84px;
  border-radius: 3px;
  background: #963c2e;
  font-size: 12px;
  transform: rotate(-4deg);
}

.onsen-page .detail-list,
.onsen-page .detail-list li {
  border-color: #bdb7ac;
}

.onsen-page .detail-list li {
  color: #963c2e;
}

.onsen-page .spring-profile {
  background: #1d1c19;
}

.onsen-page .bath-catalog {
  border-color: #9c978d;
  background: #fff;
}

.onsen-page .bath-catalog article {
  border-color: #c8c2b8;
}

.onsen-page .price-card,
.onsen-page .hours-card {
  background: #fff;
  border-color: #aaa398;
  box-shadow: none;
}

.onsen-page .price-row,
.onsen-page .hours-block {
  border-color: #c8c2b8;
}

.onsen-page .facility-grid {
  background: #fff;
  border-color: #aaa398;
}

.onsen-page .facility-grid article {
  border-color: #c8c2b8;
}

.onsen-page .photo-gallery-grid figure {
  border: 1px solid #8e897f;
  background: #e6e1d7;
}

.onsen-page .button-copper {
  background: #963c2e;
  color: #fff;
}

.onsen-page footer {
  background: #11110f;
}

.onsen-page a:focus-visible,
.onsen-page summary:focus-visible {
  outline: 2px solid #963c2e;
  outline-offset: 3px;
}

.onsen-page {
  overflow-x: clip;
}

.onsen-page .bath-section {
  position: relative;
  isolation: isolate;
}

.onsen-page .bath-section:before {
  content: "湯";
  position: absolute;
  z-index: 0;
  top: 55px;
  right: 2%;
  color: #1c1b1809;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(190px, 24vw, 340px);
  line-height: 1;
  pointer-events: none;
}

.onsen-page .bath-images,
.onsen-page .bath-copy {
  position: relative;
  z-index: 1;
}

.onsen-page .bath-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 2.8vw, 45px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.onsen-page .bath-section {
  padding-top: 115px;
}

.onsen-page {
  background-color: #fbfaf6;
  background-image: url('../../images/onsen-seigaiha-white.webp');
  background-size: 430px auto;
  background-repeat: repeat;
}

.onsen-page .spring-grid {
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: stretch;
}

.onsen-page .spring-profile {
  padding: clamp(22px, 3vw, 34px);
  border-top: 4px solid #963c2e;
  box-shadow: 0 22px 48px #1c1b1821;
}

.spring-profile-head {
  padding-bottom: 18px;

}

.spring-profile-head p {
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .2em;
}

.spring-profile-head strong {
  display: block;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .04em;
}

.spring-profile-head span {
  display: block;
  margin-top: 12px;
  line-height: 1.7;
}

.onsen-page .spring-profile dl div {
  grid-template-columns: 105px 1fr;
  padding: 19px 0;
}

.onsen-page .spring-profile dt {
  letter-spacing: .06em;
}

.onsen-page .spring-profile dd {
  font-size: 18px;
  line-height: 1.6;
}

.onsen-page .spring-profile dl .spring-indications {
  grid-template-columns: 1fr;
  gap: 11px;
  padding: 25px 0 22px;
}

.onsen-page .spring-profile .spring-indications dt {
  font-weight: 700;
  letter-spacing: .13em;
}

.onsen-page .spring-profile .spring-indications dd {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.onsen-page .spring-profile .spring-note {
  margin-top: 23px;
}

.bath-catalog .sauna-card {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 19px;
  align-items: start;
  border-right: 0;
  border-top: 1px solid var(--line);
  background: #f3ece5;
}

.bath-catalog .sauna-card>svg {
  width: 28px;
  height: 28px;
  color: #963c2e;
}

.bath-catalog .sauna-card h3 {
  margin: 0 0 8px;
  color: #78392f;
  font-size: clamp(18px, 1.8vw, 22px);
}

.bath-catalog .sauna-card p {
  max-width: 620px;
}

.spring-profile-head p,
.spring-profile .spring-note {
  font-size: .8125rem;
}

.facility-grid p {
  font-size: .875rem;
}

.bath-catalog h3 {
  font-size: 1.5rem;
  line-height: 1.5;
  padding-right: 20px;
}

.bath-catalog span {
  color: #5c655a;
  font-size: .875rem;
}


.onsen-page .spring-profile dt,
.onsen-page .spring-profile .spring-indications dt {
  font-size: 1rem;
  color: #e8cf99;
}

.onsen-page .spring-profile .spring-indications dd,
.onsen-page .spring-profile .spring-note {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #f3f2e9;
}

.spring-profile-head span {
  font-size: 1rem;
  color: #e2e1d7;
}

.onsen-page .mia-detail-intro {
  background: #fffaf0;
}

.onsen-page .breadcrumb,
.onsen-page .breadcrumb a {
  color: #514534;
  text-shadow: none;
}

.bath-catalog article {
  padding: 18px 20px;
}

.facility-grid article {
  padding: 22px;
}

.bath-catalog .sauna-card {
  padding: 18px 20px;
}

.onsen-page .bath-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--copper);
  font-family: inherit;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  padding-top: 8px;
}

.onsen-page .bath-card-heading svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.onsen-page .hours-card>.hours-block:first-of-type {
  padding-top: 0;
}

.onsen-page .hours-card>.hours-block:first-of-type>strong {
  margin-top: 0;
}

.onsen-page .photo-gallery-description {
  margin: 20px 0 28px;
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.9;
}

.onsen-page .calendar-column {
  min-width: 0;
}

.onsen-page .calendar-column>.guide-caption {
  margin: 10px 0 0;
}

.onsen-page .visit-faq {
  margin-block: clamp(32px, 5vw, 64px);
}

.onsen-page .section-jumps.facility-jumps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-block: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.onsen-page .section-jumps.facility-jumps a {
  min-height: 50px;
  padding: 10px 16px;
  gap: 12px;
  background: #fbf7ed;
  color: #274b38;
  border: 1px solid #8da38c;
  border-radius: 6px;
  box-shadow: 0 3px 0 #d9dfd2;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 700;
  line-height: 1.5;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.onsen-page .section-jumps.facility-jumps a::after {
  content: "↓";
  flex-shrink: 0;
  font-size: 16px;
  color: #6a805f;
}

.onsen-page .section-jumps.facility-jumps a:hover {
  background: #edf2e6;
  border-color: #587552;
  box-shadow: 0 3px 0 #bdcbb4;
}

/* ご入浴にあたってのお願い */

.bath-rules {
  width: min(1148px, calc(100% - 44px));
  margin: 32px auto clamp(40px, 5vw, 64px);
}

.bath-rules .section-heading {
  margin-bottom: 24px;
}

.bath-rules__list {
  margin: 0;
}

.bath-rules__list>div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line, #d8d1c5);
}

.bath-rules__icon {
  display: block;
  justify-self: end;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.bath-rules__list dt {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
}

.bath-rules__list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

.bath-rules__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

.bath-rules__contact a {
  color: inherit;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

/* 適応症の開閉 */
.onsen-page .spring-profile .bath-indications-toggle {
  margin-top: 18px;
  border-top: 1px solid rgba(232, 207, 153, .35);
}

.onsen-page .spring-profile .bath-indications-toggle>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e8cf99;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.onsen-page .spring-profile .bath-indications-toggle>summary::-webkit-details-marker {
  display: none;
}

.onsen-page .spring-profile .bath-indications-toggle>summary::marker {
  content: "";
}

.onsen-page .spring-profile .bath-indications-toggle>summary:hover {
  color: #fff;
}

.onsen-page .spring-profile .bath-indications-toggle>summary:focus-visible {
  outline: 2px solid #e8cf99;
  outline-offset: 4px;
}

/* 右端の ＋／− */
.onsen-page .bath-indications-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.onsen-page .bath-indications-icon::before,
.onsen-page .bath-indications-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.onsen-page .bath-indications-icon::before {
  top: 7px;
  left: 1px;
  width: 14px;
  height: 2px;
}

.onsen-page .bath-indications-icon::after {
  top: 1px;
  left: 7px;
  width: 2px;
  height: 14px;
}

.onsen-page .bath-indications-toggle[open] .bath-indications-icon::after {
  display: none;
}

/* 開いた説明文 */
.onsen-page .spring-profile .bath-indications-content {
  margin: 0;
  padding: 2px 0 18px;
  color: #e2e1d7;
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

/* ========================================
   RESPONSIVE
   画面幅ごとにまとめて管理
======================================== */

@media (max-width: 900px) {

  .bath-images {
    min-height: 450px;
  }

  .bath-wide {
    height: 390px;
    width: 92%;
  }

  .bath-square {
    border-width: 7px;
  }

  .image-stamp {
    width: 85px;
    height: 85px;
    top: -22px;
    font-size: 12px;
  }

  .bath-catalog article,
  .bath-catalog article:nth-child(2n),
  .bath-catalog article:nth-child(n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bath-catalog article:last-child {
    border-bottom: 0;
  }

  .facility-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facility-grid article {
    border-bottom: 1px solid var(--line);
  }

  .facility-grid article:nth-child(2n) {
    border-right: 0;
  }

  .facility-grid article:nth-child(n+3) {
    border-bottom: 0;
  }

  .onsen-page .bath-section:before {
    top: 55px;
    right: -22px;
    font-size: 220px;
  }

  .onsen-page .bath-section {
    padding-top: 78px;
  }

  .onsen-page .spring-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }


  .bath-catalog .sauna-card {
    border-top: 0;
  }

  .onsen-page .spring-profile dl div {
    grid-template-columns: 104px 1fr;
  }

  .spring-grid {
    grid-template-columns: 1fr;
  }

  .bath-catalog {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {

  .bath-rules__list>div {
    grid-template-columns: minmax(0, 1fr) 52px;
    column-gap: 14px;
    row-gap: 6px;
    padding-block: 16px;
  }

  .bath-rules__list dt {
    grid-column: 1;
    grid-row: 1;
  }

  .bath-rules__list dd {
    grid-column: 1;
    grid-row: 2;
  }

  .bath-rules__icon {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: 52px;
    height: 52px;
  }

  .bath-catalog {
    grid-template-columns: 1fr;
  }

  .bath-catalog article {
    border-right: 0;
    border-bottom: 1px solid #c8c2b8;
  }

  .bath-catalog article:nth-child(n+3) {
    border-bottom: 1px solid #c8c2b8;
  }

  .bath-catalog article:last-child {
    border-bottom: 0;
  }

  /* 泉質カードの各行をコンパクトに */
  .onsen-page .spring-profile dl div {
    padding: 8px 0;
  }

  /* スマホでは内湯の見出しを強制改行しない */
  .bath-title-break {
    display: none;
  }


  .onsen-page .price-card,
  .onsen-page .hours-card {
    padding: 18px;
  }

  .onsen-page .card-title {
    gap: 12px;
    margin-bottom: 12px;
  }

  .onsen-page .price-head {
    padding-bottom: 8px;
  }

  .onsen-page .price-row {
    min-height: 64px;
  }

  .onsen-page .price-card .fine-print {
    margin: 16px 0 0;
  }

  .onsen-page .hours-block {
    padding: 10px 0;
  }

  .onsen-page .hours-block:first-child {
    padding-top: 0;
  }

  .onsen-page .closed-note {
    margin: 14px 0 0;
    gap: 10px;
  }

  .onsen-page .closed-note svg {
    flex-shrink: 0;
  }

  .onsen-page .facility-grid {
    margin-top: 24px;
  }

  .onsen-page .facility-grid article {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: baseline;
    gap: 8px 10px;
    padding: 18px;
  }

  .onsen-page .facility-grid article>span {
    grid-column: 1;
    grid-row: 1;
  }

  .onsen-page .facility-grid article>h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    line-height: 1.5;
  }

  .onsen-page .facility-grid article>p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .facility-note {
    text-align: left;
  }

  .onsen-page .section-jumps.facility-jumps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .onsen-page .section-jumps.facility-jumps a {
    padding: 12px 8px;
    gap: 6px;
    font-size: 13px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .bath-images {
    min-height: 300px;
    margin-bottom: 32px;
  }

  .bath-wide {
    height: 260px;
  }

  .bath-section {
    display: block;
  }

}

@media (max-width: 520px) {

  .facility-grid {
    grid-template-columns: 1fr;
  }

  .facility-grid article,
  .facility-grid article:nth-child(2n),
  .facility-grid article:nth-child(n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .facility-grid article:last-child {
    border-bottom: 0;
  }

  .spring-profile {
    padding: 28px 22px;
  }

  .lang-en .spring-profile dl div {
    grid-template-columns: 110px 1fr;
  }


  .spring-profile-head strong {
    font-size: 28px;
  }

  .onsen-page .spring-profile dd {
    font-size: 16px;
  }

  .bath-catalog .sauna-card {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .bath-catalog .sauna-card>svg {
    width: 24px;
    height: 24px;
  }

  .onsen-page .spring-profile dl div {
    grid-template-columns: 104px 1fr;
  }
}