/* スクロールの動きを滑らかにする */
html{
   scroll-behavior: smooth;
}

a{
    text-decoration: none;
}

@media screen and (max-width: 960px) {
    #main{
        /* display: flex; */
        margin: 0 100px;
    }
  }
  
  /* モバイル向けレイアウト */
  @media screen and (max-width: 600px) {
    #main{
        margin-left: 5px;
        margin-right: 5px;
    }
  } 

  .page_title{
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    max-width: 1680px;
    }

    @media screen and (max-width: 960px) {
      .page_title{
          display: block;
      }
    }
    
    /* モバイル向けレイアウト */
    @media screen and (max-width: 520px) {
      .page_title{
          margin-left: 5px;
          margin-right: 5px;
          display: block;
      }
    } 
  
  .box{
    max-width: 420px; /* 最大幅 */
    min-width: 320px; /* 最小幅 */
  }
  
  @media screen and (min-width:960px){
    .box {
      display: flex;
    }
  }
  @media screen and (max-width:730px){
    .box{
     min-width: none;
    }
  }
  
  .midashi_jp{
    font-weight: bold;
    color:#404040;
    font: 3.2rem "Lato", sans-serif;
    letter-spacing: 0.08em;
    }
    @media screen and (max-width:700px){
      .midashi_jp{
        font: 2rem "Lato", sans-serif;
      }
  
    @media screen and (max-width:450px){
      .midashi_jp{
        font: 1.5rem "Lato", sans-serif;
        font-weight: bold;
        }
      }
    }
    
  .box_eng{
    height: 20px;
    margin-top: 45px;
  }

  @media screen and (max-width:959px){
    .box_eng{
      height: 20px;
      margin-top: 10px;
    }
  }

  .midashi_eng{
    font-size: 14px;
    color:#404040;
    letter-spacing: .5em;
  }
  

  /* 両端margin */
  #main_width{
    width: 960px;
  }

  @media screen and (max-width:960px){
    #main_width{
      width: 100%;
      margin-left: 0px;
      margin-right: 0px;
      overflow: hidden;
    }
  }
  
  @media screen and (max-width:600px){
    #main_width{
      width: 100%;
      margin-left: 0px;
      margin-right: 0px;
      overflow: hidden;
    }
  }

  .midashi {
    position: relative;
    font-weight: bold;
    color:rgb(40, 40, 40);
    font: 3.2rem "Lato", sans-serif;
    letter-spacing: 0.08em;
    }
    
    .midashi_after {
    font-size: 14px;
    color:rgb(40, 40, 40);
    margin-top:  10px;
    margin-left: 20px;
    background-color: rgb(255, 255, 255);
    }


  .area-buttons{
    display: flex;
    justify-content: center;
  }

@media screen and (max-width: 700px) {
    .area-buttons{
      display: flex;
      flex-direction: column;
      align-items:center;
    }
  }
  
  /* モバイル向けレイアウト */
  @media screen and (max-width: 600px) {
    .area-buttons{
      margin: 15px 5px;
      display: flex;
      flex-direction: column;
      align-items:center;
    }
  } 

  .btn-area{
    height: 150px;
    width: 200px;
    margin: 50px 20px;
    text-align: center; 
    font-size: 22px;
    border-radius: 5px;
    color: #404040;
    font-weight: bold; 
    background-color: #FCB55d;
    justify-content:center;
    align-items: center;
    display: flex;
    text-decoration: none;
}

@media screen and (max-width: 700px) {
  .btn-area{
    margin: 15px 0;
    font-size: 20px;
    height: 80px;
    width: 220px;
  }
} 

  /* モバイル向けレイアウト */
  @media screen and (max-width: 600px) {
    .btn-area{
      margin: 12px 0;
      font-size: 20px;
      height: 50px;
      width: 280px;
    }
  } 


.title {
    background-color: #d2e8c9;
    color: #404040;
    font-weight: bold;
    font-size: 20px;
    line-height: 20px;
    padding: 25px 40px;
}

@media screen and (max-width: 960px) {
    .title{
      margin-left: 5px;
      margin-right: 5px;
    }
  }
  
  /* モバイル向けレイアウト */
  @media screen and (max-width: 600px) {
    .title{
        margin-left: 5px;
        margin-right: 5px;
        text-align: center;
    }
  } 

  @media screen and (max-width: 800px) {
    .box-r{
      margin-top: 30px;
     text-align: center;
    }
  }
  
  /* モバイル向けレイアウト */
  @media screen and (max-width: 600px) {
    .box-r{
      margin-top: 30px;
      text-align: center;
    }
  }

.box-l{
  min-width: 320px;
}


@media screen and (max-width: 800px) {
  .box-l{
   margin-left: 10px;
   text-align: center;
  }
}

/* モバイル向けレイアウト */
@media screen and (max-width: 600px) {
  .box-l{
    margin-left: 0;
    text-align: center;
    font-size: 16px;
  }
}

.box1{
    display: flex;
    margin-top: 30px;
  }

  /* タブレット向けレイアウト */
  @media screen and (max-width: 800px) {
    .box1{
        margin-left: 5px;
        margin-right: 5px;
        display: block;
    }
  }

  /* モバイル向けレイアウト */
  @media screen and (max-width: 600px) {
    .box1{
        margin-left: 5px;
        margin-right: 5px;
        display: block;
        text-align: center;
        justify-content: center;
    }
  }
  
  .box2{
    display: flex;
    text-align: center;
    justify-content: space-between;
    margin-top: 50px;
    margin-bottom: 30px;
    max-width: 800px;
  }

  @media screen and (max-width: 800px) {
    .box2{
     display: block;
    }
  }
  
  /* モバイル向けレイアウト */
  @media screen and (max-width: 600px) {
    .box2{
        display: flex;
        margin-left: 5px;
        margin-right: 5px;
        flex-direction: column;
        align-items:center;
      }
  }

.clinics{
    color: #404040;
    font-weight: bold;
    font-size: 20px;
}

 /* モバイル向けレイアウト */
 @media screen and (max-width: 600px) {
  .clinics{
    font-size: 20px;
  }
}

.address{
    font-size: 19px;
    color: #404040;
}

.route{
    font-size: 19px;
    color: #404040; 
}

hr{
  color: #404040;
  margin-bottom: 30px;
  }

.nedan{
    color: #404040;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 50px;
    font-size: 18px;
}

.buttons{ 
    margin: 50px 0 30px;
    text-align: center;
    position:relative; 
    display: flex;
    justify-content:space-around;
 }

.gray{
    background: #D7D7D7;
}

 .green{
    background: #BAECA8;
 }

 .orange{
    background: #FCB55d;
 }

.btn{
    padding: 20px 45px;
    color: #404040;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
}

@media screen and (max-width: 800px) {
    .btn{
     display: block;
     font-size: 20px;
     margin-bottom: 20px;
     max-width: 320px;
     height: auto;
    }
  }
  
  /* モバイル向けレイアウト */
  @media screen and (max-width: 600px) {
    .btn{
        margin-left: 5px;
        margin-right: 5px;
        display: block;
        font-size: 18px;
        width: 280px;
        height: auto;
        padding: 15px;
        margin-bottom: 15px;
    }
  } 

img.clinic{
    width: 230px;
    height: 230px;
    border-radius: 2px;
}

@media screen and (max-width: 960px) {
  img.clinic{
   width: 180px;
   height: 180px;
  }
}

/* モバイル向けレイアウト */
@media screen and (max-width: 600px) {
  img.clinic{
    width: 220px;
    height: 220px;
  }
}