/* Header
----------------------------------------*/
/* ヘッダー高さ固定調整 */
body {
  padding-top: 100px !important;
}
main.l-main {
  padding-top: -100px !important;
}

header.fullwidth-bg-section::before {
  background-color: var(--color-white);
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
  background: var(--color-white);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
/* スクロール時のスタイル */
.header.sticky {
  background: rgba(255, 255, 255, 0.95); /* 半透明の白背景 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 30px;
}
.header-nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 30px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 300px;
}

.logo img {
  height: 26px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-right: 42px;
}
.main-nav a:hover {
  color: var(--color-black);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 12px;
  text-decoration-thickness: 4px;
  opacity: 1;
}
.main-nav a {
  display: block;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
  padding: 10px 0;
}
/* ヘッダーの現在ページ表示 */
.main-nav a.current {
  color: var(--color-primary);
  position: relative;
}

.main-nav a.current::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

/* お問い合わせボタン */
.contact-button-container {
  position: relative;
}

.contact-button {
  border-radius: 8px;
  padding: 15px 23px;
  color: var(--color-black);
  text-decoration: none;
  font-size: 16px;
  text-align: center;
  border: 1px solid var(--color-black);
  opacity: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-width: 140px;
  justify-content: center;
  z-index: 100;
}

.contact-button:hover,
.contact-button-container:hover .contact-button {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid transparent;
  color: #000;
}

.contact-button-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.dropdown-menu {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(180deg, #004a9c, #000244);
  width: 240px; /* 225px; */
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding-top: 45px;
  color: var(--color-white);
  background: #f5f5f5;
      border: 1px solid #000;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  gap: 12px;
  border-bottom: 1px solid #000;
}

.dropdown-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid #000;
}
.dropdown-item:last-child {
  border-bottom: none;
  padding-bottom: 15px;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-icon {
  width: 25px;
  max-height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropdown-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dropdown-text {
  font-size: 14px;
  line-height: 1.4;
  color: #000;
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
/* ハンバーガーメニューPC非表示 */
header.header #nav {
  display: none;
}

@media (max-width: 1200px) {
  .header-content {
    padding: 0 15px;
  }
  .main-nav,
  .contact-button-container {
    display: none;
  }
  /* ヘッダー高さ固定調整 */
  body {
    padding-top: 80px !important;
  }
  main.l-main {
    padding-top: -80px !important;
  }
  .header {
    height: 80px !important;
  }
  /* ハンバーガーメニュー */
  header.header #nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
    opacity: 0;
    z-index: 200;
    overflow-y: scroll;
  }

  /* オープン時のスタイル */
  header.header #nav.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  header.header .header__drawer-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 100%;
    padding: 100px 40px 40px;
    color: var(--color-white);
  }

  header.header .header__drawer-menu li {
    list-style: none;
    padding: 0;
    font-size: 20px;
    text-align: left;
    width: 100%;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
  }
    header.header .header__drawer-menu li:nth-child(7) {
      display: none;
    }
  header.header .header__drawer-menu li.dropdown-menu a {
    padding: 15px 0;
    font-size: 15px;
    text-align: left;
    width: 100%;
    border: none;
  }

  header.header .header__drawer-menu a {
    text-decoration: none;
    color: #000;
    display: block;
    width: 100%;
    padding: 20px 20px;
  }
  header.header .header__drawer-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  header.header .toggle-btn {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 300;
    padding: 5px;
  }

  header.header .toggle-btn span {
    position: absolute;
    display: block;
    left: 5px;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    background-color: #000;
  }

  header.header .toggle-btn span:nth-child(1) {
    top: 10px;
  }

  header.header .toggle-btn span:nth-child(2) {
    top: 19px;
  }

  header.header .toggle-btn span:nth-child(3) {
    top: 28px;
  }

  header.header #nav.open + #mask {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    cursor: pointer;
    z-index: 100;
  }

  header.header #nav.open ~ .toggle-btn span {
    background-color:#000;
  }

  header.header #nav.open ~ .toggle-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  header.header #nav.open ~ .toggle-btn span:nth-child(2) {
    opacity: 0;
  }

  header.header #nav.open ~ .toggle-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* ドロップダウンメニュー（SP） */
  header.header .header__drawer-menu .dropdown-menu {
    width: 100%;
    position: relative;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    /*padding-top: 50px;*/
    border: none;
        margin-left: 1em;
  }

  header.header .header__drawer-menu .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
  }

  header.header .header__drawer-menu .dropdown-menu .dropdown-icon {
    max-width: 50px;
  }

  header.header .header__drawer-menu .dropdown-menu .dropdown-text {
    color: #000;
    font-size: 16px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-item {
    font-size: 13px;
  }

  .contact-button {
    padding: 10px 16px;
    font-size: 13px;
  }

  .dropdown-menu {
    min-width: 250px;
  }
}
@media (max-width: 767px) {
  .header-content {
    padding: 0 20px;
  }
  header.header .header__drawer-menu {
    padding: 30px 20px;
    font-size: 20px;
  }

  header.header .header__drawer-menu .dropdown-menu .dropdown-item {
    padding: 15px 10px;
  }
}
.dropdown-icon .icon {background-color: #000;}