@charset 'UTF-8';

/*
GENERAL STYLING
================================================ */

body {
	color: #555;
}
p {
    line-height: 1.7;
}

main {
    padding-top: 10vh;
    color:var(--font);
}

h2.title {
    margin-top: 2rem;
    font-size: 1.5rem;
    line-height: 1.5;
}
h2.title::after {
    content: '';
    display: block;
    height: 5px;
    width: 10rem;
    background: #d0bea2;
    margin: 1rem 1rem 1rem 0;
}

h3.title {
    padding: 0.4em 0.5em;
    border-left: solid 5px var(--black);
    font-size:1.3rem;
    margin:1.5rem auto;
}

section .wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Contents */
.sub-bg {
    background-color: var(--background2);
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 1rem;
}

.home-text,
.home-chart {
    margin: 2rem;
}

.home-text .only {
    width:100%;
}

.flex-reverse .home-chart {
    margin: 0 2vw 0 0;
}
.home-chart p {
    text-align: center;
}

table.recruit-info {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    opacity: 1;
}

.recruit-info th {
    background: var(--grey-2);
    border: solid 1px var(--white);
    border-left:solid 1px var(--white);
    border-right:solid 1px var(--white);
    padding: 10px;
    font-weight: normal;
    width:20%;
}

.recruit-info td {
    background: var(--grey-0);
    border: solid 1px var(--white);
    border-left:solid 1px var(--white);
    border-right:solid 1px var(--white);
    padding: 10px;
    font-weight: normal;
}

.genderoptions {
    display: inline-block;
}

.mynavi-link {
    margin: 20px auto;
}

/* Styling for mobile devices */
@media (max-width: 600px) {

    .content {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        .home-text.only {
            flex-direction: column;
            align-items: center;
            padding:20px 10px;
            margin: 0 auto;
            #company-pdf-1,
            #company-pdf-2 {
                display: none;
            }
            #company-pdf-1-sp,
            #company-pdf-2-sp {
                img {
                    object-fit: cover;
                    object-position: center center;
                    width: 100%;
                    height:100%;
                }
            }
        }

        .home-chart {
            width: 100%;
            margin-left:0;
            margin-top:1vh;
            img {
                width: 100%;
            }
        }
    }

    .recruit-info {
        width: 80%;
    }

    .recruit-info th,
    .recruit-info td {
        border-bottom: none;
        display: block;
        width: 100%;
    }

    form.contact {
        display: flex;
        flex-direction: column;
    
        label {
            display: inline-block;
            margin-right: 10px;
            width:80%;
        }
        
        input[type="text"], input[type="date"], textarea, button {
            display: block;
            width: 100%;
            padding: 10px;
            font-size: 1rem;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
            margin-bottom: 10px;
        }
        
        input[type="checkbox"] {
            display: inline-block;
            margin-right: 10px;
        }

        button {
            display: block;
            width: 30%;
            min-width: 200px;
            margin: 0 auto;
            background-color: var(--black);
            color: var(--background);
            border: none;
            cursor: pointer;
        }

        .form-item {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            width: 80vw;
            margin-bottom: 20px;
        }
    }
}

/*
DESKTOP SIZE
================================================ */
@media (min-width: 600px) {

    .title {
        font-size: 1.875rem;
    }

    .flex-reverse {
        flex-direction: row-reverse;
    }

    .home-text {
        width: 70vw;
        margin-bottom: 2rem;
    }

    .home-text.only {
        width: 100vw;
        #company-pdf-1-sp,
        #company-pdf-2-sp{
            display: none;
        }
    }

    .home-text.title {
        width: 100vw;
        padding:0;
        margin-bottom: 0;
    }
    
    .home-chart {
        width: 30vw;
        margin-top:1vh;
    }

    form.contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    
        label {
            display: inline-block;
            margin-right: 10px;
            width:20%;
        }
        
        input[type="text"], input[type="date"], textarea, button {
            display: block;
            width: 80%;
            min-width: 600px;
            padding: 10px;
            font-size: 1rem;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
            margin-bottom: 10px;
        }

        button {
            display: block;
            width: 30%;
            min-width: 200px;
            margin: 0 auto;
            background-color: var(--black);
            color: var(--background);
            border: none;
            cursor: pointer;
        }

        .genderoptions {
            display:flex;
            flex-direction: column;
            width: 70%;
            min-width: 600px;
            margin-bottom: 10px;
            label {
                width: 80%;
            }
        }

        .dutiesoptions {
            display:flex;
            flex-direction: column;
            width: 70%;
            min-width: 600px;
            margin-bottom: 10px;
            label {
                width: 80%;
            }
        }   

        .form-item {
            display: flex;
            justify-content: flex-start;
            width: 70%;
            min-width: 600px;
            margin-bottom: 20px;
        }

    }
}