/* エンディング — Figma ichidot_work_2603 node 273:43 */

:root {
    --hw-ending-btn-bg: #ffffff;
    --hw-ending-btn-color: #000000;
    --hw-ending-btn-radius: 4px;
    --hw-ending-btn-font-size: 19px;
    --hw-ending-btn-line-height: 36px;
    --hw-ending-btn-font-weight: 700;
    --hw-ending-btn-padding-y: 4px;
    --hw-ending-btn-padding-x: 34px;

    /* コンテンツ全体の縦位置（大きくするほど下へ）。config.layout.contentOffsetY が優先 */
    --hw-ending-content-offset-y: 0px;
}

.ending {
    position: relative;
    width: 100%;
    max-width: var(--hw-stage-width);
    height: 100dvh;
    margin: 0 auto;
    background: var(--hw-bg);
    overflow: hidden;
    opacity: 1;
}

#app > .ending {
    position: absolute;
    inset: 0;
    z-index: 3;
    max-width: none;
    width: 100%;
}

#app > .ending .ending__stage {
    max-width: var(--hw-stage-width);
    height: 100%;
    margin: 0 auto;
}

.ending.is-phase-entering {
    opacity: 0;
}

.ending.is-phase-active {
    opacity: 1;
    transition: opacity var(--hw-phase-fade-duration) var(--hw-fade-easing);
}

.ending.is-phase-leaving {
    opacity: 0;
    transition: opacity var(--hw-phase-fade-duration) var(--hw-fade-easing);
    pointer-events: none;
}

.ending__stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.ending__content {
    position: absolute;
    inset: 0;
    transform: translateY(var(--hw-ending-content-offset-y));
}

.ending__logo {
    position: absolute;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.ending__btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: var(--hw-ending-btn-padding-y) var(--hw-ending-btn-padding-x);
    border: none;
    border-radius: var(--hw-ending-btn-radius);
    background: var(--hw-ending-btn-bg);
    color: var(--hw-ending-btn-color);
    font-family: inherit;
    font-size: var(--hw-ending-btn-font-size);
    font-weight: var(--hw-ending-btn-font-weight);
    line-height: var(--hw-ending-btn-line-height);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ending__btn:active {
    opacity: 0.85;
}

@media (hover: hover) {
    .ending__btn {
        transition: opacity 0.2s ease;
    }

    .ending__btn:hover {
        opacity: 0.88;
    }
}

.kamishibai.is-phase-leaving {
    opacity: 0;
    transition: opacity var(--hw-phase-fade-duration) var(--hw-fade-easing);
    pointer-events: none;
}
