:root {
    --bg-color: #f8f9fa;
    --text-main: #111111;
    --text-muted: #555555;
    --accent-blue: #0b1c3c;
    --accent-blue-light: #163264;
    --dark-section-bg: #050a15;
    --border-color: #e0e0e0;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-serif);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 100;
    mix-blend-mode: difference;
    color: #fff;
    pointer-events: none;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    font-weight: 300;
}

.nav {
    pointer-events: auto;
}

.nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    font-weight: 300;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.5;
}

/* Main Layout */
.section {
    padding: 10rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: 0.1rem;
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-main);
}

.section-title.text-light {
    color: #fff;
}

.section-title .sub {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 1rem;
    letter-spacing: 0.2em;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-title {
    margin-top: 10vh;
    z-index: 2;
    position: relative;
    max-width: 55%;
}

.hero-title .en {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 200;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    line-height: 1.1;
}

.hero-title .ja {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    margin-top: 2rem;
    line-height: 1.6;
    color: var(--text-main);
}

.hero-message {
    margin-top: 4rem;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 50%;
    letter-spacing: 0.05em;
    z-index: 2;
    position: relative;
}

.hero-image-container {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 70vh;
    overflow: hidden;
    z-index: 1;
    box-shadow: 20px 20px 60px rgba(11, 28, 60, 0.1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.2);
    transition: filter 1s ease, transform 10s ease;
}

.hero-image-container:hover .hero-image {
    filter: grayscale(20%) contrast(1.1);
    transform: scale(1.05);
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card-img-placeholder {
    width: 100%;
    height: 300px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 2rem;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.card-img-placeholder .card-img {
    margin-bottom: 0;
}

.card:hover .card-img {
    filter: grayscale(0%);
}

.card:hover .card-img-placeholder .card-img {
    transform: scale(1.05);
}


.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
}

.category-chip {
    padding: 0.2em 0.8em;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.date {
    color: var(--text-muted);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--accent-blue-light);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Category Dark Section */
.dark-section {
    background-color: var(--dark-section-bg);
    color: #fff;
    max-width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.category-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.category-item {
    display: flex;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: padding-left 0.4s ease, background-color 0.4s ease;
    cursor: pointer;
}

.category-item:hover {
    padding-left: 2rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.category-num {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 200;
    color: var(--accent-blue-light);
    width: 100px;
}

.category-text h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.category-text p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 0.1em;
}

/* Profile */
.profile-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
}

.profile-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
}

.contact-box {
    background: #fff;
    padding: 3rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-box h3 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-blue);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-align: center;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--text-main);
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: var(--dark-section-bg);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {

    .hero-title,
    .hero-message {
        max-width: 100%;
    }

    .hero-image-container {
        position: relative;
        width: 100%;
        height: 50vh;
        right: 0;
        top: 0;
        transform: none;
        margin-top: 4rem;
    }

    .profile-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .header {
        padding: 1.5rem 2rem;
        mix-blend-mode: normal;
        background-color: var(--bg-color);
        color: var(--text-main);
    }

    .header .nav a {
        color: var(--text-main);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 6rem 2rem;
        width: 100%;
    }

    .nav {
        display: none;
    }
}