.custom-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* =====================================
   Section Styles
   ===================================== */
.custom-declaration {
    padding: 15px;
    border: 2px solid #ccc;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: justify;
}

.custom-signature {
    text-align: right;
    font-weight: bold;
}

.custom-message-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-message-text {
    width: 65%;
    font-size: 1.2em;  /* メッセージ部分の文字サイズを大きく */
}

.custom-message-image {
    width: 30%;
    text-align: right;
}

.custom-message-image img {
    max-width: 100%;
    border-radius: 5px;
}

/* =====================================
   Responsive Styles
   ===================================== */
@media (max-width: 768px) {
    .custom-message-content {
        flex-direction: column;
        text-align: center;
    }
    .custom-message-text,
    .custom-message-image {
        width: 100%;
    }
    .custom-message-image {
        margin-top: 10px;
    }
}

/* =====================================
   健康経営推進体制図 & 関連セクション
   ===================================== */
.custom-structure {
    text-align: center;
    margin: 20px 0;
}

.custom-structure img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 5px;
}

/* =====================================
   健康経営推進体制と役割のテーブル
   ===================================== */
.custom-roles table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    margin-top: 10px;
}

.custom-roles th,
.custom-roles td {
    width: 50%;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    border-radius: 5px;
}

.custom-roles th {
    background-color: #f2f2f2;
    vertical-align: middle;  /* ヘッダーセルを上下中央寄せ */
}

.custom-roles .custom-gray-background {
    background-color: #e6e6e6;
}

/* =====================================
   健康診断目標値表専用のCSS（取り組み状況）
   ===================================== */
.health-table {
    border-collapse: collapse;
    width: 100%;
}

.health-table td {
    border: 1px solid #000;
    padding: 8px;
    text-align: center; /* 初期設定は中央寄せ */
    vertical-align: middle; /* 垂直方向の中央寄せ */
}

.health-table tbody td:nth-child(2) {
    text-align: left;
}

.health-table tbody tr:first-child td {
    background-color: #006400; /* 濃いめの緑 */
    color: #fff;
    font-weight: bold;
    vertical-align: middle; /* 垂直方向の中央寄せ */
    text-align: center;     /* 水平方向の中央寄せ */
}

.health-table tbody tr:not(:first-child) td:first-child {
    background-color: #cfc; /* 薄めの緑 */
}


/* =====================================
   健康経営戦略マップ（リンク）
   ===================================== */
.custom-strategy-map a {
    color: #497a1d;  
    text-decoration: none;   /* 下線を消す（必要に応じて） */
    position: relative;
    padding-left: 20px;      /* アイコン分のスペースを確保 */
    font-weight: bold;       /* 太字にする（任意） */
}

.custom-strategy-map a::before {
    content: "▶";            /* アイコンとして▶を表示 */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #497a1d;             /* アイコンの色も青に */
}

@media (max-width: 768px) {
    .custom-message-text {
        text-align: left;     /* スマホ時は左寄せ */
    }
}