:root {
    --bg: #111820;        /* 背景 */
    --card: #2b3138;      /* カード */
    --text: #e8edf2;      /* 本文 */
    --muted: #aab4bf;     /* 補助文字 */
    --line: #3c4650;      /* 枠線 */
    --accent: #84b3e2;    /* アクセント */
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

.container {
    max-width: 860px;
    margin: 48px auto;
    padding: 0 24px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.name-row {
    text-align: left;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.header-links {
    display: flex;
    gap: 8px;
    margin-left: 36px;
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    transition: 0.2s ease;
}

.header-button svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.header-button:hover {
    background: var(--accent);
    color: #111820;
    text-decoration: none;
}

header {
    margin-bottom: 28px;
}

h1 {
    margin: 0;
    margin-bottom: 8px;
    font-size: 2rem;
    letter-spacing: 0.03em;
}

.name-en {
    margin-top: 4px;
    color: var(--muted);
    font-size: 1rem;
}

.profile-photo {
    margin-top: 0;
    text-align: center;
    flex-shrink: 0;
}

.profile-photo img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
}

.updated {
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

section {
    margin-top: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 32px;
}

h2 {
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
    font-size: 1.2rem;
    display: flex;
    align-items: baseline;
}

.section-en {
    margin-left: 12px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

ul, ol {
    margin: 0;
    padding-left: 1.4em;
}

li {
    margin: 6px 0;
}

.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.label {
    color: var(--muted);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.post-preview {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.post-preview .date {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.post-preview h3 {
    margin: 0 0 10px;
}

.post-preview h3 a {
    color: var(--text);
}

.post-preview h3 a:hover {
    color: var(--accent);
}

.post-preview p:last-child {
    margin-bottom: 0;
}

.post-preview p a {
    font-weight: 600;
}

.post-preview-link {
    color: var(--text);
    text-decoration: none;
}

footer {
    margin: 32px 0 16px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 640px) {
    .container {
        margin: 24px auto;
        padding: 0 16px;
    }

    section {
        padding: 24px 22px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .profile-photo img {
        width: 72px;
        height: 72px;
    }

    .info-list li {
        display: block;
        margin-bottom: 14px;
    }

    .info-list .label {
        display: block;
        margin-bottom: 2px;
    }

    .info-list span:last-child {
        display: block;
        word-break: break-word;
    }
}