/* ==========================================================================
   Red Eagles - メンバー紹介ページスタイル
   ========================================================================== */

/* === メンバー紹介ページ専用スタイル === */

/* セクションコンテナ（インラインスタイル置換） */
.member-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.member-section-container-medium {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}
.member-section-container-small {
    max-width: 300px;
    margin: 0 auto;
}

/* セクション見出し */
.member-section-title {
    color: var(--re-primary);
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    position: relative;
}
.member-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--re-primary);
}

/* メンバーカードグリッド */
.member-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}
/* サポーターセクションのみカード高さを個別に */
#supporter .member-grid {
    align-items: start !important;
}
/* WordPressのwpautopによる空pタグを非表示 */
.member-grid > p:empty,
.member-grid > p > br,
.member-grid > br {
    display: none !important;
}
.member-grid > p {
    display: none !important;
}
/* カード内の空pタグも非表示 */
.member-card > p:empty,
.member-card > p:not([class]) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
@media (min-width: 1200px) {
    .member-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .member-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 単一カード（監督・コーチ用） */
.member-single-card {
    display: flex;
    justify-content: center;
}
.member-single-card .member-card {
    max-width: 280px;
    width: 100%;
}

/* メンバーカード */
.member-card {
    background: var(--re-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--re-primary) 0%, var(--re-primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.member-card:hover::before {
    opacity: 1;
}

/* メンバー写真 */
.member-photo {
    display: block;
    width: 130px;
    height: 173px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 背番号 */
.member-number {
    display: block;
    color: var(--re-primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    background: rgba(204,0,0,0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* キャプテンマーク */
.member-captain {
    position: relative;
}
.member-captain::after {
    content: 'C';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    color: #333;
    font-weight: 900;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* メンバー名 */
.member-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--re-gray-900);
    margin: 0.5rem 0 0.25rem;
}
.member-name-roman {
    color: var(--re-gray-600);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

/* 一言コメント */
.member-quote {
    font-size: 0.9rem;
    color: var(--re-gray-900);
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    line-height: 1.6;
    font-style: italic;
}
.member-quote::before {
    content: '"';
    color: var(--re-primary);
    font-size: 1.2rem;
    margin-right: 2px;
}
.member-quote::after {
    content: '"';
    color: var(--re-primary);
    font-size: 1.2rem;
    margin-left: 2px;
}

/* 募集中プレースホルダーリンク */
.member-placeholder-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.member-placeholder-link:hover,
.member-placeholder-link:focus {
    color: inherit;
    text-decoration: none;
}
.member-placeholder-link:focus-visible .member-placeholder {
    outline: 3px solid var(--re-white);
    outline-offset: 3px;
}

/* 募集中プレースホルダー */
.member-placeholder {
    background: linear-gradient(135deg, var(--re-primary) 0%, var(--re-primary-dark) 100%);
    border-radius: 12px;
    color: var(--re-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.member-placeholder:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(204,0,0,0.3);
}
.member-placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    line-height: 1;
}
.member-placeholder-text {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.member-placeholder-sub {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* 名誉選手カード */
.honorary-card {
    background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
    border-left: 4px solid #c9a227;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}
.honorary-card:hover {
    box-shadow: 0 4px 20px rgba(201,162,39,0.2);
}
.honorary-photo {
    width: 130px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}
.honorary-info {
    flex: 1;
}
.honorary-number {
    color: #8b7318; /* コントラスト改善: #c9a227 → #8b7318 (4.5:1以上確保) */
    font-weight: 700;
    font-size: 0.95rem;
}
.honorary-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--re-gray-900);
    margin: 0.25rem 0;
}
.honorary-name-roman {
    color: var(--re-gray-600);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.honorary-description {
    font-size: 0.95rem;
    color: var(--re-gray-900);
    line-height: 1.7;
}
@media (max-width: 600px) {
    .honorary-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
}

/* セクション背景色の交互配置（フルワイド化） */
.member-section-white,
.member-section-alt {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 3rem 0;
}
.member-section-white {
    background: var(--re-white);
}
.member-section-alt {
    background: var(--re-gray-100);
}

/* スタッフ/サポーターの小さめカード */
.member-card-small .member-photo {
    width: 110px;
    height: 88px;
}
.member-photo-auto {
    height: auto !important;
}

/* 写真なしメンバー用プレースホルダー */
.member-photo-placeholder {
    background: linear-gradient(135deg, var(--re-gray-200) 0%, var(--re-gray-100) 100%);
    border-radius: 8px;
    width: 110px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px dashed var(--re-gray-200);
}
/* 選手セクション: 実写真と同サイズに */
#players .member-photo-placeholder {
    width: 130px;
    height: 173px;
}
.member-photo-placeholder-icon {
    width: 40px;
    height: 40px;
    color: var(--re-gray-600);
    fill: var(--re-gray-600);
    opacity: 0.6;
}
/* サポーター用プレースホルダーアイコン（スタッフと同じ） */
.member-card.member-card-supporter .member-photo-placeholder-icon {
    width: 40px;
    height: 40px;
}

/* サポーター用（コメントなし、コンパクト） */
.member-card.member-card-supporter {
    padding: 0.8rem !important;
}
.member-card.member-card-supporter .member-photo,
.member-card.member-card-supporter .member-photo-placeholder {
    width: 110px !important;
    height: 88px !important;
    margin-bottom: 0.5rem !important;
}
.member-card.member-card-supporter .member-name {
    font-size: 1rem !important;
    margin: 0.3rem 0 0.2rem !important;
}
.member-card.member-card-supporter .member-name-roman {
    font-size: 0.75rem !important;
    margin-bottom: 0 !important;
}
/* サポーター募集プレースホルダー（コンパクト） */
#supporter .member-placeholder {
    min-height: auto !important;
    padding: 1rem !important;
}
#supporter .member-placeholder-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
}
#supporter .member-placeholder-text {
    font-size: 1rem !important;
}
#supporter .member-placeholder-sub {
    font-size: 0.8rem !important;
}

.member-card-small .member-quote {
    font-size: 0.85rem;
}

/* スクロールアニメーション */
@media (prefers-reduced-motion: no-preference) {
    .member-card,
    .honorary-card,
    .member-placeholder {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    }
    .member-card.animate-in,
    .honorary-card.animate-in,
    .member-placeholder.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
    .member-card:hover,
    .member-placeholder:hover {
        transform: translateY(-6px);
    }
}

