/* Revolutionary Message Journey Styles */

/* Journey Introduction */
.journey-intro {
    height: 40vh;
    min-height: 300px;
    max-height: 500px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.intro-content {
    text-align: center;
    z-index: 10;
}

.intro-year {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: var(--accent-warm);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

/* Particles Animation */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.particles::before {
    left: 20%;
    top: 20%;
    animation-delay: 0s;
}

.particles::after {
    right: 30%;
    bottom: 30%;
    animation-delay: 3s;
}

/* Timeline Section */
.journey-timeline {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

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

.timeline-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.4);
}

.timeline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(212, 175, 55, 0.1) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
}

.timeline-content {
    position: relative;
    z-index: 10;
    padding: 100px 0;
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
    min-height: 100vh;
}

/* Timeline Track */
.timeline-track {
    position: relative;
    height: 600px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.timeline-progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 2px;
    animation: progressFill 3s ease-out forwards;
}

.timeline-point {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 3px solid var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(230, 197, 71, 0.6);
}

.timeline-point:nth-child(2) { top: 0%; }
.timeline-point:nth-child(3) { top: 33%; }
.timeline-point:nth-child(4) { top: 66%; }
.timeline-point:nth-child(5) { top: 100%; }

.timeline-year {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
    font-size: 1.1rem;
}

/* Story Content */
.timeline-story {
    display: grid;
    grid-template-columns: 1fr minmax(250px, 400px);
    gap: clamp(30px, 6vw, 60px);
    align-items: center;
}

.story-text {
    color: var(--primary-color);
}

.story-main-text {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--accent-warm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.story-content {
    font-size: 1.2rem;
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.story-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.story-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-wrapper:hover .story-img {
    transform: scale(1.05);
}

.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(230, 197, 71, 0.2), 
        transparent);
    border-radius: 30px;
    opacity: 0;
    animation: glow 3s ease-in-out infinite;
}

/* Timeline signature for Matsui */
.timeline-signature {
    margin-top: 40px;
    text-align: right;
    color: var(--primary-color);
}

.timeline-signature .signature-title {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.timeline-signature .signature-name {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-warm);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* Workshop Section */
.journey-workshop {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 80px; /* セクション間の余白を追加 */
}

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

.workshop-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.3);
}

.workshop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(212, 175, 55, 0.1) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
}

.workshop-content {
    position: relative;
    z-index: 10;
    padding: 100px 0;
    display: grid;
    grid-template-columns: minmax(250px, 400px) 1fr;
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
    min-height: 100vh;
}

.workshop-gallery {
    position: relative;
}

.gallery-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.gallery-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}


/* Cinematic Text */
.cinematic-text {
    margin-bottom: 60px;
}

.subtitle-line {
    margin-bottom: 25px;
}

.subtitle-line span {
    font-size: 1.3rem;
    color: var(--primary-color);
    line-height: 1.8;
    display: block;
    padding: 10px 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.workshop-signature {
    text-align: right;
    color: var(--primary-color);
}

.signature-title {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.signature-name {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-warm);
}

/* Climax Section */
.journey-climax {
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.climax-content {
    text-align: center;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fusion-images {
    display: grid;
    grid-template-columns: minmax(150px, 300px) 1fr minmax(150px, 300px);
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    margin-bottom: clamp(40px, 8vw, 80px);
}

.fusion-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.fusion-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.fusion-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

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

.quote-large {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--accent-warm);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.quote-small {
    display: block;
    font-size: 1.4rem;
    color: var(--primary-color);
    opacity: 0.9;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.climax-message {
    color: var(--primary-color);
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.climax-message p {
    margin-bottom: 25px;
}

.climax-final {
    font-weight: 500;
    color: var(--accent-warm) !important;
    font-size: 1.5rem !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    from { height: 0%; }
    to { height: 100%; }
}


@keyframes glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .journey-intro {
        height: 35vh;
        min-height: 280px;
        max-height: 450px;
    }
    
    .timeline-content {
        grid-template-columns: minmax(180px, 250px) 1fr;
        gap: clamp(30px, 6vw, 60px);
    }
    
    .timeline-story {
        grid-template-columns: 1fr minmax(200px, 300px);
        gap: clamp(20px, 4vw, 40px);
    }
    
    .workshop-content {
        grid-template-columns: minmax(200px, 300px) 1fr;
        gap: clamp(30px, 6vw, 60px);
    }
    
    .fusion-images {
        grid-template-columns: minmax(120px, 250px) 1fr minmax(120px, 250px);
        gap: clamp(15px, 3vw, 30px);
    }
}

@media (max-width: 768px) {
    .journey-intro {
        height: 30vh;
        min-height: 250px;
        max-height: 400px;
    }
    
    .timeline-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }
    
    .timeline-track {
        height: 300px;
        margin-bottom: 40px;
    }
    
    .timeline-story {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .story-image {
        order: -1;
    }
    
    .image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .story-img {
        height: 300px;
    }
    
    .workshop-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }
    
    .workshop-gallery {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .gallery-img {
        height: 300px;
    }
    
    .fusion-images {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fusion-img img {
        height: 200px;
    }
    
    .transition-text {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .typewriter {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }
    
    .subtitle-line span {
        font-size: 1.1rem;
    }
    
    .quote-large {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }
    
    .climax-message {
        font-size: 1.1rem;
    }
}

/* iPhone 15/14/13 specific (390px) */
@media (max-width: 390px) {
    .journey-intro {
        height: 25vh;
        min-height: 200px;
        max-height: 300px;
        padding: 30px 20px;
    }
    
    .intro-year {
        font-size: clamp(1.6rem, 8vw, 2.5rem);
    }
    
    .timeline-content,
    .workshop-content {
        padding: 60px 0;
    }
    
    .timeline-track {
        display: none; /* Hide timeline on very small screens */
    }
    
    .story-main-text {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        margin-bottom: 30px;
    }
    
    .story-content {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .story-img,
    .gallery-img {
        height: 280px;
    }
    
    .fusion-img {
        max-width: 100px;
    }
    
    .fusion-img img {
        height: 100px;
    }
    
    .subtitle-line span {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .quote-large {
        font-size: clamp(1.4rem, 7vw, 2rem);
        margin-bottom: 15px;
    }
    
    .quote-small {
        font-size: 1.2rem;
    }
    
    .climax-message {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .timeline-signature,
    .workshop-signature {
        margin-top: 30px;
    }
    
    .signature-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .intro-year {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }
    
    .timeline-track {
        height: 200px;
    }
    
    .story-img,
    .gallery-img {
        height: 250px;
    }
    
    .fusion-img img {
        height: 150px;
    }
    
    .typewriter {
        font-size: clamp(1rem, 5vw, 1.4rem);
        min-height: 80px;
    }
    
    .story-segment {
        font-size: 1rem;
    }
    
    .subtitle-line span {
        font-size: 1rem;
    }
    
    .quote-large {
        font-size: clamp(1.2rem, 8vw, 2rem);
    }
    
    .climax-message {
        font-size: 1rem;
    }
    
    .climax-final {
        font-size: 1.2rem !important;
    }
}