/*common*/
#container {
    width: min(920px, 100%);
}
.temp-breadcrumb {
    margin: 24px -10px 40px;
    margin-left: -10px;
    width: 100%;
    ol{
        display: flex;
        flex-wrap: wrap;
        li{
            display: flex;
            align-items: center;
            >p, a{
                display: inline-block;
                font-size: 0.75rem;
                font-weight: 500;
                line-height: clamp(1rem, 0.789rem + 0.89vw, 1.5rem);
                letter-spacing: 0.05rem;
                transition: all 0.3s  ease-in-out;
                -webkit-transition: all 0.3s ease-in-out;
                font-family: "Noto Sans JP", "Noto Serif JP", "Poppins", "Helvetica Neue", "Helvetica", "Noto Sans JP", "メイリオ", "Meiryo", "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", "YuGothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
            }
            a:visited, a:link {
                color: #000000;
            }
            span{
                font-size: clamp(1rem, 0.894rem + 0.44vw, 1.25rem);
                line-height: clamp(1rem, 0.789rem + 0.89vw, 1.5rem);
                padding: 0 0.25rem;
            }
            >p{
                font-size: 0.75rem;
            }
        }
    }
}
.temp-article{
    width: min(900px, 100%);
    margin-bottom: 80px;
    dl,dt,dd{
        line-height: 1.8;
    }
}
@media screen and (max-width: 768px) {
    .temp-article{
        margin-bottom: 20px;
    }
}

/* philosophy */
#ph_bg {
	background-image: url(../../images/philosophy/ph.jpg);
	background-repeat: no-repeat;
	-moz-background-size:contain;
	background-size:contain;
	padding:700px 0px 0px 0px;
}
.img-box.forSP {
    margin-bottom: 3%;
}

/* top-message */
.top-img {
    width: 100%;
}
.message-wrapper {
    width: 80%;
    margin: 3rem auto;
    font-family: "游明朝", "Yu Mincho", "リュウミン M-KL";
    color: #5b6356;
    .text01 {
        letter-spacing: 0.2em;
        font-size: 1.5rem;
        line-height: 3rem;
    }
    .text02{
        font-size: 0.9rem;
        line-height: 2.0rem;
    }
    .text03{
        text-align: right;
        line-height: 1.3rem;
    }
}
/*about*/
.about{
    *{
        line-height: 1.6;
    }
}
.about-table{
    > tbody {
        > tr {
            > th {
                    color: #fff;
                    background-color: #005BAB;
                    border: 2px solid #fff;
                    padding: 12px;
                    width: 180px;
            }
            > td {
                    padding: 5px;
            }
        }
    }
}
.about-table-child{

    th{
        text-align: left;
    }
    td{
        padding-left: 5px;
    }
}
.about-datalist{
    display: flex;
    flex-direction: column;
}
.datalist-margin{
    >dt:not(:first-of-type){
        margin-top: 30px;
    }
}
.about-list-tel{
    display: flex;
    margin: 0;
    flex-wrap: wrap;
}
.plant-tel{
    gap: 15px;
}
.about-datalist-child{
    display: flex;
    flex-direction: column;
    dd{
        padding-left: 16px;
    }
}
.about-list{
    display: flex;
    flex-direction: column;
    margin: 0;
}
.about-location-name{
    font-weight: bold;
}
@media screen and (max-width: 768px) {
    .about-table{
        > tbody {
            > tr {
                display: flex;
                flex-direction: column;
                width: 100%;
                >th{
                    width: 100%;
                    text-align: left;
                }
            }
        }
    }
}
/* history */
.hidari {
	float: left;
	width: min(75%, 670px);
    line-height: 1.6;
}
.float-right{
    width: calc(100% - min(75%, 670px));
    height: 460px;
    display: flex;
    img{
        margin: auto 0;
    }
}

@media (max-width: 768px) {
    .hidari{
        width: 100%;
    }
    .hidari .float_left_img {
        float: none;
        margin: 20px 0 30px;
    }
    .float-right{
        display: none;
    }
}
/* study */
.study-grid{
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr 2fr;
    gap: 10px;
}
.study-grid-title{
    grid-column: 1/span 2; 
    grid-row: 1/span 1;   
    width: 100%;
    height: auto;
}
.study-grid-img{
    grid-column: 1/ span 1;
    grid-row: 2/span 1;
    width: 100%;
    height: auto;
}
.study-grid-text{
    grid-column: 2/ span 1;
    grid-row: 2/span 1;
    margin: auto;
}
.study-grid-flow{
    grid-column: 3/ span 1;
    grid-row: 1/span 2;
    width: 100%;
    height: auto;
    margin: auto 0;
}
@media (max-width: 768px) {
    .study-grid{
        display: flex;
        flex-direction: column;
    }
    .study-grid-title,
    .study-grid-img,
    .study-grid-text,
    .study-grid-flow{
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        height: auto;
        margin: 0;
    }
}
/* howto */
@media (max-width: 768px) {
    .howto {
        h2{
            line-height: 1.5;
            margin: 30px 0 30px;
        }
        .title4{
            margin-top: 5px;
        }
        .btn a {
            width: 100%;
            margin: auto;
            text-align: center;
            background: #333;
            padding-top: 5px;
            display: block;
        }
        .btn {
            margin-top: 20px !important;
        }
        .text-box {
            margin-bottom: 50px;
        }
        .float_left_img{
            float: none;
            margin: 25px auto 15px;
            text-align: center;
        }
    }
}
/* safety-guidelines */
.tm01 {
    width: 80%;
    margin: 3rem auto;
    font-family: "游明朝", "Yu Mincho", "リュウミン M-KL";
    background-color: #FFF;
    color: #5b6356;
    .text01{
        letter-spacing: 0.2em;
        font-size: 1.5rem;
        line-height: 3rem;
    }
    .text02{
        margin: 15px 0;
        padding-left: 24px;
        font-size: 0.9rem;
        li{
            line-height: 2.0rem;
        }
    }
    .text03{
        font-size: 0.9rem;
        text-align: right;
        line-height: 1.3rem;
    }
}
.box1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* f-kanto ,f-kyusyu */
.read{
    margin-bottom: 30px;
}
.ka-factory{ 
    h2{
        text-align: left;
    }  
    .box{
        margin: 15px 0;
    }
    .ttl{
        width: 160px;
        font-weight: bold;
        margin: 0;
    }
    .img-box{
        &:nth-of-type(n+2){
            margin-left: 20px;
        }
        img{
            padding: 5px;
            border: 1px solid #CCCCCC;
        }
    }
}
@media screen and (max-width: 768px) {
    .ka-factory{
        .ttl{
            width: 100%;
        }
        .box{
            width: 100%;
            flex-wrap: wrap;

        }
        .img-box{
            width: 49%;
        }
        .img-box:nth-of-type(n+2){
            margin-left: 0;
        }
    }
}

/* f-kyusyu */
.ky-factory{ 
    width: 100%;
    h2{
        text-align: left;
    }  
    .box{
        margin: 15px 0;
        flex-wrap: wrap;
    }
    .ttl{
        width: 160px;
        font-weight: bold;
        margin: 0;
    }
    .img-box{
        &:nth-of-type(n+2){
            margin-left: 20px;
        }
        img{
            padding: 5px;
            border: 1px solid #CCCCCC;
        }
    }
    .content{
        width: 500px;
        gap: 20px;
        margin-bottom: 7px;
        flex-wrap: wrap;
    }
    .f-kyushu-img {
        margin-bottom: 5px;
    }
    .dot-list li{
        line-height: 1.6;
    }
    .ky-box {
        p{
            margin: 0 0 7px;
        }
    }
}
@media screen and (max-width: 768px) {
    .ky-factory{
        .ttl{
            width: 100%;
            margin-bottom: 10px;
        }
        .content{
            width: auto;
            align-items: flex-end;
            flex-wrap: wrap;
        }
        .ky-box:nth-of-type(even){
            margin-left: 4%;
        }
        .flex{
            width: 100%;
        }
    }
}
/*eco*/
.eco{
    .img-box{
        margin-left: 15px;
    }
    .box1{
        gap: 20px;
    }
}

/*job*/
.job{
    .job-top{
        width: 100%;
        height: auto;
    }
    .btn-list{
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .btn{
        width: 24%;
        a{
            display: block;
            img{
                width: 100%;            
            }
        }
    }
}
@media screen and (max-width: 768px) {
    .job{
        .btn{
            width: 48%;
            margin-bottom: 10px;
        }
    }
}
/*job_part*/
.list1-recruit:nth-of-type(n+2){
    margin-top: 50px;
}
.list1-recruit-additional{
    margin-top: 15px;
}
/*job_comeback*/
.job-comeback{
    .job_p1{
        font-size: 13px;
        text-align: center;
    }
}

/*staff*/
.staff{
    .staff-contents{
        padding: 30px 0 50px;
        position: relative;
        animation-name: opa2;
        animation-duration: 0.5S;
        animation-delay: 0.5s;
        animation-fill-mode: both;
    }
    .list-column-container {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        margin: 0 3%;
    }
    .list-column{
        display: flex;
        flex-direction: column;
        width: 32%;
        margin-bottom: 20px;
        color: #fff;
        border-radius: 5px;
        overflow: hidden;
        cursor: pointer;
        img{
            vertical-align: middle;
            max-width: 100%;
            height: auto;
        }
        .text{
            padding: 5%;
            flex: 1 0 auto;
            h4{
                margin-bottom: 20px;
                font-size: 140%;
                font-family: "UD Shin Go EL JIS2004 AP";
                line-height: 1.3em;
            }
            p{
                font-family:"UD Shin Go EL JIS2004 AP";
            }
        }
        .btn1{
            color: #fff;
            display: block;
            text-decoration: none;
            border: 1px solid #fff;
            text-align: center;
            padding: 10px 30px;
            transition: 0.2s;
            margin-top: 50px;
            &:hover{
                background-color: #fff;
                color: #000b8c;
            }
        }
    }
    .staff1 {
        background: #aacf53;
    }
    .staff2 {
        background: #f7b977;
    }
    .staff3 {
        background: #00a1e9;
    }
    .modal-wrapper, .staff-pop-window{
        display: none;
    }
    .pop-window-staff{
        box-sizing: border-box;
        display: inline-block;
        z-index: 20;
        width: 90%;
        position: relative;
        max-width: 800px;
        border-radius: 2px;
        background: #fff;
        box-shadow: 0 0 30px rgba(0, 0, 0, .6);
        vertical-align: middle;
        max-height: 80vh;
        overflow-y: auto;
        padding: 30px 90px 30px;
        img{
            width: 100%;
        }
    }
    .popup-text{
        margin-top: 40px;
        p{
            line-height: 1.8;
        }
        .faq-q{
            position: relative;
            padding: 0.5rem 1rem;
            margin: 0.5rem 0;
            color: #fff;
            border-radius: 5px;
            text-align: left;
        }
        .faq-a{
            padding-left: 15px;
            font-size: 14px;
            padding-bottom: 20px;
            text-align: left;
        }
    }
}
@media screen and (max-width: 768px) {
    .staff{
        .staff-contents{
            padding: 50px 0;
        }
        .list-column-container {
            display: flex;
            flex-flow: column;
            flex-wrap: wrap;
            margin: 0 auto 0;
        }
        .list-column{
            width: 280px;
            padding: auto;
            margin: 0 auto 10%;
            overflow: hidden;
        }
    }
}
@media screen and (max-width: 480px) {
    .staff{
        .list-column{
            width: 100%;
        }
    }
}
/*sns_policy*/
.sns_policy {
    .text05{
        font-family: 'Lucida Grande', "ゴシックMB101 R", 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
        font-size: 1.3rem;
        color: #333333;
        line-height: 100%;
        font-weight: bold;
        border-bottom: solid thin #333333;
        padding: 1.5rem 0 0.5rem;
        margin-bottom: 1rem;
    }
    .text04{
        font-family: 'Lucida Grande', "ゴシックMB101 R", 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
        font-size: 0.9rem;
        color: #333333;
        text-align: left;
        line-height: 1.5rem;
    }
}

/*--popup--*/
#pop-up1, #pop-up2, #pop-up3 , .overlay{
    display: none;
}
.before-popup-img {
    width: 150px;
    height: 212px;
    border: 1px solid #000;
}
.popup-additional{
    display: flex;    
    width: 100%;
    opacity: 0.7;
    align-items: center;
    animation: fadeIn 0.6s ease-out forwards;
}
.flex-end{
    justify-content: flex-end;
}
.space-between{
    justify-content: space-between;
}
.popup-img-number{
    color: white;
    font-size: 0.8rem;
}
.popup-close{
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
}
.close-white{
    color: white;
}
.close-gray{
    color: gray;
}
.overlay {
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.pop-window {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: fit-content;
    margin: 25px 10px 10px;
}
#pop-up1:checked + .overlay,
#pop-up2:checked + .overlay,
#pop-up3:checked + .overlay {
    display: flex;
}

#pop-up1:checked ~ *,
#pop-up2:checked ~ *,
#pop-up3:checked ~ * {
    pointer-events: none;
}

#pop-up1:checked + .overlay,
#pop-up2:checked + .overlay,
#pop-up3:checked + .overlay {
    pointer-events: auto;
}

body:has(#pop-up1:checked),
body:has(#pop-up2:checked),
body:has(#pop-up3:checked) {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

html:has(#pop-up1:checked),
html:has(#pop-up2:checked),
html:has(#pop-up3:checked) {
    overflow: hidden;
}

#pop-up1:checked + .overlay .pop-window .popup-img,
#pop-up2:checked + .overlay .pop-window .popup-img,
#pop-up3:checked + .overlay .pop-window .popup-img {
    border: none;
    width: auto;
    height: min(1100px, 95dvh);
    object-fit: contain;
    animation: fadeInScale 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

#pop-up1:checked + .overlay .staff-pop-window{
    display: block;
}
#pop-up1:checked + .overlay .before-popup{
    display: none;
}
/* アニメーションキーフレーム */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.7;
    }
}
