#fv {
    background-image: url(../vision.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 20%;
}

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

    about

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

@media(min-width: 640px) {
    #about {
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
    }

    #about hgroup {
        width: min(40%,400px);
    }

    #about > p {
        width: 48%;
        margin-top: calc(32px + 1em);
    }
}

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

recruit

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

#recruit {
    background: url(recruit-back.jpg);
    background-size: cover;
    background-position: center;
}

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

    message

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

#message img.ptr {
    display: block;
    width: min(60%, 300px);
    margin: 16px auto;
}

#message h3 {
    color: #010088;
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.5em;
    font-weight: 500;
}

#message .sign {
    width: min(90%, 300px);
    margin: 16px 0 16px auto;
    display: block;
}

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

    #message .item:nth-of-type(1) {
        width: min(48%, 300px);
        box-sizing: border-box;
    }

    #message .item:nth-of-type(2) {
        width: 48%;
        box-sizing: border-box;
    }

    #message .item img.ptr {
        width: 100%;
    }
    
    #message h3 {
        margin-top: calc(32px + 1em)
    }
}

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

    数字で見る

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

#numbers .inner h3 {
    color: #010088;
    font-size: clamp(20px, 4vw, 24px);
}

#numbers .nums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 2.5fr;
    gap: 0 2%;
}

#numbers .nums > img,
#numbers .nums2 > img {
    width: 90%;
    height: 240px;
    border: solid 2px #0000FB;
    margin: 16px auto;
    object-fit: contain;
}

#numbers .nums > picture {
    width: 90%;
    height: 500px;
    border: solid 2px #0000FB;
    margin: 16px auto;
    object-fit: contain;
}

#numbers .nums > picture img,
#numbers .nums > picture source {
    height:  100%;
}

#numbers .nums2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0 2%;
}

#numbers .nums2 > img {
    max-width: 360px;
}

@media(min-width: 500px) {
    #numbers .nums {
        grid-template-areas: 
        "a b"
        "c d"
        "e f"
        ". f";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    #numbers .nums > img,
    #numbers .nums2 > img {
        display: block;
        width: 100%;
        height: auto;
    }

    #numbers .nums > img:nth-of-type(1) {
        grid-area: a;
    }

    #numbers .nums > img:nth-of-type(2) {
        grid-area: b;
    }

    #numbers .nums > img:nth-of-type(3) {
        grid-area: c;
    }

    #numbers .nums > img:nth-of-type(4) {
        grid-area: d;
    }

    #numbers .nums > img:nth-of-type(5) {
        grid-area: e;
    }

    #numbers .nums > picture {
        display: block;
        grid-area: f;
        height: auto;
        width: 100%;
    }

    #numbers .nums > picture img,
    #numbers .nums > picture source {
        width:  100%;
        object-fit: contain;
    } 
}

@media(min-width: 800px) {
    #numbers .nums {
        grid-template-areas: 
        "a b c"
        "d e f"
        ". . f";
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(min-width: 1024px) {
    #numbers .nums {
        grid-template-areas: 
        "a b c d"
        "e f f f";
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

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

    hitrory

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


#history img.h-img {
    width: min(100%, 500px);
    margin: 16px auto;
    display: block;
}

#history dl dt {
    font-size: 1.5em;
    color: #01009D;
    padding-left: 48px;
    position: relative;
}

#history dl > div {
    padding-left: 18px;
}

#history dl dt::before {
    position: absolute;
    content: '';
    width: 20px;
    height: 20px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: #0000FB;
}

#history dl dd {
    padding: 20px 0 20px 48px;
    margin: 4px 0;
    position: relative;
}

#history dl dd::before {
    position: absolute;
    content: '';
    width: 3px;
    height: 100%;
    top: 0;
    left: 10px;
    transform: translateX(-50%);
    background: #0000FB;
}

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

    #history hgroup {
        width: 300px;
        position: sticky;
        top: 96px;
        left: 0;
        height: fit-content;
    }

    #history .right {
        width: calc(100% - 348px);
    }

    #history picture source {
        width: 100%;
        display: block;
    }
}

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

    会社概要

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

#company {
    background: #EFF8FF;
}

#company dl div {
    margin: 16px 0;
    text-align: center;
    border: solid 1px black;
}

#company dl div dt {
    padding: 8px 0;
    border-bottom: solid 1px black;
    background: #F5F5F5;
}

#company dl div dd {
    padding: 16px 8px;
    background: white;
    margin: 0;
}

#company dl div dd address {
    font-style: normal;
}

#company dl div dd a {
    display: block;
    width: min(90%, 240px);
    text-decoration: none;
    color: #01009D;
    border: solid 2px #010088;
    padding: 8px;
    margin: 16px auto;
    text-align: center;
    transition: .2s;
}

#company dl div dd a:hover {
    background: #010088;
    color:white;
}

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

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

    #company > div.content hgroup {
        width: 300px;
    }

    #company > div.content dl {
        width: 60%;
    }

    #company .btn-wrp {
        display: flex;
        max-width: 700px;
        margin: 16px auto;
    }
}

@media(min-width: 768px) {
    #company dl div {
        display: flex;
        margin: 0;
    }

    #company dl div dt {
        width: 30%;
        border-right: solid 1px black;
        border-bottom: none;
        text-align: left;
        padding: 16px 32px;
        box-sizing: border-box;
    }

    #company dl div dd {
        width: 70%;
        text-align: left;
    }
}