/* ヘッダー・ナビゲーション関連 */
.site-header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  width: 100%;
  margin: 0;
}

.header-wrapper {
  width: 100%;
  margin: 0 auto;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.3s, box-shadow 0.3s, all 0.3s;
  padding: 0.75rem 2rem;
}

.header-wrapper.scrolled {
  background: #fff !important;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15) !important;
  transition: background 0.3s, box-shadow 0.3s;
}

@media (max-width: 768px) {
  .header-wrapper {
    padding: 0.75rem 1rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #3d405b;
  flex-shrink: 0;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

.logo-image {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

/* モバイルメニューボタン */
.mobile-menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3d405b, #2a2d3a);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all 0.3s ease;
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  box-shadow: 0 4px 15px rgba(61, 64, 91, 0.3);
}

.mobile-menu-toggle:hover {
  background: #fff !important;
  color: #3d405b !important;
  box-shadow: 0 6px 20px rgba(61, 64, 91, 0.15);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* デスクトップナビゲーション */
.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #3d405b;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.75rem 0;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #e07a5f, #f2cc8f);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.current::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.current {
  color: #e07a5f;
}

/* モバイルナビゲーション */
.mobile-navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 243, 238, 0.95));
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  z-index: 1000;
  display: none;
}

.mobile-navigation.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ヘッダーを幅いっぱいにする */
.site-header,
.header-wrapper {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  left: 0;
  right: 0;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .desktop-nav {
    justify-content: center;
  }
  
  .nav-menu {
    gap: 2rem;
  }
  
  .header-wrapper {
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-navigation {
    display: block;
  }

  .header-wrapper {
    padding: 0.75rem 1rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .header-content {
    gap: 1rem;
  }

  .site-logo {
    z-index: 1002;
  }

  .logo-image {
    height: 35px;
  }

  .mobile-nav-content {
    padding: 8rem 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }

  .mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 2rem 0 3rem 0;
    width: 100%;
  }

  .mobile-nav-menu li {
    margin-bottom: 0.3rem;
    border-bottom: 1px solid rgba(61, 64, 91, 0.1);
    padding-bottom: 0.3rem;
  }

  .mobile-nav-menu li:last-child {
    border-bottom: none;
  }

  .mobile-nav-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3d405b;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 1rem;
    border-radius: 15px;
  }

  .mobile-nav-menu a:hover {
    color: #e07a5f;
    background: rgba(224, 122, 95, 0.1);
    transform: translateY(-2px);
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 320px;
  }

  .btn-download-mobile,
  .btn-contact-mobile {
    padding: 1.25rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
  }

  .btn-download-mobile {
    background: linear-gradient(135deg, #81b29a, #a8dadc);
    color: white;
    box-shadow: 0 6px 20px rgba(129, 178, 154, 0.4);
  }

  .btn-contact-mobile {
    background: linear-gradient(135deg, #e07a5f, #f2cc8f);
    color: white;
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
  }

  .btn-download-mobile:hover,
  .btn-contact-mobile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.5);
  }

  /* モバイルメニュークローズボタン */
  .mobile-menu-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e07a5f, #f2cc8f);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.4);
  }

  .mobile-menu-close:hover {
    background: linear-gradient(135deg, #3d405b, #2a2d3a);
    transform: scale(1.1);
  }

  .close-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .close-line {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    position: absolute;
  }

  .close-line:nth-child(1) {
    transform: rotate(45deg);
  }

  .close-line:nth-child(2) {
    transform: rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .header-wrapper {
    padding: 0.5rem 0.75rem;
  }

  .mobile-menu-toggle {
    width: 45px;
    height: 45px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .hamburger-line {
    width: 20px;
    height: 2px;
    margin: 2.5px 0;
  }

  .logo-image {
    height: 30px;
  }

  .mobile-nav-content {
    padding: 6rem 1.5rem 2rem;
  }

  .mobile-nav-menu a {
    font-size: 1.3rem;
    padding: 0.75rem;
  }

  .btn-download-mobile,
  .btn-contact-mobile {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .mobile-menu-close {
    width: 45px;
    height: 45px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .close-line {
    width: 20px;
  }
}

/* モバイルメニューが開いている時のbody */
body.mobile-menu-open {
  overflow: hidden;
}
