@charset "utf-8";
/* CSS Document */
@import url("../css/base.css");
/*topページ*/
main{
    margin-bottom: 0;
}
section{
    margin-bottom: 0;
}
/*ヘッダー*/
.logo{
	width: 150px;
	height: auto;
}
header .container{
	display: flex; /*横並び指定*/
	align-items: center; /*縦の真ん中に上下の位置を中央に合わせる*/
	justify-content: space-between;	/*左右の端っこに離して（ロゴとハンバーガーアイコン）*/
	padding: 16px 20px;/*上下16px左右20p*/
    position: relative;
}

/*ハンバーガーアイコン*/
.hamburger{/*ハンバーガーアイコン三本線の「箱」*/
	width: 30px;
	height: 22px;
	display: flex;/*中の要素spanを並べる準備*/
	flex-direction: column;/*縦に並べる*/
	justify-content: space-between;/*上・真ん中・下にバラす*/
	cursor: pointer;/*マウスを乗せたら指マークになる*/
}

.hamburger span{/*ハンバーガーアイコンの一本の［線」*/
	display: block;/*spanを線にする準備*/
	height: 3px;
	background: #333;
	border-radius: 2px;/*角を少し丸くした*/
}
/* ===== ハンバーガーの中身（長方形メニュー） ===== */
.header-nav{
  position: absolute;
  top: 100%;         /* ヘッダー下に出す（必要なら調整） */
  right: 0px;       /* 右寄せ（左に出したいなら left:20px） */
  margin-top: -30px;
  width: 300px;      /* 長方形の横幅 */
  background: #EDF6F3;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: none;
  z-index: 9999;
}
.header-nav li{
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.header-nav li:last-child{
  border-bottom: none;
} 
.header-nav.is-open{
  display: block;
}
@media screen and (max-width: 767px){
  header .container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  .header-nav{
    position: static;
    width: 100%;
    flex-basis: 100%;
    background: #EDF6F3;
    padding: 20px;
    margin-top: 12px;
    border-radius: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
      box-sizing: border-box;
  }

  .header-nav.is-open{
    display: block;
  }
} 

/*ファーストビュー*/
.fv{
	width: 100%;
    max-width: 1400px;
	position: relative;
	overflow: hidden;
    margin: 0 auto;
    aspect-ratio: 1200/600;
}
.fv-slide{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 6s;
}
.fv-slide.active{
    opacity: 1; 
} 

/*あゆむ整骨院の紹介*/
.intro-text{
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}
/* スライダー全体 */
.intro-slider {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  overflow: visible;
  padding: 0 20px;
}

/* 画像 */
.slider-wrap{
  position: relative;
  max-width: 900px;
  margin: 0 auto;
} 
.intro-slide{
    height: 200px;
}
.intro-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* 矢印 */
.intro-prev,
.intro-next {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  z-index: 10;
  color: #333333;
}

.intro-prev::after,
.intro-next::after {
  font-size: 25px;
  font-weight: bold;
}

/* スマホ */
.intro-prev {
  left: 8px;
}

.intro-next {
  right: 8px;
}
@media screen and (max-width:767px){
    .intro-slide{
        max-width: 500px;
        padding: 0 40px;
    }
}
@media screen and (min-width: 768px) {
  .intro-slider {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
  }

  .intro-slider .swiper-wrapper {
    gap: 0;
  }

  .intro-slider .swiper-slide {
    width: calc((100% - 20px) / 2) !important;
  }

  .intro-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
  }

  .intro-prev {
    left: -5px;
  }
    
  .intro-next {
    right: -5px;
  }
} 
/*こんなお悩みの方*/
.box-text{
    margin-top: 50px;
    text-align: center;
}

/*院長紹介*/
.director {
  margin-top: 60px;
}

.director-text {
  text-align: center;
  margin-bottom: 20px;
}
.director-message{
    margin-top: 20px;
    font-weight: normal;
}

.director-img img {
  width: 100%;
  display: block;
  border-radius: 10px;
} 
@media screen and (min-width: 768px) {
  .director {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }

  .director-text {
    width: 50%;
    text-align: left;
    margin-bottom: 0;
    padding-left: 50px;
    line-height: 2.0;
  }
    .director-message{
        margin-top: 50px;
        font-weight:  normal;
        line-height: 2.0;
    }
  .director-img {
    width: 50%;
  }
} 

/*バナー４つ*/
.banner{
  margin: 50px auto;
  position: relative;
  z-index: 20;
}

.banner-row{
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.banner-link{
  display: block;
  width: 48%;
  position: relative;
  z-index: 20;
  cursor: pointer;
}

.banner-link img{
  width: 100%;
  display: block;
  border-radius: 10px;
  pointer-events: auto;
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}
.banner-link img:hover{
    opacity:0.7;
}

@media screen and (max-width: 767px){
  .banner-row{
    flex-direction: column;
  }

  .banner-link{
    width: 100%;
  }
} 
/*営業時間*/
.openigdeys-text{
    text-align: center;
}

/*アクセス*/

.access h2{
     margin-top: 50px;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    text-align: center;
}
.access-img{
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
}
.access-img img{
    width: 50%;
    display: block;
    border-radius: 10px;
}
.access-text{
   text-align: center;
   margin-bottom: 0;
   margin-top: 15px;
}
/*フッター*/
.footer{
    max-width: 960px;
    margin: 0 auto;
    background-image: url("../img/footer.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center top;
	padding: 20px 30px;
    box-sizing: border-box;
}
.footer p{
    font-size: 12px;
}
.copyright{
    font-size: 11px;
    color: #777;
}
#footer-nav .logo{
    margin: 5px auto 5px auto;
}
#footer-nav{
	text-align: center;
	padding: 0;
	margin: 0;
}

#footer-nav ul{
	display: flex;
	justify-content: center;
    align-items: center;
    flex-wrap: wrap;
	gap: 10px;
}
#footer-nav li{
    list-style: none;
}
#footer-nav a{
    text-decoration: underline;
    color: #333;
    display: block;
    padding: 5px 10px;
}
#footer-nav a:hover{
    opacity: 0.6;
}

/*コンタクトページ*/
/*施術内容*/
.treatment{
  width: 100%;
  margin: 10px auto 0;
  box-sizing: border-box;
}

.treatment h1{
  text-align: center;
  margin-bottom: 20px;
}

.treatment-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.treatment-text{
  width: 100%;
}

.treatment-img{
  width: 100%;
  text-align: center;
}

.treatment-img img{
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
} 
/*基本料金*/
.price{
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  max-width: 960px;
  background-image: url("../img/base.png");
  padding-top: 30px;
  padding-bottom: 30px;  
  
} 
.price h2{
    margin-bottom: 25px;
    text-align: center;
}
.price-inner{
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}
.price-box{
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px;
  text-align: center;
}

.price-table{
  width: 90%;
  max-width: 700px;
  margin: 0 auto 20px;
  border-collapse: collapse;
  border: 2px solid #bfb7ab;
  background-color: #fff;
}

.price-table th,
.price-table td{
  border: 1px solid #bfb7ab;
  padding: 12px 16px;
  text-align: center;
  background-color: transparent;
} 

.price-note{
    text-align: center;
    line-height: 1.8;
}
.price-img{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 560px;
  margin: 40px auto 0;
  row-gap: 24px;
  column-gap: 16px;
}

.price-img div{
  grid-column: span 2;
  text-align: center;
}

.price-img div:nth-child(4){
  grid-column: 2 / span 2;
}

.price-img div:nth-child(5){
  grid-column: 4 / span 2;
}

.price-img img{
  width: 80px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
} 

/*よくある質問（Q&A）*/
.faq{
    width: 100%;
    margin: 0px auto;
    box-sizing: border-box;
    max-width: 960px;
    background-image: url("../img/base.png");
    padding-top: 30px;
    padding-bottom: 30px;
}
.faq h2{
    margin-bottom: 25px;
    text-align: center;
}

details{
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    margin-bottom: 15px;
    background-color: #FFFFFF;
    padding: 0;
}
details p{
    padding: 10px 20px;
}
.faq h2{
    text-align: center; 
}
summary{
    background-color: #f4a261;
    cursor: pointer;
    font-weight: bold;
    text-align: left;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 10px;
}
.faq-img{
     width: 100%;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.faq-img img{
    display: block;
    width: 80%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/*アクセスページ*/
/*お知らせ*/
.news{
  width: 100%;
  margin: 0;
  text-align: center;
}
.dete{
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 12px;
    z-index: 2;
}
.news_img{
    position: relative;
    width: fit-content;
    margin: 40px auto;
    background: none;
    padding: 20px;
    border-radius: 10px;
}
.news_img img{
    display: block;
    transition: all 0.3s;
}
.news_img img:hover{
    filter: contrast(1.25) brightness(1);
    transform: scale(1.03);
}
.news_calendar3,
.news_calendar4 {
  position: relative;
}

.news_calendar4 {
  margin-top: 50px;
}
.news_calendar3 img,
.news_calendar4 img{
    opacity: 0.95;
}

.news_calendar3::before,
.news_calendar4::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: 0.3s;
  pointer-events: none;
}

.news_calendar3:hover::before,
.news_calendar4:hover::before {
  background: rgba(255,255,255,0.8);
}  
/*問い合わせ*/

/* バインダー画像 */
.binder-box{
    width: 500px;
    max-width: 450px;
    height: 600px;
    margin: 0 auto;
    background-image: url("../img/access/binder.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    position: relative;
}

/* 入力欄 */
.binder-form input,
.binder-form textarea{
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 20px;
  background-color: #f5e6b3;
  border: none;
  padding: 8px;
}
 
/* フォーム（画像の上に乗る） */
.binder-form{
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  text-align: left;
}
.binder-form h2{
  margin: 0 0 10px 0;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}

.binder-form label{
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.binder-form input,
.binder-form textarea{
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  border: none;
  border-radius: 14px;
  background-color: #f5e6b3;
  padding: 8px 10px;
  font-size: 13px;
}

.binder-form textarea{
  height: 80px;
  resize: none;
}
/* 送信ボタン */
.binder-form input[type="submit"]{
  width: 100%;
  margin-top: 10px;
  border: none;
  border-radius: 16px;
  padding: 10px 0;
  background-color: #f36c3d;
  color: #fff;
  cursor: pointer;
}
.binder-form input:focus-visible,
.binder-form textarea:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px #d8c27a;
} 
.binder-form input[type="submit"]:hover{
    filter: contrast(1.25) brightness(1);
    transform: scale(1.03);
}
.contact-wrap{
  position: relative;
}

.contact-pen{
  position: absolute;
  top: 150px;
  right: 100px;
  width: 150px;
  display: block;
}

@media screen and (max-width: 960px){
  .contact-pen{
    display: none;
  }
}  
@media (max-width: 768px){
  .binder-form{
    top: 100px; /* 少しだけ上げる */
  }

  .binder-form h2{
    margin-bottom: 12px; /* 少し詰める */
  }

  .binder-form input,
  .binder-form textarea{
    margin-bottom: 8px; /* 少し詰める */
  }

  .binder-form textarea{
    height: 65px; /* 少しだけ小さく */
  }
} 

/*プライバシーポリシー*/
.privacy-policy{
    text-align: center;
}
.privacy-policy h2{
    font-size: 20px;
    margin-bottom: 20px;
}
.privacy-policy-text{
    font-size: 14px;
    line-height: 1.8;
    max-width: 700px;
    text-align:left;
    margin: 30px auto;
    margin-bottom: 0;
}


