@charset "utf-8";

/* ===================================================================
   Responsive Styles (for screen width 768px or less)
=================================================================== */

/* デフォルトではハンバーガーメニューとスマホ用ナビを非表示 */
.hamburger-menu,
.mobile-nav {
    display: none;
}


/* 画面幅が768px以下の場合に適用 */
@media screen and (max-width: 768px) {

    /* --- 基本レイアウトの調整 --- */
    #inner {
        width: 100%; /* 横幅を画面いっぱいに */
        padding: 0 15px; /* 左右に少し余白を持たせる */
        box-sizing: border-box; /* paddingを含めて幅を計算 */
    }

    #contents {
        padding-left: 0;
        padding-right: 0;
    }

    header {
        height: auto;
        padding: 10px 15px;
        position: relative; /* ハンバーガーメニュー配置の基準にする */
    }

    header .tel {
        float: none; /* 電話番号の回り込みを解除 */
        margin: 10px 0 0 0;
        text-align: center;
    }
    
    header h1 {
        text-align: center;
    }
    
    h1 img {
        margin: 0 auto;
    }

   header img{
    margin-bottom: 10px;
    display: block;
    align-items: center;
    margin-left: 8px;
   }

   header .tel{
    display: none;
   }

    /* --- PC用ナビゲーションを非表示 --- */
    nav {
        display: none;
    }

    /* --- ハンバーガーメニューボタンの表示とスタイル --- */
    .hamburger-menu {
        display: block; /* ボタンを表示 */
        position: absolute;
        top: 70px;
        right: 24px;
        z-index: 100;
        width: 40px;
        height: 40px;
        cursor: pointer;
        border: none;
        background-color: transparent;
        padding: 0;
    }

    .hamburger-menu span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #697432; /* サイトのキーカラーに合わせる */
        margin: 6px auto;
        transition: all 0.3s;
    }

    /* ハンバーガーメニューが開いたときの「×」印への変形 */
    .hamburger-menu.is-open span:nth-of-type(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger-menu.is-open span:nth-of-type(2) {
        opacity: 0;
    }
    .hamburger-menu.is-open span:nth-of-type(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- スマホ用ナビゲーションメニューのスタイル --- */
    .mobile-nav {
        /* is-openクラスが付いたときに表示される（JSで制御） */
        display: none;
        position: fixed; /* 画面に固定 */
        top: 0;
        left: 0;
        width: 80%;
        height: 70%;
        background-color: rgba(238, 235, 216, 0.966);
        z-index: 99;
        padding-top: 40px;
    }

    .mobile-nav ul {
        list-style: none;
        text-align: center;
    }

    .mobile-nav ul li {
        margin-bottom: 5px;
    }

    .mobile-nav ul li a {
        font-size: 18px;
        color: #4a541c;
        text-decoration: none;
        font-weight: bold;
    }

    /* is-openクラスが付いたら表示 */
    .mobile-nav.is-open {
        display: block;
    }

    /* --- 各コンテンツの調整 --- */
    .glayBox {
        width: 95%;
        padding: 20px 15px;
    }

    .bath,
    .room,
    .uc_left,
    .uc_right {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .room {
        padding: 20px;
    }

    /* メインビジュアルの画像を画面幅に合わせる */
    h2 img {
        width: 100%;
        height: auto;
    }

    /* フッターの調整 */
    .topback {
        display: none; /* スマホでは「ページの先頭へ」を非表示に */
    }
}

/* css/responsive.css */

@media screen and (max-width: 768px) {

    /* ↓ --- ここから追加 --- ↓ */
    /* 全ての要素が親要素の幅を超えないようにする */
    * {
        max-width: 100%;
        box-sizing: border-box; /* はみ出し防止の基本設定 */
    }

    /* 長い文字列がはみ出すのを防ぐ */
    p, li, th, td, div, span {
        word-wrap: break-word;
    }}
    /* ↑ --- ここまで追加 --- ↑ */


    /*文字のサイズ*/

    @media screen and (max-width:768px) {
  h3 img{
    width: 100%;
  }

  .uc_left{
    display: block;
    width: 100%;
  
  }

  .uc_left li{
   text-align: center;
  }

  .uc_left img{
   margin: auto;
  display: block;
  width: 80%;
  }

 .uc_right{
    display: block;
    width: 100%;
  
  }

  .uc_right li{
   text-align: center;
  }

  .uc_right p{
    text-align: center;
  }

  .uc_right img{
   margin: auto;
  display: block;
  width: 80%;
  }

  .topback {
    float: right;
    margin-right: 0px;
    margin-bottom: 10px;}

    .link-none a{
   color: inherit; /* 親要素の文字色（黒）を継承する */
    text-decoration: none; /* 下線を消す */
    pointer-events: none; /* クリックそのものを無効にする */
    cursor: default; /* マウスポインターが指の形に変わらないようにする */
}

.h3_sp{
    text-align: center;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
background-color: #4a541c;
margin-top: 18px;
margin-bottom: 24px;
font-family: 'Noto Serif JP';
line-height: 2.2rem;
padding: 10px;
}

h3 img{
display: none;
}

.uc_right .uc_right_pc{
display: none;
}

.uc_right .uc_right_sp{
    text-align: center;
    font-size: 1.2rem;
     margin-bottom:14px; 
    font-weight: bold; 
    font-family: 'Noto Serif JP';
}
.uc_right .uc_right_sp span{
    font-size: 1rem;
    font-weight: bold; 
}


}


  
     @media screen and (min-width:768px) {
        .h3_sp{
            display: none;
        }

       .uc_right .uc_right_sp{
            display: none;
        }

        .fr {
	float: right;
}
     }



    /*下層ページ*/

         @media screen and (max-width:768px) {
       #contents .fr  {
  float: none;
  display: block; /* 念のためブロック要素として扱う */
  margin-left: auto; /* もし中央に寄せたい場合 */
  margin-right: auto;
  max-width: 80%;
  overflow-wrap: break-word;


}

.fl{
     float: none;
  display: block; /* 念のためブロック要素として扱う */
  margin-left: auto; /* もし中央に寄せたい場合 */
  margin-right: auto;
  max-width: 80%;
  overflow-wrap: break-word;
}
        
  .mg-l20 {
     margin-left: 0 !important;
     margin-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
     }

     .mg-r20{
         margin-left: 0 !important;
     margin-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
     }

     .mg-t20{
        margin-top: 0 !important;
     }

     .mg-t05{
        text-align: center;
     }

 .onsen_img {
 height: 230px;
 width: auto;
 float: none;
 display: block;
 margin-left: auto;
 margin-right: auto;
 margin-bottom: 10px;
  object-fit: cover;
}

.onsen_content {
  /* ② 中のアイテムを水平方向の中央に配置 */
  justify-content: center;
}


     .onsen_content p{
        padding-left: 24px;
        padding-right: 24px;
        margin-bottom: 12px;
        
     }

          .bath p{
        padding-left: 24px;
        padding-right: 24px;
        margin-bottom: 12px;
        
     }

     h4{
        margin-left: 24px;
     }

   .onsen_flex{
    display: flex;
    flex-wrap: wrap; /* ← これが重要！ */
   }

   .onsen_flex img{
    height: 172px;
    margin: 10px;
   }

   .room{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
   }

         .price{
        padding-left: 18px;
        padding-right: 18px;
        
     }

     .table{
        width: 95%;

     }
/*
    div.slideshow span.image-wrapper{
        position: relative;
        
    }

    ul.thumbs{
        display: flex;
        margin-left: auto;
        margin-top: 50px;
        width: 90%;
    }

    div .navigation{
width: 90% !important;
    }

    div.caption
 {
    text-align: center;
    padding: 12px 12px 12px 0;
}
    */

    div .slideshow img{
width: 80%;
margin-left: 24px;
padding-left: 88px;
margin-top: 8px;
top: 20px;
    }

    .thumb{
        margin-left: 12px;
    
    }

    div .caption{
        margin-left: 88px;
        padding-left: 12px;
        margin-top: 8px;
    }

    .topback {
	margin-top:-124px;
	}

    #footer p{
      font-size: 0.8rem;    
      margin-left: 1px;
    }
         }
