/* =========================================
   Service pages only (home-service, facility-service)
   - 固有レイアウト
========================================= */

.bb-service .bb-section {
    margin-block: clamp(34px, 4vw, 80px);
}

.bb-service .bb-section.bb-service-videos {
    margin-block: clamp(0px, 4vw, 0px);
}

.bb-service .bb-section.bb-service-pricing {
    margin-block: clamp(0px, 4vw, 0px);
}

/* ===== Content (左右レイアウト 固定幅) ===== */
.bb-service-content {
    display: grid;
    grid-template-columns: 410px 1fr;
    /* 左固定幅 */
    max-width: 1030px;
    margin-inline: auto;
    gap: 0;
    align-items: stretch;
}

.bb-service-content__col:first-child {
    background: #f6f6f6;
    padding: 32px;
    /* テキスト内側の余白 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bb-service-content__col img.bb-service__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.bb-service-content__col h2 {
    font-size: 24px;
}

/* ===== Videos Section (在宅訪問サービスの様子) ===== */
.bb-service-videos {
    padding: 48px 0;
}

.bb-service-videos .bb-h2 {
    text-align: center;
    margin-bottom: 32px;
}

.bb-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin-inline: auto;
}

.bb-video__wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
}

.bb-video__wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ===== Pricing (Orange head + overlapping card) ===== */
.bb-service-pricing {
    padding: 0;
}

.bb-pricing-head {
    padding: 48px 0 70px;
}

.bb-pricing-head__title {
    color: #fff;
    margin: 0 0 15px;
}

.bb-pricing-head__lead {
    color: #fff;
    line-height: 1.9;
}

.bb-pricing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 12px 24px rgba(0, 0, 0, .08);
    padding: 24px 24px 8px;
}

/* 表 */
.bb-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.bb-pricing-table th,
.bb-pricing-table td {
    padding: 18px 14px;
    border-bottom: 1px solid var(--bb-border, #e6e6e6);
}

.bb-pricing-table .bb-td-label {
    text-align: left;
    font-weight: 700;
    font-size: 20px;
}

.bb-pricing-table .bb-td-price {
    text-align: left;
    white-space: nowrap;
    font-weight: 700;
    font-size: 20px;
}

.bb-pricing-table .bb-td-note {
    text-align: left;
    color: #E02424;
}

.bb-service-pricing .bb-note {
    margin: 12px 6px 18px;
    font-size: .92rem;
    color: var(--bb-ink-weak, #666);
}
/* ===== Shaving (左右レイアウト) ===== */
.bb-service-shaving__inner {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: var(--bb-gap, 24px);
    align-items: center;
    max-width: 1030px;
    margin: 0 auto;
}

.bb-en-label {
    font-size: 14px;
    font-weight: 700;
    color: #FF9ABC;
    margin-bottom: 6px;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bb-en-label::after {
    content: "";
    flex: 0.4;
    height: 1px;
    background: currentColor;
}

.bb-service-shaving__text {
    color: #222;
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    box-sizing: border-box;
}

.bb-service-shaving__col--media .bb-video__el {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.bb-service-shaving__col--media iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 1100px) and (min-width: 768px) {
    .bb-flow__item:nth-child(3n):not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 767px) {

    .page_wrap,
    .u-container {
        width: 100%;
        margin-inline: 0;
        padding-inline: 15px;
    }

    .bb-service-content {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .bb-service-content__col:first-child {
        padding: 24px;
    }

    .bb-service-content__col img.bb-service__img {
        height: auto;
        object-fit: contain;
    }

    .bb-pricing-head {
        padding: 36px 0;
    }

    .bb-pricing-card {
        margin: -36px auto 0 !important;
        padding: 16px 12px 4px;
    }

    .bb-pricing-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--bb-border, #e6e6e6);
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    .bb-pricing-table th,
    .bb-pricing-table td {
        display: block;
        width: 100% !important;
        padding: 4px 0;
        border: none;
    }

    .bb-pricing-table .bb-td-label {
        font-weight: 600;
        margin-bottom: 0px;
        padding: 0px;
        font-size: 16px;
    }

    .bb-pricing-table .bb-td-price {
        font-size: 24px;
        margin-bottom: 0px;
        padding: 0px
    }

    .bb-pricing-table .bb-td-note {
        font-size: 14px;
        color: #E02424;
    }

    .bb-service-shaving__inner {
        grid-template-columns: 1fr;
    }
}