/* ==========================================================================
   AI伴走 (aibanso) Landing Page Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Variables & Reset
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --primary: #0F172A; /* Deep Navy */
    --primary-light: #1E293B;
    --accent: #0D9488; /* Emerald Teal */
    --accent-hover: #0F766E;
    --accent-glow: rgba(13, 148, 136, 0.15);
    
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-main: #334155;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    /* Font Families */
    --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

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

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   1. Global Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--accent-glow);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-white);
    box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(13, 148, 136, 0.5);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent-glow);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   2. Header & Navigation
   -------------------------------------------------------------------------- */
.main-header {
    height: var(--header-height);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--accent);
    background-color: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 4px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.main-nav a:hover:not(.btn) {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   3. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
}

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

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: rgba(13, 148, 136, 0.08);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.08);
    bottom: -50px;
    left: -50px;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 620px;
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: #EFF6FF;
    color: #2563EB;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid #DBEAFE;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual & Cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.main-card {
    width: 100%;
    max-width: 420px;
    z-index: 2;
}

.main-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header-visual {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-visual .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.card-title-visual {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 8px;
}

.card-body-visual {
    padding: 24px 20px;
}

.roadmap-step {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.roadmap-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    width: 2px;
    height: 20px;
    background-color: var(--border-color);
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    z-index: 1;
}

.step-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Roadmap States */
.roadmap-step.done .step-num {
    background-color: var(--accent-glow);
    color: var(--accent);
    border-color: var(--accent);
}

.roadmap-step.done .step-text {
    color: var(--text-dark);
}

.roadmap-step.done .step-icon {
    margin-left: auto;
    color: var(--accent);
}

.roadmap-step.active .step-num {
    background-color: #2563EB;
    color: var(--bg-white);
    border-color: #2563EB;
}

.roadmap-step.active .step-text {
    color: var(--text-dark);
    font-weight: 700;
}

.step-status {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #EFF6FF;
    color: #2563EB;
    padding: 2px 8px;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

/* Badge Cards on Side */
.badge-card {
    position: absolute;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 220px;
    z-index: 3;
}

.shadow-1 {
    top: 40px;
    left: -80px;
}

.shadow-2 {
    bottom: 40px;
    right: -80px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(245, 158, 11, 0.1);
    color: #D97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-icon.green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-text h4 {
    font-size: 1rem;
    font-weight: 700;
}

.badge-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. Pain Section
   -------------------------------------------------------------------------- */
.pain-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.pain-card {
    padding: 40px 30px;
    background-color: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.3);
}

.pain-icon {
    font-size: 2.25rem;
    color: #EF4444;
    margin-bottom: 24px;
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.pain-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   5. About Section (Core Values)
   -------------------------------------------------------------------------- */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.value-strip {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.value-strip.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.value-strip.reverse .value-content {
    grid-column: 2;
}

.value-strip.reverse .value-image {
    grid-column: 1;
    grid-row: 1;
}

.value-strip:last-child {
    margin-bottom: 0;
}

.value-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    display: block;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.value-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.value-meta {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
}

.value-content p {
    font-size: 1.05rem;
    color: var(--text-main);
}

/* Illustration Box styling */
.value-image {
    display: flex;
    justify-content: center;
}

.glass-illustration-box {
    width: 280px;
    height: 200px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    transition: var(--transition-smooth);
}

.glass-illustration-box:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.illustration-icon {
    font-size: 3.5rem;
    color: var(--accent);
}

.illustration-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   6. Solutions Section (New)
   -------------------------------------------------------------------------- */
.solutions-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.solution-card {
    padding: 30px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.3);
}

.sol-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.solution-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. Cases Section
   -------------------------------------------------------------------------- */
.cases-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.case-card {
    padding: 40px;
    border-radius: 24px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(13, 148, 136, 0.4);
}

.case-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-header h3 {
    font-size: 1.5rem;
    margin-top: 8px;
    margin-bottom: 24px;
}

.case-problem {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.case-solution {
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.case-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    flex-wrap: wrap;
    background-color: var(--bg-light);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.case-flow i {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   8. Assessment Section (Interactive)
   -------------------------------------------------------------------------- */
.assessment-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #EFF6FF 0%, #EEF2F6 100%);
}

.assessment-box {
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.quiz-container {
    margin-top: 40px;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 9999px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.quiz-question {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-opt-btn {
    text-align: left;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 500;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-main);
    font-family: var(--font-sans);
}

.quiz-opt-btn:hover {
    background-color: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(4px);
}

/* Result Design */
.quiz-result {
    animation: scaleUp 0.5s ease;
}

.result-score-box {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.result-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.score-display {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin: 12px 0;
}

.result-score-box h3 {
    font-size: 1.5rem;
}

.result-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.result-suggestion {
    padding: 24px;
    background-color: rgba(37, 99, 235, 0.05);
    border-left: 4px solid #2563EB;
    border-radius: 0 12px 12px 0;
    margin-bottom: 40px;
}

.result-suggestion h4 {
    font-size: 1.1rem;
    color: #2563EB;
    margin-bottom: 8px;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   9. Pricing Section
   -------------------------------------------------------------------------- */
.pricing-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    padding: 40px 30px;
    border-radius: 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    background-color: var(--bg-white);
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-xl);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--bg-white);
    padding: 4px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.price-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 24px;
}

.price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.price span {
    font-size: 2.25rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   10. Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-box {
    padding: 60px 40px;
    max-width: 850px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.main-footer {
    padding: 60px 0;
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 850;
    color: var(--bg-white);
    margin-bottom: 16px;
}

.footer-copy {
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   12. Animations
   -------------------------------------------------------------------------- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   13. Responsive Design (Mobile First)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .value-strip, .value-strip.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .value-strip.reverse .value-content {
        grid-column: 1;
    }
    
    .value-image {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-white);
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .main-nav a {
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .badge-card {
        display: none; /* Hide decorative floating elements on mobile */
    }
    
    .assessment-box, .contact-box {
        padding: 40px 20px;
    }
}

/* --------------------------------------------------------------------------
   12. Assessment Result — score meter, 90-day roadmap, recommended plan
   (added 2026-06-29: Step1 診断8問化 + ロードマップ詳細化)
   -------------------------------------------------------------------------- */
.score-meter {
    width: 100%;
    max-width: 320px;
    height: 8px;
    margin: 14px auto 18px;
    background-color: rgba(15, 23, 42, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}
.score-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--accent), #14B8A6);
    transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-roadmap {
    margin-top: 32px;
}
.roadmap-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.roadmap-heading i { color: var(--accent); }

.roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.roadmap-phase {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 18px 18px 20px;
    box-shadow: var(--shadow-sm);
}
.roadmap-phase-head {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}
.roadmap-period {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--accent);
    background-color: var(--accent-glow);
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
}
.roadmap-phase-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}
.roadmap-phase-label i { color: var(--accent); margin-right: 6px; }
.roadmap-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.roadmap-items li {
    position: relative;
    padding-left: 22px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-main);
    margin-bottom: 8px;
}
.roadmap-items li::before {
    content: "\f00c"; /* fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.7rem;
    color: var(--accent);
}

/* Recommended plan callout */
.result-plan { margin-top: 28px; }
.result-plan-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: var(--shadow-lg);
}
.result-plan-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5EEAD4;
    margin-bottom: 6px;
}
.result-plan-inner h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.result-plan-tag {
    font-size: 0.68rem;
    font-weight: 700;
    background-color: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 9999px;
}
.result-plan-inner p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 6px;
    max-width: 560px;
}
.result-plan-quickwin {
    font-size: 0.85rem !important;
    color: #fff !important;
}
.result-plan-quickwin i { color: #5EEAD4; margin-right: 6px; }
.result-plan-quickwin strong { color: #5EEAD4; }
.result-plan-inner .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    flex-shrink: 0;
}
.result-plan-inner .btn-outline:hover {
    background-color: #fff;
    color: var(--primary);
    border-color: #fff;
}

/* Diagnosis-attached note in contact form */
.diag-attached {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-glow);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: var(--accent-hover);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
}
.diag-attached i { color: var(--accent); }

@media (max-width: 768px) {
    .roadmap-timeline { grid-template-columns: 1fr; }
    .result-plan-inner { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   13. Scroll-reveal & case-flow animations
   (added 2026-06-29: Step2 インタラクティブ演出)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Case flow nodes animate in sequence once the card is revealed */
.case-flow span,
.case-flow i {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.case-card.is-visible .case-flow span,
.case-card.is-visible .case-flow i {
    opacity: 1;
    transform: translateY(0);
}
.case-card.is-visible .case-flow > *:nth-child(1) { transition-delay: 0.15s; }
.case-card.is-visible .case-flow > *:nth-child(2) { transition-delay: 0.35s; }
.case-card.is-visible .case-flow > *:nth-child(3) { transition-delay: 0.55s; }
.case-card.is-visible .case-flow > *:nth-child(4) { transition-delay: 0.75s; }
.case-card.is-visible .case-flow > *:nth-child(5) { transition-delay: 0.95s; }
.case-card.is-visible .case-flow i { animation: flowArrow 1.6s ease-in-out 1.1s infinite; }

@keyframes flowArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .case-flow span,
    .case-flow i {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* --------------------------------------------------------------------------
   14. Profile Section (誰がやるのか / 運営者)
   (added 2026-06-29)
   -------------------------------------------------------------------------- */
.profile-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}
.profile-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.profile-photo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
}
.profile-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-photo-fallback { font-size: 64px; color: #5EEAD4; }
.profile-photo-note { font-size: 11px; margin-top: 8px; color: rgba(255, 255, 255, 0.6); }
/* 写真があるときは fallback を隠す（img が前面に出る） */
.profile-photo:not(.no-photo) .profile-photo-fallback,
.profile-photo:not(.no-photo) .profile-photo-note { display: none; }

.profile-name-row { margin-bottom: 16px; }
.profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.profile-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}
.profile-bio {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-main);
    margin-bottom: 20px;
}
.profile-points { list-style: none; padding: 0; margin: 0 0 22px; }
.profile-points li {
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 8px 0 8px 30px;
    position: relative;
    line-height: 1.55;
    border-bottom: 1px dashed var(--border-color);
}
.profile-points li:last-child { border-bottom: 0; }
.profile-points li i {
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--accent);
    font-size: 0.95rem;
}
.profile-message {
    margin: 0 0 22px;
    padding: 16px 20px;
    background: var(--accent-glow);
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 500;
}

@media (max-width: 768px) {
    .profile-section { padding: 64px 0; }
    .profile-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
    .profile-photo { width: 160px; height: 160px; }
    .profile-name-row { text-align: center; }
}

/* --------------------------------------------------------------------------
   15. Works Section (AI構築実績 / 運営者の実プロダクト)
   (added 2026-06-29)
   -------------------------------------------------------------------------- */
.works-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}
.work-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
}
.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.work-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--accent);
    background-color: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
}
.work-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.work-card p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 18px;
}
.work-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.work-card:hover .work-link { color: var(--accent-hover); }
.works-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 28px;
}

@media (max-width: 768px) {
    .works-section { padding: 64px 0; }
}

/* work-meta: 構築期間・進め方 (2026-06-29 追記) */
.work-meta {
    border-top: 1px dashed var(--border-color);
    padding-top: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.work-meta > div {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-main);
}
.work-meta-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent);
    background-color: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 9999px;
    margin-right: 8px;
    vertical-align: middle;
}
