:root {
    --pressio-red: #e60020;
    --text: #222;
    --line: #d8d8d8;
    --placeholder: #bdbdbd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: #ffffff;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    line-height: 1.9;
}

.recruit-page {
    background-color: #fff;
    padding-top: 80px;
}

.main {
    padding: 16px 0 32px;
    min-height: 0;
}

.recruit-page .foot_contact {
    background: #d21d22 !important;
    background-image: none !important;
}

.message-page h1,
.message-page h2,
.message-page h3,
.message-page p {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

.message-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 0 48px;
}

.breadcrumb {
    margin-bottom: 26px;
    font-size: 12px;
    color: #7d7d7d;
}

.page-title {
    margin: 0 0 50px;
    color: #000;
    font-weight: 400;
    font-size: 25px;
    letter-spacing: 2px;
    line-height: 1.4;
    padding-bottom: 5px;
    border-bottom: 2px solid #d21d22;
}

.hero-block {
    margin-bottom: 60px;
    text-align: center;
}

.image-placeholder {
    width: 100%;
    background: var(--placeholder);
    border: none;
    display: block;
}

.hero-image {
    width: 640px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.caption {
    margin-top: 10px;
    font-size: 12px;
    color: #555;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.message-section {
    margin-top: 26px;
}

.section-title {
    margin: 0 0 30px;
    color: #000;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 1.6;
    padding: 20px 0 5px;
    border-bottom: 2px solid #d21d22;
}

.sp-title-break {
    display: none;
}

.section-subtitle {
    margin: 24px 0;
    position: relative;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    padding: 0 0 0 20px;
}

.recruit-page .section-subtitle {
    margin: 24px 0;
}

.section-subtitle::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    background: #d21d22;
    width: 5px;
    height: 20px;
}

.text-with-image {
    display: grid;
    grid-template-columns: 1fr 378px;
    gap: 28px;
    align-items: start;
    margin-bottom: 24px;
}

.text-with-image.reverse {
    grid-template-columns: 378px 1fr;
}

.text-with-image.reverse .message-copy {
    order: 2;
}

.text-with-image.reverse .side-image {
    order: 1;
}

.side-image {
    width: 378px;
    max-width: 100%;
    height: auto;
    margin-top: 6px;
}

.message-copy p {
    margin: 0 0 16px;
    font-size: 14px;
    text-align: justify;
    line-height: 1.9;
}

.message-section:last-child .message-copy:last-child p:last-child {
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .message-page {
        padding: 18px 20px 48px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 20px;
    }

    .message-copy p {
        font-size: 14px;
    }

    .text-with-image,
    .text-with-image.reverse {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .text-with-image.reverse .message-copy,
    .text-with-image.reverse .side-image {
        order: unset;
    }

    .side-image {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .recruit-page {
        padding-top: 64px;
    }

    .page-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .sp-title-break {
        display: block;
    }

    .section-subtitle {
        font-size: 20px;
    }

    .section-subtitle::after {
        height: 16px;
        top: 2px;
    }

    .message-section {
        display: flex;
        flex-direction: column;
    }

    .message-section>* {
        order: 10;
    }

    .message-section>.section-title {
        order: 1;
    }

    .message-section>.section-subtitle:first-of-type {
        order: 3;
    }

    .message-section .text-with-image {
        display: contents;
    }

    .message-section .text-with-image>.side-image {
        order: 2;
        margin: 0;
    }

    .message-section .text-with-image>.message-copy {
        order: 4;
    }
}