/* 下層ページのセクション共通スタイルを上書き */
body.sub-page section {
  margin-top: 0;
  padding: 0;
  background-color: transparent;
}

/* 下層ページのページタイトル */
body.sub-page .main-visual .page-title {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 522px;
  z-index: 10;
}

body.sub-page .main-visual .page-title img {
  width: 100%;
  height: auto;
}

/* 下層ページのロゴ位置 */
body.sub-page .logo-container {
  position: absolute;
  top: 83px;
  left: 105px;
  z-index: 20;
}

body.sub-page .logo-lower {
  max-width: 90px;
  width: 90px;
}

/* 館内図セクション */
body.sub-page .floor-map-section {
  padding: 34px 0 70px;
  position: relative;
  z-index: 1;
  margin-top: 0;
  background-color: transparent;
}

.floor-map-image {
  text-align: center;
}

.floor-map-image img {
  width: 100%;
  max-width: 971px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 大浴場セクション */
body.sub-page .daiyoku-section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
  overflow: hidden;
  background-color: transparent;
}

.daiyoku-container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 90%;
  margin: 0 auto;
  position: relative;
}

@media screen and (min-width: 1441px) {
  .daiyoku-container {
    width: calc(1440px * 0.9);
    margin-left: calc(72px + (100vw - 1440px) / 2);
    margin-right: calc(72px + (100vw - 1440px) / 2);
  }
}

.daiyoku-content-wrapper {
  width: 470px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 52px;
}

@media screen and (max-width: 1440px) {
  .daiyoku-content-wrapper {
    width: auto;
    flex: 1;
    min-width: 300px;
    flex-shrink: 1;
  }
}

.daiyoku-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.07em;
  color: #474646;
  margin-bottom: 15px;
}

.daiyoku-wave {
  margin-bottom: 19px;
}

.daiyoku-wave img {
  width: auto;
  height: auto;
  display: block;
}

.daiyoku-wave .sp-image {
  display: none;
}

.daiyoku-wave .tab-image {
  display: none;
}

.daiyoku-text {
  margin-bottom: 0;
}

.daiyoku-text p {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  color: #474646;
  margin-bottom: 0;
}

.daiyoku-image {
  flex-shrink: 0;
  width: 790px;
  min-width: 300px;
}

@media screen and (max-width: 1440px) {
  .daiyoku-image {
    margin-right: calc((100vw - 90vw) / -2);
  }
}

@media screen and (min-width: 1441px) {
  .daiyoku-image {
    margin-right: calc((1440px * 0.05) * -1);
  }
}

.daiyoku-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* サウナセクション */
body.sub-page .sauna-section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
  overflow: hidden;
  background-color: transparent;
}

.sauna-container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 90%;
  margin: 0 auto;
  position: relative;
}

@media screen and (min-width: 1441px) {
  .sauna-container {
    width: calc(1440px * 0.9);
    margin-left: calc(72px + (100vw - 1440px) / 2);
    margin-right: calc(72px + (100vw - 1440px) / 2);
  }
}

.sauna-image {
  flex-shrink: 0;
  width: 790px;
  min-width: 300px;
}

@media screen and (max-width: 1440px) {
  .sauna-image {
    margin-left: calc((100vw - 90vw) / -2);
  }
}

@media screen and (min-width: 1441px) {
  .sauna-image {
    margin-left: calc((1440px * 0.05) * -1);
  }
}

.sauna-image img {
  width: 100%;
  height: auto;
  display: block;
}

.sauna-content-wrapper {
  width: 470px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media screen and (max-width: 1440px) {
  .sauna-content-wrapper {
    margin-right: 52px;
  }
}

@media screen and (max-width: 1440px) {
  .sauna-content-wrapper {
    width: auto;
    flex: 1;
    min-width: 300px;
    flex-shrink: 1;
  }
}

.sauna-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.07em;
  color: #474646;
  margin-bottom: 15px;
}

.sauna-wave {
  margin-bottom: 19px;
}

.sauna-wave img {
  width: auto;
  height: auto;
  display: block;
}

.sauna-wave .sp-image {
  display: none;
}

.sauna-wave .tab-image {
  display: none;
}

.sauna-text {
  margin-bottom: 0;
}

.sauna-text p {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  color: #474646;
  margin-bottom: 0;
}

/* 水風呂セクション */
body.sub-page .mizuburo-section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
  overflow: hidden;
  background-color: transparent;
}

.mizuburo-container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 90%;
  margin: 0 auto;
  position: relative;
}

@media screen and (min-width: 1441px) {
  .mizuburo-container {
    width: calc(1440px * 0.9);
    margin-left: calc(72px + (100vw - 1440px) / 2);
    margin-right: calc(72px + (100vw - 1440px) / 2);
  }
}

.mizuburo-content-wrapper {
  width: 470px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 52px;
}

@media screen and (max-width: 1440px) {
  .mizuburo-content-wrapper {
    width: auto;
    flex: 1;
    min-width: 300px;
    flex-shrink: 1;
  }
}

.mizuburo-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.07em;
  color: #474646;
  margin-bottom: 15px;
}

.mizuburo-wave {
  margin-bottom: 19px;
}

.mizuburo-wave img {
  width: auto;
  height: auto;
  display: block;
}

.mizuburo-wave .sp-image {
  display: none;
}

.mizuburo-wave .tab-image {
  display: none;
}

.mizuburo-text {
  margin-bottom: 0;
}

.mizuburo-text p {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  color: #474646;
  margin-bottom: 0;
}

.mizuburo-image {
  flex-shrink: 0;
  width: 790px;
  min-width: 300px;
}

@media screen and (max-width: 1440px) {
  .mizuburo-image {
    margin-right: calc((100vw - 90vw) / -2);
  }
}

@media screen and (min-width: 1441px) {
  .mizuburo-image {
    margin-right: calc((1440px * 0.05) * -1);
  }
}

.mizuburo-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 展望風呂セクション */
body.sub-page .tenbou-section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
  overflow: hidden;
  background-color: transparent;
}

.tenbou-container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 90%;
  margin: 0 auto;
  position: relative;
}

@media screen and (min-width: 1441px) {
  .tenbou-container {
    width: calc(1440px * 0.9);
    margin-left: calc(72px + (100vw - 1440px) / 2);
    margin-right: calc(72px + (100vw - 1440px) / 2);
  }
}

.tenbou-image {
  flex-shrink: 0;
  width: 790px;
  min-width: 300px;
}

@media screen and (max-width: 1440px) {
  .tenbou-image {
    margin-left: calc((100vw - 90vw) / -2);
  }
}

@media screen and (min-width: 1441px) {
  .tenbou-image {
    margin-left: calc((1440px * 0.05) * -1);
  }
}

.tenbou-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tenbou-content-wrapper {
  width: 470px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media screen and (max-width: 1440px) {
  .tenbou-content-wrapper {
    margin-right: 52px;
  }
}

@media screen and (max-width: 1440px) {
  .tenbou-content-wrapper {
    width: auto;
    flex: 1;
    min-width: 300px;
    flex-shrink: 1;
  }
}

.tenbou-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.07em;
  color: #474646;
  margin-bottom: 15px;
}

.tenbou-wave {
  margin-bottom: 19px;
}

.tenbou-wave img {
  width: auto;
  height: auto;
  display: block;
}

.tenbou-wave .sp-image {
  display: none;
}

.tenbou-wave .tab-image {
  display: none;
}

.tenbou-text {
  margin-bottom: 0;
}

.tenbou-text p {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  color: #474646;
  margin-bottom: 0;
}

/* 休憩スペースセクション */
body.sub-page .kyukei-section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
  overflow: hidden;
  background-color: transparent;
}

.kyukei-container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 90%;
  margin: 0 auto;
  position: relative;
}

@media screen and (min-width: 1441px) {
  .kyukei-container {
    width: calc(1440px * 0.9);
    margin-left: calc(72px + (100vw - 1440px) / 2);
    margin-right: calc(72px + (100vw - 1440px) / 2);
  }
}

.kyukei-content-wrapper {
  width: 470px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 52px;
}

@media screen and (max-width: 1440px) {
  .kyukei-content-wrapper {
    width: auto;
    flex: 1;
    min-width: 300px;
    flex-shrink: 1;
  }
}

.kyukei-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.07em;
  color: #474646;
  margin-bottom: 15px;
}

.kyukei-wave {
  margin-bottom: 19px;
}

.kyukei-wave img {
  width: auto;
  height: auto;
  display: block;
}

.kyukei-wave .sp-image {
  display: none;
}

.kyukei-wave .tab-image {
  display: none;
}

.kyukei-text {
  margin-bottom: 0;
}

.kyukei-text p {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  color: #474646;
  margin-bottom: 0;
}

.kyukei-image {
  flex-shrink: 0;
  width: 790px;
  min-width: 300px;
}

@media screen and (max-width: 1440px) {
  .kyukei-image {
    margin-right: calc((100vw - 90vw) / -2);
  }
}

@media screen and (min-width: 1441px) {
  .kyukei-image {
    margin-right: calc((1440px * 0.05) * -1);
  }
}

.kyukei-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 1356px以下のレイアウト変更 */
@media screen and (max-width: 1356px) {

  /* 大浴場セクション */
  .daiyoku-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 790px;
    margin: 0 auto;
    gap: 0;
  }

  .daiyoku-container>.daiyoku-title {
    order: 1;
    margin-bottom: 19px;
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .daiyoku-container>.daiyoku-wave {
    order: 2;
    margin-bottom: 26px;
    display: flex;
    justify-content: center;
  }

  .daiyoku-container>.daiyoku-image {
    order: 3;
    width: 100%;
    max-width: 790px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 27px;
  }

  .daiyoku-container>.daiyoku-text {
    order: 4;
    margin-bottom: 0;
    text-align: left;
    width: 100%;
  }

  .daiyoku-content-wrapper {
    display: contents;
  }

  /* サウナセクション */
  .sauna-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 790px;
    margin: 0 auto;
    gap: 0;
  }

  .sauna-container>.sauna-title {
    order: 1;
    margin-bottom: 19px;
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .sauna-container>.sauna-wave {
    order: 2;
    margin-bottom: 26px;
    display: flex;
    justify-content: center;
  }

  .sauna-container>.sauna-image {
    order: 3;
    width: 100%;
    max-width: 790px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 27px;
  }

  .sauna-container>.sauna-text {
    order: 4;
    margin-bottom: 0;
    text-align: left;
    width: 100%;
  }

  .sauna-content-wrapper {
    display: contents;
  }

  /* 水風呂セクション */
  .mizuburo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 790px;
    margin: 0 auto;
    gap: 0;
  }

  .mizuburo-container>.mizuburo-title {
    order: 1;
    margin-bottom: 19px;
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .mizuburo-container>.mizuburo-wave {
    order: 2;
    margin-bottom: 26px;
    display: flex;
    justify-content: center;
  }

  .mizuburo-container>.mizuburo-image {
    order: 3;
    width: 100%;
    max-width: 790px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 27px;
  }

  .mizuburo-container>.mizuburo-text {
    order: 4;
    margin-bottom: 0;
    text-align: left;
    width: 100%;
  }

  .mizuburo-content-wrapper {
    display: contents;
  }

  /* 展望風呂セクション */
  .tenbou-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 790px;
    margin: 0 auto;
    gap: 0;
  }

  .tenbou-container>.tenbou-title {
    order: 1;
    margin-bottom: 19px;
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .tenbou-container>.tenbou-wave {
    order: 2;
    margin-bottom: 26px;
    display: flex;
    justify-content: center;
  }

  .tenbou-container>.tenbou-image {
    order: 3;
    width: 100%;
    max-width: 790px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 27px;
  }

  .tenbou-container>.tenbou-text {
    order: 4;
    margin-bottom: 0;
    text-align: left;
    width: 100%;
  }

  .tenbou-content-wrapper {
    display: contents;
  }

  /* 休憩スペースセクション */
  .kyukei-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 790px;
    margin: 0 auto;
    gap: 0;
  }

  .kyukei-container>.kyukei-title {
    order: 1;
    margin-bottom: 19px;
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .kyukei-container>.kyukei-wave {
    order: 2;
    margin-bottom: 26px;
    display: flex;
    justify-content: center;
  }

  .kyukei-container>.kyukei-image {
    order: 3;
    width: 100%;
    max-width: 790px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 27px;
  }

  .kyukei-container>.kyukei-text {
    order: 4;
    margin-bottom: 0;
    text-align: left;
    width: 100%;
  }

  .kyukei-content-wrapper {
    display: contents;
  }
}

/* タブレット（834px以下） */
@media screen and (max-width: 834px) {
  body.sub-page .main-visual .page-title {
    max-width: 220px;
    top: calc(50% - 110px);
    transform: translate(-50%, -50%);
  }

  body.sub-page .logo-container {
    position: static;
    top: auto;
    left: auto;
    z-index: 20;
    margin-top: 22px;
  }

  body.sub-page .logo-lower {
    max-width: 104px;
    width: 104px;
    height: auto;
  }

  body.sub-page .hamburger-menu {
    top: 25px !important;
    right: 5% !important;
    width: 34px !important;
  }

  body.sub-page section:first-of-type {
    margin-top: calc(100vh - 82px);
  }

  body.sub-page .floor-map-section {
    padding: 45px 0;
  }

  body.sub-page .daiyoku-section {
    padding: 45px 0;
  }

  body.sub-page .sauna-section {
    padding: 45px 0;
  }

  body.sub-page .mizuburo-section {
    padding: 45px 0;
  }

  body.sub-page .tenbou-section {
    padding: 45px 0;
  }

  body.sub-page .kyukei-section {
    padding: 45px 0;
  }

  .daiyoku-text p {
    font-size: 14px;
  }

  .sauna-text p {
    font-size: 14px;
  }

  .mizuburo-text p {
    font-size: 14px;
  }

  .tenbou-text p {
    font-size: 14px;
  }

  .kyukei-text p {
    font-size: 14px;
  }

  /* タイトルのサイズ調整 */
  .daiyoku-title,
  .sauna-title,
  .mizuburo-title,
  .tenbou-title,
  .kyukei-title {
    font-size: 36px;
  }

  /* タイトルの余白調整 */
  .daiyoku-container>.daiyoku-title {
    margin-bottom: 16px;
  }

  .sauna-container>.sauna-title {
    margin-bottom: 13px;
  }

  .mizuburo-container>.mizuburo-title {
    margin-bottom: 16px;
  }

  .tenbou-container>.tenbou-title {
    margin-bottom: 16px;
  }

  .kyukei-container>.kyukei-title {
    margin-bottom: 13px;
  }

  /* 赤波の余白調整 - 優先順位を高くする */
  body.sub-page .daiyoku-section .daiyoku-container>.daiyoku-wave {
    margin-bottom: 23px;
  }

  body.sub-page .sauna-section .sauna-container>.sauna-wave {
    margin-bottom: 23px;
  }

  body.sub-page .mizuburo-section .mizuburo-container>.mizuburo-wave {
    margin-bottom: 23px;
  }

  body.sub-page .tenbou-section .tenbou-container>.tenbou-wave {
    margin-bottom: 23px;
  }

  body.sub-page .kyukei-section .kyukei-container>.kyukei-wave {
    margin-bottom: 23px;
  }

  /* タブレット時の波線画像切り替え */
  @media screen and (min-width: 481px) and (max-width: 834px) {

    .daiyoku-wave .pc-image,
    .sauna-wave .pc-image,
    .mizuburo-wave .pc-image,
    .tenbou-wave .pc-image,
    .kyukei-wave .pc-image {
      display: none !important;
    }

    .daiyoku-wave .tab-image,
    .sauna-wave .tab-image,
    .mizuburo-wave .tab-image,
    .tenbou-wave .tab-image,
    .kyukei-wave .tab-image {
      display: block !important;
    }

    .daiyoku-wave .sp-image,
    .sauna-wave .sp-image,
    .mizuburo-wave .sp-image,
    .tenbou-wave .sp-image,
    .kyukei-wave .sp-image {
      display: none !important;
    }
  }

  /* 画像の余白調整 */
  .daiyoku-container>.daiyoku-image {
    margin-bottom: 20px;
  }

  .sauna-container>.sauna-image {
    margin-bottom: 20px;
  }

  .mizuburo-container>.mizuburo-image {
    margin-bottom: 20px;
  }

  .tenbou-container>.tenbou-image {
    margin-bottom: 20px;
  }

  .kyukei-container>.kyukei-image {
    margin-bottom: 20px;
  }
}

/* SP（480px以下） */
@media screen and (max-width: 550px) {
  body.sub-page .main-visual .page-title {
    width: 145px;
  }
}

@media screen and (max-width: 480px) {
  body.sub-page .main-visual .image-container {
    position: absolute !important;
    top: 0 !important;
    right: 6.5% !important;
    bottom: 200px !important;
    left: 6.5% !important;
    width: auto !important;
    height: auto !important;
    overflow: hidden !important;
    z-index: 5 !important;
  }

  body.sub-page .sidebar-inner {
    width: 87% !important;
  }

  body.sub-page .hamburger-menu {
    top: 25px !important;
    right: 6% !important;
    width: 34px !important;
  }

  body.sub-page .floor-map-section {
    padding: 20px 0;
  }

  body.sub-page .floor-map-section .wrapper-1172 {
    width: 100%;
  }

  /* ラップ幅の調整 */
  .wrapper-790,
  .wrapper-1172,
  .wrapper-1272 {
    width: 87%;
  }

  /* 各セクションのコンテナ幅調整 */
  .daiyoku-container,
  .sauna-container,
  .mizuburo-container,
  .tenbou-container,
  .kyukei-container {
    width: 87%;
  }

  /* 各セクションのpadding調整 */
  body.sub-page .daiyoku-section {
    padding: 35px 0;
  }

  body.sub-page .sauna-section {
    padding: 35px 0;
  }

  body.sub-page .mizuburo-section {
    padding: 35px 0;
  }

  body.sub-page .tenbou-section {
    padding: 35px 0;
  }

  body.sub-page .kyukei-section {
    padding: 35px 0;
  }

  /* タイトルのスタイル調整 */
  .daiyoku-title,
  .sauna-title,
  .mizuburo-title,
  .tenbou-title,
  .kyukei-title {
    font-size: clamp(18px, 5.33vw, 22px);
  }

  .daiyoku-container>.daiyoku-title,
  .sauna-container>.sauna-title,
  .mizuburo-container>.mizuburo-title,
  .tenbou-container>.tenbou-title,
  .kyukei-container>.kyukei-title {
    margin-bottom: 10px;
  }

  /* サウナと休憩スペースのタイトル余白を8pxに */
  .sauna-container>.sauna-title,
  .kyukei-container>.kyukei-title {
    margin-bottom: 8px;
  }

  /* 波線の調整 */
  body.sub-page .daiyoku-section .daiyoku-container>.daiyoku-wave {
    margin-bottom: 15px !important;
  }

  body.sub-page .sauna-section .sauna-container>.sauna-wave {
    margin-bottom: 15px !important;
  }

  body.sub-page .mizuburo-section .mizuburo-container>.mizuburo-wave {
    margin-bottom: 15px !important;
  }

  body.sub-page .tenbou-section .tenbou-container>.tenbou-wave {
    margin-bottom: 15px !important;
  }

  body.sub-page .kyukei-section .kyukei-container>.kyukei-wave {
    margin-bottom: 15px !important;
  }

  .daiyoku-wave .pc-image,
  .sauna-wave .pc-image,
  .mizuburo-wave .pc-image,
  .tenbou-wave .pc-image,
  .kyukei-wave .pc-image {
    display: none;
  }

  .daiyoku-wave .sp-image,
  .sauna-wave .sp-image,
  .mizuburo-wave .sp-image,
  .tenbou-wave .sp-image,
  .kyukei-wave .sp-image {
    display: block;
  }

  .daiyoku-wave .tab-image,
  .sauna-wave .tab-image,
  .mizuburo-wave .tab-image,
  .tenbou-wave .tab-image,
  .kyukei-wave .tab-image {
    display: none;
  }

  /* 本文のスタイル調整 */
  .daiyoku-text p,
  .sauna-text p,
  .mizuburo-text p,
  .tenbou-text p,
  .kyukei-text p {
    font-size: 14px;
  }
}