/* =========================================
   運営詳細ページ (Staff Detail)
   ========================================= */
.staff-detail-container {
    max-width: 950px;
    margin: 40px auto;
}

.staff-hero {
    text-align: center;
    margin-bottom: 50px;
}

.staff-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--primary-color);
    background: rgba(230, 126, 34, 0.08);
    border: 1px solid rgba(230, 126, 34, 0.25);
    padding: 4px 14px;
    margin-bottom: 16px;
}
.staff-hero-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--primary-color);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.text-primary-color {
    color: var(--primary-color);
}

.staff-role-lead {
    font-size: 1.1rem;
    color: var(--light-text);
    letter-spacing: 1px;
}

/* 役職チップ（詳細ヒーロー） */
.staff-hero-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.role-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 12px;
    border-radius: 2px;
    white-space: nowrap;
}
.role-chip--lead {
    background: var(--primary-color);
    color: #fff;
}
.role-chip--sub {
    background: #eef1f4;
    color: #45525c;
    border: 1px solid #dde3e8;
}

/* レイアウト：左にカード、右に本文 */
.staff-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* 左側：プロフィールカード共通設定 */
.staff-info-card {
    position: relative;
    background: #fdfcfa;
    border-radius: 6px;
    padding: 34px 30px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #ecebe7;
    border-left: 4px solid var(--primary-color);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}
.staff-info-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 1.5px, transparent 1.5px 6px);
}

/* 【重要】PCでのみ固定、スマホでは解除 */
@media (min-width: 851px) {
    .staff-info-card {
        position: sticky;
        top: 20px;
        z-index: 10;
    }
}

.staff-visual {
    text-align: center;
    margin-bottom: 25px;
    /* 子要素を中央に寄せるための設定 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-large-icon {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    object-fit: cover;
    border: 5px solid #fff3e0;
    margin-bottom: 15px;
}

.staff-status {
    display: inline-block;
    background: #2b2b2b;
    color: #fff;
    padding: 5px 16px;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;

    /* 中央配置を確実にするための設定 */
    margin: 0 auto;
    width: fit-content;
}
.staff-status::before {
    content: "● ";
    color: #4caf6a;
}

/* 右側：メインコンテンツ */
.staff-content-body {
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.content-block h3 {
    font-size: 1.3rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.content-block h3:first-child {
    margin-top: 0;
}

/* 引用メッセージボックス */
.message-quote-box {
    margin-top: 40px;
    background: #fff9f5;
    padding: 30px;
    border-radius: 20px;
    border-right: 5px solid var(--primary-color);
    position: relative;
}

.quote-author {
    margin: 0 0 10px 0;
    color: #e67e22;
    font-size: 1.1rem;
}

/* =========================================
   レスポンシブ (詳細ページ)
   ========================================= */
@media (max-width: 850px) {
    .staff-main-layout {
        grid-template-columns: 1fr;
    }
    
    .staff-info-card {
        max-width: 500px;
        margin: 0 auto 30px;
        position: relative !important; /* 強制的に固定解除 */
        top: 0 !important;
    }

    .page-title {
        font-size: 2rem;
    }
    
    .staff-content-body {
        padding: 30px 20px;
    }
}

/* =========================================
   詳細ページ用 ナビゲーションボタン
   ========================================= */
.button-area-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    min-width: 160px;
}

.btn-primary-nav {
    background: var(--primary-color);
    color: white !important;
    border: 2px solid var(--primary-color);
}

.btn-primary-nav:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline-nav {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

@media (max-width: 600px) {
    .button-area-flex {
        flex-direction: column;
        gap: 10px;
    }
    .btn-nav {
        width: 100%;
        min-width: auto;
    }
    .btn-outline-nav {
        order: 3;
    }
}

/* =========================================
   プロフィールカードの視認性向上（装飾）
   ========================================= */
.staff-data-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.staff-data-list dt {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.staff-data-list dt::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
}

.staff-data-list dd {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-left: 0;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.staff-data-list dd:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.staff-data-list dt:last-of-type + dd {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 700;
}

/* SNSエリア全体のコンテナ */
.staff-sns-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed rgba(230, 126, 34, 0.2);
    text-align: center;
}

.sns-label {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--light-text);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

/* リンクを並べるエリア */
.staff-sns-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* 数が多くなっても折り返せるように */
}

/* 各アイコンのスタイル */
.sns-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid #f0ede9;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.sns-icon-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    /* アイコンの色をテキストカラーに合わせる（黒系アイコンの場合） */
    opacity: 0.7; 
    transition: 0.3s;
}

/* ホバー時の演出：少し浮き上がって色をハッキリさせる */
.sns-icon-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.15);
}

.sns-icon-link:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* 特定のSNSでホバー色を変えたい場合のオプション */
.sns-icon-link.discord:hover { 
    background-color: #5865F2; 
    border-color: #5865F2; 
}
.sns-icon-link.twitter:hover { 
    background-color: #000; 
    border-color: #000; 
}
.sns-icon-link.discord:hover img, 
.sns-icon-link.twitter:hover img { 
    filter: brightness(0) invert(1); 
}


/* =========================================
   ローディング画面 (Loading Screen)
   ========================================= */
.loading-full-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* フェードアウト */
.loading-full-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

/* 上：HAKONIWA CRAFT */
.loading-5 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-bottom: 20px;
}

.loading-5 span {
    display: inline-block;
    color: var(--primary-orange, #ff8c00);
    font-weight: 700;
    font-size: 3rem;
    animation: animation-loading-5 1s infinite ease-in-out;
}

/* 文字スマホ用変更 */
@media (max-width: 600px) {
    .loading-5 span {
        font-size: 2rem;
    }
}

/* スペースの幅調整 */
.loading-5 span.loading-space {
    width: 1rem;
    animation: none; /* スペースは動かさない */
}

/* アニメーションの遅延（1文字ずつずらす - nth-childに統一し空白要素を考慮） */
.loading-5 span:nth-child(1) { animation-delay: 0.0s; }
.loading-5 span:nth-child(2) { animation-delay: 0.1s; }
.loading-5 span:nth-child(3) { animation-delay: 0.2s; }
.loading-5 span:nth-child(4) { animation-delay: 0.3s; }
.loading-5 span:nth-child(5) { animation-delay: 0.4s; }
.loading-5 span:nth-child(6) { animation-delay: 0.5s; }
.loading-5 span:nth-child(7) { animation-delay: 0.6s; }
.loading-5 span:nth-child(8) { animation-delay: 0.7s; }
/* 9番目の「.loading-space」はanimation: noneが適用される */
.loading-5 span:nth-child(10) { animation-delay: 0.8s; }
.loading-5 span:nth-child(11) { animation-delay: 0.9s; }
.loading-5 span:nth-child(12) { animation-delay: 1.0s; }
.loading-5 span:nth-child(13) { animation-delay: 1.1s; }
.loading-5 span:nth-child(14) { animation-delay: 1.2s; }

@keyframes animation-loading-5 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}