/* common */
:root {
  --shadow: 0px 3px 6px rgb(0 0 0 / 0.15);
  --section-padding: 5rem 0;
}
@media (max-width: 960px) {
  :root {
    --section-padding: 3rem 0;
  }
}

section.subpage-mv {
  margin-top: 2rem;
  background-color: #ffffff;
  position: relative;
  .bg-img {
    width: calc(100% - 2rem);
    margin-inline: auto;
  }
  .content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    text-wrap: balance;
  }
  .page-title {
    font-family: 'Zen Maru Gothic', system-ui;
    font-weight: 500;
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 2rem;
  }
  .subtitle {
    background-color: rgb(255 255 255 / 0.5);
    width: 50%;
    max-width: 800px;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
  }
}
@media (max-width: 960px) {
  section.subpage-mv {
    margin-top: 1rem;
    .bg-img {
      width: 100%;
      height: 300px;
      object-fit: cover;
    }
    .page-title {
      font-size: 2rem;
    }
    .subtitle {
      width: 90%;
      font-size: 1.2rem;
    }
    .img1 {
      width: 40px;
    }
    .img2 {
      width: 40px;
    }
  }
}

.section-title {
  text-align: center;
  text-wrap: balance;
  margin-bottom: 3rem;
  .main {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-family: 'Zen Maru Gothic', system-ui;
    font-weight: 500;
    &::after {
      content: '';
      display: block;
      width: 40%;
      margin-inline: auto;
      border-bottom: #91877f dotted 2px;
      margin-top: 1rem;
    }
  }
  .sub {
    font-size: 1.25rem;
    color: #ec765f;
  }
}
@media (max-width: 960px) {
  .section-title {
    .main {
      font-size: 1.75rem;
      margin-bottom: 0.75rem;
      &::after {
        margin-top: 0.5rem;
      }
    }
    .sub {
      font-size: 1rem;
    }
  }
}

section.greeting {
  background-color: var(--bg-beige);
  padding: var(--section-padding);
  .textbox1 {
    background: url(../img/about/about1.jpg) no-repeat;
    background-size: 105%;
    background-position: center;
    max-width: 1200px;
    margin-inline: auto;
    border-radius: 50px;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
    box-shadow: var(--shadow);
    padding: 3rem 10%;
    .inner {
      background-color: rgb(255 255 255 / 0.7);
      padding: 2rem 1rem;
    }
    .text {
      text-align: center;
      text-wrap: balance;
      font-size: 1.2rem;
      margin-bottom: 2rem;
    }
    .sign {
      text-align: center;
      text-wrap: balance;
      font-size: 1.75rem;
    }
  }
}
@media (max-width: 960px) {
  section.greeting {
    .textbox1 {
      background-size: 500%;
      padding: 2rem 1rem;
      .text {
        text-align: justify;
        text-wrap: initial;
        font-size: 0.9rem;
      }
      .sign {
        font-size: 1.25rem;
      }
    }
  }
}

section.reason {
  background-color: var(--bg-beige);
  padding: var(--section-padding);
  .textbox1 {
    max-width: 1200px;
    margin-inline: auto;
    border-radius: 50px;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
    box-shadow: var(--shadow);
    padding: 3rem 10%;
    position: relative;
    .text {
      font-size: 1.1rem;
    }
    .bg-img {
      position: absolute;
      top: 50%;
      left: 50%;
      translate: -50% -50%;
      width: 60%;
    }
  }
}
@media (max-width: 960px) {
  section.reason {
    .textbox1 {
      .text {
        text-align: justify;
        text-wrap: initial;
        font-size: 0.9rem;
      }
    }
  }
}

section.movie {
  padding: var(--section-padding);
  .video {
    display: block;
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
  }
}

section.overview {
  background-color: #ffffff;
  padding: var(--section-padding);
  .table-wrapper {
    max-width: 1000px;
    margin-inline: auto;
    .table {
      background-color: #ffffff;
      display: grid;
      grid-template-columns: 120px 1fr;
      border: #7ec191 1px solid;
      .row {
        display: grid;
        grid-template-columns: subgrid;
        grid-column: 1/-1;
        font-size: 1.2rem;
        &:not(:last-of-type) {
          border-bottom: #7ec191 1px solid;
        }
        .th {
          background-color: #7ec191;
          color: #ffffff;
          text-align: center;
          padding: 1rem;
        }
        .td {
          padding: 1rem;
          padding-left: 2rem;
        }
      }
    }
  }
}
@media (max-width: 960px) {
  section.overview {
    .table-wrapper {
      .table {
        grid-template-columns: 120px 1fr;
        .row {
          font-size: 0.9rem;
        }
      }
    }
  }
}

section.contact-form {
  background-color: var(--bg-beige);
  padding: var(--section-padding);
  .wpcf7-form {
    max-width: 1000px;
    margin-inline: auto;
    .form-grid {
      display: grid;
      grid-template-columns: 260px 1fr;
      border: 1px solid #7ec191;
      margin-bottom: 4rem;
      .row {
        display: grid;
        grid-template-columns: subgrid;
        grid-column: 1/-1;
        font-size: 1.2rem;
        &:not(:last-of-type) {
          border-bottom: #7ec191 1px solid;
        }
      }
      .label-area {
        background-color: #7ec191;
        color: #ffffff;
        padding: 1rem;
        p {
          text-align: center;
        }
      }
      .input-area {
        height: 100%;
        background-color: #ffffff;
        padding: 1rem;
        .wpcf7-form-control {
          background-color: #eff0f1;
          width: 100%;
          height: 100%;
          /* border-radius: 8px; */
          border: 1px solid rgba(61, 55, 50, 0.2);
        }
      }
    }
    .wpcf7-submit {
      border-radius: 8px;
      font-size: 1.2rem;
      display: block;
      margin-inline: auto;
      cursor: pointer;
      background-color: #7ec191;
      color: #ffffff;
      border: none;
      padding: 0.75rem;
      width: 80%;
      max-width: 200px;
      transition: background-color 0.3s;
      @media (any-hover: hover) {
        &:hover {
          background-color: color-mix(in srgb, #7ec191, white 25%);
        }
      }
    }
    .required {
      border-radius: 8px;
      background-color: #ec765f;
      color: #ffffff;
      font-size: 0.8rem;
      padding: 0.25rem;
      margin-left: 1rem;
    }
    .wpcf7-not-valid-tip {
      font-size: 0.8rem;
    }
  }
}
@media (max-width: 960px) {
  section.contact-form {
    .wpcf7-form {
      .form-grid {
        grid-template-columns: 1fr;
        .row {
          font-size: 1rem;
        }
        .label-area {
          padding: 0.5rem;
        }
        .input-area {
          padding: 0.5rem;
        }
      }
      .wpcf7-submit {
        font-size: 1rem;
      }
      .required {
        font-size: 0.7rem;
      }
    }
  }
}
