
/* BUILDERS HOME DESIGN STEP171 */

.bh-home {
    --bh-green: #009b65;
    --bh-text: #202522;
    background: #fff;
    color: var(--bh-text);
    font-family: -apple-system,BlinkMacSystemFont,
    "Noto Sans JP","Hiragino Sans",Meiryo,sans-serif;
    margin: 0;
}

.bh-home .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    color: #202522;
    border-bottom: 1px solid #e5e8e6;
    box-shadow: none;
}

.bh-home .header-inner {
    width: 100%;
    max-width: none;
    min-height: 72px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
}

.bh-home .brand {
    color: #181d1a;
    flex-shrink: 0;
}

.bh-home .brand-icon {
    background: #009b65;
    color: white;
    border-radius: 8px;
}

.bh-home .brand small {
    color: #777;
}

.bh-home .nav {
    color: #333;
    gap: 18px;
}

.bh-home .nav a,
.bh-home .nav-link {
    color: #333;
}

.bh-home .nav .btn-orange {
    background: #009b65;
    color: #fff;
    border: 0;
    border-radius: 7px;
}

.bh-header-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 650px;
    min-width: 120px;
    height: 44px;
    border: 1px solid #e3e6e4;
    border-radius: 8px;
    background: #f5f6f5;
    padding: 0 14px;
    gap: 12px;
}

.bh-header-search span {
    font-size: 25px;
    color: #777;
}

.bh-header-search input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    color: #222;
    outline: none;
    font-size: 14px;
    padding: 0;
}

.bh-header-search button {
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
}

.bh-layout {
    display: grid;
    grid-template-columns: 224px minmax(0,1fr);
    max-width: 1920px;
    margin: 0 auto;
}

.bh-sidebar {
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    align-self: start;
    border-right: 1px solid #e9ecea;
    padding: 24px 13px;
    background: #fff;
    box-sizing: border-box;
}

.bh-side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 3px 0;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    line-height: 1.5;
}

.bh-side-link span {
    width: 24px;
    flex-shrink: 0;
    font-size: 19px;
    text-align: center;
    color: #626b65;
}

.bh-side-link:hover,
.bh-side-link.active {
    background: #e9f7ef;
    color: #008c58;
}

.bh-side-link.active span {
    color: #008c58;
}

.bh-side-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    padding: 24px 14px 8px;
}

.bh-side-divider {
    border-top: 1px solid #eee;
    margin: 20px 12px;
}

.bh-side-post,
.bh-green-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #009b65;
    color: #fff;
    padding: 12px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.bh-side-post {
    display: flex;
    margin: 16px 8px;
}

.bh-side-credit {
    font-size: 10px;
    color: #a2a9a4;
    line-height: 1.8;
    padding: 24px 16px;
}

.bh-main {
    min-width: 0;
    padding: 24px 30px 40px;
}

.bh-hero {
    position: relative;
    min-height: 280px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #1e3027;
    background-image:
    linear-gradient(90deg,#12271df5 0%,
    #12271dc9 32%,#12271d33 80%),
    url("home-hero.webp");
    background-size: cover;
    background-position: center;
}

.bh-hero-content {
    position: relative;
    padding: 36px 44px;
    color: #fff;
}

.bh-hero-label {
    color: #8fe6af;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.bh-hero h1 {
    color: #fff;
    margin: 12px 0;
    font-size: clamp(30px,3.1vw,52px);
    font-weight: 800;
    letter-spacing: .015em;
    line-height: 1.25;
}

.bh-hero p {
    font-size: 14px;
    color: #e3eee8;
    margin: 14px 0 24px;
}

.bh-gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 12px;
}

.bh-gallery-heading h2 {
    color: #212622;
    font-size: 25px;
    margin: 0;
    font-weight: 750;
}

.bh-gallery-heading span {
    color: #999;
    font-size: 12px;
}

.bh-works {
    scroll-margin-top: 90px;
}

.bh-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e7eae7;
    margin-bottom: 22px;
}

.bh-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bh-tabs a {
    color: #777;
    text-decoration: none;
    padding: 13px 3px;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.bh-tabs a.active {
    color: #009b65;
    border-bottom-color: #009b65;
}

.bh-filter select {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 12px;
    max-width: 185px;
    padding: 8px 10px;
}

.bh-cards {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 22px 18px;
}

.bh-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e8ebe8;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 2px 6px #00000006;
    transition: transform .18s,box-shadow .18s;
}

.bh-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px #00000015;
}

.bh-photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5/4;
    overflow: hidden;
    background: #f1f3f1;
}

.bh-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bh-photo-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    border-radius: 5px;
    color: #fff;
    background: #17231cba;
    padding: 5px 8px;
    font-size: 10px;
}

.bh-no-photo {
    display: grid;
    height: 100%;
    place-items: center;
    color: #b2bdb5;
    font-size: 20px;
    font-weight: 700;
}

.bh-card-body {
    padding: 13px;
}

.bh-card-title {
    color: #222;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 42px;
}

.bh-author {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #777;
    margin: 12px 0;
}

.bh-avatar {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: #008c58;
    background: #e5f2e9;
    font-weight: 700;
}

.bh-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #929992;
    gap: 6px;
}

.bh-card-meta .builders-like {
    border: 0;
    background: transparent;
    color: #909990;
    cursor: pointer;
    font-size: 13px;
}

.bh-card-meta .builders-like[aria-pressed="true"] {
    color: #e24d64;
}

.bh-mobile-categories {
    display: none;
}

.bh-empty {
    background: #f7f9f7;
    border-radius: 10px;
    text-align: center;
    padding: 45px 15px;
}

.bh-home footer {
    background: #f7f8f7;
    color: #777;
    border-top: 1px solid #eee;
}

.bh-home footer a,
.bh-home footer b {
    color: #555;
}

@media(max-width:1200px) {
    .bh-layout {
        grid-template-columns: 190px minmax(0,1fr);
    }

    .bh-main {
        padding: 20px;
    }

    .bh-home .header-inner {
        gap: 14px;
    }

    .bh-cards {
        gap: 14px;
    }
}

@media(max-width:1000px) {
    .bh-cards {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .bh-home .nav {
        display: none;
    }

    .bh-home .builders-mobile-menu {
        display: block;
    }
}

@media(max-width:760px) {
    .bh-layout {
        display: block;
    }

    .bh-sidebar {
        display: none;
    }

    .bh-home .header-inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 14px 12px;
        height: auto;
        min-height: 0;
        box-sizing: border-box;
    }

    .bh-header-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        height: 38px;
        margin: 0;
        box-sizing: border-box;
    }

    .bh-home .builders-mobile-menu {
        margin-left: auto;
    }

    .bh-main {
        padding: 12px;
    }

    .bh-hero {
        min-height: 178px;
        border-radius: 10px;
        background-position: 85% center;
        background-image:
        linear-gradient(90deg,#10271de8 0%,
        #10271d99 48%,#10271d15 100%),
        url("home-hero.webp");
    }

    .bh-hero-content {
        padding: 17px 18px;
    }

    .bh-hero-label {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .bh-hero .bh-green-button {
        padding: 9px 16px;
        font-size: 12px;
    }

    .bh-hero h1 {
        font-size: 25px;
        line-height: 1.25;
        margin: 8px 0;
    }

    .bh-hero p {
        font-size: 11px;
        margin: 8px 0 14px;
    }

    .bh-mobile-categories {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 12px 0 2px;
    }

    .bh-mobile-categories a {
        white-space: nowrap;
        background: #f2f4f2;
        border-radius: 20px;
        padding: 8px 13px;
        color: #555;
        font-size: 12px;
        text-decoration: none;
    }

    .bh-mobile-categories a.active {
        background: #009b65;
        color: #fff;
    }

    .bh-cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }

    .bh-gallery-heading {
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .bh-toolbar {
        margin-bottom: 13px;
    }

    .bh-gallery-heading h2 {
        font-size: 21px;
    }

    .bh-card-body {
        padding: 10px;
    }

    .bh-card-title {
        font-size: 12px;
        min-height: 36px;
    }

    .bh-tabs {
        gap: 13px;
    }

    .bh-tabs a {
        font-size: 12px;
    }

    .bh-filter select {
        max-width: 105px;
        font-size: 10px;
    }

    .bh-works {
        scroll-margin-top: 130px;
    }
}
