.heroSection {
  position: relative;
  height: 100dvh;
  overflow: hidden;

  figure {
    height: 100%;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .heroContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-black);
    width: 90%;
    max-width: 800px;
    background-color: rgba(251, 251, 251, 0.85);
    padding: 2rem;
    border-radius: 8px;

    h1 {
      font-size: var(--font-h1);
      margin-bottom: 1rem;
      font-weight: normal;
    }

    p {
      font-size: var(--font-base);
      opacity: 0.9;
    }
  }
}

.sectionTitle {
  font-size: var(--font-h2);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.sectionSubtitle {
  font-size: 1rem;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 3rem;
}

.aboutSection {
  padding: 6rem 0;
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
  .aboutContent {
    position: relative;
    margin-inline: auto;
    .aboutText {
      text-align: center;
      h3 {
        font-size: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
        margin-bottom: 2rem;
        line-height: 1.6;
      }
      p {
        text-shadow: 2px 2px 8px #fbfbfb;
        margin-bottom: 1.5rem;
        line-height: 1.8;
      }
    }
    .aboutUsBg {
      position: absolute;
      object-fit: cover;
      inset: 0;
      z-index: -1;
      clip-path: polygon(0 0, 40% 0, 50% 100%, 0 100%);
      opacity: 0.2;
    }
  }
}

.newsSection {
  padding: 6rem 0;
  background-color: #f8f9fa;

  .newsList {
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 3rem;
  }

  .newsItem {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.3s ease;

    &:first-child {
      border-top: 1px solid #dee2e6;
    }

    &:hover {
      background-color: rgba(0, 104, 183, 0.05);
    }

    time {
      width: 120px;
      color: #666;
    }

    h3 {
      flex: 1;
      margin: 0 2rem;
    }

    .arrow {
      position: relative;
      padding-right: 1.5rem;
      color: var(--color-primary);

      &::after {
        content: "→";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
      }

      &:hover::after {
        transform: translate(5px, -50%);
      }
    }
    @media (width < 768px) {
      display: grid;
      padding: 1.5rem 0;
      > h3 {
        margin: 0;
      }
    }
  }

  .newsMore {
    text-align: center;
  }
}

.accessSection {
  padding: 6rem 0;
  background-color: #f8f9fa;

  .accessInfo {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;

    h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }

    address {
      margin-bottom: 2rem;
      font-style: normal;
      line-height: 1.8;
    }

    .accessMap {
      width: 100%;
      height: 450px;
      border-radius: 8px;
      overflow: hidden;
    }
  }
}

.button {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;

  &:hover {
    background-color: #004d86;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}

/* モーダル関連のスタイル */
.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;

  &.active {
    display: block;
  }

  .news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .news-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 2rem;
    margin: 5vh auto;
    overflow-y: auto;
  }

  .news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-black);
    transition: opacity 0.3s ease;

    &:hover {
      opacity: 0.7;
    }
  }

  .news-modal-body {
    time {
      display: block;
      color: #666;
      font-size: 0.875rem;
      margin-bottom: 1rem;
    }

    h2 {
      font-size: var(--font-h2);
      margin-bottom: 1.5rem;
      color: var(--color-primary);
    }

    h3 {
      font-size: 1.25rem;
      margin: 1.5rem 0 1rem;
      color: var(--color-black);
    }

    h4 {
      font-size: 1.1rem;
      margin: 1rem 0 0.5rem;
      color: var(--color-black);
    }

    p {
      margin-bottom: 1rem;
      line-height: 1.8;
      color: #666;
    }
  }
}
