@charset "utf-8";
/* CSS Document */

/* ヘッダー・ナビ */
header {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  z-index: 120; 
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-blue));
  box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
  box-sizing: border-box;
  border-bottom: 3px solid var(--accent-gold);
  position: relative;
}

/* 和風装飾ライン */
header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-red), var(--accent-gold));
}

header ul li {
  list-style: none !important;
}

.nav-inner {
  max-width: 1100px; 
  margin: 0 auto; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 12px 18px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.logo {
  font-weight: 700; 
  color: var(--accent-gold); 
  font-size: 1.05rem;
  text-decoration: none;
  flex-shrink: 0;
  font-family: 'Kaisei Decol', serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}



.logo:hover {
  color: var(--text-light);
  text-shadow: 0 0 10px var(--accent-gold);
  transform: translateY(-1px);
}

.menu {
  display: flex; 
  gap: 18px; 
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li a {
  display: inline-block; 
  padding: 8px 12px; 
  color: var(--text-light); 
  font-size: 0.95rem; 
  border-radius: 6px; 
  transition: all 0.3s ease;
  list-style: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-family: 'Kiwi Maru', serif;
  position: relative;
  font-weight: 500;
}

/* 和風ホバー効果 */
.menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu li a:hover::after {
  width: 80%;
}

.menu li a:hover::before {
  opacity: 1;
}

.menu li a:hover, 
.menu li a:focus {
  color: var(--accent-gold);
  background: transparent;
  outline: none;
  transform: translateY(-1px);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.hamburger {
  display: none; 
  background: transparent; 
  border: 2px solid var(--accent-gold);
  font-size: 1.4rem; 
  cursor: pointer; 
  color: var(--text-light);
  padding: 8px;
  flex-shrink: 0;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hamburger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.5s ease;
}

.hamburger:hover::before {
  left: 100%;
}

.hamburger:focus {
  outline: 2px solid var(--accent-red); 
  border-radius: 6px;
  color: var(--accent-gold);
  border-color: var(--accent-red);
}

.hamburger:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* モバイルメニュー調整 */
@media (max-width: 900px) {
  .nav-inner {
    padding: 12px 15px;
  }
  
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-secondary));
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.2);
    z-index: 999;
    border: 2px solid var(--accent-gold);
    border-top: none;
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
  }

  /* モバイルメニューの装飾 */
  .menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red), var(--accent-gold));
  }

  .menu li {
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu li a {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-align: left;
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    font-weight: 600;
  }

  .menu li a::after {
    display: none;
  }

  .menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
    transition: width 0.3s ease;
  }

  .menu li a:hover::before {
    width: 4px;
  }

  .menu li a:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(196, 30, 58, 0.05));
    color: var(--primary-dark);
    transform: translateX(8px);
    text-shadow: none;
  }

  /* 展開時 */
  .menu.active {
    max-height: 400px;
  }

  .hamburger {
    display: block;
    position: relative;
    z-index: 1001;
  }

  .logo::before {
    left: -20px;
    font-size: 0.8em;
  }
}

/* 小型モバイル対応 */
@media (max-width: 600px) {
  .nav-inner {
    padding: 10px 12px;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .logo::before {
    left: -18px;
    font-size: 0.7em;
  }
  
  .hamburger {
    font-size: 1.2rem;
    padding: 6px;
  }

  .menu li a {
    padding: 14px 18px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 8px 10px;
  }
	
	  .logo img {
    max-width: 200px;
		  height: auto;
  }

  
  .logo {
    font-size: 0.7rem;
  }

  .logo::before {
    left: -16px;
    font-size: 0.6em;
  }

  .hamburger {
    padding: 5px;
  }

  .menu li a {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
}

/* スクロール時のヘッダー効果 */
header.scrolled {
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.3);
  backdrop-filter: blur(10px);
}

header.scrolled::after {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-red), var(--accent-gold));
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* アクセシビリティ向上 */
.menu li a:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
  background: rgba(212, 175, 55, 0.1);
}

.hamburger:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* 和風装飾アニメーション */
@keyframes menuShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.menu li a.shimmer {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  background-size: 200% 100%;
  animation: menuShimmer 2s infinite;
}

/* ダークモード対応（将来的な拡張用） */
@media (prefers-color-scheme: dark) {
  .menu li a {
    color: var(--text-light);
  }
  
  .menu li a:hover {
    color: var(--accent-gold);
  }
}

/* ヘッダー固定の確実化 */
header {
  position: fixed !important;
  z-index: 9999 !important;
}

/* bodyのpadding-top追加 */
body {
  padding-top: 70px !important;
}

/* スクロール時も固定を維持 */
html {
  scroll-padding-top: 70px; /* アンカーリンク時の調整 */
}