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

    FV

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

#topfv {
    position: relative;
    margin-bottom: 6em;
}

#topfv > hgroup {
    background: linear-gradient(to bottom, rgb(0 43 49 / 0) 0, rgb(0 43 49 / .3) 60%), url(fv.jpg);
    background-size: cover;
    background-position: 70% 20%;
    border-radius: 16px;
    height: clamp(300px, 70vh, 500px); 
    display: flex;
    padding: 16px 16px 32px;
    flex-direction: column;
    color: white;
    letter-spacing: .05em;
    font-family: var(--font-head);
}

#topfv > hgroup h1 {
    font-size: clamp(32px, 3vw, 48px);
    margin: auto 0 0;
    font-weight: 500;
    text-shadow: 0 0 6px rgb(0 0 0 / 1);
}

#topfv > hgroup > p {
    padding-left: clamp(24px, 7vw, 64px);
    position: relative;
    margin: 0;
    color: white;
    text-shadow: 0 0 3px rgb(0 0 0 / 1);
}

#topfv > hgroup > p::before {
    position: absolute;
    content: '';
    width: clamp(20px, 6vw, 48px);
    height: 1px;
    background: white;
    top: .8em;
    left: 0;
}

#topfv .news {
    position: absolute;
    content: '';
    top: calc(100% - 32px);
    right: 32px;
    width: calc(100% - 64px);
    max-width: 400px;
}

#topfv .news .box {
    background: white;
    box-shadow: var(--shadow-main2);
    border-radius: 0 16px 16px 16px;
    padding: 4px 16px;
    box-sizing: border-box;
}

#topfv .news h2 {
    font-size: 1rem;
    color: var(--color-main);
    margin: 0 0 -1px 0;
    background: white;
    border-radius: 16px 16px 0 0;
    padding: 8px 16px 0;
    display: block;
    width: fit-content;
}

#topfv .news .sum {
    border-bottom: solid 1px #777777;
    padding-bottom: 4px;
    margin-top: 8px;
    text-align: right;
    font-size: 0.75em;
    color: #777777;
    margin: 0;
}

#topfv .news .txt {
    margin: 4px 0;
}

@media (min-width: 768px) {
    #topfv {
        margin: 0 auto;
    }

    #topfv > hgroup {
        height: clamp(300px, 70vh, 500px);
        background-image: linear-gradient(to right, rgb(0 43 49 / .3) 0, rgb(0 43 49 / 0) 60%), url(fv.jpg);
    }

    #topfv .news {
        bottom: 32px;
        top: auto;
        width: 380px;
    }
}

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

    工場の当たり前を支える

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

#support .txt {
    max-width: 40em;
    margin: 1em auto;
}

#support .btn1 {
    margin: 1em auto;
}

#support .main-vis {
    width: calc(100% + 40px);
    aspect-ratio: 80 / 35;
    height: 300px;
    object-fit: contain;
    object-position: center;
    margin: 2em auto 2em -20px;
}

@media (min-width: 768px) {
    #support .con {
        display: flex;
    }

    #support .con > h2 {
        flex-basis: 9em;
        flex-shrink: 0;
    }

    #support .con > div {
        flex-grow: 1;
    }

    #support .btn1 {
        margin: 1em auto 1em 0;
    }

    #support .main-vis {
        height: 400px;
    }
}

@media (min-width: 1200px) {
    #support .main-vis {
        width: 100%;
        margin: 0;
    }
}

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

    強み

*********************************************************/
#strengths {
    background: var(--color-bg);
    background-blend-mode: multiply;
    background-size: 300px;
    background-repeat: repeat;
}

#strengths h2 {
    color: white;
}

#strengths .btn1 {
    border-color: white;
}

#strengths .btn1 p {
    color: white;
}

#strengths .grid-3-row {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#strengths .num-card .item .item-img {
    aspect-ratio: 3 / 1;
}

#strengths .num-card .item #st-1 {
    object-position: 50% 28%;
}

@media (min-width: 640px) {
    #strengths .intro {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 2em;
    }
}

@media (min-width: 800px) {
    #strengths .grid-3-row {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

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

    加工事例

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

#case {
    margin: 2em auto 4em;
}

@media (min-width: 640px) {
    #case .intro {
        display: grid;
        grid-template-areas: 
        "head txt"
        "head btn";
        margin: 1em auto 2em;
        gap: 1em 2em;
    }

    #case .intro .txt {
        grid-area: txt;
        margin: 0;
    }

    #case .intro h2 {
        grid-area: head;
        margin: 0;
        text-align: right;
    }

    #case .intro .btn1 {
        grid-area: btn;
        margin: 0;
    }
}