@charset "utf-8";

.p-top__case {
  --pt: 150;
  --pb: 125;
  position: relative;
  padding: calc(var(--pt) * 1em/16) 0 calc(var(--pb) * 1em/16);
  background-color: #e8e7e3;
  overflow: hidden;
  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(995em/16);
    background: linear-gradient(to bottom, transparent, #e8e7e3);
  }
  @media screen and (max-width: 1024px) {
    --pt: 284;
  }
  @media screen and (max-width: 880px) {
    --pt: 184;
    --pb: 75;
    &::after {
      height: calc(250em/16);
    }
  }
}
.p-top__caseIntro {
  position: relative;
  z-index: 1;
}
.p-top__caseIntroHead {
  position: relative;
  margin-inline: auto;
  width: fit-content;
  @media screen and (max-width: 880px) {
    display: flex;
    flex-direction: column-reverse;
    gap: calc(26em/16);
  }
  & .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(27em/16);
    @media screen and (max-width: 880px) {
      gap: 0;
    }
  }
  & .title__sub {
    text-align: center;
    font-size: calc(38em/16);
    letter-spacing: 0.04em;
    @media screen and (max-width: 880px) {
      font-size: calc(22em/16);
    }
  }
  & .title__maintxt {
    width: calc(536em/16);
    @media screen and (max-width: 880px) {
      margin: calc(30em/16) 0 calc(42em/16);
      width: calc(315em/16);
    }
  }
  & .title__mainlabel {
    --labeltitle-ls: 0.2;
    --labeltitle-plr: 27;
    @media screen and (max-width: 880px) {
      --labeltitle-plr: 19;
    }
  }
  & .img {
    display: flex;
    justify-content: space-between;
    align-items: center;
    @media screen and (max-width: 880px) {
      position: relative;
      height: calc(80em/16);
    }
  }
  & .img__left {
    @media screen and (max-width: 880px) {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      display: flex;
      align-items: center;
    }
  }
  & .img__leftBody {
    --bottom: 0;
    --left: 0;
    --w: 0;
    position: absolute;
    bottom: calc(var(--bottom) * 1em/16);
    left: calc(var(--left) * 1em/16);
    width: calc(var(--w) * 1em/16);
    scale: 0 1;
    transition: scale .4s var(--ease-out-expo);
    z-index: 1;
    &:where(.is-01) {
      --bottom: -46;
      --left: -172;
      --w: 142;
    }
    &:where(.is-02) {
      --bottom: -52;
      --left: -172;
      --w: 138;
    }
    &:where(.is-03) {
      --bottom: -44;
      --left: -180;
      --w: 155;
    }
    &.is-active {
      transition-delay: .4s;
      scale: 1 1;
    }
    @media screen and (max-width: 880px) {
      position: absolute;
      top: auto;
      bottom: auto;
      left: 0;
      right: auto;
      margin: auto 0;
      width: calc(var(--w) * .5em/16);
    }
  }
  & .img__right {
    @media screen and (max-width: 880px) {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      display: flex;
      align-items: center;
    }
  }
  & .img__rightBody {
    --bottom: 0;
    --right: 0;
    --w: 0;
    position: absolute;
    bottom: calc(var(--bottom) * 1em/16);
    right: calc(var(--right) * 1em/16);
    width: calc(var(--w) * 1em/16);
    scale: 0 1;
    transition: scale .45s var(--ease-out-expo);
    z-index: 1;
    transition-delay: 0s;
    &:where(.is-01) {
      --bottom: -44;
      --right: -202;
      --w: 153;
    }
    &:where(.is-02) {
      --bottom: -78;
      --right: -198;
      --w: 153;
    }
    &:where(.is-03) {
      --bottom: -60;
      --right: -188;
      --w: 129;
    }
    &.is-active {
      transition-delay: .35s;
      scale: 1 1;
    }
    @media screen and (max-width: 880px) {
      position: absolute;
      top: auto;
      bottom: auto;
      left: auto;
      right: 0;
      margin: auto 0;
      width: calc(var(--w) * .5em/16);
      &:where(.is-02) {
        margin-top: calc(24em/16);
      }
    }
  }
}
.p-top__caseIntroBody {
  margin: calc(76em/16) auto 0;
  width: calc(536em/16);
  text-align: center;
  word-break: keep-all;
  @media screen and (max-width: 880px) {
    margin: calc(40em/16) auto 0;
    width: 100%;
  }
}
.p-top__caseMain {
  position: relative;
  z-index: 1;
  margin: calc(78em/16) auto 0;
  @media screen and (max-width: 880px) {
    display: flex;
    flex-direction: column;
    margin: calc(35em/16) auto 0;
  }
}
.p-top__caseMainSlider {
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-inline: auto;
  width: calc(580em/16);
  @media screen and (max-width: 880px) {
    margin-top: calc(-51em/16);
    width: calc(350em/16);
  }
  & .track {
    overflow: visible;
  }
  & .track__listBlock {
    position: relative;
    margin-right: calc(20/580*100%);
    @media screen and (max-width: 880px) {
      margin-right: calc(10/350*100%);
    }
  }
  & .track__listBlockTarget {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(440em/16);
    border-radius: calc(10em/16);
    overflow: hidden;
    translate: 0 calc(40em/16);
    transition: translate .4s var(--ease-out-quad);
    :where(.p-top__caseMainSlider .track__listBlock.is-active) & {
      translate: 0 calc(0em/16);
    }
    @media screen and (max-width: 880px) {
      height: calc(360em/16);
      border-radius: calc(15em/16);
    }
  }
  & .track__listBlockTarget-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(58em/16);
    width: calc(100% - 20em/16);
    height: calc(100% - 20em/16);
    background-color: #fff;
    border-radius: calc(10em/16);
    overflow: hidden;
    will-change: transform;
    @media screen and (max-width: 880px) {
      padding-top: calc(50em/16);
      width: calc(100% - 10em/16);
      height: calc(100% - 10em/16);
      border-radius: calc(13em/16);
    }
  }
  & .track__listBlockTargetTitle {
    text-align: center;
    line-height: 1.3;
    font-size: calc(24em/16);
    letter-spacing: 0.04em;
    @media screen and (max-width: 880px) {
      font-size: calc(18em/16);
    }
  }
  & .track__listBlockTargetInfo {
    margin: calc(30em/16) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(20em/16);
    @media screen and (max-width: 880px) {
      margin: calc(25em/16) 0;
      gap: calc(9em/16);
    }
  }
  & .track__listBlockTargetInfoTitle {
    --w: 127;
    width: calc(var(--w) * 1em/16);
    :where(.p-top__caseMainSlider .track__listBlock.is-a) & {
      --w: 125;
    }
    :where(.p-top__caseMainSlider .track__listBlock.is-d) & {
      --w: 126;
    }
    :where(.p-top__caseMainSlider .track__listBlock.is-e) & {
      --w: 125;
    }
    :where(.p-top__caseMainSlider .track__listBlock.is-f) & {
      --w: 125;
    }
    @media screen and (max-width: 880px) {
      width: calc(var(--w) * .68em/16);
    }
  }
  & .track__listBlockTargetInfoBody {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 calc(16em/19);
    height: calc(40em/19);
    line-height: 1;
    font-size: calc(19em/16);
    letter-spacing: 0.04em;
    color: #fff;
    background-color: var(--main-color);
    filter: drop-shadow(calc(4em/19) calc(4em/19) 0 #dcdcdc);
    @media screen and (max-width: 880px) {
      padding: 0 calc(11em/14);
      height: calc(28em/14);
      font-size: calc(14em/16);
      filter: drop-shadow(calc(2em/14) calc(2em/14) 0 #dcdcdc);
    }
  }
  & .track__listBlockTargetlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(10em/16) calc(16em/16);
    width: calc(312em/16);
    :where(.p-top__caseMainSlider .track__listBlock.is-e) & {
      width: calc(360em/16);
    }
    @media screen and (max-width: 880px) {
      gap: calc(10em/16) calc(11em/16);
      width: calc(248em/16);
      :where(.p-top__caseMainSlider .track__listBlock.is-e) & {
        width: calc(280em/16);
      }
      :where(.p-top__caseMainSlider .track__listBlock.is-f) & {
        width: calc(280em/16);
      }
    }
  }
  & .track__listBlockTargetlistItem {
    text-align: center;
    line-height: 1.4;
    font-size: calc(18em/16);
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: .5em;
    @media screen and (max-width: 880px) {
      font-size: calc(15em/16);
    }
  }
  & .track__listBlockTargetDetail {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: calc(10em/16);
    padding-top: calc(7em/16);
    width: calc(120em/16);
    height: calc(110em/16);
    background: linear-gradient(to bottom, var(--grad-color01-01), var(--grad-color01-02));
    border-radius: calc(60em/16) 0 0 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
    @media screen and (max-width: 880px) {
      padding: 0;
      width: calc(80em/16);
      height: calc(75em/16);
      border-radius: calc(30em/16) 0 0 0;
      opacity: 1;
    }
    @media (any-hover: hover) {
      .p-top__caseMainSlider .track__listBlockTarget:is(:hover, :focus-visible) & {
        opacity: 1;
      }
    }
  }
  & .track__listBlockTargetDetailIcon {
    width: calc(41em/16);
    height: calc(41em/16);
    @media screen and (max-width: 880px) {
      width: calc(36em/16);
      height: calc(36em/16);
    }
  }
  & .track__listBlockTargetDetailTxt {
    margin-left: calc(7em/17);
    font-size: calc(17em/16);
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow:
    2px 2px 0 var(--main-color), -2px -2px 0 var(--main-color),
    -2px 2px 0 var(--main-color), 2px -2px 0 var(--main-color),
    0px 2px 0 var(--main-color),  0 -2px 0 var(--main-color),
    -2px 0 0 var(--main-color), 2px 0 0 var(--main-color);
    @media screen and (max-width: 880px) {
      position: absolute;
      top: 0;
      left: 0;
      width: 1px;
      height: 1px;
      opacity: 0;
      visibility: hidden;
    }
  }
  & .track__listBlockTargetBg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: linear-gradient(to bottom, var(--grad-color01-01), var(--grad-color01-02));
    &::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 2;
      margin-inline: auto;
      width: calc(300em/16);
      height: calc(12em/16);
      background-color: #fff;
    }
    @media screen and (max-width: 880px) {
      transition: opacity var(--transition);
      &::before {
        width: calc(150em/16);
        height: calc(6em/16);
      }
      :where(.p-top__caseMainSlider .track__listBlock.is-active) & {
        opacity: 1;
      }
    }
    @media (any-hover: hover) {
      transition: opacity var(--transition);
      .p-top__caseMainSlider .track__listBlockTarget:is(:hover, :focus-visible) & {
        opacity: 1;
      }
    }
  }
  & .track__listBlockImg {
    --w: 0;
    --bottom: -214;
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--bottom) * 1em/16);
    z-index: 2;
    margin-inline: auto;
    width: calc(var(--w) * 1em/16);
    translate: 0 calc(40em/16);
    transition: translate .4s var(--ease-out-quad);
    will-change: translate;
    :where(.p-top__caseMainSlider .track__listBlock.is-a) & {
      --bottom: -212;
      --w: 165;
    }
    :where(.p-top__caseMainSlider .track__listBlock.is-b) & {
      --bottom: -190;
      --w: 192;
    }
    :where(.p-top__caseMainSlider .track__listBlock.is-c) & {
      --w: 138;
    }
    :where(.p-top__caseMainSlider .track__listBlock.is-d) & {
      --w: 151;
    }
    :where(.p-top__caseMainSlider .track__listBlock.is-e) & {
      --w: 142;
    }
    :where(.p-top__caseMainSlider .track__listBlock.is-f) & {
      --w: 169;
    }
    :where(.p-top__caseMainSlider .track__listBlock.is-active) & {
      translate: 0 calc(0em/16);
    }
    @media screen and (max-width: 880px) {
      bottom: calc(var(--bottom) * .67em/16);
      width: calc(var(--w) * .67em/16);
    }
    @media (any-hover: hover) {
      .p-top__caseMainSlider .track__listBlockTarget:is(:hover, :focus-visible) + & {
        animation-name: chara_rotate;
        animation-duration: .6s;
        animation-timing-function: var(--ease-inout-expo);
        animation-fill-mode: both;
      }
    }
  }
  & .arrow__body {
    will-change: transform;
  }
}
@keyframes chara_rotate {
  0% {
    transform: scaleX(1);
  }
  45% {
    transform: scaleX(0);
  }
  55% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}
.p-top__caseMainImg {
  @media screen and (max-width: 880px) {
    order: -1;
    display: flex;
    justify-content: center;
  }
  & .left {
    position: absolute;
    top: calc(-164em/16);
    left: calc(30em/16);
    width: calc(262em/16);
    @media screen and (max-width: 880px) {
      position: static;
      width: calc(156em/16);
    }
  }
  & .right {
    position: absolute;
    top: calc(-160em/16);
    right: calc(20em/16);
    width: calc(273em/16);
    @media screen and (max-width: 880px) {
      position: static;
      margin-left: calc(-4em/16);
      width: calc(167em/16);
    }
  }
}
.p-top__caseMainLink {
  margin-top: calc(256em/16);
  @media screen and (max-width: 880px) {
    margin-top: calc(175em/16);
  }
  & .btn {
    margin-inline: auto;
  }
}
.p-top__caseComic {
  position: absolute;
  top: 0;
  z-index: 0;
  width: calc(438em/16);
  font-size: min(1em, calc(16/1150*100vw));
  overflow: visible;
  &.is-01 {
    left: calc(-164em/16);
    @media screen and (max-width: 1150px) {
      left: calc(-164em/16*1.5);
    }
    @media screen and (max-width: 1024px) {
      top: 0;
      left: 0;
      right: 0;
      margin-inline: auto;
      margin-top: min(calc(-304em/16), calc(-304/800*100vw));
      width: max(calc(220em/16), calc(220/800*100vw));
      font-size: 1em;
    }
  }
  &.is-02 {
    right: calc(-164em/16);
    @media screen and (max-width: 1150px) {
      right: calc(-164em/16*1.5);
    }
    @media screen and (max-width: 1024px) {
      display: none;
    }
  }
}
.p-top__caseComicTrack {
  height: 100%;
  overflow: visible;
  @media screen and (max-width: 1024px) {
    & .list__item img {
      .p-top__caseComicTrack .list__item:nth-child(2n+1) & {
        translate: calc(20/220*100%) 0;
      }
    }
  }
}