/* ===================================
   福利厚生・社内制度
   デザイン：シンプル・洗練・統一感
=================================== */

:root {
    --primary-blue: #0077b6;
    --accent-blue: #0096c7;
    --dark-navy: #0f172a;
    --text-main: #334155;
    --text-sub: #64748b;
    --border-light: #e2e8f0;
    --bg-light: #f8fafc;
}

/* -----------------------------------
   共通
----------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------
   Main要素の最初の子要素にマージン
----------------------------------- */
.benefits-page > section:first-child {
    margin-top: 80px !important;
}

/* -----------------------------------
   ページヒーロー（ページ固有スタイル）
----------------------------------- */
.page-hero-benefits {
    margin-top: 0 !important;
}

.page-hero-benefits .page-hero-bg img {
    object-position: center center;
}

/* -----------------------------------
   Intro Section
----------------------------------- */
.section-intro {
    padding: 100px 0 80px;
    background: #ffffff;
    text-align: center;
}

.intro-lead {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 700;
    line-height: 2;
    color: var(--dark-navy);
}

.intro-lead span { 
    color: var(--primary-blue);
}

/* -----------------------------------
   Benefits Grid Section
----------------------------------- */
.section-benefits-grid {
    padding: 80px 0 120px;
    background: var(--bg-light);
}

/* セクションヘッダー */
.benefits-header-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.benefits-header {
    display: inline-block;
}

.benefits-label {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 12px;
}

.benefits-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 900;
    color: var(--dark-navy);
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 20px;
}

.benefits-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
}

.benefits-lead {
    font-size: 1rem;
    color: var(--text-sub);
    margin-top: 20px;
}

/* グリッドレイアウト */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* カードスタイル */
.benefit-card {
    background: #ffffff;
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* カードアイコン */
.benefit-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.1) 0%, rgba(0, 150, 199, 0.1) 100%);
    border-radius: 16px;
    color: var(--primary-blue);
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

/* 複数アイコン */
.benefit-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.benefit-icons img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

/* 3つアイコンレイアウト */
.benefit-icons-3 {
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.benefit-icons-row1 {
    display: flex;
    justify-content: center;
}

.benefit-icons-row2 {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* カードイラスト */
.benefit-illustration {
    width: 120px;
    height: auto;
    margin-bottom: 16px;
}

.benefit-illustration img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* カードナンバー */
.benefit-number {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.benefit-header {
    margin-bottom: 20px;
}

.benefit-group-label {
    display: none;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1.5;
}

.benefit-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.benefit-item {
    position: relative;
    padding-left: 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-main);
}

.benefit-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 2px;
    background: var(--primary-blue);
}

/* 偶数カード（互い違い背景） */
.benefit-card:nth-child(even) {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: #ffffff;
}

.benefit-card:nth-child(even) .benefit-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.benefit-card:nth-child(even) .benefit-number {
    color: rgba(255, 255, 255, 0.7);
}

.benefit-card:nth-child(even) .benefit-title,
.benefit-card:nth-child(even) .benefit-item {
    color: #ffffff;
}

.benefit-card:nth-child(even) .benefit-item::before {
    background: rgba(255, 255, 255, 0.7);
}

/* メッセージカード */
.benefit-card.benefit-message {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.benefit-message-text {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.8;
    color: #ffffff;
    letter-spacing: 0.05em;
}

/* -----------------------------------
   Responsive
----------------------------------- */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    
    .hero-display-title {
        font-size: 1.75rem;
    }
    
    .section-intro {
        padding: 80px 0 60px;
    }
    
    .intro-lead {
        font-size: 1.0625rem;
        line-height: 1.9;
    }
    
    .section-benefits-grid {
        padding: 60px 0 80px;
    }
    
    .benefits-header-wrapper {
        margin-bottom: 40px;
    }
    
    .benefits-title {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefit-card {
        padding: 32px 24px;
    }
    
    .benefit-title {
        font-size: 1.125rem;
    }
}
