@charset "utf-8";
/* CSS Document */

/*-------------------------
  FIRST VIEW
-------------------------*/
.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.grid_item{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Zen Old Mincho', serif;
  font-size: min(4.44vw, 4rem);
}
.grid_item:nth-child(4){
  background-color: #D4ECEA;
}
.grid_item:nth-child(6){
  background-color: #B3E5FB;
}

/*-------------------------
  コンテンツ幅
-------------------------*/
.container{
  max-width: 1080px;
  margin: min(18.5vw, 200px) auto 0;
  padding: 0 20px;
}
@media screen and (max-width:600px) {
  .container{
    max-width: 580px;
    padding: 0 10px;
  }
}


/*-------------------------
  SECTION trouble　悩み
-------------------------*/
.trouble{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.flex_item{
  order: 2;
  margin-bottom: min(18.5vw, 200px);
}
.flex_item:nth-child(2n){
  width: 40%;
  max-width: 400px;
}
.flex_item:nth-child(2n-1){
  max-width: 60%;
}
.flex_item:nth-child(6){
  width: 100%;
  max-width: 56%;
}
.flex_item:nth-child(7){
  width: 40%;
}
.trouble_2{
  order: 1;
}
.issue{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-right: none;
}
.issue>div{
  text-align: center;
  margin-bottom: 50px;
  width: 33%;
}
.issue + p{
  text-align: center;
  font-size: min(1.66vw, 1.5em);
}
.trouble_1 h2{
  font-size: 1.5rem;
  padding-bottom: 50px;
}
.trouble_1 p{
  font-size: min(1.66vw, 1.5rem);
}
.trouble_3 h2{
  font-size: 1.5rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}
/*.trouble_3 h2::after{
  content: "？";
  position: absolute;
  bottom: 0px;
  right: 0;
  transform: rotate(45deg);
}*/
.hatena{
  font-size: 1em;
}
.recommend{
  font-size: 1.5rem;
  text-align: center;
  margin-top: 50px;
}
.trouble_4 img:nth-child(2){
  display: none;
}
.trouble_5{
  font-size: 1.75rem;
  line-height: 2;
}
.trouble_6{
  position: relative;
  top: -80px;
}
.photo1{
  max-width: 300px;
  aspect-ratio: 16/9;
}
.photo2{
  position: absolute;
  max-width: 300px;
  height: auto;
  top: 175px;
  left: 50px;
}

@media screen and (max-width:600px){
  .trouble{
  display: block;
  margin-bottom: 70px;
  }
  .trouble_1 p{
    font-size: 0.875rem;
  }
  .flex_item{
    margin-bottom: 0;
  }
  .flex_item:nth-child(2n-1){
    max-width: 100%;
  }
  .flex_item:nth-child(2n) {
    max-width: 100%;
    width: 100%;
  }
  .trouble_1 h2 {
    text-align: center;
    vertical-align: middle;
    background-color: #A2FF93;
    padding-bottom: 20px;
    padding-top: 20px;
    margin-bottom: 40px;
    position: relative;
  }
  .trouble_1 h2:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid #A2FF93;
}
  .trouble_3 h2{
    text-align: center;
    vertical-align: middle;
    background-color: #D4ECEA;
    padding-bottom: 20px;
    padding-top: 20px;
    margin-bottom: 40px;
}
  .trouble_3 h2:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -15px;
    border: 15px solid transparent;
    border-top: 15px solid #D4ECEA;
  }
  .trouble_4{
  display: none;
  }
  .black_arrows{
    margin-top: -30px;
  }
  .black_arrows img{
    margin: 0 auto;
  }
  .trouble_5{
    margin-top: 0;
    margin-bottom: 20px;
  }
  .trouble_5 p{
    font-size: 1.2rem;
    line-height: 1.5;
  }
  .emph{
    font-size: 1.6rem;
    color: #087B94;
  }
  .trouble_6{
    position: static;
    top: 0;
  }
  .flex_item:nth-child(7){
    width: 100%;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
}
  .photo2{
    position: static;
  }
}

/*-------------------------
  SECTION Safety　当院の安全について
-------------------------*/
.safeties{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin: 200px 0;
}
.safety{
  order: 2;
}
.safety._02{
  width: calc(400 / 1080 * 100%);
  height: auto;
  max-width: 400px;
  order: 1;
  margin-bottom: 100px;
}
.safety._02 img{
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
}
.safety._01{
  width: calc(680 / 1080 * 100% - 50px);
  margin-left: 50px;
  margin-bottom: 100px;
}
.safety._01 h2{
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.safety._01 h2 span{
  font-size: 3rem;
  font-weight: bold;
  padding-left: 2rem;
}
.safety._01 p strong{
  font-size: 1.25rem;
  font-weight: bold;
}
.safety._01 p:nth-child(3){
  margin-top: 10px;
  line-height: 2em;
}
.safety._03{
  width: calc(680 / 1080 * 100% - 50px);
  margin-right: 50px;
}
.safety._03 h2{
  font-size: 1.25rem;
  margin-bottom: 10px;
  text-align: center;
}
.safety._03 h2 span{
  font-size: 3rem;
  font-weight: bold;
}
.safety._03 p strong{
  font-size: 1.25rem;
  font-weight: bold;
}
.safety._03 p:nth-child(3){
  margin-top: 10px;
  line-height: 2em;
}
.safety._04{
  width: calc(400 / 1080 * 100%);
  height: auto;
  max-width: 400px;
}
@media screen and (max-width:600px) {
  .safeties{
    display: block;
    margin: 0;
  }
  .safety._01, .safety._03{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .safety._01, .safety._03{
  margin-top: 20px;
  margin-bottom: 50px;
  }
  .safety._01 h2{
    text-align: center;
  }
  .safety._02, .safety._04{
    display: none;
  }
}
/*-------------------------
  SECTION dentist(医師見出し spのみ表示) 
-------------------------*/
.midashi{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
}
.midashi div{
  width: 50%;
}
.midashi div:first-child{
  background-image: url("../images/Page-1.png");
}
.midashi div p:first-child{
  font-size: 1rem;
  padding-left: 10px;
  padding-top: 5px;
}
.midashi div p:not(:first-child){
  font-size: 3rem;
  text-align: center;
}


/*-------------------------
  SECTION flow(施術の流れ) 
-------------------------*/
.flow{
  margin-bottom: 200px;
}
.flow h2{
  text-align: center;
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: bold;
}
.flow > p{
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 40px;
}
.step {
  width: calc(508 / 1080 * 100%);
}
.step p{
  border-radius: 10px;
  font-size: min(2.77vw, 2.5rem);
  text-align: center;
  background-color: #D4ECEA;
  padding: 5px 0;
}
.step:nth-child(4){
  margin-left: calc(127 / 1080 * 100%);
}
.step:nth-child(5){
  margin-left: calc(254 / 1080 * 100%);
}
.step:nth-child(6){
  margin-left: calc(381 / 1080 * 100%);
}
.step:nth-child(7){
  margin-left: calc(508 / 1080 * 100%);
}
.arrow{
  text-align: right;
  padding-right: 20px;
  margin: .5rem 0;
}
@media screen and (max-width:600px){
  .flow{
    margin-bottom: 100px;
  }
  .flow h2{
    font-size: 1.25rem;
    margin-top: 70px;
    margin-bottom: 50px;
    font-weight: normal;
  }
  .flow span{
    font-size: 3rem;
  }
  .flow > p{
    text-align: left;
    margin-bottom: 20px;
  }
  .step:not(:first-child){
    width: 100%;
    margin-left: 0;
  }
  .step p{
    font-size: 2.5rem;
  }
  .arrow{
    text-align: center;
    padding-right: 0;
  }
}

/*-------------------------
  Section OPTIONS ３つのコース
-------------------------*/
.tablewrapper{
  text-align: center;
  margin: 0 auto;
  padding: 50px;
}
.tablewrapper h2{
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
.options{
  width: 100%;
  border-collapse: collapse;
}
.options tbody tr:not(:first-child){
  border-bottom: 1px solid #333;
}
.options thead th{
  padding: .7em 0;
  background-color: #d4ecea;
  vertical-align: middle;
  font-size: min(1.6vw, 1.5rem);
  font-weight: bold;
}
.table_flex{
  display: flex;
  justify-content: center;
  align-items: center;
}
.table_flex p:first-child{
  width: 50px;
  height: auto;
  margin-right: 10px;
}
.options tbody th{
  border-bottom: 1px solid #333;
  background-color: #ddd;
  writing-mode: vertical-rl;
  vertical-align: middle;
  text-align: center;
  font-weight: bold;
  width: 7%;
  padding: 10px 0;
}
.options tbody td{
  font-size: 1rem;
  width: 31%;
  text-align: left;
  vertical-align: top;
  padding: 1rem 2rem;
}
.bindsell{
  border-top: none;
}
.annotation{
  font-size: .8rem;
  text-align: right;
  margin-bottom: -1rem;
  margin-right: -1rem;
}
@media screen and (max-width:600px) {
  .tablewrapper{
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .tablewrapper h2{
    font-size: 3rem;
    margin-bottom: 50px;
    line-height: 1;
  }
  .tablewrapper span .three{
    font-size: 1rem;
  }
  .tw{
    overflow: auto;
  }
  .options{
    width: 1440px;
    table-layout: fixed;
  }
  .options thead th{
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    font-weight: bold;
    font-size: 1.5rem;
  }
  .options thead th:first-child{
    top: 0;
    left: 0;
    z-index: 2;
    width: 15%;
    background-color: #ddd;
  }
  .options tbody th{
    position: sticky;
    left: 0;
    background-color: #ddd;
  }
  .options tbody td{
    width: 100%;
  }
}

/*-------------------------
  SECTION detail　３つのコースの詳細
-------------------------*/
.detail{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -ms-align-items: center;
  align-items: flex-start;
  margin-bottom: 100px;
  justify-content: space-between;
}
.reverse{
  flex-direction: row-reverse;
}
.explain{
  width: 60%;
  background-color: #B3E5FB;
  border-radius: 3%;
  padding: 2rem 1rem;
}
.over1{
  width: calc(60% + 80px);
  margin-right: -80px;
  padding-right: 100px;
}
.over2{
  width: calc(60% + 80px);
  margin-left: -80px;
  padding-left: 100px;
}
.explain dt{
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}
.dt_flex{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-direction: column;
  justify-content: center;
  -ms-align-items: center;
  align-items: center;
}
.dt_flex p:first-child{
  width: 60px;
  height: auto;
  margin-bottom: -5px;
}
.explain dd{
  font-size: 1.25rem;
  text-align: justify;
  margin-bottom: 1rem;
  padding: 1rem;
}
.detail .indent{
  text-indent: 0em;
}
.indent .emph{
  font-size: 1.5rem;
  color: #222;
  font-weight: bold;
}
.indent .underline{
  background:linear-gradient(transparent 70%, #e5eb34 0%);
}
.detail > .photo{
  width: 41.6%;
  max-width: 450px;
  position: relative;
  top: -50px;
}
.reserve a{
  display: block;
  text-align: center;
  font-size: min(4.5vw, 1.5rem);
  font-weight: bold;
  color: #fff;
  padding: 1rem -0px;
  border-radius: 1rem;
  width: 80%;
  margin: 0 auto;
}
@media screen and (max-width:600px) {
  .detail{
    flex-direction: column-reverse;
    align-items: center;
    margin-bottom: 100px;
    justify-content: center;
  }
  .reverse{
    flex-direction: column-reverse;
  }
  .explain{
    width: 100%;
    padding: 2rem 1rem;
  }
  .over1{
    width: 100%;
    margin-right: auto;
    margin-top: -50px;
    padding-right: 0;
    padding-top: 70px;
  }
  .over2{
    width: 100%;
    margin-left: auto;
    margin-top: -50px;
    padding-left: 0;
    padding-top: 70px;
  }
  .detail > .photo{
    width: 100%;
    max-width: 450px;
    position: static;
    z-index: 100;
  }
}

/*-------------------------
  SECTION question よくある質問 
-------------------------*/
.question{
  margin-bottom: 200px;
}
.question h2{
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 50px;
}
@media screen and (max-width:600px) {
  .question{
    margin-bottom: 70px;
  }
}

/*-------------------------
  SECTION reserve（予約） 
-------------------------*/
.main_reserve{
  margin-bottom: 200px;
}
.main_reserve > .reserve{
  width: 60%;
  margin: 0 auto;
}
.calender{
  width: max(6.11%, 50px);
  position: relative;
  bottom: 3px;
  margin: 0 auto;
}
.botton p{
  display: inline-block;
  margin-left: 1.5rem;
}
.wide{
  background-color: #D4ECEA;
  margin-bottom: 200px;
}

@media screen and (max-width:600px) {
  .main_reserve{
    margin-bottom: 70px;
  }
  .calender{
    width: max(6.11%, 50px);
  }
  .main_reserve > .reserve{
    width: 80%;
  }
}

/*-------------------------
  SECTION atention 注意書き
-------------------------*/
section.atention{
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}
.atention p{
  margin-left: 500px;
  padding-top: -154px;
  position: relative;
  bottom: 154px;
  height: 0;
}
.message{
  padding-bottom: 1.5rem;
}
.message h3{
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  padding: .5em 0;
}
.message dl{
  background-color: #fff;
  font-size: .675rem;
  padding: 1rem;
  margin: 0 auto;
  width: 60%;
}
.message dd{
  margin: 1rem;
}

@media screen and (max-width:600px) {
  .wide{
    margin-bottom: 70px;
  }
  .message dl{
    background-color: #fff;
    font-size: .675rem;
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    max-width: 540px;
  }
}

/*-------------------------
  SECTION information　連絡先等
-------------------------*/
section.flex{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
}
.data{
  width: 50%;
}
.map{
  width: 50%;
  aspect-ratio: 16/9;
}
.map iframe{
  width: 100%;
  height: 100%;
}
.data h2{
  font-size: min(4.444vw, 3rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}
dl.flex{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
}
.data dt{
  width: 6rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: min(1.48vw, 1rem);
}
.data dd{
  width: calc(100% - 6rem);
  margin-bottom: 0.5rem;
  font-size: min(1.48vw, 1rem);
}

@media screen and (max-width: 600px) {
  section.flex{
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 70px;
  }
  .data{
    width: 100%;
  }
  .data h2{
    font-size: 3rem;
  }
  .data dt, .data dd{
    font-size: 1rem;
  }
  .map{
    width: 100%;
    aspect-ratio: 16/9;
    margin-top: 50px;
  }
}

@media screen and (max-width: 390px) {
  .sp390{
    display: block;
  }
}
/*-------------------------
  マウスホバーの設定
-------------------------*/
.c-btn.slip {
  background: transparent;
  border: none;
  position: relative;
  border-radius: 0;
  z-index: 1;
}
.c-btn.slip::before,
.c-btn.slip::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: auto;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}
.c-btn.slip::before {
  background: #FF6D2F;
  border: 2px solid #FF6D2F;
  border-radius: 10px;
  z-index: -1;
}
.c-btn.slip::after {
  background: #fff6dc;
  z-index: -2;
  border-radius: 10px;
}
.c-btn.slip:hover {
  color: #FF6D2F;
}
.c-btn.slip:hover::before {
  background: transparent;
}

/*-------------------------
  診察時間のバー
-------------------------*/
  .card{
    width: 600px;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-wrap: nowrap;
    -ms-align-items: center;
    align-items: center;
    justify-content: flex-start;
    background-color: #f9ffab;
    padding: 20px 20px 20px 0;
    position: fixed;
    z-index: 30000;
    top: 200px;
    right: -550px;
    transition: 1s;
  }
  .card:hover{
  transform: translateX(-470px);
  transition: 1s;
  }
  .timetable table{
    width: 430px;
  }
  .timetable{
    width: 500px;
    text-align: center;
    vertical-align: middle;
    border-collapse: collapse;
  }
  .timetable thead{
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    border: 1px solid #333;
    vertical-align: middle;
  }
  .timetable thead tr{
    height: 50px;
    vertical-align: middle;
  }
  .timetable tbody tr{
    border: 1px solid #333;
  }
  .timetable tbody tr{
    height: 40px;
  }
  .timetable th{
    border-right: 1px solid #333;
    vertical-align: middle;
  }
  .timetable thead th:first-child{
    font-weight: normal;
    width: 33%;
  }
  .timetable td{
    border-right: 1px solid #333;
    vertical-align: middle;
  }
  .spotlight h4{
    writing-mode: vertical-rl;
    font-size: 1.5rem;
    vertical-align: middle;
    text-align: center;
    letter-spacing: .2rem;
    margin-right: 1rem;
  }
.timetable .annotation{
  text-align: left;
  text-indent: 1rem;
}
@media screen and (max-width:600px){
    .timetable{
    width: 100%;
  }
    .timetable table{
    width: 100%;
  }
}
/*-------------------------
  予約はこちらのバー 
-------------------------*/
  .reserve_card{
    background-color: #b2fc90;
    width: 620px;
    height: 150px;
  }
  .reserve_card h4{
    writing-mode: vertical-rl;
    font-size: 1.5rem;
    vertical-align: middle;
    text-align: center;
    letter-spacing: 100%;
    margin-right: 1rem;
  }
  .reserve_card{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 30000;
    top: 400px;
    right: -570px;
    transition: 1s;
  }
  .reserve_card:hover{
    transform: translateX(-570px);
    transition: 1s;
    }
  .reserve_card h5{
    font-size: 2.5rem;
    margin-bottom: -0.5rem;
  }
  .reserve_card h5 span{
    font-size: 1.25rem;
  }
  .reserve_card p:nth-child(2){
    font-size: 1.875rem;
    margin-bottom: -0.5rem;
  }
  .reserve_card p:nth-child(3){
    font-size: 1rem;
    align-self: flex-end;
    margin-bottom: -0.5em;
  }
  .reserve_card p:nth-child(4){
    font-size: 1rem;
    align-self: flex-end;
  }
  .reserve_telephone{
    background-color: #B2BEFE;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .2rem .5rem .2rem .5rem;
    border-radius: 5px;
    width: 256px;
    height: 132px;
  } 
  .reserve_telephone p:nth-child(2){
    font-weight: bold;
  }
  .reserve_web{
    background-color: #FFB0B0;
    padding: .2rem .5rem .2rem .5rem;
    border-radius: 5px;
    width: 256px;
    height: 132px;
    margin-right: 10px;
    }
  .reserve_web h5{
    text-align: center;
  } 
  .reserve_web p{
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: -1rem;
    line-height: 2rem;
  }
  .reserve_web p span{
    font-size: 1rem;
    font-weight: normal;
  }
  .reserve_web .click{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
  }
/*  .card h4 span{
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    opacity: .5;
    border-radius: 50%;
    background-color: #333;
    position: absolute;
  }
  .card h4 span::after, h4 span::before{
    content: "";
    display: block;
    width: 5px;
    height: 40px;
    opacity: 1;
    background-color: #fff;
    position: absolute;
    top: 0%;
    left: 45%;
    transform: translate(-50%, -50%)
  }
  .card h4 span::after{
    transform: rotate(45deg)
  }  
  .card h4 span::before{
    transform: rotate(-45deg)
  }*/
/*-------------------------
  600px以下：サイドバーの非表示
-------------------------*/
  @media screen and (max-width:600px) {
    .card, .reserve_card{
      display: none;
    }
  }
  /*-------------------------
  600px以下：下部アクションボタンの常時表示
-------------------------*/
@media screen and (max-width:600px){
  .action_btn{
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-wrap: nowrap;
    position: fixed;
    bottom: 0;
    z-index: 10000;
    left: 0;
    width: 100vw;
  }
  .action_btn p{
    width: 50%;
    font-size: min(10.738vw, 2rem);
    background-color: #FF006E;
    color: #fff;
    padding-top: calc(50px - 2rem);
    padding-bottom: calc(50px - 2rem);
    text-align: center;
    text-transform: uppercase;
  }
  .action_btn p:first-child{
    background-color: #0F00DB;
  }
}