/* Main Navigation Page Styles */

:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --accent-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --accent-color: #ff6b6b;
    --border-color: #e0e0e0;
}

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

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--primary-black);
    background-color: var(--white);
    overflow-x: hidden;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.site-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.logo-link:hover .site-title {
    color: var(--accent-color);
}

.site-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--accent-gray);
    letter-spacing: 0.05em;
}

/* Main Content */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Navigation Panel */
.navigation-panel {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.nav-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: var(--accent-gray);
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary-black);
    padding: 1rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    transform: translateX(10px);
    color: var(--accent-color);
}

.nav-label {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.nav-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--accent-gray);
    letter-spacing: 0.02em;
}

/* Portfolio Showcase */
.portfolio-showcase {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

.showcase-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

/* Project Info Section - 写真の上に配置 */
.project-info-header {
    padding: 2rem 0 1rem 0;
    text-align: center;
    background-color: var(--white);
}

.project-info-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.project-info-header p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--accent-gray);
    letter-spacing: 0.05em;
}

.featured-image {
    position: relative;
    width: 100%;
    height: auto; /* 写真の自然な高さに調整 */
    overflow: hidden;
    background-color: transparent; /* 背景色を削除 */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0; /* マージンを完全削除 */
}

.featured-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    filter: blur(8px) brightness(0.7);
    transition: all 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-quality;
}

.featured-image img.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px) brightness(1);
}

.featured-image:hover img.loaded {
    transform: translateY(-5px) scale(1.01);
    filter: blur(0px) brightness(1.05);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-image:hover .image-overlay {
    opacity: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.project-info p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* Thumbnail Grid - 完全に非表示にして写真の予告を見せない */
.thumbnail-grid {
    display: none; /* サムネイル全体を非表示 */
}

.thumbnail {
    position: relative;
    height: 120px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail.active {
    transform: scale(1.05);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.thumbnail:hover {
    transform: scale(1.08);
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-quality;
}

.thumbnail img.loaded {
    opacity: 1;
    transform: scale(1);
}

.thumbnail:not(.active) img.loaded {
    filter: grayscale(30%) brightness(0.8);
}

.thumbnail.active img.loaded {
    filter: none;
}

.thumbnail:hover img {
    filter: none;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-black);
    color: var(--white);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.footer-content h4 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-content p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--accent-gray);
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid var(--white);
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: var(--white);
    color: var(--primary-black);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .site-header {
        padding: 1.5rem 0;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-item:hover {
        transform: none;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .thumbnail {
        height: 100px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.1s; }
.fade-in.delay-2 { animation-delay: 0.2s; }
.fade-in.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}