:root {
    --bg-color: #0b0d17;
    /* 深みのあるダークブルー/ブラック */
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --primary-color: #00f0ff;
    --primary-color-dim: rgba(0, 240, 255, 0.15);
    --secondary-color: #ff0055;
    --text-primary: #ffffff;
    --text-secondary: #a0a5b1;
    --text-muted: #5e626e;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* --- 背景エフェクト --- */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
}

.glow-orb {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    animation: floatOrb 15s ease-in-out infinite alternate;
}

.glow-orb.top-left {
    top: -15vw;
    left: -15vw;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

.glow-orb.bottom-right {
    bottom: -15vw;
    right: -15vw;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    animation-delay: -7.5s;
}

@keyframes floatOrb {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(5%, 5%);
    }
}

/* --- レイアウト --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- ヒーローセクション --- */
.hero-section {
    text-align: center;
    padding: 6rem 0 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-glow {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #b0b5c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 600px;
}

/* プログレスバー */
.progress-wrapper {
    width: 100%;
    max-width: 500px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.progress-label {
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.progress-text {
    color: var(--primary-color);
    font-size: 1.3rem;
    text-shadow: 0 0 15px var(--primary-color-dim);
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #0066ff);
    box-shadow: 0 0 15px var(--primary-color);
    transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- セクション共通 --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 28px;
    background: linear-gradient(to bottom, var(--primary-color), #0066ff);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-color-dim);
}

/* --- ピックアップセクション --- */
.pickup-section {
    margin-bottom: 6rem;
}

.pickup-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--surface-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.pickup-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, var(--primary-color-dim) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.pickup-link:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.1);
}

.pickup-link:hover::before {
    opacity: 1;
}

.pickup-content {
    position: relative;
    z-index: 1;
    padding: 3.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pickup-badge {
    display: inline-block;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.pickup-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.pickup-id {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    margin-right: 0.5rem;
}

.pickup-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.pickup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--surface-border);
    padding-top: 1.5rem;
}

.pickup-date {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pickup-action {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.pickup-link:hover .pickup-action {
    gap: 1rem;
    text-shadow: 0 0 10px var(--primary-color-dim);
}

/* --- アーカイブグリッドセクション --- */
.archive-section {
    margin-bottom: 8rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* アプリカード */
.app-card {
    text-decoration: none;
    color: inherit;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.app-card.completed {
    cursor: pointer;
}

.app-card.completed:hover {
    transform: translateY(-8px);
    background: var(--surface-hover);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 240, 255, 0.1);
}

/* カードのグラデーションライン */
.app-card.completed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card.completed:hover::after {
    opacity: 1;
}

/* カード画像エリア */
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--surface-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card.completed:hover .card-image {
    transform: scale(1.05);
}

.no-image-text {
    position: absolute;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: none;
}

.card-image-wrapper.fallback {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.card-image-wrapper.fallback .no-image-text {
    display: block;
}

/* カードコンテンツエリア */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    transition: all 0.3s ease;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: auto;
}

.app-card.completed:hover .card-number {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color-dim);
}

.app-card.completed:hover .card-title {
    color: #fff;
}

/* 無効（未完成）なアプリカード */
.app-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.03);
}

.app-card.disabled .card-number {
    color: var(--text-muted);
}

.app-card.disabled .card-title {
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

.app-card.disabled .card-image-wrapper.fallback {
    background: rgba(0, 0, 0, 0.2);
}

.app-card.disabled .no-image-text {
    font-size: 1rem;
    opacity: 0.5;
}

/* アニメーション用クラス */
.app-card.fade-in {
    animation: fadeInRise 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }

    .pickup-content {
        padding: 2rem;
    }

    .pickup-title {
        font-size: 1.8rem;
    }

    .pickup-description {
        font-size: 1rem;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .app-card {
        padding: 1.5rem;
    }

    .app-card .card-number {
        font-size: 2rem;
    }

    .app-card .card-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .title-glow {
        font-size: 2.2rem;
    }

    .progress-wrapper {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .pickup-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .app-card {
        padding: 1.2rem;
    }
}