:root {
    --bg: #fafafa;
    --fg: #111111;
    --fg-secondary: #555555;
    --fg-tertiary: #999999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --accent: #111111;
    --white: #ffffff;
}

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

/* ==================== Screen Reader Only ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:focus-visible {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 12px 24px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--fg);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== Nav ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 48px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
    background: rgba(250,250,250,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 18px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: opacity 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover { opacity: 0.5; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.lang-chip {
    border: none;
    background: transparent;
    color: var(--fg-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    line-height: 1;
}

.lang-chip.active {
    background: var(--fg);
    color: var(--white);
}

/* ==================== Hero ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 48px 80px;
    position: relative;
}

.hero-tagline {
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--fg-tertiary);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(36px, 7vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--fg);
    margin-bottom: 32px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 300;
    color: var(--fg-tertiary);
    letter-spacing: 0.08em;
    margin-bottom: 40px;
}

.hero-desc {
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 300;
    color: var(--fg-secondary);
    max-width: 580px;
    line-height: 1.8;
    margin-bottom: 48px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--fg-tertiary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--fg-tertiary), transparent);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ==================== Section Common ==================== */
.section {
    padding: 120px 48px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-text {
    font-size: clamp(15px, 1.6vw, 17px);
    font-weight: 300;
    color: var(--fg-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 64px;
}

/* ==================== Vision ==================== */
.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.vision-lead {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.vision-body {
    font-size: 16px;
    font-weight: 300;
    color: var(--fg-secondary);
    line-height: 1.9;
}

/* ==================== Products ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.product-card {
    padding: 48px 40px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.product-card:nth-child(2n) {
    border-right: none;
}

.product-card:nth-child(n+3) {
    border-top: 1px solid var(--border);
}

.product-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--fg-secondary);
    margin-bottom: 24px;
    width: fit-content;
}

.product-badge.oss {
    border-color: var(--fg);
    color: var(--fg);
}

.product-badge.coming {
    border-color: var(--fg-tertiary);
    color: var(--fg-tertiary);
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.product-tagline {
    font-size: 13px;
    font-weight: 400;
    color: var(--fg-tertiary);
    margin-bottom: 20px;
}

.product-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--fg-secondary);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 24px;
}

.product-link {
    display: block;
    width: fit-content;
    margin-top: 20px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fg);
    background: transparent;
    border: 1px solid var(--fg);
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s, background 0.2s;
}

.product-link:hover { color: var(--white); background: var(--fg); }

.product-link svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 4px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.product-link.disabled {
    color: var(--fg-tertiary);
    border-color: var(--border);
    cursor: default;
}

.product-link.disabled:hover { color: var(--fg-tertiary); background: transparent; }

/* ==================== Services Detail ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
}

.service-card {
    padding: 48px 40px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service-card:nth-child(2n) {
    border-right: none;
}

.service-number {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-tertiary);
    margin-bottom: 16px;
}

.service-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.service-tagline {
    font-size: 13px;
    font-weight: 400;
    color: var(--fg-tertiary);
    margin-bottom: 20px;
}

.service-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--fg-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-items {
    list-style: none;
    padding: 0;
}

.service-items li {
    font-size: 13px;
    font-weight: 400;
    color: var(--fg-secondary);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.service-items li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--fg-tertiary);
}

.service-meta {
    margin-top: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-tertiary);
    letter-spacing: 0.04em;
}

.service-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--fg);
    background: transparent;
    border: 1px solid var(--fg);
    border-radius: 4px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.service-cta:hover { color: var(--white); background: var(--fg); }

@media (max-width: 960px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: none;
        padding: 40px 0;
    }
}

/* ==================== Blog ==================== */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}

.blog-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 24px;
    align-items: baseline;
}

.blog-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-tertiary);
    white-space: nowrap;
    letter-spacing: 0.02em;
    min-width: 100px;
}

.blog-body {
    flex: 1;
}

.blog-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.blog-title a {
    color: var(--fg);
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-title a:hover { opacity: 0.5; }

.blog-excerpt {
    font-size: 14px;
    font-weight: 300;
    color: var(--fg-secondary);
    line-height: 1.7;
}

.blog-source {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-tertiary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .blog-item {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==================== Approach ==================== */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
}

.approach-item {
    padding: 48px 40px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.approach-item:nth-child(3n) {
    border-right: none;
}

.approach-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--border);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    line-height: 1;
}

.approach-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.approach-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--fg-secondary);
    line-height: 1.7;
}

/* ==================== Company ==================== */
.company-table {
    width: 100%;
    max-width: 640px;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 1px solid var(--border-light);
}

.company-table th {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-tertiary);
    text-align: left;
    padding: 16px 24px 16px 0;
    white-space: nowrap;
    vertical-align: top;
    width: 160px;
}

.company-table td {
    font-size: 15px;
    font-weight: 400;
    padding: 16px 0;
    line-height: 1.6;
}

/* ==================== News ==================== */
.news-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.news-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-tertiary);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.news-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.news-text a {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s;
}

.news-text a:hover {
    border-color: var(--fg);
}

/* ==================== Contact ==================== */
.contact-section {
    background: var(--fg);
    color: var(--white);
}

.contact-section .section-label {
    color: rgba(255,255,255,0.4);
}

.contact-section .section-heading {
    color: var(--white);
}

.contact-section .section-text {
    color: rgba(255,255,255,0.6);
}

.contact-email {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
    transition: border-color 0.2s;
}

.contact-email:hover {
    border-color: var(--white);
}

/* ==================== Footer ==================== */
.footer {
    padding: 48px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 16px;
    width: auto;
    opacity: 0.5;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 12px;
    font-weight: 400;
    color: var(--fg-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--fg); }

.footer-copy {
    font-size: 11px;
    color: var(--fg-tertiary);
}

/* ==================== Responsive ==================== */
@media (max-width: 960px) {
    .vision-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 40px 0;
    }

    .product-card:last-child {
        border-bottom: none;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-item {
        border-right: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

/* ==================== Mobile Menu ==================== */
.nav-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(250,250,250,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding-top: 60px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 18px;
    font-weight: 500;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 0;
    transition: opacity 0.2s;
}

.mobile-menu a:hover {
    opacity: 0.5;
}

.mobile-menu .mobile-lang-switch {
    margin-top: 24px;
}

@media (max-width: 600px) {
    .nav { padding: 0 20px; height: 60px; }
    .nav-right { display: none; }
    .nav-hamburger { display: flex; }
    .section { padding: 64px 20px; }
    .hero { padding: 80px 20px 64px; }
    .hero-title { font-size: 32px; }
    .footer { padding: 32px 20px; }

    .company-table th {
        width: 100px;
        padding-right: 12px;
    }

    .news-item {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==================== Scroll Animations ==================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal, .product-card, .approach-item, .service-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-scroll { animation: none; }
}

/* ==================== Focus Indicators ==================== */
.nav-link:focus-visible,
.nav-logo:focus-visible,
.product-link:focus-visible,
.contact-email:focus-visible,
.service-cta:focus-visible,
.footer-link:focus-visible,
.lang-chip:focus-visible,
.nav-hamburger:focus-visible,
.cookie-accept:focus-visible,
.blog-title a:focus-visible,
.blog-excerpt a:focus-visible,
.news-text a:focus-visible,
.product-card:focus-visible,
.company-table a:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}

/* ==================== Cookie Consent ==================== */
.patent-note {
    margin-top: 32px;
    font-size: 11px;
    color: var(--fg-tertiary);
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.footer-trademark {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    color: var(--fg-tertiary);
    letter-spacing: 0.02em;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--fg);
    color: var(--white);
    padding: 20px 48px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-banner.visible {
    display: flex;
}

.cookie-banner-text {
    max-width: 700px;
    color: rgba(255,255,255,0.75);
}

.cookie-banner-text a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-accept {
    background: var(--white);
    color: var(--fg);
    border: none;
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: opacity 0.2s;
}

.cookie-accept:hover { opacity: 0.8; }

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
        text-align: center;
    }
}
