/* =========================
   全体リセット（トップ用）
========================= */
body {
  background: #fff !important;
}

/* トップページ余白を完全に消す */
.home .site-content,
.home .content-area,
.home .inside-article,
.home .entry-content,
.home .grid-container {
  margin: 0 !important;
  padding: 0 !important;
}

.home .grid-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* =========================
   新ヘッダー（cb- 完全独立）
========================= */
.cb-header {
  width: 100%;
  height: 100px;
  background: #fff;
  border-bottom: 1px solid #ccc;
  position: relative;
  z-index: 1000;
}

.cb-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.cb-header__logo img {
  height: 60px;
  width: auto;
  display: block;
}

.cb-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cb-header__tel {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}


/* =========================
   PC用ボタン
========================= */
.cb-header__btns {
  display: flex;
}

.cb-btn {
  width: 120px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}

.cb-btn--red   { background: #e53935; }
.cb-btn--blue  { background: #1e88e5; }
.cb-btn--green { background: #43a047; }


/* =========================
   表示切替
========================= */
.cb-pc-only { display: flex; }
.cb-sp-only { display: none; }


/* =========================
   SPメニュー（768px以下のみ有効）
========================= */
@media (max-width: 768px) {

  .cb-header {
    height: 80px;
  }

  .cb-header__logo img {
    height: 44px;
  }

  .cb-header__tel {
    display: none;
  }

  .cb-pc-only {
    display: none;
  }

  .cb-sp-only {
    display: block;
  }
	
/* =========================
   スマホ用 電話番号（確実表示）
========================= */

/* 共通 */
.cb-header__tel a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

/* PC */
@media (min-width: 769px) {
  .cb-header__tel {
    font-size: 18px;
  }
}

/* SP */
@media (max-width: 768px) {

  .cb-header__tel {
    display: block;          /* ← 消さない */
    font-size: 14px;
    margin-right: 8px;
    z-index: 1100;           /* メニューより前 */
  }

  /* 右側エリアを詰める */
  .cb-header__right {
    gap: 6px;
  }
}


/* ===== スマホメニュー本体 ===== */
  .cb-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
  }

  .cb-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    transition: 0.3s;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
  }

  .cb-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }

  .cb-menu__list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
  }

  .cb-menu__list li {
    border-bottom: 1px solid #ddd;
  }

  .cb-menu__list a {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    color: #333;
    font-weight: 600;
  }

  /* ===== メニュー開状態 ===== */
  body.is-menu-open .cb-menu {
    right: 0;
  }

  body.is-menu-open .cb-menu-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* =====================================
   GeneratePress 標準SPメニュー完全抹殺
===================================== */

/* メニュー本体 */
nav.sp-menu {
  display: none !important;
}

/* オーバーレイ */
.sp-menu-overlay {
  display: none !important;
}

/* トグルボタン */
.sp-menu-btn,
.sp-menu-btn-wrap,
button.sp-menu-btn {
  display: none !important;
}

/* 念のため：GeneratePressのナビ全系統 */
.generate-mobile-nav,
.mobile-menu-control-wrapper,
.main-navigation {
  display: none !important;
}

/* =========================
   スマホ トグルメニュー（確実表示）
========================= */
.cb-menu-toggle {
  position: relative;
  width: 44px;
  height: 36px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 2000; /* ← 重要：何より前に */
}

/* 三本線 */
.cb-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #000; /* 黒線 */
  margin: 5px 0;
  border-radius: 2px;
}

/* =====================================
   cb-menu-overlay がクリックを奪わない最終対策
   見た目は一切変えない
===================================== */

/* 閉じている時：クリックを通す */
.cb-menu-overlay {
  pointer-events: none;
}

/* 開いている時だけ有効 */
body.is-menu-open .cb-menu-overlay {
  pointer-events: auto;
}

/* =====================================
   SPメニュー 完成版スタイル
===================================== */

/* ---------- overlay ---------- */
.cb-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6); /* 黒透過はここだけ */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9998;
}

body.is-menu-open .cb-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- メニュー本体 ---------- */
.cb-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff; /* ← 白背景に固定 */
  z-index: 9999;    /* overlay より前 */
  transition: right .3s ease;
  box-sizing: border-box;
  padding: 20px;
}

body.is-menu-open .cb-menu {
  right: 0;
}

/* ---------- 閉じるボタン ---------- */
.cb-menu-close {
  display: block;
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

/* ---------- メニューリスト ---------- */
.cb-menu__list {
  margin-top: 60px;
  padding: 0;
  list-style: none;
}

.cb-menu__list li {
  border-bottom: 1px solid #ddd;
}

.cb-menu__list a {
  display: block;
  padding: 14px 0;
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

/* ---------- PCでは完全非表示 ---------- */
@media (min-width: 769px) {
  .cb-menu,
  .cb-menu-overlay {
    display: none !important;
  }
}

/* ===============================
   SPメニュー 完全整合版CSS
=============================== */

/* overlay：背景暗転だけ */
.cb-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9998;
}

body.is-menu-open .cb-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* メニュー本体：必ず白 */
.cb-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transition: right .3s ease;
  box-sizing: border-box;
  padding: 20px;
}

body.is-menu-open .cb-menu {
  right: 0;
}

/* × ボタン：必ず出す */
.cb-menu-close {
  display: block;
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 28px;
  line-height: 1;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  z-index: 10000;
}

/* メニュー項目 */
.cb-menu__list {
  list-style: none;
  margin: 60px 0 0;
  padding: 0;
}

.cb-menu__list li {
  border-bottom: 1px solid #ddd;
}

.cb-menu__list a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

/* PCでは完全に消す */
@media (min-width: 769px) {
  .cb-menu,
  .cb-menu-overlay {
    display: none !important;
  }
}

