/* ========================================
   Nicore株式会社 - ニュースページ CSS
   ダークモードテーマ
======================================== */

/* カスタムプロパティ（CSS変数） */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-gold: #d4a855;
    --accent-gold-light: #e8c97a;
    --accent-blue: #58a6ff;
    --border-color: #30363d;
    --gradient-gold: linear-gradient(135deg, #d4a855 0%, #e8c97a 100%);
}

/* リセット＆基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   ナビゲーション
======================================== */
.navbar {
    padding: 1rem 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-family: 'Zen Antique', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.brand-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 400;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold);
}

.contact-btn {
    background: var(--gradient-gold);
    color: var(--bg-primary) !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 500;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 168, 85, 0.3);
}

.contact-btn::after {
    display: none;
}

/* ========================================
   ページヘッダー
======================================== */
.page-header {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #0d1117 0%, #1a1f2c 50%, #0d1117 100%);
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(212, 168, 85, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(88, 166, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.page-title {
    font-family: 'Zen Antique', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   ニュースセクション
======================================== */
.news-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

.news-date {
    flex-shrink: 0;
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    min-width: 80px;
}

.date-day {
    display: block;
    font-family: 'Zen Antique', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.news-content {
    flex: 1;
}

.news-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--bg-primary);
    background: var(--accent-gold);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.news-title {
    font-family: 'Zen Antique', serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* ニュースがない場合 */
.no-news {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-tertiary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.no-news i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-news p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ========================================
   CTAセクション
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 168, 85, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-family: 'Zen Antique', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
}

.btn-primary-custom {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 168, 85, 0.3);
    color: var(--bg-primary);
}

/* ========================================
   フッター
======================================== */
.footer {
    background: var(--bg-primary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-family: 'Zen Antique', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

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

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--accent-gold);
    margin-right: 0.5rem;
    width: 20px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-secondary);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .contact-btn {
        display: inline-block;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }

    .page-header {
        padding: 140px 0 60px;
    }

    .news-item {
        flex-direction: column;
        gap: 1rem;
    }

    .news-date {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: auto;
        padding: 0.5rem 1rem;
        width: fit-content;
    }

    .date-day {
        font-size: 1.5rem;
    }

    .date-month {
        margin-top: 0;
    }

    .cta-section {
        padding: 60px 0;
    }

    .footer {
        padding: 60px 0 20px;
    }

    .footer-brand,
    .footer-nav,
    .footer-contact {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 120px 0 50px;
    }

    .news-item {
        padding: 1.5rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .btn-primary-custom {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}
