/* ============================================================
   TRAZA FISHING V18 - Layout: Header, Footer, Navigation
   モバイルメニューはIDセレクタで最高優先度を確保
   ============================================================ */

/* ---- Header ---- */
.traza-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
  transition: background 0.3s;
}

.traza-header.scrolled {
  background: rgba(0, 0, 0, 0.98);
  border-bottom-color: rgba(255, 107, 0, 0.3);
}

.traza-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

/* ---- Logo ---- */
.traza-logo {
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.traza-logo:hover {
  opacity: 0.85;
}

.traza-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.traza-logo-icon {
  height: 44px;
  width: 44px;
  object-fit: contain;
  background: transparent;
  transition: transform 0.3s;
}

.traza-logo:hover .traza-logo-icon {
  transform: scale(1.1);
}

.traza-logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.traza-logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  line-height: 1;
}

.traza-logo-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.6rem;
  color: #FF6B00;
  letter-spacing: 0.35em;
  line-height: 1;
  margin-top: 2px;
}

/* ---- Desktop Nav ---- */
.traza-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.traza-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.traza-nav-list > li {
  position: relative;
}

.traza-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  padding: 0 0.85rem;
  height: 64px;
  transition: color 0.2s;
  white-space: nowrap;
}

.traza-nav-list > li > a:hover,
.traza-nav-list > li.current-menu-item > a,
.traza-nav-list > li.current-menu-ancestor > a,
.traza-nav-list > li.current-page-ancestor > a,
.traza-nav-list > li.current_page_item > a,
.traza-nav-list > li.current_page_ancestor > a {
  color: #FF6B00 !important;
}

.traza-nav-list > li.current-menu-item > a::after,
.traza-nav-list > li.current-menu-ancestor > a::after,
.traza-nav-list > li.current-page-ancestor > a::after,
.traza-nav-list > li.current_page_item > a::after,
.traza-nav-list > li.current_page_ancestor > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: #FF6B00;
}

.traza-nav-list > li > a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: rgba(255,107,0,0.5);
}

.traza-arrow {
  font-size: 0.6rem;
  opacity: 0.6;
}

/* ---- Dropdown ---- */
.traza-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #0A0A0A;
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-top: 2px solid #FF6B00;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 100;
}

.traza-nav-list > li:hover > .traza-dropdown {
  display: block;
}

.traza-dropdown li a {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 1.2rem;
  transition: color 0.2s, background 0.2s;
}

.traza-dropdown li a:hover {
  color: #FF6B00;
  background: rgba(255, 107, 0, 0.05);
}

/* ---- Header CTA ---- */
.traza-header-cta {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.6rem 1.2rem;
}

/* ---- Hamburger (IDセレクタで最高優先度、header直下に独立配置) ---- */
#traza-hamburger {
  display: none;
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  z-index: 20;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

#traza-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}

#traza-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#traza-hamburger.active span:nth-child(2) { opacity: 0; }
#traza-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Responsive: show hamburger ---- */
@media (max-width: 1100px) {
  .traza-nav { display: none !important; }
  .traza-header-cta { display: none !important; }
  #traza-hamburger {
    display: flex !important;
  }
}

/* ============================================================
   Mobile Menu Overlay (V14)
   全てIDセレクタで最高優先度を確保。
   WordPressのテーマ・プラグインのCSSに上書きされない。
   ============================================================ */

/* body固定（メニュー開時） */
body.traza-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* オーバーレイ本体：初期状態は非表示 */
#traza-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  z-index: 99999;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* flex レイアウト（表示時に有効） */
  flex-direction: column;
}

/* 開いた状態：display:flex で3層構造が機能 */
#traza-mobile-overlay.is-open {
  display: flex !important;
}

/* 上部バー：CTA + 閉じるボタン */
#traza-mo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255, 107, 0, 0.25);
  background: rgba(0, 0, 0, 0.97);
  min-height: 60px;
  box-sizing: border-box;
}

/* 上部CTA */
#traza-mo-cta-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  background: #FF0000;
  color: #fff;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

/* 閉じるボタン */
#traza-mo-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

#traza-mo-close:hover {
  color: #ffffff;
}

/* 中央ボディ：スクロール可能 */
#traza-mo-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.25rem;
  min-height: 0;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.97);
}

/* 下部バー：チャンネル登録 */
#traza-mo-bottom {
  flex-shrink: 0;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 107, 0, 0.15);
  background: rgba(0, 0, 0, 0.97);
  box-sizing: border-box;
}

#traza-mo-cta-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: #FF0000;
  color: #fff;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  box-sizing: border-box;
}

/* ---- モバイルナビリスト（PHPで出力される<ul>） ---- */
#traza-mo-body ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#traza-mo-body > ul > li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

#traza-mo-body > ul > li > a {
  display: block !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.9rem 0 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
}

/* アクティブ項目 */
#traza-mo-body > ul > li > a.traza-mo-active {
  color: #FF6B00 !important;
}

/* サブメニュー */
#traza-mo-body > ul > li > ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 0.75rem 1.5rem !important;
}

#traza-mo-body > ul > li > ul > li {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#traza-mo-body > ul > li > ul > li > a {
  display: block !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  padding: 0.4rem 0 !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
}

#traza-mo-body > ul > li > ul > li > a:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================================
   Footer
   ============================================================ */
.traza-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 107, 0, 0.15);
}

.traza-footer-top {
  padding: 4rem 0 3rem;
}

.traza-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .traza-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .traza-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.traza-footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  text-decoration: none;
}

.traza-footer-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #FF6B00;
  margin-bottom: 0.75rem;
}

.traza-footer-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: #666666;
  line-height: 1.8;
}

.traza-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.traza-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}

.traza-social-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.traza-social-btn.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #ffffff;
}

.traza-footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: #FF6B00;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.traza-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.traza-footer-nav li {
  margin-bottom: 0.6rem;
}

.traza-footer-nav li a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: #666666;
  transition: color 0.2s;
}

.traza-footer-nav li a:hover {
  color: #ffffff;
}

.traza-footer-yt-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: #666666;
  line-height: 1.7;
}

.traza-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
}

.traza-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.traza-copyright {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #444444;
}

.traza-footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.traza-footer-bottom-links a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: #444444;
  transition: color 0.2s;
}

.traza-footer-bottom-links a:hover {
  color: #888888;
}

/* ---- Widget ---- */
.traza-widget {
  margin-bottom: 2rem;
}

.traza-widget-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: #FF6B00;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}
