/* ==============================================
   生花用資材ページ（04_1_products_material）
   ============================================== */


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

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

.pm-intro-text > p:first-child {
    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;
}

.pm-intro-text > p:last-child {
    line-height: 2;
    color: var(--color-text);
}

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

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


/* フィーチャー＆絞り込みエリア 外枠
--------------------------------------------- */
.pm-filter {
    background-color: #F8F8F8;
}

.pm-filter-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}


/* フィーチャーカード（2枚横並び）
--------------------------------------------- */
.pm-feature-cards {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.pm-feature-card {
    width: 100%;
    background: var(--color-white);
    overflow: unset;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Card 1 (SEASONAL SELECTION): 画像を左側全面に */
.pm-feature-card:first-child {
    padding: 0;
    align-items: center;
}

.pm-feature-card:first-child .pm-feature-img {
    width: 100%;
    max-width: 500px;
    padding: 15px 0 15px 15px;
    align-self: flex-start;
}

.pm-feature-card:first-child .pm-feature-img img {
    height: auto;
    object-fit: initial;
}

.pm-feature-card:first-child .pm-feature-body {
    justify-content: center;
}

.pm-feature-card:last-child .pm-feature-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    flex-shrink: 0;
    padding: 15px 0 0 15px;
    align-self: flex-start;
}

.pm-feature-card:last-child .pm-feature-body {
    padding: 30px 20px 40px;
}

/* バッジ */
.pm-feature-badge {
    position: absolute;
    top: -40px;
    left: 0;
    font-size: clamp(0.875rem, calc(0.768rem + 0.446vw), 1.125rem); /* max: 18px */
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-white);
    padding: 5px 14px;
    z-index: 1;
    border-radius: 0 10px 0 0;
}

.pm-feature-badge--blue { background-color: var(--color-primary); }
.pm-feature-badge--green { background-color: #3B9927; }

/* 画像エリア */
.pm-feature-img {
    overflow: hidden;
    flex-shrink: 0;
}

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

/* テキストエリア */
.pm-feature-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding-right: 20px;
}

.pm-feature-body h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.125rem, calc(0.911rem + 0.893vw), 1.625rem); /* max: 26px */
    font-weight: 700;
    color: var(--color-primary);
}

.pm-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;
}

.pm-feature-body p {
    font-size: clamp(0.9375rem, calc(0.894rem + 0.179vw), 1.0625rem); /* max: 17px */
    line-height: 1.8;
    padding-right: 20px;
}

.pm-feature-body .btn-more {
    margin-top: 10px;
    width: fit-content;
}

.pm-feature-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
}

.pm-feature-btns .btn-more {
    margin-top: 0;
}


/* 目的から商品を探す
--------------------------------------------- */
.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;
    color: var(--color-text);
    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);
}


/* 商品カテゴリセクション群
--------------------------------------------- */
.pm-category {

}

.pm-category-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 130px 20px;
}

.pm-category .section-header.is-horizontal p:last-child {
    flex: 1;
}

/* 背景色あり（店頭用資材・その他） */
#store,
#other {
    background-color: #F8F8F8;
}

#other .section-header p:last-child {
    display: none;
}

#other .section-header h2 {
    white-space: normal;
}



/* スライダーラッパー（矢印 + Swiper）
--------------------------------------------- */
.pm-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pm-slider-btn {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-slider-btn:hover {
    opacity: 0.7;
}

.pm-slider-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.pm-slider-btn img {
    width: 60px;
    height: 60px;
    display: block;
}

.pm-swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}


/* 商品カード
--------------------------------------------- */
.pm-product-card {
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-white);
    transition: box-shadow 0.2s ease;
}

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

.pm-product-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

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

.pm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pm-product-card:hover .pm-product-img img {
    transform: scale(1.04);
}

.pm-product-body {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pm-product-body h3 {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: clamp(1rem, calc(0.911rem + 0.357vw), 1.25rem); /* max: 20px */
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
}

.pm-product-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: 7px;
}

.pm-product-body p {
    font-size: clamp(0.875rem, calc(0.839rem + 0.143vw), 0.9375rem); /* max: 15px */
    line-height: 1.8;
    flex: 1;
}

.pm-product-body .btn-more {
    width: fit-content;
    font-size: 0.8125rem;
    padding: 6px 36px 5px 12px;
    margin-top: auto;
    align-self: flex-end;
}


/* カタログダウンロードCTA
--------------------------------------------- */
.pm-cta {
    position: relative;
    padding: 150px 0;
    background: url('../images/products-material/kv_products-material.webp') no-repeat center / cover;
}

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

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

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

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

.pm-cta-box p {
    line-height: 2;
    margin-bottom: 20px;
}

.pm-cta-box .btn-more {
    margin: 0 auto;
    padding: 12px 60px 10px 24px;
}

/* カテゴリ一覧リンク
--------------------------------------------- */
.pm-category-more {
    margin-top: 40px;
    text-align: center;
}


/* カタログバナー（その他カテゴリ内）
--------------------------------------------- */
.pm-catalog {
    background-color: var(--color-white);
    border-radius: 5px;
    margin-top: 60px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
}

.pm-catalog-photo {
    width: 300px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 5px 0 0 5px;
}

.pm-catalog-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.pm-catalog-body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: repeat(2, 1fr);
    padding-right: 20px;
    align-items: center;
}

.pm-catalog-body p:first-child {
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.125rem, calc(0.964rem + 0.643vw), 1.5rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.5;
}

.pm-catalog-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;
}

.pm-catalog-body p:last-child {
    grid-area: 2 / 1 / 3 / 2;
    line-height: 2.5;
}

.pm-catalog-body .btn-more {
    grid-area: 1 / 2 / 3 / 3;
    width: 300px;
    height: fit-content;
    margin-left: auto;
}


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


/* ==============================================
   生花用資材カテゴリー一覧（pmcl-）
   ============================================== */

/* 絞り込み検索エリア
--------------------------------------------- */
.pmcl-filter-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 40px 0;
}

/* 商品一覧
--------------------------------------------- */
.pmcl-archive {
    padding: 50px 0 0;
}

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

/* 件数表示 */
.pmcl-count {
    text-align: right;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* 商品グリッド（4列） */
.pmcl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* ページネーション
--------------------------------------------- */
.pmcl-pagination {
    display: flex;
    justify-content: center;
    padding: 0 0 80px;
}

/* paginate_links( type:'list' ) が出力する ul.page-numbers を対象にする */
.pmcl-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pmcl-pagination .page-numbers li a,
.pmcl-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding-inline: 4px;
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.pmcl-pagination .page-numbers li a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pmcl-pagination .page-numbers li .current {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    pointer-events: none;
}

.pmcl-pagination .page-numbers li .dots {
    border: none;
    min-width: auto;
    padding-inline: 2px;
    pointer-events: none;
}


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

    .pmcl-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


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

    .pmcl-filter-inner {
        padding: 30px 20px;
    }

    .pmcl-archive {
        padding: 40px 20px 0;
    }

    .pmcl-archive-inner {
        padding-inline: 0;
    }

    .pmcl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

    .pmcl-pagination {
        padding-bottom: 60px;
    }
}



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

    .pm-feature-cards {
        gap: 120px;
        padding-top: 50px;
    }

    .pm-feature-card:last-child {
        align-items: flex-start;
    }
}


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

    /* カタログバナー：ボディを縦積み（外2カラムは維持） */
    .pm-catalog {
        gap: 0;
        padding: 18px;
        align-items: start;
    }

    .pm-catalog-photo {
        width: 240px;
        border-radius: 5px;
    }

    .pm-catalog-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding-right: 0;
        gap: 12px;
    }

    .pm-catalog-body p:first-child,
    .pm-catalog-body p:last-child {
        grid-area: auto;
    }

    .pm-catalog-body .btn-more {
        grid-area: auto;
        width: fit-content;
        margin-left: 0;
    }

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

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

    .pm-intro-text > p:first-child {
        grid-column: 1 / -1;
    }

    .pm-intro-text > p:last-child {
        grid-column: 1;
        align-self: start;
    }

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

    /* スライダー：矢印を小さく */
    .pm-slider-btn {
        width: 44px;
        height: 44px;
    }

    .pm-slider-btn img {
        width: 44px;
        height: 44px;
    }

    /* CTA */
    .pm-cta {
        padding: 60px 0;
    }

    .pm-cta-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;
    }

    .section-header.is-horizontal {
        display: block;
        margin-bottom: 30px;
    }

    .section-header p:last-child {
        margin-top: 10px;
    }

    .pm-feature-body p {
        padding-right: 10px;
    }

    .pm-feature-card:first-child .pm-feature-body {
        padding: 20px 20px 30px 0;
    }

    .pm-feature-card:last-child .pm-feature-body {
        padding: 30px 20px 40px 0;
    }

    .pm-filter-inner {
        padding: 50px 20px 70px;
    }

    .pm-feature-badge {
        top: -37px;
    }

    .pm-feature-card:first-child .pm-feature-img {
        max-width: 400px;
    }

    .pm-feature-card:last-child .pm-feature-img {
        max-width: 400px;
    }

}


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

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

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

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

    .pm-intro-text > p:first-child,
    .pm-intro-text > p:last-child {
        grid-column: auto;
        grid-row: auto;
    }

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

    /* フィーチャーカード：カード内を縦積みに */
    .pm-feature-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .pm-feature-card:first-child {
        padding: 0;
    }

    .pm-feature-badge {
        top: -36px;
    }

    .pm-feature-card:first-child .pm-feature-img {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .pm-feature-card:first-child .pm-feature-body {
        width: 100%;
        align-items: flex-start;
        padding: 20px 20px 40px;
    }

    .pm-feature-card:last-child .pm-feature-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-inline: auto;
        padding: 0;
    }

    .pm-feature-card:last-child .pm-feature-body {
        padding: 20px 20px 40px;
    }

    .pm-feature-body p {
        padding-right: 0;
    }

    .pm-feature-btns {
        width: 100%;
        margin-inline: 0;
    }

    .pm-feature-body .btn-more {
        margin-top: 0;
        margin-inline: auto;
    }

    .pm-feature-btns .btn-more {
        margin-inline: 0;
    }

    /* 目的から商品を探す */
    .pm-search-filters {
        padding: 15px;
        gap: 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;
        min-width: unset;
        border-right: none;
        padding-right: 0;
    }

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

    /* カテゴリセクション */
    .pm-category {
        padding: 60px 20px;
    }

    .pm-category-inner {
        padding: 0;
        overflow: hidden;
    }

    /* カタログバナー：スマホで縦積み */
    .pm-catalog {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-inline: 20px;
    }

    .pm-catalog-body {
        gap: 0;
    }

    .pm-catalog-body p:first-child {
        margin-bottom: 10px;
    }

    .pm-catalog-body .btn-more {
        width: 100%;
        margin-top: 20px;
        justify-content: center;
    }

    .pm-catalog-photo {
        width: 100%;
        margin-inline: auto;
        border-radius: 5px;
    }

/* スライダー：モバイルは矢印非表示 */
    .pm-slider-btn {
        display: none;
    }

    /* CTA */
    .pm-cta-box {
        padding: 40px 24px;
    }

    .pm-cta-box .btn-more {
        width: fit-content;
        justify-content: center;
        padding-right: 45px;
    }

    .pm-cta-box p {
        text-align: left;
    }

    .pm-cta-btns .btn-more {
        width: 100%;
    }
}


/* ==============================================
   生花用資材 商品詳細ページ（pmd-）
   bouquet-machine-detail の bmd- クラスを転載・改変
   ============================================== */


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


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

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

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

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


/* 画像ギャラリー
--------------------------------------------- */
.pmd-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 15px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
}

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

/* サムネイル：2行×4列グリッド */
.pmd-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

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

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

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


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

.pmd-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;
}
.pmd-tags a:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pmd-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;
}

.pmd-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;
}

.pmd-desc {
    margin-bottom: 30px;
}

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

.pmd-desc p + p {
    margin-top: 1em;
}

.pmd-hero-btns {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
}

.pmd-hero-btns .btn-more {
    font-size: 0.9375rem;
    padding: 12px 50px 10px 20px;
    justify-content: center;
}
.pmd-hero-btns .btn-more.btn-more--outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}


/* アウトラインボタン・PDFボタン
--------------------------------------------- */
.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);
}

.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);
}

.pmd-hero-body .btn-more--pdf {
    width: 100%;
    justify-content: center;
    margin-top: 14px;
}


/* フラサポ購入ボタン
--------------------------------------------- */
.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 {
    display: grid;
    gap: 15px;
    overflow: hidden;
    margin-top: 14px;
}

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


/* 仕様・サイズ一覧
--------------------------------------------- */
.pmd-specs {
    padding: 120px 20px;
    background-color: #F8F8F8;
}

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

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

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

.pmd-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: 28px;
}

/* 仕様セクション */
.pmd-size-img + .pmd-specs-section {
    margin-top: 70px;
}

.pmd-specs-section + .pmd-specs-section {
    margin-top: 70px;
    padding-top: 70px;
}

/* 仕様 DL テーブル（bmd-specs-table 転載）*/
.pmd-specs-table {
    width: 100%;
}

.pmd-specs-table > div {
    display: grid;
    grid-template-columns: 150px 1fr;
}

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

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

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

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

.pmd-caution {
    display: block;
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-top: 8px;
}

/* サイズ一覧テーブル */
.pmd-size-table {
    width: 100%;
    border-collapse: collapse;
}

.pmd-size-table thead tr {
    background: var(--color-primary);
    color: var(--color-white);
}

.pmd-size-table th {
    padding: 14px 20px;
    font-weight: 700;
}
.pmd-size-table th:first-child {
    border-right: 1px solid #BCBCBC;
}

.pmd-size-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #EBEBEB;
    text-align: center;
}

.pmd-size-table tr td:first-child {
    border-right: 1px solid #BCBCBC;
}

.pmd-size-table tbody tr:nth-child(even) {
    background: #F8F8F8;
}

/* サイズ補足・カタログボタン */
.pmd-sizes-note {
    margin-top: 30px;
    padding: 24px 28px;
    background: #F8F8F8;
    border-radius: 5px;
    box-shadow: 3px 3px 6px 0px rgba(0, 0, 0, 0.1);
}

.pmd-sizes-note-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1rem, calc(0.821rem + 0.714vw), 1.5rem); /* max: 24px */
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.pmd-sizes-note-heading::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('../images/head_icon.svg') no-repeat center / contain;
    flex-shrink: 0;
}

.pmd-sizes-note > p:not(.pmd-sizes-note-heading) {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.pmd-sizes-note .btn-more {
    margin-left: auto;
    display: block;
    width: fit-content;
}


/* CTA：2ボタン対応
--------------------------------------------- */
.pm-cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pm-cta-btns .btn-more {
    margin: 0;
    padding: 10px 60px 8px 24px;
}


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

    /* ヒーロー並び替え（tags→name→catch→gallery→以降自然順）*/
    .pmd-hero-inner {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-width: 680px;
        margin-inline: auto;
        align-items: flex-start;
        padding-inline: 0;
    }

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

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

    .pmd-hero-btns .btn-more {
        flex: 1;
    }
    .pmd-related {
        order: 7;
        align-self: stretch;
        width: 100%;
    }
    .pmd-hero-body > .btn-more--pdf {
        order: 8;
        align-self: stretch;
        width: 100%;
    }

    .pmd-specs .section-header {
        margin-bottom: 40px;
    }

    .pmd-specs {
        padding: 80px 0;
    }

    .pmd-specs-inner {
        grid-template-columns: 1fr;
        gap: 0;
        margin-inline: 20px;
    }

}


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

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

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

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

    .pmd-gallery {
        width: 100%;
        max-width: 100%;
    }
    
}


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

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

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

    .pmd-hero-btns {
        flex-direction: column;
    }

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

    .pmd-hero-btns .btn-more.btn-more--outline {
        width: 100%;
    }

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

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

    .pmd-specs-inner {
        padding: 30px 20px;
        margin-inline: 0;
    }

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

    .pmd-specs-table dt {
        padding-bottom: 4px;
        border-bottom: none;
    }

    .pmd-specs-table dd {
        padding-top: 4px;
    }

    .pmd-size-table th,
    .pmd-size-table td {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }

    .pmd-sizes-note-heading {
        align-items: flex-start;
    }

    .pmd-sizes-note-heading::before {
        margin-top: 7px;
    }

    .pm-cta-btns {
        flex-direction: column;
        align-items: stretch;
    }

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