.wrapper{
width:100%;
margin:auto;
}

.whole{
background-color:#ffffee;
}


/*ここからヘッダー*/
.wrap{
width:90%;
margin:auto;
}

.header{
margin:auto;
width:80%;
display:flex;
align-items:flex-start;
}

.header a {
transition:all 0.3s ease;
display:inline-block;
text-decoration:none;
color:#333;
}

.header a:hover{
transform: translateY(-4px);
filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}


.logo{
margin-right:20px;
}

.header-content{
display: flex;
}

.address{
text-align:center;
font-size:15px;
font-weight:bold;
padding-top:15px;
}

.left-column,
.right-column{
display:flex;
flex-direction:column;
padding:30px;
}

.header img{
max-width:100%;
height:auto;
}


nav ul{
display:flex;
list-style:none;
padding:0;
margin:0;
width:90%;
margin:auto;
}


nav li{
width:16.6%;
text-align:center;
font-size:16px;
cursor:pointer;
padding:0;
border-right:1px #333 solid;
position:relative;
}

nav li a{
display:block;
width:100%;
height:100%;
padding:5px 0;
text-decoration:none;
color:#333;
transition:all 0.3s ease;
}

nav li a:hover{
font-weight:bold;
transform:translateY(-4px);
}

.home{
border-left:1px #333 solid;
}

/*ここまでヘッダー*/

/*ここからタイトル*/

.title{
color:#fff;
font-size:50px;
text-align:center;
background-color:#16be7d;
padding:30px;
margin-top:30px;
}
/*ここまでタイトル*/











/*ここからボタン*/

.page-top, .page-top1{
position:fixed;
display:block;
width:60px;
height:80px;
right:-80px;
opacity:0;
visibility:hidden;
transition:0.2s;
z-index:1000;
}

.page-top img,
.page-top1 img{
width:100%;
height:auto;
display:block;
}

.page-top1{
bottom:420px;
z-index:1001;
}

.page-top{
bottom:200px;
z-index:1000;
}

.is-active{
opacity:1;
visibility:visible;
}

.page-top.is-active,
.page-top1.is-active{
right:-2px;
}

.page-top:hover,
.page-top1:hover{
transform:translateY(-5px);
transition:transform 0.3s ease, box-shadow 0.3s ease;
}


/*ここまでボタン*/
.all{
background-color:#FFFFee;
}

/*ここから動画*/
.topvideo{
margin:auto 0;
width:100%;
}

.video{
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  height: auto;
  padding: 100px;
}

.main-video{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

.text{
font-size:25px;
padding:100px;
width:700px;
line-height: 1.3;
}

.flex-box {
display: flex;          /* 横並びにする */
align-items: center;    /* 高さを中央揃え */
margin:200px 0;
padding:100px 50px;
background-image: url(../image/green.jpg);
}


.flex-box .maru img {
  width: 500px;            /* アイコンの大きさ調整（必要に応じて変更） */
  height: auto;
}


/*ここまで動画*/












/*ここから施術紹介*/
.icon-title{
text-align:center;
font-size:50px;
}

.icon-row {
display:flex;
padding:50px 0;
gap:10px;
justify-content:center;
align-items:center;
margin:20px 200px 150px 200px;
}

.icon-row img {
width:150px;  
height:auto;
}


/*ここからキャンペーン*/
.text2{
text-align:center;
padding:100px 0 30px 0;
font-size:40px;
}

.info-section{
padding-bottom: 200px;
}
/* ===== お知らせボックス ===== */
.info-box{
  width: min(90%, 900px);
  margin: 0 auto;
  max-height: 260px;         /* ←ここで高さを固定 */
  overflow-y: auto;          /* ←中でスクロール */
  border: 2px solid #ddd;
  border-radius: 12px;
  background: #fff;
  padding: 20px 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.info-item + .info-item{
  border-top: 1px dashed #e3e3e3;
  margin-top: 14px;
  padding-top: 14px;
}

.info-title{
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;           /* クリックできる見た目 */
  display: inline-block;
  transition: transform .2s ease, filter .2s ease;
}
.info-title:hover,
.info-title:focus{
  transform: translateY(-1px);
  filter: brightness(105%);
  outline: none;
  text-decoration: underline;
}

.info-desc{
  margin-top: 6px;
  color: #444;
  font-size: clamp(14px, 2vw, 16px);
}

/* ===== モーダル ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;           /* 非表示が初期 */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.is-open{ display: flex; }

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.modal__body{
  position: relative;
  max-width: min(92vw, 880px);
  max-height: 88vh;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  overflow: auto;           /* 画像が大きい時でも中でスクロール */
}

.modal__close{
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
}

#modalImage{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal__caption{
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  text-align: center;
}
/*ここまでキャンペーン*/


/* 背景を全幅に広げる枠 */
.info-reels {
  width: 100%;
  background-image: url("../image/green.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0; /* 好みで調整 */
}

/* 中身を中央に寄せるラッパー（PC用幅） */
.info-reels-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.info-reels-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #0F7F60;
  padding-top:80px;
}

/* 2本のリールを横に並べる（PC） */
.info-reels .reel-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

/* 各リールのサイズ（PC） */
.info-reels .reel-item {
  flex: 1 1 50%;
  max-width: 420px;
  margin: 0 auto;
}

/* Instagram埋め込み本体の幅調整 */
.info-reels .instagram-media {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
}


/*ここからfooter*/

.foot{
background-color:#eee;
padding-top:10px;
padding-bottom:10px;
}

.bottom1{
text-align:center;
padding-top:10px;
padding-bottom:20px;
}

.bottom1 a{
transition:all 0.3s ease;
display:inline-block;
}

.bottom1 a:hover{
transform:translateY(-4px);
filter:drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.last{
display:flex;
width:80%;
margin:auto;
}

.left-items{
display:flex;
flex-direction:column;
width:50%;
text-align:center;
gap:20px;
padding-top:40px;
}

.right-items{
display:flex;
flex-direction:column;
width:50%;
text-align:center;
gap:30px;
padding-bottom:50px;
}

.bottom-address{
font-size:25px;
}

.last a{
transition:all 0.3s ease;
display:inline-block;
text-decoration:none;
color:#333;
}

.last a:hover{
transform:translateY(-4px);
filter:drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.foot-nav{
padding:20px 0;
width:80%;
margin:auto;
}

.foot-nav ul{
display:flex;
list-style:none;
justify-content:center;
padding:0;
margin:0;
}

.foot-nav li a{
text-decoration:none;
color:#333;
transition:all 0.3s ease;
}

.foot-nav li a:hover{
font-weight:bold;
transform:translateY(-4px);
}

.leg{
text-align:center;
font-weight:normal;
padding-top:10px;
padding-bottom:10px;
}

/*ここまでfooter*/

/* ===== アイコンホバー効果 ===== */

/* 通常状態 */
.icon-row a img {
  transition: all 0.4s ease;
  filter: brightness(100%);
}

/* マウスホバー時：少し暗くする＋拡大＋影 */
.icon-row a:hover img {
  filter: brightness(110%) saturate(110%);
  transform: scale(1.05);
  
}

/* スマホでも自然な動き */
@media (max-width: 768px) {
  .icon-row a:hover img {
    transform: none;
    box-shadow: none;
  }
}
/* ===== スクロール出現アニメーション ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease, transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}



/* ================================
   ▼ toki.css と同じ設定で上書き
   （ヘッダー／ハンバーガー／フッター／サイドボタン）
   ================================ */

/* PC 共通ヘッダー */
.wrap {
  width: 90%;
  margin: auto;
}

.header {
  margin: auto;
  width: 80%;
  display: flex;
  align-items: flex-start;
}

.header a {
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  color: #333;
}

.header a:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.logo {
  margin-right: 20px;
}

.header-content {
  display: flex;
}

.address {
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  padding-top: 15px;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.header img {
  max-width: 100%;
  height: auto;
}

/* PC ナビ */
nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 90%;
  margin: auto;
}

nav li {
  width: 16.6%;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  border-right: 1px #333 solid;
  position: relative;
}

nav li a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px 0;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

nav li a:hover {
  font-weight: bold;
  transform: translateY(-4px);
}

.home {
  border-left: 1px #333 solid;
}




/* サイドボタン（PC 共通） */
.page-top,
.page-top1 {
  position: fixed;
  display: block;
  width: 60px;
  height: 80px;
  right: -80px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 1000;
}

.page-top img,
.page-top1 img {
  width: 100%;
  height: auto;
  display: block;
}

.page-top1 {
  bottom: 420px;
  z-index: 1001;
}

.page-top {
  bottom: 200px;
  z-index: 1000;
}

.is-active {
  opacity: 1;
  visibility: visible;
}

.page-top.is-active,
.page-top1.is-active {
  right: -2px;
}

.page-top:hover,
.page-top1:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* フッター（PC 共通） */
.foot {
  background-color: #eee;
  padding-top: 10px;
  padding-bottom: 10px;
}

.bottom1 {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 20px;
}

.bottom1 a {
  transition: all 0.3s ease;
  display: inline-block;
}

.bottom1 a:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.last {
  display: flex;
  width: 80%;
  margin: auto;
}

.left-items {
  display: flex;
  flex-direction: column;
  width: 50%;
  text-align: center;
  gap: 20px;
  padding-top: 40px;
}

.right-items {
  display: flex;
  flex-direction: column;
  width: 50%;
  text-align: center;
  gap: 30px;
  padding-bottom: 50px;
}

.bottom-address {
  font-size: 25px;
}

.last a {
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  color: #333;
}

.last a:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.foot-nav {
  padding: 20px 0;
  width: 80%;
  margin: auto;
}

.foot-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.foot-nav li a {
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.foot-nav li a:hover {
  font-weight: bold;
  transform: translateY(-4px);
}

.leg {
  text-align: center;
  font-weight: normal;
  padding-top: 10px;
  padding-bottom: 10px;
}









/* ================================
   施術案内：iPad/タブレット幅は 2列×3段（スマホは触らない）
   ※横向き iPad(1194px) も対象にする
   ================================ */
@media screen and (min-width: 769px) and (max-width: 1366px) {

  /* 枠線を消す（この幅のとき確実に） */
  .icon-row{
    border: none !important;
    border-radius: 0 !important;

    /* 2列グリッドで6個並べる */
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;

    /* 位置と余白（お好みで微調整OK） */
    width: min(900px, 92%);
    margin: 60px auto 120px;
    padding: 0;
  }

  /* 中の2つの箱は“存在しない扱い”にして、a要素を直接グリッドに参加させる */
  .icon-row1,
  .icon-row2{
    display: contents;
  }

  /* クリック領域を整える */
  .icon-row a{
    display: flex;
    justify-content: center;
  }

  /* アイコンサイズ（お好みで 120〜150px で調整） */
  .icon-row img{
    width: 140px;
    height: auto;
    max-width: 100%;
  }
}











/* ----------------------------------------------------
     モバイルレイアウト（768px 以下）
   ---------------------------------------------------- */
@media screen and (max-width: 768px) {

  /* 全体 */
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .wrapper, .whole, .wrap {
    width: 100%;
    margin: 0 auto;
  }

  /* ===== 固定ヘッダー ===== */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .whole { margin-top: 70px; }

  .logo img {
    height: 70px;
    width: auto;
  }

  /* PC メニューは非表示 */
  nav, .header-content {
    display: none;
  }

  /* ===== ハンバーガーメニュー ===== */
  .hamburger {
    display: block;
    width: 40px;
    height: 28px;
    cursor: pointer;
  }
  .hamburger span {
    display: block;
    height: 3px;
    background: #16be7d;
    margin: 6px 0;
    border-radius: 2px;
    transition: 0.3s;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* ===== 開閉されるモバイルメニュー ===== */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    padding: 10px 0 20px;

    /* アニメーション（上からスライド） */
    transform: translateY(-20%);
    opacity: 0;
    transition: 0.6s ease-out;
  }
  .mobile-menu.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
  }

  /* ===== メニュー項目（HOME〜ご予約） ===== */
  .mobile-menu .menu-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
  }
  .mobile-menu .menu-links li {
    border-top: 1px solid #b4d9c7;
    opacity: 0;
    transform: translateY(-12px);
    transition: 0.45s ease-out;
  }
  .mobile-menu .menu-links li:last-child {
    border-bottom: 1px solid #b4d9c7;
  }
  .mobile-menu.show .menu-links li {
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-menu .menu-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    background: #e3f6ec;
    color: #0f6f45;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
  }

  /* ===== メニューフッター（電話・住所・診療時間） ===== */
  .mobile-menu .menu-footer {
    text-align: center;
    padding-bottom: 0;
  }

  .mobile-menu .menu-tel img {
    width: 180px;
    margin-top: 10px;
  }
  .mobile-menu .menu-address {
    font-size: 13px;
    margin-top: 10px;
    font-weight: bold;
    line-height: 1.6;
    padding: 0 20px;
  }
  .mobile-menu .menu-time img {
    width: 300px;
    margin: 15px auto 0;
  }

  /* ===== ページタイトル ===== */
  .title {
    font-size: 28px;
    text-align: center;
    margin-top: 70px;
    padding: 16px 10px;
    background-color: #16be7d;
    color: #fff;
  }

  /* ===== 動画（横幅100%＋余白20px） ===== */
  .video, .topvideo {
    width: 100% !important;
    margin: 0;
    padding: 10px 0 20px 0 !important;
  }
  .video video, .topvideo video {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    display: block;
  }

  /* ===== 下のブロック（flex-box） ===== */
  .flex-box {
    display: flex;
    flex-direction: column;     /* 縦並び */
    align-items: center;        /* 中身を中央寄せ */
    justify-content: center;
    margin: 0;
    padding: 20px 16px;         /* スマホ向けにコンパクトな余白 */
    background-size: cover;
    background-position: center;
  }

  .flex-box .maru img {
    width: 100%;                 /* 画面幅の 8割くらいに */
    max-width: 900px;           /* それ以上大きくならないよう制限 */
    height: auto;
    display: block;
    margin: 40px auto 20px;        /* 中央寄せ＋下に少し余白 */
  }

  .text {
    width: 90%;                /* 横いっぱい */
    padding: 10px;                 /* PC の 100px padding を打ち消す */
    margin: 40px 0 40px 0;
    font-size: 14px;            /* 読みやすい文字サイズに */
    line-height: 1.5;
    text-align: left;           /* 左揃え（好みで center でもOK） */
  }

  /* ===== 施術紹介アイコン ===== */
  .icon-title {
    font-size: 28px;
    text-align: center;
    margin-top: 30px;
  }
  .icon-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0 30px;
    margin: 20px 10px;
    border: none;
  }
  .icon-row img {
    width: 90px;
  }

  /* リールタイトルのスマホ最適化 */
.info-reels-title {
    max-width: 360px !important;  /* ← 強制的に360pxにする */
    width: 90%;
    margin: 0 auto; 
    padding:30px 0;              /* ← 中央寄せ */
    text-align: center;
    word-break: keep-all;
    font-size:14px;
  }
  /* リールは縦並び＋中央揃え */
  .info-reels .reel-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .info-reels .reel-item {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
  }

  .info-reels .instagram-media {
    max-width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }


  /* ===== お知らせ ===== */
  .text2{
    text-align: center;
    font-size: 30px;
  }

  .info-box{
    margin-bottom: 0;
  }

    .info-section{
    padding-bottom: 100px;
    }
  /* ===== フッター ===== */
  .foot {
    padding: 10px;
    text-align: center;
  }
  .bottom1 img {
    height: 100px;
    width: auto;
  }
  .last {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .left-items, .right-items {
    width: 100%;
    gap: 10px;
  }
  .telephon img,
  .business-hour img,
  .reservation img {
    width: 280px;
    margin-top: 10px;
  }

  .bottom-address a {
    font-size: 13px;
    color: #333;
  }

  .foot-nav { display: none; }
  footer .leg {
    margin-top: 24px;
    font-size: 11px;
  }

}

/* PC ではハンバーガー非表示 */
@media screen and (min-width: 769px) {
  .hamburger,
  .mobile-menu {
    display: none !important;
  }
}

/* ===== スマホ用：サイドボタンの位置を下げる ===== */
@media screen and (max-width: 768px) {

  .page-top1 {
    bottom: 250px;   /* ← 予約ボタン（下げる） */
  }

  .page-top {
    bottom: 30px;    /* ← TOPへ（下げる） */
  }

}
