@charset "utf-8";

h1,
.page_title__caption--bold{
    font-family: "Kiwi Maru", serif;
    font-weight: 500;
    font-style: normal;
}

.white{
    color: #FFF;
}

.blue{
    color: #0D60B9;
}

button{
    cursor: pointer;
}

button:hover{
    opacity: 0.9;
}

body{
    font-family: 'Noto Sans JP', sans-serif;
}

.requirement_grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 80px auto 0 auto; 
}

table tr:nth-child(1) th:nth-child(1) {
    color: #091F2D;
    margin-bottom: 30px;
    text-align: left;
}

.requirement_grid table {
    width: 100%;
    text-align: center;
}

.requirement_grid tbody {
    display: block;
    margin: 0 auto;
    width: fit-content; /* 中身の幅に合わせて調整 */
}

.requirement_grid > table > tbody > tr {
    border-bottom: solid 1px #707070;
    display: grid;
    grid-template-columns: 240px minmax(auto, 800px);
    margin-top: 30px;
}

.requirement_grid > table > tbody > tr > th{
    text-align: left;
    color: #319FE8;
}

.requirement_grid > table > tbody > tr > td{
    text-align: left;
}

.requirement_img{
    line-height: 40px;
    background-color: #fff;
    padding: 80px 80px 140px 80px;
    width: 80%;
    margin: 80px auto;
    border-radius: 16px 16px 16px 16px;
}

.requirement_flow{
    color: #319FE8;
    font-weight: bold;
    font-size: 32px;
    margin-left: 45px;
    margin-bottom: 35px;
}

.requirement_flow_comment{
    margin-top: 25px;
    margin-left: 45px;
}

.requirement_bottom {
    position: relative;
    width: 100%;
    margin: 80px auto; /* .requirement_grid との間に余白追加 */
    padding: 0 5vw;
    box-sizing: border-box;
}

/* 共通設定 */
.requirement_bottom_inner {
    position: relative;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    min-height: 500px;
    background-image: url("http://recruit.lifesync.co.jp/wp-content/uploads/00_TOP/05_RECRUIT INFO.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

/* 共通：pタグ（画面の上部寄りに） */
.requirement_bottom_inner .text_wrapper {
    position: absolute;
    top: 5%; /* ← 最上部寄りに変更 */
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(16px, 2vw, 24px); /* PC表示時にサイズ調整 */
    color: #000;
    text-align: center;
    z-index: 1;
    width: 90%;
    max-width: 800px;
}

/* 共通：ボタン（画面の下部寄りに） */
.requirement_bottom_inner .requirement__button_entryPage {
    position: absolute;
    bottom: 10%; /* ← 最下部寄りに配置 */
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(14px, 1.5vw, 20px);
    padding: 1em 3em;
    background-color: #319FE8;
    color: #ffffff;
    border: none;
    border-radius: 45px;
    cursor: pointer;
    white-space: nowrap;
    z-index: 1;
    min-width: 220px;
}

/* スマホ用 */
@media screen and (max-width: 1024px) {
    .requirement_bottom {
        /* 高さ基準を与える */
        height: 400px;
        background-image: url('http://recruit.lifesync.co.jp/wp-content/uploads/リクルートTOP.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }

    .requirement_bottom_inner {
        /* Flexboxで縦横中央に揃える */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        padding: 1em;
        box-sizing: border-box;
        text-align: center; /* テキストを水平方向中央揃え */
    }

    .text_wrapper {
        margin: 0;
        line-height: 1.5;
        font-size: 16px; /* 必要に応じて調整 */
        width: 100%;         /* ← これがポイント */
        text-align: center;  /* ← 明示的に追加 */
        color: #000;     /* 視認性確保のため必要に応じて色指定 */
        position: absolute;
        top: 10%; /* 文字列を少し上に表示 */
    }

    .requirement__button_entryPage {
        font-size: 16px;
        padding: 0.8em 2em;
        min-width: 200px;
    }

    .requirement_bottom a {
        text-decoration: none;
    }
}

/* PC用 */
@media screen and (min-width: 1025px) {
    .text_wrapper {
        font-size: 36px; /* PC表示時に文字を大きく */
    }
}
