﻿/* ============================================
   共通
============================================ */

[class^="section_content--"] {
    padding-block: 65px;
}

/* --- コンテンツタイトル --- */

.title_block {
    margin-bottom: 40px;
}

.section_title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-color);
    line-height: calc(36 / 24);
    font-family: var(--sub-font);
    margin-bottom: 5px;
}

.section_subtitle {
    font-size: 15px;
    font-weight: 400;
    color: #6D6D6D;
    line-height: 1;
    font-family: var(--point-font);
    display: flex;
    align-items: center;
    gap: 5px;
}

.section_subtitle::before {
    content: "";
    background: #6D6D6D;
    width: 11px;
    height: 1px;
}

/* --- タイトル：白パターン --- */

.title_block.is_white .section_title,
.title_block.is_white .section_subtitle {
    color: #fff;
}

.title_block.is_white .section_subtitle::before {
    background: #fff;
}

/* --- タイトル：中央揃え --- */

.title_block.is_center {
    text-align: center;
}

.title_block.is_center .section_subtitle {
    justify-content: center;
}

.section_content--news .article__no-post {
    color: #fff;
}

@media (min-width: 768px) {

    [class^="section_content--"] {
        padding-block: 80px;
    }

    .title_block {
        margin-bottom: 55px;
    }

    .section_title {
        font-size: 32px;
        line-height: calc(48 / 32);
    }

    .section_subtitle {
        font-size: 18px;
    }

    .section_subtitle::before {
        width: 20px;
    }

}


/* ============================================
   MV（メインビジュアル）
============================================ */

.fv {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 667px;
}

/* --- 前面固定エリア --- */

.fv-fixed-content {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.fv-container {
    max-width: 343px;
    margin-left: 15px;
}

.main_catch {
    font-size: 53px;
    font-weight: bold;
    color: #fff;
    font-family: var(--point-font);
    line-height: 1;
    text-shadow: 0 0 18px rgba(35, 24, 21, 0.6);
    margin-bottom: 5px;
}

.sub_catch {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: calc(24 / 16);
    text-shadow: 0 0 18px rgba(35, 24, 21, 0.6);
}

.fv-separator {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    margin: 15px 0 0 -15px;
}

/* --- 背面スライダー --- */

.fv-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-list,
.slider-list li {
    height: 100%;
}

.slider-list .slick-list,
.slider-list .slick-track,
.slider-list .slick-slide,
.slider-list .slick-slide>div,
.slider-list li picture {
    height: 100%;
}

.slider-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {

    .fv {
        height: 100vh;
    }

    /* 前面固定エリア */

    .fv-fixed-content {
        bottom: 80px;
    }

    .fv-container {
        max-width: max-content;
        margin-left: 35px;
    }

    .main_catch {
        font-size: 70px;
    }

    .sub_catch {
        font-size: 24px;
        line-height: calc(40 / 24);
    }

    .fv-separator {
        width: 105%;
        margin: 15px 0 0 -35px;
    }

}


/* ============================================
   新着情報（News）
============================================ */

/* --- 共通ブロック --- */

.section_content--news {
    background: url("../images/common/ui-bk_bg_sp.jpg") center / cover no-repeat;
}

/* --- コンテンツブロック --- */

.news_list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.news_link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
    position: relative;
}

.news_link::after {
    content: "";
    position: absolute;
    background: url("../images/common/item_arrow_down.png") center / cover no-repeat;
    width: 10px;
    height: 8px;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(-90deg);
}

.news-item__meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date_text {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    font-family: var(--pinpoint-font);
}

.news_category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 35px;
    border: 1px solid #CDCDCD;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

.news_bottom_block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 20px;
}

.news_title {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    font-family: var(--main-font);
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (min-width: 768px) {

    /* 共通ブロック */

    .section_content--news {
        padding-inline: 20px;
        background: url("../images/common/ui-bk_bg.jpg") center / cover no-repeat;
    }

    .section_content--news .content_box {
        max-width: 775px;
        margin: 0 auto;
    }

    /* コンテンツブロック */

    .news_list {
        gap: 40px;
        margin-bottom: 55px;
    }

    .news_link {
        flex-direction: row;
        gap: 30px;
    }

    .news_link::after {
        transition: right 0.3s ease;
    }

    .news_link:hover::after {
        right: -10px;
    }

}


/* ============================================
   施工事例（Works）
============================================ */

/* --- 共通ブロック --- */

.section_content--works .section_space {
    width: 100%;
}

.section_content--works .content_box {
    position: relative;
}

/* --- コンテンツブロック --- */

.works_list {
    display: flex;
    margin-bottom: 40px;
}

.works_item {
    flex-shrink: 0;
}

.works_detail {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.works_photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.works_photo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
    z-index: 1;
}

.works_photo img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.works_category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid #404040;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 5px;
}

.works_spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid #CDCDCD;
    padding-bottom: 5px;
}

.works_spec_row {
    display: flex;
    align-items: baseline;
}

.works_spec_row dt,
.works_spec_row dd {
    font-size: 14px;
    font-weight: 400;
    line-height: calc(26 / 14);
    color: var(--text-color);
    flex-shrink: 0;
}

/* --- ページャー --- */

.works_pager_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.works_pager_btn_left,
.works_pager_btn_right {
    display: block;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.works_pager_btn_left::after,
.works_pager_btn_right::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.works_pager_btn_left::after {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.works_pager_btn_right::after {
    transform: translate(-70%, -50%) rotate(45deg);
}

.works_pager_btn_left.swiper-button-disabled,
.works_pager_btn_right.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

@media (min-width: 768px) {

    /* 共通ブロック */

    .section_content--works .section_space {
        max-width: 100%;
        margin: 0;
    }

    .section_content--works .ui_cp-btn {
        width: 255px;
        flex-shrink: 0;
    }

    /* コンテンツブロック */

    .section_content--works .content_box {
        width: 85.65%;
        margin-left: auto;
        margin-right: inherit;
        overflow: hidden;
    }

    .works_list {
        margin-bottom: 55px;
    }

    .works_bottom {
        display: flex;
        align-items: center;
    }

    /* ページャー */

    .works_pager_box {
        gap: 30px;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .works_bottom .cp_btn_box {
        margin: 0;
        margin-left: calc(35.35vw - 228px);
    }

    .works_pager_btn_left,
    .works_pager_btn_right {
        width: 35px;
        height: 35px;
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }

    .works_pager_btn_left::after,
    .works_pager_btn_right::after {
        width: 10px;
        height: 10px;
        transition: border-color 0.3s ease;
    }

    .works_pager_btn_left:hover,
    .works_pager_btn_right:hover {
        background-color: #fff;
        border-color: var(--accent-color);
    }

    .works_pager_btn_left:hover::after,
    .works_pager_btn_right:hover::after {
        border-top-color: var(--accent-color);
        border-right-color: var(--accent-color);
    }

    /* ホバー */

    .works_detail:hover .works_photo img {
        transform: scale(1.1);
    }

    .works_detail:hover .works_photo::after {
        background: rgba(0, 0, 0, 0.3);
    }

}


/* ============================================
   家を建てる前に（Before Build）
============================================ */

/* --- 共通ブロック --- */

.l-page .section_content--before-build {
    padding-bottom: 0;
}

.section_content--before-build .section_space {
    width: 100%;
}

.section_content--before-build .title_block {
    padding-left: 20px;
}

/* --- コンテンツブロック --- */

.before-build_list {
    display: flex;
    flex-direction: column;
}

.before-build_item {
    height: 100%;
}

.before-build_link {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 80px 20px 20px;
    position: relative;
    text-decoration: none;
    min-height: 211px;
    overflow: hidden;
}

/* --- 背景画像（擬似要素でスケール可能に） --- */

.before-build_link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: 0;
}

.before-build_item--budget .before-build_link::before {
    background-image: url("../images/top/build_photo01.jpg");
}

.before-build_item--flow .before-build_link::before {
    background-image: url("../images/top/build_photo02.jpg");
}

.before-build_item--schedule .before-build_link::before {
    background-image: url("../images/top/build_photo03.jpg");
}

.before-build_item--faq .before-build_link::before {
    background-image: url("../images/top/build_photo04.jpg");
}

/* --- 暗めマスク --- */

.before-build_link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
    z-index: 0;
}

/* --- テキスト --- */

.before-build_text {
    position: relative;
    z-index: 1;
}

.before-build_title {
    font-size: 27px;
    font-weight: 400;
    color: #fff;
    line-height: calc(39 / 27);
    font-family: var(--sub-font);
    text-align: center;
    margin-bottom: 4px;
}

.before-build_subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    font-family: var(--point-font);
    text-align: center;
}

/* --- 矢印アイコン --- */

.before-build_arrow {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: auto;
    background: url("../images/common/item_arrow_corner.png") center / 20px auto no-repeat;
}

@media (min-width: 768px) {

    /* 共通ブロック */

    .section_content--before-build .section_space {
        max-width: 100%;
    }

    .section_content--before-build .title_block {
        max-width: 1020px;
        margin: 0 auto 55px;
    }

    /* コンテンツブロック */

    .before-build_list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .before-build_link {
        min-height: 384px;
        gap: 60px;
        padding: 160px 20px 20px;
    }

    .before-build_subtitle {
        font-size: 18px;
    }

    .before-build_arrow {
        width: clamp(3.75rem, 2.917rem + 1.74vw, 5rem);
        height: clamp(3.75rem, 2.917rem + 1.74vw, 5rem);
        background: url("../images/common/item_arrow_corner.png") center / clamp(1.875rem, 1.583rem + 0.61vw, 2.313rem) auto no-repeat;
    }

    /* ホバー */

    .before-build_link:hover::before {
        transform: scale(1.1);
    }

    .before-build_link:hover::after {
        background: rgba(0, 0, 0, 0.3);
    }

}


/* ============================================
   SNSボタン
============================================ */

.sns_list {
    background: #E8E8E8;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 40px 20px;
}

.sns_item {
    flex: 1;
    max-width: 120px;
}

.sns_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border: 1px solid var(--accent-color);
    text-decoration: none;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    font-family: var(--sub-font);
    background: #fff;
}

@media (min-width: 768px) {

    .sns_list {
        padding: 80px 20px;
    }

    .sns_item {
        max-width: 200px;
    }

    .sns_link {
        font-size: 18px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .sns_link:hover {
        background-color: var(--accent-color);
        color: #fff;
    }

}


/* ============================================
   会社案内（Company）
============================================ */

/* --- 共通ブロック --- */

.section_content--company {
    background: url("../images/top/company_contents_bg_sp.jpg") center / cover no-repeat;
}

/* --- コンテンツブロック --- */

.company_desc {
    margin-bottom: 30px;
}

.company_text {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: calc(40 / 16);
}

.section_content--company .cp_btn_box {
    text-align: center;
}

@media (min-width: 768px) {

    .section_content--company {
        padding-block: 120px;
        padding-inline: 20px;
        background: url("../images/top/company_contents_bg.jpg") center / cover no-repeat;
    }

    .company_desc {
        max-width: 860px;
        margin: 0 auto 40px;
        text-align: center;
    }

}