

.entry-content nav>ul {
  margin: 0;
}

/*========= 
ナビゲーションドロップダウンのためのCSS 
===============*/

/*==ナビゲーション全体の設定*/
nav {
  color: #434A52;
  background: #F3EFED;
}

/*ナビゲーションを横並びに*/
nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
}

/*2階層目以降は横並びにしない*/
nav ul ul {
  display: block;
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li {
  position: relative;
}

/*ナビゲーションのリンク設定*/
nav ul li a {
  display: block;
  text-decoration: none;
  color: #434A52;
  padding: 1.8em 1em;
  transition: all .3s;
  line-height: 1;
  white-space: nowrap;
  font-size: 1.05em;
  font-weight: 600;
}
nav ul li:nth-child(5){
  padding: 0 1em 0 0;
}

nav ul li li a {
  padding: 1.2em 1em;
  line-height: 1;
  white-space: nowrap;
  font-size: 0.9em;
}
nav ul li li:last-child {
  padding: 0 0 0 0;
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/
nav ul li.has-child {
  position: relative;
  padding: 0 0.6em 0 0;
}
nav ul li.has-child::after {
	position: absolute;
  top: 1.05em;
  right: 0;
  font-size: 1.6em;
  line-height: 1;
  font-family:"Material Symbols Rounded";
  content: "\e313"; /*矢じりのみ下矢印*/
  font-variation-settings:
  'FILL' 1,
  'wght' 300
}

/*== 2・3階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul {
  position: absolute;
  left: 0;
  top: 4em;
  z-index: 4;
  background: #434A52;
  width: auto;
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
  margin: 0;
}

/*hoverしたら表示*/
nav li.has-child:hover>ul,
nav li.has-child ul li:hover>ul,
nav li.has-child:active>ul,
nav li.has-child ul li:active>ul {
  visibility: visible;
  opacity: 1;
}

/*ナビゲーションaタグの形状*/
nav li.has-child ul li a {
  color: #fff;
  border-bottom: solid 1px rgba(255, 255, 255, 0.6);
}

nav li.has-child ul li:last-child a {
  border-bottom: none;
}

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active {
  background: #939BA6;
}


/* スマホ */
@media (max-width:640px) {

  header#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
  }
  nav ul {
  background: #FFF;
  }
  nav ul li a {
    display: block;
    text-decoration: none;
    color: #434A52;
    padding: 1.2em 1em;
  }
  nav ul li:nth-child(5){
    padding: 0 0 0 0;
  }
  nav ul li li a {
    font-size: 0.95em;
  }
  nav ul li.has-child {
    padding: 0 0 0 0;
  }
  nav ul li.has-child::after {
    top: 0.4em;
    right: 0.3em;
    font-size: 2em;
  }

  a.top-button {
    scale: .7;
    right: 0;
  }

  ul#g-navi {
    display: none;
    width: 100%;
    box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.4);
    padding: 5.2em 0 0;
  }


nav ul li.has-child::after {
	color: #939BA6;
}
nav li.has-child ul {
  background: #939BA6;
}
nav ul li li a {
  padding: 1em 1em;
  font-size: 1em;
}


  .openbtn1 span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: calc(50% + -18px);
    height: 2px;
    border-radius: 2px;
    background-color: #FFF;
    width: 38px;
  }

  .openbtn1 span:nth-of-type(1) {
    top: calc(32% - 1px)
  }

  .openbtn1 span:nth-of-type(2) {
    top: calc(50% - 1px)
  }

  .openbtn1 span:nth-of-type(3) {
    top: calc(68% - 1px)
  }

  .openbtn1.active span:nth-of-type(1) {
    top: 24px;
    left: 12px;
    transform: translateY(6px) rotate(-45deg);
    width: 60%
  }

  .openbtn1.active span:nth-of-type(2) {
    opacity: 0
  }

  .openbtn1.active span:nth-of-type(3) {
    top: 36px;
    left: 12px;
    transform: translateY(-6px) rotate(45deg);
    width: 60%
  }

  .openbtn1 {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 64px;
    height: 64px;
    background: #434A52;
    border-radius: 0 0 0 12px
  }

  header#header>a {
    display: none
  }

  nav {
    padding: 0;
  }

  nav li.has-child ul,
  nav li.has-child ul ul {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    visibility: visible;
    /*JSで制御するため一旦表示*/
    opacity: 1;
    /*JSで制御するため一旦表示*/
    display: none;
    /*JSのslidetoggleで表示させるため非表示に*/
    transition: none;
    /*JSで制御するためCSSのアニメーションを切る*/
  }

  nav ul li a {
    border-top: 1px solid #ccc;
  }

  /*矢印の位置と向き*/

  nav ul li.has-child::before {
    left: 20px;
  }

  nav ul ul li.has-child::before {
    left: 20px;
  }

}

/*-------------------------
スマホのみ表示
--------------------------*/
.navspinfo {
  display: none;
}
@media screen and (max-width: 640px) {

  .navspinfo {
  display: block;
  width: 100%;
  padding: 24px 24px 18px;
  background: #434A52;
  text-align: center;
  color: #FFF;
  }

  /* 電話リンク */
  .spnavtel{
  position:relative;
  display: inline-block;
  font-size: 1.8em;
  line-height: 1;
  padding: 0 0 0 1em;
  color: #FFF;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  margin: 0.3em auto;
  letter-spacing: 0.03em;
  font-family: 'Quicksand', sans-serif;
  }
  .spnavtel:before{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  content:"";
  display:inline-block;
  width:1.1em;
  height:1.1em;
  background:url(../img/common/icon_tel2.png) no-repeat;
  background-size:contain;
  }

  /* 予約・問診票 */
  .spnavinfo_btn {
  width:100%;
  max-width: 380px;
  margin: 18px auto 0;
  padding:0;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  justify-content: space-between;
  justify-content: center;
  align-items:center;
  }
  .spnavinfo_btn div{
  width: 50%;
  max-width:50%;
  width: calc(100% / 2);
  margin:0 8px 0 0;
  }
  .spnavinfo_btn div:last-child{
  margin:0 0 0 0;
  }

  /* SNSアイコン */
  .spnav_SNSicons {
  width:100%;
  margin: 12px auto 0;
  padding:0;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  justify-content: space-between;
  justify-content: center;
  align-items:flex-start;
  }
  .spnav_SNSicons div{
  padding: 0 4px;
  }
  .spnav_SNSicons div img{
  width: 100%;
  max-width: 42px;
  }

}




