/* --- Use Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --font-en: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --color-text: #333333;
    --color-sub: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f5f7;
    --color-accent: #0f172a; /* Navy Blue for Trust */
    --color-border: #e2e8f0;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-en);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}
html[lang="jp"] body { font-family: var(--font-jp); }

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.4; }

/* Utility Classes for Animation */
.animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-target.in-view {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.section { padding: 100px 0; }
.section-title {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--color-sub);
    margin-bottom: 60px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 12px; height: 1px;
    background: var(--color-text);
}
.section-sub {
    font-size: 1.1rem;
    color: var(--color-sub);
    max-width: 600px;
    margin-bottom: 60px;
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo { font-weight: 700; font-size: 24px; letter-spacing: 1px; color: var(--color-accent); }
.header nav { display: flex; gap: 30px; align-items: center; font-size: 14px; font-weight: 500; }
.lang-switch { margin-left: 20px; border-left: 1px solid #ddd; padding-left: 20px; }
.lang-switch a.active { font-weight: 700; color: var(--color-accent); border-bottom: 1px solid currentColor; }

/* Mobile Menu Button (Simple) */
.mobile-menu-btn { display: none; }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    background-image: url('./img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 600;
}
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 600px; }

/* About Section */
.about { background: var(--color-bg); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}
.mission-box, .vision-box {
    margin-bottom: 40px;
    padding-left: 30px;
    border-left: 2px solid var(--color-accent);
}
.mission-box h3, .vision-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-accent);
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Services Section */
.services { background: var(--color-bg-alt); }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}
.card-body { padding: 40px; flex-grow: 1; position: relative; }
.card-icon {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0,0,0,0.03);
    line-height: 1;
}
.card h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 600; }
.card p { font-size: 0.95rem; color: var(--color-sub); }

/* CEO Message Section */
.message { background: #fff; border-top: 1px solid var(--color-border); }
.message-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
}
.director-img img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--color-bg-alt);
}
.message-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--color-text);
}
.director-sign h4 { font-size: 1.2rem; margin-bottom: 5px; }
.director-sign span { font-size: 0.9rem; color: var(--color-sub); text-transform: uppercase; letter-spacing: 1px; }

/* Company Section */
.company { background: var(--color-bg-alt); }
.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.company-table {
    width: 100%;
    border-collapse: collapse;
}
.company-table th, .company-table td {
    text-align: left;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}
.company-table th { width: 35%; color: var(--color-sub); font-weight: 500; }
.map-container { height: 100%; min-height: 300px; }
.map-container iframe { border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* Contact Section */
.contact { background: var(--color-bg); }
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fdfdfd;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 2px;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-accent);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}
.btn-submit {
    background: var(--color-accent);
    color: #fff;
    padding: 16px 50px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    border-radius: 2px;
}
.btn-submit:hover {
    background: #2d3748;
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    background: #fdfdfd;
}
footer nav { margin-bottom: 30px; }
footer nav a { margin: 0 20px; color: var(--color-text); font-weight: 500; }

/* Privacy Page Overrides */
.privacy-page { padding-top: 150px; } /* Add header offset */

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .message-grid, .company-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .director-img { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .header { padding: 15px 20px; }
    .header nav { display: none; } /* 本来はハンバーガーメニュー実装が必要 */
    .mobile-menu-btn { display: block; width: 30px; height: 20px; position: relative; cursor: pointer; }
    .mobile-menu-btn span { display: block; width: 100%; height: 2px; background: #333; margin-bottom: 6px; }
    
    .hero h1 { font-size: 2.5rem; }
    .section { padding: 60px 0; }
    .card { height: auto; }
}