/* 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.events {
  padding: var(--section-padding);
  background-color: var(--bg-beige);
  margin-bottom: 5rem;
  .event-list {
    max-width: 900px;
    margin-inline: auto;
    box-shadow: var(--shadow);
    border-radius: 30px;
    padding: 2rem 1rem;
    background-color: #ffffff;
  }
  .event-list__item {
    &:not(:last-of-type) {
      border-bottom: 1px dotted #91877f;
      margin-bottom: 1rem;
      padding-bottom: 1rem;
    }
    a {
      display: flex;
      gap: 1rem;
    }
    .thumbnail {
      flex-shrink: 0;
      width: 30%;
      height: fit-content;
      aspect-ratio: 4/3;
      background-color: #ffffff;
      .img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .img.default-img {
        object-fit: contain;
      }
    }
    .body {
      width: 70%;
      overflow: hidden;
      .date {
        color: #91877f;
        margin-bottom: 0.5rem;
      }
      .title {
        font-size: 1.2rem;
        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;
      }
    }
  }
  .pagination {
    margin-top: 2rem;
    text-align: center;
    text-wrap: balance;
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    .current {
      border-bottom: #91877f dotted 2px;
    }
  }
}
@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;
        }
      }
    }
  }
}
