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

:root {
    --primary-color: #788ce3;
    --dark-bg: #1a1a1a;
    --text-dark: #333;
    --text-light: #010101;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
.container2 {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 80%;
    height: auto;
}

.logo-square {
    width: 50px;
    height: 50px;
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.logo-square.white {
    background-color: var(--white);
}

.logo-text {
    color: var(--white);
    font-weight: bold;
    font-size: 20px;
}

.logo-square.white .logo-text {
    color: var(--dark-bg);
}

.logo-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav {
    display: flex;
    gap: 30px;
    font-family: 'Noto Sans JP', sans-serif;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    padding: 0;
    background-color: var(--white);
    text-align: center;
}

.hero-section img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    font-size: 24px;
    color: var(--text-light);
    animation: fadeInUp 1s ease;
}

.hero-devices {
    margin: 60px 0;
    animation: fadeInUp 1.2s ease;
}

.devices-top {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.device-icon {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.device-icon:hover {
    transform: scale(1.1);
}

.wave-connections {
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40"><path d="M0,20 Q25,10 50,20 T100,20" stroke="%23788ce3" stroke-width="2" fill="none" opacity="0.5"/></svg>') repeat-x;
    margin: 20px 0;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.devices-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.device-item .device-icon {
    width: 80px;
    height: 80px;
}

.device-item span {
    font-size: 12px;
    color: var(--text-light);
}

.hero-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    text-align: left;
}

.desc-column h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.desc-column p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);

    text-align: center;
}

.section-banner {
    background-color: var(--);
    color: var(--white);
    padding: 8px 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0;
    flex: 1;
    text-align: center;
}

.total-shipments {
    position: static;
    text-align: center;
    white-space: nowrap;
    align-self: center;
}

.total-shipments .label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.total-shipments .number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

/* ESS Solution Section */
.ess-solution-section {
    background-color: #f7f7f7;
}

.ess-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 320px));
    gap: 50px;
    margin-bottom: 30px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.ess-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    
}

.ess-card:hover {
    transform: translateY(-10px);
}

.ess-card-image {
    width: 100%;
    height: 200px;
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ess-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ess-card-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
}

.card-icon {
    font-size: 48px;
    z-index: 1;
}

.ess-card h3 {
    font-size: 20px;
    margin-bottom: 0px;
    color: #000000;
}

.ess-card h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0px;
    color: #788ce3;
}

.ess-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 15px;
}

.ess-description {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.ess-description p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Battery Section */
.battery-section {
    background-color: #ffffff;
}
.battery-section2 {
    background-color: #ffffff;
}

.battery-section .container {
    max-width: 1440px;
}
.battery-section2 .container {
    max-width: 1440px;
}

.battery-products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.battery-card {
    background-color: var(--white);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.battery-card:hover {
    transform: translateY(-5px);
}

.battery-image {
    width: 100%;
    height: 150px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 15px;
}

.battery-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.battery-card ul {
    list-style: none;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.8;
}

.battery-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
}

.detail-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
}

.detail-image {
    display: flex;
    width: 100%;
    height: 250px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    
}

.detail-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.battery-description {
    display: flex;
    width: 100%;
    height: auto;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 20px;
    grid-column: span 2;
    margin-top: 80px;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    
    padding: 10px 20px 10px 20px;
}
.detail-card .subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.detail-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.carousel-arrow {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: #87ceeb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Applications Section */
.applications-section {
    background-color: var(--white);
}

.applications-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-weight: 600;
}

.applications-intro p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.application-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.app-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-10px);
}

.app-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.app-card h3 {
    font-size: 16px;
    color: var(--text-dark);
}

/* Heater Section */
.heater-section {
    background-color: var(--light-gray);
}

.heater-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.heater-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.heater-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    
    
}

.heater-card:hover {
    transform: translateY(-5px);
}

.heater-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.heater-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.heater-card ul {
    list-style: none;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.certifications {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
  }

.certifications h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
    color: #788ce3;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    
}

.cert-doc {
    width: 100%;
    height: 450px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Components Section */
.components-section {
    background-color: #ffffff;
    color: var(--white);
}

.components-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.components-intro p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.8;
}

.component-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.component-card {
    background-color: #f0f0f0;
    padding: 0px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.component-card:hover {
    transform: translateY(-5px);
}

.component-image {
    width: 100%;
    height: 150px;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
}

.component-card h3 {
    font-size: 16px;
    color: black;
}

.components-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.components-description p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.8;
}

/* Other Products Section */
.other-products-section {
    background-color: var(--light-gray);
}

.other-products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.view-all-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-all-btn:hover {
    background-color: #5a6bc4;
    transform: translateY(-2px);
}

.other-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.other-product-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.other-product-card:hover {
    transform: translateY(-5px);
}

.other-product-image {
    width: 100%;
    height: 180px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 15px;
}

.other-product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.other-product-card ul {
    list-style: none;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Dealer & IoT Section */
.dealer-iot-section {
    background-color: var(--white);
}

.dealer-iot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.dealer-column,
.iot-column {
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.dealer-column h2,
.iot-column h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.dealer-column p,
.iot-column p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
}

.about-section .section-title {
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* History Section */
.history-section {
    background-color: var(--white);
}

.timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
   content: '';
    position: absolute;
    left: 5%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 40px;
    padding: 20px 0 20px 0;
    margin-bottom: 0px;
    
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 5%;
    top: 25px;
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    transform: translateX(-50%);
}

.timeline-year {
    width: 120px;
    font-size: 20px;
    font-weight: bold;
    color: black;
    text-align: right;
    padding-right: 0px;
    line-height: 1.8;
    
}

.timeline-content {
    flex: 1;
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 0px;
    
} 

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-title {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-info {
    text-align: left;
}

.contact-item {
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

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

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ess-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .battery-products {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .application-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .heater-content {
        grid-template-columns: 1fr;
    }
    
    .component-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-description {
        grid-template-columns: 1fr;
    }
    
    .ess-cards {
        grid-template-columns: 1fr;
    }
    
    .battery-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .battery-details {
        grid-template-columns: 1fr;
    }
    
    .carousel-arrow {
        display: none;
    }
    
    .application-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .component-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .other-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dealer-iot-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-info {
        text-align: left;
    }
    
    .total-shipments {
        position: static;
        text-align: center;
        margin-top: 20px;
    }

    .timeline {
        padding-left: 0;
    }

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

    .timeline-item {
        flex-direction: column;
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 11px;
        top: 20px;
    }

    .timeline-year {
        width: auto;
        text-align: left;
        padding-right: 0;
        
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .battery-products,
    .application-cards,
    .component-cards,
    .other-products-grid {
        grid-template-columns: 1fr;
    }
    
    .devices-bottom {
        flex-direction: column;
    }
}

/* Mobile navigation and overlay styles moved from dynamic JS injection */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        background: white;
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-right: 10px;
        
    }
    
    .nav.mobile-open {
        max-height: 300px;
        width: 30%;
    }
    
    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .section-header {
        transform: scale(0.85);
        transform-origin: center top;
    }
}/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1000;
    transition: opacity 0.2s ease;
}

/* Active nav link (moved from dynamic injection) */
.nav-link.active {
    color: var(--primary-color);
}
.nav-link.active::after {
    width: 100%;
}

