@charset "UTF-8";

/* =========================================================
   style.css - みらい工務店の想い（message）専用
   ページタイトル帯 / 共通ボタン / フッターは base.css 側にある
   ========================================================= */

/* =========================================================
   わたしたちは、地域と人に寄り添う小さな工務店
   ========================================================= */

.mission {
    padding-top: 109px;
}

.mission__inner {
    text-align: center;
}

.mission__title {
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.45;
}

.mission__lead {
    margin-top: 50px;
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

/* 写真だけ .inner より狭い（Figma: 731px） */
.mission__image {
    width: 90%;
    max-width: 731px;
    margin: 57px auto 0;
}

.mission__image img {
    width: 100%;
    aspect-ratio: 731 / 406;
    object-fit: cover;
}

/* =========================================================
   家をつくる前に、信頼をつくる
   ========================================================= */

.trust {
    margin-top: 139px;
}

/*
    Figma の文章カラムは 540px。ここが少しでも狭いと 1 行目が折り返して
    デザインと改行位置がずれるので、写真幅を固定して文章側に幅を残す。
*/
.trust__inner {
    display: flex;
    align-items: center;
    gap: 90px;
}

.trust__body {
    flex-grow: 1;
}

/*
    Figma では見出しだけ本文より約 40px 右にずれている。
    誤差ではなく字下げに見えるので、そのまま再現する。
*/
.trust__title {
    padding-left: 40px;
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.45;
}

.trust__text {
    margin-top: 56px;
    color: #3b2a1a;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

.trust__image {
    flex: 0 0 408px;
}

.trust__image img {
    width: 100%;
    aspect-ratio: 408 / 382;
    object-fit: cover;
}

/* =========================================================
   スタッフ紹介
   ========================================================= */

/*
    こだわりページの「スタッフを見る」から #staff で飛んでくるので、
    固定ヘッダー（92px）に見出しが隠れないよう余白を確保しておく。
*/
.staff {
    margin-top: 251px;
    scroll-margin-top: 92px;
}

/* カードは 3 列で 1298px。このページだけ .inner より広い */
.staff__list {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 29px;
    width: 90%;
    max-width: 1298px;
    margin: 56px auto 0;
}

.staff__item {
    width: calc((100% - 58px) / 3);
}

.staff__image {
    width: 100%;
    aspect-ratio: 413 / 233;
    object-fit: cover;
}

.staff__role {
    margin-top: 33px;
    color: #b8976a;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.45;
}

.staff__name {
    margin-top: 20px;
    color: #3b2a1a;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

.staff__comment {
    margin-top: 37px;
    color: #3b2a1a;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

/* =========================================================
   お問い合わせ帯
   本体は base.css の .contact-cta。ここは上の余白だけ。
   ========================================================= */

.contact-cta {
    margin-top: 172px;
}

/* =========================================================
   スクロールで浮かび上がる演出
   ========================================================= */

.js-fadeIn {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.js-fadeIn.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   SP（768px 以下）
   ========================================================= */

@media (max-width: 768px) {

    /* --- 想い --- */

    .mission {
        padding-top: 56px;
    }

    .mission__title {
        font-size: 20px;
    }

    .mission__lead {
        margin-top: 28px;
        font-size: 16px;
        line-height: 1.8;
    }

    .mission__image {
        width: 88%;
        margin-top: 40px;
    }

    /* --- 信頼 --- */

    .trust {
        margin-top: 80px;
    }

    /* SP は写真を上、文章を下に積む */
    .trust__inner {
        flex-direction: column;
        gap: 32px;
    }

    .trust__title {
        padding-left: 0;
        font-size: 20px;
        text-align: center;
    }

    .trust__text {
        margin-top: 24px;
        font-size: 16px;
        line-height: 1.8;
    }

    .trust__image {
        order: -1;
        flex: 0 0 auto;
        width: 100%;
    }

    .trust__image img {
        aspect-ratio: 4 / 3;
    }

    /* --- スタッフ --- */

    .staff {
        margin-top: 90px;
        /* SP はヘッダーが 64px */
        scroll-margin-top: 64px;
    }

    .staff__list {
        gap: 48px;
        width: 88%;
        margin-top: 40px;
    }

    .staff__item {
        width: 100%;
    }

    .staff__role {
        margin-top: 20px;
        font-size: 15px;
    }

    .staff__name {
        margin-top: 8px;
        font-size: 18px;
    }

    .staff__comment {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.8;
    }

    /* --- お問い合わせ帯 --- */

    .contact-cta {
        margin-top: 90px;
    }
}

/* =========================================================
   小さめのスマホ（480px 以下）
   デザインどおりの改行位置だと 1 行が画面幅を超えるので、
   このサイズからは <br> を無効にして自然折り返しに任せる。
   ========================================================= */

@media (max-width: 480px) {

    .mission__lead br,
    .trust__text br,
    .staff__comment br,
    .contact-cta__text br {
        display: none;
    }
}

/* =========================================================
   アニメーション抑制
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .js-fadeIn {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
