/* =============================================
   News Page — WordPress-Ready Design
   静的 → WP REST API に切替可能な構造
   ============================================= */

.nw-page {
    --nw-green: #00c853;
    --nw-green-dark: #00a844;
    --nw-surface-1: #0f0f11;
    --nw-surface-2: #141416;
    --nw-surface-3: #1a1a1e;
    --nw-surface-4: #1e1e22;
    --nw-border: #2a2a2e;
    --nw-text: #e0e0e0;
    --nw-muted: #9ca3af;
    --nw-font-en: 'Inter', 'Helvetica Neue', sans-serif;
    background-color: var(--nw-surface-1);
    color: var(--nw-text);
}

/* ── Scroll Reveal ── */
.nw-fade {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.nw-fade.is-visible { opacity: 1; transform: translateY(0); }
.nw-d1 { transition-delay: 0.12s; }
.nw-d2 { transition-delay: 0.24s; }
.nw-d3 { transition-delay: 0.36s; }
.nw-d4 { transition-delay: 0.48s; }
.nw-d5 { transition-delay: 0.60s; }

.header-solid {
    background-color: rgba(15, 15, 17, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* =============================================
   HERO
   ============================================= */
.nw-hero {
    position: relative; min-height: 70vh;
    display: flex; align-items: flex-end; padding: 0 0 80px;
    background: var(--nw-surface-1); overflow: hidden;
}
.nw-hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0, 200, 83, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 200, 83, 0.03) 0%, transparent 50%);
}
.nw-hero-grain {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

.nw-hero-watermark {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap; pointer-events: none; z-index: 1;
}
.nw-wm-line {
    display: block; font-family: var(--nw-font-en); font-weight: 900;
    text-transform: uppercase; line-height: 0.85; user-select: none;
}
.nw-wm-1 { font-size: clamp(8rem, 20vw, 24rem); letter-spacing: -5px; }
.nw-wm-base .nw-wm-line { color: var(--nw-surface-1); -webkit-text-stroke: 1px #374151; paint-order: stroke fill; }
.nw-wm-draw { position: absolute; top: 0; left: 0; width: 100%; }
.nw-wm-draw .nw-wm-line { color: #1a1d20; -webkit-text-stroke: 1px var(--nw-green); paint-order: stroke fill; }
.nw-wm-draw .nw-wm-1 { clip-path: inset(0 100% 0 0); animation: nwWmReveal 3s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s forwards; }
@keyframes nwWmReveal { to { clip-path: inset(-5% -15% -5% -5%); } }

.nw-hero-accent {
    position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--nw-green) 30%, var(--nw-green) 70%, transparent 100%);
    z-index: 5;
}
.nw-hero-content {
    position: relative; z-index: 10;
    max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 40px;
}
.nw-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; color: var(--nw-muted); margin-bottom: 3rem;
}
.nw-breadcrumb a { color: var(--nw-muted); transition: color 0.3s; }
.nw-breadcrumb a:hover { color: var(--nw-green); }
.nw-breadcrumb .current { color: var(--nw-green); }
.nw-hero-en {
    font-family: var(--nw-font-en); font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900; color: rgba(255, 255, 255, 0.04);
    letter-spacing: 4px; text-transform: uppercase; line-height: 1; margin-bottom: -10px;
}
.nw-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 900;
    color: #fff; letter-spacing: 4px; margin-bottom: 1.5rem; line-height: 1.3;
}
.nw-hero-lead {
    font-size: 1rem; color: var(--nw-muted); line-height: 2.2;
    max-width: 600px; letter-spacing: 0.5px;
}

.nw-scroll-cue {
    position: absolute; bottom: 40px; right: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 10;
}
.nw-scroll-cue span { font-family: var(--nw-font-en); font-size: 0.7rem; letter-spacing: 3px; color: var(--nw-muted); text-transform: uppercase; writing-mode: vertical-rl; }
.nw-scroll-line { width: 1px; height: 60px; background: linear-gradient(180deg, var(--nw-green), transparent); animation: nwScrollPulse 2s ease-in-out infinite; }
@keyframes nwScrollPulse { 0%, 100% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.4; transform: scaleY(0.6); } }

/* =============================================
   SECTION COMMON
   ============================================= */
.nw-section-en {
    display: block; font-family: var(--nw-font-en); font-size: 0.75rem;
    letter-spacing: 6px; color: var(--nw-green); text-transform: uppercase;
    margin-bottom: 12px;
}
.nw-section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; color: #fff;
    letter-spacing: 3px; margin-bottom: 10px; line-height: 1.5;
}

/* =============================================
   CATEGORY FILTER — WPカテゴリ対応
   ============================================= */
.nw-filter-section {
    background: var(--nw-surface-2);
    padding: 100px 0 0;
}
.nw-filter-bar {
    max-width: 1100px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px; margin-bottom: 50px;
}
.nw-filter-tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.nw-filter-tab {
    background: transparent; border: 1px solid var(--nw-border);
    color: var(--nw-muted); font-size: 0.8rem; font-weight: 500;
    padding: 8px 20px; border-radius: 30px; cursor: pointer;
    transition: all 0.3s ease; letter-spacing: 0.5px;
}
.nw-filter-tab:hover { border-color: var(--nw-green); color: var(--nw-green); }
.nw-filter-tab.is-active {
    background: var(--nw-green); border-color: var(--nw-green);
    color: #fff; font-weight: 700;
}
.nw-filter-count {
    font-family: var(--nw-font-en); font-size: 0.8rem;
    color: var(--nw-muted); letter-spacing: 1px;
}
.nw-filter-count strong {
    color: var(--nw-green); font-weight: 900; font-size: 1.1rem;
}

/* =============================================
   NEWS LIST — 記事一覧
   ============================================= */
.nw-list {
    max-width: 1100px; margin: 0 auto; padding: 0 40px;
}
.nw-article {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    background: var(--nw-surface-3);
    border: 1px solid var(--nw-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nw-article:hover {
    border-color: rgba(0, 200, 83, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.nw-article-thumb {
    background: var(--nw-surface-4); aspect-ratio: 3 / 2;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.nw-article-thumb svg { opacity: 0.12; transition: opacity 0.3s; }
.nw-article:hover .nw-article-thumb svg { opacity: 0.2; }
.nw-article-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.nw-article:hover .nw-article-thumb img { transform: scale(1.05); }

.nw-article-body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.nw-article-meta {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.nw-article-date {
    font-family: var(--nw-font-en); font-size: 0.75rem;
    color: var(--nw-muted); letter-spacing: 1px;
}
.nw-article-cat {
    display: inline-block; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 3px 10px; border-radius: 3px;
}
.nw-cat-news     { color: var(--nw-green); background: rgba(0, 200, 83, 0.1); }
.nw-cat-works    { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.nw-cat-media    { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.nw-cat-info     { color: #a78bfa; background: rgba(167, 139, 250, 0.1); }
.nw-cat-recruit  { color: #f472b6; background: rgba(244, 114, 182, 0.1); }

.nw-article-title {
    font-size: 1.05rem; font-weight: 700; color: #fff;
    letter-spacing: 0.5px; line-height: 1.6; margin-bottom: 8px;
    transition: color 0.3s;
}
.nw-article:hover .nw-article-title { color: var(--nw-green); }
.nw-article-excerpt {
    font-size: 0.85rem; color: var(--nw-muted); line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.nw-article-arrow {
    position: absolute; top: 50%; right: -40px;
    transform: translateY(-50%);
    opacity: 0; color: var(--nw-green);
    transition: all 0.3s ease;
}
.nw-article:hover .nw-article-arrow { right: 20px; opacity: 1; }
.nw-article-body { position: relative; }

/* ── NEW バッジ ── */
.nw-badge-new {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--nw-green); color: #fff;
    font-family: var(--nw-font-en); font-size: 0.6rem; font-weight: 900;
    letter-spacing: 2px; padding: 3px 8px; border-radius: 3px;
}

/* =============================================
   PAGINATION — ページ送り
   ============================================= */
.nw-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 60px 40px 100px;
    max-width: 1100px; margin: 0 auto;
}
.nw-page-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 14px;
    background: var(--nw-surface-3); border: 1px solid var(--nw-border);
    border-radius: 8px; color: var(--nw-muted);
    font-family: var(--nw-font-en); font-size: 0.85rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s ease; letter-spacing: 1px;
}
.nw-page-btn:hover { border-color: var(--nw-green); color: var(--nw-green); }
.nw-page-btn.is-active {
    background: var(--nw-green); border-color: var(--nw-green);
    color: #fff;
}
.nw-page-btn.is-disabled {
    opacity: 0.3; pointer-events: none;
}
.nw-page-dots {
    color: var(--nw-muted); font-size: 0.85rem; letter-spacing: 3px;
}

/* =============================================
   ARTICLE DETAIL — 記事詳細 (モーダル / 単体ページ)
   ============================================= */
.nw-detail-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 60px 20px; overflow-y: auto;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.nw-detail-overlay.is-open { opacity: 1; pointer-events: all; }

.nw-detail-modal {
    width: 100%; max-width: 800px;
    background: var(--nw-surface-2); border: 1px solid var(--nw-border);
    border-radius: 16px; overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nw-detail-overlay.is-open .nw-detail-modal { transform: translateY(0); }

.nw-detail-close {
    position: absolute; top: 20px; right: 20px; z-index: 10;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%; color: #fff; cursor: pointer;
    transition: all 0.3s ease;
}
.nw-detail-close:hover { background: rgba(0, 200, 83, 0.15); border-color: var(--nw-green); color: var(--nw-green); }

.nw-detail-hero {
    position: relative; aspect-ratio: 16 / 7;
    background: var(--nw-surface-3);
    display: flex; align-items: center; justify-content: center;
}
.nw-detail-hero svg { opacity: 0.1; }

.nw-detail-body { padding: 50px; }
.nw-detail-meta {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.nw-detail-date {
    font-family: var(--nw-font-en); font-size: 0.8rem;
    color: var(--nw-muted); letter-spacing: 1px;
}
.nw-detail-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 900;
    color: #fff; letter-spacing: 2px; line-height: 1.6; margin-bottom: 30px;
}
.nw-detail-divider {
    height: 1px; background: var(--nw-border); margin-bottom: 30px;
}

/* WP投稿コンテンツ用 */
.nw-detail-content { line-height: 2.2; color: var(--nw-text); }
.nw-detail-content h2 {
    font-size: 1.3rem; font-weight: 900; color: #fff;
    letter-spacing: 2px; margin: 40px 0 16px;
    padding-left: 16px; border-left: 3px solid var(--nw-green);
}
.nw-detail-content h3 {
    font-size: 1.1rem; font-weight: 700; color: #fff;
    letter-spacing: 1px; margin: 30px 0 12px;
}
.nw-detail-content p { margin-bottom: 20px; font-size: 0.95rem; }
.nw-detail-content ul, .nw-detail-content ol {
    margin: 16px 0 24px; padding-left: 24px;
}
.nw-detail-content li {
    margin-bottom: 8px; font-size: 0.95rem; color: var(--nw-text);
}
.nw-detail-content img {
    width: 100%; border-radius: 8px; margin: 20px 0;
}
.nw-detail-content blockquote {
    background: rgba(0, 200, 83, 0.04); border-left: 3px solid var(--nw-green);
    padding: 20px 24px; margin: 24px 0; border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--nw-muted);
}
.nw-detail-content a { color: var(--nw-green); text-decoration: underline; transition: opacity 0.3s; }
.nw-detail-content a:hover { opacity: 0.7; }
.nw-detail-content table {
    width: 100%; border-collapse: collapse; margin: 24px 0;
}
.nw-detail-content th, .nw-detail-content td {
    padding: 12px 16px; border-bottom: 1px solid var(--nw-border);
    font-size: 0.9rem; text-align: left;
}
.nw-detail-content th { color: var(--nw-green); font-weight: 700; width: 30%; }

.nw-detail-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 30px; border-top: 1px solid var(--nw-border); margin-top: 40px;
}
.nw-detail-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--nw-muted); font-size: 0.85rem; transition: color 0.3s; cursor: pointer;
}
.nw-detail-back:hover { color: var(--nw-green); }
.nw-detail-share {
    display: flex; gap: 12px;
}
.nw-share-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--nw-border);
    border-radius: 50%; color: var(--nw-muted);
    cursor: pointer; transition: all 0.3s ease;
}
.nw-share-btn:hover { border-color: var(--nw-green); color: var(--nw-green); background: rgba(0, 200, 83, 0.06); }

/* =============================================
   SIDEBAR — サイドバー
   ============================================= */
.nw-main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1100px; margin: 0 auto; padding: 0 40px;
}
.nw-sidebar { padding-top: 10px; }

.nw-sidebar-box {
    background: var(--nw-surface-3); border: 1px solid var(--nw-border);
    border-radius: 12px; padding: 28px 24px; margin-bottom: 20px;
}
.nw-sidebar-title {
    font-size: 0.85rem; font-weight: 700; color: #fff;
    letter-spacing: 2px; margin-bottom: 18px;
    padding-bottom: 12px; border-bottom: 1px solid var(--nw-border);
}
.nw-sidebar-cats { list-style: none; padding: 0; margin: 0; }
.nw-sidebar-cats li { margin-bottom: 4px; }
.nw-sidebar-cats a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-radius: 6px;
    font-size: 0.85rem; color: var(--nw-muted);
    transition: all 0.3s ease;
}
.nw-sidebar-cats a:hover { background: rgba(0, 200, 83, 0.04); color: var(--nw-green); }
.nw-sidebar-cats .cat-count {
    font-family: var(--nw-font-en); font-size: 0.75rem;
    color: var(--nw-border); font-weight: 700;
}

.nw-sidebar-archive { list-style: none; padding: 0; margin: 0; }
.nw-sidebar-archive a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-radius: 6px;
    font-size: 0.85rem; color: var(--nw-muted);
    transition: all 0.3s ease;
}
.nw-sidebar-archive a:hover { background: rgba(0, 200, 83, 0.04); color: var(--nw-green); }

.nw-sidebar-cta {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.08), rgba(0, 200, 83, 0.02));
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: 12px; padding: 28px 24px; text-align: center;
}
.nw-sidebar-cta-title {
    font-size: 0.95rem; font-weight: 700; color: #fff;
    letter-spacing: 1px; margin-bottom: 10px;
}
.nw-sidebar-cta-text {
    font-size: 0.8rem; color: var(--nw-muted); line-height: 1.8; margin-bottom: 16px;
}
.nw-sidebar-cta-btn {
    display: inline-block; padding: 10px 24px;
    background: var(--nw-green); color: #fff;
    font-size: 0.8rem; font-weight: 700; border-radius: 4px;
    transition: all 0.3s ease;
}
.nw-sidebar-cta-btn:hover { background: var(--nw-green-dark); transform: translateY(-1px); }

/* =============================================
   FINAL CTA
   ============================================= */
.nw-final-cta {
    position: relative; background: var(--nw-surface-1);
    padding: 140px 0; overflow: hidden;
}
.nw-final-cta-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.nw-final-bg-text {
    font-family: var(--nw-font-en); font-size: clamp(8rem, 22vw, 20rem);
    font-weight: 900; text-transform: uppercase; color: transparent;
    -webkit-text-stroke: 1px rgba(0, 200, 83, 0.04); white-space: nowrap; line-height: 1;
}
.nw-final-cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; text-align: center; }
.nw-final-cta-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 900;
    color: #fff; letter-spacing: 3px; line-height: 1.6; margin-bottom: 1rem;
}
.nw-final-cta-lead { font-size: 0.95rem; color: var(--nw-muted); line-height: 2; margin-bottom: 2.5rem; }
.nw-final-cta-tel-block { text-align: center; }
.nw-final-cta-tel-label { display: block; font-size: 0.75rem; color: var(--nw-muted); margin-bottom: 8px; letter-spacing: 2px; }
.nw-final-cta-tel {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--nw-font-en); font-size: 2rem; font-weight: 900;
    color: #fff; letter-spacing: 2px; transition: color 0.3s;
}
.nw-final-cta-tel:hover { color: var(--nw-green); }
.nw-final-cta-tel svg { color: var(--nw-green); }
.nw-final-cta-actions { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.nw-final-cta-btn {
    display: inline-block; padding: 16px 40px; background: var(--nw-green);
    color: #fff; font-weight: 700; font-size: 0.95rem; letter-spacing: 1px;
    border-radius: 4px; transition: all 0.3s ease;
}
.nw-final-cta-btn:hover { background: var(--nw-green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 200, 83, 0.3); }

/* =============================================
   FIXED CTA
   ============================================= */
.nw-fixed-cta {
    position: fixed; right: 20px; bottom: 20px; z-index: 900;
    display: flex; align-items: center; gap: 8px;
    background: var(--nw-green); color: #fff;
    padding: 14px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4); transition: all 0.3s ease;
}
.nw-fixed-cta:hover { transform: scale(1.05); box-shadow: 0 6px 25px rgba(0, 200, 83, 0.5); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media screen and (max-width: 1024px) {
    .nw-main-layout { grid-template-columns: 1fr; }
    .nw-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media screen and (max-width: 767px) {
    .nw-hero { min-height: 60vh; padding: 0 0 50px; }
    .nw-hero-content { padding: 0 20px; }
    .nw-hero-accent { width: 3px; }
    .nw-wm-1 { font-size: 5rem; }
    .nw-scroll-cue { right: 20px; bottom: 20px; }

    .nw-filter-section { padding: 60px 0 0; }
    .nw-filter-bar { padding: 0 20px; }
    .nw-filter-tabs { gap: 4px; }
    .nw-filter-tab { padding: 6px 14px; font-size: 0.75rem; }

    .nw-main-layout { padding: 0 16px; gap: 30px; }
    .nw-list { padding: 0; }
    .nw-article { grid-template-columns: 1fr; }
    .nw-article-thumb { aspect-ratio: 16 / 9; }
    .nw-article-body { padding: 20px; }
    .nw-article-title { font-size: 0.95rem; }

    .nw-pagination { padding: 40px 20px 80px; }
    .nw-page-btn { min-width: 38px; height: 38px; font-size: 0.8rem; }

    .nw-sidebar { grid-template-columns: 1fr; }

    .nw-detail-overlay { padding: 20px 10px; }
    .nw-detail-body { padding: 30px 20px; }
    .nw-detail-title { font-size: 1.1rem; }
    .nw-detail-footer { flex-direction: column; gap: 16px; }

    .nw-final-cta { padding: 80px 0; }
    .nw-final-cta-tel { font-size: 1.5rem; }
    .nw-fixed-cta { right: 15px; bottom: 15px; padding: 12px 16px; font-size: 0.8rem; }
}
