:root {
  --color1: #ffc207;
  --color2: #038e4a;
  /* ボーダー */
  --border1: 1px solid #272727;
  --border15: 1.5px solid #272727;
  --border2: 2px solid #272727;
  /* トランジション */
  --trans: all 0.2s;
  /* 装飾内bgカラー */
  --bg-color: radial-gradient(
    closest-side,
    rgba(147, 209, 176, 1),
    rgba(177, 226, 169, 1)
  );
  /* シャドー */
  --shadow10: 10px 10px 0px 0px rgba(39, 39, 39, 1);
  --shadow5: 5px 5px 0px 0px rgba(39, 39, 39, 1);
}

@media (max-width: 960px) {
  :root {
    /* シャドー */
    --shadow10: 5px 5px 0px 0px rgba(39, 39, 39, 1);
    --shadow5: 3px 3px 0px 0px rgba(39, 39, 39, 1);
  }
}
/*------------------------------------------------------------------------------------------

共通項目

------------------------------------------------------------------------------------------*/

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: #272727;
  width: 100%;
  overflow-x: hidden;
  line-height: 1.5;
  background-color: #faf6eb;
}

.flex {
  display: flex;
}
.flex-2c {
  display: flex;
  align-items: center;
  @media (max-width: 960px) {
    flex-direction: column;
    gap: max(5vw, 40px);
  }
  .img-area {
    width: 50%;
    aspect-ratio: 600/400;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow10);
    border: var(--border1);
    @media (max-width: 960px) {
      width: 100%;
      aspect-ratio: 350/200;
    }
  }
  .text-area {
    width: 50%;
    flex: 1;
    padding-left: min(7%, 80px);
    @media (max-width: 960px) {
      width: 100%;
      padding-left: 0;
    }
  }
}
.grid-3c {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: min(2.5%, 30px);
  row-gap: 60px;
  @media (max-width: 960px) {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 30px;
  }
  .item {
    background-color: #fff;
    border-radius: 40px;
    border: var(--border1);
    box-shadow: var(--shadow10);
    padding: 15px;
    padding-bottom: 40px;
    .img {
      border-radius: 30px;
      border: var(--border1);
      overflow: hidden;
      aspect-ratio: 350/200;
      margin-bottom: 20px;
      @media (max-width: 960px) {
        margin-bottom: 15px;
      }
    }
    h3 {
      font-size: 24px;
      font-weight: 900;
      margin-bottom: 15px;
      padding: 0 5px;
      @media (max-width: 960px) {
        font-size: 20px;
        margin-bottom: 10px;
      }
    }
  }
}
a {
  width: fit-content;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deco {
  position: absolute;
  @media (max-width: 960px) {
    transform-origin: top left;
    scale: 0.5;
  }
  @media (max-width: 500px) {
    transform-origin: top left;
    scale: 0.4;
  }
}

.commitment_bg {
  position: absolute;
  z-index: -1;
  margin-top: -200px;
}
/*------------------------------------------------------------------------------------------

レイアウト

------------------------------------------------------------------------------------------*/

section {
  padding: 80px 0;
  @media screen and (max-width: 769px) {
    padding: 40px 0;
  }
}

.inner1 {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  @media screen and (max-width: 1300px) {
    width: calc(100% - 100px);
  }
  @media screen and (max-width: 769px) {
    width: calc(100% - 40px);
  }
}

/*------------------------------------------------------------------------------------------

margin

------------------------------------------------------------------------------------------*/
.mb160 {
  margin-bottom: 160px;
}
.mb120 {
  margin-bottom: 120px;
}
.mb100 {
  margin-bottom: 100px;
}
.mb80 {
  margin-bottom: 80px;
}
.mb60 {
  margin-bottom: 60px;
}
.mb40 {
  margin-bottom: 40px;
}
.mb30 {
  margin-bottom: 30px;
}
.mb20 {
  margin-bottom: 20px;
}
.mb10 {
  margin-bottom: 10px;
}
@media screen and (max-width: 960px) {
  .mb160 {
    margin-bottom: 80px;
  }
  .mb120 {
    margin-bottom: 60px;
  }
  .mb100 {
    margin-bottom: 50px;
  }
  .mb80 {
    margin-bottom: 40px;
  }
  .mb60 {
    margin-bottom: 30px;
  }
  .mb40 {
    margin-bottom: 20px;
  }
  .mb30 {
    margin-bottom: 15px;
  }
  .mb20 {
    margin-bottom: 10px;
  }
  .mb10 {
    margin-bottom: 5px;
  }
}

.section-title-area {
  text-align: center;
}

.box-text {
  font-weight: 900;
  font-size: min(5vw, 60px);
  background-color: #fff;
  border-radius: 5px;
  box-shadow: var(--shadow5);
  border: var(--border1);
  padding: 10px 15px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  @media (max-width: 960px) {
    font-size: max(30px, 5vw);
  }
}
.box-text.il {
  font-size: min(3vw, 40px);
  @media (max-width: 960px) {
    font-size: 24px;
  }
}

.sec-title {
  font-weight: 900;
  font-size: min(5vw, 60px);
  @media (max-width: 960px) {
    font-size: max(30px, 5vw);
  }
}
.under-sec-title {
  font-weight: 900;
  margin-bottom: 30px;
  font-size: min(3vw, 40px);
  @media (max-width: 960px) {
    font-size: 24px;
    margin-bottom: 15px;
  }
}

.desc {
  font-size: 16px;
  line-height: 2;
  @media screen and (max-width: 960px) {
    font-size: 14px;
  }
}

.t-center {
  text-align: center;
}

.num {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

/*------------------------------------------------------------------------------------------

区切り線スタイル

------------------------------------------------------------------------------------------*/

.line-top {
  width: 100%;
  margin-bottom: -3px;
  position: relative;
  z-index: 2;
  img {
    width: 100%;
    border-radius: 0;
  }
}

.line-bottom {
  width: 100%;
  margin-top: -3px;
  position: relative;
  z-index: 2;
  img {
    width: 100%;
    border-radius: 0;
  }
}

/*------------------------------------------------------------------------------------------

ボタン

------------------------------------------------------------------------------------------*/

.btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px 18px 30px;
  border-radius: 100px;
  background-color: #fff;
  transition: var(--trans);
  width: 206px;
  height: 60px;
  border: var(--border1);
  box-shadow: 3px 2px 0px 0px rgba(39, 39, 39, 1);
  @media (max-width: 769px) {
    width: 185px;
    height: 54px;
  }
  span {
    font-size: 16px;
    @media (max-width: 769px) {
      font-size: 14px;
    }
  }
  img {
    width: 22px;
    object-fit: contain;
    border-radius: 0;
  }
}
.btn:hover {
  background-color: #81e835;
}

.btn_s {
  background-color: #81e835;
  border-radius: 100px;
  transition: var(--trans);
  width: 80px;
  height: 40px;
  border: var(--border1);
  box-shadow: 3px 2px 0px 0px rgba(39, 39, 39, 1);
  display: grid;
  place-items: center;
  @media (max-width: 960px) {
    width: 53px;
    height: 25px;
  }
  img {
    width: 22px;
    object-fit: contain;
    @media (max-width: 960px) {
      width: 13px;
    }
  }
}
.center {
  margin-left: auto;
  margin-right: auto;
}

/*------------------------------------------------------------------------------------------

マップ

------------------------------------------------------------------------------------------*/
.map {
  height: 380px;
  @media (max-width: 960px) {
    height: 300px;
  }
  iframe {
    border-radius: 40px;
  }
}

/* モバイル改行 */

.sp {
  display: none;
}

@media screen and (max-width: 667px) {
  .sp {
    display: block;
  }
}

.pc {
  display: block;
}

@media screen and (max-width: 667px) {
  .pc {
    display: none;
  }
}

/* ----------------------------

ヘッダー

------------------------------*/

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 800;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: min(10vw, 160px);
    @media (max-width: 769px) {
      height: 86px;
    }
    .logo-area {
      height: 100%;
    }

    .logo {
      translate: -2px -2px;
      background-color: #fff;
      padding: min(2vw, 27px) min(4vw, 50px);
      border-radius: 0 0 40px 0;
      border-right: var(--border15);
      border-bottom: var(--border15);
      border-top: 0;
      display: flex;
      align-items: center;
      position: relative;
      z-index: 999;
      height: 100%;
      @media screen and (max-width: 960px) {
        padding: 15px 15px 15px 20px;
      }

      img {
        width: auto;
        max-height: 100%;
        object-fit: contain;
        border-radius: 0;
      }

      span {
        position: absolute;
        top: 0;
        left: 0;
        z-index: -999;
        opacity: 0;
        font-size: 8px;
      }
    }
    .spacer {
      flex: 1;
    }
    .nav-wrap {
      background-color: #fff;
      border-radius: 100px;
      border: var(--border15);
      padding: 0 18px;
      @media screen and (max-width: 960px) {
        display: none;
      }
      li {
        a,
        span {
          display: inline-block;
          padding: 18px 12px;
          transition: var(--trans);
          cursor: pointer;
          font-size: 16px;
          @media screen and (max-width: 1150px) {
            font-size: 14px;
          }
        }
      }
      li:hover {
        .top_nav {
          color: #65d612;
        }
      }
      .under_nav_open {
        position: relative;
      }
      .under_nav {
        opacity: 0;
        display: flex;
        gap: 53px;
        padding: 40px;
        border: var(--border15);
        border-radius: 40px;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 50%;
        translate: -50%;
        width: 544px;
        transition: var(--trans);
        visibility: hidden;
        span {
          text-wrap: nowrap;
          padding: 0;
        }
        .op6 {
          opacity: 0.6;
        }
        ul {
          flex: 1;
        }
        li {
          width: 100%;

          a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 9px 0;
            width: 100%;
            text-wrap: nowrap;
            .btn_s {
              width: 53px;
              height: 25px;
              img {
                width: 13px;
              }
            }
          }
        }
        li:first-child a {
          padding-top: 0;
        }
        li:last-child a {
          padding-bottom: 0;
        }
        li:hover {
          color: #65d612;
          .btn_s {
            background-color: #fff;
          }
        }
      }
      .under_nav_open:hover {
        .under_nav {
          opacity: 1;
          top: 80px;
          visibility: visible;
        }
      }
    }
    .btn.b_tel {
      background-color: #1b3886;
      width: fit-content;
      gap: 10px;
      margin-right: 50px;
      box-shadow: none;
      border: 1.5px solid #1b3886;
      @media screen and (max-width: 960px) {
        display: none;
      }
      span {
        font-size: 24px;
        color: #fff;
        text-wrap: nowrap;
        @media screen and (max-width: 1150px) {
          font-size: 18px;
        }
      }
    }
    .btn.b_tel:hover {
      background-color: #65d612;
    }
  }
}
#header-top {
  transform: translateY(-100%);
  opacity: 0;
  transition: 1.6s cubic-bezier(0.1, 1, 0.6, 1);
}
#header-top.header-animate {
  transform: translateY(0);
  opacity: 1;
}

#hamburger-menu-btn {
  display: none;
  cursor: pointer;
  z-index: 900;
  @media screen and (max-width: 960px) {
    display: block;
  }

  .box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    height: 45px;
    width: 56px;
    border-radius: 40px;
    position: relative;
    z-index: 999;
    background-color: #1b3886;
    margin-right: 20px;
    span {
      display: block;
      height: 2px;
      width: 23px;
      background: #fff;
      transition: 0.2s all ease-in-out;
    }
  }
}

#hamburger-menu-btn.active {
  z-index: 999;
  .box {
  }
  span:nth-child(1) {
    transform: rotate(30deg);
    translate: 0 2.5px;
  }
  span:nth-child(2) {
    display: none;
  }
  span:nth-child(3) {
    transform: rotate(-30deg);
    translate: 0 -2.5px;
  }
}

/* spメニュー */

#sp-header {
  width: min(100%, 500px);
  height: 100vh;
  overflow-y: scroll;
  position: fixed;
  top: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--trans);
  background-color: #faf6eb;
  padding: 100px 20px;

  nav {
    .sp-menu {
      display: flex;
      flex-direction: column;

      li {
        border-bottom: var(--border1);
        transition: var(--trans);
        width: 100%;
        a {
          width: 100%;
          display: inline-block;
          padding: 25px 0;
          font-size: 14px;
          font-weight: 700;
          display: flex;
          justify-content: space-between;
          .btn_s {
            box-shadow: 1px 1px 0px 0px rgba(39, 39, 39, 1);
          }
        }
      }
      li:last-child {
        border-bottom: 0;
        margin-bottom: 24px;
      }
      .under_nav_open {
        padding-top: 25px;
        .top_nav {
          opacity: 0.6;
          font-size: 14px;
          display: inline-block;
          padding-bottom: 10px;
        }
        .under_nav {
          li {
            border-bottom: 0;
            a {
              padding: 10px 0;
              .btn_s.il {
                background-color: #fff;
              }
            }
          }
        }
      }
    }
  }

  .btn {
    margin: 0 auto;
    padding: 20px 78px;
    margin-bottom: 40px;
    span {
      font-size: 14px;
    }
  }
  .tel {
    display: flex;
    gap: 4px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
    .img {
      width: 40px;
      translate: 0 5px;
      img {
        width: 100%;
      }
    }
    span {
      font-size: 44px;
      color: var(--color2);
      font-weight: 700;
    }
  }
  .btn.b_tel {
    background-color: #1b3886;
    width: min(100%, 350px);
    height: 60px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    img {
      width: 20px;
      height: 20px;
    }
    span {
      color: #fff;
      text-wrap: nowrap;
      font-size: 24px;
    }
  }
}

#sp-header.active {
  opacity: 1;
  z-index: +2;
  visibility: visible;
}

/*------------------------------------------------------------------------------------------

mv

------------------------------------------------------------------------------------------*/

.mv {
  width: 100%;
  padding: 0;
  position: relative;
  padding-top: min(calc(10vw + 50px), 200px);
  @media (max-width: 960px) {
    padding-top: 100px;
  }
  .mv_img_area {
    position: relative;
    /* margin-top: min(calc(10vw + 50px), 200px); */
    margin-bottom: 100px;
    /* @media (max-width: 960px) {
      margin-top: 100px;
    } */

    .mv_img {
      height: 720px;
      width: 100%;
      box-shadow: var(--shadow10);
      border-radius: 40px;
      overflow: hidden;
      border: var(--border1);

      @media (max-width: 769px) {
        height: 370px;
      }
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .mv-text {
      bottom: -26px;
      left: -50px;
      @media (max-width: 1300px) {
        bottom: -82px;
        left: -10px;
      }
      @media (max-width: 960px) {
        scale: 0.8;
        transform-origin: bottom left;
      }
      @media (max-width: 500px) {
        scale: 0.8;
        transform-origin: bottom left;
      }
    }
    .mv-l1 {
      left: -118px;
      top: 154px;
      @media (max-width: 1300px) {
        left: -10px;
        top: 56px;
      }
    }
    .mv-r1 {
      top: 38px;
      right: -118px;
      @media (max-width: 1300px) {
        right: -20px;
        top: -20px;
        transform-origin: top right;
      }
    }
    .mv-r2 {
      bottom: -141px;
      right: -118px;
      @media (max-width: 1300px) {
        right: -20px;
        bottom: -30px;
        transform-origin: bottom right;
      }
    }
  }
  .mv-l2 {
    width: 60%;
    aspect-ratio: 753/258;
    margin-bottom: 25px;
    margin-left: -118px;
    @media (max-width: 1300px) {
      margin-left: 0;
      width: 80%;
    }
  }
}
.mv::before {
  content: "";
  background-image: url(../img/background_img.jpg);
  background-repeat: no-repeat;
  position: absolute;
  background-size: cover;
  bottom: 10px;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.about {
  padding: 0;
  position: relative;
  z-index: 2;
  .flex-2c {
    position: relative;
    .img-area {
      aspect-ratio: 600/476;
      @media (max-width: 960px) {
        order: 2;
        aspect-ratio: 350/200;
      }
    }
    .text-area {
      position: relative;
      z-index: 2;
      @media (max-width: 960px) {
        order: 1;
      }
    }
    .tori1 {
      top: 0;
      right: -118px;
      @media (max-width: 1300px) {
        right: 0px;
        top: -30px;
        transform-origin: top right;
      }
    }
    .about-r1 {
      bottom: -132px;
      right: -118px;
      @media (max-width: 1300px) {
        bottom: -60px;
        right: 0;
        transform-origin: bottom right;
      }
    }
  }
}

.facility {
  background-color: #eaeaea;
  .section-title-area {
    position: relative;
    z-index: 3;
  }
  .facility-r1 {
    bottom: 0;
    right: 0;
    @media (max-width: 1300px) {
      top: -30px;
      transform-origin: top right;
    }
    @media (max-width: 500px) {
      display: none;
    }
  }
  .facility-l1 {
    bottom: 0;
    left: 0;
    z-index: 3;
    @media (max-width: 1300px) {
      transform-origin: bottom left;
    }
    @media (max-width: 500px) {
      transform-origin: top left;
      bottom: auto;
      top: -100px;
    }
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: min(5vw, 60px);
    row-gap: min(5vw, 60px);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    @media (max-width: 960px) {
      grid-template-columns: repeat(1, 1fr);
      row-gap: 30px;
    }

    .item {
      cursor: pointer;
      position: relative;
      z-index: 2;
      .img {
        border-radius: 40px;
        overflow: hidden;
        box-shadow: var(--shadow10);
        border: var(--border1);
        aspect-ratio: 570/350;
        img {
          transition: var(--trans);
        }
      }
      .btn_s {
        margin-left: auto;
      }
    }
    .item:hover {
      .img {
        img {
          scale: 1.05;
        }
      }
      .btn_s {
        background-color: #fff;
      }
    }
    .kumo-r {
      top: 35%;
      right: -118px;
      @media (max-width: 960px) {
        right: 0;
        transform-origin: top right;
      }
    }
    .kumo-l {
      bottom: 0;
      left: -118px;
      @media (max-width: 960px) {
        transform-origin: bottom left;
        left: 0;
      }
    }
  }
}

.service {
  position: relative;
  .inner1 {
    position: relative;
    .section-title-area {
      position: relative;
      z-index: 3;
    }
  }
  .tori2 {
    top: 0;
    right: -118px;
    @media (max-width: 1300px) {
      transform-origin: top right;
      right: 0;
      top: -50px;
    }
    @media (max-width: 960px) {
      display: none;
    }
  }
  .service-l1 {
    top: 30px;
    left: -118px;
    @media (max-width: 1300px) {
      transform-origin: top left;
      left: 0;
      top: -50px;
    }
    @media (max-width: 960px) {
      display: none;
    }
  }
}
.service::before {
  content: "";
  background-image: url(../img/commitment_bg.jpg);
  background-repeat: no-repeat;
  position: absolute;
  background-size: cover;
  top: -200px;
  width: 100%;
  height: 130%;
  z-index: -1;
  @media (max-width: 960px) {
    background-image: url(../img/background-sp-commit.jpg);
    background-repeat: repeat;
    background-size: 100%;
  }
}
.under_commitment::before {
  content: "";
  background-image: url(../img/commitment_bg.jpg);
  background-repeat: no-repeat;
  position: absolute;
  background-size: cover;
  top: -200px;
  width: 100%;
  height: 130%;
  z-index: -1;
  @media (max-width: 960px) {
    background-image: url(../img/background-sp-commit.jpg);
    background-repeat: repeat;
    background-size: 100%;
  }
}

/*------------------------------------------------------------------------------------------

トップページ　新着情報

------------------------------------------------------------------------------------------*/

.news {
  background-color: #faf6eb;
  border-top: 1px solid #272727;
  .flex {
    gap: 80px;
    justify-content: space-between;
    @media (max-width: 960px) {
      flex-direction: column;
      gap: 40px;
    }
  }
  .l-cont {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    @media (max-width: 960px) {
      display: contents;
    }
    .sec-title {
      @media (max-width: 960px) {
        order: 1;
      }
    }
    .btn {
      @media (max-width: 960px) {
        order: 3;
      }
    }
  }
  .r-cont {
    flex: 1;
    max-width: 800px;
    @media (max-width: 960px) {
      order: 2;
    }

    .news-list {
      display: flex;
      flex-direction: column;
      li {
        border-bottom: 1px solid #ccc;
        .flex {
          width: 100%;
          gap: 40px;
          align-items: center;
          padding: 30px 0;
          transition: var(--trans);
          @media (max-width: 960px) {
            display: block;
          }
          .date {
            font-size: 16px;
            @media (max-width: 960px) {
              font-size: 14px;
              display: inline-block;
              margin-right: 20px;
              margin-bottom: 10px;
            }
          }
          .category {
            width: 80px;
            font-size: 12px;
            border: 1px solid #272727;
            border-radius: 100px;
            text-align: center;
            background-color: #fff;
            padding: 6px 15px;
            @media (max-width: 960px) {
              font-size: 10px;
              padding: 3px 7px;
              width: auto;
            }
          }
          h3 {
            font-size: 16px;
            flex: 1;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            @media (max-width: 960px) {
              font-size: 14px;
            }
          }
        }
      }
      li:first-child {
        border-top: 1px solid #ccc;
      }
      li:hover {
        .flex {
          scale: 1.02;
          color: #65d612;
          .category {
            background-color: #65d612;
            color: #272727;
          }
        }
      }
    }
  }
}

/*------------------------------------------------------------------------------------------

フッター

------------------------------------------------------------------------------------------*/

footer {
  .footer {
    padding: 80px 0;
    background-color: #eaeaea;
    border-top: var(--border15);
    @media (max-width: 960px) {
      padding: 40px 0;
    }

    .flex {
      @media (max-width: 960px) {
        flex-direction: column;
      }
      .l-cont {
        width: 50%;
        @media (max-width: 960px) {
          width: 100%;
          padding-bottom: 40px;
          border-bottom: 1px #ccc solid;
        }
        .tel-area {
          display: flex;
          gap: 10px;
          align-items: center;
          img {
            width: 43px;
            aspect-ratio: 1/1;
            @media (max-width: 960px) {
              width: max(5vw, 22px);
            }
          }
          .num {
            font-size: 60px;
            line-height: 1;
            @media (max-width: 960px) {
              font-size: max(7vw, 40px);
            }
          }
        }
        .reception {
          border-radius: 100px;
          border: var(--border1);
          padding: 7px 15px;
          font-size: 16px;
          width: fit-content;
          @media (max-width: 960px) {
            font-size: 14px;
          }
        }
        .policy {
          font-size: 12px;
          text-decoration: underline;
        }
      }
      .r-cont {
        width: 50%;
        padding-left: min(7%, 80px);
        @media (max-width: 960px) {
          width: 100%;
          padding-left: 0;
          padding-top: 40px;
          padding-bottom: 40px;
        }
        .logo {
          display: block;
          width: 197px;
          aspect-ratio: 197/67;
          margin-bottom: 30px;
          img {
            object-fit: contain;
          }
        }
      }
    }
    small {
      font-size: 12px;
      display: block;
      width: fit-content;
      margin-left: auto;
      @media (max-width: 960px) {
        font-size: 10px;
        margin-right: auto;
        margin-left: 0;
      }
    }
  }
}

/*------------------------------------------------------------------------------------------

下層ページ　mv

------------------------------------------------------------------------------------------*/
#under_service,
#under_company,
#under_news {
  .under-mv {
    margin-top: min(calc(10vw + 50px), 200px);
    padding: 0;
    padding-bottom: 150px;
    @media (max-width: 960px) {
      padding-bottom: 50px;
    }
    .img_area {
      position: relative;
      .img {
        border-radius: 40px;
        border: var(--border1);
        box-shadow: var(--shadow10);
        overflow: hidden;
        @media (max-width: 769px) {
          height: 320px;
        }
      }
      .box-text {
        position: absolute;
        left: -50px;
        bottom: -50px;
        z-index: 2;
        @media (max-width: 960px) {
          left: -10px;
          bottom: -30px;
        }
      }
      .deco {
        bottom: -80px;
        right: -80px;
        @media (max-width: 1300px) {
          bottom: -50px;
          right: -10px;
          transform-origin: bottom right;
        }
      }
    }
  }
}
.under-mv::before {
  content: "";
  background-image: url(../img/background_img.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: -480px;
  width: 100%;
  height: 132%;
  z-index: -1;
  @media (max-width: 960px) {
    height: 110%;
  }
}

.under_about {
  .inner1 {
    position: relative;
    .flex-2c {
      position: relative;
      z-index: 2;
      .img-area {
        @media (max-width: 960px) {
          order: 2;
        }
      }
      .text-area {
        @media (max-width: 960px) {
          order: 1;
        }
      }
    }
    .tori1 {
      right: -118px;
      top: 0;
      @media (max-width: 1300px) {
        right: 0px;
        top: -50px;
        transform-origin: top right;
      }
    }
    .under-facility-r2 {
      right: -118px;
      bottom: -70px;
      @media (max-width: 1300px) {
        right: 0px;
        bottom: 0px;
        transform-origin: bottom right;
      }
    }
  }
}

.under_facility {
  .under-mv::before {
    @media (max-width: 960px) {
      top: -200px;
      height: 110%;
    }
  }
  .inner1 {
    position: relative;
    .under-facility-r1 {
      bottom: 20px;
      right: -91px;
      @media (max-width: 1300px) {
        right: -10px;
        transform-origin: bottom right;
      }
    }
    .under-facility-l1 {
      bottom: 20px;
      left: -50px;
      @media (max-width: 1300px) {
        bottom: 50%;
        left: -10px;
        transform-origin: bottom left;
      }
    }
  }
  .mv_box {
    margin-top: min(calc(10vw + 50px), 200px);
    margin-bottom: 40px;
    border-radius: 40px;
    border: var(--border2);
    box-shadow: var(--shadow10);
    background-color: #fff;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: min(5%, 60px);
    @media (max-width: 960px) {
      flex-direction: column;
      gap: 30px;
      padding: 30px 15px;
    }
    .l-cont {
      flex: 1;
      @media (max-width: 960px) {
        width: 100%;
        padding: 0 10px;
      }
      h1 {
        font-size: min(4vw, 40px);
        font-weight: 900;
        margin-bottom: 17px;
        word-break: keep-all;
        @media (max-width: 769px) {
          font-size: 24px;
        }
      }
      .desc {
        margin-bottom: 30px;
        @media (max-width: 960px) {
          margin-bottom: 15px;
        }
      }
      .info_box {
        background-color: #eaeaea;
        border-radius: 20px;
        padding: 20px 30px;
        width: 100%;
        @media (max-width: 960px) {
          padding: 15px;
        }
        dl {
          display: grid;
          grid-template-columns: max-content 1fr; /* 左は内容に合わせて最長幅、右は残り */
          column-gap: 20px;
          row-gap: 12px;
          @media (max-width: 960px) {
            font-size: 13px;
          }
          dt {
            opacity: 0.6;
          }
          dd {
            word-break: keep-all;
          }
          .under_line {
            text-decoration: underline;
          }
          .op6 {
            opacity: 0.6;
            font-size: 14px;
            display: inline-block;
            @media (max-width: 960px) {
              font-size: 11px;
            }
          }
        }
      }
    }
    .r-cont {
      width: min(34vw, 420px);
      aspect-ratio: 420/380;
      border-radius: 40px;
      border: var(--border2);
      overflow: hidden;
      @media (max-width: 960px) {
        width: 100%;
        aspect-ratio: 320 / 308;
      }
    }
  }
  .under_works {
    padding: 60px 0;
    background-color: #eaeaea;
    @media (max-width: 960px) {
      padding: 30px 0;
    }
    .desc {
      @media (max-width: 769px) {
        text-align: left;
      }
    }
    .under-sec-title {
      position: relative;

      .under-works-l1 {
        bottom: -80px;
        left: 0;
        z-index: 2;
        @media (max-width: 1300px) {
          bottom: 0px;
          left: 0;
          transform-origin: bottom left;
        }
      }
      .under-works-r1 {
        bottom: -80px;
        right: 0;
        z-index: 2;
        @media (max-width: 1300px) {
          bottom: 0px;
          right: 0;
          transform-origin: bottom right;
        }
        @media (max-width: 500px) {
          display: none;
        }
      }
    }

    .grid-4c {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      column-gap: min(5%, 54px);
      row-gap: 60px;
      position: relative;
      @media (max-width: 960px) {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
        column-gap: min(5%, 54px);
      }
      .item {
        position: relative;
        z-index: 2;
        .img {
          border-radius: 100px;
          border: var(--border1);
          overflow: hidden;
          aspect-ratio: 1/1;
          margin-bottom: 20px;
          @media (max-width: 960px) {
            border-radius: 60px;
            margin-bottom: 10px;
          }
        }
        p {
          text-align: center;
          font-size: 24px;
          font-weight: 900;
          @media (max-width: 960px) {
            font-size: 16px;
          }
        }
      }
      .kumo-r {
        top: 35%;
        right: -118px;
        @media (max-width: 1300px) {
          right: -10px;
          transform-origin: top right;
        }
      }
      .kumo-l {
        bottom: 0;
        left: -118px;
        @media (max-width: 1300px) {
          transform-origin: bottom left;
          left: -10px;
        }
      }
    }
  }

  .under_commitment {
    padding: 120px 0;
    position: relative;
    @media (max-width: 960px) {
      padding: 60px 0;
    }
    .inner1 {
      position: relative;
    }
    .tori3 {
      top: -57px;
      right: 0;
      @media (max-width: 1300px) {
        transform-origin: top right;
        top: -100px;
      }
      @media (max-width: 769px) {
        display: none;
      }
    }
  }

  .under_schedule {
    padding: 160px 0 120px;
    border-top: var(--border1);
    background-color: #faf6eb;
    @media (max-width: 960px) {
      padding: 80px 0;
    }

    .flex {
      gap: min(5%, 60px);
      align-items: start;
      margin-bottom: 120px;
      position: relative;
      @media (max-width: 769px) {
        flex-direction: column;
        gap: 60px;
      }
    }
    .wrapper {
      flex: 1;
      @media (max-width: 769px) {
        width: min(100%, 500px);
        margin-left: auto;
        margin-right: auto;
      }
    }
    .content {
      background-color: #fff;
      border-radius: 40px;
      border: var(--border1);
      padding: 68px 40px 30px;
      width: 100%;
      @media (max-width: 960px) {
        padding: 34px 20px 15px;
      }

      .box-text {
        margin-top: -106px;
        @media (max-width: 960px) {
          margin-top: -62px;
        }
      }
      ul {
        width: 100%;
        position: relative;
        z-index: 1;
        li {
          padding: 20px 30px;
          border-radius: 20px;
          border: var(--border1);
          background-color: #faf6eb;
          margin-bottom: 20px;
          font-size: 20px;
          @media (max-width: 960px) {
            font-size: 16px;
            padding: 10px 15px;
            border-radius: 15px;
          }
          .note {
            font-size: 16px;
            @media (max-width: 960px) {
              font-size: 12px;
            }
          }
        }
      }
      ul::before {
        content: "";
        background-color: #81e835;
        width: 10px;
        height: 90%;
        position: absolute;
        top: 5%;
        left: 50%;
        translate: -50%;
        z-index: -1;
      }
      ul.il::before {
        background-color: #77a4cb;
      }
    }
    .schedule_img {
      margin-top: 30px;
    }
    .schedule-l1 {
      top: -93px;
      left: -65px;
      @media (max-width: 1300px) {
        transform-origin: top left;
        top: -50px;
        left: -10px;
      }
    }
  }
}

/*------------------------------------------------------------------------------------------

私たちの取り組み

------------------------------------------------------------------------------------------*/
#under_service {
  .flex-2c {
    @media (max-width: 960px) {
      gap: 20px;
    }
    h2 {
      line-height: 1.5;
    }
  }
  .flex-2c.il {
    @media (max-width: 960px) {
      gap: 20px;
    }
    .text-area {
      padding-right: min(7%, 80px);
      padding-left: 0;
    }
  }
}

/*------------------------------------------------------------------------------------------

法人概要

------------------------------------------------------------------------------------------*/
#under_company {
  .under_message {
    .box {
      background-color: #eaeaea;
      padding: 60px 80px;
      border-radius: 40px;
      position: relative;
      @media (max-width: 769px) {
        padding: 30px 20px;
      }
      .desc {
        position: relative;
        z-index: 2;
      }
      .name_text {
        text-align: end;
        @media (max-width: 960px) {
          font-size: 14px;
        }
        span {
          opacity: 0.6;
        }
        .owner_name {
          opacity: 1;
          display: inline-block;
          margin-left: 10px;
        }
      }
      .kumo-r {
        top: 0;
        right: -118px;
        @media (max-width: 960px) {
          transform-origin: top right;
          right: -10px;
        }
      }
      .kumo-l {
        bottom: -48px;
        left: -118px;
        @media (max-width: 960px) {
          transform-origin: bottom left;
          left: -10px;
        }
      }
    }
  }
  .under_info {
    .box {
      background-color: #fff;
      border-radius: 40px;
      border: var(--border1);
      box-shadow: var(--shadow10);
      padding: 60px 80px;
      display: flex;
      gap: min(10%, 120px);
      @media (max-width: 960px) {
        flex-direction: column;
        padding: 30px 20px;
        gap: 15px;
      }
      ul {
        flex: 1;
      }
      li {
        padding: 30px 0;
        border-bottom: 0.5px #272727 solid;
        @media (max-width: 960px) {
          padding: 15px 0;
          font-size: 14px;
        }
        p:first-child {
          opacity: 0.6;
          margin-bottom: 10px;
        }
        p {
          word-break: keep-all;
        }
        span {
          font-size: 12px;
          opacity: 0.6;
          display: inline-block;
          margin-bottom: 10px;
        }
      }
      li:first-child {
        padding-top: 0;
      }
    }
  }
}

/*------------------------------------------------------------------------------------------

新着情報ページ

------------------------------------------------------------------------------------------*/
.under_news {
  padding-bottom: 160px;
  margin-bottom: -80px;
  .inner1 {
    .blog-list {
      display: flex;
      gap: clamp(1.25rem, 0.3992rem + 3.4904vw, 3.75rem);
      flex-wrap: wrap;
      li {
        width: calc(
          (100% - (clamp(1.25rem, 0.3992rem + 3.4904vw, 3.75rem) * 2)) / 3
        );
        transition: var(--trans);

        .card {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          .img {
            width: 100%;
            margin-bottom: 20px;
            aspect-ratio: 16 / 9;
            overflow: hidden;

            img {
              width: 100%;
              height: 100%;
              object-fit: cover;
              border-radius: 20px;
            }
          }
          h3.title {
            font-size: 16px;
            margin-bottom: 10px;
            flex: 1;
          }
          .flex {
            gap: 20px;
            align-items: center;
            padding-top: 0;
            justify-content: start;
            margin: 0;
            .date {
              font-size: 14px;
            }
            .category {
              border: var(--border1);
              background-color: #fff;
              border-radius: 100px;
              padding: 0 8px;
              font-size: 12px;
            }
          }
        }
      }
      li:hover {
        scale: 1.02;
        .flex {
          .category {
            background-color: #65d612;
          }
        }
      }
    }
  }
}
@media screen and (max-width: 960px) {
  .under_news {
    padding-bottom: 40px;
    margin-bottom: -40px;
    .inner1 {
      .blog-list {
        li {
          width: calc(
            50% - (clamp(1.25rem, 0.3992rem + 3.4904vw, 3.75rem) / 2)
          );
          transition: var(--trans);

          .card {
            .img {
              margin-bottom: 10px;
            }
            h3.title {
              font-size: 14px;
            }
            .flex {
              gap: 10px;
              flex-direction: row;
              .date {
                font-size: 14px;
              }
              .category {
                font-size: 10px;
              }
            }
          }
        }
      }
    }
  }
}

/* ブログ記事ページ */

.under_blog {
  padding-bottom: 160px;
  margin-bottom: -80px;
  /* .to-archive {
    font-size: 14px;
    display: block;
    padding: 20px 0;
    width: fit-content;
    transition: var(--trans);
  }
  .to-archive:hover {
    opacity: 0.6;
  } */
  .blog-contents-area {
    width: 100%;
    text-align: left;
    background-color: #fff;
    border-radius: 40px;
    padding: 40px 80px;
    min-height: 30vh;
    margin-bottom: 80px;
  }

  .blog-dates {
    margin-bottom: 40px;
    color: #5c5575;
    font-size: 14px;
  }
  .blog-page-title {
    padding: 20px 0;
    font-size: 24px;
    font-weight: 700;
  }
  .blog-content {
    padding: 40px 0;
  }
  .btn {
    justify-content: center;
  }
}

@media screen and (max-width: 769px) {
  .under_blog {
    .blog-contents-area {
      padding: 40px 20px;
      margin-bottom: 40px;
    }

    .blog-dates {
      font-size: 12px;
      margin-bottom: 20px;
    }
    .blog-page-title {
      font-size: 18px;
      padding: 0;
      margin-bottom: 10px;
    }
  }
}

/* ----------------------------

フェードインアニメーション

------------------------------*/

.fadeIn {
  transform: translate3d(0, 50px, 0);
  transition: 1.5s;
  opacity: 0;
}
.fadeIn.animated {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
/* ----------------------------

固定フェードインアニメーション

------------------------------*/
.fadeIn-fixed {
  animation-name: fadeIn;
  animation-duration: 1.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ----------------------------

ページネーション

------------------------------*/

.page-nation {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
  @media (max-width: 769px) {
    margin-bottom: 60px;
  }

  .wp-pagenavi {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
  }

  .wp-pagenavi a,
  .current {
    transition: all 0.3s;
    font-size: 16px;
    background-color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: var(--border1);
    transition: var(--trans);
  }
  .wp-pagenavi a:hover {
    scale: 1.02;
  }

  .current {
    border: var(--border1);
    background-color: #65d612;
  }
  .wp-pagenavi a:hover {
    background-color: #65d612;
  }
}

/* ----------------------------

リキャプチャ非表示

------------------------------*/

.grecaptcha-badge {
  visibility: hidden;
}
