
/* ---- Elementor デフォルトヘッダーを非表示 ---- */
body:not(.home) .site-header,
body:not(.home) #site-header {
  display: none !important;
}

/* ---- 固定ヘッダー分の余白 ---- */
body {
  padding-top: 54px;
}

/* ---- ヘッダー本体 ---- */
#cll-global-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #101010;
  border-bottom: 1px solid #1e1e1e;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

/* ---- ロゴ ---- */
#cll-global-header #site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#cll-global-header #site-logo img {
  height: 28px;
  width: auto;
  display: block;
}

/* ---- 検索バー ---- */
#cll-gh-search-bar {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #1e1e1e;
  border-radius: 20px;
  display: flex;
  align-items: center;
  min-width: 0;
  transition: border-color 0.18s ease;
  overflow: hidden;
  height: 38px;
}
#cll-gh-search-bar:focus-within {
  border-color: #e50914;
}
#cll-gh-search-bar-icon {
  color: #555;
  flex-shrink: 0;
  padding: 0 4px 0 10px;
  display: flex;
  align-items: center;
}
#cll-gh-search-bar input {
  background: none;
  border: none;
  outline: none;
  color: #f0f0f0;
  font-size: 13px;
  width: 100%;
  font-family: inherit;
  padding: 0 4px;
  height: 38px;
  min-width: 0;
}
#cll-gh-search-bar input::placeholder {
  color: #555;
  font-size: 12px;
}
#cll-gh-search-bar button[type="submit"] {
  background: none;
  border: none;
  padding: 0 10px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.18s ease;
  flex-shrink: 0;
  height: 38px;
}
#cll-gh-search-bar button[type="submit"]:hover {
  color: #e50914;
}

/* ---- モバイル検索トグル ---- */
#cll-gh-search-toggle {
  display: none;
}

/* ---- 言語スイッチャー ---- */
#cll-lang-switcher-gh {
  position: relative;
  flex-shrink: 0;
}
#cll-lang-btn-gh {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  color: #999;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.18s ease;
  white-space: nowrap;
}
#cll-lang-btn-gh:hover {
  border-color: #333;
}
#cll-lang-btn-gh img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}
#cll-lang-btn-gh .cll-lang-arrow-gh {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}
#cll-lang-switcher-gh.is-open #cll-lang-btn-gh .cll-lang-arrow-gh {
  transform: rotate(180deg);
}

/* ---- 言語ドロップダウン ---- */
#cll-lang-dropdown-gh {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  min-width: 170px;
  padding: 6px 0;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}
#cll-lang-switcher-gh.is-open #cll-lang-dropdown-gh {
  display: block;
}
.cll-lang-item-gh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #f0f0f0;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.12s ease;
}
.cll-lang-item-gh:hover {
  background: #2a2a2a;
}
.cll-lang-item-gh.is-current {
  color: #e50914;
}
.cll-lang-item-gh img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---- モバイル検索スライド ---- */
#cll-gh-search-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: #101010;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 10002;
  box-sizing: border-box;
}
#cll-gh-search-slide.open {
  display: flex;
}
#cll-gh-search-slide input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 8px 14px;
  color: #f0f0f0;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
#cll-gh-search-slide .gh-slide-close {
  color: #888;
  font-size: 20px;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---- レスポンシブ: 480px〜 ---- */
@media (min-width: 480px) {
  #cll-global-header {
    padding: 10px 16px;
    gap: 8px;
  }
  #cll-global-header #site-logo img {
    height: 30px;
  }
}

/* ---- レスポンシブ: 768px〜（PC） ---- */
@media (min-width: 768px) {
  #cll-global-header {
    padding: 10px 24px;
    gap: 8px;
  }
  #cll-global-header #site-logo img {
    height: 36px;
  }
  #cll-gh-search-bar {
    max-width: 480px;
    border-radius: 24px;
  }
  #cll-gh-search-toggle {
    display: none !important;
  }
  #cll-gh-search-slide {
    display: none !important;
  }
}

/* ---- レスポンシブ: 〜767px（スマホ） ---- */
@media (max-width: 767px) {
  #cll-gh-search-bar {
    display: none;
  }
  #cll-gh-search-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    cursor: pointer;
    background: #1a1a1a;
    border: 1px solid #1e1e1e;
    border-radius: 50%;
    color: #999;
    padding: 0;
  }
  #cll-lang-btn-gh .cll-lang-name-gh {
    display: none;
  }
  #cll-lang-btn-gh .cll-lang-arrow-gh {
    display: none;
  }
  #cll-lang-btn-gh {
    padding: 5px;
    background: none;
    border: none;
  }
  #cll-lang-btn-gh img {
    width: 28px;
    height: 28px;
  }
  #cll-global-header {
    justify-content: space-between;
  }
  #cll-global-header #site-logo {
    flex: 1;
  }
  .cll-gh-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }
}

