@charset "utf-8";
/* CSS Document */

/* PC・SPのオンオフ */
pc {
  display: block;
}

.sp {
  display: none;
}

.pc {
  display: none;
}

.sp {
  display: block;
}

/*sp_nav*/
/*========= ナビゲーションのためのCSS ===============*/
.nav_arrow {
  display: none;
}

/*アクティブになったエリア*/
#g-nav.panelactive {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;
  height: 100vh;
}

/*丸の拡大*/
.circle-bg {
  position: fixed;
  z-index: 3;
  /*丸の形*/
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-image: url("../images/blue_bg_img.jpg");
  /*丸のスタート位置と形状*/
  transform: scale(0);
  /*scaleをはじめは0に*/
  right: -50px;
  top: calc(50% - 50px);
  /*50%から円の半径を引いた値*/
  transition: all .6s;
  /*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive {
  transform: scale(50);
  /*クラスが付与されたらscaleを拡大*/
}

/*navの縦スクロール*/
#g-nav-list {
  display: none;
  /*はじめは表示なし*/
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list {
  display: block;
  /*クラスが付与されたら出現*/
}

/*ナビゲーション*/
#g-nav ul {
  opacity: 0;
  /*はじめは透過0*/
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
  opacity: 1;
}

/* 背景が出現後にナビゲーション li を表示*/
#g-nav.panelactive ul li {
  animation-name: gnaviAnime;
  animation-duration: 1s;
  animation-delay: .2s;
  /*0.2 秒遅らせて出現*/
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes gnaviAnime {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/*listのレイアウト設定*/
#g-nav li {
  text-align: center;
  list-style: none;
}

#g-nav li a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}

/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: fixed;
  top: 5px;
  right: 5px;
  margin-right: 10px;
  z-index: 9999;
  /*ボタンを最前面に*/
  cursor: pointer;
  width: 50px;
  height: 50px;
}

/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #333;
  width: 45%;
}

.openbtn span:nth-of-type(1) {
  top: 15px;
}

.openbtn span:nth-of-type(2) {
  top: 23px;
}

.openbtn span:nth-of-type(3) {
  top: 31px;
}

.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

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

.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

.openbtn {
  display: block;
}

/*sp_nav*/
.sp_navi {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 62px;
  font-size: 18px;
  font-weight: bold;
  z-index: 9998;
}

.sp_navi dt a {
  display: block;
  width: 42px;
  height: 42px;
  position: absolute;
  top: 9px;
  right: 10px;
  z-index: 9999999;
}

nav li {
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  border-left: none;
}

nav li:last-child {
  border-right: none;
}

.menu-btn {
  color: #333;
  cursor: pointer;
  z-index: 100;
  background-color: #FFFFFF;
  max-width: 42px;
  width: 42px;
}

.menu-btn i {
  display: block;
  font-size: 24px;
  text-align: center;
}

.menu-btn span {
  display: block;
  padding: 0 0 10px 0;
  font-size: 10px;
  text-align: center;
}

.open {
  transition: all .5s;
  visibility: visible;
  opacity: 1;
  z-index: 10;
}

.menu-btn span::after {
  content: attr(data-txt-menu);
}

.open span::after {
  content: attr(data-txt-close);
}

.menu-btn.close {
  background-color: #fff;
  color: #333;
}

.img {
  max-width: 100%;
}

/*main*/
.mainvisual_headline {
  background-image: url("../images/snow.png");
  object-fit: cover;
  margin-bottom: 80px;
  text-align: center;
  font-size: 20px;
}

.mainvisual_headline h2 {
  padding-top: 30px;
  padding-bottom: 10px;
  margin-top: 40px;
  font-size: 24px;
}

.mainvisual_headline p {
  padding-bottom: 20px;
}

h3 {
  background-image: url("../images/blue_bg_img.jpg");
  text-align: center;
  font-size: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}

h4 {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 60px;
  font-size: 16px;
}

h5 {
  text-align: center;
  background-color: #B8F7BF;
  margin: 0px auto 40px;
  max-width: 300px;
  padding-top: 10px;
  padding-bottom: 10px;
}

h6 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

/*cavity*/
#cavity h3 {
  text-align: center;
}

#cavity_second {
  background-color: #fff;
  padding-top: 80px;
}

#cavity_third {
  padding-top: 80px;
}

.caries_progress {
  padding: 40px 24px 80px;
}

.caries_progress img {
  width: 50%;
  display: flex;
  margin: 0 auto;
}

.content_txt {
  padding-top: 40px;
}

/*prevention*/
#prevention {
  background-color: #fff;
  padding-top: 80px;
}

#prevention h6 {
  background-color: darkturquoise;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
  max-width: 300px;
  margin: 40px auto;
}

.prophylaxis_dentistry {
  padding: 0px 24px 40px;
}

.prophylaxis_dentistry img {
  width: 50%;
  display: flex;
  margin: 0 auto;
}

/*gum*/
#gum {
  background-color: #fff;
  padding-top: 80px;
}

#gum h3 {
  text-align: center;
}

#gum_desease {
  padding-top: 80px;
}

#gum_desease h3 {
  text-align: center;
}

#gum_desease h4 {
  background-color: #6ec8da;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
  max-width: 400px;
  margin: 80px auto 60px;
}

.gum_desease__progress {
  padding: 0px 24px 40px;
}

.gum_desease__progress img {
  width: 50%;
  display: flex;
  margin: 0px auto 40px;
}

.gum_desease__progress p {
  margin-bottom: 40px;
}

.gum_risk {
  padding: 0px 24px 0px;
}

.gum_risk img {
  width: 50%;
  display: flex;
  margin: 0 auto;
}

.gum_risk p {
  padding-top: 24px;
  display: flex;
  justify-content: center;
}

.risk_last h4 {
  text-align: left;
}

#last h4 {
  background-color: #fff;
  margin: 0;
  padding: 80px 24px 40px;
}

.back_icon {
  background-color: #fff;
  text-align: right;
}

.back_icon img {
  width: 24%;
  padding-top: 40px;
}

/*footer*/
#footer_sentense {
  background-color: #6ec8da;
  padding-top: 40px;
  text-align: center;
}

.footer_nav img {
  max-width: 300px;
  width: 100%;
}

.footer_txt {
  color: #FFF;
  line-height: 1.8;
  padding-top: 24px;
  padding-bottom: 24px;
}

.dl_txt {
  color: #FFF;
  padding-bottom: 24px;
}

.dl_txt dd {
  padding-bottom: 10px;
}

.tel,
.fax {
  color: #FFF;
  padding-left: 8px;
}

small {
  color: #FFF;
  text-align: center;
}

.small_area {
  padding-bottom: 24px;
}

/*PC*/
@media (min-width: 768px) {
  html {
    max-width: 100%;
  }

  h3 {
    font-size: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  h4 {
    margin-top: 120px;
    font-size: 18px;
  }

  h6 {
    margin-top: 80px;
    margin-bottom: 80px;
  }

  /* nav */
  .openbtn {
    display: none;
  }

  nav {
    width: 100%;
    z-index: 9999;

  }

  nav {
    display: block;
  }

  .nav_arrow {
    background-image: url("../images/polygon.png");
    background-repeat: no-repeat;
    background-position: center top 45px;
    background-size: 10px;
  }

  .nav_arrow {
    display: block;
  }

  nav ul {
    max-width: 100%;
    text-align: center;
    display: flex;
  }

  nav li {
    display: inline-block;
    position: relative;
    height: inherit;
  }

  nav li a {
    display: table;
    padding: 0 21px 0 23px;
    vertical-align: middle;
    color: #333333;
    font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif";
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 1px;
    height: 50px;
    margin-bottom: 10px;
  }

  a {
    text-decoration: none;
  }

  ul,
  li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav_arrow em {
    color: #0a49f8;
    font-family: Arial, bold;
  }

  /*main*/
  .mainvisual_headline {
    margin-bottom: 120px;
  }

  /*cavity*/
  #cavity_second {
    padding-top: 120px;
  }

  #cavity_third {
    padding-top: 120px;
  }

  .caries_progress {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 160px;
  }

  .caries_progress p {
    text-align: left;
    display: flex;
    justify-content: center;
  }

  #cavity h3 {
    margin-top: 120px;
  }

  .content_txt {
    padding-top: 80px;
  }

  /*prevention*/
  #prevention {
    padding-top: 120px;
    padding-bottom: 160px;
  }

  #prevention h3 {
    text-align: center;
  }

  #prevention h6 {
    margin: 80px auto;
  }


  .prophylaxis_dentistry {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 0;
  }

  /*gum*/
  #gum {
    padding-top: 120px;
  }

  #gum h3 {
    text-align: center;
    margin-top: 0;
  }

  #gum_desease {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .gum_desease__progress {
    max-width: 720px;
    margin: 0 auto;
  }

  #gum_desease h4 {
    margin: 120px auto 80px;
    max-width: 720px;
    font-size: 20px;
  }

  .gum_desease__progress p {
    margin-bottom: 80px;
  }

  .gum_risk {
    display: flex;
    justify-content: space-around;
    padding: 0px 160px 0px;
  }

  .risk_detail {
    margin-right: 60px;
    width: 300px;
    height: auto;
  }

  .risk_detail img {
    width: 100%;
    max-width: 300px;
    height: 310px;
  }

  .risk_case {
    width: 300px;
    height: auto;
  }

  .risk_case img {
    width: 100%;
    max-width: 300px;
    height: 310px;
  }

  #last h4 {
    padding-top: 160px;
  }

  .risk_last h4 {
    text-align: center;
    margin-top: 120px;
    margin-bottom: 120px;
    font-size: 24px;
  }

  .back_icon img {
    width: 12%;
    padding-top: 80px;
  }

  /*footer*/
  #footer_sentense {
    padding-top: 80px;
  }

  .footer_nav {
    display: flex;
    justify-content: space-around;
    padding-bottom: 40px;
  }

  .footer_nav img {
    min-height: 60px;
    height: 100%;
  }


  .footer_txt {
    margin: 0;
    padding: 0;
  }


  .dl_txt dd {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  small {
    text-align: center;
  }
}