/* ============================
	top-news
============================ */
#top-news .content-width {
    width: 50%;
    margin: 0 0 0 auto;
}

#top-news .content-width .top-news-inner {
    display: flex;
    padding-top: 30px;
    padding-right: 50px;
    border-top: 1px solid #707070;
    gap: 30px 50px;
}

@media screen and (min-width: 1024px) {
    #top-news .content-width .top-news-inner {
        flex-wrap: wrap;
    }
}

#top-news .content-width .top-news-inner .sec-ttl-box {
    flex-shrink: 0;
    margin-bottom: 0;
}

#top-news .content-width .top-news-inner .content-box {
    flex-grow: 1;
}

@media screen and (min-width: 1024px) {
    #top-news .post-cat {
        background-color: #fff;
    }
}

@media screen and (max-width: 1023px) {
    #top-news .content-width {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    #top-news .content-width .top-news-inner {
        padding-right: 0;
    }
}

@media screen and (max-width: 767px) {
    #top-news .content-width .top-news-inner {
        flex-direction: column;
    }
}

/* ============================
	top-culture
============================ */
#top-culture .sec-inner {
    padding-top: 60px;
    padding-bottom: 0;
}

#top-culture .top-culture-content {
    display: flex;
    flex-direction: row-reverse;
}

#top-culture .top-culture-content .text-box {
    width: 50%;
    padding-top: 0;
    padding-right: 100px;
    padding-left: 20px;
    box-sizing: border-box;
    max-width: 640px;
}

#top-culture .top-culture-content .img-box {
    width: 50%;
    max-height: 650px;
}

#top-culture .top-culture-content .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1023px) {
    #top-culture .sec-inner {
        padding-top: 0;
        padding-bottom: 100px;
    }

    #top-culture .top-culture-content {
        flex-direction: column;
    }

    #top-culture .top-culture-content .text-box {
        width: 100%;
        padding-top: 50px;
        padding-right: 20px;
        max-width: initial;
    }

    #top-culture .top-culture-content .img-box {
        width: 100%;
        height: 375px;
    }
}

@media screen and (max-width: 767px) {
    #top-culture .sec-inner {
        padding-bottom: 70px;
    }
}

/* ============================
	top-business
============================ */
#top-business {
    position: relative;
}

#top-business::after {
    content: "";
    width: 100%;
    height: calc(100% + 200px);
    background: url('../images/home/top_business_bg.png') no-repeat center / cover;
    position: absolute;
    top: -100px;
    left: 0;
    z-index: -1;
}

#top-business .content-width {
    max-width: 1400px;
}

#top-business .top-business-content {
    display: flex;
}

#top-business .top-business-content.environment {
    flex-direction: row-reverse;
}

#top-business .top-business-content .img-box {
    width: calc(50% + 48px);
    max-height: 500px;
}

#top-business .top-business-content .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#top-business .top-business-content .text-box {
    width: calc(50% - 48px);
    box-sizing: border-box;
}

#top-business .top-business-content.cast-materials .text-box {
    padding-top: 45px;
}

#top-business .top-business-content.environment .text-box {
    padding-bottom: 45px;
}

#top-business .top-business-content .text-box .text-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    height: 100%;
    padding: 50px 65px 50px;
    position: relative;
}

#top-business .top-business-content.cast-materials .text-box .text-inner::after {
    content: "鋳材部";
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    font-size: 2.2rem;
    letter-spacing: 0.4em;
    line-height: 1;
    width: 96px;
    height: 100%;
    background-color: #ddd;
    position: absolute;
    top: 0;
    left: -96px;
}

#top-business .top-business-content.environment .text-box .text-inner::after {
    content: "環境部";
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    font-size: 2.2rem;
    letter-spacing: 0.4em;
    line-height: 1;
    width: 96px;
    height: 100%;
    background-color: #F4F4F4;
    position: absolute;
    top: 0;
    right: -96px;
}

@media screen and (max-width: 1023px) {
    #top-business::after {
        height: 100%;
        top: 0;
    }

    #top-business .top-business-content + .top-business-content {
        margin-top: 60px;
    }

    #top-business .top-business-content,
    #top-business .top-business-content.environment {
        flex-direction: column;
    }

    #top-business .top-business-content .img-box {
        width: 100%;
        aspect-ratio: 327 / 225;
    }

    #top-business .top-business-content .text-box {
        width: 100%;
    }

    #top-business .top-business-content.cast-materials .text-box {
        padding-top: 0;
    }

    #top-business .top-business-content.environment .text-box {
        padding-bottom: 0;
    }

    #top-business .top-business-content .text-box .text-inner {
        padding: 60px 30px 40px;
    }

    #top-business .top-business-content.cast-materials .text-box .text-inner::after {
        height: 140px;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
    }

    #top-business .top-business-content.environment .text-box .text-inner::after {
        height: 140px;
        top: -100px;
        right: unset;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 767px) {
    #top-business .sec-inner {
        padding-bottom: 70px;
    }

    #top-business .top-business-content.cast-materials .text-box .text-inner::after {
        font-size: 2rem;
    }

    #top-business .top-business-content.environment .text-box .text-inner::after {
        font-size: 2rem;
    }
}

/* ============================
	top-shimoda-farm
============================ */
#top-shimoda-farm .sec-inner {
    padding-top: 0;
    padding-bottom: 150px;
}

#top-shimoda-farm .top-shimoda-farm-content {
    display: flex;
}

#top-shimoda-farm .top-shimoda-farm-content .text-box {
    width: 50%;
    padding-top: 200px;
    padding-left: 6%;
    padding-right: 20px;
    box-sizing: border-box;
    max-width: 640px;
}

#top-shimoda-farm .top-shimoda-farm-content .img-box {
    width: 50%;
    max-height: 720px;
}

#top-shimoda-farm .top-shimoda-farm-content .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1023px) {
    #top-shimoda-farm .sec-inner {
        padding-bottom: 100px;
    }
    
    #top-shimoda-farm .top-shimoda-farm-content {
        flex-direction: column;
    }

    #top-shimoda-farm .top-shimoda-farm-content .text-box {
        width: 100%;
        padding-top: 50px;
        padding-left: 20px;
        max-width: initial;
    }

    #top-shimoda-farm .top-shimoda-farm-content .img-box {
        width: 100%;
        height: 375px;
        max-height: 720px;
    }
}

@media screen and (max-width: 767px) {
    #top-shimoda-farm .sec-inner {
        padding-bottom: 70px;
    }
}

/* ============================
	top-recruit
============================ */
#top-recruit {
    background-color: #F4F4F4;
}

#top-recruit .top-recruit-content {
    display: flex;
    flex-direction: row-reverse;
}

#top-recruit .top-recruit-content .text-box {
    width: 50%;
    padding-right: 100px;
    padding-left: 20px;
    box-sizing: border-box;
    max-width: 640px;
}

#top-recruit .top-recruit-content .img-box {
    width: 50%;
    max-height: 573px;
    margin-top: -150px;
    display: flex;
    justify-content: space-between;
}

#top-recruit .top-recruit-content .img-box img {
    width: calc(50% - 9px);
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1023px) {
    #top-recruit .sec-inner {
        padding-top: 0;
    }

    #top-recruit .top-recruit-content {
        flex-direction: column;
    }

    #top-recruit .top-recruit-content .text-box {
        width: 100%;
        padding-top: 50px;
        padding-right: 20px;
        padding-left: 20px;
        max-width: initial;
    }

    #top-recruit .top-recruit-content .img-box {
        width: 100%;
        aspect-ratio: 375 / 298;
        margin-top: 0;
    }
}

@media screen and (max-width: 767px) {
    #top-recruit .top-recruit-content .img-box img {
        width: calc(50% - 5px);
    } 
}

/* ============================
	top-company
============================ */
#top-company .sec-inner {
    padding: 0;
}

#top-company .top-company-content {
    display: flex;
}

#top-company .top-company-content .text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding: 40px 20px 40px 100px;
    box-sizing: border-box;
    max-width: 640px;
}

#top-company .top-company-content .text-box .btn-box {
    margin-top: 0;
}

#top-company .top-company-content .img-box {
    width: 50%;
    max-height: 500px;
}

#top-company .top-company-content .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1023px) {
    #top-company .top-company-content {
        flex-direction: column;
    }

    #top-company .top-company-content .text-box {
        width: 100%;
        padding: 50px 20px 80px 20px;
        max-width: initial;
    }

    #top-company .top-company-content .img-box {
        width: 100%;
        aspect-ratio: 375 / 260;
    }
}

@media screen and (max-width: 767px) {
    #top-company .top-company-content .text-box {
        padding: 50px 20px 70px 20px;
    }
}