/* New Header Styles - Scoped with .new-header- prefix */
.new-header-container {
  position: fixed;
  top: 0;
  z-index: 100000;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #d7d7d7;
  font-family: "Noto Sans JP", sans-serif;
}

.new-header-inner {
  margin: 0 auto;
  padding: 0 50px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo Styles */
.new-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.new-header-logo-kwcplus {
  max-width: 220px;
  height: auto;
}

.new-header-logo-kddi {
  width: 85px;
  height: auto;
}

/* Navigation Styles */
.new-header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center;
}

.new-header-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #202020;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.6;
  transition: color 0.2s;
}

.new-header-nav-item:hover {
  color: #1536ac;
  opacity: 1;
}

.new-header-nav-item.active {
  color: #1536ac;
  position: relative;
}

.new-header-nav-item:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background: #001c81;
  bottom: calc(-100% + -5px);
  left: -10%;
  opacity: 0;
  border-radius: 3px 3px 0 0;
  transition: ease 0.3s;
}

.new-header-nav-item:hover:after {
  content: "";
  left: 50%;
  transform: translate(-50%, 0px);
  opacity: 1;
}

.new-header-nav-item-arrow {
  width: 8px;
  height: 4px;
  display: inline-block;
  transition: transform 0.3s;
}

.new-header-nav-item-arrow svg {
  width: 8px;
  height: 4px;

  display: block;
}

.new-header-nav-item.active .new-header-nav-item-arrow {
  transform: rotate(180deg);
}

.new-header-divider {
  width: 1px;
  height: 30px;
  background: #d7d7d7;
}

.new-header-search-icon {
  cursor: pointer;
  color: #202020;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-header-search-icon:hover {
  color: #1536ac;
}

.new-header-search-icon svg {
  width: 23px;
  height: 23px;
}

/* CTA Button */
.new-header-cta {
  background: #1536ac;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.6px;
  padding: 20px 30px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.new-header-cta:hover {
  background: #001c81;
  color: #ffffff;
  opacity: 1;
}

/* Dropdown Menu */
.new-header-dropdown {
  position: absolute;
  top: 101%;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  z-index: 1000;
}

.new-header-dropdown.active {
  opacity: 1;
  visibility: visible;
}

.new-header-dropdown-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 74px;
  display: flex;
  gap: 40px;
  position: relative;
}

.new-header-dropdown-sidebar {
  width: 208px;
  flex-shrink: 0;
}

.new-header-dropdown-sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.4px;
  color: #202020;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  line-height: 1.6;
}

.new-header-dropdown-sidebar-item:hover {
  background: #eff3ff;
  color: #1536ac;
}

.new-header-dropdown-sidebar-item:after {
  content: "";
  display: block;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 9px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="9" viewBox="0 0 6 9" fill="none"><path d="M0.353516 8.35352L4.35352 4.35352L0.353516 0.353515" stroke="%231536AC"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  transition: 0.3s ease;
}

.new-header-dropdown-sidebar-item:hover:after,
.new-header-dropdown-sidebar-item.active:after {
  right: 12px;
  opacity: 1;
}

.new-header-dropdown-sidebar-item.active {
  background: #f5f8ff;
  color: #1536ac;
}

.new-header-dropdown-content {
  flex: 1;
  padding-left: 40px;
  border-left: 1px solid #ebebeb;
}

.new-header-dropdown-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #202020;
  margin-bottom: 20px;
  line-height: 1.6;
}

.new-header-dropdown-link {
  font-family: Noto Sans JP;
  font-weight: 400;
  font-size: 15px;
  line-height: 160%;
  letter-spacing: 0.05em;
  text-align: right;
  display: block;
  margin-top: 20px;
  color: #1536ac;
  width: fit-content;
  margin-left: auto;
}

.new-header-dropdown-link span {
  margin-right: 8px;
}

.new-header-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 305px);
  gap: 24px 25px;
}

.new-header-dropdown-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 284px);
  gap: 10px 100px;
}

.new-header-dropdown-purpose-grid.single-column {
  grid-template-columns: 284px;
}

.new-header-purpose-item {
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #202020;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
  border-radius: 3px;
  line-height: 1.6;
  display: block;
}

.new-header-purpose-item:hover {
  background: #eff3ff;
  color: #1536ac;
  opacity: 1;
}

.new-header-product-card {
  background: #ffffff;
  border-radius: 3px;
  padding: 20px;
  display: flex;
  gap: 15px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.new-header-product-card:hover {
  background: #eff3ff;
  opacity: 1;
}

/* Hide products that don't include "all" category by default */
.new-header-product-card:not([data-categories*="all"]) {
  display: none !important;
}

.new-header-product-icon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: solid 1px #ebebeb;
  border-radius: 50%;
  background: #fff;
}

.new-header-product-icon img {
  max-width: 40%;
  height: auto;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: sub;
}

.new-header-product-info {
  flex: 1;
}

.new-header-product-name {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.9px;
  color: #202020;
  margin-bottom: 8px;
  line-height: 1.6;
}

.new-header-product-desc {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: #202020;
  line-height: 1.6;
}

.new-header-product-tag {
  display: inline-block;
  border: 1px solid #1536ac;
  color: #1536ac;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 3px 6px;
  border-radius: 3px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.new-header-close-btn {
  position: absolute;
  top: 20px;
  right: 74px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.new-header-close-btn:hover {
  opacity: 0.8;
}

.new-header-close-btn svg {
  width: 36px;
  height: 36px;
  display: block;
}

/* Mobile Menu Toggle */
.new-header-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 16px;
  height: 18px;
}

.new-header-mobile-toggle-line {
  width: 16px;
  height: 2px;
  background: #202020;
  transition: all 0.3s;
}

.new-header-mobile-toggle.active .new-header-mobile-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.new-header-mobile-toggle.active .new-header-mobile-toggle-line:nth-child(2) {
  opacity: 0;
}

.new-header-mobile-toggle.active .new-header-mobile-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.new-header-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 1002;
  padding: 0;
}

.new-header-mobile-menu.active {
  transform: translateX(0);
}

.new-header-mobile-menu nav {
  padding: 0;
}

.new-header-mobile-nav-item {
  border-bottom: 1px solid #d7d7d7;
}

.new-header-mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #202020;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.6;
  background: #fff;
}

@media (min-width: 1025px) {
  .new-header-mobile-nav-link:hover {
    color: #1536ac;
  }
}

/* Simple link without accordion */
.new-header-mobile-nav-item.no-submenu .new-header-mobile-nav-link {
  background: #fff;
}

/*   .new-header-mobile-nav-item.no-submenu .new-header-mobile-nav-link:hover {
    color: #202020;
  } */

.new-header-mobile-nav-arrow {
  width: 22px;
  height: 22px;
  background-color: #7a7a7a;
  border: none;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  font-size: 0;
}

.new-header-mobile-nav-arrow:before,
.new-header-mobile-nav-arrow:after {
  background-color: #fff;
  border-radius: 2px;
  content: "";
  height: 2px;
  left: calc(50% - 6px);
  position: absolute;
  top: calc(50% - 1px);
  transition: 0.3s;
  width: 12px;
}

.new-header-mobile-nav-arrow:after {
  transform: rotate(90deg);
}

.new-header-mobile-nav-item.active .new-header-mobile-nav-arrow:after {
  transform: rotate(0deg);
}

.new-header-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}

.new-header-mobile-submenu.active {
  max-height: 1000px;
}

.new-header-mobile-submenu-item {
  background: #f5f5f5;
  border-bottom: 1px solid #d7d7d7;
}

.new-header-mobile-submenu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 16px 15px 46px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.2px;
  color: #202020;
  text-decoration: none;
  line-height: 1.8;
  position: relative;
}

.new-header-mobile-submenu-link:before {
  content: "";
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 0;
  border-top: 1px solid #202020;
}

.new-header-mobile-submenu-link:hover {
  color: #1536ac;
}

.new-header-mobile-search {
  background: #f5f5f5;
  border-bottom: 1px solid #d7d7d7;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.new-header-mobile-search-icon {
  width: 23px;
  height: 22px;
  color: #202020;
  flex-shrink: 0;
}

.new-header-mobile-search-icon svg {
  width: 23px;
  height: 22px;
}

.new-header-mobile-search-field {
  flex: 1;
}

.new-header-mobile-search-field input {
  width: 100%;
  border: 1px solid #7a7a7a;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: #202020;
}

.new-header-mobile-search-field input::placeholder {
  color: #999;
}

.new-header-mobile-cta-group {
  background: #fff;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.new-header-mobile-cta-group .new-header-cta {
  background: #1536ac;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.4px;
  padding: 13px 15px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  border-radius: 8px;
  display: block;
  line-height: 1.6;
}

.new-header-mobile-cta-group .new-header-cta:hover {
  background: #0f2a8a;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 1199px) {
  .new-header-inner {
    padding: 0 20px;
  }

  .new-header-nav {
    gap: 20px;
  }

  .new-header-nav-item {
    font-size: 12px;
    letter-spacing: 1.2px;
  }

  .new-header-cta {
    padding: 10px;
    margin-right: -30px;
    font-size: 14px;
  }

  .new-header-dropdown-inner {
    padding: 30px 50px;
  }

  .new-header-dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .new-header-dropdown-purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .new-header-close-btn {
    right: 50px;
  }
}

@media (max-width: 1024px) {
  .new-header-nav {
    display: none;
  }

  .new-header-cta {
    display: none;
  }

  .new-header-mobile-cta-group .new-header-cta {
    display: block;
    margin-right: 0;
    height: auto;
    padding: 10px 0;
  }

  .new-header-mobile-toggle {
    display: flex;
  }

  .new-header-logo-kddi {
    width: 70px;
  }

  .new-header-inner {
    background: rgba(255, 255, 255, 0.7);
    height: 60px;
  }
}

@media (max-width: 640px) {
  .new-header-inner {
    padding: 0 20px;
  }

  .new-header-logo-kwcplus {
    max-width: 215px;
  }

  .new-header-logo-kddi {
    width: 60px;
    padding-left: 10px;
  }
}

/* Search Overlay */
.new-header-search-overlay {
  position: fixed;
  top: 81px;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 33px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.new-header-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.new-header-search-overlay-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.new-header-search-overlay-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 23px;
  height: 23px;
  color: #202020;
  pointer-events: none;
}

.new-header-search-overlay-icon svg {
  width: 23px;
  height: 23px;
}

.new-header-search-overlay-field {
  width: 100%;
}

.hs-search-field__bar {
  max-width: 960px;
}

/* Content fade animations */
.new-header-content-fade-out {
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.new-header-content-fade-in {
  animation: new-header-fade-in 0.3s ease-in;
}

@keyframes new-header-fade-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Overlay for dropdown */
.new-header-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.new-header-dropdown-overlay.active {
  opacity: 1;
  visibility: visible;
}

#new-header-dropdown-login {
  max-width: 170px;
  padding: 16px 24px;
  left: auto;
  right: 210px;
  top: 80%;
  border: 1px solid #cad0d4;
  border-radius: 8px;
}

#new-header-dropdown-login .new-header-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

#new-header-dropdown-login .new-header-dropdown-inner a {
  font-weight: 400;
  font-size: 15px;
  line-height: 160%;
  letter-spacing: 0.1em;
  color: #202020;
}

#new-header-dropdown-login .new-header-dropdown-inner a:hover{
  opacity: 1;
  color: #1536ac;
}