/* 左ナビの表示制御 */
@media screen and (min-width: 835px) {

  /* 一番上での表示状態 */
  body.top-position .sidebar .nav {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* ハンバーガーが開いている時は左ナビを非表示 */
  body.menu-open .sidebar .nav:not(.active) {
    display: none !important;
  }
}

/* PCビュー時のz-index調整 */
@media screen and (min-width: 835px) {
  body .nav.active {
    position: fixed !important;
    z-index: 999 !important;
  }

  body .main-visual {
    z-index: 1 !important;
  }

  body.menu-open .main-visual::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
  }
}

/* ハンバーガーメニュースタイル */
.hamburger-line {
  width: 30px !important;
  height: 10px !important;
  background-image: url("../image/hunb-sp-open.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
  position: relative !important;
}

/* PCビュー用のハンバーガー調整 */
@media screen and (min-width: 835px) {
  .hamburger-menu .hamburger-line {
    width: 44px !important;
  }

  .main-visual-pc .catchphrase {
    z-index: 5 !important;
  }

  .hamburger-menu.open+.nav.active~.main-visual .catchphrase,
  .hamburger-menu.visible+.nav.active~.main-visual .catchphrase {
    z-index: 5 !important;
  }
}

/* ハンバーガーの開閉アニメーション */
.hamburger-menu.open .hamburger-line:first-child {
  transform: translateY(7px) !important;
  opacity: 0.85 !important;
}

.hamburger-menu.open .hamburger-line:last-child {
  transform: translateY(-7px) !important;
  opacity: 0.85 !important;
}

/* タブレット・モバイル（834px以下） */
@media screen and (max-width: 834px) {
  .wrapper-716 {
    width: 90% !important;
    max-width: 716px !important;
    margin: 0 auto !important;
  }

  .container {
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
  }

  .sidebar {
    width: 100% !important;
    min-width: auto !important;
    height: 82px !important;
    flex-direction: row !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 50 !important;
  }

  .sidebar-inner {
    width: 90% !important;
    max-width: 834px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
  }

  .logo-container {
    flex-direction: row !important;
    width: auto !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .logo {
    max-width: 104px !important;
    width: 104px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .logo img.desktop-logo {
    display: none !important;
  }

  .logo img.sp-logo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .business-hours {
    display: none !important;
  }

  /* ハンバーガーメニュー */
  .hamburger-menu {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4.5px !important;
    z-index: 100 !important;
    cursor: pointer !important;
    width: 30px !important;
    height: 30px !important;
    position: fixed !important;
    top: 26px !important;
    right: 5% !important;
  }

  /* ナビゲーション */
  .nav {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 49 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    will-change: transform, opacity;
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
      opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  }

  .nav.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* ナビゲーションの閉じる遷移 */
  .nav.closing {
    display: block !important;
    opacity: 0 !important;
    transform: translateY(-30px) !important;
    pointer-events: none !important;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
      opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1) !important;
  }

  .nav::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("../image/background.jpg") !important;
    background-size: 70% !important;
    opacity: 0.95 !important;
    z-index: -1 !important;
  }

  .nav-content {
    position: relative !important;
    width: 100% !important;
    height: 98% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .nav-list {
    width: 90% !important;
    max-width: 716px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 30px !important;
    padding: 40px 0 !important;
  }

  /* メインビジュアル */
  .main-visual {
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  .main-visual-pc {
    width: 100% !important;
    height: 100% !important;
    padding-top: 82px !important;
    padding-bottom: 199px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .image-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    padding-left: 5% !important;
    padding-right: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: none !important;
  }

  .main-visual-pc .sp-info {
    display: block !important;
    text-align: right !important;
    position: absolute !important;
    bottom: 199px !important;
    right: 0px !important;
    width: auto !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 10px 15px !important;
    z-index: 10 !important;
  }

  .main-visual-pc .catchphrase {
    position: absolute !important;
    top: 23% !important;
    left: 52% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 150px !important;
    z-index: 10 !important;
  }

  .main-visual-pc .catchphrase img {
    width: 100% !important;
    height: auto !important;
  }

  /* スクロールアイコン */
  .scroll-icon {
    display: block !important;
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    z-index: 50 !important;
  }

  .scroll-icon p {
    font-family: "Poppins", sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    margin-bottom: 2px !important;
    color: #474646 !important;
    display: block !important;
  }

  .scroll-icon img {
    width: 4px !important;
    display: block !important;
    margin: 0 auto !important;
    animation: wave-draw 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
  }

  /* 波線描画アニメーション */
  @keyframes wave-draw {
    0% {
      clip-path: inset(0 0 100% 0);
      opacity: 0;
    }

    5% {
      opacity: 1;
    }

    20% {
      clip-path: inset(0 0 0 0);
      opacity: 1;
    }

    75% {
      clip-path: inset(0 0 0 0);
      opacity: 1;
    }

    95% {
      clip-path: inset(100% 0 0 0);
      opacity: 1;
    }

    100% {
      clip-path: inset(0 0 100% 0);
      opacity: 0;
    }
  }

  body>p {
    display: none !important;
  }

  /* ホームメニュー */
  .home-menu-item {
    display: block !important;
  }

  .home-menu-item img {
    max-height: 17px !important;
    width: auto !important;
  }

  /* SNSアイコン */
  .sns-icons {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 43.5px;
    margin-top: 0px;
    margin-bottom: 30px;
  }

  .sns-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 27px !important;
  }

  .sns-icon img {
    max-width: 100%;
    height: auto;
    display: block !important;
  }

  .sns-icon:nth-child(1) img {
    max-width: 27px;
  }

  .sns-icon:nth-child(2) img {
    max-width: 27px;
  }

  .sns-icon:nth-child(3) img {
    max-width: 22.5px;
    margin-top: 0 !important;
    vertical-align: middle !important;
  }

  .sns-icon:hover {
    transform: none;
  }

  .nav-item:nth-child(7) a.outlink:hover .outlink-icon {
    transform: none !important;
  }

  /* あみだ湯についてセクション - 834px以下 */
  .about-section {
    margin-top: 91vh;
    padding: 45px 0;
    position: relative;
  }

  /* 地図のラッパー幅調整 */
  .info-map-container .wrapper-1172 {
    width: 100%;
  }

  /* コンテナの調整 */
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 790px;
    margin: 0 auto;
    gap: 0;
  }

  /* 画像エリアのマージンリセット */
  .about-image {
    margin-left: 0;
  }

  /* コンテンツラッパーのマージンリセット */
  .about-content-wrapper {
    margin-right: 0;
  }

  /* JavaScriptで並び替えた後の要素のスタイル */
  .about-container>.about-title {
    order: 1;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
  }

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

  .about-container>.about-image {
    order: 3;
    width: 100%;
    max-width: 790px;
    margin-bottom: 20px;
  }

  .about-container>.about-text {
    order: 4;
    margin-bottom: 27px;
    text-align: center;
    width: 100%;
  }

  .about-container>.about-text p {
    font-size: 14px;
  }

  .about-container>.about-button {
    order: 5;
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }

  /* content-wrapperは不要になるため非表示 */
  .about-content-wrapper {
    display: contents;
  }

  /* ボタンホバー無効化 */
  .about-button a:hover {
    opacity: 1;
  }

  .about-button a:hover .button-arrow {
    animation: none;
  }

  /* 館内設備セクション - 834px以下 */
  .facility-section {
    padding: 45px 0;
  }

  /* 館内設備の各要素調整 */
  .facility-title {
    margin-bottom: 20px;
  }

  .facility-wave {
    margin-bottom: 25px;
  }

  .facility-image {
    margin-bottom: 20px;
  }

  .facility-text {
    margin-bottom: 27px;
    text-align: center;
  }

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

  /* 館内設備ボタンホバー無効化 */
  .facility-button a:hover {
    opacity: 1;
  }

  .facility-button a:hover .button-arrow {
    animation: none;
  }

  /* お知らせセクション - 834px以下 */
  .news-section {
    padding: 45px 0;
  }

  /* お知らせセクション本文 - 834px以下 */
  .news-text p {
    font-size: 14px;
  }

  /* 施設情報セクション - 834px以下 */
  .info-section {
    padding: 45px 0;
  }

  /* フォトギャラリーセクション - 834px以下 */
  .gallery-section {
    padding: 45px 0;
  }

  /* いろいろ募集中セクション - 834px以下 */
  .recruit-section {
    padding: 45px 0;
  }

  /* いろいろ募集中セクション本文 - 834px以下 */
  .recruit-text p {
    font-size: 14px;
  }

  /* 施設情報セクション本文 - 834px以下 */
  .info-data p {
    font-size: 14px;
  }

  .info-phone span {
    font-size: 14px;
  }

  /* フッター - 834px以下 */
  /* base.cssで管理 */
}

/* タブレット幅調整（744px～834px） */
@media screen and (min-width: 744px) and (max-width: 834px) {
  .main-visual-pc .catchphrase {
    top: 17% !important;
    left: 52% !important;
    max-width: 150px !important;
  }
}

/* モバイル（480px以下） */
@media screen and (max-width: 480px) {

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

  /* サイドバーインナーの幅調整 */
  .sidebar-inner {
    width: 87% !important;
  }

  /* ハンバーガーメニューの位置調整 */
  .hamburger-menu {
    right: 6.5% !important;
  }

  /* あみだ湯についてのコンテナ幅調整 */
  .about-container {
    width: 87%;
  }

  /* メインビジュアルの画像コンテナ調整 */
  .image-container {
    padding-left: 6.5% !important;
    padding-right: 0 !important;
  }

  .image-container img.desktop-image {
    display: none !important;
  }

  .image-container .sp-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .main-visual-pc .catchphrase {
    top: 16% !important;
    max-width: 120px !important;
  }

  /* あみだ湯についてセクション - SP */
  .about-section {
    margin-top: 89vh;
    padding: 50px 0 35px;
  }

  .about-container>.about-text {
    text-align: left;
    margin-bottom: 24px;
  }

  .about-container>.about-text p {
    margin-bottom: 15px;
  }

  .about-container>.about-text p:last-child {
    margin-bottom: 0;
  }

  /* SP時のみ改行を表示 */
  .sp-only {
    display: inline;
  }

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

  .about-container>.about-wave {
    margin-bottom: 16px;
  }

  /* PC画像を非表示 */
  .about-title .pc-image,
  .about-wave .pc-image {
    display: none;
  }

  /* SP画像を表示 */
  .about-title .sp-image,
  .about-wave .sp-image {
    display: block;
  }

  /* 館内設備のPC画像を非表示 */
  .facility-title .pc-image,
  .facility-wave .pc-image {
    display: none;
  }

  /* 館内設備のSP画像を表示 */
  .facility-title .sp-image,
  .facility-wave .sp-image {
    display: block;
    margin: 0 auto;
  }

  /* ボタンのスタイル */
  .about-button {
    max-width: 298px;
  }

  .about-button a {
    font-size: 16px;
    height: 59px;
  }

  /* 館内設備セクション - SP */
  .facility-section {
    padding: 35px 0;
  }

  .facility-text {
    text-align: left;
    margin-bottom: 24px;
  }

  .facility-text p {
    margin-bottom: 0;
  }

  .facility-title {
    margin-bottom: 13px;
  }

  .facility-wave {
    margin-bottom: 16px;
  }

  /* 館内設備ボタンのスタイル */
  .facility-button {
    max-width: 298px;
  }

  .facility-button a {
    font-size: 16px;
    height: 59px;
  }
}

/* iPhone SE調整（375x667） */
@media screen and (max-width: 375px) and (max-height: 667px) {
  .main-visual-pc .catchphrase {
    top: 14% !important;
    left: 53% !important;
    transform: translateX(-50%) scale(0.85) !important;
  }
}

@media screen and (max-width: 375px) and (max-height: 667px) and (max-aspect-ratio: 3/4) {
  .main-visual-pc .catchphrase {
    top: 16% !important;
  }
}

@media screen and (max-width: 375px) and (max-height: 700px) and (max-aspect-ratio: 3/4) {
  .main-visual-pc .catchphrase {
    top: 14% !important;
  }
}

/* 画面高さ調整 */
@media screen and (max-height: 768px) {
  .main-visual-pc .catchphrase {
    top: 5%;
    transform: scale(0.9);
    left: 42%;
  }
}

@media screen and (max-height: 712px) {
  .outlink-icon {
    width: 12px;
    height: auto;
  }

  .main-visual-pc .catchphrase {
    top: 3%;
    transform: scale(0.8);
    left: 41%;
  }
}

@media screen and (max-height: 500px) {
  .nav-list {
    gap: 10px;
  }

  .nav-item a img {
    transform: scale(0.7);
  }

  .outlink-icon {
    width: 10px;
    height: auto;
  }

  .main-visual-pc .catchphrase {
    top: 18%;
    max-width: 170px;
  }
}

@media screen and (max-height: 450px) {
  .nav-list {
    gap: 8px;
  }

  .nav-item a img {
    transform: scale(0.6);
  }

  .main-visual-pc .catchphrase {
    top: 15%;
    max-width: 150px;
  }
}

/* デスクトップ表示（835px以上） */
@media screen and (min-width: 835px) {
  .home-menu-item {
    display: none !important;
  }

  .logo img.sp-logo {
    display: none !important;
  }

  .logo img.desktop-logo {
    display: block !important;
  }

  .nav {
    display: flex !important;
    position: static !important;
    opacity: 1 !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
  }

  .sns-icons {
    display: none !important;
  }

  .sns-icon:hover {
    transform: translateY(-2px);
  }

  .nav-item:nth-child(7) a.outlink:hover .outlink-icon {
    transform: translateY(-1px) !important;
    transition: transform 0.3s ease !important;
  }
}

/* PCビューでスクロール時のハンバーガーメニュー */
@media screen and (min-width: 835px) {
  .hamburger-menu {
    opacity: 0;
    transform: translateY(-30px);
    visibility: hidden;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    cursor: pointer;
    width: 44px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4.5px;
  }

  .hamburger-menu.visible {
    animation: slideDownFade 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    display: flex !important;
  }

  /* 上からスライドインするアニメーション */
  @keyframes slideDownFade {
    0% {
      opacity: 0;
      transform: translateY(-35px);
      visibility: visible;
    }

    20% {
      opacity: 0.3;
    }

    100% {
      opacity: 1;
      transform: translateY(0);
      visibility: visible;
    }
  }

  /* PCスクロール時のナビゲーション */
  .hamburger-menu.visible+.nav,
  .hamburger-menu.open+.nav.active {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    background: transparent;
    z-index: 49;
  }

  .hamburger-menu.visible+.nav:not(.active) {
    opacity: 0;
    transform: translateY(-100px);
    visibility: hidden;
  }

  .hamburger-menu.visible+.nav.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1),
      opacity 1s cubic-bezier(0.19, 1, 0.22, 1),
      visibility 0s;
  }

  /* PCスクロール時のナビゲーションレイアウト */
  .hamburger-menu.visible+.nav .nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .hamburger-menu.visible+.nav .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 716px;
    margin: 0 auto;
    padding: 0;
    animation: fadeInContents 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  }

  .hamburger-menu.visible+.nav .home-menu-item {
    display: block !important;
  }

  /* ナビゲーションの閉じる遷移 */
  .hamburger-menu+.nav.closing {
    display: block !important;
    opacity: 0 !important;
    transform: translateY(-30px) !important;
    pointer-events: none !important;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
      opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1) !important;
  }

  /* コンテンツのフェードインアニメーション */
  @keyframes fadeInContents {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* PCビューでハンバーガーメニューがクリックされた場合のナビ表示 */
  .hamburger-menu.open+.nav {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: transparent !important;
    z-index: 49 !important;
  }

  /* active状態のナビゲーション */
  .nav.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .site-loaded .nav.active {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
      opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
  }

  /* PCビューでハンバーガーメニューが開いた時のナビ内コンテンツ */
  .hamburger-menu.open+.nav .nav-content {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .hamburger-menu.open+.nav .nav-list {
    width: 90% !important;
    max-width: 716px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 30px !important;
    animation: fadeInContents 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
  }

  .hamburger-menu.open+.nav .home-menu-item {
    display: block !important;
  }

  /* ナビゲーションホバーライン（PC専用） */
  .nav-item:not(.home-menu-item) {
    position: relative;
  }

  .nav-item:not(.home-menu-item) a {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    height: auto;
    min-height: 30px;
  }

  .nav-item:not(.home-menu-item) a::after {
    content: '';
    position: absolute;
    left: -0.5px;
    bottom: 5px;
    width: 100%;
    height: 5px;
    background-image: url('../image/navline.png');
    background-repeat: no-repeat;
    background-size: 0% 4.5px;
    background-position: 0% center;
    opacity: 0;
    transition: background-size 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
    will-change: background-size, opacity;
  }

  .nav-item:not(.home-menu-item) a:hover::after {
    background-size: 100% 4.5px;
    background-position: 0% center;
    opacity: 1;
  }

  /* ハンバーガーメニュー表示時のホバー最適化 */
  .hamburger-menu.visible+.nav.active .home-menu-item a,
  .hamburger-menu.open+.nav.active .home-menu-item a,
  .hamburger-menu.visible+.nav.active .nav-item a,
  .hamburger-menu.open+.nav.active .nav-item a {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    height: auto;
    min-height: 30px;
  }

  .hamburger-menu.visible+.nav.active .home-menu-item a::after,
  .hamburger-menu.open+.nav.active .home-menu-item a::after,
  .hamburger-menu.visible+.nav.active .nav-item a::after,
  .hamburger-menu.open+.nav.active .nav-item a::after {
    content: '';
    position: absolute;
    left: -0.5px;
    bottom: 5px;
    width: 100%;
    height: 5px;
    background-image: url('../image/navline.png');
    background-repeat: no-repeat;
    background-size: 0% 4.5px;
    background-position: 0% center;
    opacity: 0;
    transition: background-size 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
    will-change: background-size, opacity;
  }

  .hamburger-menu.visible+.nav.active .home-menu-item a:hover::after,
  .hamburger-menu.open+.nav.active .home-menu-item a:hover::after,
  .hamburger-menu.visible+.nav.active .nav-item a:hover::after,
  .hamburger-menu.open+.nav.active .nav-item a:hover::after {
    background-size: 100% 4.5px;
    background-position: 0% center;
    opacity: 1;
  }

  /* ナビゲーション背景共通設定 */
  .nav.active::before,
  .hamburger-menu.open+.nav::before,
  .hamburger-menu.visible+.nav.active::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("../image/background.jpg") !important;
    background-size: 70% !important;
    opacity: 0.95 !important;
    z-index: -1 !important;
    will-change: transform;
  }

  .nav.active {
    z-index: 90 !important;
  }

  .main-visual-pc .catchphrase {
    z-index: 5 !important;
  }

  /* PCビューでのナビゲーション内部要素のアニメーション */
  .site-loaded .hamburger-menu.open+.nav.active .nav-list,
  .site-loaded .hamburger-menu.visible+.nav.active .nav-list {
    animation: fadeInContents 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
  }

  /* SNSアイコン関連スタイル */
  .sns-icons {
    display: none !important;
  }

  .hamburger-menu.open+.nav .sns-icons,
  .hamburger-menu.visible+.nav.active .sns-icons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 43.5px !important;
    margin-top: 40px !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .hamburger-menu.open+.nav .sns-icon,
  .hamburger-menu.visible+.nav.active .sns-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 27px !important;
    background: none !important;
    position: relative !important;
  }

  .hamburger-menu.open+.nav .sns-icon img,
  .hamburger-menu.visible+.nav.active .sns-icon img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
  }

  .hamburger-menu.open+.nav .sns-icon:nth-child(1) img,
  .hamburger-menu.visible+.nav.active .sns-icon:nth-child(1) img,
  .hamburger-menu.open+.nav .sns-icon:nth-child(2) img,
  .hamburger-menu.visible+.nav.active .sns-icon:nth-child(2) img {
    width: 27px !important;
    height: auto !important;
  }

  .hamburger-menu.open+.nav .sns-icon:nth-child(3) img,
  .hamburger-menu.visible+.nav.active .sns-icon:nth-child(3) img {
    width: 22.5px !important;
    height: auto !important;
    margin-top: 0 !important;
    vertical-align: middle !important;
  }
}

/* PCビュー時の高さ調整 */
@media screen and (min-width: 835px) {
  .sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
}

/* 1345px以下のレイアウト変更 */
@media screen and (max-width: 1345px) and (min-width: 835px) {
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 790px;
    margin: 0 auto;
    gap: 0;
  }

  /* JavaScriptで並び替えた後の要素のスタイル */
  .about-container>.about-title {
    order: 1;
    padding-left: 0;
    padding-top: 0;
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
    width: 100%;
  }

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

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

  .about-container>.about-text {
    order: 4;
    padding-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
  }

  .about-container>.about-button {
    order: 5;
    padding-left: 0;
    margin-right: 0;
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }

  /* content-wrapperは不要になるため非表示 */
  .about-content-wrapper {
    display: contents;
  }
}




/* お知らせセクション - PC/タブレット（480px以上） */
@media screen and (min-width: 481px) {

  /* PC用カードを表示 */
  .sns-card.pc-card {
    display: flex;
  }

  /* SP用スライダーを非表示 */
  .sp-sns-swiper {
    display: none !important;
  }
}

/* お知らせセクション - タブレット（481px～834px） */
@media screen and (min-width: 481px) and (max-width: 834px) {
  .sns-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sns-card-embed,
  .sns-card-button {
    width: 100%;
    max-width: 312px;
  }

  .sns-card-embed {
    height: 400px;
    margin: 0 auto 30px;
  }

  /* Facebook/Instagram埋め込みの幅調整 */
  .fb-page,
  .fb_iframe_widget,
  .fb_iframe_widget span,
  .fb_iframe_widget iframe,
  .lightwidget-widget {
    width: 100% !important;
    max-width: 312px !important;
  }
}

/* お知らせセクション - SP（480px以下） */
@media screen and (max-width: 480px) {

  /* お知らせセクション - SP */
  .news-section {
    padding: 35px 0;
  }

  /* タイトル画像の切り替え */
  .news-title .pc-image {
    display: none;
  }

  .news-title .sp-image {
    display: block;
    margin: 0 auto;
  }

  /* 波線画像の切り替え */
  .news-wave .pc-image {
    display: none;
  }

  .news-wave .sp-image {
    display: block;
    margin: 0 auto;
  }

  /* タイトルの余白調整 */
  .news-title {
    margin-bottom: 13px;
  }

  /* 波線の余白調整 */
  .news-wave {
    margin-bottom: 8px;
  }

  /* 本文の調整 */
  .news-text {
    margin-bottom: 17px;
  }

  .news-text p {
    font-size: 14px;
    text-align: left;
  }

  /* PC用カードを非表示 */
  .sns-card.pc-card {
    display: none !important;
  }

  /* SP用スライダーを表示 */
  .sp-sns-swiper {
    display: block !important;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 40px;
  }

  /* Swiperコンテナの設定 */
  .sp-sns-swiper .swiper-wrapper {
    display: flex;
    width: 100%;
    padding-bottom: 15px;
  }

  /* スライドの設定 - 重要：幅を100%に */
  .sp-sns-swiper .swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
  }

  /* SNSカードのスタイル調整 */
  @media screen and (max-width: 480px) {
    .sp-sns-swiper .sns-card {
      width: 100%;
      max-width: none;
      height: auto;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      padding: 25px 34px 0px;
    }

    /* 480px時の特別調整 */
    @media screen and (min-width: 440px) {
      .sp-sns-swiper .sns-card {
        padding: 25px 20px 0px;
      }
    }
  }

  /* SNSカードアイコン - SP */
  .sp-sns-swiper .sns-card-icon {
    margin-bottom: 18px;
  }

  .sp-sns-swiper .sns-card-icon img {
    width: 31px;
    height: 31px;
  }

  /* SNSカード埋め込みエリア - SP */
  .sp-sns-swiper .sns-card-embed {
    margin: 0 auto 18px;
  }

  /* SNSカードボタン - SP */
  .sp-sns-swiper .sns-card-button {
    font-size: 16px;
    height: 59px;
  }

  /* ページネーションのスタイル */
  .sp-sns-pagination {
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center;
    line-height: 1;
    z-index: 10;
  }

  .sp-sns-pagination .swiper-pagination-bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #CDCDCD;
    opacity: 1;
    margin: 0 7px !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .sp-sns-pagination .swiper-pagination-bullet-active {
    background: #3D98C7;
  }

  /* Swiper固有のクラスにも対応 */
  .swiper-pagination-bullets {
    display: block !important;
  }

  .swiper-pagination-horizontal {
    bottom: auto !important;
    position: relative !important;
  }
}




/* タブレット（481px～834px）での施設情報ラベルサイズ調整 */
@media screen and (min-width: 481px) and (max-width: 834px) {
  .info-label {
    font-size: 16px;
  }

  .info-note {
    padding-left: 59px;
  }
}

/* 施設情報セクション - タブレット以下（700px以下） */
@media screen and (max-width: 700px) {

  /* 情報グループのパディング調整 */
  .info-group {
    padding: 20px 20px;
  }

  /* 情報行を縦並びに */
  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ラベルの調整 */
  .info-label {
    width: 100%;
    min-width: auto;
    margin-bottom: 10px;
    padding-left: 0;
  }

  /* データ部分の調整 */
  .info-data {
    width: 100%;
    padding-left: 0;
  }

  /* 注釈のインデント調整 */
  .info-note {
    padding-left: 59px;
  }
}

/* 施設情報セクション - SP（480px以下） */
@media screen and (max-width: 480px) {

  /* 施設情報セクション - SP */
  .info-section {
    padding: 15px 0 35px;
  }

  /* タイトル画像の切り替え */
  .info-title .pc-image {
    display: none;
  }

  .info-title .sp-image {
    display: inline-block;
  }

  /* タイトルの余白調整 */
  .info-title {
    margin-bottom: 13px;
  }

  /* 波線画像の切り替え */
  .info-wave .pc-image {
    display: none;
  }

  .info-wave .sp-image {
    display: inline-block;
  }

  /* 波線の余白調整 */
  .info-wave {
    margin-bottom: 13px;
  }

  /* 情報グループのパディング調整 */
  .info-group {
    padding: 15px 20px;
  }

  /* 最後の情報グループのパディング調整 */
  .info-group:last-child {
    padding-bottom: 20px;
  }

  /* フォントサイズの調整 */
  .info-label {
    font-size: 16px;
    margin-bottom: 7px;
  }

  .info-data p {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .info-note {
    font-size: 14px !important;
    padding-left: 59px;
  }

  .info-phone {
    gap: 3px;
  }

  .info-phone span {
    font-size: 14px;
  }

  /* スペース追加の調整 */
  .info-space {
    margin-top: 8px !important;
  }

  /* 地図の切り替え */
  .info-map-pc {
    display: none;
  }

  .info-map-sp {
    display: block;
  }

  /* 地図コンテナのマージン調整 */
  .info-map-container {
    margin-top: 70px;
  }
}

/* フォトギャラリー - タブレット（834px以下） */
@media screen and (max-width: 834px) {
  .gallery-container {
    gap: 30px;
  }

  .gallery-section .swiper-slide {
    width: 319px;
    margin-right: 11px;
  }

  .gallery-section .swiper-slide img {
    height: 197px;
  }
}

/* フォトギャラリー - SP（480px以下） */
@media screen and (max-width: 480px) {
  .gallery-section {
    padding: 35px 0;
  }

  .gallery-container {
    gap: 15px;
  }

  .gallery-section .swiper-slide {
    width: 157px;
    margin-right: 5px;
  }

  .gallery-section .swiper-slide img {
    height: 97px;
  }
}

/* いろいろ募集中セクション - タブレット（834px以下） */
@media screen and (max-width: 834px) {
  .recruit-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .recruit-image img {
    max-width: 332px;
    height: 100%;
  }
}

/* いろいろ募集中セクション - SP（480px以下） */
@media screen and (max-width: 480px) {

  /* セクションのパディング調整 */
  .recruit-section {
    padding: 35px 0;
  }

  /* コンテナを縦並びに */
  .recruit-container {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  /* content-wrapperは不要になるため非表示 */
  .recruit-content {
    display: contents;
  }

  /* JavaScriptで並び替えた後の要素のスタイル */
  .recruit-container>.recruit-title {
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 13px;
  }

  .recruit-container>.recruit-wave {
    order: 2;
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
    line-height: 0;
  }

  .recruit-container>.recruit-image {
    order: 3;
    margin-bottom: 24px;
  }

  .recruit-container>.recruit-text {
    order: 4;
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
  }

  .recruit-container>.recruit-button {
    order: 5;
    width: 100%;
    max-width: 298px;
    margin: 0 auto;
  }

  /* タイトル画像の切り替え */
  .recruit-title .pc-image {
    display: none;
  }

  .recruit-title .sp-image {
    display: inline-block;
    margin: 0 auto;
  }

  /* 波線画像の切り替え */
  .recruit-wave .pc-image {
    display: none;
  }

  .recruit-wave .sp-image {
    display: inline-block;
    margin: 0 auto;
  }

  /* 本文の調整 */
  .recruit-text p {
    margin-bottom: 10px;
  }

  .recruit-text p:last-child {
    margin-bottom: 0;
  }

  /* ボタンのスタイル */
  .recruit-button a {
    font-size: 16px;
    height: 59px;
  }

  /* 画像サイズは既に設定済み */
  .recruit-image img {
    width: 270px;
    height: 407px;
  }
}

/* タブレット表示（481px～834px）での波線画像対応 */
@media screen and (min-width: 481px) and (max-width: 834px) {

  /* 波線の親要素を相対配置に */
  .about-wave,
  .facility-wave,
  .news-wave,
  .info-wave,
  .recruit-wave {
    position: relative;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* PC画像を非表示 */
  .about-wave .pc-image,
  .facility-wave .pc-image,
  .news-wave .pc-image,
  .info-wave .pc-image,
  .recruit-wave .pc-image {
    opacity: 0;
    width: 50px;
    height: 12px;
  }

  /* 擬似要素でタブレット画像を表示 */
  .about-wave::after,
  .facility-wave::after,
  .news-wave::after,
  .info-wave::after,
  .recruit-wave::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 12px;
    background-image: url("../image/nami-red-tab.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
  }

  /* line-heightのリセット */
  .about-wave,
  .facility-wave,
  .news-wave,
  .info-wave,
  .recruit-wave {
    line-height: 1;
  }
}

/* タブレット（481px～834px）での余白調整 */
@media screen and (min-width: 481px) and (max-width: 834px) {

  /* あみだ湯についてセクション */
  .about-container>.about-wave {
    margin-bottom: 25px;
  }

  .about-text p {
    margin-bottom: 18px;
  }

  /* 館内設備セクション */
  .facility-wave {
    margin-bottom: 25px;
  }

  /* お知らせセクション */
  .news-title {
    margin-bottom: 20px;
  }

  .news-wave {
    margin-bottom: 15px;
  }

  /* 施設情報セクション */
  .info-title {
    margin-bottom: 20px;
  }

  .info-wave {
    margin-bottom: 27px;
  }

  /* いろいろ募集中セクション */
  .recruit-title {
    margin-bottom: 18px;
  }

  .recruit-wave {
    margin-bottom: 16px;
  }

  .recruit-text p {
    margin-bottom: 18px;
  }

  .recruit-text {
    margin-bottom: 28px;
  }
}