.highlight-custom1 {
  background: linear-gradient(to bottom, transparent 50%, #f5a08d 50%, #f5a08d);
}

.highlight-custom2 {
  background: linear-gradient(to bottom, transparent 50%, #a2c5a5 50%, #a2c5a5);
}

.nowrap {
  white-space: nowrap;
}

[data-page-type="sub"] .prevnext {
  border-bottom: 1px solid var(--text-base);
}

main .visual_section .main_visual .subtitle {
  margin-bottom: 1em;
  font-size: 20px;
  font-weight: 600;
  word-break: keep-all;
}

[data-page-type="sub"] .placebox ul li {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

[data-page-type="sub"] .placebox ul li .stretch {
  flex: 1;
}

@media screen and (max-width: 1024px) {
  [data-page-type="sub"] .placebox ul li {
    padding: 30px 0;
  }

  [data-page-type="sub"] .sub_top .tag {
    margin-bottom: 0;
  }
}

.gnb .sub_menu ul {
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 1280px) {
  .gnb .sub_menu ul {
    grid-template-columns: 1fr;
  }
}

/* event */
.game_board,
.piece_box {
  margin-inline: auto;
  position: relative;
  font-size: 0;
}

.game_board {
  max-width: 500px;
  box-shadow: 0 0 5px 1px #ccc;
  background-color: rgba(255, 255, 255, 0.7);
}

.piece_box {
  max-width: 1000px;
}

.game_board .rel {
  position: relative;
  z-index: 2;
}

.game_board .abs {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.piece_box ul {
  grid-template-columns: repeat(6, 1fr);
}

.piece_box li {
  position: relative;
  cursor: pointer;
}

.piece_box li b {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.2rem;
}

.piece_box li img {
  transition: filter .3s;
}

.piece_box li:hover img {
  filter: brightness(0.8);
}

.piece_box li:nth-of-type(odd) img {
  animation: rotate 3s linear infinite;
}

.piece_box li:nth-of-type(even) img {
  animation: rotate 3s linear infinite reverse;
}

.pointer_lock {
  pointer-events: none;
}

.event_start {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
}

.event_start .btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
}

.event_fail,
.event_timeout {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.event_start .btn,
.event_fail img,
.event_timeout img {
  max-width: 80%;
}

.game_counter {
  width: 100%;
  max-width: 200px;
  padding: 7px 20px;
  margin-inline: auto;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: var(--text-base);
  color: #fff;
  font-weight: 600;
  border-radius: 20vw;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}


@media screen and (max-width: 1024px) {
  .piece_box ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.comment_box01 {
  width: 100%;
}

.comment_box01>span {
  width: 100%;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.comment_box01>span input {
  flex: 1;
  padding: 20px;
  outline: none;
}

.comment_box01 textarea {
  width: 100%;
  min-height: 200px;
  resize: none;
  padding: 20px;
}

.check-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media screen and (max-width: 768px) {
  .agree_box {
    padding: 30px 20px;
  }

  .comment_box01>span {
    flex-wrap: wrap;
    flex-direction: column;
  }

  .comment_box01>span input {
    width: 100%;
  }
}

@media screen and (max-width: 475px) {
  .agree_box {
    padding: 30px 20px;
  }
}

.popup {
  /* accent-color: #fff; */
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 110;
}

.popup.on {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.popup .banner_wrap {
  width: 600px;
  max-width: 90%;
  height: max-content;
}

.popup .banner_wrap.event {
  width: 960px;
}

.popup .check_wrap,
.popup .close_btn {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  color: #fff;
}

.popup .close_btn {
  margin-bottom: 1em;
}

.popup .close_btn i {
  font-size: 40px;
}

.popup .check_wrap * {
  cursor: pointer;
  line-height: 1;
}

.popup input[type="checkbox"] {
  width: 1em;
  height: 1em;
  padding-inline: 0;
  cursor: pointer;
  border: 1px solid var(--text-base);
}

.top_dot {
  position: relative;
}

.top_dot::after {
  content: "";
  width: 8px;
  height: 8px;
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  background-color: var(--text-base);
  border-radius: 50%;
}

@media screen and (max-width: 1280px) {
  .br1280-end {
    display: none !important;
  }
}

@media screen and (max-width: 1024px) {
  .br1024-end {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .flex-col-768.flex-reverse {
    flex-direction: column-reverse !important;
  }

  .top_dot::after {
    width: 5px;
    height: 5px;
  }
}
