/* モック2 下層ページ（2026-12-03）：トップと同じ決まり（丸い帯のメニュー・明るい面・角丸・ふわっと出る動き）を広げる。
   黒の欄は色変数をそのまま、明るい面の中では色変数を入れ替えて文字を黒にする。 */
body.m2-sub {
  --category-bg: #1a1d1e; --ink: #1a1d1e; background: #1a1d1e;
  --category-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --sans: Karla, "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --r-box: clamp(16px, 1.8vw, 24px);
}
body.m2-sub.cdj-category::before { display: none; }
body.m2-sub.cdj-category { font-family: var(--m2-gothic); letter-spacing: .04em; }
body.m2-sub :is(h1, h2, h3) { font-family: var(--m2-mincho); }

/* ---------- 上部メニュー（下層の書き方に合わせる） ---------- */
body.m2-sub .cdj-global-header.cdj-global-header { position: fixed; }
body.m2-sub .cdj-global-header.cdj-global-header :is(.category-brand, .detail-brand) { width: clamp(150px, 14vw, 200px); }
body.m2-sub .cdj-global-header.cdj-global-header :is(.category-menu-toggle, .detail-menu-toggle) {
  position: relative; display: grid; place-content: center; gap: 5px; width: 46px; height: 46px; min-height: 46px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: #f3f2ee; color: #131414; transition: transform .3s var(--m2-ease);
}
body.m2-sub .cdj-global-header.cdj-global-header :is(.category-menu-toggle, .detail-menu-toggle):hover { transform: scale(1.06); }
body.m2-sub .cdj-global-header.cdj-global-header :is(.category-menu-toggle, .detail-menu-toggle) > :is(span, i) { display: block; width: 18px; height: 1.5px; margin: 0; border-radius: 2px; background: currentColor; }
body.m2-sub .cdj-global-header.cdj-global-header :is(.category-menu-toggle, .detail-menu-toggle) > small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.m2-sub.cdj-detail main, body.m2-sub.contact-page main { padding-top: 84px; }
@media (max-width: 640px) {
  body.m2-sub .cdj-global-header.cdj-global-header :is(.category-brand, .detail-brand) { width: 112px; }
  body.m2-sub.cdj-detail main { padding-top: 70px; }
}

/* ---------- 明るい面：色変数を入れ替える ---------- */
body.m2-sub .m2-sheet {
  --category-text: #131414; --category-soft: #5f6362; --category-line: rgba(19, 20, 20, .16); --category-gold: #131414; --category-bg: #f3f2ee;
  --paper: #131414; --muted: #5f6362; --line: rgba(19, 20, 20, .16); --gold: #131414; --ink: #f3f2ee;
  color: #131414; margin-block: clamp(20px, 3vw, 44px);
}
body.m2-sub .m2-sheet > section { position: relative; z-index: 1; background: transparent; border: 0; }
body.m2-sub .m2-sheet > section:first-of-type { padding-top: clamp(56px, 7vw, 104px); }
body.m2-sub .m2-sheet > section:last-of-type { padding-bottom: clamp(56px, 7vw, 104px); }

/* ---------- 冒頭（ヒーロー）：下の角を丸く ---------- */
body.m2-sub :is(.category-hero, .car-hero, .instrument-hero, .rw-hero) { margin-inline: var(--m2-inset); border-radius: 0 0 var(--m2-r-sheet) var(--m2-r-sheet); overflow: hidden; }
body.m2-sub .detail-hero-image { border-radius: var(--m2-r-photo); overflow: hidden; }

/* ---------- 写真：角を丸く ---------- */
body.m2-sub :is(.car-repair-feature, .category-photo-service, .instrument-photo-panel, .instrument-product-photo, .instrument-example-photo,
  .category-product-image, .bike-section-photo, .bike-diagnosis-visual, .bike-protection-visual, .bike-paint-visual, .bike-record-film,
  .bike-paint-photo, .rw-hero-photo, .bike-estimate-frame, .bike-reservation-photo, .bike-diagnosis-photo, .dealer-map-panel) { border-radius: var(--m2-r-photo); overflow: hidden; }
body.m2-sub :is(.bike-work-pair, .rw-pair, .car-case-pair) { border-radius: var(--r-box); overflow: hidden; }
body.m2-sub :is(.rw-record-photos, .rw-process-images, .protec-example-grid, .bike-color-grid, .detail-feature.has-photo, .instrument-example-list) figure > :is(img, div) { border-radius: var(--r-box); overflow: hidden; }
body.m2-sub .detail-related a img { border-radius: 12px; }

/* ---------- 箱・行・ボタン：角を丸く ---------- */
body.m2-sub :is(.car-method li, .car-method-list > li, .protec-flow-list li, .instrument-oneoff-flow li, .detail-feature, .repair-target-list a,
  .instrument-shop-links a, .bike-estimate-panel, .bike-estimate-finish-card, .bike-price-block, .bike-paint-card, .bike-work-card, .rw-archive-card,
  .category-product, .instrument-product, .bike-menu-item, .automotive-service-list > *, .dealer-map-selection) { border-radius: var(--r-box); }
body.m2-sub :is(.category-disclosure, .category-faq-more, .detail-disclosure, .detail-more, .bike-estimate-parts-disclosure, .bike-infrared-disclosure, .bike-price-details, .dealer-more) > summary { border-radius: 14px; }
body.m2-sub :is(.other-examples li, .instrument-jump-nav a, .detail-anchor-nav a, .bike-quick-nav a, .rw-jump a) { border-radius: 999px; }
body.m2-sub :is(.other-button, .instrument-oneoff-button, .bike-reserve-button, .bike-consult-link, .category-hero-actions a, .detail-purchase-links a, .detail-channel-links a,
  .bike-estimate-actions :is(a, button), .bike-request-actions a, .dealer-business-link, .bike-work-controls button, .bike-paint-dialog-navigation button) { border-radius: 999px; }
body.m2-sub :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) { border-radius: 14px; }

/* ---------- ご相談はこちら：黒の丸い面 ---------- */
body.m2-sub .cdj-consult { margin: clamp(20px, 3vw, 44px) var(--m2-inset) 0; border-radius: var(--m2-r-sheet); background: #24282a; }
body.m2-sub .cdj-consult-way { border-radius: 22px; transition: background .3s ease, border-color .3s ease, transform .35s var(--m2-ease); }
body.m2-sub .cdj-consult-way:hover { transform: translateY(-3px); }
body.m2-sub .cdj-consult-way i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; font-size: 13px; }

/* ---------- 明るい面の中に置かれた黒い部品は、もとの色に戻す ---------- */
body.m2-sub .m2-sheet :is(.inquiry-panel, .bike-estimate, .category-photo-service, .instrument-photo-panel) {
  --category-text: #f1f1ed; --category-soft: #c1c8c6; --category-line: #ffffff25; --category-gold: #dfbd81; --category-bg: #1a1d1e;
  --paper: #f1f1ed; --muted: #c1c8c6; --line: rgba(226, 235, 230, .19); --gold: #dfbd81; --ink: #1a1d1e;
  color: #f1f1ed; color-scheme: dark;
}
body.m2-sub .inquiry-panel { border-radius: clamp(22px, 3vw, 40px); }
body.m2-sub .inquiry-panel :is(button, .inquiry-actions a) { border-radius: 999px; }
body.m2-sub .detail-section > h2:first-child { margin-bottom: clamp(20px, 3vw, 36px); }
body.m2-sub #about .detail-feature.has-photo figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ==========================================================
   2026-12-03 追加：トップとそろえる（見出しは太いゴシック、欄の間を詰める）
   ========================================================== */
/* 見出し：欄のタイトルとページ名は太いゴシック。写真の上の一文・冒頭の「直せないを直す。」などは明朝のまま */
body.m2-sub :is(.category-section-heading h2, .detail-section:not(.detail-related) > h2, .bike-menu-heading h2, .bike-section-heading h2, .bike-parts-heading h2,
  .bike-work-section h2, .bike-paint-gallery h2, .rw-section h2, .cdj-consult h2, .dealer-directory h2, .dealer-map-heading h2, .detail-hero h1, .dealers-page main h1) {
  font-family: var(--m2-gothic); font-weight: 900; letter-spacing: .04em; line-height: 1.34;
}
body.m2-sub :is(.category-section-heading > h2:first-child, .detail-section:not(.detail-related) > h2:first-child, .bike-menu-heading > h2:first-child, .bike-section-heading > h2:first-child, .bike-parts-heading > h2:first-child)::before {
  content: ""; display: block; width: 36px; height: 6px; margin-bottom: 14px; border-radius: 3px; background: currentColor;
}
body.m2-sub .category-section-heading h2 { font-size: clamp(25px, 2.7vw, 36px); }
body.m2-sub .detail-section:not(.detail-related) > h2 { font-size: clamp(24px, 2.4vw, 32px); }
body.m2-sub .detail-hero h1 { font-size: clamp(28px, 3.1vw, 44px); letter-spacing: .03em; }
body.m2-sub .cdj-consult h2 { font-size: clamp(25px, 2.8vw, 36px); }
body.m2-sub :is(.rw-section h2, .bike-work-section h2, .bike-paint-gallery h2, .bike-section-heading h2, .bike-parts-heading h2, .bike-menu-heading h2) { font-size: clamp(25px, 2.6vw, 34px); }

/* 欄の間を詰める */
body.m2-sub .m2-sheet { margin-block: clamp(12px, 1.8vw, 24px); }
body.m2-sub .m2-sheet > section:first-of-type { padding-top: clamp(32px, 4.2vw, 58px); }
body.m2-sub .m2-sheet > section:last-of-type { padding-bottom: clamp(32px, 4.2vw, 58px); }
body.m2-sub .category-section { padding-block: clamp(24px, 3vw, 38px); }
body.m2-sub .detail-section { padding-block: clamp(26px, 3.2vw, 42px); }
body.m2-sub .rw-section { padding-block: clamp(32px, 4vw, 52px); }
body.m2-sub .bike-section { padding-block: clamp(28px, 3.2vw, 42px); }
body.m2-sub .category-faq { margin-top: 0; }
body.m2-sub .category-photo-service { margin-bottom: 16px; }
body.m2-sub .cdj-consult { margin-top: clamp(12px, 1.8vw, 24px); padding-block: clamp(36px, 4.8vw, 64px); }
body.m2-sub .cdj-consult-lead { margin-bottom: 22px; }
