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

:root {
    --primary-color: #2ecc71;
    --secondary-color: #3498db;
    --text-color: #2c3e50;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --link-shadow: rgba(0, 0, 0, 0.1);
    --counter-color: #666;
    --counter-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] {
    --text-color: #ffffff;
    --background-color: #1a1a1a;
    --card-background: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --link-shadow: rgba(255, 255, 255, 0.1);
    --counter-color: #ffffff;
    --counter-bg: rgba(255, 255, 255, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ダークモードトグル */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
}

#theme-toggle:hover {
    transform: scale(1.1);
}

#theme-toggle .sun,
#theme-toggle .moon {
    font-size: 1.8rem;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] #theme-toggle .sun {
    opacity: 0;
}

[data-theme="light"] #theme-toggle .moon {
    opacity: 0;
}

/* コンテナ */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--card-background);
    border-radius: 1.5rem;
    box-shadow: 0 15px 40px var(--shadow-color);
    text-align: center;
}

.profile {
    text-align: center;
    margin-bottom: 4rem;
}

.profile img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 5px solid var(--card-background);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
}

.profile img:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.profile h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(45deg, #2ecc71, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
}

.profile p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    line-height: 1.8;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
}

.links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 8px 20px var(--link-shadow);
}

.links a .icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.links a .label {
    font-size: 1.2rem;
    font-weight: 600;
}

.links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.links a:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--link-shadow);
}

.links a:hover::before {
    left: 100%;
}

/* SNS Links */
.twitter {
    background: linear-gradient(45deg, #1da1f2, #0d47a1);
}

.instagram {
    background: linear-gradient(45deg, #833ab4, #e1306c, #fcb045);
}

.youtube {
    background: linear-gradient(45deg, #ff0000, #ff4444);
}

.tiktok {
    background: linear-gradient(45deg, #000000, #1da1f2);
}

.saboten {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    font-family: 'Arial Unicode MS', sans-serif;
}

.green-studio {
    background: linear-gradient(45deg, #34c759, #2ecc71);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 2rem;
    }
    
    .profile img {
        width: 180px;
        height: 180px;
    }
    
    .profile h1 {
        font-size: 2.5rem;
    }
    
    .profile p {
        font-size: 1.2rem;
    }
    
    .links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    .profile img {
        width: 150px;
        height: 150px;
    }
    
    .profile h1 {
        font-size: 2rem;
    }
    
    .profile p {
        font-size: 1.1rem;
    }
    
    .links {
        grid-template-columns: 1fr;
    }
}
