body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
}

.flexBox {
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 4rem 0 0;
    text-align: center;
    opacity: 0;
    transform: translateY(2rem);
    animation: contentIn .6s ease forwards;
    animation-delay: .55s;
    animation-delay: 1.2s;
}

@media (max-width: 480px) {
    .container {
        padding: 4rem 2rem 0;
    }
}

@keyframes contentIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* プロフィール */
.profile img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, .4);
}

.profile h1 {
    font-size: 1.4rem;
    margin: 0;
}

.profile h1 span {
    display: block;
    font-size: 1.2rem;
}


.profile p {
    font-size: 0.9rem;
    opacity: .8;
    margin: 2rem 0;
}

/* リンク */
.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.links_title {
    font-weight: bold;
    font-size: 120%;
}

.links a {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 14px;
    font-weight: bold;
    backdrop-filter: blur(6px);
    transition: transform .15s ease, background .15s ease;
    position: relative;
    text-align: center;
}

/* アイコンの固定位置：左10px / 上下中央 */
.links a .linkIcon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Lucide SVGのサイズ */
.links a .linkIcon svg {
    width: 20px;
    height: 20px;
}

.links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .2);
}

footer {
    margin-top: 40px;
    background: #fff;
    padding: 20px 0;
    text-align: center;
}

.profile-logo img {
    width: 200px;
}

@media (max-width: 480px) {
    .profile-logo img {
        width: 160px;
    }
}

footer p {
    font-size: 0.75rem;
    color: #0f0c29;
    margin: 0;
}

/* ===== Opening Lightning Animation ===== */
.opening {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    animation: openingHide 3.2s ease forwards;
}

/* 全体フラッシュ（稲妻の光） */
.flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 20%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 55%);
    opacity: 0;
    animation: flash 3.2s ease forwards;
}

/* 雷本体（縦の稲妻） */
.bolt {
    position: absolute;
    left: 50%;
    top: -10%;
    width: 10px;
    height: 120%;
    transform: translateX(-50%);
    opacity: 0;

    /* ジグザグをclip-pathで作る */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .2));
    filter: drop-shadow(0 0 12px rgba(200, 200, 255, .9)) drop-shadow(0 0 24px rgba(120, 120, 255, .6));
    clip-path: polygon(55% 0%, 40% 8%, 60% 14%, 38% 22%, 62% 30%, 35% 40%, 65% 52%,
            42% 60%, 62% 70%, 40% 78%, 60% 86%, 45% 94%, 55% 100%);

    animation: boltDrop 3.2s ease forwards;
}

/* 着弾の光（下側のグロー） */
.impact {
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 220px;
    height: 220px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(180, 180, 255, .9), rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    filter: blur(2px);
    animation: impact 3.2s ease forwards;
}

/* アニメーション */
@keyframes flash {
    0% {
        opacity: 0;
    }

    12% {
        opacity: .0;
    }

    16% {
        opacity: 1;
    }

    22% {
        opacity: .0;
    }

    28% {
        opacity: .7;
    }

    36% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes boltDrop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px) scaleY(.7);
    }

    14% {
        opacity: 0;
    }

    18% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scaleY(1);
    }

    26% {
        opacity: 1;
    }

    40% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scaleY(1);
    }

    100% {
        opacity: 0;
    }
}

@keyframes impact {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(.6);
    }

    18% {
        opacity: 0;
    }

    22% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }

    32% {
        opacity: .0;
        transform: translateX(-50%) scale(1.4);
    }

    100% {
        opacity: 0;
    }
}

@keyframes openingHide {
    0% {
        opacity: 1;
        visibility: visible;
    }

    85% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* motion配慮（OS設定で減らす） */
@media (prefers-reduced-motion: reduce) {
    .opening {
        display: none;
    }
}