/* 変数定義（ダークモードベース） */
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --card-border: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --button-bg: #1e293b;
    --button-border: #475569;
    --button-hover-bg: #334155;
}

/* リセット & 全体設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

/* カードレイアウト */
.profile-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* アバター画像 */
.avatar-container {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* 名前・ID */
.name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.user-id {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* 自己紹介エリア */
.bio-section {
    background-color: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bio-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bio-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* リンクエリア */
.links-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.875rem 1.25rem;
    background-color: var(--button-bg);
    border: 1px solid var(--button-border);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    gap: 0.875rem;
}

.link-button:hover {
    background-color: var(--button-hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

/* フッター */
.footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* レスポンシブ対応 (画面幅580px以下の場合) */
@media (max-width: 580px) {
    .profile-card {
        padding: 1.75rem 1.25rem;
    }

    .links-grid {
        grid-template-columns: 1fr; /* スマホでは縦1列に配置 */
    }

    .name {
        font-size: 1.5rem;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }
}
