/* ============================================
   Capricorn - Shared Styles
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* Japanese language support */
html[lang="ja"] body {
    font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.65rem;
    color: #7f8c8d;
    font-weight: 400;
    display: block;
    margin-top: -5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
}

/* Language Selector */
.lang-selector {
    background: #ffffff;
    border: 1px solid #bdc3c7;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237f8c8d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2rem;
}

.lang-selector:hover {
    background-color: #f8f9fa;
    border-color: #95a5a6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237f8c8d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
}

.lang-selector:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
}

/* ============================================
   Hero Sections (Shared Base)
   ============================================ */
.hero,
.page-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
}

.hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content,
.page-hero-content {
    position: relative;
    z-index: 1;
}

.hero h1,
.page-hero h1 {
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero h1 strong,
.page-hero h1 strong {
    font-weight: 600;
}

/* Homepage Hero */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #bdc3c7;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    background: #3498db;
    color: #ffffff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.hero-cta:hover {
    background: transparent;
    color: #3498db;
}

/* Page Hero (Interior Pages) */
.page-hero {
    padding: 140px 0 80px;
}

.page-hero h1 {
    font-size: 2.8rem;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: #bdc3c7;
    max-width: 700px;
    line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #3498db;
}

.breadcrumb span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* ============================================
   Cards (Shared)
   ============================================ */
.service-card,
.service-detail-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card {
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top-color: #3498db;
}

.service-detail-card {
    border-left: 4px solid #3498db;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3,
.service-detail-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card > p,
.service-detail-card > p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-list li {
    padding: 0.5rem 0;
    color: #5d6d7e;
    font-size: 0.9rem;
    border-bottom: 1px solid #ecf0f1;
    padding-left: 1.2rem;
    position: relative;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3498db;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-cta {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.service-cta:hover {
    color: #2980b9;
}

/* Detail card checkmark list */
.service-detail-card ul {
    list-style: none;
}

.service-detail-card li {
    padding: 0.5rem 0;
    color: #5d6d7e;
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-detail-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 600;
}

/* Sector Cards */
.sector-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sector-card:hover {
    background: #ecf0f1;
}

.sector-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.sector-card h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.sector-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #3498db;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.cta-button:hover {
    background: #2c3e50;
    color: #ffffff;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cta-button.secondary:hover {
    background: #ffffff;
    color: #3498db;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #1a252f;
    color: #bdc3c7;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: #ffffff;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #95a5a6;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a {
    display: block;
    color: #95a5a6;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 992px) {
    .services-grid,
    .sectors-grid,
    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .commodities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .corridor-features {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-step::after {
        display: none;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle,
    .page-hero-subtitle {
        font-size: 1rem;
    }

    .presence-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .overview-stats {
        grid-template-columns: 1fr;
    }

    .commodities-grid {
        grid-template-columns: 1fr;
    }

    .corridor-visual {
        flex-direction: column;
    }

    .corridor-arrow {
        transform: rotate(90deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cta-button {
        display: block;
        margin: 0.5rem auto;
        max-width: 280px;
    }
}