@import url('https://fonts.googleapis.com/css2?family=Sarawabi+Mincho&display=swap');

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

body {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container.hidden {
    display: none;
}

/* Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    z-index: 100;
    border-bottom: 1px solid rgba(200, 200, 200, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.kanji {
    font-family: 'Sarawabi Mincho', serif;
    font-size: 24px;
    font-weight: 400;
    color: #666666;
    line-height: 1.2;
    writing-mode: vertical-lr;
    text-orientation: upright;
}

.name {
    font-family: 'Baskerville Old Face', 'Baskerville', 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 400;
    color: #050505;
    letter-spacing: 0.5px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}

.name span {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-links a {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #666666;
    text-decoration: none;
    letter-spacing: 0.8px;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #666666;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 99;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.2);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #666666;
    text-decoration: none;
    letter-spacing: 0.2px;
    padding: 10px;
    transition: opacity 0.2s ease;
}

.mobile-menu a:hover {
    opacity: 0.6;
}

/* Main Content - Projects Grid */
.main-content {
    margin-top: 120px;
    padding: 0 106px 120px;
    width: 100%;
    max-width: 1440px;
    display: flex;
    justify-content: center;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 60px 54px;
    max-width: 1228px;
    width: 100%;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 260px;
    background-color: #E8E8E8;
    border-radius: 0;
}

.project-info h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 4px;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.project-info h3:hover {
    opacity: 0.6;
}

.project-info p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #999999;
    letter-spacing: 0.1px;
}

/* Project Detail Pages */
.project-detail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99;
    overflow-y: auto;
}

.project-detail.active {
    display: block;
}

.project-detail-content {
    margin-top: 80px;
    padding: 0 0 120px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-hero-image {
    width: 100%;
    max-width: 1440px;
    height: 507px;
    background-color: #E8E8E8;
    margin-bottom: 0;
}

.project-details {
    width: 100%;
    max-width: 1440px;
    padding: 60px 106px;
    display: flex;
    gap: 100px;
    box-sizing: border-box;
}

.project-left {
    flex: 0 0 auto;
}

.project-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 36px;
    font-weight: 300;
    color: #333333;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.project-meta-item {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #999999;
    letter-spacing: 0.1px;
}

.project-right {
    flex: 1;
    max-width: 600px;
}

.project-description {
    margin-bottom: 30px;
}

.project-description h4 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    margin-bottom: 8px;
    margin-top: 16px;
    letter-spacing: 0.5px;
}

.project-description h4:first-child {
    margin-top: 0;
}

.project-description p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #666666;
    line-height: 1.8;
    letter-spacing: 0.1px;
    margin-bottom: 12px;
}

.read-more {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #999999;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.read-more:hover {
    opacity: 0.6;
}

.project-images-grid {
    width: 100%;
    max-width: 1440px;
    padding: 60px 106px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.project-image-item {
    width: 100%;
    height: 400px;
    background-color: #E8E8E8;
}

.project-full-image {
    width: 100%;
    max-width: 1440px;
    padding: 0 106px;
    margin-bottom: 60px;
    box-sizing: border-box;
}

.project-full-image-inner {
    width: 100%;
    height: 600px;
    background-color: #E8E8E8;
}

.project-text-section {
    width: 100%;
    max-width: 1440px;
    padding: 40px 106px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.project-text-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-text-content h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: #333333;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.project-text-content p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #666666;
    line-height: 1.8;
    letter-spacing: 0.1px;
    margin-bottom: 15px;
}

.project-text-content a {
    color: #37E978;
    text-decoration: none;
}

.project-text-content a:hover {
    text-decoration: underline;
}

/* Contact Page - FIXED */
.contact-page {
    display: none;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 98;
    overflow-y: auto;
}

.contact-page.show {
    display: block;
}

.contact-wrapper {
    margin-top: 200px;
    padding: 0 106px 120px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.contact-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 36px;
    font-weight: 300;
    color: #333333;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: -0.5px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-box {
    text-align: center;
}

.contact-box h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.contact-box a {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #333333;
    text-decoration: none;
    letter-spacing: 0.1px;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.contact-box a:hover {
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .main-content {
        padding: 0 5% 120px;
    }
    
    .top-nav {
        padding: 0 5%;
    }
    
    .project-hero-image {
        height: 35vw;
        min-height: 300px;
    }
    
    .project-details {
        padding: 40px 5%;
        gap: 60px;
    }
    
    .project-images-grid {
        padding: 40px 5%;
    }
    
    .project-full-image {
        padding: 0 5%;
    }
    
    .project-full-image-inner {
        height: 40vw;
        min-height: 400px;
    }
    
    .project-text-section {
        padding: 30px 5%;
    }
    
    .contact-wrapper {
        padding: 0 5% 120px;
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .project-details {
        flex-direction: column;
        gap: 30px;
        padding: 30px 5%;
    }
    
    .project-title {
        font-size: 28px;
    }
    
    .project-images-grid {
        grid-template-columns: 1fr;
        padding: 30px 5%;
    }
    
    .project-image-item {
        height: 300px;
    }
    
    .project-full-image-inner {
        height: 50vw;
        min-height: 300px;
    }
    
    .project-text-content h3 {
        font-size: 20px;
    }
    
    .contact-wrapper {
        margin-top: 150px;
        padding: 0 5% 100px;
    }
    
    .contact-title {
        font-size: 28px;
        margin-bottom: 60px;
    }
}