/* 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.hot-cafe {
  background-color: var(--bg-beige);
  padding: var(--section-padding);
  position: relative;
  .bg-illust {
    width: calc(460 / 1920 * 100vw);
    position: absolute;
    top: 100px;
    left: 0%;
  }
  .textbox1 {
    max-width: 1000px;
    margin-inline: auto;
    border-radius: 50px;
    overflow: hidden;
    background-color: #ffffff;
    text-align: center;
    text-wrap: balance;
    position: relative;
    box-shadow: var(--shadow);
    margin-bottom: 5rem;
    .img {
      width: 100%;
      margin-bottom: 2rem;
    }
    .inner {
      position: relative;
      z-index: 2;
      padding: 0 1rem 6rem;
    }
    .title {
      padding-inline: 1rem;
      font-size: 1.75rem;
      margin-bottom: 1rem;
      @media (max-width: 960px) {
        font-size: 1.5rem;
      }
    }
    .text {
      padding-inline: 1rem;
      text-align: center;
      text-wrap: balance;
      font-size: 1.1rem;
      @media (max-width: 960px) {
        font-size: 1rem;
        text-align: justify;
      }
    }
    .bubble1,
    .bubble2 {
      position: absolute;
      left: 1rem;
      bottom: 1rem;
      width: 30%;
    }
    .bubble2 {
      left: initial;
      bottom: 1rem;
      right: 1rem;
      transform: scale(-1, 1);
    }
  }
  .issue {
    background-color: var(--bg-skyblue);
    padding: var(--section-padding);
    margin-bottom: 5rem;
    .flex {
      max-width: 1200px;
      margin-inline: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      @media (max-width: 960px) {
        flex-direction: column;
      }
    }
    .texts {
      width: 75%;
      .title {
        font-size: 2rem;
        margin-bottom: 1rem;
      }
      .text {
        font-size: 1.1rem;
      }
      @media (max-width: 960px) {
        width: 100%;
        .title {
          font-size: 1.5rem;
          text-align: center;
          text-wrap: balance;
        }
        .text {
          font-size: 0.9rem;
        }
      }
    }
    .img {
      width: 25%;
      max-width: 240px;
    }
  }
  .textbox2 {
    max-width: 1200px;
    margin-inline: auto;
    border-radius: 50px;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
    box-shadow: var(--shadow);
    padding: 2rem 3rem;
    margin-bottom: 5rem;
    @media (max-width: 960px) {
      padding: 2rem 2rem;
    }
    .title {
      font-size: 2rem;
      margin-bottom: 1.5rem;
      text-align: center;
      text-wrap: balance;
      position: relative;
      z-index: 1;
      @media (max-width: 960px) {
        font-size: 1.5rem;
      }
    }
    .list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      row-gap: 1rem;
      @media (max-width: 960px) {
        grid-template-columns: 1fr;
      }
    }
    .list-item {
      display: flex;
      align-items: center;
      font-size: 1.1rem;
      @media (max-width: 960px) {
        font-size: 1rem;
      }
      &::before {
        content: '';
        background: url(../img/icon-tree.png) no-repeat;
        background-size: contain;
        background-position: center;
        width: 30px;
        aspect-ratio: 40/50;
        margin-right: 0.5rem;
        flex-shrink: 0;
      }
      @media (max-width: 960px) {
        &::before {
          width: 24px;
        }
      }
    }
    .bg-img {
      position: absolute;
      top: 5%;
      right: 3%;
      width: calc(200 / 1920 * 100vw);
    }
  }
  .textbox3 {
    background: url(../img/service1/service1-2.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%;
    margin-bottom: 5rem;
    .inner {
      background-color: rgb(255 255 255 / 0.7);
      padding: 2rem 1rem;
    }
    .title {
      font-size: 2rem;
      text-align: center;
      text-wrap: balance;
      margin-bottom: 1.5rem;
    }
    .text {
      text-align: center;
      text-wrap: balance;
      font-size: 1.1rem;
    }
    @media (max-width: 960px) {
      background-size: 400%;
      background-position: 15%;
      padding: 2rem 1.5rem;
      .title {
        font-size: 1.5rem;
      }
      .text {
        text-align: justify;
        font-size: 1rem;
      }
    }
  }
  .text-image {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
    .texts {
      width: 50%;
      .title {
        font-size: 2rem;
        margin-bottom: 1rem;
      }
      .text {
        font-size: 1.1rem;
      }
    }
    .img {
      width: 50%;
      border-radius: 50px;
    }
    @media (max-width: 960px) {
      flex-direction: column;
      .texts {
        width: 100%;
        .title {
          font-size: 1.5rem;
          text-align: center;
          text-wrap: balance;
        }
        .text {
          font-size: 0.9rem;
        }
      }
      .img {
        width: 100%;
        max-width: 500px;
        margin-inline: auto;
      }
    }
  }
  .details {
    > .title {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 1.5rem;
    }
    .table-wrapper {
      max-width: 1000px;
      margin-inline: auto;
      margin-bottom: 3rem;
      .table-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
        @media (max-width: 960px) {
          font-size: 1.1rem;
        }
      }
      .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.1rem;
          @media (max-width: 960px) {
            font-size: 0.9rem;
          }
          &:not(:last-of-type) {
            border-bottom: #7ec191 1px solid;
          }
          .th {
            background-color: #7ec191;
            color: #ffffff;
            text-align: center;
            padding: 1rem;
          }
          .td {
            padding: 1rem;
          }
        }
      }
      .annotation {
        font-size: 0.8rem;
        width: fit-content;
        margin-left: auto;
        @media (max-width: 960px) {
          font-size: 0.8rem;
        }
      }
    }
  }
}

/*=========================
  体験会
=========================*/
section.events {
  padding: var(--section-padding);
  background-color: #ffffff;
  .events-list {
    max-width: 900px;
    margin-inline: auto;
    box-shadow: var(--shadow);
    border-radius: 30px;
    padding: 2rem 1rem;
  }
  .events-list__item {
    &:not(:last-of-type) {
      border-bottom: 1px dotted #91877f;
      margin-bottom: 1rem;
      padding-bottom: 1rem;
    }
    a {
      display: flex;
      gap: 1rem;
    }
    .thumbnail {
      width: 30%;
      .img {
        background-color: #ccc;
        aspect-ratio: 4/3;
        width: 100%;
        height: fit-content;
      }
    }
    .body {
      width: 70%;
      .date {
        color: #91877f;
        margin-bottom: 0.5rem;
      }
      .title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
    }
  }
}
@media (max-width: 960px) {
  section.events {
    .events-list__item {
      .thumbnail {
        .img {
          aspect-ratio: 1/1;
        }
      }
      .body {
        .date {
          margin-bottom: 0.5rem;
          font-size: 0.8rem;
        }
        .title {
          font-size: 1.2rem;
          line-height: 1;
          margin-bottom: 0.5rem;
        }
        .excerpt {
          font-size: 0.8rem;
        }
      }
    }
  }
}
/*=========================
  子どもの居場所
=========================*/
section.lab {
  padding: var(--section-padding);
  background-color: var(--bg-beige);
  position: relative;
  .bg-illust {
    width: calc(460 / 1920 * 100vw);
    position: absolute;
    top: 100px;
    left: 0%;
  }
  .textbox1 {
    max-width: 1000px;
    margin-inline: auto;
    border-radius: 50px;
    overflow: hidden;
    background-color: #ffffff;
    text-align: center;
    text-wrap: balance;
    position: relative;
    box-shadow: var(--shadow);
    margin-bottom: 5rem;
    .img {
      width: 100%;
      margin-bottom: 2rem;
    }
    .inner {
      position: relative;
      z-index: 2;
      padding: 0 1rem 6rem;
    }
    .title {
      padding-inline: 1rem;
      font-size: 1.75rem;
      margin-bottom: 1rem;
      @media (max-width: 960px) {
        font-size: 1.35rem;
        padding-inline: 0;
      }
    }
    .text {
      padding-inline: 1rem;
      text-align: center;
      text-wrap: balance;
      font-size: 1.1rem;
      @media (max-width: 960px) {
        font-size: 1rem;
        text-align: justify;
      }
    }
    .bubble1,
    .bubble2 {
      position: absolute;
      left: 1rem;
      bottom: 1rem;
      width: 30%;
    }
    .bubble2 {
      left: initial;
      bottom: 1rem;
      right: 1rem;
      transform: scale(-1, 1);
    }
  }
  .textbox2 {
    background-color: #eceeee;
    padding: 2rem 1rem;
    margin-bottom: 5rem;
    .title {
      text-align: center;
      text-wrap: balance;
      border-bottom: #71afd1 1px solid;
      padding-bottom: 1rem;
      margin-bottom: 1rem;
      font-size: 1.5rem;
      width: fit-content;
      margin-inline: auto;
    }
    .text {
      text-align: center;
      text-wrap: balance;
      font-size: 1.1rem;
      @media (max-width: 960px) {
        text-align: justify;
        font-size: 0.9rem;
      }
    }
  }
  .issue {
    background-color: var(--bg-skyblue);
    padding: var(--section-padding);
    margin-bottom: 5rem;
    .flex {
      max-width: 1200px;
      margin-inline: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      @media (max-width: 960px) {
        flex-direction: column;
      }
    }
    .texts {
      width: 75%;
      .title {
        font-size: 2rem;
        margin-bottom: 1rem;
      }
      .text {
        font-size: 1.1rem;
      }
      @media (max-width: 960px) {
        width: 100%;
        .title {
          font-size: 1.5rem;
          text-align: center;
          text-wrap: balance;
        }
        .text {
          font-size: 0.9rem;
        }
      }
    }
    .img {
      width: 25%;
      max-width: 240px;
    }
  }
  .textbox3 {
    max-width: 1200px;
    margin-inline: auto;
    border-radius: 50px;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
    box-shadow: var(--shadow);
    padding: 2rem 3rem;
    margin-bottom: 5rem;
    @media (max-width: 960px) {
      padding: 2rem 2rem;
    }
    .title {
      font-size: 2rem;
      margin-bottom: 1.5rem;
      text-align: center;
      text-wrap: balance;
      @media (max-width: 960px) {
        font-size: 1.5rem;
      }
    }
    .list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      row-gap: 1rem;
      @media (max-width: 960px) {
        grid-template-columns: 1fr;
      }
    }
    .list-item {
      display: flex;
      align-items: center;
      font-size: 1.1rem;
      @media (max-width: 960px) {
        font-size: 1rem;
      }
      &::before {
        content: '';
        background: url(../img/icon-tree.png) no-repeat;
        background-size: contain;
        background-position: center;
        width: 30px;
        aspect-ratio: 40/50;
        margin-right: 0.5rem;
        flex-shrink: 0;
      }
      @media (max-width: 960px) {
        &::before {
          width: 24px;
        }
      }
    }
    .bg-img {
      position: absolute;
      top: 5%;
      right: 3%;
      width: calc(200 / 1920 * 100vw);
    }
  }
  .textbox4 {
    background: url(../img/service1/service1-5.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%;
    margin-bottom: 5rem;
    .inner {
      background-color: rgb(255 255 255 / 0.7);
      padding: 2rem 1rem;
    }
    .title {
      font-size: 2rem;
      text-align: center;
      text-wrap: balance;
      margin-bottom: 1.5rem;
    }
    .text {
      text-align: center;
      text-wrap: balance;
      font-size: 1.1rem;
    }
    @media (max-width: 960px) {
      background-size: 400%;
      background-position: center;
      padding: 2rem 2rem;
      .title {
        font-size: 1.5rem;
      }
      .text {
        text-align: justify;
        text-wrap: initial;
        font-size: 0.9rem;
      }
    }
  }
  .movie {
    padding: var(--section-padding);
    .video {
      display: block;
      width: 100%;
      max-width: 800px;
      margin-inline: auto;
    }
  }
  .details {
    > .title {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 1.5rem;
    }
    .table-wrapper {
      max-width: 1000px;
      margin-inline: auto;
      margin-bottom: 3rem;
      .table-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
        @media (max-width: 960px) {
          font-size: 1.1rem;
        }
      }
      .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.1rem;
          @media (max-width: 960px) {
            font-size: 0.9rem;
          }
          &:not(:last-of-type) {
            border-bottom: #7ec191 1px solid;
          }
          .th {
            background-color: #7ec191;
            color: #ffffff;
            text-align: center;
            padding: 1rem;
          }
          .td {
            padding: 1rem;
          }
        }
      }
      .annotation {
        font-size: 0.8rem;
        width: fit-content;
        margin-left: auto;
        @media (max-width: 960px) {
          font-size: 0.8rem;
        }
      }
    }
  }
}
