/* === カラー変数 === */
:root {
  --header-top-bg: #e0ffff;
  --header-nav-bg: #ffffff;
  --header-nav-text: #000000;

  --footer-border: #00bfff;
  --footer-bg: #fffafa;
  --footer-text: #6495ed;
  --footer-text-hover: #4169e1;
}

/* === 共通調整 === */
.lp-header-wrapper,
.lp-fixed-footer {
  font-family: sans-serif;
  z-index: 9999;
}

/* === 上部メニュー固定 === */
.lp-header-wrapper {
  position: fixed;      /* ← fixed に変更 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}
.lp-header-space {
  height: 80px; /* 実際のヘッダーの高さに合わせて調整 */
}

/* === 1段目 === */
.lp-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--header-top-bg);
  padding: 0.5em 1em;
  gap: 1em;
  flex-wrap: nowrap;
}

.lp-home-btn img,
.lp-logo img {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}

.lp-contact-btn {
  background-color: var(--footer-bg);
  border: 2px solid var(--footer-border);
  color: var(--footer-text);
  padding: 0.4em 0.8em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

.lp-contact-btn:hover {
  border-width: 3px;
  color: var(--footer-text-hover);
}

/* === 2段目 === */
.lp-header-nav {
  display: flex;
  justify-content: center;
  background-color: var(--header-nav-bg);
  color: var(--header-nav-text);
  gap: 1.5em;
  padding: 0.4em 0;
  flex-wrap: wrap;
}

.lp-header-nav a {
  color: var(--header-nav-text);
  text-decoration: none;
  font-size: 0.95em;
}

/* === 下部CTA固定 === */
.lp-fixed-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--footer-bg);
  display: flex;
  justify-content: space-around;
  padding: 0.5em 0;
  border-top: 1px solid var(--footer-border);
}

.lp-footer-btn {
  display: flex;
  align-items: center;
  border: 2px solid var(--footer-border);
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 0.4em 1em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  gap: 0.5em;
  white-space: nowrap;
}

.lp-footer-btn:hover {
  border-width: 3px;
  color: var(--footer-text-hover);
}

.lp-footer-icon-img {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
}

/* === レスポンシブ対応 === */
@media (max-width: 360px) {
  .lp-header-top,
  .lp-fixed-footer {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .lp-header-nav {
    gap: 0.8em;
    font-size: 0.85em;
  }

  .lp-contact-btn {
    min-width: 90px;
    font-size: 0.9em;
  }

  .lp-footer-btn {
    font-size: 0.9em;
    padding: 0.3em 0.6em;
  }

  .lp-footer-icon-img {
    width: 18px;
    height: 18px;
  }

  .lp-footer-text {
    font-size: 0.9em;
  }
}




/* 下部CTAボタン内のテキストを小さくし、折り返しを防止 */
.lp-footer-btn {
  font-size: 0.85em;
  padding: 0.3em 0.6em;
  white-space: nowrap;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* モバイル専用のレスポンシブ強化 */
@media (max-width: 390px) {
  .lp-footer-btn {
    font-size: 0.8em;
    padding: 0.3em 0.4em;
  }

  .lp-contact-btn {
    font-size: 0.8em;
    padding: 0.3em 0.4em;
    min-width: 80px;
  }
}

/* === お問い合わせボタン高さ統一（共通）=== */
:root {
  --contact-btn-height: 40px; /* ← 高さを調整したい場合はここだけ変えればOK */
}

.lp-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--contact-btn-height); /* ← ホームボタンと揃える高さ */
  padding: 0 1em; /* 上下paddingはなしにして左右余白のみ */
  font-size: 0.95em; /* 読みやすさとバランスをとって若干大きく */
  background-color: var(--footer-bg);
  border: 2px solid var(--footer-border);
  color: var(--footer-text);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
  box-sizing: border-box;
}

.lp-contact-btn:hover {
  border-width: 3px;
  color: var(--footer-text-hover);
}

/* === 1. スマホ（〜767px）：小さめボタン === */
@media (max-width: 767px) {
  .lp-contact-btn {
    font-size: 0.9em !important;
    padding: 0.4em 0.8em !important;
    min-height: 40px !important;
    height: auto !important;
  }
}

/* === 2. iPad Pro（768〜1199px）：中くらいのボタン === */
@media (min-width: 768px) and (max-width: 1199px) {
  .lp-contact-btn {
    font-size: 1em !important;
    padding: 0.8em 1.2em !important;
    min-height: 60px !important;
    height: auto !important;
  }
}

/* === 3. PC（1200px以上）：大きめボタン === */
@media (min-width: 1200px) {
  .lp-header-top .lp-contact-btn {
    font-size: 1.1em !important;
    padding: 1.2em 2em !important;
    height: auto !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 上書きを確実にするための追加セレクタ */
  .lp-contact-btn {
    height: auto !important;
    min-height: 80px !important;
  }
}
html body #headbox {
  display: none !important;
}

/* ==== ヘッダー全体をコンパクト化 ==== */

/* 上部の空白を調整 */
.lp-header-space {
  height: 60px; /* 80px → 60px */
}

/* 上段の配置・余白を小さめに */
.lp-header-top {
  padding: 0.3em 0.8em; /* 上下左右の余白を縮小 */
  gap: 0.5em; /* 間隔を狭める */
}

/* ロゴ画像サイズを小さく */
.lp-logo img {
/*  height: 32px; /* 40px → 32px */
    width: 50%;          /* 画像の横幅を親要素の80%に調整 */
    max-width: 200px;    /* 200pxを上限に */
    height: auto;        /* 高さは自動調整 */
    object-fit: contain; /* 画像比率を保つ */  
}

/* お問い合わせボタンのサイズ縮小 */
.lp-contact-btn {
  font-size: 0.9em;  /* 文字をやや小さく */
  padding: 0.3em 0.6em;
  min-width: 90px;
  height: 36px; /* 高さも小さめ */
}

/* ナビゲーションの余白調整 */
.lp-header-nav {
  gap: 1em; /* 横間隔を詰める */
  padding: 0.3em 0;
}

/* ホームアイコン削除用 */
.lp-home-btn {
  display: none; /* HTMLから削除でもOK */
}

/* === レスポンシブ微調整 === */
@media (max-width: 767px) {
  .lp-logo img {
    height: 28px; /* スマホ時さらにコンパクト */
  }
  .lp-contact-btn {
    font-size: 0.85em;
    padding: 0.3em 0.5em;
    height: 32px;
  }
  .lp-header-space {
    height: 55px;
  }
}
html body #headbox {
  display: none !important;
}
#breadcrumb {
  display: none !important;
}
ul[id*="menu-"] {
    display: none !important;
}
#menu-ヘッダーメニュー-1 {
    display: none !important;
}