:root {
  --main-color: #46a9c3;
  --sub-color: #db296a;
  --light-color:#eaf6f9;
  --btn-color: #db296a;
}
.wrap {
  max-width: 750px;
  margin: 0 auto;
  background-color: #fff;
  position: relative;
}
.border-box{
  border:1px solid #ccc;
  padding: 1em;
  margin-top: 1em;
}
.mt1em{margin-top: 1em;}
.center{text-align: center;}
.explanation{font-size: 1.4em;margin-top: 1em;}
.bg-primary{background: var(--main-color); color: #fff; padding: 0.2em; line-height: 1;}
.bg-grad{
background: linear-gradient(
  to right,
  #cfe8ee 0%,
  #f4fcfe 40%,
  #f4fcfe 60%,
  #cfe8ee 100%
);
}


/*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 {
  color: #fff;
}
.head-line h2{
  background: var(--main-color);
  color: #fff;
  text-align: center;
  padding: 0.5em;
}
#header .logo h1{
  font-size: 28px;
  max-width: 90%;
  font-weight: bold;
  color:#000;
  padding: 0.5em;
}
.head-box {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 750px;
}
.head-box.fixed {
  position: fixed;
  z-index: 1000;
  top: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* 
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) {
  .explanation{
    font-size: 4vw;
  }
  #header {
    background: var(--main-color);
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    padding: 0;
  }
  .head-line h2 {
    font-size: 3vw;
    padding: 0.5em;
}
    .head-box {
        padding: 3vw;
        background: #fff;
        position: relative;
    }
  #header .logo h1{
      max-width: 88%;
      font-size: 4.6vw;
  }
  .hamburger {
    right: 3vw;
  }
  main {
    margin-top: 82px;
  }
  .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;
  }
}
/* 
cta */
.cta{
  background: url(../img/bg-cta.png);
  background-size: cover;
  padding: 60px 40px 80px;
  border-top:10px solid var(--main-color);
}
.cta-box {
    background: #fff;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    border: 7px solid var(--main-color);
}
.cta h3{
  text-align: center;
  font-size: 36px;
  margin-bottom: 0.5em;
}
.cta h3 span{
  font-size: 18px;
  display: block;
}
.cta-box ul {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.cta-box ul li {
  width: calc(50% - 10px); /* 20px gap の半分を引く */
}
.cta-box p{
  margin-top: 1em;
}

/* 
clinic */
#clinic {
    padding: 80px 40px;
}
#clinic h2 {
    text-align: center;
    font-size: 48px;
    color: var(--main-color);
}
#clinic h2 span{
  display: block;
  text-align: center;
  font-size: 18px;
}
#clinic table{
  border:1px solid #ccc;
  border-collapse: collapse;
  width: 100%;
  margin-top: 2em;
}
#clinic table th, 
#clinic table td{
  border:solid 1px #ccc;
  text-align: center;
  padding: 1em;
}
#clinic table thead th {
    background: var(--main-color);
    color: #fff;
}
#clinic table td{
  font-size: 2em;
  color: var(--main-color);
}
#clinic p{
  margin-top: 1em;
}
#clinic ul{
  margin-top: 1em;
}


/* 
facility */

#facility {
    padding: 80px 40px;
    /* background: var(--light-color); */
}
#facility h2 {
    text-align: center;
    font-size: 48px;
    color: var(--main-color);
}
#facility h2 span{
  display: block;
  text-align: center;
  font-size: 18px;
}
#facility ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    margin-top: 2em;
}

#facility ul li {
    list-style: none;
    text-align: center;
}
#facility ul li img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5em;
}

/* 
access */
#access {
    padding: 80px 40px;
}
#access h2{
    text-align: center;
    font-size: 48px;
    color: var(--main-color);
}
#access h2 span{
  display: block;
  text-align: center;
  font-size: 18px;
}
#access h3{
  font-size: 1.4em;
  margin-bottom: 0.5em;
}

.map p {
  margin-top: 1em;
}
.map iframe {
  width: 100%;
  height: 50vh;
  margin: 2em auto 0;
}


@media screen and (max-width: 768px) {
  #clinic ,
  #facility,
  #access{
    padding: 8vw 4vw;
  }
  #clinic h2 ,
  #facility h2 ,
  #access h2{
    font-size: 7vw;
  }
  #clinic h2 span ,
  #facility h2 span ,
  #access h2 span {
    font-size: 4vw;
  }
  #clinic .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #clinic table {
    border-collapse: collapse;
  }
  #clinic table th, #clinic table td {
    border: solid 1px #ccc;
    text-align: center;
    padding: 1em;
    line-height: 1.4;
    vertical-align: middle;
}
#access h3{
  font-size: 5vw;
}
}

/* 
footer */

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 {
    background: url(../img/bg-cta.png) center;
    background-size: cover;
    padding: 8vw 4vw;
    border-top: 4px solid var(--main-color);
}
  .cta h3{
    font-size: 7vw;
  }
  .cta h3 span{
    font-size: 4vw;
  }
  .cta img {
    width: 100%;
  }
  .cta-box {
    background: #fff;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 4vw;
    border: 3px solid var(--main-color);
}
.cta-box p {
    margin-top: 1em;
    font-size: 2.5vw;
    text-align: left;
}
  .map iframe {
    height: 30vh;
  }
  .iin_reason03_2 a {
    font-size: 4vw;
  }
    footer {
        padding-bottom: 120px;
    }
  .fixed_bnr {
    position: relative;
    display: block;
  }
.fixed_bnr ul {
    display: flex;
    gap: 2vw;
}
.fixed_bnr h3 {
    color: #fff;
    font-size: 3.2vw;
    margin-bottom: 0.5em;
}
  .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);
    }
  }
}
