@charset "utf-8";

/* すべての要素に適用 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    background: radial-gradient(circle at top,
            #cbbbbb,
            #15419a);

    font-family: Arial, Helvetica, sans-serif;
}


.inner {
    margin: 0 auto;
    width: 390px;
    height: 844px;
    padding: 7.5rem 1.875rem 12.5rem;



}



.heart-loader {
    position: relative;
    width: 330px;
    height: 524px;

}

.heart {
    position: absolute;
    top: 40%;
    width: 30px;
    height: 48px;
    background: #e63946;
    border-radius: 30px 30px 0 0;
    opacity: 0;
}

/* 左 */
.left {
    left: 50%;
    transform: translateX(-80px) rotate(-45deg);
    transform-origin: right bottom;
    animation: leftMerge 2s infinite ease-in-out;
}

/* 右 */
.right {
    left: 50%;
    transform: translateX(80px) rotate(45deg);
    transform-origin: left bottom;
    animation: rightMerge 2s infinite ease-in-out;
}

/* 左から中央へ */
@keyframes leftMerge {
    0% {
        opacity: 0;
        transform: translateX(-80px) rotate(-45deg);
    }

    40% {
        opacity: 1;
    }

    70%,
    100% {
        transform: translateX(-50%) rotate(-45deg);
        opacity: 1;
    }
}

/* 右から中央へ */
@keyframes rightMerge {
    0% {
        opacity: 0;
        transform: translateX(80px) rotate(45deg);
    }

    40% {
        opacity: 1;
    }

    70%,
    100% {
        transform: translateX(-26px) rotate(45deg);
        opacity: 1;
    }
}

.loading-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);


}



.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}


#loader {
    transition: opacity 1s ease;
}




.hidden {
    display: none;
    margin: 0 auto;
    width: 330px;
    height: 524px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.6s;
    margin-bottom: 2.5rem;
}

.logo {
    opacity: 0;
    transition: 0.6s;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    opacity: 0;
    transition: 0.4s;
}

.before {
    text-align: center;
    margin-bottom: 2rem;


}


.btn-basic {

    width: 8rem;
    padding: 0.9rem 2rem;
    margin: 2rem auto 0;
    font-size: 0.9rem;
    color: #333;
    background: #e5e5e5;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    cursor: pointer;
}

.after {
    text-align: center;
    margin-bottom: 1rem;
}

.cap {
    text-align: center;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 1rem .5rem;
    padding: 0 .5rem;
    margin-bottom: 2.5rem;
}

.btn {
    padding: 0.9rem 2rem;
    font-size: .9rem;
    color: #1c1c1c;
    border-radius: 999px;
    text-align: center;
    min-width: 8rem;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.4);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    opacity: 0;
    transform: translateY(12px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}


.btn.is-show {
    opacity: 1;
    transform: translateY(0);
}


.buttons .btn:nth-child(1) {
    transition-delay: 4.5s;
}

.buttons .btn:nth-child(2) {
    transition-delay: 5s;
}

.buttons .btn:nth-child(3) {
    transition-delay: 5.5s;
}

.buttons .btn:nth-child(4) {
    transition-delay: 6s;
}

.buttons .btn:nth-child(5) {
    transition-delay: 6.5s;
}

.buttons .btn:nth-child(6) {
    transition-delay: 7s;
}


.btn-float {
    animation: float 2.5s ease-in-out infinite;


}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}


.btn-shine {
    position: relative;
    overflow: hidden;
    background: rgba(208, 118, 118, 0.25);
}

.btn-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -120%;
    }

    50% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}


.btn-breath {
    animation: breath 2.8s ease-in-out infinite;
    background: rgba(77, 136, 199, 0.25);
}

@keyframes breath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.btn-arrow {
    background: rgba(216, 228, 89, 0.25);
}

.btn-arrow span {
    display: inline-block;
    animation: arrowMove 1.5s ease-in-out infinite;

}

@keyframes arrowMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}


.btn-pulse {
    position: relative;
    background: rgba(67, 207, 93, 0.25);
}

.btn-pulse::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}


.btn-wobble {
    animation: wobble 3s ease-in-out infinite;
    background: rgba(21, 20, 20, 0.25);
    color: #ffffff;
}

@keyframes wobble {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(1deg);
    }

    50% {
        transform: rotate(-1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}