/* ==============================================
   花束加工機ページ（03_2_bouquet-machine）
   ============================================== */


/* イントロ
--------------------------------------------- */
.bm-intro {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 60px 20px 80px;
}

.bm-intro-inner {
    display: grid;
    grid-template-columns: 1fr 490px;
    gap: 80px;
    align-items: center;
}

.bm-intro-text .bm-intro-catch p {
    font-size: clamp(1.375rem, calc(1.107rem + 1.143vw), 2.1875rem);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.bm-intro-text .bm-intro-body p {
    line-height: 2;
}

.bm-intro-photo {
    width: 490px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

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


/* 目的から商品を探す ラッパー
--------------------------------------------- */
.bm-filter {
    padding: 50px 0;
}

.bm-filter-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: 20px;
}

/* 目的から商品を探す（products-material.css より転載）
--------------------------------------------- */
.pm-search-nav {
    display: flex;
    align-items: stretch;
    background: var(--color-white);
    overflow: hidden;
    border: 5px solid #EBEBEB;
}

.pm-search-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: clamp(1rem, calc(0.821rem + 0.714vw), 1.5rem); /* max: 24px */
    font-weight: 700;
    padding: 24px 32px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pm-search-filters {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    flex: 1;
    padding: 25px 40px;
}

.pm-search-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.pm-search-row > span {
    font-size: clamp(0.9375rem, calc(0.821rem + 0.464vw), 1.25rem); /* max: 20px */
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 120px;
    padding-right: 30px;
    border-right: 5px solid #B2C1DB;
}

.pm-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pm-search-tags a {
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.875rem, calc(0.821rem + 0.214vw), 1rem); /* max: 16px */
    font-weight: 500;
    padding: 4px 16px 1px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.pm-search-tags a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}


/* YouTube動画バナー
--------------------------------------------- */
.bm-youtube {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 40px 20px 100px;
}

.bm-youtube-inner {
    background-color: #F8F8F8;
    display: grid;
    grid-template-columns: 300px 1fr auto;
    align-items: center;
    gap: 50px;
    padding-right: 60px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
}

.bm-youtube-photo {
    position: relative;
    width: 300px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px 0 0 4px;
}

.bm-youtube-photo img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .bm-youtube-photo:hover img:first-child {
        transform: scale(1.04);
    }
}

.bm-youtube-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: auto;
    pointer-events: none;
}

.bm-youtube-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-youtube-body > p:first-child {
    font-size: clamp(1.25rem, calc(0.982rem + 1.143vw), 1.75rem); /* max: 28px */
    font-weight: 800;
    color: var(--color-primary);
}

.bm-youtube-body > p:first-child::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('../images/head_icon.svg') no-repeat center / contain;
  flex-shrink: 0;
  margin-right: 8px;
}

.bm-youtube-body > p:last-child {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.8;
    color: var(--color-text);
}


/* 機械セクション（共通）
--------------------------------------------- */
.bm-section {
    padding: 130px 0;
}

.bm-section--gray {
    background-color: #F8F8F8;
}

.bm-section-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: 20px;
}


/* 機械カード一覧
--------------------------------------------- */
.bm-machines {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.bm-machine-card {
    background: var(--color-white);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    border: 5px solid #EBEBEB;
}

.bm-card-link {
    display: grid;
    grid-template-columns: 380px 1fr;
    text-decoration: none;
    color: inherit;
}

.bm-machine-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.bm-machine-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.bm-machine-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.bm-machine-card:hover .bm-machine-img img {
    transform: scale(1.04);
}

.bm-machine-body {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-machine-body h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.125rem, calc(0.964rem + 0.643vw), 1.5rem);
    font-weight: 700;
    color: var(--color-primary);
}

.bm-machine-body h3::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/head_icon.svg') no-repeat center / contain;
    flex-shrink: 0;
}

.bm-machine-body p {
    font-size: clamp(0.9375rem, calc(0.894rem + 0.179vw), 1.0625rem);
    line-height: 1.8;
    flex: 1;
}

.bm-machine-body .btn-more {
    width: fit-content;
    margin-top: auto;
    margin-left: auto;
}


/* 機械の導入・メンテナンスに関するご相談
   ※ products-material の pm-cta に準拠したレイアウト
--------------------------------------------- */
.bm-contact {
    position: relative;
    padding: 150px 0;
    background: url('../images/products-material/kv_products-material.webp') no-repeat center / cover;
}

.bm-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.bm-contact-inner {
    position: relative;
    z-index: 1;
    max-width: var(--content-max-width);
    margin-inline: auto;
    display: flex;
    justify-content: center;
    padding-inline: 20px;
}

.bm-contact-box {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 4px;
    padding: 60px 80px;
    text-align: center;
    width: 100%;
}

.bm-contact-box h2 {
    font-size: clamp(1.375rem, calc(1.107rem + 1.143vw), 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.bm-contact-box p {
    line-height: 2;
    margin-bottom: 32px;
}

.bm-contact-btns {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.bm-contact-btns .btn-more {
    font-size: 1rem;
    padding: 12px 60px 10px 24px;
}


/* アウトラインボタン（枠線・白背景・赤矢印）
--------------------------------------------- */
.btn-more--outline {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-secondary);
}

.btn-more--outline::after {
    background-image: url('../images/footer_arrow_red.svg');
}

.btn-more--outline:hover {
    opacity: 0.7;
    color: var(--color-text);
}


/* フッター余白なし */
.page-template-page-bouquet-machine-php .site-footer,
.page-template-page-bouquet-machine-detail-php .site-footer {
    margin-top: 0;
}


/* ==============================================
   花束加工機 商品詳細ページ（page-bouquet-machine-detail）
   ============================================== */


/* KVなし：ヘッダー下スペーサー
--------------------------------------------- */
.bmd-header-spacer {
    height: 120px;
}


/* 商品詳細ヒーロー
--------------------------------------------- */
.bmd-hero {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 60px 0 100px;
}

.bmd-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: start;
    padding-inline: 20px;
}

.bmd-gallery {
    max-width: 680px;
}

.bmd-hero-body {
    max-width: 655px;
}


/* 画像ギャラリー
--------------------------------------------- */
.bmd-gallery-main {
    width: 680px;
    height: 680px;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    border: 1px solid var(--_lighter-color-gray);
}

.bmd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit:contain;
    display: block;
}

.bmd-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.bmd-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 15px;
    background: none;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s;
    border: 1px solid var(--_lighter-color-gray);
}

.bmd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bmd-thumb.is-active,
.bmd-thumb:hover {
    border-color: var(--color-secondary);
}


/* 商品情報
--------------------------------------------- */
.bmd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.bmd-tags a {
    font-size: clamp(0.8125rem, calc(0.794rem + 0.071vw), 0.875rem); /* max: 14px */
    font-weight: 500;
    padding: 3px 14px 1px;
    border: 1px solid var(--color-border, #ccc);
    border-radius: 20px;
    color: var(--color-text);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.bmd-tags a:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.bmd-name {
    font-size: clamp(1.75rem, calc(1.393rem + 1.525vw), 2.5rem); /* max: 40px */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.bmd-catch {
    font-size: clamp(1rem, calc(0.857rem + 0.536vw), 1.25rem); /* max: 20px */
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.bmd-desc {
    font-size: clamp(0.9375rem, calc(0.894rem + 0.179vw), 1.0625rem); /* max: 17px */
    line-height: 2;
    margin-bottom: 36px;
}

.bmd-desc p + p {
    margin-top: 20px;
}

.bmd-hero-btns {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bmd-hero-btns .btn-more {
    font-size: 0.9375rem;
    padding: 12px 50px 10px 20px;
    justify-content: center;
}

.btn-more--pdf::after {
    background-image: url('../images/footer_arrow_red.svg');
}

.btn-more--pdf {
    background: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn-more--pdf:hover {
    opacity: 0.7;
    color: var(--color-text);
}


/* フラサポボタン
--------------------------------------------- */
.btn-more--frasapo {
    background: #F9F8F4;
    color: var(--color-text);
    border: 1px solid #867060;
    padding-left: 0 !important;
}

.btn-more--frasapo img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.btn-more--frasapo::after {
    background-image: url('../images/footer_arrow_red.svg');
}

.btn-more--frasapo:hover {
    opacity: 0.7;
    color: var(--color-text);
}


/* フラサポ関連商品
--------------------------------------------- */
.pmd-related {
    margin-top: 14px;
    display: grid;
    gap: 15px;
    overflow: hidden;
}

.pmd-related .btn-more--frasapo {
    width: 100%;
    justify-content: center;
}


/* YouTube動画
--------------------------------------------- */
.bmd-video {
    max-width: 1400px;
    width: 100%;
    margin-inline: auto;
    padding-bottom: 100px;
    padding-inline: 20px;
}

.bmd-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.bmd-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* セクション見出し（詳細ページ専用・::after なし）
--------------------------------------------- */
.bmd-section-header p:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1rem, calc(0.912rem + 0.376vw), 1.25rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.bmd-section-header p:first-child::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url('../images/head_icon.svg') no-repeat center / contain;
    flex-shrink: 0;
}

.bmd-section-header h2 {
    font-size: clamp(1.75rem, calc(1.266rem + 2.066vw), 3.125rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
}


/* フィーチャー
--------------------------------------------- */
.bmd-features {
    padding: 130px 0;
    background-color: #F8F8F8;
}

.bmd-features-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: 20px;
}

.bmd-feature-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.bmd-feature-item {
    display: grid;
    grid-template-columns: 430px 1fr;
    background: var(--color-white);
    border: 5px solid #EBEBEB;
    border-radius: 6px;
    overflow: hidden;
    padding: 45px;
}

.bmd-feature-item--reverse {
    grid-template-columns: 1fr 430px;
}

.bmd-feature-item--reverse .bmd-feature-img {
    order: 2;
}

.bmd-feature-item--reverse .bmd-feature-body {
    order: 1;
    padding: 0 50px 0 0;
}

.bmd-feature-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.bmd-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bmd-feature-body {
    padding: 0 0 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.bmd-feature-item:not(:has(.bmd-feature-img)),
.bmd-feature-item--reverse:not(:has(.bmd-feature-img)) {
    grid-template-columns: 1fr;
}

.bmd-feature-item:not(:has(.bmd-feature-img)) .bmd-feature-body {
    padding: 0;
}

.bmd-feature-num {
    font-size: clamp(0.9375rem, calc(0.857rem + 0.357vw), 1.25rem); /* max: 20px */
    font-weight: 700;
    letter-spacing: 0.1em;
}

.bmd-feature-body h3 {
    font-size: clamp(1.125rem, calc(0.911rem + 0.893vw), 1.75rem); /* max: 28px */
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bmd-feature-body h3::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/head_icon.svg') no-repeat center / contain;
    flex-shrink: 0;
    margin-top: 13px;
}

.bmd-feature-body > p:last-child {
    font-size: clamp(0.875rem, calc(0.839rem + 0.143vw), 1rem); /* max: 16px */
    line-height: 1.9;
    color: var(--color-text);
}


/* 仕様・スペック
--------------------------------------------- */
.bmd-specs {
    padding: 120px 0;
    padding-inline: 20px;
}

.bmd-specs-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    border: 5px solid #EBEBEB;
    padding: 45px;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

.bmd-specs-inner .section-header p:first-child {
    font-size: clamp(0.9375rem, calc(0.857rem + 0.357vw), 1.25rem); /* max: 20px */
}

.bmd-specs-inner .section-header h2 {
    font-size: clamp(1.375rem, calc(1.054rem + 1.429vw), 2.25rem); /* max: 36px */
}

.bmd-specs-title {
    font-size: clamp(1.125rem, calc(0.982rem + 0.714vw), 1.375rem); /* max: 22px */
    font-weight: 700;
    color: var(--color-primary);
    padding-left: 20px;
    border-left: 5px solid #B2C1DB;
    margin-bottom: 40px;
}

.bmd-specs-table {
    width: 100%;
    max-width: 920px;
}

.bmd-specs-table > div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0;
}

html[lang^="en"] .bmd-specs-table > div {
    grid-template-columns: 33% 1fr;
}

.bmd-specs-table dt {
    font-weight: 700;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-secondary);
}

.bmd-specs-table dd {
    margin: 0;
    padding: 20px 0;
    line-height: 1.8;
    border-bottom: 1px solid #BCBCBC;
}

.bmd-specs-table > div:first-child dt {
    border-top: 1px solid var(--color-secondary);
}

.bmd-specs-table > div:first-child dd {
    border-top: 1px solid #BCBCBC;
}


/* ==============================================
   Responsive - Hamburger (〜1200px)
   ============================================== */
@media (max-width: 1200px) {

    /* YouTube：2カラム（左=画像・右=見出し+テキスト+ボタン） */
    .bm-youtube-inner {
        grid-template-columns: 350px 1fr;
        align-items: start;
        gap: 10px;
        row-gap: 10px;
        padding-right: 0;
    }

    .bm-youtube-photo {
        grid-row: 1 / 3;
        align-self: stretch;
        width: 100%;
        height: auto;
    }

    .bm-youtube-body {
        padding: 20px;
    }

    .bm-youtube-inner > .btn-more {
        justify-self: end;
        width: fit-content;
        margin: 0 20px 20px 0;
    }

    /* ヒーロー並び替え（tags→name→catch→gallery→desc→btns）*/
    .bmd-hero-inner {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 720px;
        margin-inline: auto;
        align-items: flex-start;
        padding-inline: 0;
    }

    .bmd-hero-body {
        display: contents;
    }

    .bmd-tags      { order: 1; }
    .bmd-name      { order: 2; }
    .bmd-catch     { order: 3; }
    .bmd-gallery   { order: 4; }
    .bmd-desc      { order: 5; margin-top: 30px; }
    .bmd-hero-btns {
        order: 6;
        align-self: stretch;
        width: 100%;
    }
    .pmd-related {
        order: 7;
        align-self: stretch;
        width: 100%;
    }

    .bmd-feature-body h3::before {
        margin-top: 8px;
    }

}


/* ==============================================
   Responsive（Detail）- Tablet (〜1024px)
   ============================================== */
@media (max-width: 1024px) {

    .bmd-header-spacer {
        height: 100px;
    }

    .bmd-hero {
        padding: 40px 0 80px;
    }

    .bmd-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bmd-hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .bmd-hero-btns .btn-more {
        flex: unset;
        width: 100%;
    }

    .bm-youtube {
        padding-inline: 20px;
    }

    /* ギャラリー：固定幅を解除してコンテナに合わせる */
    .bmd-gallery,
    .bmd-gallery-main {
        width: 100%;
        max-width: 100%;
    }

    .bmd-gallery-main {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .bmd-feature-item {
        grid-template-columns: 300px 1fr;
        padding: 20px;
    }

    .bmd-feature-item--reverse {
        grid-template-columns: 1fr 300px;
    }

    .bmd-features,
    .bmd-specs {
        padding: 80px 0;
    }

}


/* ==============================================
   Responsive（Detail）- Mobile (〜768px)
   ============================================== */
@media (max-width: 768px) {

    .pm-search-filters {
        padding: 15px;
        gap: 0;
    }

    .pm-search-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .pm-search-row > span {
        min-width: unset;
        border-right: none;
        padding-right: 0;
    }

    .pm-search-tags {
        justify-content: center;
    }

    .bmd-header-spacer {
        height: 70px;
    }

    .bmd-hero {
        padding: 30px 20px 60px;
    }

    .bmd-hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .bmd-hero-btns .btn-more {
        width: 100%;
        justify-content: center;
    }

    .btn-more--frasapo img {
        height: 30px;
    }


    .bmd-features {
        padding: 60px 20px;
    }

    .bmd-features-inner {
        padding-inline: 0;
    }

    .bmd-feature-item,
    .bmd-feature-item--reverse {
        grid-template-columns: 1fr;
    }

    .bmd-feature-item--reverse .bmd-feature-img {
        order: 0;
    }

    .bmd-feature-item--reverse .bmd-feature-body {
        order: 0;
        padding: 24px 0 0 0;
    }

    .bmd-feature-img {
        aspect-ratio: 16 / 9;
    }

    .bmd-feature-body {
        padding: 24px 0 0;
        gap: 10px;
    }

    .bmd-specs {
        padding: 60px 20px;
    }

    .bmd-specs-inner {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .bmd-specs-table > div {
        grid-template-columns: 1fr;
    }

    .bmd-specs-table > div:first-child dd {
        border-top: none;
    }

    .bmd-specs-table dt {
        padding: 10px;
        border-top: 1px solid var(--color-secondary);
        border-bottom: 1px solid #BCBCBC;
    }

    .bmd-specs-table dd {
        padding: 10px;
        border-bottom: none;
    }

    .bmd-specs-inner .section-header h2 {
        margin-bottom: 0;
    }
}


/* ==============================================
   Responsive - Tablet (〜1024px)
   ============================================== */
@media (max-width: 1024px) {

    /* イントロ：1行目=catch全幅 / 2行目=body＋photo */
    .bm-intro-inner {
        grid-template-columns: 1fr 380px;
        grid-template-rows: auto 1fr;
        gap: 20px 40px;
    }

    .bm-intro-text {
        display: contents;
    }

    .bm-intro-catch {
        grid-column: 1 / -1;
    }

    .bm-intro-body {
        grid-column: 1;
        align-self: start;
    }

    .bm-intro-photo {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
    }

    .bm-section {
        padding: 80px 0;
    }

    /* 機械カード */
    .bm-machines {
        gap: 30px;
    }

    .bm-machine-card {
        padding: 10px 0;
    }

    .bm-card-link {
        grid-template-columns: 300px 1fr;
        align-items: center;
    }

    /* 相談セクション */
    .bm-contact {
        padding: 60px 0;
    }

    .bm-contact-box {
        padding: 50px 40px;
    }

    /* 目的から商品を探す：span 1行目・tags 2行目 */
    .pm-search-row {
        flex-wrap: wrap;
        gap: 10px 0;
    }

    .pm-search-row > span {
        width: 100%;
        border-right: none;
        padding-right: 0;
    }
}


/* ==============================================
   Responsive - Mobile (〜768px)
   ============================================== */
@media (max-width: 768px) {

    /* イントロ */
    .bm-intro {
        padding: 40px 20px 0;
    }

    .bm-intro-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bm-intro-text {
        display: block;
    }

    .bm-intro-catch,
    .bm-intro-body {
        grid-column: auto;
        grid-row: auto;
    }

    .bm-intro-photo {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    /* フィルター */
    .bm-filter {
        padding: 40px 0;
    }

    /* 目的から商品を探す */
    .pm-search-nav {
        flex-direction: column;
    }

    .pm-search-label {
        padding: 16px 24px;
    }

    .pm-search-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 14px 20px;
    }

    .pm-search-row > span {
        width: auto;
    }

    /* YouTube */
    .bm-youtube {
        padding: 40px 20px;
    }

    .bm-youtube-inner {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .bm-youtube-photo {
        grid-row: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 5 / 3;
        border-radius: 5px 5px 0 0;
    }

    /* セクション */
    .bm-section {
        padding: 60px 20px;
    }

    .bm-section-inner {
        padding-inline: 0;
    }

    /* 機械カード：縦積み */
    .bm-card-link {
        grid-template-columns: 1fr;
    }

    .bm-machine-img {
        aspect-ratio: 16 / 9;
    }

    .bm-machine-body {
        padding: 24px 20px 28px;
    }

    .bm-machine-body .btn-more {
        width: fit-content;
        justify-content: center;
    }

    /* 相談セクション */
    .bm-contact-box {
        padding: 40px 24px;
    }

    .bm-contact-box p {
        text-align: left;
    }

    .bm-contact-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .bm-contact-btns .btn-more {
        justify-content: center;
        padding-right: 45px;
    }
}
