/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sky-blue: #4FC3F7;
    --cloud-white: #FFFFFF;
    --mario-red: #E53E3E;
    --mario-green: #38A169;
    --mario-yellow: #FFD700;
    --mario-orange: #FF8C00;
    --mario-brown: #8B4513;
    --mario-blue: #3182CE;
    --mario-purple: #805AD5;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --glow-color: rgba(255, 215, 0, 0.8);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #87CEEB 0%, #4FC3F7 50%, #87CEEB 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.8;
}

.particle:nth-child(odd) {
    width: 20px;
    height: 20px;
    background: var(--mario-yellow);
    border: 3px solid var(--mario-orange);
    box-shadow: 0 0 15px var(--glow-color);
}

.particle:nth-child(even) {
    width: 30px;
    height: 20px;
    background: var(--cloud-white);
    border-radius: 20px;
    box-shadow: 0 2px 10px var(--card-shadow);
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 40%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 40%;
    left: 60%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 90%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Header */
.profile-header {
    text-align: center;
    padding: 2rem 0;
}

.profile-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.glow-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 4px solid var(--mario-yellow);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--glow-color);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px var(--glow-color);
    }
}

.name {
    font-family: 'Orbitron', monospace;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--mario-red);
    text-shadow: 2px 2px 0px var(--mario-yellow);
}

.title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bio {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Featured Link */
.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: var(--mario-red);
    color: var(--cloud-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 
        0 8px 0 #B91C1C,
        0 12px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--mario-yellow);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
}

.featured-link:hover {
    transform: translateY(4px);
    box-shadow: 
        0 4px 0 #B91C1C,
        0 8px 15px rgba(0, 0, 0, 0.4);
}

.featured-link:active {
    transform: translateY(8px);
    box-shadow: 
        0 0px 0 #B91C1C,
        0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    background: var(--card-bg);
    border: 4px solid var(--mario-yellow);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 0 var(--mario-orange),
        0 12px 25px var(--card-shadow);
    transform: translateY(0);
}

.link-card:hover {
    transform: translateY(4px);
    border-color: var(--mario-green);
    box-shadow: 
        0 4px 0 var(--mario-orange),
        0 8px 20px var(--card-shadow);
}

.link-card a {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    gap: 1rem;
}

.link-icon {
    width: 52px;
    height: 52px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--cloud-white);
    flex-shrink: 0;
    border: 3px solid var(--mario-yellow);
    box-shadow: 
        0 4px 0 var(--mario-brown),
        0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

/* SNS別の背景色 */
.link-card:nth-child(1) .link-icon { background: var(--mario-blue); }
.link-card:nth-child(2) .link-icon { background: var(--mario-blue); }
.link-card:nth-child(3) .link-icon { background: var(--mario-green); }
.link-card:nth-child(4) .link-icon { background: var(--mario-red); }
.link-card:nth-child(5) .link-icon { background: var(--mario-orange); }
.link-card:nth-child(6) .link-icon { background: var(--mario-red); }
.link-card:nth-child(7) .link-icon { background: var(--mario-green); }
.link-card:nth-child(8) .link-icon { background: var(--mario-purple); }

.link-content {
    flex: 1;
}

.link-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.link-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    color: var(--accent-blue);
    transform: translateX(4px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--card-border);
    margin-top: 2rem;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.update-date {
    font-size: 0.8rem !important;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .featured-link {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .link-card a {
        padding: 1.25rem;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 3rem 2rem;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
    }
    
    .image-placeholder {
        font-size: 3.5rem;
    }
    
    .name {
        font-size: 3rem;
    }
}

/* Loading Animation */
.link-card {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }
.link-card:nth-child(7) { animation-delay: 0.7s; }

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

