#section1 {
  background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%),
    url('../assets/images/EventsPage/EventsHeaderPage.jpg') center center/ cover no-repeat;
}

#section2 {
  background: radial-gradient(43.75% 73.14% at 55.73% 70.22%, #4D3E15 0%, #261F0B 43.7%, #000000 100%);
}

.section1_content {
  padding: 2rem;
  border-radius: 10px;

  position: relative;
  padding-left: 6.25svw;

  width: 100%;
  height: 100svh;
  padding-bottom: 20svh;
  align-content: end;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.25rem;
  font-family: "Noto sans jp";
}

.page-title {
  text-align: left;
}

.section1_text-gradient {
  font-size: 4.688rem;
  background: linear-gradient(86.47deg, #855F39 -7.89%, #FFAC59 41.22%);
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Noto sans jp";
  line-height: 1.1;

  font-weight: 400;
}

.text-gradient span {
  letter-spacing: 2px;
}

.page-title-text {
  color: #c9c2c2;
  padding: 1rem 0rem;
  font-family: "Noto sans jp";
  font-weight: 400;
  font-size: 55px;
  line-height: 38.9px;
  letter-spacing: 2px;
}

* {
  box-sizing: border-box;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100svh;
  flex-direction: column;
}

.events-title-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  padding: 0px 300px;
  align-items: center;
}

.events-header {
  font-family: "Noto sans jp";
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  line-height: 45px;
  letter-spacing: -2%;
  background-image: linear-gradient(86.47deg, #855F39 -7.89%, #FFAC59 41.22%);
  color: transparent;
  background-clip: text;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  height: 447px;
  margin-top: 100px;
}

.card-caption {
  margin-top: -2.5rem;
  margin-bottom: 1rem;
  min-width: 292px;
  max-width: 292px;
  white-space: pre-line;
  /* height: 7rem; */
  min-height: 175px;
  color: #c9c2c2;
  text-align: start;
  font-family: "Noto sans jp";
}

.card-caption-date {
  color: #c9c2c2;
  padding: 5px 20px;
  font-size: 15px;
}

.card-caption-text {
  color: #e9a765;
  padding: 5px 20px;
  font-size: 18px;
  margin-top: -15px;
}

.card-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: #c9c2c2;
  text-align: start;
  padding: 10px;
  padding-left: 15px;
  font-size: 25px;
  display: none;
  letter-spacing: 1px;
  font-family: "Noto sans jp";
}

.card {
  position: absolute;
  width: 292px;
  height: 447px;
  transition: transform 0.5s ease, z-index 0.3s;
  overflow: hidden;
  cursor: pointer;
  background: #333;
  opacity: 0.5;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.active {
  transform: scale(1) translateY(-50px);
  z-index: 10;
  opacity: 1;
}

.card.active .card-text {
  display: block;
}

.arrow {
  background: none;
  border: none;
  color: #c9c2c2;
  font-size: 32px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 200;
  transition: background 0.3s;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

@media screen and (max-width: 1536px) and (min-width: 768.1px) {
  .card {
    width: 196px;
    height: 300px;
  }

  .card-caption {
    min-width: 196px;
    max-width: 196px;
    min-height: 150px;
  }

  .carousel-container {
    padding-bottom: 0;
  }

  .carousel {
    height: 400px !important;
    margin-top: 7rem !important;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }

  .section1_text-gradient {
    font-size: 2.5rem;
  }

  .card {
    width: 211px;
    height: 323px;
  }

  .arrow {
    display: none;
  }

  .events-title-bar {
    padding: 0 25px;
    height: 15%;
  }

  .carousel {
    margin-top: -1rem !important;
  }

  .page-title-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 0px;
    letter-spacing: 1px;
  }

  .card-caption {
    margin-top: -4rem;
    margin-bottom: 0 !important;
    min-width: 253px;
    max-width: 253px;
  }

  .card-text {
    padding: 10px;
    font-size: 18px;
  }

  #section1 {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%),
      url('../assets/images/EventsPage/EventsHeaderPage.jpg') 103% center/ auto 100% no-repeat;
  }
}

@media screen and (max-width: 450px) {
  .card {
    width: 175px;
    height: 275px;
  }

  .card-caption {
    min-width: 210px;
    max-width: 210px;
  }

  #section1 {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%), url('../assets/images/EventsPage/EventsHeaderPage.jpg') 103% center/ auto 100% no-repeat;
    background-position: 83% 1%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem;

    .overlay {
      width: 100%;
      height: 100svh;
      position: absolute;
      bottom: 0;
      left: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 39.91%, #000000 100%);
    }
  }
}

@media screen and (max-height: 900px) {
  .carousel {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .card-caption {
    margin-top: -2rem;
  }

  .card-caption-text {
    font-size: 12px;
  }

  .card-caption-date {
    font-size: 10px;
  }
}

@media screen and (max-height: 760px) {
  .card-caption {
    margin-bottom: 1rem;
  }

  .events-title-bar {
    margin-top: 5rem;
  }
}

@media screen and (max-height: 720px) {
  .events-title-bar {
    height: 5%;
  }
}
body.stopLoading,
html.stopLoading {
  overflow: hidden;
  height: 100vh;
}


#pagepiling {
  visibility: hidden;
}