﻿/* ============================================
    全体
============================================ */

.breadcrumb {
    padding-bottom: 70px;
}

/* ============================================
    MV
============================================ */

.mv {
    background: url("../images/building/mv_sp.jpg") center / cover no-repeat;
}

/* ============================================
    セクションコンテンツ
============================================ */

[class*="section_content--"] {
    padding: 0 0 65px;
}

.content_box {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- 見出し --- */

.bld_heading {
    margin-bottom: 40px;
}

.bld_title {
    font-size: 20px;
    font-weight: 400;
    font-family: var(--sub-font);
    line-height: calc(30 / 20);
    color: var(--text-color);
}

.bld_subtitle {
    font-size: 14px;
    font-weight: 400;
    font-family: var(--point-font);
    color: #6D6D6D;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bld_subtitle::before {
    content: "";
    background: #6D6D6D;
    width: 11px;
    height: 1px;
}

.bld_heading.is_white .bld_title,
.bld_heading.is_white .bld_subtitle {
    color: #fff;
}

.bld_heading.is_white .bld_subtitle::before {
    background: #fff;
}

/* ============================================
    建築の予算について
============================================ */

/* --- 予算：リード文 --- */

.budget_lead {
    margin-bottom: 25px;
}

.budget_lead p {
    font-size: 18px;
    font-weight: 400;
    line-height: calc(28 / 18);
    color: var(--text-color);
}

/* --- 予算：コンテンツブロック --- */

.budget_box {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 25px;
}

.budget_block_title {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    line-height: calc(28 / 18);
    padding-left: 10px;
    border-left: 5px solid var(--accent-color);
    margin-bottom: 15px;
}

.budget_block_body p {
    font-size: 16px;
    font-weight: 400;
    line-height: calc(28 / 16);
    color: var(--text-color);
}

/* --- 予算：CTA --- */

.budget_cta_main {
    font-size: 18px;
    font-weight: 400;
    color: #DD5A50;
    line-height: calc(31 / 18);
    font-family: var(--sub-font);
}

.budget_cta_image {
    width: 248px;
    margin: 0 auto;
}

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

.section_content--flow {
    background: url("../images/common/ui-bk_bg_sp.jpg") center / cover no-repeat;
    padding: 65px 0;
}

/* --- ステップ一覧 --- */

.flow_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 45px;
    margin-bottom: 40px;
    position: relative;
}

.flow_list::before {
    content: "";
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: url("../images/building/flow_list_border.png") center top / 50% 85% no-repeat;
    pointer-events: none;
    z-index: 0;
}

.flow_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.flow_icon {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

.flow_icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.flow_step {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--pinpoint-font);
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.flow_label {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: calc(21 / 16);
    text-align: center;
}

/* --- ダウンロードボタン --- */

.flow_download {
    text-align: center;
}

/* ============================================
    工期について
============================================ */

.section_content--schedule {
    padding: 65px 0;
}

/* --- タイムライン --- */

.schedule_list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
}

.schedule_list::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background: url("../images/building/schedule_list_border.png") center / cover no-repeat;
}

.schedule_item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.schedule_number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    font-family: var(--pinpoint-font);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.schedule_text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    line-height: calc(28 / 16);
}

/* --- 写真 --- */

.schedule_photo {
    margin-top: 10px;
}

.schedule_photo img {
    margin-bottom: 15px;
}

.schedule_caption {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    line-height: calc(30 / 18);
    text-align: center;
}

/* ============================================
    よくあるご質問
============================================ */

.section_content--faq {
    background: var(--main-color);
    padding: 70px 0 80px;
}

/* --- FAQ一覧 --- */

.faq_list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq_item {
    overflow: hidden;
}

/* --- 質問 --- */

.faq_question {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 5px;
}

.faq_question_btn {
    width: 100%;
    padding: 16px;
    padding-right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.faq_question_wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.faq_icon {
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1;
    font-family: var(--main-font);
}

.faq_icon--a {
    color: var(--accent-color);
    margin-right: 8px;
}

.faq_question_text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: calc(26 / 14);
}

.faq_toggle {
    width: 14px;
    height: 14px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.faq_toggle::before,
.faq_toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--text-color);
}

.faq_toggle::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq_toggle::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.faq_item.is-open .faq_toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* --- 回答 --- */

.faq_answer {
    background: #fff;
    border-radius: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq_answer_inner {
    display: flex;
    padding: 16px 40px 16px 16px;
}

.faq_answer_text p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    line-height: calc(26 / 14);
}

/* ============================================
    PC
============================================ */

@media (min-width: 768px) {

    /* --- MV・パンくず --- */

    .mv {
        background: url("../images/building/mv.jpg") center / cover no-repeat;
    }

    .breadcrumb {
        padding-bottom: 120px;
    }

    /* --- セクションコンテンツ --- */

    [class*="section_content--"] {
        padding: 0 0 120px;
    }

    .bld_title {
        font-size: 24px;
        line-height: calc(36 / 24);
    }

    .bld_subtitle {
        font-size: 16px;
    }

    .bld_subtitle::before {
        width: 20px;
    }

    /* --- 建築の予算について --- */

    .section_content--budget {
        padding-bottom: 130px;
        padding-inline: 20px;
    }

    .section_content--budget .content_box {
        max-width: 855px;
    }

    .budget_lead p {
        font-size: 20px;
        line-height: calc(30 / 20);
    }

    .budget_box {
        gap: 55px;
    }

    .budget_cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .budget_cta_text {
        flex: 1 1 50%;
        max-width: 599px;
    }

    .budget_cta_main {
        font-size: clamp(1.125rem, 1.042rem + 0.17vw, 1.25rem);
        line-height: calc(33 / 20);
    }

    .budget_cta_image {
        width: clamp(14.688rem, 12.146rem + 5.3vw, 18.5rem);
        position: absolute;
        right: 0;
    }

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

    .section_content--flow {
        padding: 80px 20px;
        background: url("../images/common/ui-bk_bg.jpg") center / cover no-repeat;
    }

    .section_content--flow .content_box {
        max-width: 908px;
    }

    .flow_list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 80px 45px;
        margin-bottom: 50px;
    }

    .flow_list::before {
        content: none;
    }

    .flow_item {
        width: calc((100% - 45px * 4) / 5);
    }

    .flow_icon {
        width: clamp(100px, calc(144px + 50vw - 570px), 144px);
        height: clamp(100px, calc(144px + 50vw - 570px), 144px);
    }

    .flow_icon img {
        width: clamp(50px, calc(70px + 50vw - 570px), 70px);
        height: clamp(50px, calc(70px + 50vw - 570px), 70px);
    }

    .flow_icon::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -27px;
        transform: translateY(-50%);
        border-top: 17.5px solid transparent;
        border-bottom: 17.5px solid transparent;
        border-left: 20px solid var(--accent-color);
    }

    .flow_item:nth-child(5) .flow_icon::after,
    .flow_item:last-child .flow_icon::after {
        display: none;
    }

    .flow_download .ui_cp-btn {
        max-width: 230px;
    }

    /* --- 工期について --- */

    .section_content--schedule {
        padding: 80px 20px;
    }

    .section_content--schedule .content_box {
        max-width: 855px;
    }

    .schedule_content {
        display: flex;
        align-items: center;
        gap: 50px;
    }

    .schedule_list {
        flex: 1 1 50%;
        margin-bottom: 0;
        max-width: 380px;
    }

    .schedule_photo {
        flex: 1 1 50%;
        max-width: 425px;
        flex-shrink: 0;
        margin-top: 0;
    }

    /* --- よくあるご質問 --- */

    .section_content--faq {
        padding: 80px 20px;
    }

    .section_content--faq .content_box {
        max-width: 855px;
    }

    .faq_list {
        gap: 40px;
    }

    .faq_question_btn {
        padding: 20px 25px;
        padding-right: 50px;
    }

    .faq_question_wrapper {
        gap: 20px;
    }

    .faq_toggle {
        right: 20px;
        width: 15px;
        height: 15px;
    }

    .faq_toggle::before {
        width: 15px;
    }

    .faq_toggle::after {
        height: 15px;
    }

    .faq_icon {
        font-size: 28px;
    }

    .faq_icon--a {
        margin: 0;
    }

    .faq_question_text {
        font-size: 16px;
        line-height: calc(28 / 16);
        padding-top: 2px;
    }

    .faq_answer_inner {
        gap: 20px;
        padding: 20px 60px 20px 25px;
    }

    .faq_answer_text p {
        font-size: 16px;
        line-height: calc(28 / 16);
    }

}
