/* =============================================
   SIMPLEEC - Main Stylesheet
   ============================================= */

/* CSS Variables */
:root {
    --color-ink: #1a1a1a;
    --color-deep: #0d0d0d;
    --color-warm: #c4a574;
    --color-warm-light: #d4b88a;
    --color-cream: #f5f2eb;
    --color-stone: #3d3d3d;
    --font-jp: 'Noto Serif JP', serif;
    --font-en: 'Cormorant Garamond', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    background-color: var(--color-deep);
    color: var(--color-cream);
    line-height: 1.9;
    overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* =============================================
   Navigation
   ============================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.9), transparent);
}

.logo {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-warm);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--color-warm);
}

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

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1.2s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--color-warm);
    margin-bottom: 2rem;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hero h1 span {
    display: block;
    color: var(--color-warm);
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(245, 242, 235, 0.75);
    max-width: 550px;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: transparent;
    border: 1px solid var(--color-warm);
    color: var(--color-warm);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background: var(--color-warm);
    color: var(--color-deep);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Decorative element */
.hero-decoration {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 450px;
    border: 1px solid rgba(196, 165, 116, 0.2);
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.hero-decoration::before {
    content: '熟成';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 700;
    color: rgba(196, 165, 116, 0.06);
    writing-mode: vertical-rl;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =============================================
   Philosophy Section
   ============================================= */
.philosophy {
    padding: 10rem 8%;
    position: relative;
}

.section-label {
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--color-warm);
    margin-bottom: 3rem;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.philosophy h2 {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.08em;
}

.philosophy-text {
    font-size: 1rem;
    color: rgba(245, 242, 235, 0.7);
}

.philosophy-text p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-warm);
    font-weight: 500;
}

/* =============================================
   Services Section
   ============================================= */
.services {
    padding: 8rem 8%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.95));
}

.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services-header h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(196, 165, 116, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-warm), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

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

.service-number {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 400;
    color: rgba(196, 165, 116, 0.2);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(245, 242, 235, 0.65);
    line-height: 1.8;
}

/* =============================================
   Case Studies Section
   ============================================= */
.case-studies {
    padding: 10rem 8%;
}

.case-studies-header {
    text-align: center;
    margin-bottom: 5rem;
}

.case-studies-header h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

.case-studies-header p {
    font-size: 1rem;
    color: rgba(245, 242, 235, 0.6);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(196, 165, 116, 0.12);
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
}

.case-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(196, 165, 116, 0.25);
}

.case-category {
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-warm);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.case-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.case-description {
    font-size: 0.95rem;
    color: rgba(245, 242, 235, 0.6);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.case-results {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(196, 165, 116, 0.1);
}

.case-metric {
    flex: 1;
}

.case-metric-value {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-warm);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.case-metric-label {
    font-size: 0.8rem;
    color: rgba(245, 242, 235, 0.5);
}

/* =============================================
   Expertise Section
   ============================================= */
.expertise {
    padding: 10rem 8%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.95));
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.expertise h2 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.expertise-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.expertise-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(196, 165, 116, 0.15);
}

.expertise-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-warm);
    margin-bottom: 0.8rem;
}

.expertise-item p {
    font-size: 0.9rem;
    color: rgba(245, 242, 235, 0.6);
}

/* =============================================
   Results Section
   ============================================= */
.results {
    padding: 8rem 8%;
    background: var(--color-ink);
}

.results-header {
    text-align: center;
    margin-bottom: 5rem;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--color-warm);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(245, 242, 235, 0.7);
    letter-spacing: 0.05em;
}

/* =============================================
   Contact Section
   ============================================= */
.contact {
    padding: 10rem 8%;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.contact p {
    font-size: 1rem;
    color: rgba(245, 242, 235, 0.7);
    max-width: 500px;
    margin: 0 auto 3rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 4rem;
    background: var(--color-warm);
    color: var(--color-deep);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
}

.contact-button:hover {
    background: var(--color-warm-light);
    transform: scale(1.02);
}

/* =============================================
   Footer
   ============================================= */
footer {
    padding: 3rem 8%;
    border-top: 1px solid rgba(196, 165, 116, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--color-warm);
}

.footer-text {
    font-size: 0.8rem;
    color: rgba(245, 242, 235, 0.4);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .hero-decoration {
        display: none;
    }

    .philosophy-content,
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .results-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 5%;
    }

    .expertise-list {
        grid-template-columns: 1fr;
    }

    .results-stats {
        grid-template-columns: 1fr;
    }

    .case-results {
        flex-direction: column;
        gap: 1.5rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =============================================
   Animations
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}