@charset "UTF-8";
/* CSS Document */

/*下層MV*/
#company #lower_mv {
    background: url("../../assets/img/company/mv.webp") no-repeat;/*各ページごとに変更*/
    background-size: cover;
    background-position: center;
}
#company main {
    margin-top: 80px;/*各ページごとに変更*/
}

#message h2 {
    text-align: left;
    margin-bottom: 20px;
}

#message .wrap {
    display: flex;
    gap: 24px;
}
#message .text_wrap {
    width: 50%;
}
#message .image_wrap {
    width: calc(50% - 24px);
}

#message .text_wrap h2 + div {
    padding: 40px;
    border: 1px solid var(--LB-color);
}
#message .text_wrap b {
    font-size: 2.4rem;
    font-weight: 400;
    display: inline-block;
    margin-bottom: 24px;
}
#message .text_wrap p {
    font-weight: 300;
    line-height: 1.8;
    margin-top: 20px;
}
#message .text_wrap p:first-of-type {
    margin-top: 0;
}
#message .signature {
    margin-top: 24px;
}

@media (max-width: 768px) {
    #message .wrap {
        flex-direction: column;
    }
    #message .text_wrap {
        width: 100%;
    }
    #message .image_wrap {
        width: 80%;
        margin: 0 auto;
    }
    #message .text_wrap h2 + div {
        padding: 35px 20px;
    }
}



/*下層リンク*/
#related_links {
    background: rgb(48,188,235);
    background: linear-gradient(120deg, rgba(48,188,235,1) 0%, rgba(22,86,164,1) 58%);
    padding: 80px 0;
}
#related_links ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; 
}
#related_links ul li {
    display: flex;
    background: #FFFFFF;
    align-items: center;
}
/*
#related_links ul li:nth-of-type(n + 2) {
    margin-top: 24px;
}
*/
#related_links ul li .text {
    width: 55%;
    font-size: 1.8rem;
    letter-spacing: 1.6px;
    font-weight: 400;
}
#related_links ul li .image_wrap {
    width: 45%;
}
#related_links ul li .image_wrap img {
    vertical-align: middle;
    aspect-ratio: 4.6 / 3;
    object-fit: cover;
}

#related_links ul li  .text span {
    padding-bottom: 8px;
    border-bottom: 1px solid #DDD;
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
    display: block;
/*    width: calc(100% - 88px);*/
}
#related_links ul li .text span::after {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--LB-color);
    border-right: 2px solid var(--LB-color);
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: calc(50% - 4px);
    right: 10px;
    border-radius: 1px;
    transition: 0.2s ease-in-out;
}

#related_links ul li a {
    transition: 0.3s;
}
#related_links ul li a:hover {
    color: #4D4D4D;
}
#related_links ul li a:hover span::after {
    right: 4px;
}

@media (max-width: 1080px) {
    #related_links ul li .text {
        font-size: 1.6rem;
    }
    #related_links ul li  .text span {
        margin-left: 15px;
        margin-right: 15px;
    }
}
@media (max-width: 900px) {
    #related_links ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; 
    }
}
@media (max-width: 640px) {
    #related_links ul {
        grid-template-columns: 1fr;
        gap: 15px; 
    }
}