/* トップページ：既存のスライドショーに白いコピーを重ねる。 */
.home #main_visual.kb-hero-overlay {
    --kb-hero-height: clamp(520px, 72svh, 760px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.home #main_visual.kb-hero-overlay .p-mainVisual__inner {
    top: 0;
    left: auto;
    width: 100%;
    height: var(--kb-hero-height) !important;
    margin: 0;
    padding: 0;
    border-radius: 0;
    transform: none;
    z-index: 0;
}

.home #main_visual.kb-hero-overlay::before {
    inset: 0;
    width: 100%;
    height: 100% !important;
    margin: 0;
    border: 0;
    border-radius: 0;
    transform: none;
    background: linear-gradient(180deg, rgba(0, 25, 35, .12), rgba(0, 25, 35, .34) 45%, rgba(0, 25, 35, .22));
    pointer-events: none;
    z-index: 1;
}

.home #main_visual.kb-hero-overlay::after {
    content: none;
}

.home #main_visual .maincopy.kb-hero-copy {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 48px);
    max-width: 960px;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 20, 30, .5);
    pointer-events: none;
    z-index: 3;
}

.kb-hero-copy__title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: clamp(40px, 4.6vw, 68px);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.5;
}

.kb-hero-copy__title span {
    display: block;
}

.kb-hero-copy__title .kb-hero-copy__intro,
.kb-hero-copy__title .kb-hero-copy__accent {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.kb-hero-copy__stars,
.kb-hero-copy__rays,
.kb-hero-copy__scribble {
    position: absolute;
    color: #ed8500;
    pointer-events: none;
}

.kb-hero-copy__stars {
    left: -1.8em;
    top: -.15em;
    width: 1.2em;
    height: 1.5em;
}

.kb-hero-copy__rays {
    right: -2em;
    top: -.5em;
    width: 1.6em;
    height: 1.6em;
}

.kb-hero-copy__scribble {
    left: 4%;
    bottom: -6px;
    width: 92%;
    height: 28px;
}

.kb-hero-copy__description {
    margin: 30px 0 0;
    font-size: 18px;
    line-height: 1.9;
    letter-spacing: .04em;
}

.kb-hero-copy__access {
    display: inline-block;
    margin: 26px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .65);
    color: #fff;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: .08em;
}

.kb-hero-copy__action {
    margin: 28px 0 0;
}

.home #main_visual .kb-hero-copy__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 100%;
    padding: 18px 30px;
    box-sizing: border-box;
    border: 2px solid #45453e;
    border-radius: 999px;
    background: #ffd6b0;
    color: #111;
    box-shadow: 4px 6px 0 #45453e;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    text-shadow: none;
    pointer-events: auto;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.kb-hero-copy__cta svg {
    flex-shrink: 0;
}

.home #main_visual .kb-hero-copy__cta:hover {
    background: #ffe4ca;
    opacity: 1;
    transform: translate(2px, 2px);
    box-shadow: 2px 4px 0 #45453e;
}

.home #main_visual .kb-hero-copy__cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 6px;
}

.home #main_visual.kb-hero-overlay .produced-link-wrapper {
    position: absolute;
    bottom: 32px;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    z-index: 3;
}

.home #main_visual.kb-hero-overlay .produced-link img {
    filter: brightness(0) invert(1);
}

@media (max-width: 959px) {
    .home #main_visual.kb-hero-overlay {
        --kb-hero-height: clamp(480px, 74svh, 660px);
    }

    .home #main_visual .maincopy.kb-hero-copy {
        width: calc(100% - 32px);
    }

    .kb-hero-copy__title {
        font-size: clamp(28px, 7.8vw, 48px);
        letter-spacing: .03em;
        line-height: 1.6;
    }

    .kb-hero-copy__description {
        margin-top: 28px;
        font-size: 14px;
        letter-spacing: 0;
    }

    .kb-hero-copy__scribble {
        bottom: -8px;
        height: 20px;
    }

    .kb-hero-copy__access {
        margin-top: 22px;
        font-size: clamp(12px, 3.5vw, 14px);
        letter-spacing: .02em;
    }

    .kb-hero-copy__action {
        margin-top: 24px;
    }

    .home #main_visual .kb-hero-copy__cta {
        gap: 10px;
        padding: 15px 20px;
        font-size: 15px;
    }

    .kb-hero-copy__cta svg {
        width: 22px;
        height: 22px;
    }

    .home #main_visual.kb-hero-overlay .produced-link-wrapper {
        bottom: 38px;
    }
}
