/* ========================================
   MORG Website - Main Styles
   EVERTONEスタイル準拠
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-accent: #30bdff;
    --color-gray: #666666;
    --color-gray-light: #cccccc;
    --color-gray-dark: #333333;

    /* Typography */
    --font-title: 'Josefin Sans', 'Futura', sans-serif;
    --font-body: 'Helvetica Neue', 'Helvetica', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;

    /* Spacing */
    --header-height: 80px;
    --container-width: 1200px;
    --section-padding: 100px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s 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-black);
    color: var(--color-white);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Base */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--section-padding) 20px;
}

/* Typography */
.section-title {
    font-family: var(--font-title);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-title);
    font-size: 18px;
    letter-spacing: 0.2em;
    color: var(--color-gray-light);
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* ========================================
   Buttons - EVERTONEスタイル
   ======================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: var(--font-title);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 25px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    transform: scale(1.05) translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--color-white);
    border: 1px solid var(--color-white);
    color: var(--color-black);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-3px);
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* ========================================
   Fixed Header
   ======================================== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition-fast);
}

.fixed-header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* ========================================
   Hamburger Menu
   ======================================== */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.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) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ========================================
   Navigation Overlay - ガラスモーフィズム
   ======================================== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    text-align: center;
}

.nav-menu li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-fast);
}

.nav-overlay.active .nav-menu li {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay.active .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-menu li:nth-child(2) { transition-delay: 0.12s; }
.nav-overlay.active .nav-menu li:nth-child(3) { transition-delay: 0.14s; }
.nav-overlay.active .nav-menu li:nth-child(4) { transition-delay: 0.16s; }
.nav-overlay.active .nav-menu li:nth-child(5) { transition-delay: 0.18s; }
.nav-overlay.active .nav-menu li:nth-child(6) { transition-delay: 0.2s; }
.nav-overlay.active .nav-menu li:nth-child(7) { transition-delay: 0.22s; }
.nav-overlay.active .nav-menu li:nth-child(8) { transition-delay: 0.24s; }
.nav-overlay.active .nav-menu li:nth-child(9) { transition-delay: 0.26s; }
.nav-overlay.active .nav-menu li:nth-child(10) { transition-delay: 0.28s; }
.nav-overlay.active .nav-menu li:nth-child(11) { transition-delay: 0.3s; }

.nav-menu a {
    font-family: var(--font-title);
    font-size: 24px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

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

/* ========================================
   Side Navigation Dots
   ======================================== */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.side-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-nav a {
    display: block;
    width: 12px;
    height: 12px;
    border: 1px solid var(--color-white);
    border-radius: 50%;
    transition: all var(--transition-fast);
    position: relative;
}

.side-nav a::before {
    content: attr(data-label);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-title);
    font-size: 12px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-fast);
    text-transform: uppercase;
}

.side-nav a:hover::before {
    opacity: 1;
}

.side-nav a:hover,
.side-nav a.active {
    background: var(--color-white);
    transform: scale(1.3);
}

/* ========================================
   Hero Section
   ======================================== */
.section-hero {
    background: #000;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.75));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-logo {
    max-width: 500px;
    width: 80vw;
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(60px, 15vw, 150px);
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--color-gray-light);
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator span {
    display: block;
    font-family: var(--font-title);
    font-size: 11px;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--color-white);
    margin: 0 auto;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   About Section
   ======================================== */
.section-about {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.8)),
                url('../../images/about-bg.jpg') center/cover no-repeat;
}

.section-about .container {
    text-align: center;
}

.section-about .section-title {
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content .section-subtitle {
    font-size: 14px;
    letter-spacing: 0.3em;
    color: #FF6600;
    margin-bottom: 20px;
}

.about-lead {
    font-family: var(--font-title);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 40px !important;
    color: var(--color-white) !important;
}

.about-lead .highlight-text {
    color: #FF6600;
    font-weight: 600;
}

.about-desc {
    font-size: 15px;
    line-height: 2.2;
    margin-bottom: 20px !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

.about-tagline {
    font-family: var(--font-title);
    font-size: 18px;
    letter-spacing: 0.1em;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white) !important;
}

.about-content p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 40px;
    color: var(--color-gray-light);
}

/* ========================================
   Studio Section
   ======================================== */
.section-studio {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
                url('../../images/studio/hero.jpg') center/cover no-repeat;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.content-card {
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all var(--transition-fast);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.content-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
}

.content-card h3 {
    font-family: var(--font-title);
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.content-card p {
    color: var(--color-gray-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ========================================
   Works Section
   ======================================== */
.section-works {
    background: var(--color-black);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.work-item {
    aspect-ratio: 1;
    background: var(--color-gray-dark);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-fast);
}

.work-item:hover {
    transform: scale(1.05);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.work-overlay .work-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.work-overlay .work-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.4;
}

.work-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--color-gray);
}

/* ========================================
   News Section
   ======================================== */
.section-news {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.8)),
                url('../../images/equipment/news-bg.jpg') center/cover no-repeat;
}

.news-list {
    max-width: 800px;
    margin: 0 auto 60px;
}

.news-item {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: all var(--transition-fast);
}

.news-item:hover {
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.news-date {
    font-family: var(--font-title);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.news-title {
    font-size: 16px;
    color: var(--color-white);
}

/* ========================================
   Contact Section
   ======================================== */
.section-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.8)),
                url('../../images/contact-bg.jpg') center/cover no-repeat;
    text-align: center;
}

.contact-content p {
    color: var(--color-gray-light);
    margin-bottom: 40px;
    font-size: 16px;
}

.social-links {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    font-family: var(--font-title);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--color-gray-light);
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-accent);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-black);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer p {
    font-size: 12px;
    color: var(--color-gray);
}

.footer a {
    font-size: 12px;
    color: var(--color-gray);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--color-white);
}

/* ========================================
   Responsive - Tablet & Mobile
   ======================================== */
@media screen and (max-width: 980px) {
    :root {
        --header-height: 60px;
        --section-padding: 80px;
    }

    .fixed-header {
        padding: 0 20px;
    }

    .side-nav {
        display: none;
    }

    .section-title {
        font-size: clamp(36px, 10vw, 60px);
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: clamp(48px, 12vw, 80px);
        letter-spacing: 0.2em;
    }

    .hero-subtitle {
        letter-spacing: 0.3em;
    }

    .nav-menu a {
        font-size: 24px;
    }

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

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

    .container {
        padding: 0 20px;
    }
}

@media screen and (max-width: 600px) {
    .btn {
        padding: 12px 30px;
        font-size: 12px;
    }

    .content-card {
        padding: 30px 20px;
    }

    .scroll-indicator {
        bottom: 40px;
    }

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

    .news-item {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero-logo {
        max-width: 280px;
    }
}
