/* 
 * 杉能舎 30周年特設ページ CSS
 * Theme: Premium, Dark Amber, Craftsmanship
 */

:root {
    --color-bg: #ffffff;
    --color-bg-light: #f7f7f7;
    --color-text: #222222;
    --color-text-muted: #555555;
    --color-gold: #c19b64;
    --color-gold-glow: rgba(193, 155, 100, 0.2);
    --color-slate: #1c2b39;
    --color-amber: #ae5e18;
    
    --font-heading: 'Yu Mincho', 'Shippori Mincho', 'Noto Serif JP', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ======== Layout ======== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 0;
}
.container-large {
    max-width: 1400px;
}
.relative {
    position: relative;
}

/* ======== Utilities & Typography ======== */
.section-title {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}
.section-title .en {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--color-gold);
    letter-spacing: 0.3em;
    margin-bottom: 5px;
}
.section-title .ja {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
}

/* ======== Header ======== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 5%;
}
.header-logo {
    display: block;
    text-decoration: none;
}
.logo-image {
    width: 180px;
    height: auto;
    max-height: 45px;
    object-fit: contain;
    object-position: left center;
    /* Transform black pixel to slate blue matching poster */
    filter: brightness(0) saturate(100%) invert(14%) sepia(18%) saturate(1475%) hue-rotate(168deg) brightness(98%) contrast(93%);
    transition: var(--transition);
}
.header-logo:hover .logo-image {
    /* Gold on hover */
    filter: brightness(0) saturate(100%) invert(62%) sepia(34%) saturate(541%) hue-rotate(345deg) brightness(91%) contrast(85%);
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-list a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--color-slate);
    font-weight: 500;
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
}
.nav-list a:hover {
    opacity: 1;
    color: var(--color-gold);
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: var(--transition);
}
.nav-list a:hover::after {
    width: 100%;
}

/* ======== Hero ======== */
.hero {
    position: relative;
    width: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* offset header */
    padding-bottom: 0; /* offset removed to place bottom section cleanly */
}
.hero-split-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.hero-split-item {
    flex: 1;
    display: flex;
    align-items: center; /* Prevents image from stretching to fill height */
    justify-content: center;
    background-color: #fff; /* Ensure seamless background for text image */
}
.hero-split-item.photo-section {
    align-items: stretch; /* Photo can stretch and cover */
    background-color: #000;
}
.hero-poster-split {
    width: 100%;
    height: auto;
    max-height: 100%; /* Ensure it doesn't overflow */
    display: block;
    object-fit: contain; /* Prevents cropping */
}
.hero-split-item.photo-section .hero-poster-split {
    object-fit: cover; /* Photo should cover the area without white gaps */
}

/* ======== Hero Bottom Section (Scroll & Logo) ======== */
.hero-bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff; /* Ensure it matches text section/bg */
    padding: 30px 0 60px;
    width: 100%;
}

.scroll-indicator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}
.scroll-text {
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: var(--color-text);
}
.scroll-indicator.dark .scroll-text {
    color: var(--color-slate);
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.scroll-line::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-slate);
    animation: scrollDrop 2s infinite ease-in-out;
}
@keyframes scrollDrop {
    0% { top: -100%; }
    100% { top: 100%; }
}

.brand-logo-section {
    margin-bottom: 40px; /* Moved to bottom since it's now above the text */
    display: flex;
    justify-content: center;
}
.brand-logo-img {
    max-width: 250px; /* Slightly larger than the previous 150px logo, for an elegant look */
    height: auto;
    opacity: 0.9;
}

/* ======== Intro & Outro ======== */
.intro, .outro {
    background: var(--color-bg);
    padding: 20px 0 20px 0; /* Reduced top padding since logo is here now */
}
.outro {
    padding: 20px 0 60px 0;
}
.intro-text, .outro-text {
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 30px;
    color: var(--color-text);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.05em;
}
.text-emphasis {
    color: var(--color-gold); /* Emphasize with brand gold color */
    font-size: 1.15rem;
    font-weight: 600;
}
.text-accent-red {
    color: #d94a38; /* Elegant crimson/red that fits the premium theme */
    font-weight: 600;
}
.intro-text:last-child, .outro-text:last-child {
    margin-bottom: 0;
}

/* ======== History ======== */
.history {
    background: var(--color-bg-light);
}
.timeline-container {
    position: relative;
    padding-left: 50px;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-line {
    position: absolute;
    top: 0;
    left: 14px;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, var(--color-gold) 50%, rgba(0,0,0,0.05) 100%);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline-line.active {
    transform: scaleY(1);
}
.timeline-item {
    position: relative;
    margin-bottom: 80px;
}
.timeline-dot {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    z-index: 2;
    transition: var(--transition);
}
.timeline-dot.golden {
    background: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold-glow);
}
.timeline-dot.pulse {
    animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(207, 170, 109, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(207, 170, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(207, 170, 109, 0); }
}
.past-history {
    opacity: 0.4;
    transition: var(--transition);
}
.past-history:hover {
    opacity: 1;
}
.timeline-content .year {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}
.timeline-content .year.golden-text {
    color: var(--color-gold);
}
.timeline-content .year.glow {
    text-shadow: 0 0 15px var(--color-gold-glow);
}
.timeline-content .event {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text);
}
.timeline-content .desc {
    color: var(--color-text-muted);
}
.highlight-now .timeline-content {
    background: #ffffff;
    border: 1px solid rgba(193,155,100,0.3);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

/* ======== Movie ======== */
.movie {
    background: var(--color-slate);
}
.movie .section-title .ja {
    color: #ffffff;
}
.movie .section-title .en {
    color: var(--color-gold);
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ======== Goods ======== */
.goods {
    background: var(--color-bg);
}
.gallery-container {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
    margin-bottom: 60px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.gallery-wrapper {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}
.gallery-wrapper.bottom-wrapper {
    animation-direction: reverse;
}
.gallery-wrapper:hover {
    animation-play-state: paused;
}
.gallery-track {
    display: flex;
    gap: 30px;
    padding: 0 15px;
}
.gallery-item {
    position: relative;
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 43, 57, 0.8); /* matching slate blue */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    letter-spacing: 0.15em;
    font-size: 0.95rem;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.btn-wrap {
    text-align: center;
}
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-gold);
    z-index: -1;
    transition: var(--transition);
}
.btn-primary:hover {
    color: #000;
}
.btn-primary:hover::before {
    width: 100%;
}

/* ======== Roadmap ======== */
.roadmap {
    background: var(--color-slate);
}
.roadmap .section-title .ja {
    color: #ffffff;
}
.roadmap-desc {
    color: rgba(255,255,255,0.7);
    margin-bottom: 60px;
}
.roadmap-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.roadmap-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.1);
}
.rm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}
.rm-item:nth-child(even) {
    flex-direction: row-reverse;
}
.rm-month {
    width: 45%;
    text-align: right;
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: rgba(255,255,255,0.1);
    font-weight: 800;
    transition: var(--transition);
}
.rm-item:nth-child(even) .rm-month {
    text-align: left;
}
.rm-item:hover .rm-month {
    color: var(--color-gold);
    transform: scale(1.05);
}
.rm-dot {
    width: 12px;
    height: 12px;
    background: var(--color-slate);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    z-index: 2;
}
.rm-dot.special {
    background: var(--color-gold);
}
.rm-dot.glow-dot {
    box-shadow: 0 0 15px var(--color-gold-glow);
}
.rm-card {
    width: 45%;
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 2px solid var(--color-gold);
    transition: var(--transition);
}
.rm-item:nth-child(even) .rm-card {
    border-left: none;
    border-right: 2px solid var(--color-gold);
}
.rm-item:hover .rm-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.rm-tag {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
}
.special-tag {
    background: var(--color-gold);
    color: #000;
}
.rm-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-text);
}
.rm-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}
.sold-out-badge {
    background: #666;
    color: #fff;
    border-color: #666;
    margin-left: 5px;
}
.sold-out-card {
    opacity: 0.6;
    border-left-color: #666 !important;
}
.rm-item:nth-child(even) .sold-out-card {
    border-right-color: #666 !important;
    border-left-color: transparent !important;
}
.sold-out-item .rm-dot {
    background: #444;
    border-color: #666;
}

/* ======== Footer ======== */
.footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    background: var(--color-bg);
    padding: 40px 0;
    text-align: center;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.copyright {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

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

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-title .main { font-size: 2.2rem; }
    .hero-title .sub { font-size: 1.2rem; }
    
    .hero-split-layout {
        flex-direction: column;
    }
    .hero-split-item {
        padding: 40px 20px;
    }
    .hero-split-item.photo-section {
        padding: 0;
    }
    .hero-poster-split {
        width: 100%;
        height: auto;
    }
    
    .brand-logo-img {
        max-width: 80%; /* Ensure it fits on mobile */
    }
    
    .timeline-container { padding-left: 30px; }
    .timeline-line { left: 9px; }
    .timeline-dot { left: -25px; }
    
    .roadmap-line {
        left: 20px;
        transform: none;
    }
    .rm-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
        position: relative;
    }
    .rm-month {
        width: 100%;
        text-align: left !important;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    .rm-card {
        width: 100%;
        border-left: 2px solid var(--color-gold) !important;
        border-right: none !important;
    }
    .rm-dot {
        position: absolute;
        left: 15px;
        top: 5px;
    }
    .nav-list { display: none; }
    .pc-only { display: none; }
}
