/* 共通スタイル */

/* ウェブフォントのインポート */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');

/* body部基本設定 */
body {
    margin: 0;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 16px;
    text-align: center;
}

/* 非表示設定 */
.br-mobile,
.menu,
.menu input,
.dots input,
.section2 .images-mobile,
.pathheader-mobile,
.staff-container .staff-header .h3-mobile {
    display: none;
}

/* 固定ヘッダー */
header {
    height: 120px;
    margin: auto;
    width: 100%;
    position: fixed;
    z-index: 1;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
}

/* ヘッダーナビ */
header nav {
    display: flex;
    justify-content: space-between;
    color: #004EA2;
    max-width: 1920px;
    width: 100%;
}

/* ヘッダーロゴのマージン */
header nav h1 {
    margin: auto;
    margin: auto 60px;
}

/* ロゴ画像の幅 */
header nav h1 img {
    width: 100%;
    display: block;
    margin: auto;
}

/* ヘッダーメニューリスト設定 */
header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    max-width: 875px;
    width: 100%;
    padding-inline-start: 0;
}

/* 各メニューの幅を統一 */
header nav ul li {
    max-width: 175px;
    width: 100%;
}

/* メニューリンク */
header nav ul li a {
    display: flex;
    font-weight: bold;
    width: 175px;
    height: 100%;
    min-height: 120px;
    text-decoration: none;
    color: #004EA2;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* メニューリンクをホバー時に色を反転 */
header nav ul li a:hover {
    color: #FFFFFF;
    background-color: #004EA2;
}

/* 上部の背景画像 */
.section1 {
    background-image: url("../image/form.png");
    background-size: cover;
    background-position-x: center;
    background-position-y: bottom;
    min-height: 990px;
    background-attachment: fixed;
    position: relative;
}

/* 上部画像に網掛け画像をオーバーレイ */
.section1::before {
    background-image: url("../image/hatching.png");
    background-color: rgba(255, 255, 255, .125);
    background-blend-mode: lighten;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    width: 100%;
    height: 100%;
}

/* 上部画像オーバーレイ見出し */
.section1 h2 {
    text-align: center;
    color: #FFFFFF;
    font-size: 65px;
    font-family: "Hiragino Kaku Gothic Pro", 'Noto Sans JP', sans-serif;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    font-weight: normal;
    line-height: 120px;
}

/* フッター */
footer {
    background: linear-gradient(#004EA2, #004690, #002751);
    color: #FFFFFF;
    padding-bottom: 80px;
}

/* フッター営業所名 */
footer h2 {
    font-size: 20px;
    font-weight: normal;
    border-bottom: 16px;
}

/* 問い合わせ先コンテナ */
.contact-container {
    display: flex;
    justify-content: space-between;
    max-width: 1157px;
    margin: auto;
    padding-top: 33.4px;
}

/* 営業所問い合わせ先テキストライン高 */
.contact {
    line-height: 32px;
}

/* メールボタン */
.mail {
    margin: 50px auto auto;
    padding: 12px 85px;
    font-size: 27px;
    color: #004EA2;
    background-color: #FFFFFF;
    border: 1px solid;
    cursor: pointer;
}

/* メールボタンホバー時色を反転 */
.mail:hover {
    color: #FFFFFF;
    background-color: #004EA2;
    border: 1px solid;
}

/* フッターロゴマージン */
footer img {
    margin: 32px auto;
    max-width: 90vw;
}

footer a {
    text-decoration: none;
    color: #ffffff;
}

/* URLマージン */
.url {
    margin-top: 0px;
    margin-bottom: 32px;
}

@media screen and (max-width: 992px) {

    /* ヘッダーを小さく */
    header {
        height: 76px;
        text-align: left;
    }

    /* h1 */
    header nav h1 {
        height: 76px;
        margin: auto 16px;
    }

    /* ヘッダー画像のサイズ調整 */
    header nav h1 img {
        width: 50%;
        margin: 23px;
        margin-left: 15px;
    }

    /* PCメニューを非表示 */
    .pc-menu {
        display: none;
    }

    .br-pc {
        display: none;
    }

    /* モバイルメニューを表示 */
    .mobile-menu {
        font-size: 18px;
    }

    /* ハンバーガーメニュー */
    .menu {
        position: relative;
        top: 0;
        right: 0;
        display: flex;
        height: 76px;
        width: 76px;
        justify-content: center;
        align-items: center;
    }

    /* ハンバーガーメニューボタン本体のサイズ */
    .menu-label {
        width: 76px;
        height: 76px;
    }

    /* 疑似要素と合わせてハンバーガーボタンを描画 */
    .menu-label span,
    .menu-label span::before,
    .menu-label span::after {
        content: '';
        display: block;
        height: 6px;
        width: 41px;
        background-color: #004EA2;
        position: absolute;
        top: 36px;
        text-align: center;
        right: 16px;
    }

    /* ハンバーガーボタンの位置（上の線） */
    .menu-label span::before {
        top: -14px;
        right: 0;
    }

    /* ハンバーガーボタンの位置（下の線） */
    .menu-label span::after {
        top: 14px;
        right: 0;
    }

    /* ハンバーガーメニュー（閉） */
    header nav .mobile-menu {
        position: absolute;
        top: 76px;
        right: 0;
        flex-direction: column;
        justify-content: flex-end;
        width: 465px;
        height: 600px;
        padding: 0;
        z-index: 2;
        background-color: #004EA2;
        display: none
    }

    /* ハンバーガーメニュー（開） */
    #menu-button:checked~.mobile-menu {
        display: flex;
        animation: 0.2s menu-animation;
    }

    /* ハンバーガーメニュー展開アニメ */
    @keyframes menu-animation {
        0% {
            background-color: rgba(255, 255, 255, 0);
            color: rgba(255, 255, 255, 0);
        }
    }

    /* クローズボタン */
    #menu-button:checked~.menu-label span {
        background-color: rgba(255, 255, 255, 0);
        animation: 0.1s menu-span;
    }

    /* ハンバーガーメニュー展開時のボタンアニメ（中心） */
    @keyframes menu-span {
        0% {
            background-color: #004EA2;
        }
    }

    /* ハンバーガーメニュー展開時上の線を傾ける */
    #menu-button:checked~.menu-label span::before {
        transform: rotate(45deg);
        top: 0;
        animation: 0.1s menu-before;
    }

    /* ハンバーガーメニュー展開時のボタンアニメ（上） */
    @keyframes menu-before {
        0% {
            top: -7px;
            rotate: 0deg;
        }
    }

    /* ハンバーガーメニュー展開時下の線を傾ける */
    #menu-button:checked~.menu-label span::after {
        transform: rotate(-45deg);
        top: 0;
        animation: 0.1s menu-after;
    }

    /* ハンバーガーメニュー展開時のボタンアニメ（下） */
    @keyframes menu-after {
        0% {
            top: 7px;
            rotate: 0deg;
        }
    }

    /* ハンバーガーメニュー各項目 */
    header nav ul li {
        height: 75px;
        max-width: 315px;
        width: 100%;
        border-bottom: #FFFFFF 1px solid;
        display: flex;
        justify-content: center;
    }

    /* ハンバーガーメニューの最後のボタンは下部ボーダーを付けない */
    header nav ul li:last-child {
        border-bottom: none;
    }

    /* ハンバーガーメニューリンク */
    header nav ul li a {
        color: #FFFFFF;
        width: 465px;
        max-width: 100%;
        min-height: 75px;
        margin: 0;
    }

    /* モバイル用改行 */
    .br-mobile {
        display: block;
    }

    /* 求人ボタンを縦並びに */
    .driver-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    header {
        max-width: 768px;
        width: 100%;
    }

    .section1 h2 {
        margin-top: 280px;
        font-size: 40px;
    }
}

@media screen and (max-width: 540px) {

    /* 会社情報を縦並びに */
    .contact-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 415px) {
    header {
        max-width: 100vw;
    }

    header nav h1 {
        margin-left: 16px;
    }

    header nav h1 a {
        margin: auto;
    }

    header nav h1 img {
        margin: 20px 0;
        width: 75%;
    }

    header nav .mobile-menu {
        width: 100vw;
        text-align: center;
    }

    .section1 h2 {
        font-size: 24px;
        margin-top: 180px;
    }

    .textarea-wrapper {
        text-align: left;
    }

    .textarea-wrapper {
        padding-left: 16px;
    }
}
