/* mhbtn.css - サイト共通「ボタンの高さ」
   バイクは楽しいモトハーバー（株式会社鶴見）
   Ver.2　（2026-08-19）

   サイトのボタンは、どの画面でも高さ27pxでそろえます。
   ページごとの指定より後から効くよう、mhhome.js が読み込みます。

   ■ ここでそろえないもの（わざと別にしてあります）
     ・.btn-lg                    … わざと大きくしてあるボタン
     ・新車／中古の丸い札（21px） … ボタンではなく、表示の印です
     ・写真や記号だけの丸ボタン（✕ など） … 形が崩れるため、そのままにします
     ・確認の窓（mhdialog）のボタン        … 窓の中は窓の体裁のままにします
*/

/* ── ① 名前に btn が付くボタン、帯や切替のボタン ───────────── */
a[class*="btn"]:not(.btn-lg),
button[class*="btn"]:not(.btn-lg),
.btn:not(.btn-lg),
.svc-btn, .etbtn, .mhlf-btn,
.mh-nav a, .hd-nav a, .hd-nav button,
.nav a, .bnav a, .sbar-nav a, .h-nav a, .tabbar a, .sub2 a,
.g-tools a, .g-tools button, .cta a,
.stock-links a, .hero-ai a, a.book, .maker-links a, .quick a, .docs a,
a.home, a.back, a.next, a.prev, a.hl, a.join, a.active,
.mh-home, .mh-hicon {
  height: 27px !important;
  box-sizing: border-box !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 25px !important;
  min-height: 0 !important;
}

/* ── ② class の付いていないボタン ─────────────────────────
   写真や記号だけの丸ボタン（✕・◀▶など）は形が崩れるので外します。 */
button:not([class]):not(:has(img)):not(:has(svg)):not([style*="border-radius:50%"]):not([style*="width:30px"]):not([style*="width:36px"]):not([style*="width:38px"]):not([style*="width:40px"]) {
  height: 27px !important;
  box-sizing: border-box !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 25px !important;
  min-height: 0 !important;
}

/* ── ③ 送信・実行の入力ボタン ───────────────────────────── */
input[type="submit"], input[type="button"], input[type="reset"] {
  height: 27px !important;
  box-sizing: border-box !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 25px !important;
  min-height: 0 !important;
}

/* 文字を上下のまん中に置きます（もともと flex のボタン向け） */
.btn, .past-btn, .svc-btn, .mh-nav a, .hd-nav a, .hd-nav button,
.g-tools a, .g-tools button, .cta a, .sub2 a, .mh-home, .mh-hicon,
a[class*="btn"], button[class*="btn"] {
  align-items: center;
  justify-content: center;
}
