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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
        "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding: 20px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
}

.card-header {
    background: #1a1a2e;
    color: #ffffff;
    padding: 32px 28px 24px;
    text-align: center;
}

.profile-img {
    width: 100px !important;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

.name-ja {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.name-en {
    font-size: 0.85rem;
    font-weight: 400;
    color: #a0a0b8;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.title {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #c0c0d0;
}

.card-body {
    padding: 24px 28px 28px;
}

.affiliations {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.affiliation {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #444;
}

.affiliation-type {
    background: #e8e8f0;
    color: #555;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.bio {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 10px;
}

.info-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: #888;
}

.info-row a {
    color: #555;
    text-decoration: none;
}

.info-row a:hover {
    color: #1a1a2e;
}

.links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.2s, transform 0.15s;
}

.link-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.link-btn:active {
    transform: translateY(0);
}

.link-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.link-btn.github {
    background: #24292e;
}

.link-btn.linkedin {
    background: #0077b5;
}

.link-btn.wantedly {
    background: #21bddb;
}

.link-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.link-btn.website {
    background: #2c3e50;
}
