/* import */
@import url(./reset.css);
@import url(./header.css);
@import url(./footer.css);
/* //import */

#common {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0;
}

#visual {
  background-size: cover;
  width: 100%;
  min-height: 235px;
  position: relative;
  padding: 30px 65px;
  border-radius: 6px;
  background-color: #0d2155;
  background-image: url(../images/visual_bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#visual a {
  display: inline-flex;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #0d2156;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 150%; /* 22.5px */
  letter-spacing: -1.65px;
  margin-top: 10px;
}

#event {
  color: #fff;
  width: 100%;
  border-radius: 10px;
  background: #1d56c0;
  position: relative;
  margin: 0;
  margin-top: 15px;
  border-radius: 6px;
  overflow: hidden;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;

  background-color: #0d2155;
  background-image: url(../images/event_bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#event * {
  transition: 0.3s ease;
}

.event_bot {
  padding: 0 40px;
  max-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.event_bot > img:first-child {
  margin-bottom: 35px;
}

.event_bot > div {
  display: flex;
}

.event_bot > div img.pc {
  width: 83%;
  height: fit-content;
}

.event_bot > div img.mo {
  display: none;
}
.event_bot > div img:last-child {
  width: 17%;
  height: fit-content;
}

.event_bot * {
  opacity: 0;
  /* transform: translateY(-20px); */
  transition: 0.25s ease;
}

#event.is_active .event_bot {
  max-height: 500px;
  padding: 0px 40px 20px;
  transform: translateY(-20px);
}

.event_top {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 15px;
}

.event_top p {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 145%; /* 26.1px */
  letter-spacing: -1.44px;

  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 145%; /* 26.1px */
  letter-spacing: -1.44px;
  opacity: 1;
}

.event_top > div {
  display: flex;
  align-items: center;
}

.close_btn {
  padding: 0 10px;
  height: 100%;
  flex-shrink: 0;
  background: transparent;
  position: absolute;
  right: 0;
  z-index: 10;
}

.close_btn span {
  max-width: 80px;
  overflow: hidden;
  white-space: nowrap;
}

.close_btn img {
  margin-left: 7px;
  transform: rotate(180deg);
}

.close_btn span {
  transition: 0.3s ease;
}

#event.is_active .event_bot * {
  opacity: 1;
}

#event.is_active .event_top p {
  opacity: 0;
}

#event.is_active .close_btn {
  background: none;
}

#event.is_active .close_btn span {
  max-width: 0;
  opacity: 0;
  transition: opacity 0.3s ease 0.01s;
}

#event .close_btn img {
  transform: rotate(180deg);
}

#event.is_active .close_btn img {
  transform: rotate(0);
}

#event.is_active .close_btn:hover img {
  transform: rotate(0) scale(1.2);
}

@media (max-width: 1024px) {
  #visual {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  #event {
    width: 92%;
    margin: 0 auto;
    margin-top: 15px;
    padding: 0;
  }

  .event_top > div {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .event_top h5 {
    font-size: 20px;
  }

  .event_top p {
    margin: 0;
  }

  #event.is_active .close_btn span {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  #visual {
    padding: 30px 10px;
  }

  .event_top {
    justify-content: flex-start;
  }

  .close_btn,
  #event.is_active .close_btn {
    width: 60px;
  }

  .close_btn span {
    display: none;
  }

  .close_btn img {
    margin: 0;
  }

  #event .event_bot {
    padding: 0 20px;
  }

  #event.is_active .event_bot {
    padding: 5px 15px;
  }

  .event_bot > div {
    flex-direction: column;
    align-items: center;
  }

  .event_bot > img:first-child {
    width: 150px;
  }

  .event_bot > div img:first-child,
  .event_bot > div img:last-child {
    width: 100%;
  }

  .event_bot > div img:last-child {
    max-width: 140px;
    margin-top: 15px;
  }

  .event_bot > div img.pc {
    display: none;
  }
  .event_bot > div img.mo {
    width: 100%;
    display: block;
  }
}

@media (max-width: 550px) {
  .event_bot {
    padding: 15px;
  }

  .event_bot > div img:last-child {
    width: 125px;
  }
}

@media (max-width: 450px) {
  .close_btn {
    padding: 0 10px;
  }
}

@media (max-width: 400px) {
  .event_top {
    padding: 10px;
  }
}
