/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Noto+Sans+JP:wght@400;700&display=swap');

/* --- TechNoir Theme Variables --- */
:root {
    --primary-color: #00e5ff; /* Neon Cyan */
    --primary-hover-color: #9affff;
    --secondary-color: #ff00c1; /* Neon Magenta */
    --background-color: #0d0221; /* Deep Space Purple/Blue */
    --surface-color: #1a0a38; /* Darker Purple Surface */
    --border-color: #2e1a5a;
    --text-color: #c0b8f0; /* Light Lavender */
    --headings-color: #ffffff;
    --font-family-body: 'Noto Sans JP', sans-serif;
    --font-family-mono: 'Fira Code', monospace;
    --container-width: 1200px;
    --shadow: 0 0 15px rgba(0, 229, 255, 0.1);
    --border-radius: 6px;
    --glow-effect: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--primary-color);
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-mono);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--headings-color);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
    text-decoration: none;
    text-shadow: var(--glow-effect);
}

ul {
    list-style-type: none;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(13, 2, 33, 0.8);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: var(--glow-effect);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}
.site-title a:hover {
    text-shadow: 0 0 8px var(--primary-hover-color), 0 0 15px var(--primary-hover-color);
}


.main-nav ul {
    display: flex;
    gap: 1.8rem;
}

.main-nav a {
    font-family: var(--font-family-mono);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    text-shadow: var(--glow-effect);
}

/* --- Main Content Layout --- */
.main-content {
    flex: 1;
    padding: 3rem 0;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .page-layout {
        grid-template-columns: 2.5fr 1fr;
    }
}

/* --- Articles List --- */
.articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

@media (min-width: 768px) {
    .articles-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .full-width .articles-list {
         grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .full-width .articles-list {
         grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .full-width .articles-list {
         grid-template-columns: 1fr;
    }
}


.article-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    border-color: var(--primary-color);
}

.article-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-hover-color);
}
.article-card-content h2 a {
    color: inherit;
    text-decoration: none;
}
.article-card-content h2 a:hover {
    text-shadow: none;
}

.article-card-content p {
    flex-grow: 1;
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    text-align: center;
    font-family: var(--font-family-mono);
    margin-top: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: var(--glow-effect);
    text-shadow: none;
}

/* --- Single Article Page --- */
.article-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: var(--glow-effect);
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: -1rem;
    font-family: var(--font-family-mono);
}

.article-content {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.article-content h2 {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(255, 0, 193, 0.4);
    margin-top: 2.5rem;
}
.article-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    color: var(--primary-hover-color);
}
.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.article-content ul { list-style-type: '» '; }
.article-content ol { list-style-type: decimal; }
.article-content li { margin-bottom: 0.5rem; padding-left: 0.5rem;}

.cta-section {
    background-color: rgba(0, 229, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin: 3rem 0 1rem;
    text-align: center;
    border: 1px solid var(--primary-color);
    box-shadow: var(--glow-effect);
}
.cta-section h3 {
    color: var(--primary-hover-color);
}

/* --- Sidebar --- */
.sidebar-widget {
    background-color: var(--surface-color);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    text-shadow: var(--glow-effect);
}

.sidebar-widget ul li {
    margin-bottom: 0.8rem;
}
.sidebar-widget ul li:last-child {
    margin-bottom: 0;
}
.sidebar-widget ul li a {
    color: var(--text-color);
    display: block;
    font-family: var(--font-family-mono);
}
.sidebar-widget ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: none;
}

/* --- Footer --- */
.site-footer {
    background-color: #05010d;
    color: #6a6293;
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.site-footer a {
    color: var(--text-color);
}

.site-footer a:hover {
    text-decoration: none;
    color: var(--primary-color);
    text-shadow: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-content .copyright {
    margin: 0;
    font-family: var(--font-family-mono);
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-family-mono);
}

/* --- Specific Page Styles --- */
.intro-section {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 25px rgba(13, 2, 33, 0.5);
}

.intro-section h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: var(--glow-effect);
}
.intro-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

.page-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 1rem;
    box-shadow: 0 2px 15px rgba(0, 229, 255, 0.2);
}
.page-header h1 {
    color: var(--headings-color);
}

.about-content, .contact-content {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.contact-content p {
    font-size: 1.1rem;
}
.contact-content strong {
    color: var(--primary-hover-color);
    font-family: var(--font-family-mono);
}
```