/* ================================
   Profile Page
   ================================ */

.profile-page {
    margin-top: 80px;

        padding: 72px 16px 32px;
    display: flex;
    align-items: stretch;
}

.profile-layout {
    display: grid;
    grid-template-areas:
        "top top"
        "left right";
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 24px;
    width: 100%;
}

/* 上段（顔写真＋キャリア） */

.profile-top {
    grid-area: top;
    text-align: center;
    padding-bottom: 8px;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid #fff;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.8);
    background: #000;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-name {
    margin: 4px 0 4px;
    font-size: 24px;
    letter-spacing: 0.12em;
}

.profile-role {
    margin: 0 0 12px;
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
}

.profile-career {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #333;
}

.profile-career h2 {
    font-size: 14px;
    margin: 0 0 8px;
    letter-spacing: 0.12em;
}

.profile-career ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-career li {
    font-size: 13px;
    display: flex;
    margin-bottom: 4px;
}

.profile-career .year {
    width: 80px;
    color: #888;
}

.profile-career .text {
    flex: 1;
    color: #ddd;
}

/* 左下：コマンドウィンドウ */

.profile-left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.command-window,
.profile-note {
    background: #000;
    border: 2px solid #fff;
    padding: 12px 16px;
    font-family: "MS Gothic", "Osaka-mono", monospace;
    font-size: 13px;
    box-shadow: 0 0 0 2px #222, 0 0 18px rgba(0, 0, 0, 0.7);
}

.command-window h2,
.profile-note h2,
.status-window h2 {
    margin: 0 0 8px;
    font-size: 14px;
    letter-spacing: 0.2em;
}

.command-window ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.command-window li {
    margin-bottom: 4px;
}

/* 右下：ステータスウィンドウ */

.profile-right {/*
    grid-area: right;
    display: flex;
    justify-content: flex-end;*/
    align-items: flex-end;
}

.status-window {
    width: 100%;
/*    max-width: 320px;*/
}

.status-box {
    background: #000;
    border: 2px solid #fff;
    padding: 12px 16px;
    font-family: "MS Gothic", "Osaka-mono", monospace;
    font-size: 13px;
    box-shadow: 0 0 0 2px #222, 0 0 18px rgba(0, 0, 0, 0.9);
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    white-space: pre;
}

.status-row .label {
    min-width: 64px;
    color: #ccc;
}

.status-row .value {
    text-align: right;
    flex: 1;
    color: #fff;
}

/* レスポンシブ（縦長画面・スマホ） */

@media (max-width: 768px) {
    .profile-layout {
        grid-template-areas:
            "top"
            "right"
            "left";
        grid-template-columns: 1fr;
    }

    .profile-right {
        justify-content: center;
    }

    .status-window {
        max-width: 100%;
    }
}