/* ===== ヘッダー・ナビゲーション ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav {
  padding: 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
}

/* ロゴ（画像版） */
.logo {
  display: block;
  text-decoration: none;
  line-height: 0; /* 余分な行間を削除 */
}

.logo img {
  height: 40px; /* ロゴの高さを指定 */
  width: auto;
  max-width: 200px; /* 最大幅を制限 */
  vertical-align: middle;
  transition: opacity 0.3s ease;
}

.logo:hover img {
  opacity: 0.8;
}

/* 以前の文字ロゴスタイルを削除 */
.logo::before {
  display: none; /* 文字を非表示 */
}

/* メニュー */
.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.menu li {
  margin: 0;
}

.menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: all 0.3s ease;
}

.menu a:hover {
  color: #e74c3c;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e74c3c, #3498db);
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-icon {
  font-size: 24px;
  color: #333;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 15px;
    height: 60px;
  }
  
  /* モバイル時のロゴサイズ調整 */
  .logo img {
    height: 30px;
    max-width: 150px;
  }
  
  .hamburger {
    display: block;
  }
  
  .menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .menu li:last-child {
    border-bottom: none;
  }
  
  .menu a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    height: 55px;
  }
  
  .logo img {
    height: 25px;
    max-width: 120px;
  }
  
  .menu {
    top: 55px;
  }
}

/* スクロール時のヘッダー */
header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}