*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-basic: #29a4db;
    --orange-mid: #EA5A24;
    --orange-light: #EE7D53;
    --orange-pale: #FFF0EB;
    --accent: #EA5A24;
    --gold: #c8973a;
    --text-basic: #333333;
    --border: #E8E0DC;
    --bg: #ebe6e4;

}

/* ========== NUMBERS BAND ========== */
.numbers-band {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.numbers-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* リンクなし版 num-item */
.num-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
    display: block;
}

.num-item:last-child {
    border-right: none;
}

.num-badge {
    font-size: 20px;
    font-weight: 700;
    color: var(--orange-mid);
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.num-val {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.num-val span {
    font-weight: 700;
    color: var(--text-basic);
    font-size: 18px;
}

.num-desc {
    font-size: 14px;
    color: var(--text-basic);
    margin-top: 4px;
    line-height: 1.5;
}

.sec_eyebrow {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    font-style: italic;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 2px;
    letter-spacing: .1em;
}

.sec_eyebrow::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    vertical-align: middle;
    margin-left: 4px;
}

.sec_title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-basic);
    margin-bottom: 8px;
    margin-top: 16px;
    line-height: 1.4;
}

.sec_lead {
    font-size: 14px;
    color: var(--text-basic);
    margin-bottom: 32px;
    line-height: 1.8;
}

.divider {
    height: 1px;
    background: var(--border);
    max-width: 860px;
    margin: 0 auto;
}

/* ========== CATCH BAND ========== */
.catch-band {
    /*background: var(--orange-pale);
  border-top: 1px solid var(--border);*/
    border-bottom: 1px solid var(--border);
    padding: 40px 48px;
    margin-bottom: 40px;
}

.catch-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.catch-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.catch-text strong {
    display: block;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
}

.catch-text p {
    color: var(--text-basic);
    line-height: 1.5;
}

/* ========== 比べてみて！ ========== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    /*font-size: 14px*/
}

.compare-table th {
    background: var(--bg);
    padding: 14px 18px;
    font-weight: 700;
    /*font-size: 12px;*/
    color: var(--text-sub);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.compare-table th.ippan {
    background: var(--bg);
    color: var(--text-basic)
}

.compare-table th.ours {
    background: var(--blue-basic);
    color: #FFF;
}

.compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.compare-table td.label {
    text-align: left;
    font-weight: 600;
    /*font-size: 13px;*/
    color: var(--text-basic);
    background: var(--bg);
}

.compare-table td.ours {
    background: #FFF0EB;
    color: var(--text);
    font-weight: 700;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.tag-best {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 0;
    margin-left: 6px;
    vertical-align: middle;
}

@media (max-width: 768px) {

    /* テーブルをブロック表示に切り替え */
    .compare-table thead {
        display: none;
        /* ヘッダーを非表示 */
    }

    .compare-table tr {
        display: block;
        border-bottom: 2px solid var(--border);
        /*padding: 12px 0;*/
    }

    .compare-table th,
    .compare-table td {
        display: block;
        text-align: left;
        padding: 12px 10px;
        border-bottom: none;
        font-size: 14px;
    }

    /* 比較項目ラベルを見出し風に */
    .compare-table td.label {
        font-size: 14px;
        font-weight: 700;
        background: var(--bg);
        color: var(--text-basic);
        /*background: none;*/
        /*padding-bottom: 2px;*/
    }

    /* 外旭川病院の列を強調 */
    .compare-table td.ours {
        font-size: 16px;
        font-weight: 700;
    }

    .tag-best {
        display: inline-block;
        margin-left: 6px;
        margin-top: 0;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .tag-best {
        font-size: 10px;
    }
}

/* ========== SALARY SECTION ========== */
.salary-block {
    border-radius: 0;
    padding: 32px;
    margin-bottom: 24px;
    background-color: var(--orange-pale);
}

.salary-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.salary-main .val {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.salary-main .unit {
    font-size: 32px;
    color: var(--accent);
}

.salary-note {
    color: var(--text);
    margin-bottom: 20px;
}

.salary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.salary-item {
    background: rgba(255, 255, 255, 1);
    border-radius: 0;
    padding: 16px;
    text-align: center;
}

.salary-item .s-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
}

.salary-item .s-label {
    /*font-size: 12px;*/
    color: var(--text);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-img-wrap {
        display: none;
    }

    .numbers-inner {
        grid-template-columns: 1fr 1fr;
    }

    .num-item:nth-child(1) {
        border-bottom: 1px solid var(--border);
    }

    .num-item:nth-child(2) {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .catch-inner {
        grid-template-columns: 1fr;
    }

    .shift-grid {
        grid-template-columns: 1fr;
    }

    .welfare-grid {
        grid-template-columns: 1fr 1fr;
    }

    .photo-strip {
        grid-template-columns: 1fr 1fr;
    }

    .salary-grid {
        grid-template-columns: 1fr;
    }

    .job-selector-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero,
    .catch-band,
    .cta-section,
    .section,
    .job-selector {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .salary-main {
        display: flex;
        flex-wrap: wrap;
    }

    .salary-main .val {
        font-size: 24px;
        font-weight: 700;
        color: var(--accent);
        margin-top: 10px;
        line-height: 1;
    }

    .salary-main .unit {
        font-size: 24px;
        color: var(--accent);
        float: none;
        width: 100%;
        margin-top: 0px;
    }
}