/* Reset and Base Styles */
:root {
    --primary-blue: #003b8e; /* Yuasa-like deep corporate blue */
    --primary-light: #205bb2;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-dark: #1f2937;
    --border: #e5e7eb;
    --accent-red: #da291c; /* Optional accent */
    
    --font-base: 'Noto Sans JP', sans-serif;
}

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

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

body {
    font-family: var(--font-base);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.center {
    text-align: center;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-white { color: #ffffff; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px 24px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff !important;
    border: 1px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 59, 142, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue) !important;
    border: 1px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: #ffffff !important;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    min-width: 250px;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    padding: 8px 0;
    color: var(--text-muted);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-philosophy {
    font-weight: 500;
    letter-spacing: 0.05em;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tel-icon { font-size: 1rem; }
.tel-number { font-weight: 900; font-size: 1.1rem; color: var(--primary-blue); }
.tel-time { font-size: 0.75rem; }

/* Header Navigation */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover, .nav a.active {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); bottom: 11px; }

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #f0f4f8; /* fallback */
}

/* CG-like Abstract Grid / Nodes Background */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,244,248,0.7) 100%),
        /* Grid pattern */
        linear-gradient(rgba(0, 59, 142, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 59, 142, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 150%; height: 150%;
    top: -25%; left: 10%;
    background: radial-gradient(circle, rgba(0,59,142,0.03) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text-box {
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    display: inline-block;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 8px;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 35px;
    color: #111;
    letter-spacing: 0.03em;
    text-align: center;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 50px;
    font-weight: 500;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Sections Common */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 40px;
    position: relative;
    letter-spacing: 0.05em;
}

.section-title.center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 20px auto 0;
}

.subtitle {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
    margin-top: 10px;
}

.desc-margin {
    margin-bottom: 40px !important;
}

/* Philosophy Section */
.philosophy-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-content .section-title {
    margin-bottom: 20px;
}

.catchphrase {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: var(--text-main);
}

.philosophy-text {
    font-size: 1.1rem;
    line-height: 2;
    text-align: left;
    color: var(--text-muted);
}

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

.strength-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strength-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,59,142,0.1);
    border-color: rgba(0,59,142,0.2);
}

.strength-icon {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-light);
    opacity: 0.2;
    margin-bottom: 20px;
    line-height: 1;
}

.strength-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.strength-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Facilities Table */
.table-responsive {
    overflow-x: auto;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.corporate-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.corporate-table th, .corporate-table td {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
}

.corporate-table th {
    background-color: rgba(0,59,142,0.03);
    color: var(--primary-blue);
    font-weight: 700;
    white-space: nowrap;
}

.corporate-table tbody tr:hover {
    background-color: var(--bg-light);
}

/* Works Placeholder */
.works-placeholder {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
}

.works-placeholder > p {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.placeholder-box {
    background: var(--bg-light);
    border: 2px dashed var(--border);
    aspect-ratio: 21/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

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

/* About Us Section */
.about-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-flex > div {
    flex: 1;
}

.profile-card-inner {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.profile-role {
    display: block;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-name {
    font-size: 2rem;
    font-weight: 900;
}

.profile-en {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    margin-left: 10px;
}

.profile-tags {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-tags li {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
}

.profile-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    text-align: left;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 30%;
    font-weight: 700;
    color: var(--primary-light);
}

.info-table td {
    color: rgba(255,255,255,0.9);
}

/* Contact Section */
.contact-lead {
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.8;
}

.contact-action-box {
    display: flex;
    gap: 40px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-box-tel, .contact-box-mail {
    flex: 1;
    background: var(--bg-white);
    padding: 50px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
}

.c-label {
    display: block;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.c-tel {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.c-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.c-mail-btn {
    width: 100%;
    margin-bottom: 15px;
}

.mail-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.c-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    border-top: 4px solid var(--primary-blue);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-weight: 900;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-copy {
    font-size: 0.8rem;
}

.scroll-top {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

.scroll-top:hover {
    color: #ffffff;
    border-color: #ffffff;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 100;
    }
    
    .nav.open {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }
    .top-bar {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }
    .btn-large {
        width: 100%;
    }
    .about-flex {
        flex-direction: column-reverse; /* Put company info first on mobile */
    }
    .info-table th, .info-table td {
        display: block;
        width: 100%;
    }
    .info-table th {
        padding-bottom: 5px;
        border-bottom: none;
        color: var(--primary-light);
    }
    .contact-action-box {
        flex-direction: column;
    }
    .corporate-table th, .corporate-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 60px 0;
    }
}
