@charset "UTF-8";

.greeting .h1::before{
    background-image: url(../assets/img/greeting_bg_sp.webp);
}
.greeting .h1 p{
    opacity: .5;
}
.greeting .page-head__logo{
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    width: 10rem;
    pointer-events: none;
    pointer-events: none;
}

/* 経営理念 */
.philosophy{
    padding: 0 1rem;
}
.philosophy .tit_b{
    margin: 0 -1rem 3rem;
}

.philosophy__catch{
    position: relative;
    margin-bottom: 5.4rem;
}
.philosophy__mark{
    position: absolute;
    top: 4.5rem;
    right: 0;
    width: 12rem;
    opacity: .4;
    transform: translateY(-50%);
}
.philosophy__catch p{
    position: relative;
    font-family: "Noto Serif JP";
    font-weight: bold;
    font-size: 1.6rem;
    line-height: 50px;
    color: #000;
    text-align: center;
    white-space: nowrap;
}
.philosophy__catch em,
.philosophy__catch strong{
    font-size: 2.5rem;
    font-style: normal;
}
.philosophy__catch em{
    color: var(--main);
}

.philosophy__block{
    margin-bottom: 2.75rem;
}
.philosophy__heading{
    position: relative;
    display: flex;
    align-items: center;
    color: var(--main);
    font-size: 1.375rem;
    font-weight: bold;
    line-height: 26px;
    white-space: nowrap;
    margin-bottom: 2.5rem;
}
.philosophy__en{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4.7rem;
    opacity: .1;
    pointer-events: none;
}
.philosophy__heading img{
    height: 1px;
    margin-left: auto;
    margin-right: -1rem;
}
.philosophy__heading img[width="182"]{
    width: 10.5rem;
}
.philosophy__heading img[width="128"]{
    width: 6.5rem;
}
.philosophy__block--mission .philosophy__en{
    left: 3.6rem;
}
.philosophy__block--vision .philosophy__heading{
    flex-direction: row-reverse;
}
.philosophy__block--vision .philosophy__heading img{
    margin-left: -1rem;
    margin-right: auto;
}
.philosophy__block--vision .philosophy__en{
    left: 0;
}
.philosophy__block--values .philosophy__en{
    left: 5.5rem;
}

.philosophy__body{
    display: flex;
    gap: .6rem;
}
.philosophy__text{
    flex: 1;
    color: #000;
    font-weight: 500;
    line-height: 26px;
}
.philosophy__accent{
    color: var(--main);
}
.philosophy__body .philosophy__img{
    width: 177px;
    flex-shrink: 0;
    aspect-ratio: 177 / 200;
}
.philosophy__img img{
    height: 100%;
    object-fit: cover;
}
.philosophy__img--wide{
    aspect-ratio: 370 / 187;
    margin-bottom: 2rem;
}

.philosophy__values{
    counter-reset: values;
}
.philosophy__values li{
    position: relative;
    counter-increment: values;
    min-height: 50px;
    padding-left: 66px;
    color: #000;
    font-weight: 500;
    line-height: 26px;
    margin-bottom: 1.25rem;
}
.philosophy__values li::before{
    content: counter(values);
    position: absolute;
    top: 2px;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--main);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 50px;
    text-align: center;
}

.philosophy__compliance{
    margin-top: 6rem;
    font-family: "Noto Serif JP";
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 36px;
    color: #000;
    text-align: center;
}
.philosophy__compliance u{
    text-decoration-skip-ink: none;
}

/* 代表メッセージ */
.message{
    position: relative;
    margin-top: 6rem;
    padding: 3rem 0 2.5rem;
    background: var(--main);
}


.message::before{
    content: "";
    position: absolute;
    inset: 0;
    background: url(../assets/img/ubout-greeting-texture.webp) repeat-y center top / 100% auto;
    opacity: .1;
    pointer-events: none;
}

.message .tit_b{
    color: #fff;
}
.message .tit_b::before,.message .tit_b::after{
    background: #fff;
}
.message figure{
    position: absolute;
    right: 1rem;
    width: 8rem;
    top: 2rem;
    overflow: hidden;
}
.message__wave{
    position: absolute;
    top: -99px;
    left: -68px;
    width: 553px;
    height: 99px;
    overflow: hidden;
    opacity: .8;
    pointer-events: none;
}
.message__wave img{
    position: absolute;
    top: -184px;
    left: 0;
}
.message .inner{
    position: relative;
}
.message p{
    color: #fff;
}
.message__lead{
    max-width: 13rem;
    font-family: "Noto Serif JP";
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 32px;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    margin-bottom: 2rem;
}
.message__text p{
    font-weight: bold;
    line-height: 26px;
}
.message__text p + p{
    margin-top: 26px;
}
.message__sign{
    margin-top: 1.6rem;
    font-family: "Noto Serif JP";
    font-weight: bold;
    font-size: 1.125rem;
    line-height: 32px;
    text-align: right;
}


/* ==========================================================================
   TAB（768px〜）
   ========================================================================== */
@media (min-width: 768px){
    /* ページタイトル */
    .greeting .page-head__logo{
        top: 3rem;
        right: 2rem;
        width: 15rem;
    }

    /* 経営理念 */
    .philosophy{
        max-width: 50rem;
        margin: 0 auto;
        padding: 0 2rem;
    }
    .philosophy .tit_b{
        margin: 0 0 3.5rem;
    }
    .philosophy__catch{
        margin-bottom: 7rem;
    }
    .philosophy__mark{
        right: 0rem;
        width: 18rem;
        top: 6rem;
    }
    .philosophy__catch p{
        font-size: 3em;
        line-height: 4.6rem;
    }
    .philosophy__catch em,
    .philosophy__catch strong{
        font-size: 4rem;
    }

    .philosophy__block{
        margin-bottom: 5rem;
    }
    .philosophy__heading{
        font-size: 1.6rem;
        line-height: 1.6;
        margin-bottom: 3rem;
    }
    .philosophy__en{
        font-size: 6.5rem;
    }
    .philosophy__heading img[width="182"]{
        width: 32rem;
    }
        .philosophy__heading img[width="128"]{
            width: 27rem;
        }
    .philosophy__heading img{
        margin-right: -2rem;
    }
    .philosophy__block--vision .philosophy__heading img{
        margin-left: -2rem;
    }
    .philosophy__block--mission .philosophy__en{
        text-align: right;
        right: -.5rem;
    }
    .philosophy__block--values .philosophy__en{
        right: -.5rem;
        text-align: right;
    }

    .philosophy__body{
        align-items: center;
        gap: 2.5rem;
    }
    .philosophy__text{
        font-size: 1.1rem;
        line-height: 2;
    }
    .philosophy__body .philosophy__img{
        width: 45%;
        aspect-ratio: 4 / 3;
    }
    .philosophy__img--wide{
        margin-bottom: 3rem;
    }

    .philosophy__values{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 2.5rem;
    }
    .philosophy__values li{
        min-height: 3.5rem;
        padding-top: .3rem;
        padding-left: 4.8rem;
        line-height: 1.8;
        margin-bottom: 0;
    }
    .philosophy__values li::before{
        top: 0;
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.6rem;
        line-height: 3.5rem;
    }

    .philosophy__compliance{
        margin-top: 7rem;
        font-size: 1.7rem;
        line-height: 1.9;
    }

    /* 代表メッセージ */
    .message{
        margin-top: 8rem;
        padding: 5rem 0 4.5rem;
    }
    .message figure{
        right: 2rem;
        top: 0rem;
        width: 16rem;
    }
    .message__lead{
        max-width: 26rem;
        font-size: 1.6rem;
        line-height: 3rem;
        margin-bottom: 4rem;
        margin-top: 4rem;
    }
    .message__text p{
        font-size: 1.05rem;
        line-height: 2;
    }
    .message__text p + p{
        margin-top: 2rem;
    }
    .message__sign{
        margin-top: 2.5rem;
        font-size: 1.3rem;
        line-height: 2.2rem;
    }
}

@media (min-width: 1024px){
    .greeting .h1::before{
        background-image: url(../assets/img/greeting_bg_pc.webp);
        transform: none;
    }
    .greeting .page-head__logo{
        width: 30rem;
        right: 8rem;
        top: 6rem;
    }

    /* 経営理念 */
    .philosophy{
        max-width: 1000px;
    }

    /* 代表メッセージ */
    .message figure{
        width: 20rem;
    }
    .philosophy__en{
        font-size: 8rem;
    }
    .philosophy__block--mission .philosophy__en{
        text-align: left;
        right: unset;
        left: 0;
    }
    .philosophy__block--mission h3{
        padding-left: 10rem;
    }
    .philosophy__block--vision .philosophy__en{
        left: unset;
        right: 0;
    }
     .philosophy__block--vision h3{
        padding-right: 7.5rem;
     }
    .philosophy__block--values .philosophy__en{
        left: 0;
        right: unset;
        text-align: left;
    }
    .philosophy__block--values  h3{
        padding-left: 6rem;
    }
    .philosophy__img--wide{
    width: 800px;
    margin: 5rem auto 4rem;
    border-radius: 1rem;
    overflow: hidden;
    }
    .philosophy__compliance{
        font-size: 2.2rem;
    }
    .message{
        padding: 6rem 0 8rem;
    }
    .message__lead{
        max-width: 36rem;
        font-size: 1.8rem;
        line-height: 4rem;
        margin-bottom: 8rem;
        margin-top: 5rem;
    }
    .message figure{
        width: 22rem;
        right: 2rem;
        top: -2rem;
    }

}

@media (min-width: 1400px){
    /* ロゴは中央1400px幅の右端より外へ出さない */
    .greeting .page-head__logo{
        right: calc((100% - 1400px) / 2 - 5rem);
    }

}
