@charset "UTF-8";

/* =========================================================
   style.css - 販売内容（products）専用
   ページタイトル帯 / 背景の帯 / お問い合わせ帯 / フッターは base.css 側にある
   ========================================================= */

/* =========================================================
   対応している工事・ご相談内容
   ========================================================= */

.services {
    padding-top: 203px;
}

/* 導入文だけ他より広い（Figma: 851px） */
.services__lead {
    width: 90%;
    max-width: 851px;
    margin-inline: auto;
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.45;
}

.services__lead em {
    color: #5a6b4a;
    font-style: normal;
}

.services__heading {
    margin-top: 183px;
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.45;
    text-align: center;
}

/* 各工事ブロックの共通の幅（Figma: 871px） */
.services__list {
    width: 90%;
    max-width: 871px;
    margin: 89px auto 0;
}

.service + .service {
    margin-top: 90px;
}

/* --- 写真 + 見出し + 説明 --- */

.service__row {
    display: flex;
    align-items: flex-start;
}

.service__image {
    flex: 0 0 422px;
    aspect-ratio: 422 / 248;
    object-fit: cover;
}

.service__body {
    flex: 0 0 386px;
    /* 写真の上端より少し下げた位置から始める */
    margin-top: 45px;
    margin-left: 63px;
}

.service__title {
    color: #5a6b4a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.45;
}

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

/* --- 主に対応していること --- */

.service__box {
    margin-top: 28px;
    padding: 20px 43px 31px;
    background-color: #fff2e0;
}

.service__box-title {
    color: #5a6b4a;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.45;
}

.service__points {
    margin-top: 23px;
}

.service__points li {
    color: #3b2a1a;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

/* =========================================================
   家づくりの流れ（薄緑帯）
   ========================================================= */

/*
    .band は既定で前の帯へ 74px 食い込ませるが、
    このページは前が地の色なので食い込ませず、素直に余白を取る。
*/
.flow-band {
    margin-top: 119px;
}

.flow {
    padding-top: 186px;
    padding-bottom: 358px;
}

.flow__heading {
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.45;
    text-align: center;
}

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

.flow__list {
    width: 90%;
    max-width: 919px;
    margin: 246px auto 0;
}

.flow__item {
    display: flex;
    align-items: flex-start;
}

.flow__item + .flow__item {
    margin-top: 100px;
}

/*
    見出し列は 236px。ステップ 01 と 06 の見出しはこれより長いが、
    中央揃えのまま左右へはみ出させることで丸の真下に来る（Figma と同じ位置）。
*/
.flow__head {
    flex: 0 0 236px;
    text-align: center;
}

.flow__num {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-inline: auto;
    border-radius: 50%;
    background-color: #5a6b4a;
    color: #fffcf6;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 0.9;
    letter-spacing: 0.4px;
}

.flow__num small {
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-weight: 700;
    font-size: 6px;
    line-height: 1.45;
    letter-spacing: normal;
}

.flow__title {
    margin-top: 27px;
    color: #3b2a1a;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.45;
    white-space: nowrap;
}

/*
    丸ではなく見出しの高さに揃えたいので、上余白で位置を合わせる。
    幅は残り全部（Figma 換算で 511px）。504px だとステップ 01 の
    1 行目が折り返してデザインと改行位置がずれる。
*/
.flow__text {
    flex: 1;
    margin-top: 77px;
    margin-left: 172px;
    color: #3b2a1a;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.45;
}

/* =========================================================
   お問い合わせ帯
   本体は base.css の .contact-cta。この帯は薄緑帯に直結するので余白なし。
   ========================================================= */

.contact-cta {
    margin-top: 0;
}

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

.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) {

    /* --- 対応している工事 --- */

    .services {
        padding-top: 56px;
    }

    .services__lead {
        width: 88%;
        font-size: 17px;
        line-height: 1.8;
    }

    .services__heading {
        margin-top: 72px;
        font-size: 22px;
    }

    .services__list {
        width: 88%;
        margin-top: 48px;
    }

    .service + .service {
        margin-top: 64px;
    }

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

    .service__image {
        flex: 0 0 auto;
        width: 100%;
    }

    .service__body {
        flex: 0 0 auto;
        margin: 20px 0 0;
    }

    .service__title {
        font-size: 22px;
    }

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

    .service__box {
        margin-top: 24px;
        padding: 20px 24px 24px;
    }

    .service__box-title {
        font-size: 17px;
    }

    .service__points {
        margin-top: 16px;
    }

    .service__points li {
        font-size: 15px;
        line-height: 1.8;
    }

    /* --- 家づくりの流れ --- */

    .flow-band {
        margin-top: 64px;
    }

    .flow {
        padding-top: 80px;
        padding-bottom: 90px;
    }

    .flow__heading {
        font-size: 22px;
    }

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

    .flow__list {
        width: 88%;
        margin-top: 64px;
    }

    /* SP は丸・見出し・説明を縦に積む */
    .flow__item {
        flex-direction: column;
        align-items: center;
    }

    .flow__item + .flow__item {
        margin-top: 48px;
    }

    .flow__head {
        flex: 0 0 auto;
    }

    .flow__title {
        margin-top: 16px;
        font-size: 17px;
        /* 縦積みでは折り返してよい */
        white-space: normal;
    }

    .flow__text {
        flex: 0 0 auto;
        margin: 12px 0 0;
        font-size: 16px;
        line-height: 1.8;
        text-align: center;
    }
}

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

@media (max-width: 480px) {

    .services__lead br,
    .flow__lead br,
    .flow__text br,
    .contact-cta__text br {
        display: none;
    }
}

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

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

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