@charset "utf-8";

main .top-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto 0px;
}

main .top-image img {
    width: 60%;
    height: auto;
}

main .intro-recruitment {
    width: 70vw;
    margin: 50px auto 0px;
    text-align: left;
}

main .intro-recruitment p {
    margin-bottom: 15px;
    font-size: 1.2rem;
     line-height: 2;
}

/* トグル */
main .intro_dept {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 50px auto;
}

main .intro_dept h2 {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0px 15vw 50px;
}

main .intro_dept details {
    border: 1px solid rgba(166, 166, 214, 0.2);
    border-radius: 10px;
    background-color: rgba(166, 166, 214, 0.089);

    margin-bottom: 20px;
    width: 70vw;
    text-wrap: wrap;
    list-style: square;
}

main .intro_dept summary {
    background-color: #174974;
    border-radius: 10px;

    letter-spacing: 0.05em;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;

    padding: 1em;
    width: 100%;
    /* 親の幅に基づいた幅にする */
    transition: all 0.5s;
}

main .intro_dept summary:hover {
    background-color: #03325b;
    letter-spacing: 0.1em;
}

button {
    margin: 0 auto 20px 15vw;
    /* ボタンの右端をdetailsの右端に合わせる */

    color: #174974;
    font-size: 18px;
    text-decoration: underline;

    cursor: pointer;
}

main .intro_dept details .toggle_content {
    padding: 20px 30px 20px 40px;
    line-height: 2.5;
}

main .intro_dept .toggle_content h3 {
    font-size: 20px;
    font-weight: 600;
}

main .intro_dept details .toggle_content p {
    padding: 0 30px;
}

main .intro_dept details .toggle_content li {
    margin: 0 30px;
    list-style: circle;
}

main .intro_dept details[open] {
    border-radius: 10px;
    width: 70vw;
}

main .intro_dept details[open] summary {
    border-radius: 10px 10px 0 0;
    width: 100%;
}

/* 応募人数 */
main .recruit-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 70px auto;
}

main .recruit-info table {
    border-collapse: collapse;
    border: 2px solid rgb(140 140 140);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-right: 50px;
    width: 30vw;
}

main .recruit-info caption {
    caption-side: top;
    font-size: 1.2rem;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

main .recruit-info thead {
    background-color: rgb(219, 244, 255);
}

main .recruit-info th,
main .recruit-info td {
    border: 1px solid rgb(160 160 160);
    padding: 8px 20px;
}

main .recruit-info td:last-of-type {
    text-align: center;
}

main .recruit-info .apply-flow {
    width: 30vw;
    line-height: 1.8;
    margin-top: 50px;
    padding: 20px;
    background-color: rgb(219, 244, 255);
    border-radius: 15px;
    align-items: center;
    text-align: left;
}

main .recruit-info .apply-flow h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

main .recruit-info .apply-flow p {
    font-size: 1rem;
}


/* 応募フォーム */
main .link {
    background-color: rgba(166, 166, 214, 0.089);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-top: 100px;
    padding: 20px;
}

main .link h2 {
    background-color: #020d16;
    border-radius: 4px;
    width: 500px;
    height: 90px;
    margin: 30px 0;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;

    position: relative;
    /* For animation */
    background-image: linear-gradient(to left, #020d16 50%, #174974 50%);
    background-size: 200% 100%;
    background-position: right;
    transition: 1s;
}

main .link h2:hover {
    background-position: left;
    /* Slide the background to the left */
}

main .link h2 a {
    color: #fff;
    text-decoration: none;
}

main .link h3 {
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
}


/* Tablet Size */
/* Smartphone View */
@media screen and (max-width: 840px) {

    html,
    body {
        overflow-x: hidden;
    }

    body {
        margin: 0;
        padding: 0;
        width: 100vw;
        /* ビューポートの幅に合わせる */
        max-width: 100vw;
        /* 最大幅をビューポート幅に制限 */
        overflow-x: hidden;
        /* 横スクロールバーが出ないようにする */
        font-family: 'Hiragino Mincho Pro', 'Yu Mincho', serif;
    }

    main .top-image {
        margin: 40px auto 0px;
    }

    main .top-image img {
        width: 80%;
        height: auto;
    }

    main .intro-recruitment {
        width: 70vw;
        margin: 50px auto 0px;
        text-align: left;
    }

    main .intro-recruitment p {
        margin-bottom: 15px;
        line-height: 1.5;
        font-size: 1rem;
    }

    /* 班紹介トグル */
    main .intro_dept {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 50px auto;
    }

    main .intro_dept details {
        border: 1px solid rgba(166, 166, 214, 0.2);
        border-radius: 10px;
        background-color: rgba(166, 166, 214, 0.089);

        margin-bottom: 20px;
        width: 70vw;
        text-wrap: wrap;
        list-style: square;
    }

    main .intro_dept summary {
        background-color: #174974;
        border-radius: 10px;

        letter-spacing: 0.05em;
        font-size: 18px;
        font-weight: bold;
        color: #ffffff;

        padding: 1em;
        width: 100%;
        /* 親の幅に基づいた幅にする */
        transition: all 0.5s;
    }

    main .intro_dept summary:hover {
        background-color: #03325b;
        letter-spacing: 0.1em;
    }

    button {
        margin: 0 auto 20px 15vw;
        /* ボタンの右端をdetailsの右端に合わせる */

        color: #174974;
        font-size: 18px;
        text-decoration: underline;

        cursor: pointer;
    }

    main .intro_dept details .toggle_content {
        padding: 0 10px 20px 20px;
        line-height: 2;
    }

    main .intro_dept .toggle_content h3 {
        margin-top: 20px;
        font-size: 1rem;
        font-weight: 600;
    }

    main .intro_dept details .toggle_content p {
        font-size: 0.9px;
        padding: 0 5px 0 10px;
    }

    main .intro_dept details .toggle_content li {
        font-size: 14px;
        margin: 0 10px 0 20px;
        list-style: circle;
    }

    main .intro_dept details[open] {
        border-radius: 10px;
        width: 70vw;
    }

    main .intro_dept details[open] summary {
        border-radius: 10px 10px 0 0;
        width: 100%;
    }

    /* 募集要項 */
    main .recruit-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    main .recruit-info table {
        border-collapse: collapse;
        border: 2px solid rgb(140 140 140);
        font-size: 0.8rem;
        letter-spacing: 1px;
        margin: 0 20px;
        width: 75vw;
    }

    main .recruit-info caption {
        caption-side: top;
        text-align: center;
        font-size: 1.2rem;
        padding: 20px 0;
        font-weight: 600;
    }

    main .recruit-info .apply-flow {
        margin-top: 50px;
        line-height: 2;
        width: 75vw;
        align-items: center;
    }

    main .recruit-info .apply-flow h3 {
        font-size: 1.2rem;
        font-weight: 600;

        margin-bottom: 30px;
    }

    main .recruit-info .apply-flow p {
        font-size: 0.8rem;
    }

    /*応募リンク*/
    main .link {
        background-color: rgba(166, 166, 214, 0.089);
        height: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    main .link h2 {
        background-color: #020d16;
        color: #fff;
        border-radius: 4px;
        width: 80vw;
        height: 90px;
        margin: 30px 0;

        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        color: #fff;
    }

    main .link h2 a {
        text-decoration: none;
    }

    main .link h3 {
        margin-top: 20px;
        font-size: 15px;
        text-align: center;
    }
}