:root {
  --main-color: #31969f;
  --sub-color: #db296a;
  --main-light-color:#d9efeb;
  --btn-color: #db296a;
}
.wrap {
  max-width: 750px;
  margin: 0 auto;
  background-color: #fff;
  position: relative;
}

/*cta*/
.cta {
  /*    background: var(--main-color);*/
  /* background: linear-gradient(135deg, #333 60%, #0c4268 40%); */
  padding: 8% 4%;
  text-align: center;
}
.cta h3{
  text-align: center;
}
.cta h4{
  font-size: 24px;
  margin-bottom: 1em;
}
.cta img {
  display: inline;
}
.cta p{
  font-size: 18px;
}
.cta-box{
  margin-top: 1em;
  padding: 4% 0;
  background: var(--main-light-color);
  border-radius: 20px;
  min-width: 690px;
}
.cta-box ul li:first-child {
    margin-bottom: 1em;
}

@media screen and (max-width: 768px) {
.cta h4{
  font-size: 3.4vw;
}
.cta p{
  font-size: 3vw;
}
.cta-box{
  margin-top: 1em;
  padding: 4%;
  background: var(--main-light-color);
  border-radius: 20px;
  min-width: auto;
}
.cta-box ul li:first-child {
    margin-bottom: 0.5em;
}
}


/* 
header */
#header {
  background: #fff;
  color: var(--main-color);
  padding: 1vw;
}
#header .logo {
  font-size: 28px;
  max-width: 90%;
  font-weight: bold;
}
/* 
gnav */
.gnav {
  position: fixed;
  top: 0;
  right: -100%; /* 初期状態では画面の外に隠れている */
  width: 300px;
  height: 100%;
  /* background: rgba(255, 255, 255, 0.4); */
  /* color: #333; */
  background: var(--main-color);
  color: #fff;
  transition: right 0.3s ease; /* スライドインのアニメーション */
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
}

/* メニューが開いているとき */
.gnav.open {
  right: 0;
}

/* ボタンのスタイル */
.hamburger {
  position: absolute;
  top: 50%; /* 親要素の高さの50% */
  right: 1vw;
  width: 30px;
  cursor: pointer;
  z-index: 20;
  transform: translateY(-50%); /* 自身の高さの50%分 上にずらす（中央揃え） */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--main-color);
  margin: 5px 0;
  transition: 0.4s;
}

/* バツ印に変化するスタイル */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* メニューリストのスタイル */
.gnav ul {
  list-style-type: none;
  padding: 0;
  margin-top: 40px;
}

.gnav li {
  padding: 20px 0;
  border-bottom: 1px solid #fff;
}

.gnav li a {
  color: #fff;
  text-decoration: none;
  display: block;
}

@media screen and (max-width: 768px) {
  #header {
    padding: 3vw;
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: #fff; 
  }
  #header .logo {
      max-width: 88%;
      font-size: 3.7vw;
  }
  .hamburger {
    right: 3vw;
  }
  main {
    margin-top: 60px;
  }
  .gnav {
    position: fixed;
    top: -100%; /* 初期状態では画面の外に隠れている */
    width: 100%;
    height: auto;
    /* background: rgba(255, 255, 255, 0.4); */
    /* color: #333; */
    background: var(--main-color);
    color: #fff;
    transition: top 0.3s ease; /* スライドインのアニメーション */
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
  }

  /* メニューが開いているとき */
  .gnav.open {
    top: 0;
  }
}

.iin_reason03_2 {
  background: url(../img/jo-iin_reason03_2.jpg) no-repeat;
  background-size: 100%;
  text-align: center;
}
.iin_reason03_2 a {
  display: inline-block;
  margin: 0 auto;
  background: var(--btn-color);
  border: 4px solid var(--btn-color);
  border-radius: 20px;
  font-size: 38px;
  color: #fff;
  padding: 0.5em 0;
  width: 80%;
}
.iin_reason03_2 a:hover {
  color: var(--btn-color);
  background: #fff;
  transition: 0.4s;
}
/* 
clinic */
.clinic-cta {
    position: relative;
}
.clinic-cta-btn {
    position: absolute;
    bottom: 110px;
    left: 48px;
}
@media screen and (max-width: 768px) {

.clinic-cta-btn {
    width: 47vw;
    left: 6vw;
    bottom: 15vw;
}
}
/* 
map */
.map {
  background: var(--main-light-color);
  padding: 0 6% 40px;
}
.map p {
  margin-top: 1em;
}
.map iframe {
  width: 100%;
  height: 50vh;
  margin: 0 auto;
}
.map-box {
    background: #fff;
    padding: 8% 4%;
    border-radius: 20px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}
.map-box h3 {
    color: var(--main-color);
    font-size: 48px;
    text-align: center;
    line-height: 1;
    margin-bottom: 0.4em;
}
.map p {
    margin-top: 1em;
    font-size: 24px;
}
@media screen and (max-width: 768px) {
.map-box h3{
  font-size: 4vw;
}
.map p {
    margin-top: 1em;
    font-size: 3vw;
}
}

footer {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}
footer small {
  display: block;
  padding: 1em;
  background: var(--main-color);
  color: #fff;
}
.fixed_bnr {
  display: none;
}

@media screen and (max-width: 768px) {
  .cta img {
    width: 100%;
  }
  .map iframe {
    height: 30vh;
  }
  .iin_reason03_2 a {
    font-size: 4vw;
  }
    footer {
        padding-bottom: 120px;
    }
  .fixed_bnr {
    position: relative;
    display: block;
  }

  .fixed_bnr_area {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.8);
      text-align: center;
      padding: 2vw 4vw ;
      z-index: 1000;
      height: 130px;
      background: #fff;
      border-top: 4px solid var(--main-color);
  }
  .fixed_bnr img {
    width: 100%;
    height: auto;
  }
.fixed_bnr ul {
  display: flex;
  justify-content: center; /* 中央寄せ（必要に応じて変更） */
  gap: 4vw; /* ボタン同士の隙間（お好みで） */
}

.fixed_bnr ul li {
  list-style: none;
}
.fixed_bnr_arrow {
  position: absolute;
  left: 0;
  bottom: 4vw;
}
    .fixed_bnr h3 {
        font-size: 3.4vw;
        margin-bottom: 0.5em;
    }
  .fixed_bnr_arrow img {
    height: 10vw;
    width: auto;
    animation: shake 1s infinite alternate ease-in-out;
  }
  .fixed_bnr p {
    margin-top: 0.5em;
    font-size: 3vw;
}

  @keyframes shake {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(10px);
    }
  }
}
