/* Hajime Arimura - Premium Artist Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Serif+JP:wght@300;400;600&family=Playfair+Display:wght@400;600&display=swap');

:root {
    /* Premium Palette - Light Mode */
    --bg-color: #ffffff;
    /* Pure White */
    --text-primary: #333333;
    /* Dark Grey */
    --text-secondary: #666666;
    /* Medium Grey */
    --accent-gold: #c5a059;
    /* Muted Gold (maintained but adjusted for light bg if needed) */
    --accent-subtle: #f4f4f4;
    /* Very Light Grey for cards */
    --border-color: #e0e0e0;
    /* Light Border */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-serif: 'Playfair Display', 'Noto Serif JP', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 60px;
    /* Offset for fixed nav */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        /* Set to exactly 20px as requested */
    }
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Hero Section */
.hero {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    /* Fallback background */
}

.hero-bg {
    width: 100%;
    height: auto;
    line-height: 0;
}

.hero-bg img {
    width: 100%;
    height: auto;
    max-height: 95vh;
    /* Prevent it from being too long */
    object-fit: contain;
    display: block;
}

/* Optional: Add a subtle dark overlay if text becomes hard to read */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Very subtle overlay */
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 55%;
    /* Slightly lower to avoid nav overlap on some devices */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: #ffffff;
    /* White text for contrast on image */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    /* Shadow for readability */
    width: 90%;
    /* Ensure content doesn't hit edges */
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
}

.hero p {
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
}

/* Updated Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* News Section */
.news-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.news-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping after date */
    gap: var(--spacing-md);
    align-items: flex-start;
}

.news-date {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 140px;
}

.news-content {
    font-size: 1rem;
    color: var(--text-primary);
}

/* About Section Enhancements */
.bio-content p {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.bio-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-xs);
    display: inline-block;
    color: var(--text-primary);
}

.history-list {
    list-style: none;
    padding: 0;
}

.history-list li {
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Link Collection Styles */
.links-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.link-group h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    text-align: center;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

@media (max-width: 600px) {
    .link-grid {
        grid-template-columns: 1fr;
    }
}

.link-btn {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.link-btn:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.link-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.link-info {
    display: flex;
    flex-direction: column;
}

.link-name {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    word-break: break-word;
    /* Ensure long titles wrap */
    overflow-wrap: break-word;
}

.link-id {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Components */
.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
    margin: var(--spacing-sm) auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        /* Dynamically scale and limit size */
        white-space: nowrap;
        /* Prevent line break in "有村はじめ" */
        letter-spacing: 0.1em;
        /* Tighter letter spacing for mobile fit */
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .news-list li {
        flex-direction: column;
        /* Stack date and content on narrow screens for more space */
        gap: 0.5rem;
        padding: 1.5rem 0;
    }

    .news-date {
        min-width: auto;
        font-weight: 600;
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .news-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .bio-content p {
        font-size: 0.95rem;
        line-height: 1.8;
        /* Slightly tighter but more readable line height for mobile */
    }

    .link-btn {
        padding: 1rem;
    }

    .link-icon {
        font-size: 1.2rem;
        margin-right: 0.75rem;
        width: 24px;
    }

    .link-name {
        font-size: 0.9rem;
    }
}

footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xl);
}