/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Playfair+Display:wght@400;500;600&display=swap');

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

:root {
    --primary-black: #0A0A0A;
    --secondary-black: #1A1A1A;
    --soft-white: #FAFAFA;
    --pure-white: #FFFFFF;
    --accent-red: #8B0000;
    --accent-gold: #B8860B;
    --border-gray: #E5E5E5;
    --text-gray: #4A4A4A;
    --hover-gray: #F5F5F5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.8;
    color: var(--primary-black);
    background-color: var(--soft-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-zen {
    font-size: 28px;
    color: var(--primary-black);
    font-weight: 400;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-black);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--primary-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-black);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-gray);
}

.nav-link:hover::after {
    width: 100%;
}

.lang-switch {
    background: none;
    border: 1px solid var(--border-gray);
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background-color: var(--hover-gray);
}

.lang-option {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.lang-option.active {
    color: var(--primary-black);
    font-weight: 500;
}

.lang-divider {
    margin: 0 8px;
    color: var(--border-gray);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 160px 0 120px;
    background: linear-gradient(to bottom, var(--pure-white) 0%, var(--soft-white) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--border-gray));
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 500;
    color: var(--primary-black);
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.hero-line {
    width: 80px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0 auto 32px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: var(--pure-white);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 80px;
    color: var(--primary-black);
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--border-gray);
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 18px;
    line-height: 2;
    color: var(--text-gray);
    margin-bottom: 32px;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background-color: var(--soft-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 48px;
    margin-top: 80px;
}

.portfolio-card {
    background-color: var(--pure-white);
    border: 1px solid var(--border-gray);
    padding: 48px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.portfolio-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    margin-bottom: 16px;
}

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--primary-black);
    margin-bottom: 8px;
}

.company-link {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-link:hover {
    color: var(--accent-gold);
}

.investment-year {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.company-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.card-tag {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-gray);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-black);
    transition: all 0.3s ease;
}

.portfolio-card:hover .card-tag {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Footer */
.footer {
    background-color: var(--secondary-black);
    color: var(--soft-white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--pure-white);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--soft-white);
    opacity: 0.8;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-zen {
    font-size: 32px;
    color: var(--soft-white);
}

.footer-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--soft-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--soft-white);
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-container {
        padding: 20px 24px;
        flex-direction: column;
        gap: 20px;
    }

    .nav-right {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .about-text p {
        font-size: 16px;
        text-align: left;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .portfolio-card {
        padding: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    .portfolio-card,
    .nav-link,
    .company-link,
    .card-tag {
        transition-duration: 0.3s;
    }
}
