/***********************************/
/*************** 共通 **************/
/**********************************/
html{
  scroll-behavior:smooth;
  box-sizing: border-box;
}
img{
  max-width: 100%;
  height:auto;
}
body {
	width: 100%;
  font-size: 15px;
  color: #666;
  background-color:#c7e3f0;
  font-family: "M PLUS Rounded 1c";
}
/*************** header **************/
header {
  width: 100%;
  background-color: #fff;
}
.border{
  width:100%;
  height: 0.3rem;
  background-size: auto auto;
  background-color: #3aabd2;
}
.logo {
  line-height: 50px;
  padding: 1rem;
  display: flex;
}
.logo img{
  height: 70px;
  padding-right: 1rem;
}
.head_title {
  vertical-align: middle;
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gnav {
  display: flex;
  align-items: center;
  padding: 1rem;
}
.gnav ul {
  display: flex;
}
.gnav li {
  border-right: 1px solid #ccc;
  padding-right: 1rem;
  padding-left: 1rem;
  display: inline-block;
  height:50px;
  line-height:50px;
  font-weight: bold;
  background-image: url(../img/silhouette_huti.png);
  background-size:contain;
  background-repeat: no-repeat;
  background-position: center;
}
.gnav li:nth-child(3) {
  border: none;
}
.gnav li:last-child{
  background-image:none;
  border: none;
}
.gnav li:nth-child(4) {
  color: #ffffff;
  background-color:#df5656;
  padding:0 1rem;
  border-radius: 5px;
  background-image:none;
  border: none;
}
.gnav li:nth-child(4) a {
  color: #ffffff;
}

a {
  text-decoration: none;
  color:#666;
}
a:hover {
  opacity: 0.5;
}

/*光るバナー*/
.hikaru {
  display: inline-block;
  position: relative;
  overflow: hidden;
  line-height:50px;
  background-color: #3aabd2;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 1.3rem;
  border-radius: 5px;
  padding-right:0.5rem;
}
.hikaru::after {
  content: "";
  display: block;
  width: 30px;
  height: 100%;
  position: absolute;
  top: -180px;
  left: 0;
  background-color: #FFF;
  opacity: 0;
  transform: rotate(45deg);
  animation: reflect 2s ease-in-out infinite;
  -webkit-transform: rotate(45deg);
  -webkit-animation: reflect 2s ease-in-out infinite;
}
@keyframes reflect {
0% { transform: scale(0) rotate(45deg); opacity: 0; }
80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
81% { transform: scale(4) rotate(45deg); opacity: 1; }
100% { transform: scale(50) rotate(45deg); opacity: 0; }
}
@-webkit-keyframes reflect {
0% { transform: scale(0) rotate(45deg); opacity: 0; }
80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
81% { transform: scale(4) rotate(45deg); opacity: 1; }
100% { transform: scale(50) rotate(45deg); opacity: 0; }
}

/*************** mainarea_curve **************/
.curve_wrap {
  overflow: hidden;
}
.curve01 {/*header下*/
  background: #fff;
  border-bottom-left-radius: 1000px 100px;
  border-bottom-right-radius: 1000px 100px;
  height: 10px;
  margin-left: 0px;
  margin-right: 0px;
  padding-left: 100px;
  padding-right: 100px;
}
.curve02 {/*main上*/
  background: #fff;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  height: 100px;
  margin-left: -100px;
  margin-right: -100px;
  padding-left: 100px;
  padding-right: 100px;
  z-index: 1000;
}
.curve03 {/*main下*/
  background: #fff;
  border-bottom-left-radius: 1000px 200px;
  border-bottom-right-radius: 1000px 200px;
  height: 100px;
  margin-bottom:1rem;
  margin-left: -100px;
  margin-right: -100px;
  padding-left: 100px;
  padding-right: 100px;
}
.background {/*白い背景*/
  width:100%;
  background-color: #fff;
}
.content {/*内容*/
  max-width: 980px;
  width: 70%;
  margin: 0 auto;
}
h1 {
  line-height: 25px;
  padding: 0.5rem 0 0;
}
.big {
  font-weight: bold;
  font-size: 1.2rem;
  padding-bottom: 1rem;
}
.small{
  font-size:12px;
}
.red{
  font-weight: bold;
  color: #e95656;
  display: inline-block;
  padding-top: 1rem;
}
h2 {
  display: inline-block;
  padding: 0.5rem 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 8px dotted #3aabd2;
}
h3 {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: bold;
}
.left {
  border-left: 2px solid #ccc;
  padding-left: 0.5rem;
  font-weight: bold;
}
.padding {
  padding:0.2rem 0 0 1rem;
}
/***********************************/
/*************** index **************/
/**********************************/
/*************** mainvisual **************/
#mainvisual {
	width: 100%;
	height: 80vh;
  background-position: center;
  position: relative;
  top: -0.3rem;
  z-index:-100;
  background-image: url(../img/main.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}
.topics {
  position:relative;
  top: 60vh;
  left: 0;
  display:inline-block;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: 1.1rem;
}
/*ニュース1行の周りの余白*/
.slider a{
  display: block;
  background:#fff;
  padding: 1rem;
}
/*日付*/
.slider span {
  display:inline-block;
  font-size:0.8rem;
  margin-right:10px;
  color:#3aabd2;
}
/******* ボタン *******/
.viewmore {
  width: 200px;
  border-radius: 1rem;
  padding: 1rem;
  background-color:#3aabd2;
  color: #fff;
  margin: 2rem auto;
  box-shadow: 0 5px 0 #2B7D99;
	transition: .3s;
}
.viewmore:hover {
	transform: translateY(4px);
	box-shadow: 0 0 0 #2B7D99;
}
/*************** article,section **************/
.attention {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border: 3px solid #e95656;
  border-radius: 1rem;
  padding: 2rem;
}
.attention h3{
  display: inline-block;
  padding: 0.5rem 2rem;
  font-weight: bold;
  border-bottom: 4px dotted #e95656;
}

.text_box {
  width: 80%;
  margin: 0 auto;
  text-align: left;
  line-height: 2rem;
}

p{
  line-height: 1.5rem;
}
section {
  width: 100%;
  margin: 0rem auto;
  padding: 5rem 0;
  text-align: center;
}

/*************** 診療内容,特徴 **************/
.parent {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
}
.number {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 40px;
  color: #fff;
  background-color:#3aabd2;
  position: relative;
  top:0;
  left:0;
  border-radius: 50%;
  padding: 0.5rem;
}
.radius {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color:#c7e3f0;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
}
.icon {
  padding-top: 0.5rem;
  width: 60px;
}
.icon_text {
  padding-top: 0.5rem;
  font-weight: bold;
  font-size:1.2rem;
}
.medical_radius {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color:#c7e3f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.text {
  font-weight: bold;
  font-size:1.2rem;
}
/*************** 院長紹介 **************/
.doctor_parent {
  margin-top:2rem;
  display: flex;
  justify-content: space-around;
}
.doctor_img {
  width: 50%;
  max-width: 300px;
  margin: 0 auto;
}
.doctor_img img{
  border-radius: 1rem;
}
.doctor_text {
  width: 45%;
  padding-top:2rem;
  margin: 0 auto;
}
/*************** 診療時間 **************/
table {
  width: 100%;
  margin-top: 2rem;
  box-sizing: border-box;
  text-indent: initial;
}
table td,th{
  padding:1rem;
  border-bottom:1px solid #ccc;
}
.right{
  text-align: right;
}
/*************** access **************/
.access_parent {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-top:2rem;
  padding-bottom:1rem;
  margin:0 auto;
}
.access_child {
  text-align: left;
  width: 40%;
}
.gaikan {
  width:100%;
}
.gaikan img {
  width:100%;
  border-radius: 1rem;
}


.map {
  width: 100%;
  height: 200px;
}
.access_map {
  width: 100%;
  height: 200px;
}
/*************** news **************/
.parent_news {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
}
.child_news {
  width: 30%;
  border: 1px solid #ccc;
  border-radius: 1rem;
}
.img_box img {
  border-radius: 1rem 1rem 0 0;
}
.txt_box {
  padding: 1rem 0;
}
.child_news a{
  transition:.5s;
}
.news {
  display: inline-block;
  background-color:#3aabd2;
  border-radius: 1rem;
  padding: 0 0.2rem;
  color:#fff;
  font-size: 12px;
  margin-right: 0.5rem;
}
.staff {
  display: inline-block;
  background-color:#e95656;
  border-radius: 1rem;
  padding: 0 0.2rem;
  color:#fff;
  font-size: 12px;
  margin-right: 0.5rem;
}
/*************** reserve,contact **************/
.banner_parent {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding:2rem 0;
  color: #fff;
  font-weight: bold;
}
.banner_tel{
  width: 50%;
  background-color: #3aabd2;
  padding: 1rem;
  text-align: center;
  border-radius: 1rem 0 0 1rem;
}
.banner_contact{
  width: 50%;
  background-color:#df5656;
  padding: 1rem;
  text-align: center;
  border-radius: 0 1rem 1rem 0;
  transition:.5s;
}
.banner_parent a{
  color: #fff;
}

/*************** footer **************/
footer {
  width:100%;
  color: #fff;
  background-color: #3aabd2;
  padding-top:1.3rem;
}
.footer_wrap {
  max-width: 960px;
  margin: 0 auto;
  display:flex;
  justify-content: space-between;
  padding: 2rem 0;
}
.ft_left{
  display: flex;
  align-items: center;
  flex-direction: column;
}
.footer_logo {
  display: flex;
  align-items: center;
}
.footer_logo img {
  padding-right: 1rem;
}
.tel{
  display: block;
  width: 100%;
  background-color: #fff;
  color:#3aabd2;
  border-radius: 1rem;
  padding: 1rem;
  margin-top:1rem;
  text-align: center;
  font-weight: bold;
  font-size:1.2rem;
}

/********footer nav************/
.footer_nav{
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.3);
}
.footer_nav a{
  color: #fff;
  position: relative;/*左から線*/
}
footer ul {
  display: flex;
  justify-content: center;
  padding:2rem;
}
footer li {
  display: inline-block;
  /* border-bottom: 1px solid #fff; */
  padding: 0 1rem 0.5rem 1rem;
  margin: 0 1rem;
}
/*左から線*/
footer li a::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  content: '';
  width: 100%;
  display: block;
  height: 1px;
  background: #ffffff;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform .3s;
}
footer li a:hover::after {
  transform: scale(1, 1);
  opacity:1;
}
.ft_white {
  width:100%;
  color:#3aabd2;
  background-color: #c7e3f0;
  text-align: center;
  padding: 1rem 0;
}
.copy_right {
  font-size: 12px;
}
/******** トップへ戻る ************/
.pagetop_before {
  position: relative;
  z-index: 0;
  top: 3.5rem;
  right: -80%;
  width:100px;
  height:120px;
}
.pagetop_after{
  position: relative;
  top: 2.5rem;
  right: -80%;
  width:100px;
  height:120px;
  display: none;
}
.pagetop_a:hover {
  opacity: 100;
}


/************ icon ************/
.fa-phone{
  color: #fff;
  display: block;
  padding: 0 1rem 0.2rem;
}


/*************************************/
/************** about ****************/
/*************************************/
.title_area {
  width:100%;
  padding:3rem 0;
  text-align: center;
  color: #666;
}
.med_content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem ;
}
.med_parent {
  display: flex;
  justify-content: space-between;
  width:100%;
  padding:1rem 0;
}
.med_img{
  width: 50%;
}
.med_img img{
  width: 100%;
  border-radius: 1rem;
}
.med_txt{
  width: 50%;
  padding: 1rem;
  line-height:2rem;
  text-align: left;
}
.sub{
  display:block;
  color:#3aabd2;
  font-size:14px;
}
.med_img_box{
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 1rem;
}
.med_img_box img {
  width: 30%;
  border-radius: 1rem;
}
/*************************************/
/*************** feature **************/
/*************************************/
.f_box {
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding-bottom: 3rem;
  margin-bottom:2rem;
}
.d_txt {
  width:100%;
  padding: 1rem;
}
.feature_txt{
  padding:2rem 0;
}

.f_txt_box {
  width: 50%;
}
.f_txt{
  padding: 2rem 1rem;
}
.f_doctor{
  width:30%;
  background-image:url(../img/doctor.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 1rem;
}
.f_img {
  width:30%;
  border-radius: 1rem;
}
.f_img img{
  border-radius: 1rem;
}
.f_number {
  color:#3aabd2;
  font-weight:bold;
  font-size:1.2rem;
  border: 3px solid #3aabd2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0.5rem;
  margin-right:1rem;
}

/*吹き出し*/
.balloon3-right-btm {
  position: relative;
  display: block;
  margin: 1.5em 15px 1.5em 0;
  padding: 1.5rem;
  width: 100%;
  height: 130px;
  text-align: center;
  color: #FFF;
  font-size: 1.2rem;
  font-weight: bold;
  background: #e95656;
  border-radius: 1rem 1rem 1rem 0;
  box-sizing: border-box;
}
.balloon3-right-btm p {
  line-height: 2rem;
}
.balloon3-right-btm:before {
  content: "";
  position: absolute;
  bottom: -16px;
  left: -16px;
  margin-top: 0px;
  border: 16px solid transparent;
  border-left: 16px solid #e95656;
  z-index: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
/*************************************/
/*********** お問い合わせ ****************/
/*************************************/
.contact_txt {
  border-bottom:1px solid #ccc;
  display: block;
  width: 100%;
  text-align: center;
  padding-bottom:1rem;
}
.contact_box {
  background-color:#c7e3f0;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
}
input,textarea,select {
  outline: none;
  border: none;
}
input,textarea,select:focus {
  outline: none;
}
input,select {
  width: 60%;
  height: 30px;
}
textarea {
  width: 60%;
  height: 200px;
}
label{
  width: 30%;
}
label::after {
  content:'必須';
  width: 50px;
  height: 22px;
  text-align: center;
  background-color: #e95656;
  color: white;
  border-radius: 10%;
  font-size: 12px;
  padding: 0.1rem 0.5em;
  margin-left:0.5rem;
}
.button {
  margin: 1rem 0 3rem 0;
  width: 100%;
  text-align: center;
}
button {
  width: 50%;
  height: 40px;
  line-height: 30px;
  background-color: #3aabd2;
  color: #fff;
  border: 2px solid #3aabd2;
  border-radius: 1rem;
  letter-spacing: 1rem;
  font-size: 1.1rem;
  box-shadow: 0 5px 0 #2B7D99;
	transition: .3s;
}
button:hover {
  transform: translateY(4px);
	box-shadow: 0 0 0 #2B7D99;
}
#hamburger-nav {
  display: none;
}

/*SmartPhoneレイアウト*/
@media only screen and (max-width:780px){
  /********非表示********/
  .hikaru,.head_title {
    display: none;
  }
  /*************************************/
/*========= ハンバーガーナビゲーションのためのCSS ===============*/
/*************************************/
#hamburger-nav{
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position:fixed;
  display: block;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top:-120%;
  left:0;
  width:100%;
  height: 100vh;/*ナビの高さ*/
  background:rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
    /*動き*/
  transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#hamburger-nav.in{
  top: 0;
}

/*ナビゲーション*/
#hamburger-nav ul {
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  z-index: 1000;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  width:100%;
}

/*リストのレイアウト設定*/
#hamburger-nav li{
  list-style: none;
  text-align: center;
  border-bottom:1px solid #666;
  padding:0.5rem;
  margin: 0 1rem;
}
#hamburger-nav li a{
color: #333;
text-decoration: none;
padding:10px;
display: block;
text-transform: uppercase;
letter-spacing: 0.1em;
font-weight: bold;
}

/*========= ボタンのためのCSS ===============*/
.openbtn1{
  position: fixed;
  z-index: 9999;/*ボタンを最前面に*/
  top: 10px;
  right: 10px;
  cursor: pointer;
  width: 50px;
  height: 50px;
}
/*×に変化*/  
.openbtn1 span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #666;
  width: 45%;
}
.openbtn1 span:nth-of-type(1) {
  top:15px; 
}
.openbtn1 span:nth-of-type(2) {
  top:23px;
}
.openbtn1 span:nth-of-type(3) {
  top:31px;
}
/*** クリックしてclassにactiveを付与 ***/
.openbtn1.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}
.openbtn1.active span:nth-of-type(2) {
  opacity: 0;
}
.openbtn1.active span:nth-of-type(3){
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

  /*************************************/
  /********* index.html ***************/
  /*************************************/
    .parent{
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
    }
    .radius,.medical_radius{
      margin-bottom:1rem;
    }
  /*************************************/
  /********* footer ***************/
  /*************************************/
  .footer_wrap {
    width:90%;
    margin: 0 auto;
  }
  .ft_left {
    width:40%;
  }
  .tel {
    padding: 0.5rem 0;
    font-size:13px;
  }
  .footer_txt {
    width: 40%;
  }
  /*************************************/
  /********* feature.html ***************/
  /*************************************/
  .f_box {
    width:100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }
  .d_txt {
    width:100%;
  }
  .f_txt_box {
    width:90%;
    margin: 0 auto;
  }
  .f_txt{
    width:100%;
  }
  .f_img {
    width:90%;
    margin: 0 auto;
  }
  .f_message {
    font-size:1rem;
  }
  .f_doctor {
    width: 250px;
    height: 250px;
    background-image:url(../img/doctor.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    display: inline;
    margin:0 auto 2rem;
  }

  /*吹き出し*/
  .balloon3-right-btm {
    position: absolute;
    top: 300px;
    right:100px;
    display: block;
    margin: 1.5em 15px 1.5em 0;
    padding: 1.5rem;
    width: 250px;
    text-align: center;
    color: #FFF;
    font-size: 14px;
    font-weight: bold;
    background: #e95656;
    border-radius: 5rem 5rem 5rem 0;
    box-sizing: border-box;
  }
  .balloon3-right-btm p {
    line-height: 2rem;
  }
  .balloon3-right-btm:before {
    content: "";
    position: absolute;
    bottom: -16px;
    left: -16px;
    margin-top: 0px;
    border: 16px solid transparent;
    border-left: 16px solid #e95656;
    z-index: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

}
