/* ================================================
   ヘッダー専用スタイル
   ================================================ */

.site-header {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-header {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.site-branding .site-title {
    text-align: center;
}

.site-logo {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    justify-content: center;
}

.site-logo .logo-text {
    font-family: 'M PLUS Rounded 1c', 'Fredoka', 'Bangers', 'Comic Sans MS', cursive !important;
    font-weight: 600 !important;
    font-style: normal !important;
}

.logo-text {
    font-family: 'M PLUS Rounded 1c', 'Fredoka', 'Bangers', 'Comic Sans MS', cursive !important;
    font-size: 2rem;
    font-weight: 600;
    color: #ff6b47;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    display: block;
    line-height: 1.2;
}
@media screen and (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }
}

.header-icons {
    display: flex;
    align-items: center;
} 

/* ヘッダー虫眼鏡・ハンバーガーボタン 共通 */
.header-search-toggle,
.header-hamburger-toggle {
  display: contents;
}
.header-search-toggle-bg,
.header-hamburger-toggle-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  font-size: 1.5rem;
  color: #e0e0e0;
  cursor: pointer;
  transition: background 0.2s;
}
.header-search-toggle.active .header-search-toggle-bg,
.header-search-toggle:active .header-search-toggle-bg,
.header-hamburger-toggle.active .header-hamburger-toggle-bg,
.header-hamburger-toggle:active .header-hamburger-toggle-bg {
  background: #404040;
}
@media screen and (min-width: 769px) {
  .header-search-toggle,
  .header-hamburger-toggle {
    display: none;
  }
}

/* ================================================
   モバイル検索メニュー */
   .mobile-search-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #404040;
    z-index: 2000;
    padding: 20px 16px 12px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.mobile-search-menu.active {
    display: block;
}
.mobile-search-menu-form {
    display: flex;
    background: #404040;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ff6b47;
}
.mobile-search-menu-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 16px;
    outline: none;
}
.mobile-search-menu-input::placeholder {
    color: #999;
}
.mobile-search-menu-button {
    padding: 12px 16px;
    border: none;
    background: #ff6b47;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}
.mobile-search-menu-button:hover {
    background: #ff8c6b;
}
@media screen and (min-width: 769px) {
    .mobile-search-menu {
        display: none !important;
    }
} 

@media screen and (max-width: 480px) {
  .mobile-search-menu {
    height: calc(100vh - 45px);
    max-height: calc(100vh - 45px);
    overflow-y: auto;
  }
  .nav-menu {
    top: 45px;
    height: calc(100vh - 45px);
    max-height: calc(100vh - 45px);
    overflow-y: auto;
  }
  body.mobile-search-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

.logo-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}
@media screen and (max-width: 768px) {
    .logo-icon {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
} 

.site-logo:hover, .site-logo:focus {
    text-decoration: none !important;
}
.logo-text:hover, .logo-text:focus {
    text-decoration: none !important;
} 

.site-logo,
.logo-text {
    transition: filter 0.3s;
}
.logo-icon {
    transition: filter 0.3s;
}
.site-logo:hover, .site-logo:focus,
.logo-text:hover, .logo-text:focus {
    text-decoration: none !important;
    filter: brightness(1.3);
}
.site-logo:hover .logo-icon,
.site-logo:focus .logo-icon {
    filter: brightness(1.3);
} 