@charset "utf-8";
/*
Theme Name: ISF NET
Version: 20260611
Author URI: https://www.isfnet.co.jp/sustainability/employee_health.html
*/


.health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 1.5rem;
}

.health-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.health-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border-color: #93c5fd;
}

.health-card-badge {
    align-self: flex-start;
    background-color: #eff6ff;
    color: #1e40af;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.health-card-date {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
    display: block;
}

.health-card-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.45;
    margin: 0 0 12px 0;
    min-height: 46px; /* 異なるタイトル文字数でも高さを揃えるための最小値 */
}

.health-card-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1; /* 枠内の文章量が異なってもボタンを最下部で自動整列 */
}

.health-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.health-link {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: #00125E;
    text-decoration: none;
    border: 1px solid #00125E;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    background-color: transparent;
}

.health-link:hover {
    background-color: #00125E;
    color: #ffffff;
}

/* ==========================================
   レスポンシブデザイン（ブレイクポイント）
   ========================================== */

@media (max-width: 1024px) {
    .health-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .health-card-title {
        min-height: auto;
    }
}

/* スマートフォン端末（1カラムの縦並びに切り替え） */
@media (max-width: 640px) {
    .health-grid {
        grid-template-columns: 1fr;
    }
    .health-card {
        padding: 20px;
    }
}