@charset "utf-8";

/* 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);
}
.red {
  color: red;
}

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

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

section.page-mv {
  position: relative;
  .mv-img {
    width: 100%;
    min-height: 400px;
    object-fit: cover;
    @media (max-width: 960px) {
      min-height: 260px;
    }
  }
  .inner {
    position: absolute;
    z-index: 1;
    top: 60%;
    left: 50%;
    translate: -50% -50%;
    @media (max-width: 960px) {
      top: 50%;
    }
    .page-title {
      color: #fff;
      text-align: center;
      line-height: 1.25;
      font-weight: 900;
      .en {
        font-size: 3rem;
        @media (max-width: 960px) {
          font-size: 2rem;
        }
      }
      .jp {
        font-size: 2rem;
        @media (max-width: 960px) {
          font-size: 1.5rem;
        }
      }
    }
  }
}

/*=========================
  business
=========================*/
section.business-sec1 {
  padding: var(--section-padding);
  .section-title + .text {
    max-width: 1000px;
    margin-inline: auto;
    margin-bottom: 4rem;
  }
  .business-item {
    border-top: 2px solid var(--green2);
    padding-top: 2rem;
    margin-bottom: 4rem;
    .flex {
      display: flex;
      justify-content: center;
      gap: 2rem;
      @media (max-width: 768px) {
        flex-direction: column;
      }
      .flex-l {
        width: 50%;
        @media (max-width: 960px) {
          width: 100%;
        }
        .title {
          background: linear-gradient(45deg, #84c547 80%, #14a556 80%);
          padding: 1rem;
          color: #fff;
          margin-bottom: 2rem;
          font-size: 1.5rem;
        }
      }
      .flex-r {
        width: 50%;
        @media (max-width: 960px) {
          width: 100%;
        }
      }
    }
  }
  .business-item:nth-child(2n) {
    .flex {
      flex-direction: row-reverse;
      @media (max-width: 768px) {
        flex-direction: column;
      }
    }
  }
}

/*=========================
  company
=========================*/
section.company-sec1 {
  padding: var(--section-padding);
  .container {
    max-width: 1600px;
  }
  .flex {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    @media (max-width: 960px) {
      flex-direction: column-reverse;
    }
    .flex-l {
      width: 50%;
      @media (max-width: 960px) {
        width: 100%;
      }
    }
    .flex-r {
      width: 50%;
      @media (max-width: 960px) {
        width: 100%;
      }
      .section-title {
        text-align: left;
        @media (max-width: 960px) {
          text-align: center;
        }
      }
      .text {
        margin-bottom: 2rem;
      }
    }
    .name {
      position: absolute;
      bottom: -20%;
      left: 50%;
      translate: -50% -0%;
      background-color: var(--l-green2);
      color: #fff;
      padding: 0.5rem 1rem;
      font-weight: 700;
      @media (max-width: 960px) {
        position: static;
        order: -1;
        translate: 0% 0%;
      }
      .row {
        display: flex;
        justify-content: center;
        align-items: baseline;
        gap: 1rem;
      }
      .row:nth-child(1) {
        border-bottom: 1px solid #fff;
        .post {
          /* font-size: 1rem; */
        }
        .jp {
          font-size: 1.5rem;
        }
      }
    }
  }
}
section.company-sec2 {
  padding: var(--section-padding);
  margin-top: 6rem;
  background: rgba(162, 215, 131, 0.3);
  .bg-white {
    background-color: #fff;
    padding: 3rem 0;
    @media (max-width: 960px) {
      padding: 2rem 0;
    }
    .table-wrapper {
      width: calc(100% - 2rem);
      max-width: 900px;
      margin-inline: auto;
      .table {
        display: grid;
        grid-template-columns: 25% 1fr;
        @media (max-width: 960px) {
          grid-template-columns: auto 1fr;
          column-gap: 1rem;
        }
        .row {
          display: grid;
          grid-template-columns: subgrid;
          grid-column: 1/-1;
          border-bottom: 1px solid #333;
          padding: 0.5rem;
          &:last-child {
            border-bottom: none;
          }
        }
      }
    }
  }
}
section.company-sec3 {
  padding: var(--section-padding);
  background: url(../img/bg-plaster.jpg);
  background-size: 100%;
  .flex {
    display: flex;
    justify-content: center;
    gap: 2rem;
    @media (max-width: 960px) {
      flex-direction: column-reverse;
    }
    /* max-width: 1000px;
    margin-inline: auto; */
    .flex-l {
      width: 50%;
      @media (max-width: 960px) {
        width: 100%;
      }
      .map-wrapper {
        width: 100%;
        iframe {
          width: 100%;
          height: 500px;
          @media (max-width: 960px) {
            height: 300px;
          }
        }
      }
    }
    .flex-r {
      width: 50%;
      @media (max-width: 960px) {
        width: 100%;
      }
      .textbox {
        padding: 4rem 2rem;
        border: 1px solid var(--green2);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-inline: auto;
        .text {
          line-height: 2;
        }
        @media (max-width: 960px) {
          padding: 2rem 1rem;
          width: fit-content;
          margin-inline: auto;
          .icon {
            width: 60px;
          }
        }
      }
    }
  }
}

/*=========================
  recruit
=========================*/
section.recruit-sec1 {
  padding: var(--section-padding);
  .bg-white {
    background-color: #fff;
    padding: 3rem 2rem;
    @media (max-width: 960px) {
      padding: 2rem 1rem;
    }
    .copy {
      text-align: center;
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 2rem;
      @media (max-width: 960px) {
        font-size: 1.25rem;
      }
    }
    .text {
      text-align: center;
      max-width: 750px;
      margin-inline: auto;
      @media (max-width: 960px) {
        text-align: justify;
      }
    }
  }
}
section.recruit-sec2 {
  padding: var(--section-padding);
  .section-title {
    @media (max-width: 960px) {
      .en {
        font-size: 2rem;
      }
    }
  }
  .bg-white {
    background-color: #fff;
    padding: 3rem 2rem;
    @media (max-width: 960px) {
      padding: 2rem 1rem;
    }
    .table-wrapper {
      max-width: 900px;
      margin-inline: auto;
      margin-bottom: 4rem;
      .table {
        display: grid;
        grid-template-columns: 25% 1fr;
        @media (max-width: 960px) {
          grid-template-columns: 1fr;
          .th {
            font-size: 1.1em;
            font-weight: 900;
          }
        }
        .row {
          display: grid;
          grid-template-columns: subgrid;
          grid-column: 1/-1;
          border-bottom: 1px solid #333;
          padding: 0.5rem;
          &:last-child {
            border-bottom: none;
          }
        }
      }
    }
  }
}

/*=========================
  works
=========================*/
section.works-sec1 {
  padding: var(--section-padding);
  .text {
    margin-bottom: 4rem;
  }
  .bg-white {
    background-color: #fff;
    padding: 4rem 2rem;
    @media (max-width: 960px) {
      padding: 2rem 1rem;
    }
    .works-items {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      @media (max-width: 960px) {
        grid-template-columns: 1fr;
      }
      .works-item {
        .dummy-img {
          aspect-ratio: 4/3;
          background-color: #ccc;
        }
        .date {
          font-size: 1rem;
        }
        .title {
          font-weight: 900;
        }
      }
    }
  }
}

/*=========================
  contact
=========================*/
section.contact-sec1 {
  padding: var(--section-padding);
  .section-title + .text {
    text-align: center;
    margin-bottom: 3rem;
  }
  .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: 4rem;
  }
  .bg-white {
    background-color: #fff;
    max-width: 1000px;
    margin-inline: auto;
    .form-wrapper {
      padding: 4rem 0;
      background-color: #fff;
      margin-bottom: 6rem;
      @media (max-width: 960px) {
        padding: 2rem 1rem;
      }
      .form {
        max-width: 900px;
        margin-inline: auto;
        margin-bottom: 2rem;
        .form-table {
          display: grid;
          grid-template-columns: auto 1fr;
          margin-bottom: 2rem;
          @media (max-width: 960px) {
            grid-template-columns: 1fr;
          }
          .row {
            display: grid;
            grid-template-columns: subgrid;
            grid-column: 1/-1;
            column-gap: 2rem;
            border-bottom: 1px solid var(--skyblue);
            &:last-child {
              border-bottom: none;
            }
            @media (max-width: 960px) {
              padding-bottom: 1rem;
              margin-bottom: 1rem;
            }
          }
          .th,
          .td {
            padding: 1rem;
            @media (max-width: 960px) {
              padding: 0.5rem;
            }
          }
          .th {
            border-right: 1px solid var(--skyblue);
            @media (max-width: 960px) {
              border-right: none;
            }
          }
          .td {
            input[type='text'],
            input[type='tel'],
            input[type='email'],
            textarea {
              width: 100%;
              padding: 0.5rem;
              border: #c6c6c6 1px solid;
              background-color: #f9f7f7;
              border-radius: 8px;
            }
          }
          .red {
            font-size: 0.75em;
          }
        }
        .submit-button {
          display: block;
          margin-inline: auto;
          border: none;
          background-color: var(--l-green2);
          cursor: pointer;
          @media (any-hover: hover) {
            transition: opacity 0.3s;
            &:hover {
              opacity: 0.75;
            }
          }
        }
      }
    }
  }
  .policy {
    background: rgba(162, 215, 131, 0.3);
    padding: 2rem 2.5%;
    .title {
      background: linear-gradient(45deg, #84c547 80%, #14a556 80%);
      padding: 1rem;
      font-size: 1.5rem;
      color: #fff;
      margin-bottom: 2rem;
    }
    .text-wrapper {
      max-height: 300px;
      overflow-y: auto;
      scrollbar-color: var(--green2) rgba(162, 215, 131, 0);
      scrollbar-width: thin;
      padding-inline: 1rem;
      .text {
        font-size: 1rem;
        .heading {
          display: flex;
          align-items: center;
          &::before {
            content: '';
            display: block;
            background-color: var(--green2);
            width: 8px;
            height: 20px;
            margin-top: 2px;
            margin-right: 0.5rem;
          }
        }
      }
    }
  }
}
