/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform; /* Optimize for animations */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    will-change: transform; /* Optimize for animations */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile positioning for hero image */
@media (max-width: 768px) {
    .hero-image {
        object-position: center 30%;
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .hero-image {
        object-position: center 25%;
        transform: scale(1.2);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    z-index: 10;
}

.hero-text {
    color: white;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 1rem;
    position: relative;
}

.title-main {
    display: block;
    font-style: italic;
    opacity: 0.9;
    transform: translateX(-20px);
    animation: slideInLeft 1s ease-out forwards;
}

.title-accent {
    display: block;
    font-weight: 400;
    font-style: italic;
    color: #f4f4f4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateX(20px);
    animation: slideInRight 1s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #e0e0e0;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-description {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #d0d0d0;
    margin-bottom: 2.5rem;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: white;
    color: #333;
}

.cta-button.primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    animation: fadeInRight 1s ease-out 1.5s forwards;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, white, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 0;
    background: #f8f8f8;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.section-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Gallery Slider */
.gallery-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-slider {
    position: relative;
    width: 100%;
}

.slider-slide {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.slider-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.slider-slide.slide-in-right {
    transform: translateX(30px);
}

.slider-slide.slide-in-left {
    transform: translateX(-30px);
}

.slide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    aspect-ratio: auto;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.item-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    filter: grayscale(20%) contrast(1.1);
}

.gallery-item:hover .item-image img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.2);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.item-number {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.item-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.item-description {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.view-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    font-size: 0.8rem;
}

.view-button:hover {
    background: white;
    color: #333;
    transform: scale(1.1);
    border-color: white;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem;
    padding: 0 1rem;
}

.slider-btn {
    background: rgba(51, 51, 51, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1rem;
}

.slider-btn:hover {
    background: #333;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.indicator-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #333, transparent);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(51, 51, 51, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #333;
    transform: scale(1.2);
}

.slider-counter {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.item-number {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.item-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.item-description {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.view-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    font-size: 0.8rem;
}

.view-button:hover {
    background: white;
    color: #333;
    transform: scale(1.1);
    border-color: white;
}

/* Tokyo Style Navigation - REMOVED */

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-brand {
    text-align: left;
}

.footer-name-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.footer-name-en {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 2px;
}

.footer-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-info {
    text-align: right;
}

.footer-tagline {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.footer-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    grid-column: 1 / -1;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 1px;
}

.footer-value {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright-symbol {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.copyright-year {
    font-weight: 500;
    color: #fff;
}

.copyright-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
}

.footer-signature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signature-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

.signature-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand,
    .footer-info {
        text-align: center;
    }
    
    .footer-details {
        gap: 2rem;
    }
    
    .footer-name-jp {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-copyright {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-name-jp {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .footer-tagline {
        font-size: 1.2rem;
    }
    
    .footer-copyright {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .slide-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Hide slider buttons on mobile - swipe works better */
    .slider-controls {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle-jp {
        font-size: 1.4rem;
    }
    
    .slider-indicators {
        margin-top: 2rem;
    }
    
    .gallery-section {
        padding: 6rem 0;
    }
    
    /* Mobile optimizations for smooth scrolling */
    .hero-section {
        height: 100vh;
        position: relative;
        transform: none !important; /* Disable transforms on mobile */
    }
    
    .hero-background {
        transform: none !important; /* Disable transforms on mobile */
        position: fixed; /* Use fixed positioning for better performance */
    }
    
    .hero-image {
        object-position: center 35%;
        transform: none !important; /* Disable transforms on mobile */
        will-change: auto; /* Remove will-change on mobile */
    }
    
    .hero-content {
        transform: none !important; /* Disable transforms on mobile */
        position: relative;
        z-index: 10;
    }
    
    /* Optimize mobile performance */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle-jp {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .gallery-section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .slider-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile hero image positioning */
    .hero-image {
        object-position: center 40%;
    }
    
    /* Ensure smooth scrolling on small mobile */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}