/*************************************************

共通

***************************************************/

.btn-1 {
    border: solid 2px #01009D;
}

/************************************

FV

**************************************/

.civil #fv {
    background: url(../works/civil-engineering/civil_fv.jpg);
    background-size: cover;
    background-position: center 20%;
}

.architecture #fv {
    background: url(../works/architecture/archi_fv.jpg);
    background-size: cover;
    background-position: center;
}

/**************************************************

ページ内メニュー

***************************************************/

.job-navi {
    padding: 0 16px;
    background: #01009D;
}

.job-navi ul {
    padding: 0;
}

.job-navi ul li {
    list-style: none;
}

.job-navi ul li a {
    text-decoration: none;
    color: white;
    display: block;
    position: relative;
    width: 100%;
    height: 200px;
}

.civil .job-navi ul li:nth-of-type(1) a {
    background: url(civil-engineering/gogan.jpg);
    background-size: cover;
    background-position: center;
}

.architecture .job-navi ul li:nth-of-type(1) a {
    background: url(architecture/jichi.jpg);
    background-size: cover;
    background-position: center;
}

.civil .job-navi ul li:nth-of-type(2) a {
    background: url(../works/civil-engineering/cc_k_1.jpg);
    background-size: cover;
    background-position: center;
}

.architecture .job-navi ul li:nth-of-type(2) a {
    background: url(works_fv.jpg);
    background-size: cover;
    background-position: center;
}

.civil .job-navi ul li:nth-of-type(3) a {
    background: url(../works/civil-engineering/interview_k.jpg);
    background-size: cover;
    background-position: center;
}

.architecture .job-navi ul li:nth-of-type(3) a {
    background: url(architecture/hori.jpg);
    background-size: cover;
    background-position: center;
}

.job-navi ul li a p {
    display: block;
    background: #01009D;
    padding: 4px 16px;
    position: absolute;
    bottom: 8px;
    left: 0;
    display: block;
}

@media(min-width: 500px) {
    .job-navi ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: 0 auto;
    }

    .job-navi ul li {
        width: 33%;
        box-sizing: border-box;
    }
}

/***********************************************

gallery

***********************************************/

#gallery .scr {
    width: calc(100% + 36px);
    margin: 0 0 0 -18px;
    overflow-x: scroll;
}

#gallery .g-list {
    padding: 0;
    display: flex;
    width: calc(min(80vw, 240px) * 7);
}

#gallery .g-list li {
    list-style: none;
    margin: 32px 16px;
    width: min(80vw, 240px);
}

#gallery .g-list li img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

#gallery .g-list li p {
    margin: 8px 0;
    color: #01009D;
    font-size: 1.5em;
    text-align: center;
}

@media(min-width: 640px) {
    #gallery .wrapper {
        display: flex;
        justify-content: space-around;
    }

    #gallery .wrapper hgroup {
        width: min(50%, 400px);
    }

    #gallery .wrapper > p {
        width: min(50%, 40em);
        margin-top: 64px
    }
}

@media(min-width: 800px) {
       
    #gallery .scr {
        overflow-x: visible;
    }

    #gallery .g-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 0 2%;
        width: 100%;
    }

    #gallery .g-list li {
        width: auto;
    }
}

/***********************************************

現場事例

************************************************/

p.click {
    display: none;
}

.tabs {
    display: none;
}

#case-file .file {
    padding: 0;
}

#case-file .file li {
    list-style: none;
    margin: 32px 0;
}

#case-file .file li .box {
    border: solid 2px #0000FB;
    padding: 16px;
}

#case-file .tab {
    background: #0000FB;
    color: white;
    text-align: center;
    width: fit-content;
    padding: 8px 32px;
    font-size: 1.125em;
    position: relative;
    margin: 0 0 -1px;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}

#case-file .file li h3 {
    font-size: 1.375rem;
    color: #01009D;
}

#case-file .file li img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 16px auto;
}

#case-file .file li dl div {
    display: flex;
    background: #EFF8FF;
    color: #01009D;
    padding: 8px 16px;
    margin: 8px 0;
}

#case-file .file li dl div dt {
    width: clamp(140px, 40%, 200px);
}

#case-file .file li dl div dd {
    width: 70%;
    text-align: center;
    margin: 0;
}

#case-file .file li .comment {
    border: solid 1px #01009D;
    padding: 16px;
}

#case-file .file li .comment h3 {
    margin: 0 auto 32px;
    width: fit-content;
    text-align: center;
    font-family: 'outfit', sans-serif;
    font-size: 2rem;
}

@media(min-width: 640px) {

    p.click {
        display: block;
    }

    .tabs {
        display: flex;
        margin-bottom: -16px;
    }

    .tabs p {
        cursor: pointer;
    }

    .tabs p#tab-1 {
        background: #008805;
    }

    #case-file .file {
        position: relative;
        height: 600px;
    }

    #case-file .file li {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        margin: 0;
    }

    #case-file .file li .tab {
        display: none;
    }

    #case-file .file li .box {
        display: none;
    }
    
    #case-file .file li .box.open {
        display: block;
    }

    #case-file .file .wrapper {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    #case-file .file .wrapper img {
        width: 48%;
        box-sizing: border-box;
        object-fit: contain;
    }

    #case-file .file .wrapper > div {
        width: 48%;
    }

    #case-file .file .wrapper dl {
        box-sizing: border-box;
    }
}

@media(min-width: 800px) {
    
    #case-file .file li .comment > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #case-file .file li .comment h3 {
        width: fit-content;
        margin: 0;
    }
}

/********************************************

一日密着

********************************************/


#closely-cover .schedule .info {
    text-align: center;
    background: #F5F5F5;
    border-radius: 8px;
    padding: 16px 16px 10em;
    margin-bottom: -9em;
}

#closely-cover .schedule .info img {
    width: min(60%, 300px);
    display: block;
    margin: 16px auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

#closely-cover .schedule .info p {
    margin: 0;
}

#closely-cover .schedule .info .name {
    font-size: 1.75em;
    margin-right: 8px;
}

#closely-cover .schedule .info .join {
    color: #01009D;
}

#closely-cover .schedule .info .txt {
    text-align: left;
}

#closely-cover .schedule ol {
    padding: 0;
    padding: 16px;
}

#closely-cover .schedule ol li {
    list-style: none;
    border: solid 2px #01009D;
    border-radius: 8px;
    background: white;
    padding: 16px;
    margin: 32px 0;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

#closely-cover .schedule ol li::before {
    position: absolute;
    content: '';
    width: 200px;
    height: 64px;
    background: url(border.jpg);
    background-size: cover;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    z-index: -10;
}

#closely-cover .schedule ol li:last-child::before {
    display: none;
}

#closely-cover .schedule ol li img {
    width: min(100%, 400px);
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 16px auto;
}

#closely-cover .schedule ol li .summary {
    list-style: none;
    font-size: clamp(20px, 5vw, 22px);
    color: #01009D;
    font-weight: bold;
    padding-right: 48px;
    position: relative;
}

#closely-cover .schedule ol li .summary::after {
    position: absolute;
    content: '';
    width: 32px;
    height: 32px;
    top: 0;
    right: 0;
    background-image: url(accordion.svg);
    background-size: 100%;
    transform: rotate(-180deg);
    cursor: pointer;
}

#closely-cover .schedule ol li.open .summary::after {
    transform: rotate(0deg);
}

#closely-cover .schedule ol li .details {
    display: none;
}

#closely-cover .schedule ol li.open .details {
    display: block;
}

@media(min-width: 640px) {
    #closely-cover {
        display: flex;
        margin-top: 10em;
    }

    #closely-cover hgroup {
        position: sticky;
        height: fit-content;
        top: 96px;
        left: 0;
        min-width: 15em;
    }

    #closely-cover hgroup h2 {
        font-size: 2em;
    }

    #closely-cover .schedule ol {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 0 16px;
    }

    #closely-cover .schedule ol li {
        cursor: default;
        display: flex;
        flex-direction: column;
    }

    #closely-cover .schedule ol li:nth-of-type(even):before {
        display: none;
    }

    #closely-cover .schedule ol li .details {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    #closely-cover .schedule ol li .details p {
        flex-grow: 1;
    }
    
    #closely-cover .schedule ol li .summary::after {
        display: none;
    }
    
    #closely-cover .schedule .info img {
        max-width: 200px
    }
}

@media(min-width: 884px) {
    #closely-cover .schedule ol li::before {
        position: absolute;
        content: '';
        width: 20px;
        height: 64px;
        background: url(border.jpg);
        background-size: cover;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        z-index: -10;
    }
}

@media(min-width: 960px) {
    #closely-cover {
        margin-top: 0;
    }

    #closely-cover hgroup {
        width: 50%;
    }
    
    #closely-cover .schedule ol {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    #closely-cover .schedule .info {
        display: flex;
        gap: 40px;
        padding: 40px 20px 40px 40px;
        margin: 0;
    }

    #closely-cover .schedule .info img,
    #closely-cover .schedule .info .txt-area {
        text-align: left;
        box-sizing: border-box;
    }

    #closely-cover .schedule .info .join {
        padding: 1em 0 1.2em 0;
    }
}

/***************************************************

本音を聞いてみた

****************************************************/


#interview .info {
    text-align: center;
}

#interview .info p {
    margin: 0;
}

#interview .info .name {
    font-size: 1.75em;
    margin-right: 8px;
}

#interview .info .join {
    color: #01009D;
}

#interview .info img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 20%;
}

#interview .item {
    padding: 24px 0;
    position: relative;
}

#interview .item::before {
    position: absolute;
    content: '';
    width: min(55%, 200px);
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #01009D;
}

#interview .item h3 {
    font-size: clamp(26px, 5vw, 32px);
    color: #01009D;
}

@media(min-width: 640px) {
    #interview .info img {
        height: 500px;
    }

    #interview .item {
        display: flex;
        justify-content: space-around;
    }

    #interview .item h3 {
        font-size: clamp(1.5em, 3vw, 32px);
        width: min(40%, 400px);
    }

    #interview .item p {
        width: calc(100% - 300px);
    }
}

/***********************************************

btn-area

************************************************/

@media(min-width: 640px) {
    .btn-area {
        display: flex;
        justify-content: space-around;
        max-width: 800px;
        margin: 0 auto;
    }
}