:root {
    --primary-blue: #00aaff;
    --text-main: #1a1f26;
    --text-sub: #64748b;
    --bg-light: #ffffff;
    --bg-sub: #f8fafc;
    --border: #e2e8f0;
    --header-height: 70px;
    --font-en: 'Inter', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
    --marker-color: rgba(0, 170, 255, 0.2);
}

html { scroll-behavior: smooth; }
body {
    margin: 0; background-color: var(--bg-light); color: var(--text-main);
    font-family: var(--font-ja); line-height: 1.8; overflow-x: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
hr { border: 0; border-top: 2px solid var(--bg-sub); margin: 6rem 0; }
.text-wrap { display: inline-block; white-space: nowrap; }

/* Header */
header {
    position: fixed; width: 100%; height: var(--header-height);
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); z-index: 1000;
}
.header-container {
    max-width: 1200px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between; padding: 0 25px;
}
.logo-group { display: flex; align-items: center; gap: 12px; z-index: 1100; }
.logo-group img { height: 32px; }
.logo-group span { font-family: var(--font-en); font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-link { font-family: var(--font-en); font-weight: 700; font-size: 0.85rem; color: var(--text-main); }
.nav-link:hover { color: var(--primary-blue); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1100; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: var(--text-main); margin: 5px 0; transition: 0.3s; }

/* Footer */
footer { background: #000; color: #fff; padding: 80px 25px 40px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 60px; }
.footer-info { flex: 1.5; min-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo img { height: 32px; }
.footer-logo span { font-family: var(--font-en); font-weight: 900; font-size: 1.5rem; }
.footer-info p { font-size: 0.9rem; color: #94a3b8; margin-bottom: 25px; line-height: 1.6; }

.footer-nav { flex: 2; display: flex; gap: 40px; flex-wrap: wrap; }
.footer-group h4 { font-family: var(--font-en); font-size: 0.8rem; color: var(--primary-blue); letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-group ul li { margin-bottom: 12px; }
.footer-group a { font-size: 0.85rem; color: #cbd5e1; }
.footer-group a:hover { color: #fff; padding-left: 5px; }

.footer-bottom { 
    max-width: 1200px; margin: 60px auto 0; padding-top: 30px; 
    border-top: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; 
}
.copyright { font-size: 0.75rem; color: #64748b; }

/* Common */
.marker-linear { position: relative; z-index: 1; padding: 0 4px; }
.marker-linear::after {
    content: ''; position: absolute; left: 0; bottom: 5px; width: 0; height: 16px;
    background-color: var(--marker-color); z-index: -1; transition: width 0.8s ease-out 1s; 
}
.aos-animate .marker-linear::after { width: 100%; }

.btn-flex { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: 0.2s; }
.btn-en { font-family: var(--font-en); font-size: 0.7rem; font-weight: 800; opacity: 0.6; letter-spacing: 0.05em; }
.btn-ja { font-size: 0.9rem; font-weight: 900; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--bg-light); flex-direction: column; justify-content: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .nav-menu.active { right: 0; }
}