:root {
    --front-home-width: 1294px;
}

body {
    overflow-x: hidden;
}

.sp {display: none;}
.pc {display: block;}

.p-front-hero {
    position: relative;
    min-height: 852px;
    padding-top: 0;
    overflow-x: clip;
    overflow-y: visible;
    background: #9f272d;
}
.p-front-hero__bg {
    position: relative;
    min-height: 852px;
    overflow-x: clip;
    overflow-y: visible;
    transition: background-color 2000ms ease-in-out;
}
.p-front-hero__char {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    mix-blend-mode: plus-lighter;
    transition-property: opacity, transform;
    will-change: opacity, transform;
    backface-visibility: hidden;
}
.p-front-hero__char.is-active {
    opacity: 0.58;
}
.p-front-hero__copy {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    text-align: center;
    transform: translate(-50%, -50%);
}
.p-front-hero__logo {
    width: 30vw;
    min-width: 300px;
    margin: 90px auto 0;
}
.p-front-hero__project {
    width: 413px;
    margin: 16px auto 0;
}
.p-front-hero__scroll {
    position: relative;
    display: block;
    height: 320px;
    margin: 24px auto 0;
    overflow: visible;
}
.p-front-hero__scroll-arrow {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 104px;
    transform: translateX(-50%);
    animation: rbt-scroll-arrow 2800ms ease-in-out infinite;
}
.p-front-hero__scroll-illust {
    position: absolute;
    left: 50%;
    bottom: -150px;
    width: 196px;
    transform: translateX(-50%);
    z-index: 2;
}
.p-front-hero__deco {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 126px;
    pointer-events: none;
    background: url("../img/common/hexadotsGradation.png") 0% 0% / 343px 126px repeat-x;
    z-index: 3;
}
.p-front-hero__stars,
.p-front-hero__stars .star {
    pointer-events: none;
}
.p-front-hero__stars {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.p-front-hero__stars .star {
    position: absolute;
    display: block;
    background-color: #ffff00;
    border-radius: 50%;
    opacity: 0;
    animation: rbt-twinkle 2400ms ease-in-out infinite;
    mix-blend-mode: lighten;
}
@keyframes rbt-twinkle {
    0% { opacity: 0; }
    50% { opacity: 0.1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1); }
}
@keyframes rbt-scroll-arrow {
    0% { opacity: 0.2; transform: translate(-50%, 0); }
    50% { opacity: 1; transform: translate(-50%, 12px); }
    100% { opacity: 0.2; transform: translate(-50%, 24px); }
}

.p-front-sections {
    position: relative;
    z-index: 4;
    margin-top: -104px;
    padding-top: 140px;
    padding-bottom: 120px;
}
.p-front-home {
    width: min(calc(100% - 40px), var(--front-home-width));
    margin: 0 auto;
}
.p-home-card {
    overflow: hidden;
    border-radius: 24px;
    background: #f3efef;
}
.p-home-card--about {
    position: relative;
    z-index: 3;
}
.p-home-card + .p-home-card,
.p-home-card + .p-home-goods {
    margin-top: 32px;
}
.p-home-card__visual {
    position: relative;
    min-height: 340px;
    background: #000000;
}
.p-home-card__visual-copy {
    padding-top: 97px;
    padding-bottom: 92px;
    padding-left: 104px;
    z-index: 2;
}
.p-home-card__visual-copy--about img {
    max-width: 351px;
}
.p-home-card__visual-image--about {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url(../img/hero/kv-b2.png) right 0px top 40% / 70% auto no-repeat;
    opacity: 0.6;
}
.p-home-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50%;
    align-items: center;
    gap: 20px;
    padding: 30px 0 24px 56px;
}
.p-home-card__text p {
    margin: 0;
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.02em;
}
.p-home-card__action {
    margin-top: 0;
}
.p-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 394px;
    min-height: 80px;
    padding: 12px 24px;
    border-radius: 8px;
    background: #000000 url("../img/header/main-bg.png") repeat center center / auto 100px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    transition: background-image 1s ease, background-color 1s ease, opacity 0.2s ease;
}
.p-home-button:hover {
    background: #000000 url("../img/header/main-bg_hover.png") repeat center center / auto 100px;
}
.p-home-button:active {
    background: #000000 url("../img/header/main-bg_click.png") repeat center center / auto 100px;
}
.p-home-button.is-disabled,
.p-home-button[aria-disabled="true"] {
    background: #000000 url("../img/header/main-bg_disable.png") repeat center center / auto 100px;
    pointer-events: none;
    cursor: default;
    opacity: 0.7;
}
.p-home-button.to--sara {
    font-size: 24px;
}
.p-home-button__icon {
    width: 20px;
    height: 15px;
    flex: 0 0 20px;
    background: url("../img/header/Vector.svg") center center / 20px 15px no-repeat;
}
.p-home-story-kv {
    position: relative;
    overflow: hidden;
    height: 340px;
    background: url(../img/common/story-titlepic1.png) no-repeat center 52px / cover;
    background-size: 100%;
    background-position: left top -116px;
}

.p-home-story-kv__heading {
    position: absolute;
    left: 50%;
    top: 51%;
    width: 410px;
    transform: translate(-50%, -50%);
}
.p-home-card__body--story {
    padding-bottom: 6px;
    font-weight: 500;
}
.p-home-card__visual,
.p-home-story-kv {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.p-home-card__visual-copy {
    position: relative;
}

.p-home-card__visual-image--about {
    z-index: 1;
    transition: transform 1.2s ease;
    transform: scale(1);
    transform-origin: center center;
}

.p-home-card__visual--link:hover .p-home-card__visual-image--about {
    transform: scale(1.08);
}

.p-home-story-kv {
    background: none;
}

.p-home-story-kv::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/common/story-titlepic1.png) no-repeat left top -116px / 100%;
    transition: transform 1.2s ease;
    transform: scale(1);
    transform-origin: center center;
    z-index: 1;
}

.p-home-story-kv:hover::before {
    transform: scale(1.08);
}

.p-home-story-kv__heading {
    z-index: 2;
}
.p-home-episodes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 34px 53px 28px;
}
.p-home-episode {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    height: 88px;
    overflow: hidden;
    border-radius: 6px;
    background: #000000 url("../img/header/main-bg.png") repeat center center / auto 100px;
    color: #ffffff;
    transition: background-image 1s ease, background-color 1s ease, opacity 0.2s ease;
}
.p-home-episode:hover {
    background: #000000 url("../img/header/main-bg_hover.png") repeat center center / auto 100px;
}
.p-home-episode:active {
    background: #000000 url("../img/header/main-bg_click.png") repeat center center / auto 100px;
}
.p-home-episode.is-disabled,
.p-home-episode[aria-disabled="true"] {
    background: #000000 url("../img/header/main-bg_disable.png") repeat center center / auto 100px;
    pointer-events: none;
    cursor: default;
    opacity: 0.7;
}
.p-home-episode__thumb {
    display: block;
    width: 108px;
    height: 88px;
    overflow: hidden;
    background-repeat: no-repeat;
}

.p-home-episode__thumb.ep01 {
    background-image: url("../img/common/storyillust-1-1.png");
    background-size: 261%;
    background-position: left -78px top -63px;
}

.p-home-episode__thumb.ep02 {
    background-image: url("../img/common/storyillust-2-1.png");
    background-size: auto 150px;
    background-position: left -80px top -28px;
}

.p-home-episode__thumb.ep03 {
    background-image: url("../img/common/storyillust-3-1.png");
    background-size: auto 152px;
    background-position: left -90px top -22px;
}

.p-home-episode__thumb.ep04 {
    background-image: url(../img/common/storyillust-4-1.png);
    background-size: auto 136px;
    background-position: left -38px top -38px;
}
.p-home-episode__meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 8px 16px 8px 43px;
}
.p-home-episode__number {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
}
.p-home-episode__title {
    display: block;
    font-size: 16px;
    font-weight: 700;
}
.p-home-goods {
    width: 100%;
    padding-top: 24px;
    text-align: center;
}
.p-home-goods__visual {
    position: relative;
    display: block;
    width: 100%;
    max-width: 665px;
    height: 193px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 0;
    background-image: none !important;
}

.p-home-goods__visual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url(../img/common/PYBJ4N.png);
    background-repeat: no-repeat;
    background-position: center 44%;
    background-size: 120%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.p-home-goods__visual:hover::before {
    transform: scale(1.1);
}


.p-home-goods__heading {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  transform: translate(-50%, -50%);
}
.en .p-home-goods__heading {
  width: 220px;
}
.p-home-goods__text {
    margin-top: 18px;
}
.p-home-goods__text p {
    margin: 0;
    line-height: 2;
}

@media (max-width: 767px) {
.sp {display: block;}
.pc {display: none !important;}

    .p-front-hero {
        overflow: hidden;
    }
    .p-front-hero__bg {
        overflow: clip;
        position: relative;
        min-height: 832px;
        overflow-x: clip;
        overflow-y: visible;
        margin-bottom: 20px;
    }
    .p-front-hero__copy {
        top: 47%;
    }
    .p-front-hero__logo {
        width: 86vw;
        min-width: 0;
        max-width: 453px;
    }
    .p-front-hero__project {
        width: 76vw;
        max-width: 316px;
        margin-top: 16px;
    }
    .p-front-hero__scroll {
        height: 156px;
        margin-top: 28px;
        overflow: visible;
    }
    .p-front-hero__scroll-arrow {
        top: 0;
        width: 64px;
        max-width: 16vw;
        z-index: 3;
    }
    .p-front-hero__scroll-illust {
        width: 165px;
        bottom: -200px;
        
    }
    .p-front-hero__deco {
        height: 126px;
    }

    .p-front-sections {
        margin-top: 30px;
        padding: 0 0 72px;
        margin-top: -155px;
        padding-top: 140px;
    }
    .p-front-home {
        width: 100%;
    }
    .p-home-card {
        border-radius: 0;
    }
    .p-home-card + .p-home-card,
    .p-home-card + .p-home-goods {
        margin-top: 0;
    }
    .p-home-card__visual {
        min-height: 206px;
    }
    .p-home-card__visual-copy {
        padding-top: 130px;
        padding-bottom: 130px;
        padding-left: 0;
    }
    .p-home-card__visual-copy--about img {
        position: relative;
        width: 80vw;
        margin: 0 auto;
        z-index: 2;
    }
    .p-home-card__visual-image--about {
    width: 100%;
    height: 100%;
    background: url(../img/common/kv-b2_op06.png) right 50% top 50% / 124% auto no-repeat;
    opacity: 1;    
    }
    .p-home-card__body {
        display: block;
        padding: 18px 18px 20px;
    }
    .p-home-card__text p {
        font-size: 14px;
        margin-bottom: 18px;
        line-height: 2;
    }
    .p-home-card__action {
        margin-top: 0;
    }
    .p-home-button {
        width: 100%;
        min-width: 0;
        min-height: 88px;
        padding: 27px 0;
        border-radius: 0;
        font-size: 13px;
    }
    .p-home-story-kv {
        height: 400px;
        background: none;
    }
    .p-home-story-kv::before {
        background: url(../img/common/story-titlepic1.png) no-repeat left 49% top 53% / 320%;
    }
    .p-home-story-kv__heading {
        top: 50%;
        width: 80vw;
    }
    .p-home-card__body--story {
        padding-bottom: 0;
    }
    .p-home-episodes {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 0 22px;
    }
    .p-home-episode {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 56px;
        border-radius: 0;
    }
    .p-home-episode__thumb img {
        width: 64px;
        height: 56px;
    }
    .p-home-episode__meta {
        padding: 8px 12px;
    }
    .p-home-episode__number {
        margin-bottom: 3px;
        font-size: 13px;
    }
    .p-home-episode__title {
        font-size: 13px;
        line-height: 1.4;
    }

    .p-home-goods {
        padding-top: 30px;
    }
    .p-home-goods__visual {
        max-width: 320px;
    }
    .p-home-goods__heading {
        width: 160px;
    }
    .p-home-goods__text {
        margin-top: 14px;
    }
    .p-home-goods__text p {
        font-size: 14px;
        line-height: 2;
    }
}
