@charset "utf-8";

/* ==========================================================================
   Commitment Page Styles
   ========================================================================== */

/* ヒーローセクション */
.commitment-hero {
    background: url(../img/bg_0.jpg) no-repeat center center / cover;
    padding: 100px 0;
    color: #fff;
    position: relative;
    margin-top: 5em;
}

.commitment-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.commitment-hero__inner {
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.commitment-hero__text {
    line-height: 2;
    font-weight: 500;
}

/* ロゴ */
.commitment-logo {
    text-align: center;
    margin-bottom: 40px;
}

.commitment-logo img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* 説明テキスト */
.commitment-desc {
    margin-bottom: 60px;
}

.commitment-desc p {
    line-height: 1.9;
    margin-bottom: 1em;
}

/* ============================================================
   選ばれる 3つの理由
   ============================================================ */
.commitment-reasons {
    display: flex;
    gap: 20px;
}

.commitment-reason__item {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    aspect-ratio: 1 / 1;
}

.commitment-reason__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.commitment-reason__item--1 { background: url(../img/bg_1.jpg) no-repeat center center / cover; }
.commitment-reason__item--2 { background: url(../img/bg_2.jpg) no-repeat center center / cover; }
.commitment-reason__item--3 { background: url(../img/bg_3.jpg) no-repeat center center / cover; }

.commitment-reason__body {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    /* 内側ボーダー */
    outline: 1px solid rgba(255, 255, 255, 0.45);
    outline-offset: -12px;    
}

.commitment-reason__sub {
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    margin-bottom: 8px;
    margin-top: 60px;
    font-size: 2rem;
}

.commitment-reason__title {
    font-family: "Zen Old Mincho", serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.commitment-reason__text {
    line-height: 1.9;
}

.commitment-reason__num {
    margin-top: auto;
    font-family: "Zen Old Mincho", serif;
    font-size: 12rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    text-align: left;
    /* 内側ボーダーからはみ出る大きな数字 */
    margin-left: -8px;
    margin-bottom: -8px;
}

/* ============================================================
   受賞歴
   ============================================================ */
.commitment-awards {
    margin-bottom: 80px;
}

.commitment-awards__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.commitment-awards__grid figure {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.commitment-awards__grid figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.commitment-awards__grid figure:hover img {
    transform: scale(1.03);
}

.commitment-awards__text {
    line-height: 1.9;
}

.commitment-awards__text p {
    margin-bottom: 1em;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media screen and (max-width: 767px) {
    .commitment-reasons {
        flex-direction: column;
    }

    .commitment-reason__item {
        min-height: 220px;
    }

    .commitment-awards__grid {
        grid-template-columns: 1fr;
    }

    .commitment-hero__text {
        font-size: 0.875rem;
    }
}
