/* --- 背景：より「設計図」や「デスクトップ」を感じさせる質感 --- */
body {
    background-color: #f0f2f5;
    /* 極薄のドットパターンで「凝ってる感」を演出 */
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 30px 30px;
    margin: 0;
}

/* --- 個別のプロフィールセクション（独立した枠） --- */
.profile-section {
    max-width: 900px;
    margin: 0 auto 150px; /* カード同士の間隔をさらに広げて独立させる */
    position: relative;
    padding-left: 40px; /* 左側のラベル用の余白 */
}

/* 左側の縦書きラベル（これがデザインの「凝り」ポイント） */
.profile-section::before {
    content: "MEMBER PROFILE";
    position: absolute;
    left: 0;
    top: 20px;
    writing-mode: vertical-rl; /* 縦書き */
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: #bbb;
    transform: rotate(180deg);
}

/* プロフィールカード本体（箱） */
.profile-card {
    background: #ffffff;
    border: 1px solid #1a1a1a;
    padding: 60px;
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    
    /* 影：単なる影ではなく、もう一枚の板が重なっているように見せる */
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ホバー時のダイナミックな動き */
.profile-section:hover .profile-card {
    transform: translate(-4px, -4px);
    box-shadow: 20px 20px 0px var(--accent-color, #ff4d6d);
    border-color: var(--accent-color, #ff4d6d);
}

/* --- プロフィール画像（枠に合わせたシャープなデザイン） --- */
.profile-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #1a1a1a;
    background: #f9f9f9;
    padding: 10px; /* 写真をさらに枠で囲む「額縁」効果 */
}

/* --- テキストエリア --- */
.profile-name {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    position: relative;
}

/* 名前の下にアクセントのバー */
.profile-name::after {
    content: "";
    display: block;
    width: 40px;
    height: 6px;
    background: var(--accent-color, #ff4d6d);
    margin-top: 10px;
}

.profile-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

/* リスト：タグ・チップ風（profile/*.php 内にある場合） */
.profile-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.profile-list li {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px;
    border: 1px solid #1a1a1a;
    background: #fff;
}

/* --- スクロールアニメーション（js-scroll-trigger） --- */
.js-scroll-trigger {
    opacity: 0;
    transform: translateX(-30px); /* 横からスッと入ってくる動きに変更 */
    transition: opacity 1.2s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-scroll-trigger.is-active {
    opacity: 1;
    transform: translateX(0);
}

/* スマホ対応：レイアウトを崩さず縦に積む */
@media (max-width: 800px) {
    .profile-section {
        padding-left: 0;
    }
    .profile-section::before {
        display: none;
    }
    .profile-card {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        gap: 30px;
    }
    .profile-name::after {
        margin: 10px auto 0;
    }
    .profile-list {
        justify-content: center;
    }
}