/* ==============================
   全体のリセット系
   ============================== */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ------------------------------
   nav-menu のベーススタイル
   ------------------------------ */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  /* ここでは display: flex; を書かない */
}

/* PCサイズではモバイル用ロゴ・×ボタンを非表示 */
.mobile-menu-logo,
.hamburger-menu-logo,
.close-menu {
  display: none;
}

/* 
   ▼ PC/タブレット用メニュー(nav-desktop)
   （767pxより大きい画面で表示される想定）
   ※デフォルト状態では表示させる 
*/
.nav-menu.nav-desktop {
  display: flex; /* PC/タブレットはflexレイアウト */
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

/* 
   ▼ モバイル用メニュー(nav-mobile)
   （767px以下で表示される想定）
   ※デフォルト状態では非表示 
*/
.nav-menu.nav-mobile {
  display: none;
}

/* ==============================
   ここから既存のヘッダーCSS
   ============================== */
.header {
  width: 100%;
  padding: 20px 0 0px 0px;
}

.header-container {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* スクロール方向や停止時にヘッダーを
   表示 or 非表示にするためのクラス */
.header.show {
  transform: translateY(0);
  opacity: 1;
}
.header.hide {
  transform: translateY(-100%);
  opacity: 0;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: auto;
  max-width: 90%;
}

.logo-tablet {
  display: none;
}

.header-nav {
  margin-left: 40px;
  flex-grow: 1;
  max-width: calc(100% - 40px);
}

/* 各メニュー項目共通 */
.nav-item {
  white-space: nowrap;
}
.nav-item a {
  color: #333;
  text-align: center;
  font-family: "BIZ UDGothic";
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nav-item a:hover {
  opacity: 0.7;
}

/* ハンバーガーボタン */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  width: 80px;
  height: 32px;
  position: relative;
  cursor: pointer;
  padding: 0;
}
.hamburger-menu span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.4s;
}
.hamburger-menu span:nth-child(1) {
  top: 0;
}
.hamburger-menu span:nth-child(2) {
  top: 15px;
}
.hamburger-menu span:nth-child(3) {
  bottom: 0;
}
/* ハンバーガーアニメ */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(15px) rotate(-45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-15px) rotate(45deg);
}

/* ==============================
   レスポンシブ
============================== */
@media screen and (max-width: 1350px) {
  .header-container {
    padding: 0 16px;
  }
  .logo-desktop {
    display: none;
  }
  .logo-tablet {
    display: block;
  }
  .header-nav {
    margin-left: 30px;
  }
  .nav-item a {
    letter-spacing: 1.6px;
  }
}

@media screen and (max-width: 1100px) {
  .header-nav {
    margin-left: 24px;
  }
  .nav-item a {
    font-size: 15px;
    letter-spacing: 1.2px;
  }
}

@media screen and (max-width: 1020px) {
  .nav-item a {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .header-logo img {
    width: 300px;
  }
}

/* ============================
   950px以下 (ドロワーメニュー)
============================ */
@media screen and (max-width: 950px) {
  .hamburger-menu {
    display: block;
    z-index: 1001;
    margin-right: 35px;
  }

  .header-nav {
    position: fixed;
    top: -440px;
    right: 0; /* 右からメニューを出す */
    width: 100%; /* 必要に応じて調整 */
    height: 100vh; /* 全画面表示なら 100vh */
    background: #333; /* メニュー自体のベース背景色 */
    color: #8e8e90;
    margin: 0;
    max-width: 950px;
    padding: 20px;
    box-sizing: border-box;
    z-index: 99999; /* メニューを前面に */

    /* ▼ 右側から隠れている状態にする */
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  /* ▼ メニュー展開時はスライドインして表示 */
  .header-nav.active {
    transform: translateX(0);
    max-width: 1270px;
    background: #333;
  }

  /* ▼ 背景ロゴ */
  .header-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/wp-content/themes/js_company/assets/images/header-hamburger-bg-logo1.webp")
      no-repeat center center;
    background-size: contain;
    opacity: 0.6;
    /* ここがポイント：背景を一番背面に・クリックを通す */
    z-index: -1;
    pointer-events: none;
  }

  header.fixed .header-nav {
    top: 0px;
    padding-top: 24px;
  }

  /* PC 用メニュー(.nav-desktop)を隠す / SP用(.nav-mobile)を表示 */
  .nav-menu.nav-desktop {
    display: none;
  }
  .nav-menu.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0 0 6%; /* ロゴ & ×ボタン分の余白 */
  }

  .nav-item {
    width: 100%;
  }
  .nav-item a {
    display: block;
    text-decoration: none;
    color: #8e8e90;
    font-size: 16px;
    letter-spacing: 2px;
    text-align: left;
    padding: 8px 0;
  }

  /* オーバーレイ */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0; /* オーバーレイは画面全体を覆う */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .menu-overlay.active {
    display: block;
  }

  /* モバイルロゴ & 閉じるボタン(X) */
  .hamburger-menu-logo,
  .close-menu {
    display: block;
    width: 70%;
    margin-top: 30px;
  }

  .hamburger-menu-logo img {
    margin-top: 10px;
  }

  /* 閉じるボタン(X) */
  .close-menu {
    position: absolute;
    top: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
  }
  .close-menu::before,
  .close-menu::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 50px;
    height: 2px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
  }
  .close-menu::after {
    transform: translateY(-50%) rotate(-45deg);
  }
  .close-menu:hover::before {
    transform: translateY(-50%) rotate(135deg);
  }
  .close-menu:hover::after {
    transform: translateY(-50%) rotate(-135deg);
  }

  /* モバイル用ロゴ */
  .mobile-menu-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 120px;
  }
  .mobile-menu-logo img {
    width: 100%;
    height: auto;
  }
  .header {
    /* スライドアニメーション用 */
    transition: transform 0.3s ease, opacity 0.3s ease;
    top: 440px;
  }
  .header.fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    /* 薄い白背景サンプル */
    background-color: rgba(255, 255, 255, 0.8);
    top: -26px !important;
    padding-top: 46px;
	padding-bottom: 15px;
  }

  .header.show {
    transform: translateY(0);
    opacity: 1;
    top: 440px;
  }
  .header.hide {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* 595px以下の細かい調整 */
@media screen and (max-width: 595px) {
  .header-logo img {
    width: 240px;
  }
  .hamburger-menu {
    width: 60px;
    height: 24px;
    margin-right: 20px;
  }
  .hamburger-menu span:nth-child(2) {
    top: 11px;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(-45deg);
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(45deg);
  }
}

.header-placeholder {
  height: 0;
}

/* お問い合わせ・電話アイコンのスタイル例 */
.contact-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.phone-number {
  color: #fff;
  font-weight: bold;
}
.menu-category-link {
  color: #fff;
}

@media screen and (max-width: 950px) {
  .header-nav {
    top: 0 !important;
    left: 0;
    right: auto;
    width: 100vw !important;
    min-width: 100vw;
    max-width: none;
    height: 100dvh;
    min-height: 100vh;
    padding: 42px clamp(22px, 6vw, 92px) 48px;
    overflow-y: auto;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 7% 68%, rgba(0, 87, 200, 0.08) 0 58px, transparent 59px),
      radial-gradient(circle at 98% 96%, rgba(230, 0, 18, 0.08) 0 160px, transparent 161px),
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,255,0.98));
    color: #1b1d22;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
  }

  .header-nav.active {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    max-width: none;
    background:
      radial-gradient(circle at 7% 68%, rgba(0, 87, 200, 0.08) 0 58px, transparent 59px),
      radial-gradient(circle at 98% 96%, rgba(230, 0, 18, 0.08) 0 160px, transparent 161px),
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,255,0.98));
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .header:has(.header-nav.active) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    z-index: 100000 !important;
  }

  html:has(.header-nav.active),
  body:has(.header-nav.active) {
    overflow: hidden !important;
  }

  body.mobile-menu-open {
    overflow: hidden !important;
    height: 100vh;
  }

  .hamburger-menu.active {
    opacity: 0;
    pointer-events: none;
  }

  .header-nav::before {
    top: 86px;
    right: -170px;
    left: auto;
    width: min(640px, 78vw);
    height: min(640px, 78vw);
    background: url("/wp-content/themes/js_company/assets/images/footer_js_logo.webp") no-repeat center / contain;
    opacity: 0.08;
    z-index: 0;
  }

  .header-nav::after {
    content: "";
    position: absolute;
    left: 0;
    top: 138px;
    width: 126px;
    height: 126px;
    background-image: radial-gradient(rgba(0, 87, 200, 0.14) 2px, transparent 2px);
    background-size: 18px 18px;
    pointer-events: none;
    z-index: 0;
  }

  .hamburger-menu-logo {
    display: block;
    position: relative;
    z-index: 2;
    width: min(610px, calc(100% - 86px));
    margin: 0 0 76px;
  }

  .hamburger-menu-logo img {
    content: url("/wp-content/themes/js_company/assets/images/js_logo.svg");
    display: block;
    width: 100%;
    max-width: 610px;
    height: auto;
    margin: 0;
  }

  .close-menu {
    display: block;
    position: absolute;
    top: 48px;
    right: clamp(24px, 7vw, 84px);
    width: 58px;
    height: 58px;
    background: transparent;
    border: 0;
    z-index: 3;
  }

  .close-menu::before,
  .close-menu::after {
    left: 50%;
    width: 58px;
    height: 3px;
    background: #242424;
    transform-origin: center;
  }

  .close-menu::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .close-menu::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .close-menu:hover::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .close-menu:hover::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .nav-menu.nav-mobile {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 0 0 32px;
  }

  body.home .nav-menu.nav-mobile > .nav-item:nth-child(5) {
    display: none;
  }

  .nav-menu.nav-mobile > .nav-item,
  .nav-menu.nav-mobile > a[href^="tel:"] {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 86px;
    padding: 0 70px 0 112px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(0, 58, 130, 0.08);
    box-sizing: border-box;
    color: #1d1f24;
    text-decoration: none;
    overflow: hidden;
  }

  .nav-menu.nav-mobile > .nav-item::before,
  .nav-menu.nav-mobile > a[href^="tel:"]::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #edf5ff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;
    transform: translateY(-50%);
  }

  .nav-menu.nav-mobile > .nav-item::after,
  .nav-menu.nav-mobile > a[href^="tel:"]::after {
    content: "";
    position: absolute;
    right: 32px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-top: 3px solid #0067d8;
    border-right: 3px solid #0067d8;
    transform: translateY(-50%) rotate(45deg);
  }

  .nav-menu.nav-mobile .nav-item a,
  .nav-menu.nav-mobile > a[href^="tel:"] {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: inherit;
    padding: 0;
    color: #1d1f24;
    font-family: "BIZ UDGothic", sans-serif;
    font-size: clamp(20px, 3.4vw, 27px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 3px;
    text-align: left;
    text-decoration: none;
  }

  .nav-menu.nav-mobile > .nav-item:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230067d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > .nav-item:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230067d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > .nav-item:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230067d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10h4v10'/%3E%3Cpath d='M10 20V4h4v16'/%3E%3Cpath d='M16 20v-7h4v7'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > .nav-item:nth-child(4)::before,
  body.home .nav-menu.nav-mobile > .nav-item:nth-child(6)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230067d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v2a2 2 0 0 0 2 2h3l5 4V5L8 9H5a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M16 9.5a3 3 0 0 1 0 5'/%3E%3Cpath d='M18.5 7a6 6 0 0 1 0 10'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > .nav-item:nth-child(5)::before,
  body.home .nav-menu.nav-mobile > .nav-item:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230067d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='m9 15 2 2 4-5'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > .nav-item:nth-child(6)::before,
  body.home .nav-menu.nav-mobile > .nav-item:nth-child(7)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230067d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > .nav-item:nth-child(7)::before,
  body.home .nav-menu.nav-mobile > .nav-item:nth-child(8)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230067d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16'/%3E%3Cpath d='M9 8h1'/%3E%3Cpath d='M14 8h1'/%3E%3Cpath d='M9 12h1'/%3E%3Cpath d='M14 12h1'/%3E%3Cpath d='M9 16h1'/%3E%3Cpath d='M14 16h1'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > .contact-item:not(:last-child) {
    border: 1px solid rgba(230, 0, 65, 0.18);
    box-shadow: 0 14px 34px rgba(230, 0, 65, 0.07);
  }

  .nav-menu.nav-mobile > .contact-item:not(:last-child)::before {
    background-color: #fff0f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23e60041' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > .contact-item:not(:last-child)::after {
    border-color: #e60041;
  }

  .nav-menu.nav-mobile .contact-icon,
  .nav-menu.nav-mobile > .contact-item > img,
  .nav-menu.nav-mobile > a[href^="tel:"] > img {
    display: none !important;
  }

  .nav-menu.nav-mobile > a[href^="tel:"] {
    border: 1px solid rgba(0, 103, 216, 0.18);
    box-shadow: 0 14px 34px rgba(0, 103, 216, 0.07);
    color: #0067d8;
  }

  .nav-menu.nav-mobile > .contact-item:last-child {
    border: 1px solid rgba(0, 103, 216, 0.18);
    box-shadow: 0 14px 34px rgba(0, 103, 216, 0.07);
  }

  .nav-menu.nav-mobile > .contact-item:last-child::before {
    background-color: #edf5ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230067d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.35 1.9.65 2.81a2 2 0 0 1-.45 2.11L8.04 9.91a16 16 0 0 0 6.05 6.05l1.27-1.27a2 2 0 0 1 2.11-.45c.91.3 1.85.52 2.81.65A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > .contact-item:last-child a,
  .nav-menu.nav-mobile > .contact-item:last-child .phone-number {
    color: #0067d8;
  }

  .nav-menu.nav-mobile > .contact-item:last-child a {
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
  }

  .nav-menu.nav-mobile > .contact-item:last-child .phone-number {
    display: block;
    min-width: 0;
    font-size: clamp(22px, 4.1vw, 31px);
    font-weight: 500;
    letter-spacing: 5px;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-menu.nav-mobile > a[href^="tel:"]::before {
    background-color: #edf5ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230067d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.35 1.9.65 2.81a2 2 0 0 1-.45 2.11L8.04 9.91a16 16 0 0 0 6.05 6.05l1.27-1.27a2 2 0 0 1 2.11-.45c.91.3 1.85.52 2.81.65A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
  }

  .nav-menu.nav-mobile > a[href^="tel:"] .phone-number {
    color: #0067d8;
    font-size: clamp(22px, 4.1vw, 31px);
    font-weight: 500;
    letter-spacing: 5px;
  }
}

@media screen and (max-width: 595px) {
  .header-nav {
    padding: 30px 22px 34px;
  }

  .hamburger-menu-logo {
    width: min(245px, calc(100% - 68px));
    margin-bottom: 34px;
  }

  .close-menu {
    top: 34px;
    right: 22px;
    width: 42px;
    height: 42px;
  }

  .close-menu::before,
  .close-menu::after {
    width: 42px;
    height: 2px;
  }

  .nav-menu.nav-mobile {
    gap: 10px;
  }

  .nav-menu.nav-mobile > .nav-item,
  .nav-menu.nav-mobile > a[href^="tel:"] {
    min-height: 58px;
    padding-left: 72px;
    padding-right: 42px;
    border-radius: 12px;
  }

  .nav-menu.nav-mobile > .nav-item::before,
  .nav-menu.nav-mobile > a[href^="tel:"]::before {
    left: 18px;
    width: 40px;
    height: 40px;
    background-size: 24px 24px;
  }

  .nav-menu.nav-mobile > .nav-item::after,
  .nav-menu.nav-mobile > a[href^="tel:"]::after {
    right: 20px;
    width: 11px;
    height: 11px;
  }

  .nav-menu.nav-mobile .nav-item a,
  .nav-menu.nav-mobile > a[href^="tel:"] {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1.6px;
  }

  .nav-menu.nav-mobile > a[href^="tel:"] .phone-number {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 3px;
  }

  .nav-menu.nav-mobile > .contact-item:last-child .phone-number {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2.4px;
  }
}

@media screen and (max-width: 950px) and (max-height: 900px) {
  .header-nav {
    padding: 30px clamp(22px, 7vw, 64px) 30px;
  }

  .header-nav.active {
    min-height: 100vh;
  }

  .hamburger-menu-logo {
    width: min(420px, calc(100% - 90px));
    margin-bottom: 36px;
  }

  .close-menu {
    top: 40px;
    right: clamp(28px, 7vw, 60px);
    width: 44px;
    height: 44px;
  }

  .close-menu::before,
  .close-menu::after {
    width: 44px;
    height: 2px;
  }

  .nav-menu.nav-mobile {
    width: min(640px, 100%);
    gap: 10px;
  }

  .nav-menu.nav-mobile > .nav-item,
  .nav-menu.nav-mobile > a[href^="tel:"] {
    min-height: 64px;
    padding-left: 84px;
    padding-right: 56px;
    border-radius: 12px;
  }

  .nav-menu.nav-mobile > .nav-item::before,
  .nav-menu.nav-mobile > a[href^="tel:"]::before {
    left: 22px;
    width: 44px;
    height: 44px;
    background-size: 26px 26px;
  }

  .nav-menu.nav-mobile > .nav-item::after,
  .nav-menu.nav-mobile > a[href^="tel:"]::after {
    right: 24px;
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .nav-menu.nav-mobile .nav-item a,
  .nav-menu.nav-mobile > a[href^="tel:"] {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2.4px;
  }

  .nav-menu.nav-mobile > .contact-item:last-child .phone-number,
  .nav-menu.nav-mobile > a[href^="tel:"] .phone-number {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 3px;
  }
}

@media screen and (max-width: 595px) {
  .nav-menu.nav-mobile {
    gap: 8px !important;
  }

  .nav-menu.nav-mobile > .nav-item,
  .nav-menu.nav-mobile > a[href^="tel:"] {
    min-height: 50px !important;
    padding-left: 64px !important;
    padding-right: 38px !important;
    border-radius: 10px !important;
  }

  .nav-menu.nav-mobile > .nav-item::before,
  .nav-menu.nav-mobile > a[href^="tel:"]::before {
    left: 16px !important;
    width: 34px !important;
    height: 34px !important;
    background-size: 21px 21px !important;
  }

  .nav-menu.nav-mobile > .nav-item::after,
  .nav-menu.nav-mobile > a[href^="tel:"]::after {
    right: 18px !important;
    width: 10px !important;
    height: 10px !important;
    border-width: 2px !important;
  }

  .nav-menu.nav-mobile .nav-item a,
  .nav-menu.nav-mobile > a[href^="tel:"] {
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 1.2px !important;
  }

  .nav-menu.nav-mobile > .contact-item:last-child .phone-number,
  .nav-menu.nav-mobile > a[href^="tel:"] .phone-number {
    font-size: 17px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
  }
}
