@charset "UTF-8";
.p-content {
  padding-bottom: 74px;
}

.p-character__title {
  font-size: 3rem;
  text-align: center;
  font-weight: bold;
  position: relative;
  z-index: 2;
  color: #91109B;
  font-family: "Kaisei Opti", serif;
}
.p-character__title::before {
  z-index: -1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  width: 112px;
  height: 72px;
  margin: auto;
  content: "";
  background: url("../../images/p_back_star.png") center no-repeat;
  background-size: 100% auto;
}
.p-character__title::after {
  z-index: -1;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  display: block;
  width: 76px;
  height: 59px;
  margin: auto;
  content: "";
  background: url("../../images/p_jewelry_pink.png") center no-repeat;
  background-size: 100% auto;
  -webkit-animation: 5s linear infinite rotation3;
          animation: 5s linear infinite rotation3;
}

@-webkit-keyframes rotation3 {
  0% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  100% {
    -webkit-transform: rotateY(360deg);
            transform: rotateY(360deg);
  }
}

@keyframes rotation3 {
  0% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  100% {
    -webkit-transform: rotateY(360deg);
            transform: rotateY(360deg);
  }
}
.p-character__title-span {
  display: block;
  font-weight: 500;
  font-size: 1.2rem;
  margin-top: -12px;
  font-family: "Kiwi Maru", "ヒラギノ角 Pro W3", "Hiragino Kaku Pro W3", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
}

.p-character__list {
  margin-block: 66px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.p-character__item-link {
  display: block;
  overflow: hidden;
  padding-bottom: 13px;
  transition: 0.2s ease-out;
  height: 100%;
  max-height: 580px;
}
[data-whatinput=keyboard] .p-character__item-link:focus {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.p-character__item-link-img {
  margin: 6px 7px 0;
  border: solid 1px #DCB475;
  background-color: #fff;
}

.p-character__item-link-img-src {
  width: 100%;
  height: 100%;
}

.p-character__item-link-txt {
  font-size: 12px;
  font-family: "Kaisei Opti";
  font-weight: 700;
  text-align: center;
  color: #A5723C;
  line-height: 1.714;
  position: relative;
  margin-block: 10px 30px;
}
.p-character__item-link-txt::after {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  display: block;
  width: 97px;
  height: 14px;
  margin: auto;
  content: "";
  background: url(/tv/mahotsukai_precure2/assets/images/character/i_chara_bn.svg) center no-repeat;
  background-size: 100% auto;
}

.p-character__border {
  max-width: 180px;
  margin: 0px auto 64px;
  margin-bottom: 64px;
}

.p-character__border-src {
  width: 100%;
  height: 100%;
}

@media print, screen and (min-width: 768px) {
  .p-content {
    padding-bottom: 150px;
  }
  .p-character__title {
    font-size: 6rem;
  }
  .p-character__title::before {
    width: 224px;
    height: 145px;
  }
  .p-character__title::after {
    width: 162px;
    height: 125px;
    top: 20px;
  }
  .p-character__title-span {
    font-size: 2rem;
    margin-top: -16px;
  }
  .p-character__list {
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
    margin-block: 140px 128px;
  }
  .p-character__item-link {
    max-height: 440px;
    width: auto;
    padding-bottom: 20px;
  }
  .p-character__item-link-img {
    margin: 24px 10px 0;
  }
  .p-character__border {
    max-width: 250px;
    margin: 0px auto 70px;
  }
}

@media print, screen and (min-width: 1025px) {
  .p-character__item-link:hover {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
  }
  .p-character__item-link-txt {
    font-size: 18px;
    margin-top: 16px;
  }
  .p-character__item-link-txt::after {
    bottom: -40px;
    width: 150px;
    height: 23px;
  }
}