@charset "UTF-8";

/* ==========================================================================
   Space page（空間）
   Base: style.css（変数・共通パーツ）
   共通: css/lower.css（.c-lower-hero / .c-intro / .c-slider / .c-card-list / .c-spec）
   Figma: PC 709:29067（1440） / SP 709:28902（402）
   ブレイクポイントは下層共通に合わせ、769px 以上で PC レイアウト
   ========================================================================== */

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

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

/* ==========================================================================
   p-space-room（お部屋）
   写真幅は Figma の 960px を上限に、画面幅に合わせて縮む
   ========================================================================== */

.p-space-room {
  padding-top: 80px;
}

.p-space-room__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(362px, calc(100% - 40px));
  margin-inline: auto;
}

.p-space-room__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.p-space-room__note {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
}

.p-space-room__floors {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.p-space-room__floor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-top: 40px;
}

.p-space-room__name {
  font-size: var(--fs-heading-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-none);
  text-align: center;
}

.p-space-room__desc {
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  text-align: left;
}

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

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

  .p-space-room__inner {
    gap: 52px;
    width: min(960px, calc(100% - var(--container-gutter) * 2));
  }

  .p-space-room__head {
    gap: 28px;
  }

  .p-space-room__floors {
    gap: 72px;
  }

  .p-space-room__floor {
    gap: 32px;
    padding-top: 0;
  }

  .p-space-room__name {
    font-size: 1.5rem;
    line-height: 1;
  }

  .p-space-room__desc {
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    text-align: center;
  }
}

/* 1440以上：1440px幅のときの写真幅（960px）で固定し、画面中央に置く */
@media (min-width: 1440px) {
  .p-space-room__inner {
    width: 960px;
  }
}

/* ==========================================================================
   p-space-highlights（館内の見どころ）
   ========================================================================== */

.p-space-highlights {
  padding-top: 80px;
}

.p-space-highlights__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  width: min(322px, calc(100% - 80px));
  margin-inline: auto;
}

.p-space-highlights__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.p-space-highlights__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

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

.p-space-highlights__text {
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
}

/* 縦書き2列。Figma は別テキストの横並びで、列間は SP 8px */
.p-space-highlights__title .section-title__ja {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 8px;
  writing-mode: horizontal-tb;
  line-height: 1;
}

.p-space-highlights__title .section-title__col {
  writing-mode: vertical-rl;
  line-height: 1;
}

@media (min-width: 500px) and (max-width: 768px) {
  .p-space-highlights__inner {
    width: min(480px, calc(100% - 80px));
  }

  /* 共通カードの max-width: 356px を外し、リード文と同じ幅にする */
  .p-space-highlights .ingredients-card {
    max-width: none;
  }
}

@media (min-width: 769px) {
  .p-space-highlights {
    padding-top: 200px;
  }

  .p-space-highlights__inner {
    gap: 77px;
    width: min(1120px, calc(100% - var(--container-gutter) * 2));
  }

  .p-space-highlights__head {
    flex-direction: row;
    justify-content: center;
    gap: clamp(40px, 5.56vw, 80px);
    width: auto;
    max-width: 100%;
  }

  .p-space-highlights__title {
    flex-shrink: 0;
    gap: 16px;
  }

  .p-space-highlights__title .section-title__ja {
    gap: 12px;
  }

  .p-space-highlights__body {
    width: min(612px, 100%);
  }

  .p-space-highlights__lead {
    line-height: var(--lh-snug);
  }

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

/* ==========================================================================
   p-space-seasons（岩倉鉱泉の四季）
   ========================================================================== */

.p-space-seasons {
  padding-top: 80px;
}

.p-space-seasons__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(322px, calc(100% - 80px));
  margin-inline: auto;
}

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

.p-space-seasons__text {
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  text-align: left;
}

.p-space-seasons__list {
  display: grid;
  gap: 42px;
  width: 100%;
}

/* 見どころ .ingredients-card と同じ二重Flex。外側 gap 20px、本文側 gap 8px */
.p-space-season {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.p-space-season__media {
  margin: 0;
}

.p-space-season__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.p-space-season__img {
  display: block;
  width: 100%;
  aspect-ratio: 644 / 406;
  object-fit: cover;
}

.p-space-season__title {
  font-size: var(--fs-heading-sm);
  font-weight: var(--fw-medium);
  line-height: 1.8;
}

.p-space-season__text {
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
}

@media (min-width: 500px) and (max-width: 768px) {
  .p-space-seasons__inner {
    width: min(480px, calc(100% - 80px));
  }
}

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

  .p-space-seasons__inner {
    gap: 48px;
    width: min(1124px, calc(100% - var(--container-gutter) * 2));
  }

  .p-space-seasons__head {
    width: min(648px, 100%);
  }

  .p-space-seasons__text {
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    text-align: center;
  }

  .p-space-seasons__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }

  .p-space-season {
    gap: var(--space-16);
  }

  .p-space-season__body {
    gap: var(--space-4);
  }

  .p-space-season__img {
    aspect-ratio: 263 / 158;
  }

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

@media (min-width: 1025px) {
  .p-space-seasons__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   p-space-facility（施設概要）
   ========================================================================== */

.p-space-facility {
  padding: 80px 0 20px;
  /* 上端を画面上端に合わせ、直前セクションの本文を画面外へ送る */
  scroll-margin-top: 0;
}

/* スマホの固定ヘッダー（約86px）の下に、見出しが約50px空く位置で止める */
@media (max-width: 768px) {
  .p-space-facility:target {
    padding-top: 136px;
  }
}

.p-space-facility__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(362px, calc(100% - 40px));
  margin-inline: auto;
}

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

@media (min-width: 769px) {
  .p-space-facility {
    padding: 160px 0 0;
  }

  .p-space-facility__inner {
    gap: 48px;
    width: min(800px, calc(100% - var(--container-gutter) * 2));
  }
}

/* お食事開始時間。7:00 と 17:00 など、桁の違う時刻を縦に揃える */
.p-space-facility__meal-lead {
  margin: 0;
}

.p-space-facility__meal-times {
  display: grid;
  grid-template-columns: max-content repeat(3, max-content);
  justify-content: start;
  width: max-content;
  max-width: 100%;
  column-gap: 0;
}

.p-space-facility__meal-label {
  padding-right: 1em;
  white-space: nowrap;
}

.p-space-facility__meal-time {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ==========================================================================
   p-space-dryer（ドライヤー貸し出し）
   お風呂ページと同じ組み。クラスはページ固有にして影響を切り離す
   ========================================================================== */

.p-space-dryer {
  padding-top: 60px;
}

.p-space-dryer__inner {
  display: grid;
  grid-template-areas:
    "title"
    "media"
    "content";
  justify-items: center;
  width: min(322px, calc(100% - 80px));
  margin-inline: auto;
}

.p-space-dryer__copy {
  display: contents;
}

.p-space-dryer__title {
  grid-area: title;
  margin-bottom: 32px;
  font-size: var(--fs-heading-md);
  font-weight: var(--fw-medium);
  line-height: var(--lh-none);
  text-align: center;
}

.p-space-dryer__media {
  grid-area: media;
  width: min(250px, 100%);
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 50%;
}

.p-space-dryer__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.p-space-dryer__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.p-space-dryer__text {
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
}

@media (min-width: 500px) and (max-width: 768px) {
  .p-space-dryer__inner {
    width: min(480px, calc(100% - 80px));
  }
}

@media (min-width: 769px) {
  .p-space-dryer {
    padding-top: 80px;
  }

  .p-space-dryer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
    width: min(calc(100% - var(--container-gutter) * 2), 820px);
  }

  .p-space-dryer__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: min(549px, calc(100% - 252px));
    padding-left: 8px;
  }

  .p-space-dryer__title {
    margin-bottom: 0;
    text-align: left;
  }

  .p-space-dryer__media {
    flex-shrink: 0;
    width: 200px;
    margin: 0;
  }

  .p-space-dryer__content {
    align-items: flex-start;
    gap: 8px;
  }

  .p-space-dryer__text {
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    text-align: justify;
  }
}
