@charset "utf-8";
/*=========================
  Common
=========================*/
/* font define */
@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho&display=swap');

.en {
  letter-spacing: 0.1em;
}

/* color */
:root {
  --l-green1: #a2d783;
  --l-green2: #84c547;
  --green1: #3bb764;
  --green2: #14a556;
}
.l-green1 {
  color: var(--l-green1);
}
.l-green2 {
  color: var(--l-green2);
}
.green1 {
  color: var(--green1);
}
.green2 {
  color: var(--green2);
}

/* variables */
:root {
  --section-padding: 6rem 0;
}
@media (max-width: 960px) {
  :root {
    --section-padding: 4rem 0;
  }
}

html {
  scroll-behavior: smooth;
  /* scroll-padding-top: 100px;  */
}
/* @media screen and (max-width: 960px) {
  html {
    scroll-padding-top: 0px;
  }
} */
body {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 400;
  font-style: normal;
  color: #333333;
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 1920px;
  margin-inline: auto;
  position: relative;
  @media (max-width: 960px) {
    font-size: 1rem;
  }
}

main.top-main {
  background: url(../img/bg-plaster.jpg);
  background-size: 100%;
  @media (max-width: 960px) {
    background-size: 250%;
  }
}

a {
  text-decoration: none;
  transition: opacity 0.3s;
  color: inherit;
  &:hover {
    @media (any-hover: hover) {
      opacity: 0.6;
    }
  }
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
p {
  /* line-height: 2; */
  text-align: justify;
  @media (max-width: 960px) {
    /* font-size: 1rem; */
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  /* line-height: 1; */
  font-size: inherit;
  font-weight: inherit;
}

.pc-only {
  display: initial;
}
.sp-only {
  display: none;
}
@media (max-width: 960px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: initial;
  }
}

.container {
  width: calc(100% - 2rem);
  max-width: 1200px;
  margin-inline: auto;
}

/* button */
.button {
  --bg-color: var(--l-green2);
  --color: #fff;
  --r: 0px;
  background-color: var(--bg-color);
  color: var(--color);
  border-radius: var(--r);
  padding: 0.5rem 1rem;
  width: min(80%, 240px);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  .icon {
    margin-right: 1rem;
  }
  .arrow {
    margin-left: 1rem;
  }
  @media (any-hover: hover) {
    &::before {
      border-radius: var(--r);
      content: '';
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      background-color: #fff;
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
    }
    &:hover {
      opacity: 1;
    }
    &:hover::before {
      opacity: 0.25;
    }
  }
}

h2.section-title {
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  margin-bottom: 3rem;
  .en {
    color: var(--green2);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    @media (max-width: 960px) {
      font-size: 2.5rem;
    }
  }
  .jp {
    font-size: 1.75rem;
    @media (max-width: 960px) {
      font-size: 1.25rem;
    }
  }
}

/*=========================
  header
=========================*/
header {
  display: flex;
  position: relative;
  padding: 0.5rem 1rem;
  .logo-wrapper {
    position: relative;
    width: 120px;
    opacity: 1;
    margin-right: 1rem;
    .logo {
      position: absolute;
      z-index: 1;
    }
  }
  .name-wrapper {
    margin-top: auto;
    line-height: 1.25;
    .jp {
      font-size: 2.5rem;
      font-weight: 900;
    }
    .en {
      font-size: 1.5rem;
      text-align: right;
    }
  }
  .links-wrapper {
    margin-left: auto;
    .tel {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      font-size: 1.75rem;
      font-weight: 900;
      line-height: 1;
      width: fit-content;
      margin-left: auto;
      color: var(--green2);
      margin-bottom: 1rem;
    }
    .pc-nav {
      .nav-items {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        .nav-items__item {
          text-align: center;
          text-wrap: balance;
          line-height: 1.25;
          .en {
            font-size: 1rem;
            color: var(--green2);
          }
          .jp {
          }
        }
      }
    }
  }
  .sp-hamburger {
    margin-left: auto;
    display: none;
    color: #333333;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    width: 40px;
    height: fit-content;
    aspect-ratio: 1/1;
    .lines {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 10%;
      width: 32px;
      margin-inline: auto;
      height: fit-content;
      aspect-ratio: 1/1;
    }
    .line {
      height: 2px;
      width: 60%;
      background-color: #333333;
      transition: 0.3s;
    }
    .label {
      pointer-events: none;
      position: absolute;
      bottom: -0px;
      width: 100%;
      text-align: center;
      color: #333333;
      font-size: 9px;
      font-weight: 900;
    }
  }
  .sp-hamburger.active {
    .line {
      background-color: #ffffff;
    }
    .line:nth-child(1) {
      position: absolute;
      top: 50%;
      bottom: 50%;
      width: 60%;
      rotate: -45deg;
    }
    .line:nth-child(2) {
      opacity: 0;
    }
    .line:nth-child(3) {
      position: absolute;
      top: 50%;
      bottom: 50%;
      width: 60%;
      rotate: 45deg;
    }
    .label {
      color: #fff;
    }
  }
  .sp-nav {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: -120%;
    width: 100vw;
    height: 100dvh;
    background-color: var(--green2);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    .nav-items {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      .nav-items__item a {
        text-align: center;
        text-wrap: balance;
        font-size: 1.2rem;
        line-height: 1.2;
        .jp {
          font-size: 0.8em;
        }
      }
    }
  }
  .sp-nav.active {
    right: 0;
  }
  .overlay {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: #000;
    opacity: 0.75;
  }
  .overlay.active {
    display: block;
  }
}
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

@media (max-width: 960px) {
  header {
    padding: 0.5rem;
    .logo-wrapper {
      width: 70px;
      margin-right: 0.5rem;
    }
    .name-wrapper {
      .jp {
        font-size: 1.25rem;
      }
      .en {
        font-size: 0.9rem;
        text-align: right;
      }
    }
    .links-wrapper {
      display: none;
    }
    .sp-hamburger {
      display: flex;
    }
  }
}

/*=========================
  mv
=========================*/
section.mv {
  position: relative;
  .mv-img {
    width: 100%;
    @media (max-width: 960px) {
      min-height: 500px;
      object-fit: cover;
    }
  }
  .copy {
    position: absolute;
    z-index: 1;
    bottom: 5rem;
    left: 5rem;
    color: #fff;
    text-shadow: 0px 2px 4px rgb(0 0 0 / 0.5);
    line-height: 1.5;
    .jp {
      font-size: 3rem;
      font-weight: 900;
      @media (max-width: 960px) {
        font-size: 1.5rem;
      }
    }
    .en {
      font-size: 1.5rem;
      font-weight: 900;
      @media (max-width: 960px) {
        font-size: 1.125rem;
      }
    }
  }
}

/*=========================
  news
=========================*/
section.news {
  .container {
    background: rgb(255 255 255 / 0.8);
  }
  .flex {
    display: flex;
    gap: 2rem;
    padding: 3rem 5%;
    @media (max-width: 960px) {
      flex-direction: column;
    }
    .flex-l {
      width: 30%;
      .section-title {
        text-align: left;
      }
      @media (max-width: 960px) {
        width: 100%;
        .section-title {
          text-align: center;
          margin-bottom: 0;
        }
      }
    }
    .flex-r {
      width: 70%;
      @media (max-width: 960px) {
        width: 100%;
      }
      .list-wrapper {
        max-height: 340px;
        overflow-y: auto;
        padding-right: 1rem;
        .news-list {
          padding: 1rem;
          .news-list__item {
            display: grid;
            grid-template-columns: auto 1fr;
            column-gap: 2rem;
            align-items: flex-start;
            margin-bottom: 1rem;
            @media (max-width: 960px) {
              grid-template-columns: 1fr;
            }
            .date {
              border: 1px solid var(--green2);
              padding: 0.25rem 0.5rem;
              line-height: 1;
              @media (max-width: 960px) {
                width: fit-content;
              }
            }
          }
        }
      }
    }
  }
}

/*=========================
  greeting
=========================*/
section.greeting {
  padding: var(--section-padding);
  .flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    @media (max-width: 960px) {
      flex-direction: column-reverse;
    }
    .flex-l {
      width: 50%;
      @media (max-width: 960px) {
        width: 100%;
      }
    }
    .flex-r {
      width: 50%;
      .section-title {
        text-align: left;
        @media (max-width: 960px) {
          text-align: center;
        }
      }
      @media (max-width: 960px) {
        width: 100%;
      }
    }
  }
}

/*=========================
  point
=========================*/
section.point {
  padding: var(--section-padding);
  position: relative;
  .bg-green {
    position: absolute;
    top: 0;
    width: 100%;
    height: 70%;
    background-color: #a2d783;
    opacity: 0.3;
    @media (max-width: 960px) {
      height: 50%;
    }
  }
  .container {
    position: relative;
    z-index: 2;
  }
  .flex-items {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    column-gap: 5%;
    row-gap: 2rem;
    @media (max-width: 960px) {
      flex-direction: column;
    }
    .flex-item {
      width: 50%;
      position: relative;
      @media (max-width: 960px) {
        width: 100%;
      }
      .title-wrapper {
        background-color: var(--green2);
        color: #fff;
        display: grid;
        grid-template-columns: auto 1fr;
        .number {
          font-size: 3rem;
          font-weight: 900;
          line-height: 1;
          padding: 1rem;
          aspect-ratio: 1/1;
          display: flex;
          justify-content: center;
          align-items: center;
          border-right: 1px solid #fff;
        }
        .title {
          padding: 0.5rem 1rem;
          font-weight: 900;
          .en {
            font-size: 1.125rem;
          }
          .jp {
            font-size: 1.5rem;
          }
        }
      }
      .text {
        width: 90%;
        margin-inline: auto;
      }
    }
    .flex-item:nth-child(2) {
      margin-top: 5%;
      .title-wrapper {
        background-color: var(--l-green2);
      }
    }
  }
}

/*=========================
  about
=========================*/
section.about {
  padding: var(--section-padding);
  .flex-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    @media (max-width: 960px) {
      flex-direction: column;
    }
    .flex-item {
      width: 50%;
      max-width: 550px;
      position: relative;
      opacity: 1;
      @media (max-width: 960px) {
        width: 100%;
        max-width: 500px;
        margin-inline: auto;
      }
      .img {
        width: 100%;
        @media (max-width: 960px) {
          height: 240px;
          object-fit: cover;
        }
      }
      .overlay {
        background: rgb(0 0 0 / 0.5);
        position: absolute;
        z-index: 1;
        inset: 0;
        transition: 0.3s;
      }
      .inner {
        position: absolute;
        z-index: 2;
        inset: 0;
        padding: 3rem 3rem;
        @media (max-width: 960px) {
          padding: 2rem;
        }
        .title {
          writing-mode: vertical-rl;
          color: #ffffff;
          line-height: 1;
          height: max-content;
          @media (max-width: 960px) {
            writing-mode: initial;
          }
          .jp {
            font-size: 3rem;
            font-weight: 700;
            border-right: 1px solid #fff;
            padding-right: 0.5rem;
            margin-right: 0.75rem;
            @media (max-width: 960px) {
              font-size: 2rem;
              border-right: none;
            }
          }
          .en {
            font-size: 2rem;
            @media (max-width: 960px) {
              font-size: 1.5rem;
              margin-bottom: 1rem;
            }
          }
        }
        .icon {
          position: absolute;
          bottom: 3rem;
          right: 3rem;
          @media (max-width: 960px) {
            width: 50px;
            bottom: 2rem;
            right: 2rem;
          }
        }
      }
    }
    @media (any-hover: hover) {
      .flex-item:hover {
        .overlay {
          opacity: 0;
        }
      }
    }
  }
}

/*=========================
  area
=========================*/
section.area {
  background: linear-gradient(to bottom, #fff 70%, #e9f6e2 70%, #e9f6e2 85%, #fff 85%, #fff 90%, #e9f6e2 90%, #e9f6e2 97%, #fff 97%);
  padding: var(--section-padding);
  @media (max-width: 960px) {
    background: linear-gradient(to bottom, #fff 80%, #e9f6e2 80%, #e9f6e2 92%, #fff 92%, #fff 95%, #e9f6e2 95%, #e9f6e2 97%, #fff 97%);
  }
  .flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    @media (max-width: 960px) {
      flex-direction: column;
    }
    .flex-l {
      width: 45%;
      @media (max-width: 960px) {
        width: 100%;
      }
      .section-title {
        text-align: left;
        margin-bottom: 2rem;
        @media (max-width: 960px) {
          text-align: center;
        }
      }
      .text {
        margin-bottom: 4rem;
      }
    }
    .flex-r {
      width: 55%;
      @media (max-width: 960px) {
        width: 100%;
      }
    }
  }
}

/*=========================
  works
=========================*/
section.works {
  padding: var(--section-padding);
  .splide {
    .dummy {
      aspect-ratio: 4/3;
      background-color: #ccc;
    }
  }
}

/*=========================
  recruit
=========================*/
section.recruit {
  background: url(../img/top/recruit-bg.png) no-repeat;
  background-size: cover;
  padding: var(--section-padding);
  .container {
    max-width: 1000px;
  }
  .textbox {
    background-color: #fff;
    padding: 4rem 10%;
    @media (max-width: 960px) {
      padding: 2rem 10%;
      margin-bottom: 4rem;
    }
    .copy {
      font-size: 1.5rem;
      text-align: center;
      margin-bottom: 2rem;
      @media (max-width: 960px) {
        font-size: 1.25rem;
      }
    }
    .text {
      text-align: center;
      margin-bottom: 2rem;
    }
  }
}

/*=========================
  footer
=========================*/
footer {
  background-color: #fff;
  > .flex {
    display: flex;
    @media (max-width: 960px) {
      flex-direction: column-reverse;
    }
    .flex-l {
      width: 50%;
      @media (max-width: 960px) {
        width: 100%;
      }
      .map-wrapper {
        height: 100%;
        @media (max-width: 960px) {
          height: 300px;
        }
        iframe {
          width: 100%;
          height: 100%;
        }
      }
    }
    .flex-r {
      width: 50%;
      padding: 3rem 0;
      @media (max-width: 960px) {
        width: 100%;
      }
      .inner {
        width: calc(100% - 2rem);
        margin-inline: auto;
      }
      .section-title {
        margin-bottom: 3rem;
      }
      .copy {
        text-align: center;
        font-size: 1.25rem;
        font-weight: 900;
        margin-bottom: 3rem;
        @media (max-width: 960px) {
          text-wrap: balance;
        }
      }
      .tel-link {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.75rem;
        font-weight: 900;
        line-height: 1;
        width: fit-content;
        margin-inline: auto;
        color: var(--green2);
        margin-bottom: 2rem;
      }
      .mail.button {
        margin-bottom: 3rem;
        width: min(80%, 300px);
        font-size: 1.25rem;
        .icon {
          margin-left: 0;
        }
      }
      .logo-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
        @media (max-width: 960px) {
          flex-direction: column;
        }
        .logo {
          width: 100px;
        }
        .name {
          line-height: 1.25;
          .jp {
            font-size: 2rem;
            font-weight: 700;
          }
          .en {
            font-size: 1.25rem;
            text-align: right;
          }
        }
      }
    }
    .address {
      text-align: center;
    }
    .tel {
      text-align: center;
    }
  }

  .footer-nav {
    background: url(../img/main-bg.jpg);
    background-size: cover;
    padding: 3rem 0;
    .nav-items {
      width: calc(100% - 2rem);
      margin-inline: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      column-gap: 2.5%;
      .nav-items__item {
        text-align: center;
        text-wrap: balance;
        line-height: 1.25;
        .en {
          font-size: 1rem;
          color: var(--green2);
        }
        .jp {
        }
      }
    }
  }
}

.copyright {
  background-color: var(--green2);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 900;
}

/* scroll top button */
.scroll-top {
  position: fixed;
  bottom: 5%;
  right: 5%;
  z-index: 99;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  a {
    --radius: 100vmax;
    .block {
      background: var(--green2);
      border-radius: var(--radius);
      box-shadow: 0px 0px 3px rgb(255 255 255 / 0.75);
      width: 50px;
      height: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      .triangle {
        display: block;
        width: 50%;
        height: 50%;
        clip-path: polygon(100% 60%, 100% 75%, 50% 45%, 0 75%, 0 60%, 50% 25%);
        background: #ffffff;
      }
    }
  }
  a::before {
    border-radius: var(--radius);
    content: '';
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  a:hover {
    opacity: 1;
  }
  a:hover::before {
    opacity: 0.25;
  }
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
@media screen and (max-width: 768px) {
  .scroll-top {
    bottom: 5%;
    right: 5%;
    a::before {
      display: none;
    }
  }
}
