/* ── PC 幅では本文をヘッダー分だけ下げる ── */
@media (min-width:960px) {
  .-sidebar-off .l-article, .lp-content .l-article {
    margin-left: auto;
    margin-right: auto;
    padding-top: 130px;
  }
}

/* ===========================================================
   ② ガラス風ヘッダー
   =========================================================== */
.hgd-header-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  z-index: 1000;
  pointer-events: none;
  /* 透明部クリック貫通 */
}

.hgd-header,
.hgd-header * {
  pointer-events: auto;
}

.hgd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 31, 63, .1);
  overflow: visible;
  /* DD がはみ出ても切らない */
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  height: 65px;
  text-decoration: none;
}

.logo-img {
  width: 225px;
  height: 65px;
  margin: 0 10px;
  background: url(https://hp-demolition.high-grade-design.com/wp-content/uploads/2025/05/Logoo.png) center/contain no-repeat;
  transition: .3s;
}

/* メインナビ & CTA */
.nav-and-contact {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin-right: 20px;
}

.nav-menu li {
  margin: 0 15px;
  position: relative;
}

.nav-menu a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: color .3s;
}

.nav-menu a:hover {
  color: #2196f3;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #2196f3;
  transition: width .23s;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* CTA ボタン */
.contact-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 25px;
  min-width: 150px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #ff5252, #ff7676);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 82, 82, .3);
  transition: .3s;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 82, 82, .4);
}

/* ===========================================================
   ③ PC ドロップダウン (hover型)
   =========================================================== */
@media (min-width:960px) {

  /* 親 li を基準に */
  .nav-menu>li {
    position: relative;
  }

  /* サブメニュー本体 */
  .nav-menu .sub-menu {
    position: absolute !important;
    top: 100%;
    /* 隙間ゼロでレイアウト保持 */
    left: 60%;
    /* 50% が中央→60%で約10%右寄せ */
    transform: translate(-50%, 8px);
    /* デザイン上 8px 下げる */
    min-width: 160px;
    padding: 6px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    z-index: 2000;

    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  /* ホバー時のみ表示 */
  .nav-menu>li:hover>.sub-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  /* 吹き出し三角（任意装飾） */
  .nav-menu>li>.sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: calc(60% - 6px);
    border: 6px solid transparent;
    border-bottom-color: #fff;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, .03));
  }

  /* サブメニュー内リンク */
  .sub-menu a {
    display: block;
    padding: 6px 16px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
  }

  .sub-menu a:hover {
    background: #f5f7fb;
    color: #2196f3;
  }
}

/* ===========================================================
   ④ レスポンシブ調整
   =========================================================== */
@media (max-width:1095px) {
  .logo-img {
    width: 220px;
  }

  .nav-menu a {
    font-size: 12px;
  }

  .contact-button {
    padding: 8px 15px;
    font-size: .8rem;
  }
}

@media (max-width:1005px) {
  .logo-img {
    width: 180px;
  }

  .nav-menu {
    margin-right: 10px;
  }

  .nav-menu li {
    margin: 0 8px;
  }

  .nav-menu a {
    font-size: 13px;
    padding: 0 5px;
  }

  .contact-button {
    padding: 8px 10px;
    min-width: 120px;
    font-size: .8rem;
  }
}

@media (max-width:980px) {
  .logo-img {
    width: 160px;
  }

  .nav-menu li {
    margin: 0 5px;
  }

  .contact-button {
    padding: 8px 8px;
  }
}

/* ===========================================================
   ⑤ SWELL 標準ヘッダーの表示切替
   =========================================================== */
/* PC：自作ヘッダー表示／SWELLヘッダー非表示 */
@media (min-width:960px) {
  .l-header {
    display: none !important;
  }
}

/* SP：自作ヘッダー非表示／SWELLヘッダー表示 */
@media (max-width:959px) {
  .hgd-header-container {
    display: none;
  }
}