@charset "UTF-8";

html.kahaku-modal-open {
  overflow: hidden;
}
@media (min-width: 768px) {
  body.kahaku-modal-open {
    padding-right: 16px;
  }
}

/* Firefox */
@supports (-moz-appearance: none) {
  @media (min-width: 768px) {
    body.kahaku-modal-open {
      padding-right: 0px;
    }
  }
}

.kahaku-characters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.kahaku-chara {
  display: flex;
  width: 32%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  background-color: #3c9add;
}
.kahaku-chara:nth-child(n+13) {
  margin-bottom: 0;
}
.kahaku-chara * {
  user-select: none;
}
.kahaku-chara figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.kahaku-chara figure p {
  margin: 0;
  padding: 0;
  background-color: #fff;
}
.kahaku-chara figure figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  padding: 0.5rem 0 0 0;
  line-height: 1.1;
  font-weight: bold;
  color: #fff;
}
.kahaku-chara figure img {
  max-width: 100%;
  flex: none;
}
@media (min-width: 768px) {
  .kahaku-chara {
    width: 19%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
  .kahaku-chara:nth-child(n+11) {
    margin-bottom: 0;
  }
  .kahaku-chara figure figcaption {
    padding: 1rem 0 0.5rem 0;
  }
}
@media (min-width: 992px) {
  .kahaku-chara figure figcaption {
    display: inline;
    text-align: center;
  }
}

.kahaku-chara-momo {
  position: relative;
}
.kahaku-chara-momo::before {
  content: "も　も";
  position: absolute;
  left: 0;
  top: -0.5rem;
  display: inline-block;
  padding-left: 0.25rem;
  font-size: 0.5rem;
}
@media (min-width: 768px) {
  .kahaku-chara-momo .kahaku-chara-momo::before {
    top: -0.25rem;
  }
}

.kahaku-chara-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: flex-start;
  justify-content: center;
  z-index: 150;
  background-color: rgba(0, 0, 0, 0.4);
}
.kahaku-chara-modal .kahaku-chara-container {
  max-height: calc(100% - 4rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 1rem;
  opacity: 0;
  transition: 0.3s ease-in;
}
.kahaku-chara-modal.active .kahaku-chara-container {
  opacity: 1;
}
@media (min-width: 768px) {
  .kahaku-chara-modal {
    align-items: center;
  }
  .kahaku-chara-modal .kahaku-chara-container {
    max-height: none;
    overflow: hidden;
    margin-top: 0;
    max-width: 720px;
  }
}
@media (min-width: 768px) {
  .kahaku-chara-modal .kahaku-chara-container {
    max-width: 720px;
  }
}

.kahaku-chara-slide {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  margin: 0 1rem;
  border-radius: 0.625rem;
  background-color: #74bcef;
}
.kahaku-chara-slide figure {
  margin: 0;
  padding: 0.5rem;
  border-radius: 0.625rem;
  background-color: #3c9add;
}
.kahaku-chara-slide figure p {
  margin: 0;
  padding: 0;
  background-color: #fff;
  border-radius: 0.625rem;
  position: relative;
}
.kahaku-chara-slide figure figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0 0;
  color: #fff;
  font-weight: bold;
}
.kahaku-chara-slide .kahaku-chara-description {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 300px;
  overflow-y: auto;
}
.kahaku-chara-slide .kahaku-chara-description span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #fff;
  border-radius: 0.625rem;
  color: #fff;
  font-weight: bold;
}
.kahaku-chara-slide .kahaku-chara-description span:last-child {
  padding: 0.5rem;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 0.625rem;
  flex-grow: 1;
}
.kahaku-chara-slide img {
  width: 60%;
  display: block;
  margin: auto;
  border-radius: 0.625rem;
}
@media (min-width: 768px) {
  .kahaku-chara-slide {
    flex-direction: row;
    justify-content: space-between;
  }
  .kahaku-chara-slide figure {
    display: flex;
    flex-direction: column;
    width: calc(55% - 0.5rem);
    margin: 0;
  }
  .kahaku-chara-slide figure figcaption {
    flex-grow: 1;
  }
  .kahaku-chara-slide .kahaku-chara-description {
    height: 350px;
    width: calc(45% - 0.5rem);
  }
  .kahaku-chara-slide .kahaku-chara-description span:first-child {
    margin: 0 0 0.5rem 0;
  }
  .kahaku-chara-slide img {
    width: 100%;
  }
}
@media (min-width: 992px) {
  .kahaku-chara-slide .kahaku-chara-description {
    height: auto;
  }
}

.kahaku-chara-backstory {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 0.625rem;
  font-size: 1rem;
  font-weight: bold;
  text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, 0px 2px 0 #fff, -2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
  cursor: pointer;
}

.kahaku-chara-bs-toggle {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  appearance: none;
  outline: none;
  border: none;
  background-image: url(../../css/icon/pointer.svg);
  background-position: center;
  background-size: contain;
  background-color: transparent;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.5s;
}
.kahaku-chara-bs-toggle:focus {
  appearance: none;
  outline: none;
  background-color: transparent;
}
.kahaku-chara-bs-toggle.active {
  filter: invert(24%) sepia(100%) saturate(5000%) hue-rotate(0deg);
}
@media (min-width: 768px) {
  .kahaku-chara-bs-toggle {
    background-image: url(../../css/icon/cursor.svg);
  }
}

.kahaku-chara-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.kahaku-chara-close button {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  appearance: none;
  outline: none;
  border: none;
  background-image: url(../../css/icon/close.svg);
  background-position: center;
  background-size: contain;
  background-color: transparent;
  cursor: pointer;
}



.swiper-parts-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
  user-select: none;
}
.swiper-parts-wrapper svg path {
  fill: #333;
}
.swiper-parts-wrapper .swiper-button-prev {
  position: relative;
  border-radius: 50%;
  background-color: #fff;
  width: 4rem;
  height: 4rem;
  padding: 1rem;
}
.swiper-parts-wrapper .swiper-button-next {
  position: relative;
  border-radius: 50%;
  background-color: #fff;
  width: 4rem;
  height: 4rem;
  padding: 1rem;
}
.swiper-parts-wrapper .swiper-pagination {
  position: relative;
  border-radius: 10%;
  background-color: #fff;
  padding: 0.5rem 1rem;
  width: auto;
}
@media (min-width: 768px) {
  .swiper-parts-wrapper {
    margin: 2rem 1rem 1rem 0;
  }
  .swiper-parts-wrapper .swiper-pagination {
    width: auto;
    height: auto;
  }
}
