:root {
  --color-blue: #00acc0;
  --color-red: #ff1639;
  --color-black: #000;
  --color-white: #fff;
  --font-jp: "Zen Old Mincho", sans-serif;
  --font-en: "Outfit", sans-serif;
}

.p-special__endcard_head {
  text-align: center;
  margin-bottom: 72px;
}
@media screen and (max-width: 767px) {
  .p-special__endcard_head {
    margin-bottom: 50px;
  }
}
.p-special__endcard_head-ttl {
  font-size: 5rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  font-weight: 600;
}
@media screen and (max-width: 767px) {
  .p-special__endcard_head-ttl {
    font-size: 3.2rem;
  }
}
.p-special__endcard_head-lead {
  margin-top: 20px;
  font-size: 1.8rem;
  line-height: 1.8;
}
@media screen and (max-width: 767px) {
  .p-special__endcard_head-lead {
    font-size: 1.4rem;
    line-height: 1.64;
  }
}
.p-special__endcard_cont {
  margin-bottom: 72px;
}
@media screen and (max-width: 767px) {
  .p-special__endcard_cont {
    margin-bottom: 50px;
  }
}
.p-special__endcard_cont-cap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 38px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--color-black);
}
@media screen and (max-width: 767px) {
  .p-special__endcard_cont-cap {
    margin-bottom: 25px;
    padding-bottom: 15px;
  }
}
.p-special__endcard_cont-cap .no {
  width: 150px;
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  font-size: 5.2rem;
}
@media screen and (max-width: 767px) {
  .p-special__endcard_cont-cap .no {
    width: 8rem;
    font-size: 2.8rem;
  }
}
.p-special__endcard_cont-cap .ttl {
  width: calc(100% - 150px);
  font-size: 3rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .p-special__endcard_cont-cap .ttl {
    width: calc(100% - 8rem);
    font-size: 1.6rem;
  }
}
.p-special__endcard_list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.p-special__endcard_list-item {
  cursor: pointer;
  position: relative;
  width: 32%;
  margin-left: 2%;
  margin-bottom: 4%;
  overflow: hidden;
}
.p-special__endcard_list-item:only-child {
  width: 40%;
  margin: 0 auto;
}
.p-special__endcard_list-item:only-child:nth-child(3n-2) {
  margin: 0 auto;
}
@media screen and (max-width: 767px) {
  .p-special__endcard_list-item:only-child {
    width: 60%;
  }
}
@media screen and (min-width: 768px) {
  .p-special__endcard_list-item:nth-child(3n-2) {
    margin-left: 0;
  }
}
@media screen and (max-width: 767px) {
  .p-special__endcard_list-item {
    width: 48.5%;
    margin-left: 3%;
    margin-bottom: 3%;
  }
  .p-special__endcard_list-item:nth-child(odd) {
    margin-left: 0;
  }
}
@media screen and (min-width: 768px) {
  .p-special__endcard_list-item:hover .p-special__endcard_list-img img {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  .p-special__endcard_list-item:hover .p-special__endcard_list-img::after {
    opacity: 0.4;
  }
  .p-special__endcard_list-item:hover .p-special__endcard_list-no::before {
    width: 0;
  }
}
.p-special__endcard_list-img {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.p-special__endcard_list-img img {
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  transition: -webkit-transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1), -webkit-transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
.p-special__endcard_list-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(var(--color-blue)), to(var(--color-red)));
  background: linear-gradient(to right, var(--color-blue), var(--color-red));
  -webkit-transition: opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1), -webkit-transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  transition: opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1), -webkit-transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1), -webkit-transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  opacity: 0;
}
.p-special__endcard_list-no {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  font-family: var(--font-en);
  color: var(--color-white);
  line-height: 1;
  -webkit-transition: color 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  transition: color 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
.p-special__endcard_list-no::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-black);
  -webkit-transition: width 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  transition: width 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}
.p-special__endcard_list-no span {
  position: relative;
  padding: 0 0.5rem;
  z-index: 1;
  line-height: 1;
  letter-spacing: 0.03em;
  font-size: 2.5rem;
}
@media screen and (max-width: 767px) {
  .p-special__endcard_list-no span {
    font-size: 1.6rem;
  }
}
.p-special__endcard_list-name {
  margin-top: 0.4rem;
  font-size: 1.6rem;
  letter-spacing: 0.06rem;
  line-height: 1.8;
}
@media screen and (max-width: 767px) {
  .p-special__endcard_list-name {
    margin-top: 0.2rem;
    font-size: 1.3rem;
  }
}
.p-special__endcard_list-name span {
  position: relative;
  display: inline-block;
  font-family: var(--font-en);
  vertical-align: baseline;
  padding-right: 15px;
}
.p-special__endcard_list-name span::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background-color: var(--color-black);
  clip-path: polygon(0 0, 0% 100%, 100% 50%);
  -webkit-transition: background-color 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  transition: background-color 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
.p-special__endcard_list-name strong {
  vertical-align: baseline;
  font-weight: normal;
}