/* Enlio Sport Floor Mat - Professional Japanese Distribution Site */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans JP', 'M PLUS 1p', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    font-feature-settings: "palt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: #ffffff;
    color: #1d1d1f;
    border-bottom: 1px solid #e5e5e7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e7;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1d1d1f;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    filter: none;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1d1d1f;
}

.company-info {
    text-align: right;
    font-size: 0.9rem;
    color: #6e6e73;
}

.company-info div {
    margin-bottom: 3px;
}

/* Navigation */
nav {
    padding: 16px 0;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu {
    display: flex;
    list-style: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
    justify-content: center;
    box-shadow: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0 4px;
    position: relative;
    white-space: nowrap;
}

.nav-menu a i {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: linear-gradient(135deg, #2c4b79, #4a6ba3);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(44, 75, 121, 0.3);
}

.nav-menu a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.nav-menu a.active {
    background: #2c4b79;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 75, 121, 0.4);
}

.nav-menu a.active i {
    opacity: 1;
}

/* Slideshow Styles */
.slideshow-section {
    margin: 0;
    padding: 0;
    width: 100%;
}

.slideshow-container {
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 600px;
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navigation arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #2c4b79;
    border: none;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.prev:hover, .next:hover {
    background: rgba(44, 75, 121, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 75, 121, 0.4);
}

/* Navigation dots */
.slideshow-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dot.active,
.dot:hover {
    background: #2c4b79;
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(44, 75, 121, 0.5);
}

/* Responsive slideshow */
@media (max-width: 768px) {
    .slide {
        height: 250px; /* Reduced from 350px for better mobile experience */
    }
    
    .prev, .next {
        padding: 12px 16px; /* Smaller touch targets */
        font-size: 1rem;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
    
    .slideshow-dots {
        bottom: 15px;
        gap: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slide {
        height: 200px; /* Even smaller for very small screens */
    }
    
    .prev, .next {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #1d1d1f;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Hero Section */
.hero {
    background: #ffffff;
    color: #1d1d1f;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #6e6e73;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #2c4b79;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 8px;
}

.btn:hover {
    background: #1e3557;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(44, 75, 121, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #2c4b79;
    color: #2c4b79;
}

.btn-secondary:hover {
    background: #2c4b79;
    color: white;
}

/* Product Categories */
.product-categories {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1d1d1f;
    font-weight: 600;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e7;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.category-header {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #e5e5e7;
}

.category-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1d1d1f;
}

.category-content {
    padding: 30px;
}

.product-list {
    list-style: none;
}

.product-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    color: #6e6e73;
    position: relative;
    padding-left: 20px;
}

.product-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c4b79;
    font-weight: bold;
}

.product-list li:last-child {
    border-bottom: none;
}

/* Features Section */
.features {
    background: #f5f5f7;
    padding: 80px 0;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 2px solid #e5e5e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #2c4b79;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1d1d1f;
    font-weight: 600;
}

/* Contact Section */
.contact-info {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-item {
    background: #f5f5f7;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
}

.contact-item h4 {
    color: #1d1d1f;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Footer */
footer {
    background: #1d1d1f;
    color: #ffffff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #a8a8a8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: #a8a8a8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ensure header displays correctly on mobile */
    header {
        background: #ffffff !important;
        color: #1d1d1f !important;
    }
    
    .header-top {
        padding: 8px 0; /* Reduced padding */
    }
    
    .header-content {
        flex-direction: row; /* Keep logo and menu button on same row */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    /* Hide company info on mobile to save space */
    .company-info {
        display: none;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo img {
        height: 35px; /* Smaller logo */
    }
    
    .logo h1 {
        font-size: 1.2rem; /* Smaller text */
        display: none; /* Hide text, just show logo image */
    }
    
    .mobile-menu-toggle {
        display: block;
        background: #2c4b79;
        color: white;
        border: none;
        padding: 10px 14px; /* Smaller button */
        border-radius: 6px;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle:hover {
        background: #4a6ba3;
        transform: scale(1.05);
    }
    
    /* Navigation styles remain the same */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: white;
        box-shadow: 0 8px 25px rgba(44, 75, 121, 0.15);
        border-radius: 12px;
        margin-top: 12px;
        padding: 12px;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 16px 20px;
        margin: 4px 0;
        border-radius: 8px;
        font-size: 1rem;
        justify-content: flex-start;
    }
    
    .nav-menu a:hover {
        transform: translateX(4px);
    }
    
    .hero {
        padding: 60px 0; /* Reduced padding for mobile */
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Mobile button styling */
    .hero .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
        font-size: 1.1rem;
        padding: 16px 20px;
    }
    
    .hero .btn:first-of-type {
        margin-top: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        margin-bottom: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Add mobile company info section at top of footer */
    .footer-section:first-child {
        background: #2c4b79;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .footer-section:first-child h4 {
        color: white;
        margin-bottom: 15px;
    }
    
    .footer-section:first-child ul li {
        color: #e0e0e0;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    /* Additional mobile improvements */
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        margin: 3px;
    }
    
    #caseStudiesGrid {
        grid-template-columns: 1fr;
    }
    
    /* Contact form mobile improvements */
    form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* About page mobile improvements */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-header h3 {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo img {
        height: 40px;
    }
}

/* Print Styles */
@media print {
    header, footer, .nav-menu, .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Japanese Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans JP', 'M PLUS 1p', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.japanese-text {
    font-feature-settings: "palt" 1, "pkna" 1;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Better button typography for Japanese */
.btn {
    font-family: 'Noto Sans JP', 'M PLUS 1p', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Navigation typography */
.nav-menu a {
    font-family: 'Noto Sans JP', 'M PLUS 1p', sans-serif;
    font-weight: 500;
}

/* Product Gallery Styles */
.products-showcase {
    background: #ffffff;
    padding: 80px 0;
    margin-bottom: 60px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e5e7;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(44, 75, 121, 0.15);
    border-color: #2c4b79;
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #1d1d1f;
    font-weight: 600;
}

.product-info p {
    color: #6e6e73;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background: #e8f2ff;
    color: #2c4b79;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(44, 75, 121, 0.2);
}

.product-cta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c4b79;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-link:hover {
    color: #4a6ba3;
    transform: translateX(4px);
}

.btn-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(4px);
}

/* Detailed Categories Section */
.detailed-categories {
    background: #f5f5f7;
    padding: 80px 0;
    margin-bottom: 60px;
}

/* Additional Responsive Design for Product Gallery */
@media (max-width: 768px) {
    .product-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .products-showcase {
        padding: 60px 0;
    }
    
    .detailed-categories {
        padding: 60px 0;
    }
}
.nav-menu a {
    font-family: 'Noto Sans JP', 'M PLUS 1p', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}
