@charset "utf-8";

* {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "メイリオ", "Hiragino Kaku Gothic ProN", sans-serif;
}

#page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

/* ヘッダー部分 */
header {
  display: flex;
  align-items: center;
  opacity: 0;
  translate: 0 -100%;
  animation: appear 1s forwards;

  /* ヘッダーロゴ */
  .logo {
    display: flex;
    align-items: end;

    img {
      height: 60px;
      margin-right: 10px;
    }

    p {
      font-size: 1rem;
      font-weight: 300;
      color: #000;

      a {
        color: #000;
        text-decoration: none;
      }
    }

    span {
      font-size: 2rem;
      font-weight: 700;
      color: #616bff;
    }
  }
}

/* メインナビPC */
@media(min-width:600px) {
  header {
    min-height: 60px;
    padding-inline: 40px;
    padding-block: 20px;
    z-index: 10;

    .header_navarea_pc {
      margin-left: auto;
      width: 750px;
      z-index: 1;

      nav {
        width: 95%;
        margin: 0 auto;

        .nav {
          display: flex;

          .nav-list {
            list-style: none;
            color: #000;
            width: 20%;
            height: 50px;
            position: relative;
            transition: all .3s;

            :not(:first-child)::before {
              content: "";
              width: 1px;
              height: 100%;
              background-color: #c0c0c0;
              position: absolute;
              top: 0;
              left: 0;
              transition: all .3s;
            }

            :hover {
              border-bottom: 2px solid #ffee00;

              ::before {
                background-color: #0071BB;
              }

              a {
                color: #fff;
              }
            }

            .nav-link {
              display: flex;
              justify-content: center;
              align-items: center;
              width: 100%;
              height: 100%;
              text-decoration: none;
              color: #000;
              letter-spacing: 0.05em;
              transition: all .3s;
            }
          }

          .nav-list:not(:first-child)::before {
            content: "";
            width: 1px;
            height: 100%;
            border-bottom: #fff;
            position: absolute;
            top: 0;
            left: 0;
            transition: all .3s;
          }

          .nav-list:hover::before {
            background-color: rgb(255, 251, 239);
          }

          /*ドロップダウンメニュー  */
          .dropdown {
            display: none;
            width: 100%;
            position: absolute;
            z-index: 10;

            .dropdown-list {
              height: 40px;
              transition: all .3s;
              background-color: #ffee00;
              position: relative;
              list-style: none;

              a {
                display: flex;
                justify-content: center;
                align-items: center;
                color: #000;
                text-decoration: none;
                position: relative;
                z-index: 1000;
                height: 100%;

                ::before {
                  content: "";
                  display: block;
                  width: 6px;
                  height: 6px;
                  border-top: 2px solid #fff;
                  border-left: 2px solid #fff;
                  transform: rotate(135deg);
                  position: absolute;
                  right: 15px;
                  top: calc(50% - 5px);
                }
              }
            }

            .dropdown-list:not(:first-child)::before {
              content: "";
              width: 100%;
              height: 1px;
              background-color: #fff;
              position: absolute;
              top: 0;
              left: 0;
            }

            .dropdown-list:hover {
              background-color: antiquewhite;
            }

          }

          .nav-list:hover .dropdown {
            display: block;
          }
        }
      }
    }

    .header_navarea_mb {
      display: none;
    }
  }
}

/*ヘッダー及びメインメニューレスポンシブ*/
/*（タブレット）*/
@media(max-width:960px) {
  header {
    display: grid;
    padding: 10px;

    .logo {
      span {
        font-size: 1.7rem;
        font-weight: 700;
      }
    }

    .header_navarea {
      width: calc(100% - 5%);
      margin: 0 auto;
      text-align: center;

      .nav-link {
        font-size: 0.9em;
      }
    }
  }
}

/*(スマホ)*/
@media(max-width:599px) {
  header {
    display: flex;
    align-items: center;
    padding: 20px;

    .logo {
      span {
        font-size: 1.5rem;
      }
    }

    .header_navarea_pc {
      display: none;
    }

    .header_navarea_mb {
      margin-left: auto;

      .hamburger {
        display: block;
        height: 55px;
        margin-left: auto;
        position: relative;
        z-index: 500;
        width: 55px;
        border: none;
        background-color: #ffee00;

        .hamburger__line {
          display: block;
          height: 2px;
          position: absolute;
          top: 23px;
          left: 50%;
          transform: translateX(-50%);
          width: 24px;
          background-color: #000;
          transition: 0.4s;
        }

        .hamburger__line::before,
        .hamburger__line::after {
          content: "";
          display: block;
          height: 100%;
          position: absolute;
          width: 100%;
          background-color: #000;
          transition: inherit;
        }

        .hamburger__line::before {
          top: -6px;
        }

        .hamburger__line::after {
          top: 6px;
        }

        .hamburger__text {
          position: absolute;
          bottom: 8px;
          left: 50%;
          transform: translateX(-50%);
          width: 100%;
        }

        .hamburger__text::before {
          content: "メニュー";
          text-align: center;
          color: #000;
          font-size: 10px;
          font-weight: 900;
        }
      }

      .hamburger.-active .hamburger__line {
        background-color: transparent;
      }

      .hamburger.-active .hamburger__line::before {
        top: 0;
        transform: rotate(45deg);
      }

      .hamburger.-active .hamburger__line::after {
        top: 0;
        transform: rotate(-45deg);
      }

      .hamburger.-active .hamburger__text::before {
        content: '閉じる';
      }

      .header__nav-area {
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 400;
        height: 80%;
        width: 100%;
        visibility: hidden;
        padding-top: 60px;
        background-color: #ffee00;
        transition: 0.4s;

        .global-navigation {
          padding-top: 30px;
          padding-right: 25px;
          padding-bottom: 10px;
          padding-left: 25px;
          background-color: #ffee00;

          .global-navigation__list {
            .gnav_list_li {
              padding-block: 15px;
              border-bottom: 1px solid #e7e9ee;
              list-style: none;

              .global-navigation__link {
                display: flex;
                align-items: center;
                color: #000;
                font-weight: 400;
                transition: color 0.4s;
                font-size: 0.9em;
                text-decoration: none;
                padding-left: 30px;
              }

              .global-navigation__link:hover {
                text-decoration: underline;
              }

              .global-navigation__link.-accordion {
                position: relative;
                background: none;
                border: none;
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
                width: 100%;
                padding: 0 0 0 30px;
              }

              .global-navigation__link.-accordion::after {
                content: '';
                display: block;
                height: 12px;
                position: absolute;
                top: 50%;
                right: 10px;
                width: 2px;
                background-color: #000;
                transform: translateY(-50%);
                transition: transform 0.4s;
              }

              .global-navigation__link.-accordion::before {
                content: '';
                display: block;
                height: 2px;
                position: absolute;
                top: 50%;
                right: 5px;
                width: 12px;
                background-color: #000;
                transform: translateY(-50%);
              }

              .global-navigation__link.-active::after {
                transform: translateY(-50%) rotate(-90deg);
              }
            }

            .accordion {
              height: 0;
              overflow: hidden;
              visibility: hidden;
              transition: 0.4s;

              .accordion__list {
                .accordion_list_li {
                  padding-block: 8px;
                  font-size: 0.8em;


                  .accordion__link {
                    color: #000;
                    margin-left: 60px;
                    text-decoration: none;
                  }
                }

                .accordion_list_li:last-child {
                  border: none;
                }

                .accordion__link:hover {
                  color: #616bff;
                  text-decoration: underline;
                }
              }
            }

            .accordion.-active {
              height: auto;
              padding-top: 30px;
              visibility: visible;
            }
          }
        }
      }

      .header__nav-area.-active {
        left: 0;
        visibility: visible;
      }
    }
  }
}

/* メインナビアニメーション */
@keyframes appear {
  to {
    translate: 0 0;
    opacity: 1;
  }
}

/* ファーストビュー部分 */
.fv {
  display: grid;

  .hero {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: 700px;
    z-index: 0;

    .img-01,
    .img-02,
    .img-03 {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      z-index: -1;
    }

    .img-01 {
      background: center / cover url(../img/Anbiru-hp.JPG);
      animation-name: slide-animation;
      animation-delay: 0s;
      animation-duration: 36s;
      animation-iteration-count: infinite;
    }

    .img-02 {
      background: center / cover url(../img/goroumon2.jpg);
      animation-name: slide-animation;
      animation-delay: 12s;
      animation-duration: 36s;
      animation-iteration-count: infinite;
    }

    .img-03 {
      background: center / cover url(../img/Mt.sakurazima.jpg);
      animation-name: slide-animation;
      animation-delay: 24s;
      animation-duration: 36s;
      animation-iteration-count: infinite;
    }
  }
}

/*FVレスポンシブ*/
@media(max-width:1199px) {
  .fv {
    .hero {
      height: 480px;
    }
  }
}

@media(max-width:599px) {
  .fv {
    .hero {
      height: 300px;
      z-index: -10;
    }
  }
}

/* スライドショー */
@keyframes slide-animation {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  20% {
    opacity: 1;
    transform: scale(1.0);
  }

  30% {
    opacity: 1
  }

  40% {
    opacity: 0
  }

  100% {
    opacity: 0;
    transform: scale(1.10);
  }
}

/* メインコンテンツ */
/* 重要なお知らせ */
.one-col-container {
  width: 100%;

  .container-inner {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    padding-block: 50px;

    h3 {
      width: 250px;
      margin: 0 auto;
      padding-inline: 5px;
      padding-block: 8px;
      color: red;
      font-size: 1.6em;
      font-weight: 600;
      border: 2px solid red;
      border-radius: 16px;
    }

    .important {
      margin-block: 20px;

      h4 {
        color: red;
        font-size: 1.4em;
      }

      p {
        line-height: 2rem;
        font-size: 1em;
        font-weight: 300;
        padding-bottom: 10px;

        span {
          font-weight: 400;
        }

        .span-bt {
          font-weight: 500;
          font-size: 1.2em;
          text-decoration: underline;
        }
      }

    }
  }
}

/* ２カラム部分 */
.two-col-container {
  background: rgb(255, 251, 239);
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;

  .container-inner {
    margin-block: 40px;

    /* お知らせ */
    .news {
      width: 85%;
      margin-left: auto;
      margin-bottom: 50px;

      .news-inner {
        padding-right: 35px;

        .news-h3-container {
          margin-bottom: 20px;
          display: flex;
          justify-content: space-between;
          align-items: end;

          h3 {
            width: 50%;
            background-image: linear-gradient(rgba(0, 0, 0, 0) 70%, rgb(255, 238, 0)70%);

            span:first-child {
              font-size: 1.8em;
              font-weight: 400;
              padding-right: 5px;
            }

            span:last-child {
              font-size: 0.9em;
              font-weight: 300;
            }
          }
        }

        ul {
          list-style: none;
          padding: 0;
          margin: 0.5%;

          li {
            padding-inline: 5px;
            border-bottom: 1px solid #bcbbbb;
            font-size: 14px;

            .news_list_box {
              position: relative;
              text-decoration: none;
              color: #000;

              .news-list-date {
                display: flex;
                margin-right: 20px;
                align-items: center;

                time {
                  width: 4em;
                }

                .news-label-N {
                  color: #fff;
                  background: #616bff;
                  border-radius: 14px;
                  width: 6em;
                  text-align: center;
                  margin-left: 20px;
                }

                .news-label-C {
                  color: #fff;
                  background: #fc084d;
                  border-radius: 14px;
                  width: 6em;
                  text-align: center;
                  margin-left: 20px;
                }

                .news-label-R {
                  color: #fff;
                  background: #f57e1d;
                  border-radius: 14px;
                  width: 6em;
                  text-align: center;
                  margin-left: 20px;
                }
              }

              .news_link {
                text-decoration: none;
                color: #000;
              }

              .news_link:hover {
                text-decoration: underline;
                color: #616bff;
              }
            }
          }
        }
      }
    }

    /* 診療案内 */
    .medical-info {
      width: 85%;
      margin-left: auto;
      margin-bottom: 30px;

      h3 {
        width: 50%;
        background-image: linear-gradient(rgba(0, 0, 0, 0) 70%, rgb(255, 238, 0)70%);
        margin-bottom: 40px;

        span:first-child {
          font-size: 1.8em;
          font-weight: 400;
          padding-right: 5px;
        }

        span:last-child {
          font-size: 0.9em;
          font-weight: 300;
        }
      }

      p {
        text-align: center;
        font-weight: 300;
        font-size: 1em;
      }

    }

    /* 診療時間 */
    .top_medical_table {
      height: 150px;
      width: 90%;
      margin: 0 auto 10px;
      border-collapse: collapse;
      background: rgb(255, 251, 239);
      border-left: 1px solid #d3d2d2;
      border-bottom: 1px solid #d3d2d2;

      tr {
        text-align: center;
      }

      .t_medical_th {
        font-size: 1.1em;
        background: #fff566;
        border-inline: 1px solid #d3d2d2;
        border-bottom: 1px solid #d3d2d2;
        font-weight: 400;
        color: #000;
      }

      .t_medical_td {
        font-size: 1em;
        font-weight: 300;
        min-width: 30px;
        border-inline: 1px solid #d3d2d2;
        color: #616bff;
      }

      .t_medical_td:first-child {
        color: #000;
        border-left: none;
      }
    }

  }

  /* サイド部分 */
  .aside {
    box-sizing: border-box;
    margin-top: 40px;
    margin-bottom: 40px;

    .side-contents {
      width: 70%;

      .side-inner {
        padding-top: 20px;
      }

      .side-box {
        margin-bottom: 60px;
        text-align: center;

        a:hover {
          background: #fff;
          opacity: 0.8;
        }

        .side-img1 {
          box-sizing: border-box;
          max-width: 70%;
        }

        .side-img2,
        .side-img3 {
          box-sizing: border-box;
          max-width: 80%;
        }
      }
    }
  }
}

/*２カラム部分レスポンシブ*/
/*スマホ*/
@media(min-width:600px) {
  .two-col-container {
    .news {
      .news-inner {
        ul {
          li {
            padding: 15px 0;

            .news_list_box {
              display: flex;
              padding-right: 30px;
            }
          }
        }
      }
    }
  }

  .aside {
    .side-contents {
      padding-left: 20px;
    }
  }
}

@media(max-width:599px) {
  .two-col-container {
    grid-template-columns: 1fr;

    .news {
      margin: 0 auto;

      .news-inner {
        ul {
          li {
            padding-top: 15px;
            padding-bottom: 10px;

            .news_list_box {
              padding-right: 20px;

              .news_text {
                padding: 5px 0 0 5px;
              }
            }
          }
        }
      }
    }

    .container-inner {
      .medical-info {
        margin: 0 auto;

        .top_medical_table {
          th {
            font-size: 0.9em;
          }

          td {
            font-size: 0.8em;
          }
        }
      }
    }

    .side-contents {
      margin: 0 auto;

      .side-box {
        .side-img1 {
          width: 60%;
        }

        .side-img2,
        .side-img3 {
          width: 250px;
        }
      }
    }
  }
}

/* フッター部分 */
footer {
  width: 100%;
  border-top: 1px solid #616bff;

  /* フッター施設情報 */
  .footer_container {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    padding-block: 30px;

    .footer_inner {
      display: grid;
      grid-template-columns: 0.8fr 1fr;
      align-items: center;

      .footer-info {
        text-align: center;

        h3 {
          p {
            font-size: 0.9em;
          }

          span {
            font-size: 1.6em;
          }
        }

        .footer-address {
          color: #000;
          font-weight: 200;
        }

        .footer-tel {
          padding-top: 5px;
          color: #000;
          font-size: 1.4em;
          font-weight: 400;
        }
      }

      /* フッター診療案内 */
      .footer-medical-services {

        dl {
          color: #000;
          text-align: left;

          dt {
            width: 50%;
            position: relative;
            background: rgb(255, 251, 239);
            margin-bottom: 10px;
            padding-left: 15px;
            font-size: 1.1em;
          }

          dt::before {
            position: absolute;
            top: 20%;
            left: 5px;
            width: 4px;
            height: 70%;
            content: '';
            border-radius: 3px;
            background: #ffee00;
          }

          .medical-services {
            margin-left: 40px;
            margin-bottom: 10px;
            font-size: 0.9em;
          }

          .medical-hour {
            margin-left: 40px;

            span {
              line-height: 2em;
              color: #000;
              font-size: 0.9em;
              font-weight: 400;
            }

            .item-1 {
              width: 50px;
              text-align: left;
              padding-right: 10px;
            }

            .item-2 {
              text-align: right;
            }

          }

          .closed span {
            padding-top: 5px;
            color: red;
          }
        }
      }
    }

    /* フッターアクセスマップ */
    .access-map {
      box-sizing: border-box;

      .map {
        padding-inline: 30px;
        margin: auto 0;

        iframe {
          width: 300px;
          height: 250px;
          border: none;
        }
      }
    }
  }

  /* フッターナビ */
  .sub-nav {
    padding-block: 7px;
    background: #616bff;

    ul {
      display: flex;
      justify-content: center;
      gap: 5;

      li {
        list-style: none;
        padding-inline: 5px;

        a {
          color: #fff;
          text-decoration: none;
          font-size: 0.7em;
        }

        a:hover {
          text-decoration: underline;
        }
      }
    }
  }

  p {
    padding-block: 10px;
    font-size: 0.8em;
    color: #616bff;
    text-align: center;
  }
}

/*フッターレスポンシブ*/
/*タブレット*/
@media(min-width:600px) and (max-width:960px) {
  footer {
    .footer_container {
      display: block;
      width: 90%;
      margin: 0 auto;

      .footer_inner {
        gap: 20px;
      }
    }

    .map {
      padding-top: 30px;
      text-align: center;

      iframe {
        width: 500px;
      }
    }
  }
}

@media(max-width:599px) {
  footer {
    .footer_container {
      display: block;
      width: 90%;
      margin: 0 auto;

      .footer_inner {
        display: block;
        width: 90%;
        margin: 0 auto;

        .footer-info {
          width: 100%;
        }

        .footer-medical-services {
          width: 100%;
          padding-top: 30px;
        }
      }
    }

    .map {
      padding-top: 30px;
      text-align: center;
    }
  }
}

/* ページトップへ戻るボタン */
.button_top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 14px;
  line-height: 1;
  z-index: 999;

  a {
    background: #f57e1d;
    text-decoration: none;
    color: #fff;
    width: 60px;
    padding: 28px 5px;
    text-align: center;
    display: block;
    border-radius: 90px;
    opacity: 0.9;
    transition: all .3s ease;
  }

  a:hover {
    text-decoration: none;
    opacity: .5;
  }
}

/* ぱんくずリスト */
.breadcrumb {
  padding-inline: 30px;

  ol {
    display: flex;
    flex-wrap: wrap;

    li {
      font-size: 0.8em;
      list-style: none;

      a {
        color: #000;
        text-decoration: none;
      }

      a:hover {
        text-decoration: underline;
      }
    }

    li::after {
      content: '>';
      padding: 0 0.4em;
    }

    li:last-child::after {
      content: '';
    }
  }
}

/* 各ページタイトル */
.pagetitle {
  width: 100%;
  padding-block: 15px;
  margin-bottom: 10px;
  text-align: center;
  background: #616bff;

  h3 {
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 500;
  }

  h3::before,
  h3::after {
    content: "";
    width: 10%;
    background-color: #fff;
    height: 2px;
  }

  h3::before {
    margin-right: 25px;
  }

  h3::after {
    margin-left: 25px;
  }

  span {
    color: #fff;
    font-weight: 200;
  }
}
.pagetitle::before,
.pagetitle::after {
  background-color: #000;
  content: "";
  height: 4px;
  width: 40px;
}

/*ページタイトル*/
/*レスポンシブ対応*/
@media(min-width:426px) {
  .pagetitle {
    h3 {
      font-size: 2em;
      .h3_br{
      display: none;
    }
    }
  }
}

/* ボタン */
/* 診療案内ボタン */
.btn-1 {
  width: 280px;
  margin: 40px auto 0;

  a {
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    border: 2px solid #616bff;
    color: #616bff;
    text-decoration: none;
    background: #fff;
    padding: 10px 20px;
  }

  :hover {
    color: #fff;
    background: #616bff;
  }

  a:after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #616bff;
    border-right: 3px solid #616bff;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
  }

  a:hover:after {
    border-color: #FFF;
  }
}

/* お知らせボタン */
.btn-2 {
  width: 120px;
  text-decoration: none;
  color: #fff;
  font-size: 0.9em;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #616bff;
  border-radius: 16px;
  padding: 5px 5px 5px 10px;
}

.btn-2:hover {
  color: #616bff;
  background: #fff;
  opacity: 0.7;
  border: 2px solid #616bff;

}

.btn-2:after {
  content: '';
  width: 5px;
  height: 5px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  left: 10px;
  border-radius: 1px;
  transition: 0.3s ease-in-out;
}

.btn-2:hover:after {
  border-color: #616bff;
}

/* 募集要項職種別一覧ボタン */
.btn-box {
  width: 30%;
  text-align: center;

  .btn-3 {
    margin: 0 auto;
    width: 60%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    color: #000;
    text-decoration: none;
    background: #ffee00;
    padding: 10px 20px;
  }

  :hover {
    color: #000;
    background: #fff890;
  }

  .btn-3::after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
  }
}

/*募集要項職種別一覧レスポンシブ*/
/*タブレット・スマホ*/
@media(max-width:960px) {
  .btn-3 {
    font-size: 0.8em;
  }
}

@media(max-width:768px) {
  .btn-box {
    width: 100%;

    .btn-3 {
      width: 50%;
    }
  }
}