/* ===== PILLARS ===== */
.pillars { background: var(--bg-light); }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCは強制的に2列！ */
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* ▼ カード本体（画像入りバージョン） ▼ */
.pillar {
    background: var(--white);
    padding: 0; /* 画像を端まで広げるために0にする */
    border-radius: 8px;
    border-top: 4px solid var(--accent); /* 赤いラインを太くして強調 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden; /* 画像が角丸をはみ出さないようにする */
    /* ホバー時の動きは完全に削除！ */
}

/* ▼ 画像エリア ▼ */
.pillar-img {
    width: 100%;
    height: 180px; /* 画像の高さを固定 */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pillar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像が歪まずに枠に収まる魔法 */
    /* ホバー時のズームアニメーションはなし！ */
}

/* ▼ テキストエリア ▼ */
.pillar-content {
    padding: 40px 32px; /* テキスト部分に改めて余白を設定 */
}

.pillar-num {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.pillar h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text);
}

.pillar .en {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
}

.pillar p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.pillar ul {
    list-style: none;
    padding: 0;
    border-top: 1px dashed #ddd;
    padding-top: 20px;
}

.pillar ul li {
    font-size: 13px;
    color: var(--text);
    padding: 8px 0 8px 22px;
    position: relative;
    line-height: 1.6;
}

.pillar ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 12px;
    height: 2px;
    background: var(--accent);
}

/* =========================================
   ▼▼▼ PC時の市松模様（白と黒の高級感） ▼▼▼
========================================= */
@media (min-width: 769px) {
    /* 2番目と3番目のカードをダークテーマにして完璧な市松を作る */
    .pillar:nth-child(2),
    .pillar:nth-child(3) {
        background: var(--primary); /* ダークな背景色 */
        color: var(--white);
        border-top-color: var(--accent-dark);
    }
    
    /* 画像のボーダーも調整 */
    .pillar:nth-child(2) .pillar-img,
    .pillar:nth-child(3) .pillar-img {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    /* ダークカード内の文字色調整 */
    .pillar:nth-child(2) h3,
    .pillar:nth-child(3) h3 {
        color: var(--white);
    }
    
    .pillar:nth-child(2) .en,
    .pillar:nth-child(3) .en {
        color: rgba(255, 255, 255, 0.4);
    }
    
    .pillar:nth-child(2) p,
    .pillar:nth-child(3) p {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .pillar:nth-child(2) ul,
    .pillar:nth-child(3) ul {
        border-top-color: rgba(255, 255, 255, 0.15);
    }
    
    .pillar:nth-child(2) ul li,
    .pillar:nth-child(3) ul li {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* =========================================
   ▼▼▼ スマホ対応（1列に戻す） ▼▼▼
========================================= */
@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    /* スマホの画像高さを少し低く調整 */
    .pillar-img {
        height: 160px;
    }
    /* スマホ時はすべて白カードに戻す場合は、以下のコメントアウトを外す */
    /*
    .pillar:nth-child(2), .pillar:nth-child(3) {
        background: var(--white);
        color: var(--text);
    }
    .pillar:nth-child(2) h3, .pillar:nth-child(3) h3 { color: var(--text); }
    .pillar:nth-child(2) .en, .pillar:nth-child(3) .en { color: var(--text-mute); }
    .pillar:nth-child(2) p, .pillar:nth-child(3) p { color: var(--text-light); }
    .pillar:nth-child(2) ul, .pillar:nth-child(3) ul { border-top-color: #ddd; }
    .pillar:nth-child(2) ul li, .pillar:nth-child(3) ul li { color: var(--text); }
    */
}