:root {
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.82);
    --soft: rgba(255, 255, 255, 0.65);
    --shadow: rgba(0, 0, 0, 0.34);
    --card: rgba(255, 255, 255, 0.14);
    --card-border: rgba(255, 255, 255, 0.2);
    --photo-border: rgba(255, 255, 255, 0.22);
    --line: rgba(255, 255, 255, 0.6);
    --glow: rgba(255, 214, 236, 0.24);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #000;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Sans",
        "Yu Gothic",
        sans-serif;
    overflow-x: hidden;
}

/* 背景：思い出の風景をベースに、誕生日感は光で足す */
/* .bg-layer {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: url("images/bg.jpeg");
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 235, 245, 0.2), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(255, 214, 236, 0.16), transparent 18%),
        linear-gradient(to bottom,
            rgba(9, 8, 14, 0.16) 0%,
            rgba(11, 10, 18, 0.28) 28%,
            rgba(12, 10, 18, 0.38) 58%,
            rgba(10, 9, 15, 0.56) 100%);
} */

/* .sparkles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    background-image:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
        radial-gradient(circle at 75% 22%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 65% 48%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
        radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px);
    animation: sparkleFloat 10s linear infinite;
} */

main {
    position: relative;
}

.hero {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.hero-inner {
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.hero-kicker,
.title,
.subtitle,
.scroll-note {
    opacity: 0;
    transform: translateY(18px);
    text-shadow: 0 6px 20px var(--shadow);
}

.hero-kicker {
    margin: 0 0 12px;
    font-size: 0.88rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soft);
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.15s;
    color: rgba(255, 255, 255, 0.88);
}

.title {
    margin: 0;
    font-size: clamp(2.2rem, 9vw, 3.6rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.03em;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.75s;
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(255, 210, 230, 0.18);
}

.subtitle {
    margin: 14px 0 0;
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.18em;
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.55s;
}

.scroll-note {
    margin-top: 34px;
    font-size: 0.92rem;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 2.35s;
}

.scroll-note span {
    display: inline-block;
    opacity: 1;
    animation: floatArrow 1.8s ease-in-out infinite;
}

.memories {
    position: relative;
    padding: 10svh 0 8svh;
}

.memory-header {
    text-align: center;
    margin-bottom: 16px;
    padding: 0 20px;
}

.memory-lead {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.memory-track {
    position: relative;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 8px 18px 0;
}

.memories-label {
    text-align: center;
    margin: 0 0 24px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
}

.memory-track::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(to bottom,
            var(--line) 0 10px,
            rgba(255, 255, 255, 0) 10px 22px);
    opacity: 0.78;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.12));
}

.track-line {
    position: absolute;
    left: 50%;
    top: 38px;
    bottom: 38px;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, 0.72) 0 10px,
            rgba(255, 255, 255, 0) 10px 22px);
    opacity: 0.78;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.16));
}

.photo-wrap {
    position: relative;
    margin: 28px 0 54px;
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.photo-wrap.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.photo-wrap.left {
    padding-right: 78px;
}

.photo-wrap.right {
    padding-left: 78px;
}

.track-dot {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.12),
        0 0 18px rgba(255, 255, 255, 0.26);
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--photo-border);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.22),
        0 6px 14px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.photo-wrap.left .photo-card {
    --card-rotate: -6deg;
    transform: rotate(var(--card-rotate));
}

.photo-wrap.right .photo-card {
    --card-rotate: 6deg;
    transform: rotate(var(--card-rotate));
}

.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.02) 18%,
            rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 280px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
}

.photo-date {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.details {
    min-height: 100svh;
    display: flex;
    justify-content: center;
    padding: 12svh 18px calc(28px + env(safe-area-inset-bottom));
}

.details-track {
    position: relative;
    width: min(100%, 430px);
    padding-top: 8px;
    padding-bottom: 10px;
}

.details-line {
    display: none;
}

.details-card {
    position: relative;
    z-index: 1;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 22px 22px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    opacity: 1;
    transform: none;
}

.details-card+.details-card {
    margin-top: 28px;
}

.details-date {
    font-size: 0.96rem;
    opacity: 0.92;
    letter-spacing: 0.12em;
    margin: 0 0 8px;
}

.details-title {
    font-size: 1.75rem;
    line-height: 1.25;
    margin: 0 0 14px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.details-coming {
    padding: 10px 0 4px;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.details-content {
    display: none;
}

.info-block {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.info-block:last-child {
    padding-bottom: 6px;
}

.info-label {
    font-size: 0.78rem;
    opacity: 0.8;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.info-value {
    font-size: 1.08rem;
    line-height: 1.65;
    font-weight: 600;
}

.reveal {
    will-change: transform, opacity;
}

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

@keyframes arrowFloat {

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

    50% {
        transform: translateY(7px);
    }
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0);
        opacity: 0.45;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.65;
    }

    100% {
        transform: translateY(0);
        opacity: 0.45;
    }
}

@media (max-width: 390px) {
    .photo-wrap.left {
        padding-right: 52px;
    }

    .photo-wrap.right {
        padding-left: 52px;
    }

    .details-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .details-title {
        font-size: 1.56rem;
    }
}

.memory-heart {
    text-align: center;
    font-size: 22px;
    margin: 6px 0 16px;
    color: #ff7aa8;
    text-shadow: 0 0 10px rgba(255, 120, 160, 0.6);
    animation: heartFloat 2s ease-in-out infinite;
}

@keyframes heartFloat {

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

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

.bg-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
        radial-gradient(circle at 32% 58%, rgba(255, 220, 235, 0.55) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.42) 0 1px, transparent 2px),
        radial-gradient(circle at 56% 78%, rgba(255, 230, 240, 0.45) 0 1px, transparent 2px);
}

.fixed-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.12)),
        url("images/bg.jpeg");
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}