@charset "UTF-8";
.wrapper--competition .header__wrapper {
  padding-bottom: 185px;
}
.competition__image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.competition__image {
  width: 47%;
  margin-top: 0px;
}
.competition__image a {
  position: relative;
  display: block;
  overflow: hidden;
}
.competition__image:nth-child(even) {
  margin-top: 100px;
}
.competition__image img{
  display: block;
  transition: transform 7s cubic-bezier(0,.6,.45,1),
  -webkit-transform 7s cubic-bezier(0,.6,.45,1);
}
@media (hover: hover) and (pointer: fine) {
  .competition__image:hover img {
    transform: scale(1.15);
    filter: brightness(50%);
  }
}
.competition__image .competition__image-title {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  text-align: center;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .competition__image:hover .competition__image-title {
    opacity: 1;
  }
}
@media screen and (max-width: 767px) {
  .wrapper--competition .header__wrapper {
    padding-bottom: 65px;
  }
  .competition {
    width: 100%;
  }
  .competition__image {
    width: 100%;
    margin-bottom: 20px;
  }
  .competition__image-container {
    display: block;
  }
  .competition__image:nth-child(even) {
    margin-top: 0px;
  }
}


/* モーダル用CSS */
html:has(dialog[active]) {
  overflow: hidden;
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal.active {
  display: flex;
}
.modal__content {
  position: relative;
  max-width: 80%;
  max-height: 80vh;
  background: transparent;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal__content::-webkit-scrollbar {
  display: none;
}
.modal__content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}
.modal__content img:nth-of-type(2) {
  margin-top: -10px;
}
.modal__close {
  position: absolute;
  top: 30px;
  right: 15px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 1px;
  background-color: #fff;
  transform-origin: center;
  transition: 0.3s;
}
.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.modal__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.competition__modal-wrap {
  max-width: 500px;
}
.modal__text-container {
  color: #fff;
}
.modal__competition-title {
  font-size: 1.8rem;
  text-align: start;
}
.modal__competition-category {
  font-size: 1.2rem;
  margin-right: 16px;
}
.modal__competition-location {
  font-size: 1.2rem;
}
.modal__text-unit {
  display: flex;
}


@media screen and (max-width: 767px) {
  .modal__competition-title {
    font-size: 1.6rem;
    text-align: start;
  }
  .modal__content {
    max-width: 100%;
  }
}
