body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-x: hidden; /* 横スクロールを無効にする */
}

.classes {
  display: flex;
  flex-wrap: wrap; /* 要素が画面幅に収まるように折り返し */
  justify-content: center; /* 要素を中央揃え */
  gap: 2vw; /* 各コンテナ間のスペース */
  padding: 2vw;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 1.5vw;
  box-sizing: border-box;
  flex: 1;
}

.banner-title {
  width: 100%;
  text-align: center;
  font-size: 4vw;
  font-weight: bold;
  padding: 3vw 0 1vw 0;
}

.banner-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-placeholder img {
  width: 100%;
  max-width: 80%; /* コンテナの幅に収める */
  max-height: 80%; /* コンテナの高さに収める */
  object-fit: contain;
  border: 1px solid black;
  pointer-events: none;
}

.appeal-points,
.project-description {
  width: 100%;
  max-width: 70vw; /* 最大幅を60vwに設定 */
  margin-top: 1cm;
  border: 1px solid #000;
  padding: 2vw;
  box-sizing: border-box;
}

h2 {
  font-size: 3vw;
}

p {
  line-height: 2.5;
  font-size: 2.5vw;
}

.vertical-line {
  width: 1px;
  background-color: lightgray;
  height: auto;
  margin-bottom: 10px;
  margin-top: 10vw;
}

.event-list {
  display: none;
}

@media (max-width: 768px) {
  .classes {
    flex-direction: column; /* 子要素を縦並びに */
    align-items: center;
  }
  .vertical-line {
    width: 80%; /* 横線の幅 */
    height: 1px; /* 高さを1pxにして横線に */
    background-color: lightgray;
    margin: 2vw; /* 上下の余白を設定して中央揃え */
  }


  .event-list {
    display: block;
    flex-direction: column;
    justify-content: center; /* アイテムを均等に配置 */
    margin-top: 12vw;
    width: 13.5vw;
    background-color: #f5f5f5;
    height: auto; /* ビューポートの高さに対する割合で調整 */
    padding: 0;
    border-right: 1px solid #ddd;
    position: fixed;
    box-sizing: border-box;
    align-items: center;
  }

  .event-list ul {
    display: flex; /* flexに変更してliを均等に配置 */
    flex-direction: column; /* 縦にアイテムを並べる */
    list-style-type: none;
    padding: 2vw 0;
    flex-grow: 1; /* ulが残りのスペースを埋める */
    justify-content: space-evenly; /* liを均等に配置 */
    margin: auto;
    gap:4vw;
  }

  .event-list li {
    margin:2vw 0;
  }
  .event-list ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 3vw;
  }
  .event-list a:hover {
    color: orangered;
  }
  p {
    font-size: 2.3vw;
  }
}
