@charset "utf-8";
/*---footer--------------------*/
.footer {
  border-top: 1px solid var(--border1);
}
.fixed_btn .btn_inner {
  opacity: 0;
}
.anim_zoomin.is-animated {
  animation: zoomIn 1s 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/*---mv--------------------*/
.anim_fadeintext.is-animated {
  animation: fadeInText 1s .3s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
.anim_fadeintext2.is-animated {
  animation: fadeInText 1s .3s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
@keyframes fadeInText {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.anim_fadeup.is-animated {
  animation: fadeup 1s .8s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
.anim_fadeup2.is-animated {
  animation: fadeup 1s .95s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
.anim_fadeup3.is-animated {
  animation: fadeup 1s 1.1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
@keyframes fadeup {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
#mv {
  padding-inline: 0;
  padding-block: 2rem 150px;
  margin-block-end: 0;
  .wrapper, .inner {
    max-width: 1480px;
  }
  .wrapper {
    padding-inline: 20px;
  }
  .corner {
    display: block;
    width: 40px;
    height: 40px;
    position: absolute;
    right: -80px;
    bottom: 0;
    transform: translateX(-100%);
    &::before {
      content: '';
      display: block;
      width: 200%;
      height: 200%;
      background: transparent;
      border-radius: 50%;
      box-shadow: 40px 40px 0 0 var(--colorBg2);
      position: absolute;
      top: 0;
      right: 0;
      transform: translate(-50%, -50%);
      overflow: hidden;
    }
  }
  .inner {
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 48px;
    .home_hero {
      width: 52.5%;
    }
    .home_mv {
      width: 47.5%;
    }
  }
  .copy {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    p, a {
      padding-inline-start: 2rem;
    }
  }
  .copy * {
    font-weight: 500;
  }
  .copy p {
    font-size: clamp(2.2rem, 2vw, 3.0rem);
    margin-block: auto 3rem;
    opacity: 0;
  }
  .copy a {
    display: block grid;
    grid-template: ". icon" / 1fr max-content;
    align-items: baseline;
    gap: 15px;
    width: fit-content;
    text-decoration: none;
    position: relative;
    opacity: 0;
    &:hover {
      color: var(--primary);
    }
    span {
      grid-area: icon;
      width: 28px;
      height: 16px;
      background-color: #fff;
      border: 1px solid var(--text2);
      border-radius: 15px;
      position: relative;
      overflow: hidden;
      img {
        width: 8px;
        margin: auto;
        transform: rotate(90deg);
        position: absolute;
        bottom: 3px;
        right: 9px;
      }
    }
    &:hover img {
      -webkit-animation: 0.6s ease forwards arrowBottom;
      animation: 0.6s ease forwards arrowBottom;
    }
  }
  .mv01, .mv02, .mv03 {
    opacity: 0;
  }
  .mv01 {
    width: 100%;
    aspect-ratio: 60 / 57;
    max-height: 820px;
  }
  .home_mv img, .flex img {
    border-radius: 20px;
    box-shadow: 0 0 10px var(--colorBg2);
  }
  .flex {
    gap: 12px;
    margin-block: 10rem -5rem;
  }
  .mv02, .mv03 {
    aspect-ratio: 61 / 43;
  }
  .mv03 {
    position: relative;
    top: 20px;
  }
}
@keyframes arrowBottom {
  0% {
    bottom: 0;
  }
  50% {
    bottom: -50%;
  }
  51% {
    opacity: 0;
    bottom: 50%;
  }
  to {
    bottom: 3px;
  }
}

/*---contents--------------------*/
main {
  padding-inline: 0;
  overflow: hidden;
}
.contents {
  background: none;
  padding-block-start: 0;
}
section {
  max-width: none;
  padding-block: 0;
}
.wrapper {
  width: 100%;
  max-width: 1200px;
  padding-inline: 50px;
  margin-inline: auto;
}
h2 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 4.5rem;
  font-family: var(--ff3);
  line-height: 1;
  color: var(--primary);
  margin-bottom: 15px;
  overflow: unset;
  &::before, &::after {
    display: none;
  }
  span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--ff1);
    padding-left: 1.6rem;
    position: relative;
    &::before  {
      content: "";
      display: block;
      flex-shrink: 0;
      width: .8rem;
      height: .8rem;
      border-radius: 50%;
      background-color: var(--colorBg1);
      position: absolute;
      top: .5rem;
      left: 0;
    }
  }
}
.inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  > p + p {
    margin-block-start: -10px;
  }
}
.l_flower, .r_flower {
  margin-block-start: -30px;
}
.l_flower::before, .r_flower::before {
  content: "";
  position: absolute;
  z-index: 1;
}
.l_flower::before {
  width: 250px;
  height: 130px;
  background: url(../img/top/im_l_flower.svg) no-repeat left top/100%;
  left: -20px;
  bottom: -70px;
}
.r_flower::before {
  width: 300px;
  height: 154px;
  background: url(../img/top/im_r_flower.svg) no-repeat right top/100%;
  right: -120px;
  bottom: -200px;
}

/*---about--------------------*/
#about {
  width: calc(100% - 50px);
  background-color: var(--colorBg2);
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  margin-left: 50px;
  padding-inline-start: 0;
  .wrapper {
    max-width: 1300px;
    border-radius: 40px;
    padding: 80px 50px 100px;
  }
  .l_flower::before {
    left: -100px !important;
  }
  .corner {
    display: block;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 0;
    bottom: -40px;
    background-color: var(--colorBg2);
    &::before {
      content: '';
      display: block;
      width: 200%;
      height: 200%;
      border-radius: 50%;
      box-shadow: 80px 40px 0 0 var(--maincolorBg);
      position: absolute;
      top: 0;
      right: 40px;
      transform: translate(-50%, -50%);
    }
  }
  h2, .inner {
    max-width: 1100px;
  }
  h2, h2 span {
    margin-inline: auto;
  }
}
#about h2 span, #timetable h2 span, #reserve h2 span {
  font-size: 2.2rem;
}

/*---news--------------------*/
#news {
  h2 {
    font-size: 3.8rem;
    letter-spacing: -1px;
  }
  .leftBox {
    width: 27%;
    padding-block-start: 15px;
    .btn a {
      margin-inline: 0;
    }
  }
  .rightBox {
    width: 73%;
    height: 550px;
    background-color: #fff;
    border: 1px solid var(--border1);
    border-radius: 10px;
    padding: 35px 40px;
    overflow-y: scroll;
    .news_list {
      li + li {
        border-top: 1px solid var(--border1);
        padding-top: 25px;
        margin-top: 25px;
      }
      li .title {
        display: grid;
        grid-template-columns: 130px 5fr;
        font-size: 2.0rem;
        font-weight: 500;
        margin-bottom: 10px;
        .date {
          font-family: var(--ff2);
          line-height: 2;
          color: var(--primary);
        }
      }
    }
  }
}

/*---timetable--------------------*/
#timetable, #reserve {
  background-color: var(--colorBg2);
}
#timetable {
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-block-end: 0;
  padding-block: 80px;
  .flex {
    display: none;
  }
  .table01 {
    font-family: var(--ff3);
    background-color: #fff;
    border-left: none;
    th, td {
      padding: 10px 3px;
    }
    th {
      background-color: transparent;
    }
    thead {
      th:not(:first-child) {
        width: calc(77%/6.4);
      }
      th:last-of-type {
        border-right: none;
      }
      th:last-of-type {
        width: 8%;
        letter-spacing: -3px;
      }
    }
    tbody {
      th {
        font-weight: 400;
      }
      th:not(.tl) {
        font-size: 1.6rem;
      }
      td {
        height: 90px;
        font-size: 1.4rem;
        font-weight: 500;
        line-height: 1;
        text-align: center;
      }
      tr:first-child td:last-of-type {
        border-right: none;
      }
      tr:nth-child(2n+1) td {
        color: var(--primary);
      }
      tr:nth-child(2n) td {
        color: #00a5ff;
      }
      td span {
        font-size: 1.8rem;
        line-height: 2;
      }
      tr td.rest {
        color: var(--text2);
      }
    }
  }
}

/*---reserve--------------------*/
#reserve {
  padding-bottom: 100px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  .flex {
    gap: 40px;
  }
  .leftBox {
    width: 57%;
    dl {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      gap: 15px;
      align-items: flex-start;
      dt {
        min-width: fit-content;
        font-size: 1.4rem;
        font-weight: 700;
        text-align: center;
        color: #fff;
        background-color: var(--primary);
        border-radius: 5px;
        padding: 3px 10px;
      }
      dd {
        font-size: 3.4rem;
        font-weight: 600;
        font-family: var(--ff2);
        line-height: 1;
        color: var(--primary);
      }
    }
    .hours {
      font-size: 1.6rem;
      font-weight: 500;
      font-family: var(--ff3);
      color: var(--text2);
      margin-block: 5px 20px;
    }
    .ul_notice li {
      color: var(--text1);
    }
  }
  .rightBox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: calc(43% - 40px);
    height: 100%;
    background-color: #fff;
    box-shadow: 0 2px 0 var(--border1);
    border-radius: 10px;
    padding: 30px 25px;
    .div_h3 {
      gap: 10px;
      h3, p {
        line-height: 1.5;
      }
      h3 {
        font-size: 1.6rem;
        color: var(--text1);
        background-color: #f4f4f4;
        padding-block: 5px;
        margin-block-start: 0;
        &::before {
          height: 18px;
        }
      }
      p .text_st01 {
        font-size: 2.2rem;
        font-weight: 600;
        font-family: var(--ff2);
        line-height: 1;
      }
    }
  }
}

/*---doctor--------------------*/
#doctor {
  .flex div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: end;
    width: calc(50% - 2px);
    background-color: #fff;
    box-shadow: 0 2px 0 var(--border1);
    border-radius: 10px;
    padding: 45px 1% 50px 4%;
    figure {
      width: 32%;
      max-width: 140px;
      img {
        width: 60px;
      }
      p {
        font-size: 2.2rem;
        font-weight: 500;
        line-height: 1;
      }
      p span {
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 2;
      }
    }
    ul {
      width: 68%;
      font-size: 1.6rem;
      margin-bottom: -5px;
    }
  }
  .leftBox figure p span {
    color: #00a5ff;
  }
  .rightBox figure p span {
    color: var(--primary);
  }
}

@media screen and (max-width: 1024px) {
  /*---contents--------------------*/
  .wrapper {
    padding-inline: 0;
  }

  /*---timetable--------------------*/
  #timetable {
    padding-top: 90px;
    .flex {
      display: flex;
      flex-direction: row;
      align-items: center;
      background-color: rgb(255 255 255 / .8);
      border-radius: 5px;
      padding: 10px 20px;
      img {
        width: 22px;
      }
      p {
        width: calc(100% - 22px);
        padding-left: 15px;
      }
    }
    .scroll {
      overflow-x: scroll;
    }
    .table01 {
      width: 100%;
      min-width: 1000px;
      th {
        padding: 5px 3px;
      }
      thead {
        th:not(:first-child) {
          width: calc(88%/7);
        }
        th:last-of-type {
          width: 8%;
        }
      }
      tbody {
        th:not(.tl) {
          font-size: 1.5rem;
        }
        td {
          height: 80px;
          font-size: 1.3rem;
          padding: 8px 5px;
        }
        td span {
          line-height: 1.5;
        }
      }
    }
  }

  /*---doctor--------------------*/
  #doctor {
    .flex {
      flex-direction: column;
    }
    .flex div {
      flex-wrap: wrap;
      width: 100%;
      min-height: 165px;
      padding: 30px 40px;
    }
    .flex div + div {
      margin-top: 5px;
    }
    .flex div figure {
      margin-right: 30px;
    }
    .flex div ul {
      width: auto;
      font-size: 1.8rem;
    }
  }
}
@media screen and (max-width: 768px) {
  /*---mv--------------------*/
  .anim_fadeup.is-animated {
    animation-duration: .8s;
    animation-delay: 1s;
  }
  .anim_fadeintext.is-animated {
    animation-duration: 1.5s;
    animation-delay: .3s;
  }
  .anim_fadeuptext.is-animated {
    animation-delay: .5s;
  }
  #mv {
    padding-block: 4rem 80px;
    overflow: hidden;
    .inner {
      display: block;
      .home_hero, .home_mv {
        width: 100%;
      }
      .home_mv {
        width: calc(100% + 40px);
        margin-block-start: 3rem;
        position: relative;
        left: -20px;
      }
    }
    .copy p, .copy a {
      padding-inline-start: 0;
    }
    .copy p {
      font-size: 2.0rem;
      letter-spacing: -.05rem;
    }
    .home_mv img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      border-radius: 0;
    }
    .mv01 {
      width: calc(100% - 60px);
      border-bottom-left-radius: 20px;
      border-top-left-radius: 20px;
      overflow: hidden;
      margin-inline-start: auto;
    }
  }
  /*---contents--------------------*/
  .contents {
    padding-inline: 0;
  }
  .wrapper {
    padding-inline: 20px;
  }
  h2 {
    gap: 15px;
    font-size: 3.4rem;
    span {
      font-size: 1.4rem;
    }
  }
  .l_flower, .r_flower {
    margin-block-start: -10px;
  }
  .l_flower::before {
    width: 200px;
    height: 100px;
    left: -70px;
    bottom: -50px;
  }
  .r_flower::before {
    width: 250px;
    height: 90px;
    bottom: -115px;
  }

  /*---about--------------------*/
  #about {
    width: calc(100% - 20px);
    padding-inline: 0 20px;
    margin-left: 20px;
    .wrapper {
      padding: 50px 20px 80px;
    }
    p {
      font-size: 1.5rem;
    }
  }
  #about h2 span, #timetable h2 span, #reserve h2 span {
    font-size: 2.0rem;
    margin-bottom: 0;
  }

  /*---news--------------------*/
  #news {
    h2 {
      font-size: 3.0rem;
      letter-spacing: -1px;
    }
    .leftBox {
      order: 2;
    }
    .leftBox .btn a {
      margin-inline: auto;
    }
    .flex > div {
      width: 100%;
    }
    .rightBox {
      order: 1;
      height: 400px;
      padding: 15px;
      margin-top: 0;
    }
    .rightBox .news_list li + li {
      padding-top: 20px;
      margin-top: 20px;
    }
    .rightBox .news_list li .title {
      display: block;
      font-size: 1.6rem;
      line-height: 1.5;
    }
    .rightBox .news_list li .title .date {
      display: block;
    }
  }

  /*---timetable--------------------*/
  #timetable {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  /*---reserve--------------------*/
  #reserve {
    padding-bottom: 70px;
    .flex {
      gap: 20px;
    }
    .flex > div {
      width: 100%;
    }
    .leftBox dl {
      margin-bottom: 10px;
      dt {
        font-size: 1.4rem;
        padding-inline: 8px;
      }
      dd {
        font-size: 3.0rem;
        .hours {
          font-size: 1.3rem;
          margin-left: -8px;
        }
      }
    }
    .rightBox .div_h3 {
      h3 {
        font-size: 1.4rem;
      }
      p .text_st01 {
        font-size: 1.8rem;
      }
    }
  }

  /*---doctor--------------------*/
  #doctor {
    @media screen and (max-width: 530px) {
      .flex div {
        padding: 30px 35px;
      }
    }
    .flex div {
      figure, ul {
        width: 100%;
        max-width: 100%;
      }
      figure {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        align-items: end;
        margin-right: 0;
      }
      figure img {
        margin-right: 20px;
        margin-bottom: 30px;
      }
      figure p {
        margin: auto 0;
      }
      figure p {
        font-size: 2.0rem;
      }
      figure p span {
        font-size: 1.5rem;
      }
      ul {
        font-size: 1.5rem;
        margin-bottom: 0;
      }
    }
  }

}