@import url("./utils/reset.css");


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
}

header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    background-color: #f8f8f8;
    text-align: center;
    top: 0;
    height: 80px;
    padding: 8px 24px;
    

    .catchcopy {
        margin-bottom: 12px;
        font-size: 14px;
        color: #727272;
    }
    
    
    .logo-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        
        .logo {
            width: 60px;
            height: auto;
            margin-right: 16px;
        }
        
    }

    .header-menu {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    #header-menu-button,
    .menu-button{
        display: none;
    }
}

.company-name {
    font-size: 26px;
    letter-spacing: 0.08em;    
    font-weight: bold;
    color: #000;
}

nav {
    margin: 20px 0;
    text-align: center;

    a {
        margin: 0 15px;
        text-decoration: none;
        color: black;
        font-size: 16px;
        font-weight: bold;

        &:hover {
            text-decoration: underline;
        }
    }
}

.firstview {
    max-width: 100%;
    background-color: rgb(136, 136, 239);
}

main {
    display: flex;
    justify-content: center;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 1200px;
    max-width: 100%;
    margin-top: 100px;
}

h1 {
    text-align: center;
    margin: 0 0 48px 0;
}

.text-wrapper {
    width: 720px;
    max-width: 100%;

    .text-content {
        margin: 0 0 40px;
    }

    .text-content:last-child {
        margin-bottom: 0;
    }
    
    h2{
        margin: 0 0 24px 0;
    }

    p {
        font-size: 20px;
        line-height: 1.4;
        margin: 0 0 24px;
    }

    .text {
        margin-bottom: 72px;
    }
}

main.page-about {
    .text-wrapper {
        width: 520px;
        max-width: 100%;
    }

    .certificate {
        width: 700px;
    }
}

main.page-contents {
    text-align: center;

    p {
        margin-left: 0;
    }
}

main.page-sdgs {
    img.sdgs-all {
        width: 720px;
    }

    .sdgs-icon {
        width: 200px;
    }

    .image-wrapper {
        margin-bottom: 24px;
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }
}


.page-recruit {
    tr {
        height: 72px;
    }

    th {
        width: 200px;
        text-align: left;
    }
}


p.description {
    margin: 0 0  40px 0;
    font-size: 18px;
    text-align: center;
}

hr.line {
    border-top: 1px solid #8c8b8b;
}

footer {
    text-align: center;
    padding: 20px 0;
    /* position: fixed; */
    width: 100%;
    bottom: 0;
    background-color: #fff;

    .logo {
        width: 54px;
        height: auto;
    }

    .company-name {
        margin: 5px 0;
        font-size: 14px;
        font-weight: bold;
    }

    .copyright {
        font-size: 12px;
    }
}


/* PCではSPメニューは非表示 */
.spmenu-content {
    display: none;
}

@media screen and (max-width: 959px) {
    header {
        padding: 8px;

        .catchcopy {
            font-size: 12px;
        }

        .company-name {
            font-size: 20px;
        }

        #header-menu-button,
        .menu-button {
            display: block;
        }
    }

	.nav-pc {
        display: none;
    }

    .spmenu-content {
        position: relative;
        z-index: 2;
        background-color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;

        .nav-sp {
            position: fixed;
            top: 88px;
            right: 0;
            background-color: white;
            display: flex;
            width: 200px;
            flex-direction: column;
            gap: 24px;
        }

        .nav-sp > a  {
            font-size: 20px;
        }

        .nav-wrapper {
            display: none;
        }
    }
    

    main {
        padding: 0 16px;
    }

    .content,
    .text-wrapper {
        width: auto;
        max-width: 100%;
    }

    .content {
        margin-top: 40px;
    }

    .text > p {
        font-size: 18px;
    }

    main.page-about {
        .certificate {
            width: 400px;
            margin-top: 32px;
        }
    }

    main.page-sdgs {
        img.sdgs-all {
            width: 100%;
            max-width: 560px;
        }
    
        .sdgs-icon {
            width: 100px;
        }
    }


    footer {  
        .logo {
            width: 54px;
            height: auto;
        }
    
        .company-name {
            font-size: 14px;
        }

        .address {
            margin: 12px;
            font-size: 13px;
        }
    
        .copyright {
            margin: 24px 0 0 0;
            font-size: 11px;
        }
    }
}

.case-table {
    th, td {
        border: solid 1px black;
    }
}

@media screen and (max-width: 480px) {
	/* 480px以下に適用されるCSS（スマホ用） */
}
