@charset "UTF-8";

/* ==========================================================================
   Stay page（ご宿泊）
   Base: style.css（変数・共通パーツ）
   共通: css/lower.css（.c-lower-hero / .c-intro）
   Figma: PC 709:29824（1440） / SP 709:30112（402） / 料金表 715:26372
   ブレイクポイントは下層共通に合わせ、769px 以上で PC レイアウト
   ========================================================================== */

/* 769〜999px だけ、イントロを「気兼ねすることなく、」のあとで改行する */
.p-stay-intro-br {
  display: none;
}

@media (min-width: 769px) and (max-width: 999px) {
  .p-stay-intro-br {
    display: inline;
  }
}

.p-stay {
  overflow-x: clip;
}

.p-stay > section {
  position: relative;
  isolation: isolate;
}

/* ==========================================================================
   p-stay-about（ご宿泊について）
   SP は見出し → 写真 → 本文。PC は本文列の右に写真を上下中央
   ========================================================================== */

.p-stay-about {
  padding-top: 80px;
}

.p-stay-about__inner {
  display: grid;
  grid-template-areas:
    "title"
    "media"
    "content";
  justify-items: center;
  row-gap: 24px;
  width: min(362px, calc(100% - 40px));
  margin-inline: auto;
}

.p-stay-about__title {
  grid-area: title;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 3px;
}

.p-stay-about__title .section-title__ja {
  font-size: 1.375rem;
  line-height: calc(1em + 8px);
}

.p-stay-about__media {
  grid-area: media;
  width: 100%;
  margin: 0;
}

.p-stay-about__img {
  width: 100%;
  height: auto;
}

.p-stay-about__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  width: 100%;
}

.p-stay-about__text {
  width: 100%;
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

@media (min-width: 500px) and (max-width: 768px) {
  .p-stay-about__inner {
    width: min(640px, calc(100% - 80px));
  }
}

@media (min-width: 769px) {
  .p-stay-about {
    padding-top: 160px;
  }

  .p-stay-about__inner {
    grid-template-columns: minmax(0, 486px) minmax(0, 1fr);
    grid-template-areas:
      "title media"
      "content media";
    align-items: start;
    justify-content: center;
    column-gap: clamp(40px, 5vw, 72px);
    row-gap: 44px;
    width: min(1440px, 100%);
    padding-left: clamp(40px, 11.11vw, 160px);
    padding-right: clamp(40px, 5.56vw, 80px);
  }

  .p-stay-about__title {
    justify-self: center;
    align-self: start;
    gap: 12px;
    margin-bottom: 0;
  }

  .p-stay-about__title .section-title__ja {
    font-size: 28px;
    line-height: calc(1em + 12px);
  }

  .p-stay-about__media {
    justify-self: end;
    align-self: center;
    max-width: 640px;
  }

  .p-stay-about__text {
    font-weight: var(--fw-regular);
  }
}

@media (min-width: 769px) and (max-width: 1288px) {
  .p-stay-about__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    padding-inline: var(--container-gutter);
  }
}

@media (min-width: 1440px) {
  .p-stay-about__inner {
    grid-template-columns: 486px 640px;
    column-gap: 72px;
    width: 1440px;
    padding: 0 80px 0 160px;
  }
}

/* ==========================================================================
   p-stay-fee（ご宿泊料金）
   ========================================================================== */

.p-stay-fee {
  padding-top: 80px;
}

.p-stay-fee__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: min(362px, calc(100% - 40px));
  margin-inline: auto;
}

.p-stay-fee__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.p-stay-fee__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.p-stay-fee__catch {
  font-size: var(--fs-heading-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
}

.p-stay-fee__text {
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

@media (max-width: 768px) {
  .p-stay-br {
    display: none;
  }

  .p-stay-child__text,
  .p-stay-notes {
    text-align: left;
  }
}

.p-stay-fee__detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  width: 100%;
}

.p-stay-rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.p-stay-fee__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 4px 30px;
  font-size: var(--fs-text-md);
  font-weight: var(--fw-medium);
  line-height: var(--lh-none);
  text-align: center;
  background-color: var(--color-bg-beige);
}

.p-stay-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.p-stay-child__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  text-align: center;
}

.p-stay-child__text {
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

.p-stay-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: 1.8;
  list-style: none;
}

.p-stay-notes__item {
  position: relative;
  padding-left: 10px;
}

.p-stay-notes__item::before {
  content: "";
  position: absolute;
  top: calc((1lh - 4px) / 2 + 1px);
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--color-text);
}

.p-stay-fee__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
  width: 100%;
}

.p-stay-fee__btn {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: 15px 17px;
}

@media (min-width: 500px) and (max-width: 768px) {
  .p-stay-fee__inner {
    width: min(640px, calc(100% - 80px));
  }
}

@media (min-width: 769px) {
  .p-stay-fee {
    padding-top: 160px;
  }

  .p-stay-fee__inner {
    gap: 80px;
    width: min(772px, calc(100% - var(--container-gutter) * 2));
  }

  .p-stay-fee__lead {
    align-self: center;
    gap: 40px;
    width: 100%;
    max-width: 651px;
    margin-inline: auto;
    text-align: center;
  }

  .p-stay-fee__copy {
    text-align: center;
  }

  .p-stay-fee__text,
  .p-stay-child__text {
    font-weight: var(--fw-regular);
  }

  .p-stay-fee__detail {
    gap: 80px;
  }

  .p-stay-child {
    gap: 32px;
  }

  .p-stay-child__head {
    max-width: 640px;
  }

  .p-stay-notes {
    gap: 10px;
    line-height: 2;
    text-align: justify;
  }

  .p-stay-fee__actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  .p-stay-fee__btn {
    width: min(360px, calc(50% - 8px));
    margin-inline: 0;
  }
}

@media (min-width: 1440px) {
  .p-stay-fee__inner {
    width: 772px;
  }
}

/* ==========================================================================
   p-stay-table（料金表）
   ご宿泊料金は SP で列幅 104 / 130 / 128 / 128px。はみ出したときだけ ScrollHint。
   お子様料金は幅いっぱいに折り返し、横スクロールさせない。
   ========================================================================== */

.p-stay-table {
  width: 100%;
}

.p-stay-table__wrapper {
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* バーの色は .c-scrollbar（css/lower.css）。
   バーは枠の下端に重なるため、下線との隙間 10px が残るよう 20px 空ける */
.p-stay-table__wrapper.js-scrollable {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
}

.p-stay-table__wrapper:focus-visible {
  outline: 1px solid var(--color-text);
  outline-offset: 2px;
}

.p-stay-table__wrapper--fit {
  overflow-x: visible;
}

.p-stay-table__table {
  width: max-content;
  min-width: 490px;
  border-collapse: collapse;
}

.p-stay-table__table th,
.p-stay-table__table td {
  box-sizing: border-box;
  min-height: 64px;
  border-bottom: 1px solid #afafaf;
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.p-stay-table__table :is(th, td):first-child {
  width: 104px;
  padding: 16px 20px;
  border-bottom-color: #5b5b5b;
}

.p-stay-table__table :is(th, td):nth-child(2) {
  width: 130px;
  padding: 16px 0 16px 40px;
}

.p-stay-table__table :is(th, td):nth-child(3) {
  width: 128px;
  padding: 16px 10px 16px 30px;
}

.p-stay-table__table :is(th, td):nth-child(4) {
  width: 128px;
  padding: 16px 10px;
}

@media (min-width: 570px) and (max-width: 768px) {
  .p-stay-fee .p-stay-table__wrapper.js-scrollable {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .p-stay-fee .p-stay-table__table:not(.p-stay-table__table--child) {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .p-stay-fee .p-stay-table__table:not(.p-stay-table__table--child) :is(th, td):nth-child(n + 2) {
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
  }

  .p-stay-table__table.p-stay-table__table--child {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .p-stay-table__table.p-stay-table__table--child :is(th, td) {
    width: auto;
    height: auto;
    white-space: normal;
    border-bottom-color: #afafaf;
  }

  .p-stay-table__table.p-stay-table__table--child th {
    width: 53%;
    padding: 16px 12px;
    text-align: left;
  }

  .p-stay-table__table.p-stay-table__table--child td {
    width: 47%;
    padding: 16px 4px 16px 16px;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .p-stay-table__table,
  .p-stay-table__table.p-stay-table__table--child {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .p-stay-table__table :is(th, td):nth-child(n),
  .p-stay-table__table.p-stay-table__table--child :is(th, td):nth-child(n) {
    width: auto;
    padding: 24px 16px;
    border-bottom-color: #afafaf;
    text-align: center;
    white-space: nowrap;
  }

  .p-stay-table__table thead th:first-child,
  .p-stay-table__table tbody th:first-child {
    text-align: left;
    padding-left: 40px;
  }

  /* ご宿泊料金のみ。表幅 772px に対し、左列 40+221+間隔31 = 292px、料金列は各 160px */
  .p-stay-fee .p-stay-table__table:not(.p-stay-table__table--child) {
    table-layout: fixed;
  }

  .p-stay-fee__col--guests {
    width: 37.8238%;
  }

  .p-stay-fee__col--price {
    width: 20.7254%;
  }

  .p-stay-fee .p-stay-table__table:not(.p-stay-table__table--child) :is(th, td):nth-child(1) {
    padding: 24px 0 24px 40px;
    text-align: left;
  }

  .p-stay-fee .p-stay-table__table:not(.p-stay-table__table--child) :is(th, td):nth-child(n + 2) {
    padding: 24px 0;
    text-align: center;
  }
}

/* お子様料金の表。ご宿泊料金の列幅には触れない */
@media (min-width: 500px) and (max-width: 768px) {
  .p-stay-child .p-stay-table {
    width: min(490px, 100%);
    margin-inline: auto;
  }

  .p-stay-child .p-stay-table__wrapper--fit,
  .p-stay-child .p-stay-table__table.p-stay-table__table--child {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  /* 右列は Figma の 171px。左列が残りを受け、表の右端に余白を残さない */
  .p-stay-child__col--label {
    width: calc(100% - 171px);
  }

  .p-stay-child__col--value {
    width: 171px;
  }

  .p-stay-child .p-stay-table__table.p-stay-table__table--child th:nth-child(1) {
    padding: 16px 16px 16px 20px;
    text-align: left;
  }

  .p-stay-child .p-stay-table__table.p-stay-table__table--child td:nth-child(2) {
    padding: 16px 16px 16px 24px;
    text-align: center;
    white-space: nowrap;
  }
}

@media (min-width: 769px) {
  .p-stay-child .p-stay-table {
    width: min(640px, 100%);
    margin-inline: auto;
  }

  .p-stay-child .p-stay-table__table.p-stay-table__table--child {
    width: 640px;
    max-width: 100%;
    margin-inline: auto;
    table-layout: fixed;
  }

  /* Figma PC: 右列は 160px で表の右端に揃える。左列が残りの幅を受ける */
  .p-stay-child__col--label {
    width: calc(100% - 160px);
  }

  .p-stay-child__col--value {
    width: 160px;
  }

  .p-stay-child .p-stay-table__table.p-stay-table__table--child th:nth-child(1) {
    padding: 24px 16px 24px 40px;
    text-align: left;
  }

  .p-stay-child .p-stay-table__table.p-stay-table__table--child td:nth-child(2) {
    padding: 24px 32px 24px 0px ;
    text-align: center;
  }
}

/* ScrollHint：Figma 2157:4620（黒 60%・角丸 8px・白アイコン・白文字 13px） */
.p-stay-fee .scroll-hint-icon {
  top: 50%;
  left: 50%;
  width: 160px;
  padding: 24px 0 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
}

.p-stay-fee .scroll-hint-icon-wrap.is-active .scroll-hint-icon {
  opacity: 1;
}

.p-stay-fee .scroll-hint-text {
  margin-top: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 33px;
  color: #fff;
}
