body#index{
    display: grid;
}
header{
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    align-self: flex-start;
}



.hero {
    width: 100%;
    height: 768px;
    grid-column: 1;
    grid-row: 1;
    position: relative;
    overflow: hidden;
    display: grid;

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

    .slide.active {
        opacity: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    div{
        grid-column: 1;
        grid-row: 1;
        z-index: 2;
        align-self: center;
        justify-self: center;

        span{
            display: block;
            font-size: 2.5rem;
            background: var(--clear-color);
            padding: 1rem 3rem;
        }
        .text-hero01{
            transform: translate(-20rem,4rem);
        }
        .text-hero02{
            transform: translate(-15rem,5rem);
        }
    }

}
@media (max-width: 1200px){
    .hero{
        height: 600px;
    }
    .hero img{
        height: 600px;
    }
}
@media (max-width: 960px){
    .hero {
        div{
            .text-hero01{transform: translate(0,0);}
            .text-hero02{transform: translate(0,1rem);}
        }
    }
}



/*
.hero{
    width: 100vw;
    height: 768px;
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    display: grid;
    position: relative;
}
.hero img{
    width: 100vw;
    height: 768px;
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    object-fit: cover;
    object-position: top;
}
.hero figcaption{
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    align-self: center;
    justify-self: center;
}
.hero span{
    display: block;
    font-size: 2.5rem;
    background: var(--clear-color);
    padding: 1rem 3rem;
}
.text-hero01{
    transform: translate(-20rem,4rem);
}
.text-hero02{
    transform: translate(-15rem,5rem);
}
.annotation{
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
}
@media (max-width: 1200px){
    .hero{
        height: 600px;
    }
    .hero img{
        height: 600px;
    }
}
@media (max-width: 960px){
    .text-hero01{
        transform: translate(0,0);
    }
    .text-hero02{
        transform: translate(0,1rem);
    }
}
*/

article{
    display: grid;
    gap: 5rem;
    padding: 5rem 0;
}
@media (max-width: 768px){
    article{
        gap: 3rem;
        padding: 3rem 0;
    }
}


.company{
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 34.375rem 1fr;
    gap: 6rem;
}
.company img{
    object-fit: cover;
    height: 42.5rem;
}
.company div{
    height: 37.5rem;
    display: grid; 
}
.company h2{
    font-size: .9rem;
    color: var(--main-color);
    text-decoration: underline;
    font-weight: normal;
}
.company h3{
    font-family: 'Noto Serif JP', serif;
    font-weight: normal;
    font-size: 1.5rem;
    line-height: 2;
}
.company p{
    text-align: justify;
    line-height: 2;
}
.btn-company{
    background: var(--accent-color);
    width: 15rem;
    line-height: 70px !important;
    align-self: flex-end;
}
.btn-company a{
    color: var(--clear-color);
    text-align: center;
}
@media (max-width: 960px){
    .company{
        grid-template-columns: repeat(2,1fr);
        gap: 3rem;
    }
}
@media (max-width: 768px){
    .company{
        display: block;
    }
    .company figure{
        margin: 0 auto 2rem;
    }
    .company img{
        height: auto;
    }
    .company div{
        display: block;
        height: auto;
    }
    .company h3{
        margin: 1rem auto;
    }
    .company p{
        line-height: 1.7;
    }
    .btn-company{
        margin-top: 2rem;
    }
}


.product{
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 5rem 33rem 5rem;
    grid-template-columns: calc((100% - 1100px)/2) repeat(2,16.875rem) auto;
}
.product div{
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    z-index: 3;
    background: var(--accent-color);
    padding: 7rem;
    display: grid;
}
.product figure{
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    z-index: 1;
    position: relative;
}
.product img{
    width: 100%;
    height: 38rem;
    object-fit: cover;
}
/*
.product picture::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: url(../images/product.webp) no-repeat;
    width: calc(55vw + 16.875rem);
    height: 38rem;
    background-size: cover;
    z-index: 2;
}
*/
.product h2{
    font-size: 2rem;
    font-weight: normal;
    color: var(--clear-color);
    letter-spacing: .3rem;
    text-align: center;
}
.product h2 span{
    display: block;
    font-size: .9rem;
    letter-spacing: 0;
}
.product p{
    text-align: justify;
    line-height: 2;
}
.btn-product{
    border: 1px solid var(--clear-color);
    width: 15rem;
    line-height: 70px !important;
    align-self: flex-end;
    justify-self: center;
}
.btn-product a{
    color: var(--clear-color);
    text-align: center;
}
@media (max-width: 768px){
    .product{
        display: block;
    }
    .product div{
        padding: 3rem;
    }
    .product img{
        height: auto;
    }
    .product picture::after{
        display: none;
    }
    .product h2{
        margin-bottom: 1rem;
    }
    .btn-product{
        margin-top: 2rem;
    }
}


.news{
    background: rgba(var(--main-color-opacity),.2);
    padding: 5rem 0;
}
.news section{
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    background: var(--clear-color);
    padding: 5rem;
    display: grid;
    grid-template-columns: 15rem 1fr;
    column-gap: 3.75rem;
}
.news h3{
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: .5rem;
    grid-column: 1;
    grid-row: 1;
}
.news h3 span{
    font-size: .9rem;
    color: var(--main-color);
    display: block;
}
.news ul{
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    gap: 3.125rem;
}
.news p{
    grid-column: 1;
    grid-row: 2;
    align-self: flex-end;
}
.news__list{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.news__list time{
    font-size: .9rem;
}
.news__list span{
    border: 1px solid var(--main-color);
    font-size: .8rem;
    padding: .5rem 1rem;
    white-space: nowrap;
}
.news__list a{
    color: var(--text-color);
}
.btn-news{
    background: var(--accent-color);
    width: 15rem;
    line-height: 70px;
}
.btn-news a{
    color: var(--clear-color);
    text-align: center;
}
@media (max-width: 768px){
    .news{
        padding: 3rem 0;
    }
    .news section{
        background: var(--clear-color);
        padding: 2rem;
        display: block;
    }
    .news h3{
        margin-bottom: 2rem;
    }
    .btn-news{
        margin-top: 2rem;
    }
}