/* ==========================================
   Haptech – Generative Agents 風ミニマルスタイル
   ========================================== */

:root {
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --border-gray-100: #f3f4f6;
    --border-gray-200: #e5e7eb;
    --border-gray-300: #d1d5db;

    --text-primary: #1a1b1f;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-white: #ffffff;

    --black: #000000;
    --black-soft: #1a1b1f;

    --font-serif: 'Marcellus', 'Noto Serif JP', 'Georgia', serif;
    --font-main: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

    --accent: #00D4FF;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --accent-dim: rgba(0, 212, 255, 0.08);
    --accent-dark: #008eb3; /* コントラストを高めた濃いめの青 */

    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-long: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Utilities ── */
.visually-hidden {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-serif);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

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

.container {
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 64px;
    }
}

/* ── Scroll Progress ── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--black);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 2000;
    animation: grow-progress auto linear;
    animation-timeline: scroll();
}

@keyframes grow-progress {
    to {
        transform: scaleX(1);
    }
}

/* ==========================================
   Navbar
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 17px 24px;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-long);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-gray-100);
    padding: 12px 24px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1224px;
    margin: 0 auto;
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition-base);
    overflow: hidden;
}

/* 英語テキスト（デフォルト表示） */
.nav-links a .nav-en {
    font-family: var(--font-serif);
    letter-spacing: 0.02em;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 日本語テキスト（ホバー時に表示） */
.nav-links a .nav-jp {
    font-family: var(--font-main);
    font-size: 12px;
    letter-spacing: -0.02em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover .nav-en {
    opacity: 0;
    transform: translateY(-4px);
}

.nav-links a:hover .nav-jp {
    opacity: 1;
}

.nav-links a:hover {
    background: var(--bg-gray-100);
}

.nav-links a.active {
    background: var(--bg-gray-100);
    font-weight: 500;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    margin-left: auto;
}

.hamburger .bar {
    width: 24px;
    height: 1.5px;
    background-color: var(--black);
    transition: var(--transition-base);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding-top: 120px;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/concept_bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(100%) brightness(1.2);
    animation: bg-pan-zoom 15s infinite ease-in-out;
    transform-origin: center;
}

@keyframes bg-pan-zoom {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.06) translate(-0.5%, -0.3%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
}

.hero-concept {
    font-family: var(--font-serif);
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(44px, 9vw, 80px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 28px;
}

.highlight {
    color: var(--text-primary);
}

/* 下線を完全に除去（ミニマル化） */
.highlight::after {
    display: none;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main);
    border: none;
    cursor: pointer;
    transition: var(--transition-long);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--black);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    filter: contrast(1.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-gray-300);
}

.btn-secondary:hover {
    background: var(--bg-gray-50);
    transform: translateY(-1px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 38px;
    border: 1.5px solid var(--border-gray-300);
    border-radius: 12px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 3px;
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

/* ==========================================
   Sections (Common)
   ========================================== */
.section {
    padding: 120px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    text-align: left;
}

.section-subtitle {
    text-align: left;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 64px;
    max-width: 560px;
}

/* ==========================================
   Vision / About Section
   ========================================== */
.about {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.about-text-content h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.about-text-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.vision-card {
    background: var(--bg-gray-50);
    padding: 40px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-gray-100);
}

.leader-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.leader-name span {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.leader-history {
    list-style: none;
    border-top: 1px solid var(--border-gray-200);
    padding-top: 24px;
}

.leader-history li {
    font-size: 13px;
    margin-bottom: 12px;
    padding-left: 16px;
    position: relative;
    color: var(--text-secondary);
    font-family: var(--font-main);
    line-height: 1.6;
}

.leader-history li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 1px;
    background: var(--text-muted);
}

/* ==========================================
   Achievements Section
   ========================================== */
.achievements {
    background: var(--bg-white);
    border-top: 1px solid var(--border-gray-100);
    border-bottom: 1px solid var(--border-gray-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    text-align: center;
}

.stat-item {
    padding: 32px 16px;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    display: block;
    line-height: 1;
}

.stat-unit {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

.stat-label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 24px;
    height: 1px;
    background: var(--border-gray-300);
    margin: 16px auto 0;
}

/* ==========================================
   Partner Logo Bar
   ========================================== */
.partner-logos {
    padding: 48px 0;
    background: var(--bg-gray-50);
}

.partner-logos .section-subtitle {
    text-align: center;
    margin-bottom: 32px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--text-muted);
    max-width: 100%;
}

.logo-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.logo-track img {
    height: 40px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition-base);
}

.logo-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ==========================================
   Business Cards
   ========================================== */
.services {
    background: var(--bg-gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.card {
    position: relative;
    background: var(--bg-white);
    padding: 48px 36px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-gray-100);
    overflow: hidden;
    transition: var(--transition-long);
}

/* グラデーションオーバーレイ (Generative Agents 風) */
.card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(217, 217, 217, 0.1), rgba(115, 115, 115, 0.1));
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 0;
}

.card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(217, 217, 217, 0.1), rgba(115, 115, 115, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.card:hover::before {
    opacity: 0;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    border-color: var(--border-gray-200);
}

.tilt-card-content {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    color: var(--text-primary);
    background: var(--bg-gray-50);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gray-100);
}

.card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   Company Table
   ========================================== */
.company-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--border-gray-100);
}

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

.company-table th {
    background: var(--bg-gray-50);
    padding: 24px 32px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-gray-100);
    width: 160px;
}

.company-table td {
    padding: 24px 32px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-gray-100);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   Security Section in Company Table
   ========================================== */
.security-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-policy-link {
    color: var(--text-primary) !important;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity var(--transition-base);
}

.security-policy-link:hover {
    opacity: 0.7;
}

.security-action-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-gray-50);
    padding: 16px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-gray-100);
}

.security-action-img {
    flex-shrink: 0;
    width: 60px;
    height: auto;
}

.security-action-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.security-action-headline {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    margin: 0;
}

.security-action-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 640px) {
    .security-action-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-container {
    background: var(--bg-gray-50);
    color: var(--text-primary);
    padding: 80px 48px;
    border-radius: var(--radius-3xl);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-gray-100);
    font-family: 'Noto Serif JP', var(--font-serif);
}

/* テクスチャオーバーレイ */
.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.contact-title {
    font-family: 'Noto Serif JP', var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.contact-desc {
    margin-bottom: 48px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-gray-200);
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: 'Noto Serif JP', var(--font-serif);
    font-size: 14px;
    transition: var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--bg-white);
    border-color: var(--black);
}

/* フォーム: user-valid / user-invalid フィードバック */
.form-group input:user-valid,
.form-group textarea:user-valid {
    border-color: #188038;
}

.form-group input:user-invalid,
.form-group textarea:user-invalid {
    border-color: #d93025;
    background-color: rgba(252, 232, 230, 0.3);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 12px;
    justify-content: center;
    padding: 16px 32px;
    font-size: 15px;
    background: var(--black);
    color: var(--text-white);
    font-family: 'Noto Serif JP', var(--font-serif);
}

.contact-form .btn-primary:hover {
    background: var(--black-soft);
    filter: none;
}

/* Form Status */
.form-status {
    padding: 0;
    margin-bottom: 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    text-align: center;
    transition: var(--transition-base);
}

.form-status.success {
    padding: 14px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
    padding: 14px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-info-footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border-gray-200);
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.contact-info-footer p {
    margin: 0;
    font-family: var(--font-mono);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 60px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-gray-100);
}

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

.footer-logo a {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.copyright {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-main);
}

/* ==========================================
   Animations
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* ==========================================
   3D Tilt (subtle)
   ========================================== */
.tilt-card {
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

/* ==========================================
   Graph Container
   ========================================== */
.graph-container {
    margin-top: 32px;
    background: var(--bg-gray-50);
    border: 1px solid var(--border-gray-100);
    border-radius: var(--radius-xl);
    padding: 28px 20px 20px;
    position: relative;
    overflow: hidden;
}

.graph-container::before {
    content: 'LIVE SENSING DATA';
    position: absolute;
    top: 8px;
    left: 14px;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

.graph-bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.graph-canvas-wrapper {
    position: relative;
    z-index: 1;
    height: 160px;
}

/* ==========================================
   Pressure Heatmap Visual
   ========================================== */
.pressure-heatmap {
    margin-top: 32px;
    height: 120px;
    border-radius: var(--radius-xl);
    background: var(--bg-gray-50);
    border: 1px solid var(--border-gray-100);
    position: relative;
    overflow: hidden;
}

.pressure-heatmap::before {
    content: 'PRESSURE DISTRIBUTION';
    position: absolute;
    top: 8px;
    left: 14px;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 2px;
    z-index: 2;
}

.heatmap-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 35% 60% at 30% 50%, rgba(0, 212, 255, 0.35) 0%, transparent 100%),
        radial-gradient(ellipse 25% 45% at 55% 40%, rgba(0, 180, 220, 0.25) 0%, transparent 100%),
        radial-gradient(ellipse 30% 50% at 75% 55%, rgba(0, 212, 255, 0.30) 0%, transparent 100%);
    animation: heatmap-pulse 4s ease-in-out infinite;
}

@keyframes heatmap-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.heatmap-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

/* ==========================================
   Wave Visualizer
   ========================================== */
.wave-visualizer {
    margin-top: 32px;
    height: 120px;
    border-radius: var(--radius-xl);
    background: var(--bg-gray-50);
    border: 1px solid var(--border-gray-100);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 28px 16px 16px;
}

.wave-visualizer::before {
    content: 'HAPTIC-AUDIO SYNC';
    position: absolute;
    top: 8px;
    left: 14px;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 2px;
    z-index: 2;
}

.wave-bar {
    width: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    opacity: 0.4;
    animation: wave-dance 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(odd) {
    opacity: 0.25;
    background: var(--text-muted);
}

@keyframes wave-dance {
    0%, 100% { height: 15%; }
    50% { height: 80%; }
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.05s; }
.wave-bar:nth-child(3) { animation-delay: 0.10s; }
.wave-bar:nth-child(4) { animation-delay: 0.15s; }
.wave-bar:nth-child(5) { animation-delay: 0.20s; }
.wave-bar:nth-child(6) { animation-delay: 0.25s; }
.wave-bar:nth-child(7) { animation-delay: 0.30s; }
.wave-bar:nth-child(8) { animation-delay: 0.35s; }
.wave-bar:nth-child(9) { animation-delay: 0.40s; }
.wave-bar:nth-child(10) { animation-delay: 0.45s; }
.wave-bar:nth-child(11) { animation-delay: 0.50s; }
.wave-bar:nth-child(12) { animation-delay: 0.55s; }
.wave-bar:nth-child(13) { animation-delay: 0.60s; }
.wave-bar:nth-child(14) { animation-delay: 0.65s; }
.wave-bar:nth-child(15) { animation-delay: 0.70s; }
.wave-bar:nth-child(16) { animation-delay: 0.75s; }
.wave-bar:nth-child(17) { animation-delay: 0.80s; }
.wave-bar:nth-child(18) { animation-delay: 0.85s; }
.wave-bar:nth-child(19) { animation-delay: 0.90s; }
.wave-bar:nth-child(20) { animation-delay: 0.95s; }
.wave-bar:nth-child(21) { animation-delay: 1.00s; }
.wave-bar:nth-child(22) { animation-delay: 1.05s; }
.wave-bar:nth-child(23) { animation-delay: 1.10s; }
.wave-bar:nth-child(24) { animation-delay: 1.15s; }

/* ==========================================
   Edge Frame (subtle version)
   ========================================== */
.edge-framed {
    position: relative;
}

.edge-framed::before,
.edge-framed::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--border-gray-300);
    pointer-events: none;
    z-index: 10;
    transition: var(--transition-base);
    opacity: 0.5;
}

.edge-framed::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.edge-framed::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.edge-framed:hover::before,
.edge-framed:hover::after {
    border-color: var(--text-primary);
    opacity: 1;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        border-radius: var(--radius-3xl) 0 0 var(--radius-3xl);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-content {
        margin-left: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* 会社概要テーブルのスマホ対応 */
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 16px 24px;
    }

    .company-table th {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .company-table td {
        padding-top: 0;
    }

    .section {
        padding: 80px 0;
    }

    .contact-container {
        padding: 48px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================
   Mono Text
   ========================================== */
.mono-text,
.company-table td {
    font-family: var(--font-mono), var(--font-main);
}

/* ==========================================
   Reduced Motion
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-image,
    .wave-bar,
    .heatmap-gradient,
    .mouse::after {
        animation: none;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #particle-canvas {
        display: none;
    }
}