/* product-single.css — WooCommerce single product detail page */

/* ============================================================
   PAGE TITLE（content-single-product.php のみ）
   ============================================================ */
.pageTitle-section {
    margin-top: 0px;
}
@media (max-width: 767px) {
    .pageTitle-section {
        margin-top: 0px;
    }
}

/* ============================================================
   PRODUCT SUBTITLE  (EN / JP)
   ============================================================ */
.singleProduct-pageSubtitle-section {
    text-align: center;
    padding: 40px 0 40px;
}
.singleProduct-pageSubtitle-en {
    font-family: 'PT Serif', serif;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.singleProduct-pageSubtitle-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #4a4a4a;
}

/* ============================================================
   FILTER TABS  (links to products.php)
   product-page.css はここでは読み込まれないので全スタイルをここに定義
   ============================================================ */
.mc-pd .mc-product-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 24px;
    background: #fff;
    position: sticky;
    top: 72px;
    z-index: 100;
}



.mc-pd .mc-product-filter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    padding: 7px 20px;
    border-radius: 999px;
    border: none;
    color: #fff;
    background: #2f8e89;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s;
}
.mc-pd .mc-product-filter__btn:hover {
    background: #035271;
    color: #fff;
}
.mc-pd .mc-product-filter__btn.active {
    background: #035271;
    color: #fff;
}

/* ============================================================
   LAYOUT  (2-column: gallery | summary)
   ============================================================ */
.mc-pd__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ============================================================
   GALLERY
   ============================================================ */
.mc-pd__gallery {
    margin-bottom: 40px;
}

.mc-pd__main-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #fff;
    overflow: hidden;
    border: 1px solid #eee;
}

.mc-product-image_logo{
    position: absolute;
    top: 12px;
    right: 16px;
    max-width: 112px !important;
    /* aspect-ratio: 4 / 3; */
}

.mc-pd__main-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.mc-pd__main-img.is-loading {
    opacity: 0.5;
}

.mc-pd__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.mc-pd__thumb {
    width: 72px;
    height: 72px;
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.mc-pd__thumb:hover,
.mc-pd__thumb.active {
    border: 2px solid #035271;
}
.mc-pd__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   SUMMARY — title
   ============================================================ */
.mc-pd__name {
    font-size: 18px;
    line-height: 18px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #202020;
    font-weight: 800;
}
.mc-pd__name-ja {
    font-size: 13px;
    color: #5b6870;
    margin: 0 0 20px;
}

/* ============================================================
   SPEC TABLE
   ============================================================ */
.mc-pd__layout{
    width: 100%;
    border-spacing: 0px;
}

.mc-pd__rightInfoTable{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mc-pd__rightInfoTable th{
    /* padding: 10px 16px; */
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    text-align: left;
}

.mc-pd__rightInfoTitle{
    width: 100%;
    background-color: #F5F8FA;
    border-top: solid 1px #CCCCCC;
    border-left: solid 1px #CCCCCC;
    border-right: solid 1px #CCCCCC;
    border-radius: 2px;
}

.mc-pd__rightInfoTitleBox{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding: 12px 16px;
}

.mc-pd__rightInfoTitle_en{
    font-size: 18px;
    line-height: 18px;
    font-family: 'PT Serif', serif;
    color: #202020;
    font-weight: bold;
}

.mc-pd__rightInfoTitle_jp{
    position: relative;
    top: -2px;
    font-size: 18px;
    line-height: 18px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #000002;
    font-weight: 600;
    /* margin-left: 4px; */
}


.mc-pd__rightInfoContent{
    width: 100%;
    border-top: solid 1px #CCCCCC;
    padding: 12px 16px;
}

.mc-pd__rightInfoContent:last-child{
    border-bottom: solid 1px #CCCCCC;
}

.mc-installation-option {
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dce4e8;
    border-radius: 2px;
    background: #f5f8fa;
    box-sizing: border-box;
    color: #202020;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.mc-installation-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0073aa;
}

.mc-installation-option:focus-within {
    border-color: #2f8a82;
    box-shadow: 0 0 0 2px rgba(47, 138, 130, 0.18);
}

.mc-installation-option__tax {
    white-space: nowrap;
}

.mc-installation-option__text,
.mc-installation-option__text .woocommerce-Price-amount,
.mc-installation-option__text .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
    line-height: 1.5;
}
/* ============================================================
   COLOR SWATCHES
   ============================================================ */
.mc-pd__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
    padding-bottom: 6px;
}

/* ── 컬러 원형 swatch ── */
.mc-pd__swatch {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.12);
    background-color: var(--sc, #ccc);
    cursor: pointer;
    padding: 0;
    font-size: 0;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.mc-pd__swatch:hover {
    transform: scale(0.9);
}

.mc-pd__swatch.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #202020;
}


/* ── 텍스트 라벨 swatch (--sc 없을 때) ── */
.mc-pd__swatch:not([style]) {
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    padding: 0 2px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #888;
    background-color: transparent;
    letter-spacing: 0.02em;
}
.mc-pd__swatch:not([style])::after {
    bottom: -3px;
    width: 100%;
    background: #111;
}
.mc-pd__swatch:not([style]):hover {
    transform: none;
    color: #111;
}
.mc-pd__swatch:not([style]).active {
    color: #111;
    font-weight: 600;
    border: none;
}

/* ============================================================
   PRICE
   ============================================================ */
.mc-pd__price {
    font-size: 20px;
    font-weight: 700;
    color: #202020;
    margin-bottom: 16px;
}
.mc-pd__price .woocommerce-Price-amount {
    font-size: inherit;
}
.mc-pd__price del {
    color: #999;
    font-size: 0.8em;
    margin-right: 8px;
}
.mc-pd__price ins {
    text-decoration: none;
}

/* ============================================================
   SHORT DESCRIPTION
   ============================================================ */
.mc-pd__spec-title{
    font-size: 15px;
    font-weight: 700;
    color: #2f2f2f;
    line-height: 24px;
    letter-spacing: 0.3px;
}

.mc-pd__spec-text{
    font-size: 14px;
    font-weight: 500;
    color: #2f2f2f;
    line-height: 21px;
    letter-spacing: 0.3px;
}


.mc-pd__short-desc {
    font-size: 14px;
    color: #5b6870;
    line-height: 1.8;
}

/* ============================================================
   WOOCOMMERCE FORM OVERRIDES
   ============================================================ */
/* Hide the default variation dropdown table — replaced by swatches */
.woocommerce .single_variation_wrap .woocommerce-variation{
    margin: unset;
}
.mc-pd__summary .variations_form table.variations {
    display: none;
}
.mc-pd__summary .variations_form .reset_variations {
    display: none;
}
/* Variation price / availability strip */
.mc-pd__summary .woocommerce-variation {
    font-size: 13px;
    color: #5b6870;
}
/* Qty + button row */
.mc-pd__summary .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.mc-pd__summary .quantity .qty {
    height: 46px;
    width: 72px;
    border: 1px solid #b8c8cf;
    padding: 0 10px;
    font-size: 15px;
    text-align: center;
}
.mc-pd__summary .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-height: 46px;
    background: #035271;
    /* background: #2f8a82; */
    color: #fff;
    border: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0px 32px;
}
.mc-pd__summary .single_add_to_cart_button::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: #fff;
    -webkit-mask: url('../icon/cart.svg') no-repeat center / contain;
    mask: url('../icon/cart.svg') no-repeat center / contain;
}
.mc-pd__summary .single_add_to_cart_button:hover {
    background: #024060;
    /* background: #236860; */
}
.mc-pd__summary .single_add_to_cart_button:disabled {
    background: #b8c8cf;
    cursor: default;
}
/* Simple product add-to-cart (variable product's form.cart.variations_form
   is laid out by .woocommerce-variation-add-to-cart above instead) */
.mc-pd__summary .cart:not(.variations_form) {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 8px;
}

/* ============================================================
   PAYMENT ICONS
   ============================================================ */
.mc-pd__payment-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.mc-pd__payment-icon {
    width: 50px;
    height: 33.33px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    display: block;
    border: 1px solid #EEE;
}

/* ============================================================
   購入する BUTTON
   ============================================================ */
.product-payment-box{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.mc-pd__buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 267px;
    height: 46px;
    background: #2f8a82;
    /* background: #035271; */
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.mc-pd__buy-btn:hover {
    /* background: #024060; */
    background: #236860;
    color: #fff;
}
.mc-pd__buy-btn--disabled {
    background: #b8c8cf;
    border-color: #b8c8cf;
    color: #fff;
    pointer-events: none;
}


:root :where(.wp-element-button, .wp-block-button__link){
    padding: 0px 1rem;
}

/* ============================================================
   AFTER SUMMARY  (WooCommerce tabs, related, upsells)
   ============================================================ */
.mc-pd__after {
    padding-bottom: 80px;
}


/* ============================================================
   PRODUCT TABS  (Features / Full Specs / Spring Chart / Accessory)
   ============================================================ */
.mc-pd-tabs {
    margin-top: 80px;
}
.mc-pd-tabs__nav {
    background: #fff;
}
.mc-pd-tabs__nav .mc-col-1170 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.mc-pd-tabs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 2px solid #2f8e89;
    color: #2f8e89;
    background: #fff;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.mc-pd-tabs__btn:hover {
    background: #2f8e89;
    color: #fff;
    border-color: #2f8e89;
}
.mc-pd-tabs__btn.active {
    background: #2f8e89;
    color: #fff;
    border-color: #2f8e89;
}
.mc-pd-tabs__panel {
    border-bottom: 1px solid #e0e8ec;
    padding: 56px 0;
    display: none;
}
.mc-pd-tabs__panel.active {
    display: block;
}
.mc-pd-tabs__panel-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
}
.mc-pd-tabs__panel-en {
    font-family: 'PT Serif', serif;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    color: #035271;
    letter-spacing: 1px;
    line-height: 1;
}
.mc-pd-tabs__panel-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #5b6870;
    letter-spacing: 0.5px;
    margin-top: 6px;
}
.mc-pd-tabs__panel-body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: #202020;
}
.mc-pd-tabs__panel-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   FEATURES GRID  （製品特徴 — 横長GIF 3列）
   HTML: <ul class="mc-feature-grid">
   ============================================================ */
.mc-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mc-feature-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mc-feature-grid li img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 12px;
}
.mc-feature-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2f8e89;
    text-align: center;
    margin-bottom: 4px;
}
.mc-feature-desc {
    font-size: 13px;
    color: #4a4a4a;
    line-height: 1.7;
    text-align: center;
}
@media (max-width: 767px) {
    .mc-feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }
}

/* ============================================================
   SPRING CHART  （スプリングチャート — 縦長画像 / グループ分け対応）
   HTML 構造:
     <div class="mc-spring-section">
       <div class="mc-spring-group">
         <h3 class="mc-spring-group__title">キャリッジスプリング</h3>
         <ul class="mc-spring-grid">
           <li>
             <img src="..." alt="">
             <span class="mc-spring-item__title">yellow Spring</span>
             <p class="mc-spring-item__strength">強さ●●○○○</p>
             <p class="mc-spring-item__desc">説明文</p>
           </li>
         </ul>
       </div>
     </div>
   ============================================================ */
.mc-spring-section {
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.mc-spring-group__title {
    font-family: 'PT Serif', serif;
    font-size: 22px;
    font-weight: 700;
    color: #202020;
    text-align: center;
    margin: 0 0 12px;
    padding-bottom: 12px;
}
.mc-spring-group__desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: #5b6870;
    line-height: 1.8;
    text-align: center;
    margin: 0 auto 28px;
    max-width: 640px;
}
.mc-spring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mc-spring-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mc-spring-grid li img {
    width: auto;
    max-width: 100%;
    height: 240px;
    object-fit: contain;
    margin-bottom: 16px;
}
.mc-spring-item__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #2f8e89;
    text-align: center;
    margin-bottom: 6px;
}
.mc-spring-item__strength {
    font-size: 16px;
    letter-spacing: 2px;
    color: #333;
    text-align: center;
    margin: 0 0 6px;
}
.mc-spring-item__desc {
    font-size: 13px;
    color: #5b6870;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}
@media (max-width: 767px) {
    .mc-spring-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }
    .mc-spring-grid li img {
        height: 160px;
    }
}
.mc-pd-tabs__panel-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.mc-pd-tabs__panel-body table th,
.mc-pd-tabs__panel-body table td {
    padding: 8px 12px;
    border: 1px solid #ccc;
    text-align: left;
}
.mc-pd-tabs__panel-body table th {
    background: #035271;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 767px) {
    .mc-pd-tabs__nav {
        top: 72px;
    }
    .mc-pd-tabs__panel {
        padding: 36px 0;
    }
}

/* ============================================================
   RESPONSIVE — Tablet 768 ~ 1024px
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .mc-pd__inner {
        gap: 36px;
    }
}

/* ============================================================
   RESPONSIVE — Mobile ~ 767px
   ============================================================ */
@media (max-width: 767px) {
    .mc-pd__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 0 48px;
    }
    .mc-pd__thumb {
        width: 60px;
        height: 60px;
    }

    /* 表示順: 画像ギャラリー → 値段/購入テーブル(mc-pd__summary) → アフターサービス/連絡先テーブル
       gallery_container 自体には固有のスタイルが無いため display:contents で解体し、
       中の画像とA/Sテーブルを .mc-pd__inner グリッドの直接の子として order 制御する。 */
    .mc-pd__gallery_container {
        display: contents;
    }
    .mc-pd__gallery {
        order: 1;
    }
    .mc-pd__summary {
        order: 2;
    }
    .mc-pd__gallery_container > .mc-pd__layout {
        order: 3;
    }

    /* summary内の項目順（PC/DOM順: 値段→カラー→宅急便運賃→購入→特徴）を
       スマホのみ カラー→値段→宅急便運賃→購入→特徴 に並び替え。
       .mc-pd__rightInfoTable は display:flex; flex-direction:column なので
       各 th(タイトル/内容ペア) に order を指定して視覚順のみ変更する。 */
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(1) {
        order: 3; /* 値段 タイトル */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(2) {
        order: 4; /* 値段 内容 */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(3) {
        order: 1; /* カラー タイトル */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(4) {
        order: 2; /* カラー 内容 */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(5) {
        order: 5; /* 宅急便運賃 タイトル */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(6) {
        order: 6; /* 宅急便運賃 内容 */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(7) {
        order: 7; /* 購入 タイトル */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(8) {
        order: 8; /* 購入 内容 */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(9) {
        order: 9; /* 特徴 タイトル */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(10) {
        order: 10; /* 特徴 内容 */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(11) {
        order: 11; /* 製品規格 タイトル（存在する場合のみ描画） */
    }
    .mc-pd__summary .mc-pd__rightInfoTable > th:nth-child(12) {
        order: 12; /* 製品規格 内容 */
    }
}

/* ============================================================
   FULL SPECS — 2カラム（左:仕様テーブル ／ 右:画像グリッド）
   ============================================================ */
.mc-spec-wrap {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: start;
}

/* 左：仕様テーブル */
.mc-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Noto Sans JP', sans-serif;
}
.mc-spec-table td {
    padding: 10px 16px;
    border: 1px solid #d0dce2;
    vertical-align: top;
    line-height: 1.7;
    color: #202020;
}
.mc-spec-table .mc-spec-label {
    width: 160px;
    background: #F5F8FA;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    color: #202020;
}
.mc-spec-table .mc-spec-heading td {
    background: #fff;
    border-left: none;
    border-right: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.4px;
    color: #3a3a3a;
    padding: 18px 0px 6px 10px;
}

/* 右：アクセサリー画像グリッド */
.mc-spec-media {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.mc-spec-media-row {
    display: grid;
    gap: 16px;
    text-align: center;
}
.mc-spec-media-row--2 { grid-template-columns: 1fr 1fr; }
.mc-spec-media-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.mc-spec-media-row--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.mc-spec-media-item img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    display: block;
}
.mc-spec-media-item-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #3a3a3a;
    margin-top: 8px;
    font-family: 'Noto Sans JP', sans-serif;
}
.mc-spec-media-group-title {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #3a3a3a;
    margin: -20px 0 0;
    font-family: 'Noto Sans JP', sans-serif;
}

@media (max-width: 900px) {
    .mc-spec-wrap {
        grid-template-columns: 1fr;
    }
    .mc-spec-media-row--3,
    .mc-spec-media-row--4 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   ACCESSORY GRID  (アクセサリー — Features同様3列グリッド＋リンク)
   HTML: <ul class="mc-accessory-grid">
   ============================================================ */
.mc-accessory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mc-accessory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
}
.mc-accessory-card__img-wrap {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}
.mc-accessory-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #eee;
    /* transition: transform 0.25s ease; */
}
.mc-accessory-card__name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 18px;
    font-weight: 700;
    color: #202020;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.mc-accessory-card__name-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    text-align: center;
    margin-bottom: 8px;
}
.mc-accessory-card__btn {
    width: 100%;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #2f8e89;
    border: 1px solid #2f8e89;
    /* padding: 5px 80px; */
    border-radius: 4px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.mc-accessory-card:hover .mc-accessory-card__btn {
    background: #2f8e89;
    color: #fff;
}
@media (max-width: 767px) {
    .mc-accessory-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 12px;
    }
    .mc-accessory-card__img-wrap {
        height: 130px;
    }
}

/* ============================================================
   RESPONSIVE  ―  3段階統合レスポンシブ
   Desktop   : 1025px +   （上記ベーススタイルがそのまま適用）
   Tablet    : 768 ~ 1024px
   Mobile    : ~ 767px
   Small     : ~ 375px
   ============================================================ */

/* ── Tablet 768–1024px ──────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Subtitle */
    .singleProduct-pageSubtitle-section { padding: 28px 0; }
    .singleProduct-pageSubtitle-en      { font-size: 22px; }
    .singleProduct-pageSubtitle-jp      { font-size: 14px; }

    /* 2カラムレイアウト — gap縮小 */
    .mc-pd__inner { gap: 24px; }

    /* Tab Nav */
    .mc-pd-tabs__btn {
        font-size: 12px;
        padding: 7px 12px;
    }
    .mc-pd-tabs__panel { padding: 40px 0; }
    .mc-pd-tabs__panel-en { font-size: 28px; }

    /* Features — 2列 */
    .mc-feature-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }

    /* Spring — 2列 */
    .mc-spring-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
    .mc-spring-grid li img { height: 180px; }

    /* Full Specs — 縦積み */
    .mc-spec-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Accessory — 2列 */
    .mc-accessory-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
    .mc-accessory-card__img-wrap { height: 160px; }

    /* カート + 購入ボタン — 2カラムだと幅が狭いので折り返し可に */
    .mc-pd__summary .woocommerce-variation-add-to-cart,
    .mc-pd__summary .cart:not(.variations_form) {
        flex-wrap: wrap;
    }
    .product-payment-box {
        flex-wrap: wrap;
    }
    .mc-pd__buy-btn {
        max-width: 100%;
    }
}

/* ── Mobile ~ 767px ──────────────────────────────────────── */
@media (max-width: 767px) {

    /* Subtitle */
    .singleProduct-pageSubtitle-section { padding: 20px 16px; }
    .singleProduct-pageSubtitle-en      { font-size: 18px; }
    .singleProduct-pageSubtitle-jp      { font-size: 13px; }

    /* Filter tabs — 横スクロール */
    .mc-pd .mc-product-filter {
        display: flex;
        flex-wrap: wrap;
        overflow-x: auto;
        justify-content: center;
        padding: 32px 16px 12px;
        top: 56px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mc-pd .mc-product-filter::-webkit-scrollbar { display: none; }
    .mc-pd .mc-product-filter__btn {
        font-size: 11px;
        padding: 6px 14px;
        flex-shrink: 0;
    }

    /* 2カラム → 1カラム */
    .mc-pd__inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0 40px;
    }

    /* Gallery */
    .mc-pd__main-img-wrap { aspect-ratio: 4 / 3; }
    .mc-product-image_logo { max-width: 80px !important; top: 8px; right: 10px; }
    .mc-pd__thumb { width: 52px; height: 52px; }

    /* Summary table */
    .mc-pd__rightInfoTitle_en { font-size: 14px; }
    .mc-pd__rightInfoTitle_jp { font-size: 12px; }

    /* Price / button */
    .mc-pd__price { font-size: 17px; }

    /* カート + 購入ボタン — 横並びだと窮屈になるので縦積みに */
    .mc-pd__summary .woocommerce-variation-add-to-cart,
    .mc-pd__summary .cart:not(.variations_form) {
        flex-wrap: wrap;
    }
    .mc-pd__summary .quantity .qty {
        height: 42px;
        width: 64px;
    }
    .mc-pd__summary .single_add_to_cart_button {
        min-height: 42px;
        font-size: 13px;
        padding: 0 16px;
    }
    .product-payment-box {
        flex-direction: column;
        align-items: stretch;
    }
    .mc-pd__buy-btn {
        max-width: 100%;
        font-size: 14px;
        min-height: 42px;
    }

    /* Tab Nav — 横スクロール */
    .mc-pd-tabs { margin-top: 40px; }
    .mc-pd-tabs__nav { position: sticky; top: 56px; z-index: 90; }
    .mc-pd-tabs__nav .mc-col-1170 {
        display: flex;
        flex-wrap: wrap;
        overflow-x: auto;
        padding: 10px 16px;
        gap: 6px;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mc-pd-tabs__nav .mc-col-1170::-webkit-scrollbar { display: none; }
    .mc-pd-tabs__btn {
        font-size: 11px;
        padding: 6px 12px;
        flex: 0 0 auto;
    }

    /* Tab Panel */
    .mc-pd-tabs__panel        { padding: 32px 0; }
    .mc-pd-tabs__panel-heading { margin-bottom: 24px; }
    .mc-pd-tabs__panel-en     { font-size: 22px; }
    .mc-pd-tabs__panel-ja     { font-size: 12px; }

    /* Features — 1列 */
    .mc-feature-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .mc-feature-title { font-size: 13px; }
    .mc-feature-desc  { font-size: 12px; }

    /* Spring — 1列 */
    .mc-spring-section          { gap: 36px; }
    .mc-spring-group__title     { font-size: 17px; }
    .mc-spring-group__desc      { font-size: 12px; margin-bottom: 20px; }
    .mc-spring-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .mc-spring-grid li img      { height: 200px; }
    .mc-spring-item__title      { font-size: 14px; }
    .mc-spring-item__strength   { font-size: 14px; }
    .mc-spring-item__desc       { font-size: 12px; }

    /* Full Specs — 縦積み */
    .mc-spec-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .mc-spec-table th,
    .mc-spec-table td          { font-size: 12px; padding: 7px 10px; }
    .mc-spec-media-row--2,
    .mc-spec-media-row--3,
    .mc-spec-media-row--4      { grid-template-columns: 1fr; }
    .mc-spec-media-item        { height: 130px; }

    /* Accessory — 2列 */
    .mc-accessory-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 10px;
    }
    .mc-accessory-card__img-wrap { height: 110px; }
    .mc-accessory-card__name     { font-size: 10px; letter-spacing: 0.5px; }
    .mc-accessory-card__name-ja  { font-size: 10px; }
    .mc-accessory-card__btn      { font-size: 10px; padding: 4px 12px; }
}

/* ── Small phone ~ 375px ─────────────────────────────────── */
@media (max-width: 375px) {

    .singleProduct-pageSubtitle-en { font-size: 16px; }

    .mc-pd-tabs__btn { font-size: 10px; padding: 5px 10px; }

    /* Features — さらに余白縮小 */
    .mc-feature-grid { gap: 20px; }

    /* Accessory — 1列 */
    .mc-accessory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .mc-accessory-card__img-wrap { height: 140px; }
}

/* ============================================================
   FAQ アコーディオン
   ============================================================ */
.mc-pd-faq {
    padding: 64px 20px 80px;
    background: #fff;
}
.mc-pd-faq .mc-col-1170 {
    max-width: 1170px;
    margin: 0 auto;
}
.mc-pd-faq__title {
    text-align: center;
    font-family: 'PT Serif', serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #1a1a1a;
    margin: 0 0 48px;
}
.mc-pd-faq__item {
    border-bottom: 1px solid #d5d5d5;
}
.mc-pd-faq__item:first-child {
    border-top: 1px solid #d5d5d5;
}
.mc-pd-faq__q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #1a1a1a;
    gap: 20px;
    line-height: 1.5;
}
.mc-pd-faq__q:hover {
    opacity: 0.7;
}
.mc-pd-faq__q-text{
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
}
/* ↑ アイコン（デフォルト：閉じ状態） */
.mc-pd-faq__icon img{
    width: 12px;
    height: 12px;
    position: relative;
    transform: rotate(-90deg);
    transition: transform 0.25s ease;
}
/* ↓ アイコン（開き状態） */
.mc-pd-faq__item.open .mc-pd-faq__icon img {
    transform: rotate(90deg);
}

/* アコーディオン本文 */
.mc-pd-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.mc-pd-faq__item.open .mc-pd-faq__a {
    max-height: 600px;
}
.mc-pd-faq__a-inner {
    padding: 0px 40px 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}
@media (max-width: 767px) {
    .mc-pd-faq {
    padding: 64px 0px 80px;
    background: #fff;
    }

    .mc-pd-faq__item{
        padding: 0px 16px;
    }

    .mc-pd-faq__a-inner{
        padding: 0px 4px 20px;
    }
}


@media (max-width: 600px) {
    .mc-pd-faq__title { font-size: 22px; margin-bottom: 32px; }
    .mc-pd-faq__q { font-size: 14px; padding: 18px 4px; }
}

/* ============================================================
   おすすめ製品スライダー（納入実績・お知らせページと同一の実装）
   ============================================================ */
.mc-related {
    padding: 56px 0 120px;
    background: #fff;
}
.mc-related__title {
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    margin: 0 0 28px;
}
.mc-related__slider {
    position: relative;
    display: flex;
    align-items: stretch;
}
.mc-related__arrow {
    position: absolute;
    flex-shrink: 0;
    /* width: 44px; */
    background: none !important;
    border: none;
    cursor: pointer;
    font-size: 32px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
}

.mc-related__arrow--prev{
    left: -24px;
    top: 40%;
}

.mc-related__arrow--next{
    right: -24px;
    top: 40%;
}
/* .mc-related__arrow:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #1a1a1a;
}
.mc-related__arrow:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
} */
.mc-related__track-wrap {
    position: relative;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mc-related__track-wrap::-webkit-scrollbar { display: none; }
.mc-related__track {
    width: 100%;
    display: flex;
    gap: 2%;
}
.mc-related__card {
    flex-shrink: 0;
    width: 18.4%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
    scroll-snap-align: start;
    transition: opacity 0.2s;
}
.mc-related__card:hover {
    opacity: 0.88;
}
.mc-related__card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f2f2;
    margin-bottom: 10px;
}
.mc-related__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.mc-related__card:hover .mc-related__card-img img {
    transform: scale(1.05);
}
.mc-related__card-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2f8e89;
    color: #fff;
    padding: 14px 16px;
    gap: 8px;
    min-height: 52px;
}
.mc-related__card-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mc-related__card-arrow {
    font-size: 20px;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.9;
}
/* タブレット：3枚表示 */
@media (max-width: 900px) {
    .mc-related__card { width: calc(100% / 3); }
}
/* スマホ：1.5枚表示 */
@media (max-width: 600px) {
    .mc-related__arrow { display: none; width: 32px; font-size: 24px; }
    .mc-related__card { width: 100%; }
}
