﻿body{
  margin:0;
  padding:0;
  overflow-x:hidden; /* 横スクロール防止 */
}

.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;
}

/*ここまでタイトル*/


/*ここからスライドショー*/

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

.slides {
  position: absolute;
  width:100%;
  height:100%;
  opacity:0;
  transition: opacity 1.5s ease-in-out;
  z-index:0;
}

.slides img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.slides.active {
  opacity:1;
  z-index:1;
}

.dot-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 2;
}

.dot {
  width:15px;
  height:15px;
  background-color:#ccc;
  border-radius:50%;
  cursor:pointer;
}

.dot.active {
background-color:#333;
}

/*ここまでスライドショー*/


.exp {
  display:flex;
  justify-content:center;
  width:100%;
  margin:auto;
  margin:200px 0;
  padding-left:100px;  
  padding-right:100px; 
  padding-bottom:100px; 
  background-image: url("../image/green.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 

  opacity: 1 !important;
  transform: none !important;
  transition: all 2s ease-out;
}


.exp.show {
  opacity: 1;
  transform: translateY(0);
}

.exp .photo,
.exp .text {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.6s ease-out;
}

.exp.show .photo,
.exp.show .text {
  opacity: 1;
  transform: translateY(0);
}


.text {
  width: 45%;
  font-size: 15px;
  line-height: 1.5;
  padding-top:100px;
  
}

.title2 {
text-align:center; /* 中央から左へ変更 */
padding:0 0 20px 0; /* 上の余白を除去して整える */
font-size:30px;
font-weight: bold;
padding:50px 0;
}

.photo {
  width: 40%;
  padding-top:150px;
margin-left:10%; /* 写真を中央寄りに */
}

.name {
  padding-top: 20px;
  font-size: 40px;
  text-align: left;
}

.text p{
padding:10px 30px;
}

/*ここから施術紹介*/
.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;
border:2px solid #000;
border-radius:30px;
}

/* icon-row の表示アニメーション */
.icon-row {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.8s ease-out;
}

.icon-row.show {
  opacity: 1;
  transform: translateY(0);
}

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

/*ここからボタン*/

.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;
}

/*ここまでボタン*/

/*ここから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;
  }
}

/* ===== スマホ用レイアウト スマホ用レイアウトスマホ用レイアウトスマホ用レイアウトスマホ用レイアウト===== */
/* ===== スマホ用レイアウト ===== */
@media screen and (max-width: 768px) {

  /* 全体：横スクロール防止＆幅100% */
  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%;
    max-width: none;
    z-index: 1000;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0;
  }

  /* ヘッダー高さ分だけ下に押し下げる */
  .whole {
    margin-top: 70px;
  }

  /* ロゴ（左） */
  .logo {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }

  .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: transform 0.3s ease, opacity 0.3s ease;
  }

   .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 {
  /* ここは今のままでもOK */
  display: none;
  position: fixed;
  top: 70px;                      
  left: 0;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 70px);  
  background-color: #fff;
  z-index: 2000;
  padding: 10px 0 0;
  box-sizing: border-box;
  overflow-y: auto;

  /* スライド＆フェード用初期状態（ゆっくりめ＆ちょっと上から） */
  transform: translateY(-20%);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.mobile-menu.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

  /* 閉じるボタン（×） */
  .mobile-menu .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
  }

  /* メニュー全体のリンク */
  /* メニュー全体のリンク */
  .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(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .mobile-menu .menu-links li:last-child {
    border-bottom: 1px solid #b4d9c7;
  }

  /* メニュー表示時に、上から順にふわっと降りてくる */
.mobile-menu .menu-links li {
  border-top: 1px solid #b4d9c7;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

/* メニュー表示時に、上から順にふわっと降りてくる（ゆっくり） */
.mobile-menu.show .menu-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.show .menu-links li:nth-child(1) { transition-delay: 1.00s; }
.mobile-menu.show .menu-links li:nth-child(2) { transition-delay: 1.50s; }
.mobile-menu.show .menu-links li:nth-child(3) { transition-delay: 2.00s; }
.mobile-menu.show .menu-links li:nth-child(4) { transition-delay: 2.50s; }
.mobile-menu.show .menu-links li:nth-child(5) { transition-delay: 3.00s; }
.mobile-menu.show .menu-links li:nth-child(6) { transition-delay: 3.50s; }
.mobile-menu.show .menu-links li:nth-child(7) { transition-delay: 4.00s; }

  .mobile-menu .menu-links a {
    display: block;
    padding: 12px 0;
    text-align: center;
    font-size: 16px;
    letter-spacing: 1px;
    background-color: #e3f6ec;
    color: #0f6f45;
    text-decoration: none;
    font-weight: 600;
  }

  .mobile-menu .menu-links a:hover {
    background-color: #cfeee0;
  }

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

  /* 電話番号アイコンを中央に */
  .mobile-menu .menu-tel img {
    width: 180px;
    height: auto;
    margin: 0 auto;
  }

  /* 住所 */
  .mobile-menu .menu-address {
    margin-top: 10px;
    font-size: 13px;
    color: #333;
    font-weight: bold;
    line-height: 1.6;
    padding: 0 20px;
  }

  /* 診療時間の画像 */
  .mobile-menu .menu-time img {
    width: 300px;
    margin-top: 15px;
    padding-bottom:10px;
  }


  /* タイトル */
  .title {
    font-size: 28px;
    text-align: center;
    margin-top: 0;
    padding: 16px 10px;
  }

  /* スライドショー：画面いっぱい＆横スクロールなし */
  /* スライドショー：モバイルは画面いっぱい＆高さ固定で揃える */
@media screen and (max-width: 768px) {

  .slideshow {
    position: relative;
    max-width: 100%;
    width: 100%;
    height: 50vh;
    min-height: 220px;     /* 小さいスマホでもつぶれないように */
    margin: 0 auto;
    padding: 90px 0 30px;  /* 上はヘッダー＋少し余白（今までと同じ感覚） */
    overflow: hidden;
    margin-top: 30px;
  }

  .slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* 画面いっぱいにトリミングして表示 */
    object-position: center;    /* すべて中央基準で切り抜き */
  }

  .dot-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
  }
}


  /* 紹介ブロック：縦並び＋横は余白小さく */
  .exp {
    flex-direction: column;
    width: 100%;
    margin: 32px 0;
    padding: 24px 16px 32px;
    box-sizing: border-box;
    background-position: center;
  }

  .photo,
  .text {
    width: 100%;
    padding-top: 0;
    margin: 0;
    text-align: center;
  }

  .photo img {
    max-width: 260px;
    width: 80%;
    height: auto;
    margin: 0 auto;
  }

  .name {
    padding-top: 12px;
    font-size: 24px;
    text-align: center;
    margin: 0 auto;
  }

  .title2 {
    font-size: 20px;
    padding: 24px 0 12px;
  }

  .text {
    font-size: 14px;
    line-height: 1.7;
  }

  .text p {
    padding: 6px 0;
    width:300px;
    margin:0 auto;
  }

  /* 施術案内アイコン：中央寄せ＆はみ出さないように */
  .icon-title {
    font-size: 28px;
    margin-top: 32px;
    text-align: center;
  }

  .icon-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0 24px;
    margin: 16px 10px 40px;
    border: none;
    border-radius: 0;
  }

  .icon-row1,
  .icon-row2 {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

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

  /* サイドボタン：TOPは非表示、予約ボタンのみ固定表示 */
  .page-top{
    display: none;
  }





  /* フッター：1カラム縦並び＆横100%内に収める */
  .foot {
    background-color: #eee;
    padding: 10px 10px;
    text-align: center;
  }

  .bottom1 img {
    height:100px;
    width: auto;
    padding:0;
    margin:0;
  }

  .last {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
  }

  .left-items,
  .right-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
.telephon img {
    width: 280px; 
    height: auto;
  }

  .business-hour img {
    width: 300px; 
    height: auto;
    margin-top:20px;
  }

  .reservation img {
    width: 300px; 
    height: auto;
    margin-top:10px;
  }

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

  .foot-nav {
    display: none;
  }

  footer .leg {
    font-size: 11px;
    margin-top: 24px;
    color: #666;
  }
}

/* PC（モバイル以外）ではモバイルメニュー非表示 */
@media screen and (min-width: 769px) {
  .hamburger {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }
}
/* ===== スマホ用：サイドボタンの位置を下げる ===== */
@media screen and (max-width: 768px) {

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

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

}
