
:root{
  --maincolor:#8e5038;
  --basecolor:#fcefe6;

  --hifuka:#6ABC6F;
  --hifukatext:#6BBC6E;

  --kodomo:#EC6D74;
  --kodomotext:#EC6D74;

  --naika:#00B9EF;
  --naikatext:#54c3f1;

  --yobou:#F6AE54;
  --yoboutext:#F6AD54;

  --rehab:#A37FD3;
  --rehabtext:#c7a8f0;
}
  .big{font-size: 110%;}
  .small{font-size: 90%;}


img{
  max-width: 100%;
  transition: 0.2s;
  vertical-align: middle;
}

a:hover img{opacity: 0.7;}
ul,ol{list-style: none;padding: 0;}


header{
  border-top: 6px solid var(--maincolor);
  border-bottom: 6px solid var(--maincolor);
  padding-bottom: 0;

  .container{
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    >.half{
      width:calc((100% - 10px) / 2);
    }
  }
  .flex{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }
  .description{
    margin: 0;
    padding: 1em 1em 0;
    font-size: 75%;
    text-align: right;
  }
  .tel{
    font-size: 150%;
  }

}

.container.main-image{
  width: 100%;
}
nav.topnav,nav.fotnav{
  width: 100%;
  ul{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    border-left: 1.6px solid var(--maincolor);
    li{
      width: calc(100% / 6);
      border-top: 1.6px solid var(--maincolor);
      border-right: 1.6px solid var(--maincolor);
      a{
        display: flex;
        justify-content: center;
        align-items: center;
        float: none;
        width: 100%;
        height: 100%;
        border: none;
        padding: 12px 10px;
        color: var(--maincolor);
        &:hover{border: none;}
      }
    }
  }
}

.notice{
  background:  var(--maincolor);
  padding: 0.5em;
  color: #fff;
  width: 100%;
  margin: 1em auto;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 120%;
  &::before{
    content: '';
    width: 0.3em;
    height: 1em;
    background: #fff;
    display: block;
  }
}

.w980{
  width: 90%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.img_banner{
  width: 100%;
  max-width: 100%;
}


.banner_list{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap:1em;
  margin-top: 2em;
  li{
    width: calc((95% - 1em) / 2);
    >a{
      width: 100%;
      display: flex;
    }
  }
  li.w100{width: 100%;}
  li.resp-text{
    p{margin: 0.5em 0;text-align: center;}
    .resp{display: none;}
  }
}


  .hifuka{--box-color:var(--hifuka);--textcolor:var(--hifukatext);}
  .kodomo{--box-color:var(--kodomo);--textcolor:var(--kodomotext);}
  .naika{--box-color:var(--naika);--textcolor:var(--naikatext);}
  .yobou{--box-color:var(--yobou);--textcolor:var(--yoboutext);}
  .rehab{--box-color:var(--rehab);--textcolor:var(--rehabtext);}


  .navigation_btn{
    display: flex;
    max-width: 1500px;
    width: 90%;
    margin: 0 auto;
    gap:2em;
    position: relative;
    top: -3em;

    li{
      width: calc((100% - 2em * 4) / 5);
      transition: 0.3s;
      &:hover{
        translate: 0 -10px;
      }

      a{
      border-top: 10px solid var(--box-color);
      background: #fff;
      border-radius: 0.5em;
      box-shadow: 0 0 3px #ababab;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap:0.5em;
      padding: 0.5em;

      p.dep{
        color: var(--box-color);
        font-weight: bold;
        margin: 0;
        font-size: 160%;
        width: calc(70% - 0.5em);
        font-family: "Open Sans", sans-serif;
        text-align: center;
        line-height: 1.4;
      }
      p.desc{
        width: 100%;
        margin: 0;
        padding: 0.5em 1em;
        font-size: 90%;
        border-top: 3px solid var(--box-color);
        text-align: justify;
      }
      figure{
        width: 30%;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
      }
      }
  }
}


.notice_box_field{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em 1em;



  .notice_box{
    width: calc((100% - 1em) / 2);
    border: 3px solid var(--box-color);
    border-radius: 0.5em;
    h4{
      color: #fff;
      font-size: 110%;
      background: var(--box-color);
      margin: 0;
      padding: 0.3em 0.5em;
      text-align: left;
    }
    p{
      padding: 0 1em;
      margin: 1em 0;
    }

    &.rehab{width: 100%;}
  }
}

#index_news{
  li{
    summary{background: #fff;padding: 0.5em;}
  }
}


/*個別ページ*/
.intro{
  padding: 0 0 1em;
  section{
    border-top: 2px dotted var(--rehabtext);
  >p{
    font-size: 100%;
    padding: 0.5em 2em;
  }
  &:first-of-type{
    border-top: none;
  }
  }

}

.rehab{
  .big{font-size: 110%;}
  .small{font-size: 90%;}

  .section_title{
    background: var(--rehab);
    color: #fff;
    padding: 0.3em 0.5em;
    font-size: 22px;
    border-radius: 0.5em 0.5em 0 0;
  }
  .para_title{
    margin: 1.5em auto 0.5em;
    padding: 0.5em 1em;
    display: flex;
    gap: 0.3em;
    align-items: center;
    width: 95%;
    background: #f3e8f8;
  }
  a.link{
    text-decoration: underline;
    color: #004098;
    font-size: 110%;
    &:hover{
      color: var(--rehab);
    }
  }

  summary.para_title{
    margin: 0.5em auto;
    border: 2px solid var(--rehab);
    border-radius: 0.3em;
    background: linear-gradient(180deg,#f3e8f8 10%,var(--rehabtext));
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;

    >*{
      padding: 0;
      margin: 0;
    }
    &:hover{
      opacity: 0.7;
    }
    &::after{content: '開く▼';font-size: 100%;}
  }
  details[open] summary.para_title{
    &::after{content: '閉じる▲';}
  }
  .detail_content{
    padding: 0 2em 1em;
  }
  
}

.patient_list{
  padding: 0 2em 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  list-style: disc inside;
  li{
    color: var(--rehab);
    font-size: 120%;
    font-weight: bold;
  }
}
.merit_list{
  padding: 0 2em 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  list-style: disc inside;
}
.contact{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 0 1em 1em;
  border-radius: 0.5em;
  h3{
    width: 100%;
    background: var(--maincolor);
    color: #fff;
    text-align: center;
  }
}
.btn_yoyaku{
  width: 80%;
  margin: 2em auto;
  a{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    font-size: 180%;
    color: #fff;
    width: 100%;
    border-radius: 0.3em;
    background:linear-gradient(#ffd19c,#ffbc70 10%,#ff9b2a 10%,#ffbc70);
    border: 2px solid #ff9b2a;
    transition:0.3s;

    &:hover{
      opacity: 0.7;
    }
  }
}
.photo_list{
  width: 90%;
  margin: 1em auto;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  li{
    width: calc((100% - 1em) / 2);
    &:last-child{width: 100%;}
    a{
      display: flex;
      width:100%;
      height:100%;
      justify-content:center;
      align-items: center;
    }
  }
}
.mark{background: #ffef00; line-height: 2.3;padding: 0 0.3em;}

.rehab .rehab-table{
  border: 2px solid var(--rehab);
  width: 95%;
  margin: 0 auto;
  .bg01{background: var(--rehab);}
  .bor02{border-color: var(--rehab);}
  .p1{background: #ebebeb;}
}

.intro .subtel{
  font-size: 130%;
  a{ 
    display: block;

    transition: 0.3s;
    border-radius: 0.3em;
    margin: 0 auto 1em;
    padding: 0.3em 1em;
    border: 3px solid #004098;
    background: #004098;
    color: #fff;
    &:hover{
      background: #fff;
      color: #004098;
    }
  }
}



/*サイドバー*/
.sidebar{
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: center;
  a{
    display: block;
    img{
      width: 100%;
      padding: 0;
    }
  }
  li.department{
    padding: 1em 1.5em;
    border-radius: 0.5em;
    width: 100%;
      background: #fff;
      border: 5px solid #fff;
      transition: 0.3s;
      &:hover{
        border-color: var(--box-color);
      }    
      a{
      display: flex;
      gap:0.5em;
      transition: 0.3s;
      p{
        color: var(--box-color);
        font-size: 36px;
        font-weight: bold;
        margin: 0;
        width: calc(70% - 0.5em);
        border-bottom: 10px solid var(--box-color);
        font-family: "Open Sans", sans-serif;
        text-align: center;
        line-height: 1.4;
        padding-bottom: 0.3em;
      }
      figure{
        width: 30%;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
      }

    }
    &.rehab{
      a p{
        font-size: 160%;
      }
    }
  }
}
  .third .contact{
    p{margin: 0 auto;}
  }


  .pc{display: inline;}
  .sp{display: none;}

  .resp-none{display: block;}
  .resp-none.flex{display: flex;}
  .resp-view{display: none;}



@media (max-width: 900px) {

  header{
    .container{
      flex-direction: column;
      align-items: center;
      >.half{
        width: 100%;

        .logo{
          display: flex;
          justify-content: center;
        }
        .description{
          text-align: center;
          padding-top: 0;
        }
        .flex{
          justify-content: center;
          margin-bottom: 1em;
        }
        .tel{
          font-size: 180%;
        }

      }
    }
  }

  .navigation_btn{
    flex-wrap: wrap;
    justify-content: center;
    li{
      width: calc((100% - 2em * 2) / 3);
    }
  }

}

@media (max-width: 639px) {

  .section-description{
    max-width: 90%;
    margin: 0 auto 1em;
    br{display: none;}
  }


  h1.rehab{font-size: 1.7rem;}

  header{
    border: none;
    >.container{
      width: 100%;
    }
    .description{
      font-size: 80%;
    }
  }

  .container{width: 95%;margin: 0 auto;}
  .notice::before{content: none;}

nav.topnav,nav.fotnav{
    ul.top_menu,ul.fot_menu{
      li{
        width: calc(100% / 2);
        border-bottom: 1.6px solid var(--maincolor);
        a{
          font-size: 100%;
          img{max-width: 15px;}
        }
        &.reserve{width: 100%;padding: 0;
        a{
          padding: 0.5em;
        }
      }
        img.yoyaku{max-width: 180px;}
      }
    }
  }





  .banner_list{
    gap: 0;
    margin-top: 0;
    &.resp-none{display: none;}

    li{
      width: 100%;
      border: 1px solid var(--maincolor);
      a{
        display: flex;
        padding: 0.5em;
        text-align: center;
        color: var(--maincolor);
        font-size: 110%;
        justify-content: center;
        background: #fff;
      }
    }
    li.resp-text{
      width: calc((100% - 0.5em) / 2);

      img,p{display: none;}
      p.resp{
        display: block;
      }
    }
  }

  .bottom.banner_list{
    gap: 1em;
    li{
      border: none;
      a{
        background: none;
        padding: 0;
      }
    }
  }

  .notice_box_field{
    flex-direction: column;
    .notice_box{
      width: 100%;
      background: #fff;
    }
  }

  .navigation_btn{
    margin: 2em auto;
    top: auto;
    gap: 1em 0.5em;
    justify-content: flex-start;
    li{
      width: calc((100% - 0.5em) / 2);
      a{
        height: 100%;
        figure{display: none;}
        p.desc{display: none;}
        p.dep{
          font-size: 100%;
          width: 100%;
        }
      }
    }
  }

  ul.menu-list{padding: 0 0.5rem;}


  /*個別ページ*/
  .rehab section > p{
    padding: 0.5em 1em;
    font-size: 90%;
    &.big{font-size: 100%;}
  }


  .btn_yoyaku{
    width: 100%;
    a{
      font-size: 140%;
    }
  }

  .rehab-table-wrap{
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .rehab-table{
    margin: 0;
    tr{
      border-left: 2px solid var(--rehab);
      border-right: 2px solid var(--rehab);
    }
    th,td{
      border-top: 2px solid var(--rehab);
    }
    th.bg01{
      border-bottom: none;
      br{display: none;}
    }
    /* th.lrbod{
      border-left: 2px solid #fff;
      border-right: 2px solid #fff;
    } */
    tr.first-line{
      width: 20%;
    }
    tr.second-line,tr.third-line{
      width: 40%;
    }
  }

  .shinryo .contact{
    .cen{
      text-align: left;
      br{display: none;}
    }
  }

  .patient_list{padding: 0 1em 1em;}
  details .merit_list{padding: 0;}
  .rehab .subtel{
    font-size: 100%;
  }

  .rehab{
    details[open] summary.para_title,
    summary.para_title{
      &::after{display: none; content: none;}
    }
}

  /*サイドバー*/
  .sidebar{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    img{width: 100%;}
    li.department{
      width: calc((100% - 0.5em) / 2);
      align-self: flex-start;
      padding: 1em 0;
      a{
        width: 100%;
      figure{
        display: none;
      }
      p{
        width: 100%;
        font-size: 30px;
        br{display: none;}
      }
    }
    }
    li.yobou{font-size: unset;}
    li.rehab{order: 1;width: 100%;}
  }


  
  .pc{display: none;}
  .sp{display: inline;}

  .resp-none{display: none;}
  .resp-view{display: block;}
  .resp-view.flex{display: flex;}
}
