html{
  scroll-behavior: smooth;
}

.sp_only{
  display: none;
}
.front_bg{
  width: 100%;
  background-image: url("../img/bg.png");
  background-repeat: repeat;
  padding-bottom: 10rem;

}
.front_mainvisual_section{
  position: relative;
}
.front_side_bar{
  writing-mode: vertical-lr;
  text-orientation: upright;
  position: fixed;
  top: 22rem;
  right: 0;
  padding: 4.6rem 1.2rem 2.7rem 1.2rem;
  width: fit-content;
  height: fit-content;
  color: white;
  background-color: #668EC4;
  font-size: 1.6rem;
  font-weight: 400;
  font-family: "Noto Serif JP";
  letter-spacing: 0.3em;
  border-radius: 2rem 0 0 2rem;
  white-space: nowrap;
  z-index: 9;

}
.front_side_bar::before{
  content: "";
  display: inline-block;
  position: absolute;
  width: 2rem;
  height: 0.1rem;
  background-color: #FFF;
  top: 13.6rem;
  left: 1.6rem;

}
.front_mainvisual{
  display: block;
  width: 100%;
  height: 62.1rem;
  object-fit: cover;
  /* object-position: center center; */
}
.front_news_section{
  position: relative;
}
.front_news_title_en{
  color: #E4E4E4;
  font-size: 15rem;
  font-weight: 400;
  font-family: "Noto Serif JP";
  position: absolute;
  top: -13.5rem;
  left:1.8rem;
}
.front_news_n{
  color: #78ABC6;
}
.front_news_wrapper{
  width: 112.8rem;
  height: 50rem;
  background-color: #FFFFFF;
  opacity: 0.8;
  box-shadow: 0 1rem 0.7rem #00000029;
  border-radius: 7.2rem 0;
  margin: 10.9rem auto 12.1rem;
  padding: 3.9rem 5rem 5.2rem;
  position: relative;
}
.front_news_main_title{
  color: #C80081;
  font-size: 3rem;
  font-weight: 400;
  font-family: "Noto Serif JP";
  text-align: center;
  margin-bottom: 1rem;
}

.front_news_info{
  display: flex;
  padding-top: 2.1rem;
  padding-bottom: 2.4rem;
  border-bottom: solid 0.1rem #707070;
}



.front_news_flex{
  display: flex;
  width: 25%;
  align-items: center;
}
.front_news_date{
  font-size: 1.6rem;
  font-weight: 400;
  font-family: "Noto Sans JP";
  width: 40%;
}
.front_news_category{
  font-size: 1.5rem;
  font-weight: 400;
  font-family: "Noto Sans JP";
  width: 60%;
}
.front_news_title{
  font-size: 1.6rem;
  font-weight: 400;
  font-family: "Noto Sans JP";
  width: 75%;
}


.front_medical_care_subjects{
  color:#C80081;
  font-size: 3rem;
  font-weight: 400;
  font-family: "Noto Serif JP";
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.3rem;
}

/* サブタイトルの左線 */
.line_left{
  content: '';
  position: relative;
  width:47rem;
  height: 0.1rem;
  left: 5rem;
  bottom: -2.9rem;
  background-color: #707070;
}
.line_left::before {
  content: '';
  position: absolute;
  left: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}

.line_left::after {
  content: '';
  position: absolute;
  right: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}
/* 医院の特徴の左線 */
.feature_line_left{
  content: '';
  position: relative;
  width:46.1rem;
  height: 0.1rem;
  left: 5rem;
  bottom: -2.4rem;
  background-color: #707070;
}
.feature_line_left::before {
  content: '';
  position: absolute;
  left: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}

.feature_line_left::after {
  content: '';
  position: absolute;
  right: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}

/* お支払い方法の左線 */
.pay_line_left{
  content: '';
  position: relative;
  width:45.4rem;
  height: 0.1rem;
  left: 5rem;
  bottom: -2.4rem;
  background-color: #707070;
}
.pay_line_left::before {
  content: '';
  position: absolute;
  left: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}

.pay_line_left::after {
  content: '';
  position: absolute;
  right: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}

/* サブタイトルの右線 */
.line_right{
  content: '';
  position: relative;
  width:47rem;
  height: 0.1rem;
  right: -76rem;
  top: -2rem;
  background-color: #707070;
}
.line_right::before {
  content: '';
  position: absolute;
  left: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}
.line_right::after {
  content: '';
  position: absolute;
  right: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}

/* 医院の特徴とお支払い方法の右線 */
.pay_line_right{
  content: '';
  position: relative;
  width:45.4rem;
  height: 0.1rem;
  right: -77.7rem;
  top: -2rem;
  background-color: #707070;
}
.pay_line_right::before {
  content: '';
  position: absolute;
  left: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}
.pay_line_right::after {
  content: '';
  position: absolute;
  right: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}
.feature_line_right{
  content: '';
  position: relative;
  width:46.1rem;
  height: 0.1rem;
  right: -77rem;
  top: -2.2rem;
  background-color: #707070;
}
.feature_line_right::before {
  content: '';
  position: absolute;
  left: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}
.feature_line_right::after {
  content: '';
  position: absolute;
  right: 0rem;
  bottom: -0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  background-color: #707070;
  border-radius: 50%;
}


.front_subjects_wrapper{
  display: flex;
  width: 112.8rem;
  flex-wrap: wrap;
  row-gap: 3.2rem;
  column-gap: 2.2rem;
  margin: 11.4rem auto 12.1rem;
  font-size: 2rem;
  font-weight: 400;
  font-family: "Noto Sans JP";
}


.front_link {
    width: 20.8rem;
    height: 20.8rem;
    background-color: #78ABC6;
    color: #FFFFFF;
    font-size: 2rem;
    text-align: center;
    box-shadow: 0rem 0.3rem 0.6rem #00000029;
    position: relative;
}

.front_link:hover {
    background-color: #93CDED;
}


.front_braces_icon {
    width: 8.5rem;
    height: 4.2rem;
    margin: 7.4rem auto 3.35rem 5.9rem;
}
.front_cavity_icon {
    width: 7.8rem;
    height: 8.4rem;
    margin: 4.89rem auto 1.65rem 6.5rem;
}

.front_denture_icon {
    width: 8.7rem;
    height: 6.6rem;
    margin: 5.5rem auto 2.8rem 6.1rem;
}

.front_disease_icon {
    width: 9.71rem;
    height: 9.22rem;
    margin: 4.04rem auto 1.65rem 5.5rem;
}

.front_oral_icon {
    width: 11.39rem;
    height: 7.22rem;
    margin: 5.2rem auto 1.7rem 4.7rem;
}

.front_child_icon {
    width: 9.2rem;
    height: 8.2rem;
    margin: 4.75rem auto 1.98rem 5.8rem;
}

.front_prevention_icon {
    width: 8rem;
    height: 8.75rem;
    margin: 4.48rem auto 1.68rem 6.4rem;
}

.front_beauty_icon {
    width: 10.85rem;
    height: 10.1rem;
    margin: 3.17rem auto 1.68rem 5rem;
}

.front_whitening_icon {
    width: 10.1rem;
    height: 8.62rem;
    margin: 3.89rem auto 2.4rem 5.4rem;
}

.front_implant_icon {
    width: 7.21rem;
    height: 8.93rem;
    margin: 3.74rem auto 2.24rem 6.8rem;
}
.front_triangle {
  width: 0;
  height: 0;
  border-left: 0.7rem solid transparent;
  border-right: 0.7rem solid transparent;
  border-bottom: 1.3rem solid #FFFFFF;
  position: absolute;
  bottom: 0.5rem;
  right: 0.8rem;
}

.front_feature{
  color:#C80081;
  font-size: 3rem;
  font-weight: 400;
  font-family: "Noto Serif JP";
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.front_feature_wrapper{
  display: flex;
  column-gap: 14.3rem;
  margin-top: 16.3rem;
  flex-wrap: wrap;
}
.margin_top_0{
  margin-top: 0;
}
.front_feature_wrapper_reverse{
  display: flex;
  margin-left: -1.3rem;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}
.square_wrapper{
  position: relative;
}
.square1{
  width: 49.8rem;
  height: 49.8rem;
  background-color: #B8D1DF;
  position: absolute;
  top: 0;
  left: 5.3rem;
  z-index: -1;
}
.square2{
  width: 49.8rem;
  height: 49.8rem;
  background-color: #EDEDED;
  position: absolute;
  top: 3.7rem;
  left: 8.4rem;
  z-index: -1;
}
.treatment{
  width: 48.5rem;
  height: 48.5rem;
  margin-top: 2.1rem;
  margin-left: 7.5rem;
  margin-bottom: 14.4rem;
}
.front_feature_wrapper_text{
  width: 50rem;
  font-size: 1.6rem;
  font-weight: 400;
  font-family: "Noto Sans JP";
  position: relative;
  margin-top: 3.9rem;
}
.front_feature_wrapper_text_reverse{
  width: 50rem;
  font-size: 1.6rem;
  font-weight: 400;
  font-family: "Noto Sans JP";
  position: relative;
  margin-top: 3.9rem;
  margin-left: 14rem;
}
.flower{
  width: 9.8rem;
  height: 7.8rem;
  position: absolute;
  top: -1.8rem;
  left: -11.2rem;
}
.front_feature_title{
  font-size: 3rem;
  font-weight: 400;
  font-family: "Noto Serif JP";
  padding-bottom: 1.5rem;
  position: relative;
}
.front_feature_title::before{
  content: "";
  position: absolute;
  background-color: #707070;
  width: 50rem;
  height: 0.1rem;
  bottom: 0rem;
  left: 0rem;
}
.front_feature_text{
  font-size: 1.6rem;
  font-weight: 400;
  font-family: "Noto Sans JP";
  color: #707070;
  line-height: calc( 35em / 16 );
  padding-top: 2rem;
}

.mini_square{
  width: 2.5rem;
  height: 2.5rem;
  background-color: #000;
  margin-left: 7.6rem;
  margin-right: 2.5rem;
}
.front_pay{
  color:#C80081;
  font-size: 3rem;
  font-weight: 400;
  font-family: "Noto Serif JP";
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.front_pay_flex{
  display: flex;
  margin-top: 5rem;
  margin-bottom: 2.6rem;
}
.front_pay_text{
  font-size: 1.6rem;
  font-weight: 400;
  font-family: "Noto Sans JP";
}
.front_pay_img{
  display: block;
  width: 114.6rem;
  height: 52.8rem;
  margin: 3rem auto 9rem;
  opacity: 0.8;
}
/* .front_insta_icon{
  display: block;
 
} */
.front_insta{
  display: block;
  width: 15.7rem;
  height: 5.2rem;
  margin: 0 auto;
}
.front_news_info:hover{
  background-color: #DEDEDE;
}

.front_webbutton{
  display: block;
  width: 11.1rem;
  height: 11.1rem;
  margin: 0 auto;
  margin-bottom: 1.6rem;
}
/* ポップアップ ここから*/
.front_news_wrapper.show,
.front_pay_img.show,
.front_pay_outer.show{
  animation: popup 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes popup {
  0% {
    transform: translateY(40px) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1.0);
  }
  80%, 100% {
    opacity: 0.8;
  }
}
/* ポップアップここまで */



@media screen and (max-width:699.98px) {
  .pc_only{
    display: none;
  }

  .sp_only{
    display: block;
  }
  .front_side_bar{
    display: none;
  }
  .front_mainvisual_sp{
    display: block;
    width: 100%;
    height: 60.7rem;
    object-fit: cover;
    object-position: 82% 50%;
  }
  .front_news_info{
    display: flex;
    flex-direction: column;
    padding-top: 2.1rem;
    padding-bottom: 1rem;
    border-bottom: solid 0.1rem #707070;
    gap: 1rem;
  }
  .front_news_wrapper{
    width: 33.5rem;
    /* height: 88.4rem; */
    height: fit-content;
    margin: 8.9rem auto 10rem;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
    padding-top: 3.4rem;
  }
  .front_news_title_en{
    font-size: 10rem;
    top: -9.3rem;
    left:1rem;
  }
  .front_news_main_title{
  color: #C80081;
  font-size: 2.4rem;
  font-weight: 400;
  font-family: "Noto Serif JP";
  text-align: center;
  margin-bottom: 1rem;
}
  .front_news_flex{
    display: flex;
    width: 100%;
    align-items: center;
  }
  .front_news_date{
    font-size: 1.6rem;
    font-weight: 400;
    width: 30%;
  }
  .front_news_category{
    font-size: 1.5rem;
    font-weight: 400;
    width: 70%;
  }
  .front_news_title{
    font-size: 1.6rem;
    font-weight: 400;
    width: 100%;
  }

  .front_medical_care_subjects{
    color:#C80081;
    font-size: 2.4rem;
    font-weight: 400;
    font-family: "Noto Serif JP";
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  /* サブタイトルの左線 */
  .line_left{
    content: '';
    position: relative;
    width:10rem;
    height: 0.1rem;
    left: 1.1rem;
    bottom: -2rem;
    background-color: #707070;
  }
  .line_left::before {
    content: '';
    position: absolute;
    left: 0rem;
    bottom: -0.1rem;
    width: 0.3rem;
    height: 0.3rem;
    background-color: #707070;
    border-radius: 50%;
  }

  .line_left::after {
    content: '';
    position: absolute;
    right: 0rem;
    bottom: -0.1rem;
    width: 0.3rem;
    height: 0.3rem;
    background-color: #707070;
    border-radius: 50%;
  }
  /* 医院の特徴の左線 */
  .feature_line_left{
    content: '';
    position: relative;
    width:10rem;
    height: 0.1rem;
    left: 1.1rem;
    bottom: -2rem;
    background-color: #707070;
  }
  .pay_line_left{
    content: '';
    position: relative;
    width:10rem;
    height: 0.1rem;
    left: 1.1rem;
    bottom: -2rem;
    background-color: #707070;
  }

  /* サブタイトルの右線 */
  .line_right{
    content: '';
    position: relative;
    width:10rem;
    height: 0.1rem;
    right: -26rem;
    top: -1.7rem;
    background-color: #707070;
  }
  .line_right::before {
    content: '';
    position: absolute;
    left: 0rem;
    bottom: -0.1rem;
    width: 0.3rem;
    height: 0.3rem;
    background-color: #707070;
    border-radius: 50%;
  }
  .line_right::after {
    content: '';
    position: absolute;
    right: 0rem;
    bottom: -0.1rem;
    width: 0.3rem;
    height: 0.3rem;
    background-color: #707070;
    border-radius: 50%;
  }
  /* 医院の特徴とお支払い方法の右線 */
  .pay_line_right{
    content: '';
    position: relative;
    width:10rem;
    height: 0.1rem;
    right: -26.4rem;
    top: -1.7rem;
    background-color: #707070;
  }
  .feature_line_right{
    content: '';
    position: relative;
    width:10rem;
    height: 0.1rem;
    right: -26.4rem;
    top: -1.7rem;
    background-color: #707070;
  }



  .front_subjects_wrapper{
    display: flex;
    width: 33.5rem;
    flex-wrap: wrap;
    row-gap: 3.5rem;
    column-gap: 3.5rem;
    margin: 6rem auto 10rem;
  }


  .front_link {
    width: 15rem;
    height: 15rem;
    background-color: #78ABC6;
    color: #FFFFFF;
    font-size: 1.8rem;
    text-align: center;
    box-shadow: 0rem 0.3rem 0.6rem #00000029;
    position: relative;
  }

  .front_link:hover {
    background-color: #93CDED;
  }

  .front_triangle {
    width: 0;
    height: 0;
    border-left: 0.7rem solid transparent;
    border-right: 0.7rem solid transparent;
    border-bottom: 1.3rem solid #FFFFFF;
    position: absolute;
    bottom: 0.5rem;
    right: 0.8rem;
  }

  .front_braces_icon {
    width: 8.5rem;
    height: 4.1rem;
    margin: 3.2rem auto 2.7rem 3.3rem;
  }
  .front_cavity_icon {
    width: 6rem;
    height: 6.4rem;
    margin: 2rem auto 1.6rem 4.5rem;
  }

  .front_denture_icon {
    width: 7.4rem;
    height: 5.6rem;
    margin: 2rem auto 2.4rem 3.8rem;
  }

  .front_disease_icon {
    width: 7.3rem;
    height: 6.9rem;
    margin: 1.4rem auto 1.7rem 3.9rem;
  }

  .front_oral_icon {
    width: 9.1rem;
    height: 5.8rem;
    margin: 1.7rem auto 0.5rem 3rem;
  }

  .front_child_icon {
    width: 8rem;
    height: 7.1rem;
    margin: 1.1rem auto 1.8rem 3.5rem;
  }

  .front_prevention_icon {
    width: 6.7rem;
    height: 7.3rem;
    margin: 1.8rem auto 0.9rem 4rem;
  }

  .front_beauty_icon {
    width: 8.6rem;
    height: 8rem;
    margin: 1.8rem auto 0.2rem 3.1rem;
  }

  .front_whitening_icon {
    width: 8.6rem;
    height: 7.4rem;
    margin: 1.6rem auto 1.1rem 3.2rem;
  }

  .front_implant_icon {
    width: 5.9rem;
    height: 7.3rem;
    margin: 1.5rem auto 1.2rem 4.6rem;
  }
  .front_triangle {
    width: 0;
    height: 0;
    border-left: 0.7rem solid transparent;
    border-right: 0.7rem solid transparent;
    border-bottom: 1.3rem solid #FFFFFF;
    position: absolute;
    bottom: 0.5rem;
    right: 0.8rem;
  }
  .front_feature{
    color:#C80081;
    font-size: 2.4rem;
    font-weight: 400;
    font-family: "Noto Serif JP";
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .front_feature_wrapper{
    display: flex;
    column-gap: 14.3rem;
    margin-top: 7.3rem;
    flex-wrap: wrap;
    flex-direction: column;
  }
  .margin_top_0{
    margin-top: 0;
  }
  .front_feature_wrapper_reverse{
    display: flex;
    gap: 1.3rem;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .square1{
    width: 31.5rem;
    height: 31rem;
    background-color: #B8D1DF;
    position: absolute;
    top: -2rem;
    left: 2rem;
    z-index: -1;
  }
  .square2{
    width: 31.5rem;
    height: 31rem;
    background-color: #EDEDED;
    position: absolute;
    top: 1rem;
    left: 4rem;
    z-index: -1;
  }
  .square1_reverse{
    width: 32.5rem;
    height: 32rem;
    background-color: #B8D1DF;
    position: absolute;
    top: -1.6rem;
    left: 2.5rem;
    z-index: -1;
  }
  .square2_reverse{
    width: 32.5rem;
    height: 32rem;
    background-color: #EDEDED;
    position: absolute;
    top: 1rem;
    left: 4.6rem;
    z-index: -1;
  }
  .treatment{
    width: 30.7rem;
    height: 30.7rem;
    display: block;
    margin: 0 auto;
  }
  .treatment2{
    width: 31.6rem;
    height: 31.6rem;
    display: block;
    margin: 0 auto;
    position: relative;
    left: 0.5rem;
  }
  .front_feature_wrapper_text{
    width: 35.5rem;
    position: relative;
    margin: 3.6rem auto 0;
  }
  .front_feature_title{
    font-size: 1.8rem;
    font-weight: 400;
    font-family: "Noto Serif JP";
    padding-bottom: 0.7rem;
    position: relative;
    margin-left: 3.5rem;
  }
  .front_feature_title::before{
    content: "";
    position: absolute;
    background-color: #707070;
    width: 32rem;
    height: 0.1rem;
    bottom: 0rem;
    left: 0rem;
  }
  .flower{
    width: 3.5rem;
    height: 2.8rem;
    position: absolute;
    top: 0.6rem;
    left: 0rem;
  }
  .front_feature_wrapper_text_reverse{
    width: 35.5rem;
    margin: 2.8rem auto 0;
  }
  .front_feature_text{
    font-size: 1.4rem;
    font-weight: 400;
    font-family: "Noto Sans JP";
    line-height: calc( 31em / 14 );
    padding-top: 1rem;
    padding-bottom: 9.6rem;
    margin-left: 3.5rem;
  }
  .mini_square{
    width: 0rem;
    height: 0rem;
    margin-left: 5.1rem;
    margin-right: 0rem;
  }
  .front_pay{
    color:#C80081;
    font-size: 2.4rem;
    font-weight: 400;
    font-family: "Noto Serif JP";
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .front_pay_outer{
    width: 33.5rem;
    height: 92rem;
    background-color: #FFF;
    margin: 0 auto 9rem;
    padding-top: 3.5rem;
    border-radius: 6rem 0 6rem 0;
    box-shadow: 0 1rem 0.7rem #00000029;
  }
  .front_pay_img2{
    width: 33.5rem;
    height: 23.8rem;
    display: block;
    margin-bottom: 3rem;
  }
  .front_pay_img3{
    width: 32.5rem;
    height: 42rem;
  }
  .front_pay_text{
    margin-top: 1rem;
  }
  .front_pay_text2{
    font-size: 1.6rem;
    font-weight: 400;
    font-family: "Noto Sans JP";
    line-height: calc( 32 / 16);
    width: 31.5rem;
    margin: 0 auto 3rem;
  }
  .front_bar{
    width: 100%;
    height: 8rem;
    position: fixed;
    color: white;
    background-color: #668EC4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 400;
    font-family: "Noto Serif JP";
    bottom: 0rem;
    z-index: 9;
  }
  .front_bar::after{
    content: "";
    display: inline-block;
    width: 22rem;
    height: 0.1rem;
    background-color: #FFF;
    position: absolute;
  }
  .front_correct{
    margin-bottom: 1rem;
  }
}