.babyharu-home {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    color: #181818;
}

.bh-home-intro {
    padding: 64px 0 42px;
}

.bh-home-intro > span,
.bh-home-section-head > div > span {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bh-home-intro h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.bh-home-intro p {
    margin: 18px 0 0;
    color: #777;
    font-size: 15px;
}

.bh-home-category-nav {
    display: flex;
    gap: 8px;
    padding: 0 0 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.bh-home-category-nav::-webkit-scrollbar {
    display: none;
}

.bh-home-category-nav a {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid #dedede;
    border-radius: 999px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: .2s ease;
}

.bh-home-category-nav a:hover {
    border-color: #222;
    color: #111;
}

.bh-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr);
    min-height: 440px;
    overflow: hidden;
    border-radius: 22px;
    background: #f4f4f2;
}

.bh-home-hero-image {
    min-height: 440px;
    background: #eee;
}

.bh-home-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.bh-home-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
}

.bh-home-category-label {
    color: #777;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.bh-home-hero-content h2 {
    margin: 14px 0;
    font-size: clamp(28px, 3vw, 43px);
    line-height: 1.18;
    letter-spacing: -.04em;
}

.bh-home-hero-content h2 a,
.bh-home-card h3 a {
    color: inherit;
    text-decoration: none;
}

.bh-home-hero-content > p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.75;
}

.bh-home-hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    color: #999;
    font-size: 12px;
}

.bh-home-hero-meta a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
}

.bh-home-section {
    padding: 84px 0 0;
}

.bh-home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.bh-home-section-head h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -.04em;
}

.bh-home-section-head > p {
    margin: 0;
    color: #999;
    font-size: 12px;
}

.bh-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 22px;
}

.bh-home-card {
    min-width: 0;
}

.bh-home-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #f1f1f1;
}

.bh-home-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.bh-home-card:hover .bh-home-card-image img {
    transform: scale(1.025);
}

.bh-home-card-body {
    padding: 15px 2px 0;
}

.bh-home-card h3 {
    margin: 7px 0 8px;
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: -.025em;
}

.bh-home-card time {
    color: #aaa;
    font-size: 11px;
}

.bh-home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
}

.bh-home-category-card {
    position: relative;
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border-right: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    color: #222;
    text-decoration: none;
    transition: background .2s ease;
}

.bh-home-category-card:hover {
    background: #f7f7f5;
}

.bh-home-category-card > span {
    margin-bottom: 18px;
    color: #aaa;
    font-size: 11px;
}

.bh-home-category-card strong {
    font-size: 19px;
}

.bh-home-category-card small {
    margin-top: 5px;
    color: #999;
    font-size: 11px;
}

.bh-home-category-card b {
    position: absolute;
    right: 24px;
    bottom: 24px;
    font-weight: 400;
}

.bh-home-category-section {
    padding: 32px 0 50px;
    border-top: 1px solid #e7e7e7;
}

.bh-home-category-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bh-home-category-section-title h3 {
    margin: 0;
    font-size: 21px;
}

.bh-home-category-section-title a {
    color: #888;
    font-size: 12px;
    text-decoration: none;
}

.home .wp-block-post-title {
    display: none !important;
}

.home .wp-block-post-content {
    margin-top: 0 !important;
}

@media (max-width: 820px) {
    .babyharu-home {
        width: min(100% - 28px, 680px);
    }

    .bh-home-intro {
        padding-top: 38px;
    }

    .bh-home-hero {
        grid-template-columns: 1fr;
    }

    .bh-home-hero-image,
    .bh-home-hero-image img {
        min-height: 300px;
    }

    .bh-home-hero-content {
        padding: 28px;
    }

    .bh-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bh-home-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .bh-home-intro h1 {
        font-size: 42px;
    }

    .bh-home-hero {
        border-radius: 16px;
    }

    .bh-home-hero-image,
    .bh-home-hero-image img {
        min-height: 260px;
    }

    .bh-home-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .bh-home-category-grid {
        grid-template-columns: 1fr;
    }

    .bh-home-category-card {
        min-height: 120px;
    }

    .bh-home-section {
        padding-top: 64px;
    }

    .bh-home-section-head > p {
        display: none;
    }
}
.bh-home-category-nav a:focus,
.bh-home-category-nav a:focus-visible {
    outline: none !important;
    border-color: #777 !important;
    box-shadow: inset 0 0 0 1.5px #777 !important;
}

.bh-home-category-card:focus,
.bh-home-category-card:focus-visible {
    position: relative;
    z-index: 2;
    outline: none !important;
    box-shadow: inset 0 0 0 2px #333 !important;
}
.bh-home-category-card:nth-child(1) {
    border-radius: 18px 0 0 0;
}

.bh-home-category-card:nth-child(3) {
    border-radius: 0 18px 0 0;
}

.bh-home-category-card:nth-child(4) {
    border-radius: 0 0 0 18px;
}

.bh-home-category-card:nth-child(6) {
    border-radius: 0 0 18px 0;
}

@media (max-width: 820px) {
    .bh-home-category-card {
        border-radius: 0 !important;
    }

    .bh-home-category-card:nth-child(1) {
        border-radius: 18px 0 0 0 !important;
    }

    .bh-home-category-card:nth-child(2) {
        border-radius: 0 18px 0 0 !important;
    }

    .bh-home-category-card:nth-child(5) {
        border-radius: 0 0 0 18px !important;
    }

    .bh-home-category-card:nth-child(6) {
        border-radius: 0 0 18px 0 !important;
    }
}

@media (max-width: 520px) {
    .bh-home-category-card {
        border-radius: 0 !important;
    }

    .bh-home-category-card:first-child {
        border-radius: 18px 18px 0 0 !important;
    }

    .bh-home-category-card:last-child {
        border-radius: 0 0 18px 18px !important;
    }
}

.bh-home-engagement.bh-engagement-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    max-width: none;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    color: #aaa;
}

.bh-home-engagement.bh-engagement-bar button,
.bh-home-engagement.bh-engagement-bar a {
    display: inline-flex;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.bh-home-engagement.bh-engagement-bar button:hover,
.bh-home-engagement.bh-engagement-bar a:hover {
    background: transparent;
    color: #333;
}

.bh-home-engagement .bh-like-icon {
    font-size: 16px;
    line-height: 1;
}

.bh-home-engagement svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bh-home-engagement b {
    font-size: 11px;
    font-weight: 400;
}

.bh-home-engagement .bh-home-like-button.is-liked {
    border: 0;
    background: transparent;
    color: #e65a67;
}

.bh-home-hero-meta-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bh-home-hero-meta-actions .bh-home-engagement {
    margin-top: 0;
}

@media (max-width: 520px) {
    .bh-home-hero-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .bh-home-hero-meta-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.bh-home-view-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    font-size: 11px;
    line-height: 1;
}

.bh-home-view-count svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bh-home-view-count b {
    font-size: 11px;
    font-weight: 400;
}

.bh-home-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 1fr);
}

.bh-home-hero-content {
    padding: 40px 42px;
    cursor: pointer;
}

.bh-home-hero-content h2 {
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.2;
}

.bh-home-hero-meta {
    justify-content: flex-start;
    gap: 20px;
}

.bh-home-hero-meta-actions {
    margin-left: 0;
}

.bh-home-card-image,
.bh-home-hero-image {
    cursor: pointer;
}

@media (max-width: 820px) {
    .bh-home-hero {
        grid-template-columns: 1fr;
    }

    .bh-home-hero-content {
        padding: 28px;
    }
}
