/* 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: 220px;
  position: relative;
  padding: 0 65px;
  border-radius: 6px;
  background-color: #0d2155;
  background-image: url(../images/visual_bg.png);
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#visual h1 {
  color: #80c7fb;
  font-family: Roboto;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 135%; /* 37.8px */
  letter-spacing: -0.56px;
  display: flex;
  flex-direction: column;
}

#visual h1::after {
  content: "";
  display: block;
  width: 30px;
  height: 7.5px;
  background: #80c7fb;
  margin: 16px 0;
}

#visual p {
  color: #fff;
  -webkit-text-stroke-width: 0.20433925092220306;
  -webkit-text-stroke-color: #fff;
  font-family: "Malgun Gothic";
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 24px */
  letter-spacing: -1.05px;
}

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

.result_page #event {
  display: none;
}

#event * {
  transition: 0.3s ease;
}

.event_top {
  padding: 0 40px;
  max-height: 0;
  overflow: hidden;
  display: flex;
}

.event_top img {
  height: fit-content;
}
.event_top img:nth-child(1) {
  width: 30%;
}
.event_top img:nth-child(2) {
  width: 35%;
}
.event_top img:nth-child(3) {
  width: 35%;
}

.event_top * {
  opacity: 0;
  transition: 0.25s ease;
}

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

.event_bot h5 {
  color: #fff;
  font-family: Roboto;
  font-size: 23px;
  font-weight: 700;
  line-height: 150%; /* 34.5px */
  letter-spacing: 0.92px;
  margin-right: 25px;
  max-width: 200px;
  position: absolute;
  left: 20px;
}

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

.event_bot p {
  color: #fff;
  font-family: "Malgun Gothic";
  font-size: 11px;
  font-weight: 400;
  line-height: 155%; /* 17.05px */
  letter-spacing: -1.1px;
  opacity: 0.5;
}

.close_btn {
  padding: 0 15px;
  height: 100%;
  flex-shrink: 0;
  border-radius: 0px 6px 6px 0px;
  background: transparent;
  margin-left: auto;
  color: #fff;
  font-family: "Malgun Gothic";
  font-size: 15px;
  font-weight: 700;
  line-height: 30.333px; /* 202.222% */
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
}

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

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

.event_bot p {
  opacity: 0;
}

.close_btn span {
  transition: 0.3s ease;
}

#event.is_active .event_top {
  padding: 15px 40px;
  max-height: 500px;
}

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

#event.is_active .event_bot {
  border-radius: 0;
}

#event.is_active .event_bot h5 {
  opacity: 0;
  max-width: 0;
  margin: 0;
}

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

#event.is_active .event_bot h5 {
  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 {
  margin-left: 0;
  transform: rotate(0) scale(1);
}

#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 {
    padding: 15px 5px;
  }

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

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

  .event_bot p {
    margin: 0;
  }

  #event.is_active .close_btn {
    width: 142px;
  }

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

  #event.is_active .close_btn img {
    margin-left: 7px;
  }
}

@media (max-width: 768px) {
  #visual {
    padding: 30px 30px;
    background-image: url(../images/visual_bg_mo.png);
    align-items: center;
  }

  #visual h1 {
    color: #fff;
    text-align: center;
    align-items: center;
    font-size: 20px;
  }

  #visual p {
    text-align: center;
  }

  #visual p br {
    display: none;
  }

  .event_bot {
    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_top {
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
  }

  .event_top img {
    width: 100% !important;
    max-width: 350px;
  }

  .event_top img:first-child {
    max-width: 250px;
  }

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

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

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

@media (max-width: 400px) {
  .event_bot h5 {
    font-size: 18px;
  }
  .event_bot span {
    font-size: 13px;
  }
  .event_bot p {
    font-size: 10px;
  }

  .event_bot {
    padding: 10px;
  }
}
