:root {
    --bg-color: #0f172a;
    --bg-color-secondary: #1e293b;
    --text-color: #f1f5f9;
    --text-color-muted: #94a3b8;
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    --accent-color: #0ea5e9;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
    
    --header-height: 80px;
    --font-main: 'Noto Sans JP', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Header Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 32px; /* Slightly smaller for better proportion */
    width: auto;
    object-fit: contain;
    filter: invert(1) brightness(2); /* Make black logo white */
}

/* Nav Styles */
.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 8px 12px;
    color: var(--text-color);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item a:hover::after {
    transform: scaleX(1);
}

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

.btn-large {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    font-size: 1.1rem;
    padding: 14px 32px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
}

.btn-large:hover {
    background: var(--primary-gradient);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.hero-content {
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color-muted);
    font-weight: 500;
}

/* Base Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
    position: relative;
    display: block;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 16px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); /* Glow effect */
}

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

.section-content h3 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    color: var(--primary-color);
}

.section-content p {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin-bottom: 24px;
    line-height: 2;
}

/* Message Section */
.message {
    background-color: var(--bg-color-secondary);
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('images/abstract_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Service Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: rgba(30, 41, 59, 0.7); /* Translucent card */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.2); /* Stronger glow */
    border-color: var(--primary-color);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 700;
}

.service-card p {
    color: var(--text-color-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Company Section */
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.company-table th, .company-table td {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4); /* Increased opacity for visibility */
    text-align: left;
}

.company-table th {
    width: 30%;
    color: var(--text-color);
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.4); /* Increased opacity */
}

.company-table td {
    color: var(--text-color-muted);
    background-color: rgba(255, 255, 255, 0.05); /* Match th background */
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Partner Page Styles */
.partner-page .header .nav-item a.active {
    color: var(--primary-color);
}

.partner-page .header .nav-item a.active::after {
    width: 100%;
}

.page-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--bg-color);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-color-muted);
    letter-spacing: 0.1em;
}

.bg-secondary {
    background-color: var(--bg-color-secondary);
}

/* New Section Backgrounds via Classes */
.tech-section {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('images/tech_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Strengths (Reason) Background */
.strengths-section {
    background-image: radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.15) 0%, rgba(30, 41, 59, 0) 70%);
}

/* Flow Section Background */
.flow-section {
    background-image: linear-gradient(to bottom, var(--bg-color), var(--bg-color-secondary));
}

/* Tech Card Style */
.tech-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(5px);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(14, 165, 233, 0.3);
    border-color: rgba(14, 165, 233, 0.3);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-color);
}

.profile-card .role {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.profile-stats li {
    font-weight: 700;
    color: var(--text-color);
}

.profile-strength {
    background: var(--bg-color);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    color: var(--text-color);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.tech-card {
    background: var(--bg-color-secondary);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tech-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.tech-card ul li {
    margin-bottom: 8px;
    color: var(--text-color-muted);
    font-size: 0.95rem;
}

/* Strengths */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.strength-item {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border-color);
}

.strength-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.strength-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

/* Services List */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-row {
    background: var(--bg-color-secondary);
    padding: 24px 32px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 30px;
}

.service-row h3 {
    min-width: 250px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.service-row p {
    color: var(--text-color-muted);
    margin: 0;
}

/* Price Box */
.price-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
    text-align: center; /* Center align price box text */
}

.price-list {
    text-align: left; /* Keep list left aligned */
}

.price-list li {
    background: var(--bg-color);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

.note {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-top: 16px;
}

/* Flow */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.flow-step {
    background: var(--bg-color-secondary);
    padding: 24px;
    border-radius: 12px;
    position: relative;
    text-align: center;
}

.step-num {
    background: var(--primary-gradient);
    color: white;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.flow-step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.flow-step p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.faq-a {
    color: var(--text-color-muted);
    padding-left: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .service-row h3 {
        min-width: auto;
    }
    
    .price-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--bg-color-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        padding: 80px 40px;
        transition: 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .nav-item a {
        font-size: 1.1rem;
        color: var(--text-color);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar {
        background-color: var(--text-color);
    }

    /* Burger Menu Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    
    .section-content h3 {
        font-size: 1.5rem;
    }

    /* Fix table responsiveness */
    .company-table {
        display: block;
        width: 100%;
    }
    
    .company-table tbody {
        display: block;
        width: 100%;
    }
    
    .company-table tr {
        display: block;
        width: 100%;
        margin-bottom: 16px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    
    .company-table th, .company-table td {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border: none;
    }
    
    .company-table th {
        background-color: var(--bg-color-secondary);
        font-size: 0.9rem;
        color: var(--primary-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .company-table td {
        padding-top: 16px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
}
