/* ========================================
   SAKURA TRIKOT — Stylesheet
   Japanese-inspired editorial design
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Colors */
    --white: #FAFAFA;
    --white-pure: #FFFFFF;
    --black: #0A0A0A;
    --charcoal: #1A1A1A;
    --gray-dark: #2D2D2D;
    --gray: #6B6B6B;
    --gray-light: #E5E5E5;
    --gray-lighter: #F5F5F5;

    --red: #C41E3A;
    --red-dark: #9E1830;
    --red-light: #E8435A;

    --pink: #FFD7E0;
    --pink-soft: #FFF0F3;
    --pink-deep: #FFB6C1;

    /* Typography */
    --font-display: "Noto Serif", "Hiragino Mincho Pro", "Yu Mincho", Georgia, serif;
    --font-body: "Noto Sans", "Hiragino Kaku Gothic Pro", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-japanese: "Noto Serif JP", "Hiragino Mincho Pro", serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-medium: 0.4s var(--ease-out);
    --transition-slow: 0.8s var(--ease-out);

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 900px;
}

/* 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(--white);
    color: var(--charcoal);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ========================================
   FLOATING SAKURA PETALS
   ======================================== */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    border-radius: 150% 0 150% 0;
    opacity: 0;
    animation: fall linear infinite;
}

.petal:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.petal:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 2s; }
.petal:nth-child(3) { left: 35%; animation-duration: 14s; animation-delay: 4s; }
.petal:nth-child(4) { left: 50%; animation-duration: 20s; animation-delay: 1s; }
.petal:nth-child(5) { left: 65%; animation-duration: 16s; animation-delay: 3s; }
.petal:nth-child(6) { left: 75%; animation-duration: 19s; animation-delay: 5s; }
.petal:nth-child(7) { left: 85%; animation-duration: 17s; animation-delay: 2.5s; }
.petal:nth-child(8) { left: 95%; animation-duration: 21s; animation-delay: 4.5s; }

@keyframes fall {
    0% {
        top: -5%;
        opacity: 0;
        transform: rotate(0deg) translateX(0);
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        top: 105%;
        opacity: 0;
        transform: rotate(720deg) translateX(100px);
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(to bottom, rgba(250,250,250,0.98) 0%, rgba(250,250,250,0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

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

.nav-logo {
    font-family: var(--font-japanese);
    font-size: 1.75rem;
    color: var(--red);
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width var(--transition-medium);
}

.nav-links a:hover {
    color: var(--charcoal);
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: calc(80px + var(--space-lg)) var(--space-md) var(--space-lg);
    position: relative;
}

.hero-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

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

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--red);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    animation: fadeSlideUp 0.8s var(--ease-out) both;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.45s;
}

.title-line.accent {
    color: var(--red);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 480px;
    margin-bottom: var(--space-lg);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.6s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.75s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 0;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: var(--charcoal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
}

.btn-icon {
    font-size: 0.7rem;
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--gray-light);
}

.btn-secondary:hover {
    border-color: var(--charcoal);
    background: var(--charcoal);
    color: var(--white);
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeSlideLeft 1s var(--ease-out) 0.5s both;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-image:hover .hero-image-frame img {
    transform: scale(1.03);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background: var(--pink-soft);
    z-index: -1;
}

/* Scroll Hint */
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding-bottom: var(--space-md);
    animation: fadeIn 1s var(--ease-out) 1.2s both;
}

.hero-scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gray-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-md);
}

.section-header.centered {
    text-align: center;
}

.section-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--red);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray);
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
    padding: var(--space-xl) 0;
    background: var(--gray-lighter);
}

.video-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
}

.video-wrapper {
    position: relative;
    background: var(--black);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.video-wrapper video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-story {
    display: flex;
    align-items: center;
}

.story-card {
    background: var(--white);
    padding: var(--space-lg);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.story-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--charcoal);
}

.story-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.story-step {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.step-marker {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.story-step p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* ========================================
   STORY TIMELINE SECTION
   ======================================== */
.story-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--white);
}

.timeline {
    max-width: var(--container-narrow);
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gray-light) 10%, var(--gray-light) 90%, transparent);
}

.timeline-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.6s var(--ease-out) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-marker {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-medium);
    position: relative;
    z-index: 2;
}

.timeline-item:hover .timeline-marker {
    background: var(--red);
    border-color: var(--red);
}

.marker-number {
    font-family: var(--font-japanese);
    font-size: 1.75rem;
    color: var(--red);
    transition: color var(--transition-medium);
}

.timeline-item:hover .marker-number {
    color: var(--white);
}

.timeline-content {
    padding-top: var(--space-sm);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
}

.timeline-content p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 400px;
}

/* ========================================
   DESIGN DETAILS SECTION
   ======================================== */
.design-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--pink-soft) 100%);
}

.design-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
    margin-bottom: var(--space-xl);
}

.design-showcase {
    position: relative;
}

.design-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
}

.design-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-card {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--white);
    transition: all var(--transition-medium);
    border-left: 2px solid transparent;
}

.feature-card:hover {
    border-left-color: var(--red);
    transform: translateX(8px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--red);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Design Additional Images */
.design-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.design-img-item {
    overflow: hidden;
}

.design-img-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* ========================================
   VALUES SECTION
   ======================================== */
.values-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--charcoal);
    color: var(--white);
}

.values-section .section-number {
    color: var(--pink);
}

.values-section .section-title {
    color: var(--white);
}

.values-section .section-desc {
    color: var(--gray);
}

.values-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.value-card {
    padding: var(--space-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    transition: all var(--transition-medium);
}

.value-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--red);
    transform: translateY(-5px);
}

.value-symbol {
    font-family: var(--font-japanese);
    font-size: 3rem;
    color: var(--red);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--white);
}

.gallery-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: var(--space-sm);
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

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

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

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

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform var(--transition-medium);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2.5rem;
    color: var(--white);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--white);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    padding: var(--space-md);
}

.lightbox-prev { left: var(--space-md); }
.lightbox-next { right: var(--space-md); }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--space-2xl) var(--space-md);
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--white) 50%, var(--pink-soft) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-symbol {
    font-family: var(--font-japanese);
    font-size: 5rem;
    color: var(--red);
    margin-bottom: var(--space-md);
    line-height: 1;
    opacity: 0.8;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.8;
}

.cta-divider {
    width: 60px;
    height: 1px;
    background: var(--red);
    margin: var(--space-lg) auto;
}

.cta-note {
    font-size: 0.9rem !important;
    font-style: italic;
    color: var(--gray) !important;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--space-lg) var(--space-md);
    background: var(--charcoal);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    font-family: var(--font-japanese);
    font-size: 2rem;
    color: var(--red);
}

.footer p {
    font-size: 0.85rem;
    color: var(--gray);
    letter-spacing: 0.1em;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-image-accent {
        display: none;
    }

    .video-container {
        grid-template-columns: 1fr;
    }

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

    .design-showcase {
        max-height: 500px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 5rem;
        --space-2xl: 7rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: calc(60px + var(--space-md));
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        width: 60px;
        height: 60px;
    }

    .marker-number {
        font-size: 1.25rem;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
    }

    .design-images {
        grid-template-columns: 1fr;
    }

    .design-img-item img {
        height: 300px;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    .cta-symbol {
        font-size: 3.5rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .petal {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .nav,
    .sakura-container,
    .hero-scroll-hint,
    .lightbox {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--space-md);
    }

    section {
        page-break-inside: avoid;
    }
}
