:root {
  --main-color: #31969f;
  --sub-color: #db296a;
  --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%; */
  text-align: center;
}
.cta img {
  transform: scale(1);
  transition: transform 0.5s ease; /* フェードインとスムーズな拡大・縮小 */
}

.cta img.visible {
  transform: scale(1.1); /* 最初の拡大 */
}

.cta img.reverted {
  transform: scale(1); /* 元のサイズに戻す */
}

/* 
header */
#header {
  background: #db296a;
  color: #fff;
  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: #fff;
  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: #db296a; 
  }
  #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;
}
.map {
  padding: 0 6% 40px;
}
.map p {
  margin-top: 1em;
}
.map iframe {
  width: 100%;
  height: 50vh;
  margin: 0 auto;
}

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: 4vw;
    z-index: 1000;
    max-height: 120px;
  }
  .fixed_bnr img {
    width: 100%;
    height: auto;
  }

  .fixed_bnr_arrow {
    position: absolute;
    left: 0;
    bottom: 4vw;
  }

  .fixed_bnr_arrow img {
    height: 10vw;
    width: auto;
    animation: shake 1s infinite alternate ease-in-out;
  }

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