/* ===================================
   CSS Variables & Root Styles
   =================================== */
:root {
    /* Color Palette */
    --bg-black: #000000;
    --bg-dark: #0A0A0A;
    --text-white: #FFFFFF;
    --text-soft-white: #F5F5F5;
    --text-gray: #CCCCCC;
    --border-gray: #333333;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-light: rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --header-height: 80px;
    --container-padding: 100px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
  /* 黒い画像を少し透かし（0.7）、背景色が見えるようにする */
  background-blend-mode: multiply; /* 背景色と画像を馴染ませる */
  transition: background-color 20s ease;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ===================================
   Header Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    /*background-color: rgba(0, 0, 0, 0.95);*/
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo a {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.logo a:hover {
    opacity: 0.7;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-gray);
    position: relative;
    transition: var(--transition-fast);
}

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

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

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

.nav-toggle,
.nav-close {
    display: none;
    font-size: 24px;
    color: var(--text-white);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s ease infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1.5s ease;
}

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

.hero-label {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--text-white));
    animation: scrollAnimation 2s ease infinite;
}

@keyframes scrollAnimation {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 120px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 60px;
    text-align: center;
}

/* ===================================
   Featured Work Section
   =================================== */


.section-header {
    margin-bottom: 80px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    padding: 10px 25px;
    border: 1px solid var(--border-gray);
    background-color: transparent;
    transition: var(--transition-fast);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-white);
    border-color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ===================================
   Gallery Grid
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
    transition: var(--transition-smooth);
    opacity: 1;
    transform: scale(1);
}

.gallery-item.hide {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.gallery-info p {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.artwork-size {
    font-size: 12px;
    opacity: 0.8;
}

/* ===================================
   About Section
   =================================== */
.about {
    /*background-color: var(--bg-black);*/
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 120px;
}

.about-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.about-image img:hover {
    filter: grayscale(0%);
}

.about-text {
    padding-top: 40px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 40px;
}

.about-intro {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-soft-white);
}

.about-text p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--text-gray);
}

.about-details {
    margin-top: 60px;
}

.about-details h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.about-details ul {
    list-style: none;
}

.about-details li {
    font-size: 15px;
    font-weight: 300;
    line-height: 2;
    color: var(--text-gray);
    padding-left: 20px;
    position: relative;
}

.about-details li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-gray);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    /*background-color: var(--bg-dark);*/
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.contact-intro {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 50px;
    color: var(--text-gray);
}

.contact-details {
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-item i {
    font-size: 20px;
    color: var(--text-white);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-white);
}

.contact-item p,
.contact-item a {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--text-white);
}

.social-links {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-white);
    border-color: var(--text-white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gray);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.btn-submit {
    padding: 18px 50px;
    background-color: var(--text-white);
    color: var(--bg-black);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--text-white);
    cursor: pointer;
    transition: var(--transition-fast);
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: transparent;
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--bg-black);
    border-top: 1px solid var(--border-gray);
    padding: 60px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.footer-credit {
    font-size: 12px;
    opacity: 0.7;
}

/* ===================================
   Lightbox Modal
   =================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-info {
    text-align: center;
    padding: 20px;
}

.lightbox-info h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.lightbox-info p {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --container-padding: 60px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .about-content {
        grid-template-columns: 300px 1fr;
        gap: 60px;
    }
    
    .contact-content {
        gap: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-black);
        padding: 80px 40px;
        transition: right 0.4s ease;
        z-index: 1001;
        border-left: 1px solid var(--border-gray);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    
    .nav-toggle,
    .nav-close {
        display: block;
    }
    
    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    /* Hero */
    .hero-title {
        letter-spacing: 8px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 15px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 8px 20px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        position: relative;
        top: 0;
    }
    
    .about-text {
        padding-top: 0;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    /* Lightbox */
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-content img {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 4px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
