@charset "UTF-8";

:root {
    /* Palette */
    --bg-main: #050A14;
    --bg-secondary: #0A1124;
    
    --primary: #3B82F6;
    --secondary: #8B5CF6;
    --accent-neon: #FF4D4D;
    --accent-cyan: #06B6D4;
    --accent-gold: #FFD700;
    --success: #10B981;
    
    --text-main: #FFFFFF;
    --text-sub: #94A3B8;
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    
    --gradient-premium: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent-cyan) 100%);
    --gradient-aurora: linear-gradient(90deg, #3B82F6, #8B5CF6, #FF4D4D, #06B6D4);
    
    --header-height: 80px;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 90px; scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section-padding { padding: 140px 0; position: relative; }
@media (max-width: 768px) { .section-padding { padding: 80px 0; } }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gradient {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-5px) scale(1.005);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 35px 60px -15px rgba(59, 130, 246, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 36px; border-radius: 100px;
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: all 0.4s; gap: 12px; position: relative; overflow: hidden; z-index: 1; line-height: 1;
}
.btn-primary {
    background: var(--gradient-premium); color: white; border: none;
    box-shadow: 0 8px 30px -10px rgba(59, 130, 246, 0.5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.7); }
.btn-secondary {
    background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); color: white;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: white; transform: translateY(-3px); }

/* --- Header --- */
header {
    position: fixed; top: 0; width: 100%; height: var(--header-height); z-index: 1000;
    background: rgba(5, 10, 20, 0.6); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; transition: all 0.4s ease;
}
header.scrolled {
    background: rgba(5, 10, 20, 0.95); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-bottom-color: rgba(59, 130, 246, 0.2);
}
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--text-sub); position: relative; letter-spacing: 0.02em; white-space: nowrap; }
.nav-links a:hover { color: white; }
@media (max-width: 1100px) { .nav-links { display: none; } }

/* --- Hero --- */
.hero { padding-top: 200px; padding-bottom: 120px; position: relative; overflow: hidden; }
.hero-tag {
    display: inline-block; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60A5FA; padding: 8px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 700;
    margin-bottom: 32px; backdrop-filter: blur(10px);
}
.hero h1 {
    font-size: 5.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 32px; letter-spacing: -0.04em;
    text-shadow: 0 0 80px rgba(59, 130, 246, 0.5);
}
.hero p { font-size: 1.35rem; color: var(--text-sub); max-width: 680px; margin: 0 auto 48px; line-height: 1.8; }
.hero-buttons { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .hero { padding-top: 150px; padding-bottom: 80px; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; gap: 16px; }
    .btn { width: 100%; }
}

/* --- Titles --- */
h2.section-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 16px; color: white; text-shadow: 0 10px 30px rgba(0,0,0,0.5); line-height: 1.2; }
p.section-subtitle { color: var(--text-sub); font-size: 1.1rem; max-width: 600px; margin: 0 auto 60px; }
@media (max-width: 768px) { h2.section-title { font-size: 2.2rem; } p.section-subtitle { font-size: 0.95rem; margin-bottom: 40px; } }

/* --- Grid Layouts --- */
.challenges-grid, .impact-grid, .ba-grid, .feature-grid, .specs-grid, .voice-grid, .flow-grid, .subsidy-compare-grid {
    display: grid; gap: 30px;
}
.challenges-grid, .voice-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.impact-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 60px; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.specs-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ba-grid { grid-template-columns: 1fr 80px 1fr; align-items: center; }
.flow-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.subsidy-compare-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 40px; }

@media (max-width: 900px) { .specs-grid { grid-template-columns: repeat(2, 1fr); } .ba-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .specs-grid { grid-template-columns: 1fr; } }

/* Common Card Styles */
.challenge-card, .ba-card, .feature-card, .voice-card, .spec-card, .subsidy-card, .flow-card { padding: 40px; }
@media (max-width: 768px) { .challenge-card, .ba-card, .feature-card, .voice-card, .spec-card, .subsidy-card { padding: 24px; } }

/* Specific Element Styles */
.challenge-icon { color: var(--accent-neon); font-size: 2rem; margin-bottom: 24px; display: flex; }
.challenge-card h3 { font-size: 1.5rem; margin-bottom: 16px; color: white; }

.impact-number-wrapper { 
    font-size: 6rem; font-weight: 900; line-height: 1; background: var(--gradient-aurora); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; 
    display: flex; justify-content: center; align-items: baseline; 
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)); 
}
@media (max-width: 768px) { .impact-number-wrapper { font-size: 4rem; } }
.impact-unit { font-size: 3rem; margin-left: 8px; -webkit-text-fill-color: inherit; }
@media (max-width: 768px) { .impact-unit { font-size: 2rem; } }

.ba-before { background: rgba(255, 77, 77, 0.04); border: 1px solid rgba(255, 77, 77, 0.2); }
.ba-after { background: rgba(59, 130, 246, 0.04); border: 1px solid rgba(59, 130, 246, 0.2); }
.ba-title { font-size: 1.1rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 24px; display: block; }
.ba-before .ba-title { color: var(--accent-neon); }
.ba-after .ba-title { color: var(--primary); }
.ba-list li { margin-bottom: 16px; font-size: 1.05rem; color: var(--text-sub); display: flex; align-items: flex-start; gap: 16px; }
.ba-list li i { margin-top: 5px; flex-shrink: 0; }
.ba-arrow { color: var(--primary); font-size: 3rem; display: flex; justify-content: center; }
@media (max-width: 900px) { .ba-arrow { transform: rotate(90deg); margin: 30px 0; } }

.user-profile { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.avatar { width: 64px; height: 64px; font-size: 1.5rem; background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-info h4 { color: white; font-size: 1.2rem; margin-bottom: 4px; }
.stars { color: var(--accent-cyan); filter: drop-shadow(0 0 5px var(--accent-cyan)); margin-bottom: 20px; }
.voice-text { flex-grow: 1; font-size: 1.05rem; line-height: 1.7; color: var(--text-sub); }

.icon-box { width: 80px; height: 80px; background: rgba(255,255,255,0.05); border-radius: 24px; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; font-size: 2rem; transition: 0.4s; border: 1px solid var(--glass-border); }
.feature-card:hover .icon-box { transform: scale(1.1) rotate(5deg); background: var(--primary); border-color: var(--primary); }
.feature-card:hover .icon-box i { color: white !important; }
.icon-blue i { color: var(--primary); } .icon-purple i { color: var(--secondary); } .icon-orange i { color: var(--accent-cyan); }
.feature-card h3 { font-size: 1.75rem; margin-bottom: 16px; }

.spec-icon { width: 60px; height: 60px; background: rgba(59, 130, 246, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin-bottom: 16px; border: 1px solid rgba(59, 130, 246, 0.2); }
.spec-title { font-weight: 700; font-size: 1.1rem; color: white; margin-bottom: 4px; }
.spec-desc { font-size: 0.9rem; color: var(--text-sub); }

.flow-card { position: relative; z-index: 1; text-align: center; }
.flow-step { width: 50px; height: 50px; background: var(--bg-main); border: 2px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--primary); font-weight: 900; font-size: 1.1rem; box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
.flow-title { font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 10px; }
.flow-desc { font-size: 0.9rem; color: var(--text-sub); line-height: 1.6; }
@media (min-width: 1024px) { .flow-grid::before { content: ''; position: absolute; top: 25px; left: 10%; width: 80%; height: 2px; background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent); z-index: 0; } }

/* --- Curriculum Carousel --- */
.carousel-container { width: 100%; max-width: 960px; margin: 60px auto 0; position: relative; padding-bottom: 100px; overflow: hidden; }
.carousel-track { display: flex; width: max-content; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.carousel-slide { width: 960px; flex-shrink: 0; padding: 0 20px; box-sizing: border-box; opacity: 0.3; transform: scale(0.92) translateY(20px); transition: all 0.6s; filter: blur(2px); }
.carousel-slide.active-slide { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); z-index: 5; }
.phase-card { padding: 50px; height: 100%; display: flex; flex-direction: column; }
@media (max-width: 768px) { .phase-card { padding: 30px; } }
.phase-header { margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.phase-title { font-size: 1.8rem; font-weight: 900; color: white; }
@media (max-width: 768px) { .phase-title { font-size: 1.4rem; } }
.phase-badge { background: var(--primary); color: white; padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 4px 15px -5px rgba(59, 130, 246, 0.5); }
.session-item { padding: 16px 24px; border-radius: 16px; border-left: 4px solid transparent; transition: 0.3s; display: flex; align-items: flex-start; gap: 20px; }
@media (max-width: 768px) { .session-item { padding: 12px; gap: 12px; } }
.session-item:hover { background: rgba(255,255,255,0.05); transform: translateX(8px); border-left-color: var(--primary); }
.session-num { background: rgba(59, 130, 246, 0.2); color: var(--primary); width: 32px; height: 32px; font-size: 0.9rem; box-shadow: 0 0 10px rgba(59, 130, 246, 0.3) inset; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.session-content h4 { font-size: 1.1rem; margin-bottom: 6px; color: white; line-height: 1.4; }
.session-content p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.6; }
.carousel-btn { width: 60px; height: 60px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); font-size: 1.2rem; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }
.prev-btn { left: 20px; } .next-btn { right: 20px; }
@media (max-width: 768px) { .carousel-btn { width: 40px; height: 40px; top: auto; bottom: 0; transform: none; } .prev-btn { left: 30%; } .next-btn { right: 30%; } }
.carousel-dots { display: flex; justify-content: center; position: absolute; bottom: 40px; width: 100%; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.3); margin: 0 6px; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary); width: 30px; box-shadow: 0 0 15px var(--primary); border-radius: 20px; }

/* --- LMS Visual --- */
.lms-section { position: relative; padding-bottom: 80px; }
.lms-wrapper { margin-top: 60px; border-radius: 20px; overflow: hidden; box-shadow: 0 50px 100px -20px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); background: #0F172A; transition: 0.3s; }
.lms-dashboard { display: grid; grid-template-columns: 240px 1fr; min-height: 520px; }
@media (max-width: 800px) { .lms-dashboard { grid-template-columns: 1fr; } .lms-sidebar { display: none; } }
.lms-sidebar { background: rgba(255,255,255,0.02); border-right: 1px solid rgba(255,255,255,0.05); padding: 30px 20px; }
.lms-menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text-sub); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: 0.2s; font-size: 0.95rem; letter-spacing: 0.05em; }
.lms-menu-item.active { background: rgba(59, 130, 246, 0.15); color: var(--primary); font-weight: 700; border: 1px solid rgba(59, 130, 246, 0.2); }
.lms-menu-item:hover:not(.active) { color: white; background: rgba(255,255,255,0.05); }
.lms-main { padding: 40px; position: relative; }
@media (max-width: 768px) { .lms-main { padding: 20px; } }
.lms-content-tab { display: none; animation: fadeIn 0.4s ease; }
.lms-content-tab.active { display: block; }
.lms-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.lms-title { font-size: 1.5rem; font-weight: 700; color: white; letter-spacing: 0.02em; }
.lms-btn-small { background: var(--primary); color: white; padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lms-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.lms-table th { text-align: left; color: var(--text-sub); font-size: 0.85rem; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); letter-spacing: 0.05em; }
.lms-table td { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.03); color: white; font-size: 0.95rem; vertical-align: middle; letter-spacing: 0.02em; }
.lms-user { display: flex; align-items: center; gap: 12px; }
.lms-user-avatar { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.progress-wrapper { width: 100%; max-width: 150px; display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
.progress-track { flex-grow: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--success); border-radius: 3px; }
.progress-text { font-size: 0.85rem; color: var(--text-sub); width: 35px; text-align: right; font-variant-numeric: tabular-nums; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.badge-done { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-progress { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.2); }
.cert-icon { color: #F59E0B; }
.chart-mock { display: flex; align-items: flex-end; gap: 20px; height: 200px; padding-top: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.chart-bar { flex: 1; background: rgba(59, 130, 246, 0.2); border-radius: 4px 4px 0 0; position: relative; transition: 0.3s; }
.chart-bar:hover { background: var(--primary); }
.chart-bar::before { content: attr(data-val); position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: var(--text-sub); }
.task-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(255,255,255,0.03); margin-bottom: 10px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: 0.2s; }
.task-item:hover { border-color: var(--primary); background: rgba(255,255,255,0.05); }
.task-check { width: 20px; height: 20px; border: 2px solid var(--text-sub); border-radius: 4px; flex-shrink: 0; }
.task-item.done .task-check { background: var(--success); border-color: var(--success); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; color: var(--text-sub); font-size: 0.9rem; margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: white; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--primary); }

/* --- Grant Section & Simulator --- */
.price-box { padding: 80px 60px; margin-bottom: 40px;}
@media (max-width: 768px) { .price-box { padding: 40px 24px; } }
.pricing-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 40px; }
.cost-row { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.cost-label { color: white; font-size: 1.2rem; font-weight: 700; width: 120px; text-align: right; }
@media (max-width: 768px) { .cost-label { width: auto; text-align: left; } }
.strike-price { font-size: 1.4rem; color: var(--text-sub); text-decoration: line-through; }
.campaign-badge { background: var(--accent-neon); font-size: 0.9rem; padding: 6px 16px; color: white; box-shadow: 0 4px 20px rgba(255, 77, 77, 0.4); border-radius: 20px; font-weight: 700; }
.special-price-zero { font-size: 2.2rem; font-weight: 900; color: var(--accent-neon); text-shadow: 0 0 15px rgba(255, 77, 77, 0.4); }
.monthly-price { font-size: 2.5rem; font-weight: 900; color: white; line-height: 1; }
.subsidy-compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.subsidy-card { padding: 40px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.subsidy-card.highlight { background: rgba(255, 77, 77, 0.05); border-color: rgba(255, 77, 77, 0.3); }
.subsidy-card.highlight:hover { box-shadow: 0 20px 50px -10px rgba(255, 77, 77, 0.2); }
.subsidy-card h4 { color: white; font-size: 1.4rem; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.math-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 1.1rem; color: var(--text-sub); }
.math-row span:last-child { font-weight: 700; color: white; font-feature-settings: "tnum"; }
.math-row.minus { color: var(--accent-neon); }
.math-row.minus span:last-child { color: var(--accent-neon); }
.math-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 15px 0 20px; }
.final-row { display: flex; justify-content: space-between; align-items: flex-end; }
.final-row span:first-child { font-size: 1rem; color: white; font-weight: 700; padding-bottom: 8px; }
.final-row span:last-child { font-size: 2.5rem; color: white; font-weight: 900; line-height: 1; }
@media (max-width: 768px) { .final-row span:last-child { font-size: 2rem; } }
.final-row span:last-child::after { content: '円'; font-size: 1.2rem; font-weight: 500; margin-left: 4px; color: var(--text-sub); }
.checklist { margin-top: 50px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; background: rgba(255,255,255,0.02); padding: 40px; border-radius: 20px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--text-sub); }
.checklist li i { margin-top: 5px; flex-shrink: 0; color: var(--primary); }
.sim-container { margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.sim-h2 { font-size: 1.8rem; margin-bottom: 30px; display: flex; align-items: center; gap: 15px; color: #fff; }
.sim-badge { background: rgba(59, 130, 246, 0.2); padding: 4px 10px; border-radius: 4px; font-size: 0.75em; color: var(--primary); border: 1px solid rgba(59, 130, 246, 0.3); margin-left: auto; }
.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; margin-bottom: 20px; }
.input-wrapper { position: relative; }
input[type="number"], select { width: 100%; padding: 14px 15px 14px 45px; font-family: 'Roboto Mono', 'Noto Sans JP', monospace; font-size: 16px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; box-sizing: border-box; outline: none; transition: all 0.3s; font-weight: bold; color: #fff; }
input[type="number"]:focus, select:focus { border-color: var(--primary); background: rgba(59, 130, 246, 0.05); }
input[readonly] { color: var(--text-sub); background: rgba(255,255,255,0.05); }
.sim-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--primary); opacity: 0.7; }
.sim-unit { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-sub); font-family: 'Roboto Mono', monospace; font-size: 12px; }
select { appearance: none; cursor: pointer; color: #fff; }
select option { background-color: #0a0a12; color: #fff; }
.sub-section { background-color: rgba(255,255,255,0.02); border-radius: 8px; padding: 20px; margin-top: 20px; border: 1px dashed rgba(255,255,255,0.1); }
.sim-explainer { font-size: 0.85rem; color: var(--text-sub); margin-top: 5px; margin-bottom: 10px; line-height: 1.5; }
.result-area { background: rgba(10, 10, 25, 0.9); backdrop-filter: blur(20px); border-radius: 20px; padding: 35px; border: 1px solid rgba(59, 130, 246, 0.3); transition: all 0.5s ease; position: relative; overflow: hidden; margin-top: 40px; }
.result-area.is-profit { border-color: var(--accent-gold); box-shadow: 0 0 30px rgba(255, 215, 0, 0.1); }
.result-grid { display: flex; flex-wrap: wrap; gap: 30px; position: relative; z-index: 2; }
.result-main { flex: 2; min-width: 300px; border-right: 1px solid rgba(255,255,255,0.1); padding-right: 30px; }
@media (max-width: 800px) { .result-main { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; } }
.res-label { font-size: 14px; color: var(--text-sub); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 1px; }
.res-value-big { font-family: 'Roboto Mono', monospace; font-size: 48px; font-weight: 900; line-height: 1; margin: 15px 0 20px 0; text-shadow: 0 0 20px currentColor; }
@media (max-width: 768px) { .res-value-big { font-size: 32px; } }
.val-plus { color: var(--accent-gold); }
.val-minus { color: var(--accent-neon); }
.res-sub { font-size: 14px; color: var(--text-sub); margin-top: 10px; display: flex; gap: 20px; font-family: 'Roboto Mono', monospace; flex-wrap: wrap; }
.res-sub span strong { color: #fff; }
.cost-bar-container { margin-top: 20px; background: rgba(0,0,0,0.5); height: 12px; border-radius: 6px; overflow: hidden; display: flex; position: relative; border: 1px solid rgba(255,255,255,0.05); }
.bar-segment { height: 100%; transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); position: relative; }
.bar-cost { background: linear-gradient(90deg, #ff3860, #ff6b6b); }
.bar-subsidy { background: linear-gradient(90deg, #00f7ff, #009e83); }
.bar-profit { background: linear-gradient(90deg, #ffd700, #ffaa00); }
.result-sub { flex: 1; min-width: 220px; display: flex; flex-direction: column; justify-content: center; }
.tax-benefit-box { background: rgba(59, 130, 246, 0.05); padding: 20px; border-radius: 16px; border: 1px solid rgba(59, 130, 246, 0.2); text-align: center; }
.tax-val { font-family: 'Roboto Mono', monospace; font-size: 32px; font-weight: 900; color: var(--primary); text-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
.profit-badge { background: var(--accent-gold); color: #000; font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: bold; display: none; font-family: 'Roboto Mono', monospace; margin-left: auto; }
.total-cost-display { text-align: right; font-weight: bold; color: var(--text-sub); font-family: 'Roboto Mono', monospace; margin-top: 10px; font-size: 0.9rem; }

/* --- CTA --- */
.cta-section { background: relative; overflow: hidden; border-top: 1px solid var(--glass-border); text-align: center; }
.cta-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, transparent 70%); opacity: 0.5; filter: blur(50px); pointer-events: none; }
.cta-section h2 { font-size: 3rem; color: white; margin-bottom: 24px; }
@media (max-width: 768px) { .cta-section h2 { font-size: 2rem; } }

/* --- Footer --- */
footer { background: var(--bg-secondary); border-top: 1px solid var(--glass-border); padding: 40px 0; text-align: center; color: var(--text-sub); }

/* --- Scroll Reveal --- */
.js-scroll-trigger { opacity: 0; transform: translateY(40px) scale(0.98); transition: all 1s cubic-bezier(0.22, 1, 0.36, 1); }
.js-scroll-trigger.reveal-active { opacity: 1; transform: translateY(0) scale(1); }
.bg-aurora { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3; animation: auroraMove 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1); }
.blob-1 { top: -20%; left: -10%; width: 800px; height: 800px; background: var(--primary); }
.blob-2 { bottom: -20%; right: -10%; width: 700px; height: 700px; background: var(--secondary); animation-delay: -10s; }
.blob-3 { top: 40%; left: 30%; width: 600px; height: 600px; background: var(--accent-cyan); animation-delay: -5s; opacity: 0.2; }
@keyframes auroraMove { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10%, 10%) scale(1.1) rotate(5deg); } }
#hero-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.4; }

/* =========================================
   Mobile Optimization Patch (スマホ最適化用)
   style.cssの末尾に追加してください
   ========================================= */

@media (max-width: 768px) {
    /* --- 1. 全体の余白調整 --- */
    .container {
        padding: 0 16px; /* 左右の余白を少し詰めてコンテンツ領域を確保 */
        overflow: hidden; /* 横スクロール防止の保険 */
    }
    
    .section-padding {
        padding: 60px 0; /* セクション間の余白を詰める */
    }

    /* --- 2. ヒーローセクション（ファーストビュー） --- */
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .hero h1 {
        font-size: 2.2rem; /* 文字サイズをスマホ向けに調整 */
        line-height: 1.3;
    }
    .hero-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 24px;
        white-space: nowrap; /* 改行させない */
    }
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 32px;
        text-align: left; /* スマホは左揃えの方が読みやすい場合が多い */
    }

    /* --- 3. グリッド（カード並び）の修正 --- */
    /* 300px固定だと狭いスマホではみ出るため、画面幅に合わせる */
    .challenges-grid, 
    .voice-grid, 
    .feature-grid, 
    .subsidy-compare-grid,
    .flow-grid {
        grid-template-columns: 1fr; /* 1カラム強制 */
        gap: 20px;
    }
    
    /* カード内の余白を縮小 */
    .glass-card, 
    .challenge-card, 
    .ba-card, 
    .feature-card, 
    .voice-card, 
    .spec-card, 
    .subsidy-card {
        padding: 24px 20px;
    }

    /* --- 4. Before/After セクション --- */
    .ba-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .ba-arrow {
        transform: rotate(90deg); /* 矢印を下向きに */
        margin: 10px 0;
        height: 40px;
    }

    /* --- 5. カルーセル（カリキュラム）の修正 --- */
    /* JS計算までのチラつき防止とコンテナ幅強制 */
    .carousel-container {
        width: 100%;
        padding-bottom: 60px; /* ドット用の余白 */
    }
    .carousel-slide {
        width: 100vw; /* JSが上書きするが、初期値を画面幅に */
        padding: 0 10px;
    }
    .phase-card {
        padding: 24px 16px; /* 内部の余白を詰める */
    }
    /* 左右のボタンをスマホでは少し小さくして被らないように */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(0,0,0,0.5); /* 視認性アップ */
    }

    /* --- 6. シミュレーター結果画面のスタック化 --- */
    .result-grid {
        flex-direction: column; /* 縦積みに */
        gap: 0;
    }
    .result-main {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-right: 0;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .res-value-big {
        font-size: 2.5rem; /* 巨大文字を画面に収める */
    }
    .input-grid {
        grid-template-columns: 1fr; /* 入力欄も縦積みに */
    }
    .cost-row {
        justify-content: space-between; /* 価格表示を整列 */
    }
    .cost-label {
        text-align: left;
        width: auto;
    }

    /* --- 7. LMSテーブルのスクロール明示 --- */
    .table-responsive {
        /* 横スクロール発生を許容し、スクロールバーを少し見えやすく */
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
}

/* iPhone SE (320-375px) などの極小画面向け微調整 */
@media (max-width: 380px) {
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem !important; }
    .res-value-big { font-size: 2rem; }
    .final-row span:last-child { font-size: 1.8rem; }
}

/* =========================================
   Mobile Optimization Patch v2 (Refined)
   ここから下をstyle.cssの末尾に追加
   ========================================= */

/* --- 1. テキスト改行・表示制御クラス --- */
/* PCでのみ改行し、スマホでは無効化 */
@media (max-width: 768px) {
    .br-pc { display: none; }
    .br-sp { display: block; }
}
@media (min-width: 769px) {
    .br-sp { display: none; }
}

/* 文節の塊（変な位置で改行させない） */
.txt-block {
    display: inline-block;
    white-space: nowrap;
}

/* --- 2. スマホ最適化スタイル --- */
@media (max-width: 768px) {
    
    /* フォント設定：日本語の自動改行を自然にする */
    body {
        word-wrap: break-word;
        overflow-wrap: break-word; /* 長い英単語も折り返す */
        word-break: normal;        /* 日本語禁則処理を有効化 */
        line-height: 1.8;          /* スマホは行間広めが読みやすい */
    }

    /* ヒーローセクション（FV）の調整 */
    .hero h1 {
        /* 画面幅に合わせてサイズ自動調整 (最小24px, 最大40px) */
        font-size: clamp(1.6rem, 6vw, 2.5rem); 
        line-height: 1.4;
        display: flex;
        flex-direction: column; /* スマホでは必ず行を分ける */
        gap: 8px; /* 行間 */
        margin-bottom: 24px;
    }
    
    .hero h1 .txt-block {
        display: block; /* 1行ずつ積み上げ */
        white-space: normal; /* 念のため解除 */
    }

    .hero p {
        font-size: 0.95rem;
        text-align: left; /* 左揃えの方が可読性が高い */
        padding: 0 10px;  /* 画面端ギリギリを防ぐ */
    }

    /* CTAボタンエリア（FV内） */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 18px;
    }

    /* --- 3. フッターCTA (#contact) 最適化 --- */
    .cta-buttons-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 400px; /* タブレット等で広がりすぎ防止 */
        margin: 0 auto;
    }

    /* ボタン全幅化 */
    .btn-block {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* メインボタン強調 */
    .btn-lg {
        padding: 20px;
        font-size: 1.1rem;
        border-radius: 12px; /* 少し角丸を緩めて押しやすく */
    }
    
    /* ボタン上のマイクロコピー */
    .cta-primary-wrapper {
        position: relative;
        margin-bottom: 10px;
        width: 100%;
    }
    .cta-micro-copy {
        font-size: 0.8rem;
        color: var(--accent-gold); /* 目立つ色 */
        font-weight: bold;
        margin-bottom: 8px;
        display: block;
        animation: bounce 2s infinite;
    }

    /* 光るエフェクト（CTAボタン） */
    .glow-effect {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
        border: 1px solid rgba(255,255,255,0.3);
        background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    }

    /* Secondaryボタンは少し控えめに */
    .btn-secondary {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.3);
        color: rgba(255,255,255,0.8);
        font-size: 0.95rem;
        padding: 16px;
    }
    
    /* 課題などのカード内のテキスト位置 */
    .challenge-card p, 
    .voice-text {
        text-align: left; /* 中央揃えをやめて左揃えに */
    }
}

/* マイクロコピーのアニメーション */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}