:root {
    --navy: #001f3f;
    --accent: #0074D9;
    --light-bg: #fdfdfd;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--light-bg);
    color: var(--navy);
    overflow-x: hidden;
}

/* Starfall Background */
#star-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    color: var(--accent);
    opacity: 0.5;
    animation: fall linear forwards;
}

@keyframes fall {
    to { transform: translateY(100vh) rotate(360deg); }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 35px; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: 2px; }

.lang-switcher button {
    background: none;
    border: 1px solid var(--navy);
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 13px;
    transition: 0.3s;
}

.lang-switcher button.active {
    background: var(--navy);
    color: white;
}

/* Hero Section */
.hero {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 0;
}

.hero-logo-icon {
    height: 100%;
    width: auto;
    opacity: 0.18;
    animation: rotateLogo 30s linear infinite;
    transform: translateX(-10%); 
    filter: grayscale(100%);
}

@keyframes rotateLogo {
    from { transform: rotate(0deg) translateX(-10%); }
    to { transform: rotate(360deg) translateX(-10%); }
}

.hero-content {
    z-index: 10;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3.5rem, 12vw, 6rem);
    margin: 0;
    letter-spacing: 12px;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 15px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 60px 0 40px;
    position: relative;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 0 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Contact Section */
.contact-section {
    background: #f4f7f9;
    padding: 80px 5%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
}

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    background: #fafafa;
}

.submit-btn {
    background: var(--navy);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--accent);
}

/* Animations */
.fade-in { animation: fadeIn 1.2s ease-out; }
.fade-in-delay { animation: fadeIn 1.2s ease-out 0.5s both; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; padding: 25px; }
    .hero { height: 60vh; }
    .hero-bg-wrapper { width: 350px; height: 350px; }
    .section-title { font-size: 2rem; }
}