/* ニュースページ専用 ヘッダー・フッタースタイル */

:root {
    --news-header-bg: rgba(0, 0, 0, 0.98);
    --news-header-border: #00d4ff;
    --news-header-text: #ffffff;
    --news-header-hover: #00d4ff;
    --news-footer-bg: #000000;
    --news-footer-text: #ffffff;
    --news-footer-link: rgba(255, 255, 255, 0.8);
    --news-footer-link-hover: #00d4ff;
}

/* ==================== ヘッダー ==================== */
.news-header {
    background: var(--news-header-bg) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--news-header-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.2) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.news-header.scrolled {
    background: rgba(0, 0, 0, 0.99) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 212, 255, 0.3) !important;
    border-bottom-color: #33ddff !important;
}

.news-header .navbar {
    padding: 15px 0;
}

.news-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ロゴとブランド名 */
.news-header .nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.news-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-header .logo:hover {
    transform: translateY(-2px);
}

.news-header .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.news-header .company-name {
    color: var(--news-header-text);
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .news-header .company-name {
        display: none;
    }
    
    .news-header .logo-img {
        height: 35px;
    }
}

/* ナビゲーションメニュー */
.news-header .nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.news-header .nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-header .nav-item {
    position: relative;
}

.news-header .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: var(--news-header-text) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.news-header .nav-link i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.news-header .nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--news-header-hover), transparent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--news-header-hover);
}

.news-header .nav-link:hover,
.news-header .nav-link.active {
    color: var(--news-header-hover) !important;
    background: rgba(0, 212, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.news-header .nav-link:hover::before,
.news-header .nav-link.active::before {
    width: 70%;
}

.news-header .nav-item.active .nav-link {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ドロップダウンメニュー */
.news-header .nav-item.dropdown {
    position: relative;
}

.news-header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: rgba(26, 26, 26, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 2px solid var(--news-header-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 212, 255, 0.2) !important;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.news-header .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.news-header .dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--news-header-text) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.news-header .dropdown-link:last-child {
    border-bottom: none;
}

.news-header .dropdown-link i {
    width: 18px;
    text-align: center;
    color: var(--news-header-hover);
}

.news-header .dropdown-link:hover {
    background: rgba(0, 212, 255, 0.15) !important;
    color: var(--news-header-hover) !important;
    padding-left: 25px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* 検索ボックス */
.news-header .nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.news-header .search-box {
    display: flex;
    align-items: center;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--news-header-border);
    border-radius: 25px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    min-width: 250px;
}

.news-header .search-box:focus-within {
    border-color: #33ddff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    background: rgba(26, 26, 26, 0.95);
}

.news-header .search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--news-header-text) !important;
    font-size: 0.9rem;
    padding: 5px 10px;
    outline: none;
    width: 100%;
}

.news-header .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.news-header .search-btn {
    background: transparent;
    border: none;
    color: var(--news-header-hover);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-header .search-btn:hover {
    color: #33ddff;
    transform: scale(1.1);
}

/* 検索結果ドロップダウン */
.news-header .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid var(--news-header-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1002;
    margin-top: 2px;
}

.news-header .search-results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px;
}

.news-header .search-suggestions h4,
.news-header .search-categories h4 {
    color: var(--news-header-hover);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-header .search-suggestions ul,
.news-header .search-categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-header .search-suggestions li,
.news-header .search-categories li {
    margin-bottom: 10px;
}

.news-header .search-suggestions a,
.news-header .search-categories a {
    display: block;
    padding: 10px 15px;
    color: var(--news-header-text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.news-header .search-suggestions a:hover,
.news-header .search-categories a:hover {
    background: rgba(0, 212, 255, 0.15);
    color: var(--news-header-hover);
    padding-left: 20px;
}

/* モバイルメニューボタン */
.news-header .mobile-menu-toggle {
    display: none;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--news-header-border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.news-header .mobile-menu-toggle:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.news-header .hamburger {
    width: 25px;
    height: 3px;
    background: var(--news-header-hover);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* 通知バナー */
.news-header + .notification-banner {
    background: rgba(26, 26, 26, 0.98) !important;
    border-bottom: 2px solid var(--news-header-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    padding: 15px 0;
}

.news-header + .notification-banner .notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--news-header-text);
    font-size: 0.9rem;
}

.news-header + .notification-banner .notification-content i {
    color: var(--news-header-hover);
    font-size: 1.1rem;
}

.news-header + .notification-banner .notification-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--news-header-text);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.news-header + .notification-banner .notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--news-header-hover);
    transform: rotate(90deg);
}

/* ==================== フッター ==================== */
.news-footer {
    background: var(--news-footer-bg) !important;
    border-top: 2px solid var(--news-header-border) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.1) !important;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.news-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--news-header-border), transparent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.news-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.news-footer .footer-section {
    min-width: 0;
}

.news-footer .footer-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--news-header-hover) !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.news-footer .footer-section h4 i {
    font-size: 1.2rem;
    color: var(--news-header-hover);
}

.news-footer .footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-footer .footer-section ul li {
    margin-bottom: 12px;
}

.news-footer .footer-section ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--news-footer-link) !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.news-footer .footer-section ul li a i {
    width: 18px;
    text-align: center;
    color: var(--news-header-hover);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-footer .footer-section ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    width: 0;
    height: 2px;
    background: var(--news-header-hover);
    transition: width 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.news-footer .footer-section ul li a:hover {
    color: var(--news-footer-link-hover) !important;
    padding-left: 10px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.news-footer .footer-section ul li a:hover::before {
    width: 8px;
}

.news-footer .footer-section ul li a:hover i {
    transform: scale(1.2);
    color: var(--news-footer-link-hover);
}

/* ソーシャルリンク */
.news-footer .social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.news-footer .social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--news-header-border);
    border-radius: 50%;
    color: var(--news-header-text);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.news-footer .social-link:hover {
    background: linear-gradient(135deg, #0099cc 0%, #00d4ff 100%);
    border-color: #33ddff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
    transform: translateY(-5px) scale(1.1);
    color: var(--news-header-text);
}

.news-footer .social-link i {
    font-size: 1.1rem;
}

/* ニュースレター */
.news-footer .newsletter {
    background: rgba(26, 26, 26, 0.6);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--news-header-border);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    margin-top: 20px;
}

.news-footer .newsletter h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--news-header-hover) !important;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.news-footer .newsletter h5 i {
    color: var(--news-header-hover);
}

.news-footer .newsletter p {
    color: var(--news-footer-link) !important;
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-footer .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-footer .newsletter-input {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid var(--news-header-border) !important;
    color: var(--news-header-text) !important;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.news-footer .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.news-footer .newsletter-input:focus {
    border-color: #33ddff !important;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    outline: none;
    background: rgba(0, 0, 0, 0.7) !important;
}

.news-footer .newsletter-btn {
    background: linear-gradient(135deg, #0099cc 0%, #00d4ff 100%) !important;
    border: 2px solid var(--news-header-border) !important;
    color: var(--news-header-text) !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-footer .newsletter-btn:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    border-color: #33ddff;
}

.news-footer .newsletter-btn i {
    font-size: 0.9rem;
}

/* フッター下部 */
.news-footer .footer-bottom {
    border-top: 2px solid rgba(0, 212, 255, 0.3) !important;
    padding-top: 30px;
    margin-top: 40px;
}

.news-footer .footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.news-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.news-footer .footer-links a {
    color: var(--news-footer-link) !important;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.news-footer .footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--news-header-hover);
    transition: width 0.3s ease;
}

.news-footer .footer-links a:hover {
    color: var(--news-footer-link-hover) !important;
    background: rgba(0, 212, 255, 0.1);
}

.news-footer .footer-links a:hover::after {
    width: 80%;
}

.news-footer .footer-copyright {
    color: var(--news-footer-link) !important;
}

.news-footer .footer-copyright p {
    margin: 5px 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.news-footer .footer-copyright p:first-child {
    font-weight: 600;
    color: var(--news-header-text) !important;
}

/* 通知バナーの閉じるボタン */
.news-header + .notification-banner .notification-close {
    background: transparent;
    border: none;
    color: var(--news-header-text);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.news-header + .notification-banner .notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--news-header-hover);
    transform: rotate(90deg);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .news-header .search-box {
        min-width: 200px;
    }
    
    .news-footer .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .news-header .nav-link {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .news-header .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        border-right: 2px solid var(--news-header-border);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding: 20px 0;
    }
    
    .news-header .nav-menu.active {
        left: 0;
    }
    
    .news-header .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 15px;
    }
    
    .news-header .nav-link {
        padding: 15px 20px;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    .news-header .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 10px 0 0 0;
        box-shadow: none;
        border: 1px solid rgba(0, 212, 255, 0.3);
    }
    
    .news-header .mobile-menu-toggle {
        display: flex;
    }
    
    .news-header .search-box {
        min-width: 180px;
        padding: 6px 12px;
    }
    
    .news-header .search-input {
        font-size: 0.85rem;
    }
    
    .news-header .search-results-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .news-footer {
        padding: 40px 0 20px;
    }
    
    .news-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-footer .footer-section {
        text-align: center;
    }
    
    .news-footer .footer-section h4 {
        justify-content: center;
    }
    
    .news-footer .social-links {
        justify-content: center;
    }
    
    .news-footer .footer-bottom-content {
        text-align: center;
    }
    
    .news-footer .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .news-header .container {
        padding: 0 15px;
    }
    
    .news-header .search-box {
        min-width: 150px;
        display: none;
    }
    
    .news-header .search-box.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        margin-top: 10px;
        z-index: 1001;
    }
    
    .news-header .nav-link {
        font-size: 0.85rem;
        padding: 12px 15px;
    }
    
    .news-header .nav-link i {
        font-size: 0.85rem;
    }
    
    .news-footer {
        padding: 30px 0 15px;
        margin-top: 50px;
    }
    
    .news-footer .footer-content {
        gap: 25px;
    }
    
    .news-footer .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .news-footer .footer-section ul li {
        margin-bottom: 10px;
    }
    
    .news-footer .footer-section ul li a {
        font-size: 0.9rem;
        padding: 4px 0;
    }
    
    .news-footer .newsletter {
        padding: 20px;
    }
    
    .news-footer .newsletter h5 {
        font-size: 0.95rem;
    }
    
    .news-footer .newsletter p {
        font-size: 0.8rem;
    }
    
    .news-footer .social-links {
        gap: 10px;
    }
    
    .news-footer .social-link {
        width: 40px;
        height: 40px;
    }
    
    .news-footer .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-footer .footer-links a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .news-footer .footer-copyright p {
        font-size: 0.8rem;
    }
}

