/**
 * Consultant Styles - Style 2: Inset Square (内包・角丸)
 * コンサルタント紹介機能のスタイル（横長レイアウト、内包型）
 *
 * @package CIW-Construction
 */

/* =========================================================================
   アーカイブページ: ヒーローセクション
   ========================================================================= */

.consultant-hero {
    background-color: #f9f9f9;
    background-image:
        linear-gradient(rgba(45, 74, 67, 0.06) 1px, transparent 1px),
        linear-gradient(to right, rgba(45, 74, 67, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    padding: 120px 0 112px;
    text-align: center;
    border-bottom: 1px solid #e7e7e7;
}

.consultant-hero .archive-hero-kicker {
    font-size: 11px;
    color: var(--secondary-dark);
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.consultant-hero .archive-hero-kicker::before,
.consultant-hero .archive-hero-kicker::after {
    content: '';
    width: 24px;
    height: 1px;
    background: #C0A375;
}

.consultant-hero .archive-hero-title {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.65;
    color: #2D4A43;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.consultant-hero .archive-hero-subtitle {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 2;
    margin: 0 auto;
    max-width: 680px;
}

/* =========================================================================
   アーカイブページ: グリッドレイアウト
   ========================================================================= */

.consultant-layout-wrapper {
    padding: 80px 0;
    background: #fff;
}

.consultant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* =========================================================================
   コンサルタントカード: 横長レイアウト（Inset Square - 内包・角丸）
   ========================================================================= */

.consultant-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.consultant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 画像エリア（正方形、固定サイズ） */
.consultant-image-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.consultant-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.consultant-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e7e7e7 100%);
    color: #6e6e6e;
}

/* 情報エリア */
.consultant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; /* flexboxでのテキスト省略を有効化 */
}

.consultant-position {
    font-size: 11px;
    color: var(--secondary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.consultant-name {
    font-size: 18px;
    font-weight: 700;
    color: #2D4A43;
    margin: 0;
    line-height: 1.4;
}

.consultant-name-en {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #6e6e6e;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

/* タグエリア */
.consultant-tags-wrapper {
    margin-top: 4px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.tag-row:first-child {
    margin-top: 0;
}

.tag-label {
    font-size: 10px;
    color: #6e6e6e;
    font-weight: 700;
    letter-spacing: 0.05em;
    width: 100%; /* 改行させる */
    margin-bottom: 4px;
}

.badge {
    display: inline-block;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap;
    font-weight: 500;
}

.badge.industry {
    background: #E8F4F8;
    color: #2D4A43;
    border: 1px solid #D0E8F0;
}

.badge.occupation {
    background: #FFF4E6;
    color: #B99769;
    border: 1px solid #FFE8C8;
}

/* =========================================================================
   フロントページ: スライダーセクション
   ========================================================================= */

.consultant-section {
    background: #f9f9f9;
    padding: 80px 0;
}

.consultant-slider-container {
    max-width: 100%;
    padding: 0;
}

.consultant-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    margin-bottom: 40px;
}

.consultant-slider-track {
    display: flex;
    gap: 24px;
    animation: consultant-scroll 60s linear infinite;
    will-change: transform;
}

.consultant-slider-track:hover {
    animation-play-state: paused;
}

@keyframes consultant-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.consultant-slider-item {
    flex: 0 0 auto;
    width: 380px;
}

.consultant-slider-item .consultant-card {
    height: 100%;
}

/* CTA ボタン */
.consultant-cta {
    text-align: center;
}

/* メッセージ */
.no-consultants-message {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    font-size: 16px;
}

/* =========================================================================
   レスポンシブ: タブレット
   ========================================================================= */

@media (max-width: 968px) {
    .consultant-hero {
        padding: 80px 0 72px;
        background-size: 40px 40px;
    }

    .consultant-hero .archive-hero-title {
        font-size: 32px;
    }

    .consultant-hero .archive-hero-subtitle {
        font-size: 14px;
    }

    .consultant-hero .archive-hero-kicker {
        font-size: 10px;
        gap: 8px;
        margin-bottom: 24px;
    }

    .consultant-hero .archive-hero-kicker::before,
    .consultant-hero .archive-hero-kicker::after {
        width: 16px;
    }

    .consultant-layout-wrapper {
        padding: 60px 0;
    }

    /* タブレット: 1列表示 */
    .consultant-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .consultant-section {
        padding: 60px 0;
    }

    .consultant-slider-item {
        width: 360px;
    }

    .consultant-image-wrapper {
        width: 100px;
        height: 100px;
    }

    .consultant-card {
        padding: 14px;
        gap: 14px;
    }

    .consultant-name {
        font-size: 17px;
    }
}

/* =========================================================================
   レスポンシブ: モバイル
   ========================================================================= */

@media (max-width: 640px) {
    .consultant-hero {
        padding: 60px 0;
        background-size: 30px 30px;
    }

    .consultant-hero .archive-hero-title {
        font-size: 26px;
    }

    .consultant-hero .archive-hero-subtitle {
        font-size: 13px;
        padding: 0 20px;
    }

    .consultant-layout-wrapper {
        padding: 40px 0;
    }

    /* モバイル: 1列表示 */
    .consultant-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .consultant-card {
        padding: 12px;
        gap: 12px;
    }

    .consultant-image-wrapper {
        width: 80px;
        height: 80px;
    }

    .consultant-position {
        font-size: 10px;
    }

    .consultant-name {
        font-size: 16px;
    }

    .consultant-name-en {
        font-size: 11px;
    }

    .tag-label {
        font-size: 9px;
    }

    .badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .consultant-section {
        padding: 40px 0;
    }

    .consultant-slider-wrapper {
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .consultant-slider-track {
        gap: 16px;
    }

    .consultant-slider-item {
        width: 300px;
    }
}
