
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&family=Shippori+Mincho:wght@400;500;700&display=swap');

:root {
    /* Japandi Palette */
    --color-bg: #F7F5F0; /* Soft ivory */
    --color-surface: #FFFFFF;
    --color-text-primary: #2C2A28; /* Soft charcoal */
    --color-text-secondary: #5C5A58;
    --color-accent: #8E7C68; /* Warm muted oak */
    --color-accent-light: #D6CFC4;
    --color-border: #E8E5DF;
    --color-sage: #96A08F;
    
    /* Typography */
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    
    /* Spacing & Layout */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --container-w: 1200px;
    --border-radius: 4px; /* Minimal radius */
    
    /* Transitions */
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text-primary);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: var(--space-sm); color: var(--color-text-secondary); }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-w);
    margin: 0 auto;
}
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.py-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-text-primary);
    border-radius: 0; /* Sharp for architectural feel */
    transition: var(--transition-slow);
    cursor: pointer;
}
.btn:hover {
    background-color: transparent;
    color: var(--color-text-primary);
}
.btn-outline {
    background-color: transparent;
    color: var(--color-text-primary);
}
.btn-outline:hover {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0; width: 100%;
    background-color: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: padding var(--transition-fast);
    padding: 1.5rem 0;
}
.site-header.scrolled {
    padding: 1rem 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    gap: 0.5rem;
}
.logo svg {
    width: 32px; height: 32px;
}
.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-slow);
}
.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px; height: 20px;
    position: relative;
    z-index: 1001;
}
.hamburger span {
    position: absolute;
    height: 2px; width: 100%;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
    left: 0;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-color: var(--color-bg);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
}
.hero-content {
    z-index: 2;
    padding-right: 2rem;
}
.hero-content h1 {
    margin-bottom: 1.5rem;
    line-height: 1.15;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-image {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px; left: -20px;
    width: 200px; height: 200px;
    border-left: 1px solid var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    z-index: -1;
}

/* Asymmetrical Layouts */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-section.reverse .split-content {
    order: -1;
}
.split-image {
    position: relative;
}
.split-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
}
.split-image.landscape img {
    aspect-ratio: 16/9;
}
.decorative-line {
    width: 2px;
    height: 100px;
    background-color: var(--color-accent);
    margin: 2rem 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    background: var(--color-surface);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 3px solid transparent;
    transition: var(--transition-slow);
}
.feature-card:hover {
    border-top-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Portfolio / Gallery Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    group: portfolio;
    aspect-ratio: 3/4;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay h3, .portfolio-overlay p {
    color: #fff;
    margin: 0;
}
.portfolio-overlay p { margin-top: 0.5rem; font-size: 0.9rem; opacity: 0.8; }

/* Thematic Niche Blocks */
.concept-block {
    background-color: var(--color-surface);
    padding: 5rem 4rem;
    margin: 4rem 0;
    position: relative;
    border-left: 4px solid var(--color-accent);
}
.concept-block::before {
    content: "哲学";
    position: absolute;
    top: -2rem; right: 2rem;
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-bg);
    font-weight: 700;
    z-index: 0;
    opacity: 0.5;
}
.concept-block > * { position: relative; z-index: 1; }

.materials-section {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
}
.materials-section h2, .materials-section h3 { color: var(--color-bg); }
.materials-section p { color: #A09E9C; }

/* Footer */
.site-footer {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    padding: 6rem 0 2rem;
}
.site-footer a { color: var(--color-accent-light); }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.footer-col p, .footer-col li {
    font-size: 0.9rem;
    color: #A09E9C;
    margin-bottom: 0.5rem;
}
.footer-col ul { list-style: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Header */
.page-header {
    padding: 12rem 0 6rem;
    background-color: var(--color-surface);
    text-align: center;
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-inner, .split-section, .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-content { padding-right: 0; }
    .hero-image { height: 50vh; }
    .split-section.reverse .split-content { order: 0; }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-slow);
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 1.5rem; }
    .hamburger { display: block; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .concept-block { padding: 3rem 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
