/* =============================================
   きづり（軌綴） Landing Page CSS
   Color: Teal + Warm Orange + Navy
   Font: Zen Maru Gothic + Noto Sans JP
   ============================================= */

/* --- Variables --- */
:root {
    --teal: #2a8f8f;
    --teal-light: #35a5a5;
    --teal-dark: #1f7a7a;
    --orange: #e8833a;
    --orange-light: #f09550;
    --navy: #1a2744;
    --navy-light: #243456;
    --bg: #f7f5f0;
    --bg-alt: #efeae0;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #6b7b8d;
    --border: #ddd6c8;
    --shadow: rgba(26, 39, 68, 0.08);
    --shadow-md: rgba(26, 39, 68, 0.14);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-zen: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    --container: 1100px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--teal-light);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.zen {
    font-family: var(--font-zen);
}

.hide-sp {
    display: inline;
}

/* --- Buttons --- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid var(--orange);
    background: var(--orange);
    color: var(--white);
    font-family: var(--font);
    text-decoration: none;
}

.btn-cta:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 131, 58, 0.3);
}

.btn-cta-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-cta-outline:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    box-shadow: 0 8px 24px rgba(26, 39, 68, 0.2);
}

.btn-cta-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-cta-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-cta-teal {
    background: var(--teal);
    border-color: var(--teal);
}

.btn-cta-teal:hover {
    background: var(--teal-light);
    border-color: var(--teal-light);
    box-shadow: 0 8px 24px rgba(42, 143, 143, 0.3);
}

/* --- Header / Navigation --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 245, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(221, 214, 200, 0);
    transition: all var(--transition);
}

#header.scrolled {
    background: rgba(247, 245, 240, 0.96);
    border-bottom-color: rgba(221, 214, 200, 0.6);
    box-shadow: 0 2px 20px var(--shadow);
}

#header nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-zen);
    font-size: 22px;
    font-weight: 900;
    color: var(--navy);
    text-decoration: none;
}

.logo span {
    color: var(--teal);
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--teal);
}

.nav-links .btn-cta {
    font-size: 13px;
    padding: 8px 20px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
    background: linear-gradient(170deg, var(--bg) 0%, #ede8dc 50%, var(--bg-alt) 100%);
}

/* Hero background image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(26, 39, 68, 0.92) 0%,
        rgba(26, 39, 68, 0.78) 35%,
        rgba(26, 39, 68, 0.35) 65%,
        rgba(26, 39, 68, 0.15) 100%
    );
}

/* Hero shapes (no image fallback) */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: shapeAppear 1.2s ease-out forwards;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(42, 143, 143, 0.08) 0%, transparent 70%);
    animation-delay: 0.2s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(232, 131, 58, 0.06) 0%, transparent 70%);
    animation-delay: 0.5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, rgba(26, 39, 68, 0.04) 0%, transparent 70%);
    animation-delay: 0.8s;
}

@keyframes shapeAppear {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Visual mode: text over background image */
.hero--visual .hero-inner {
    display: flex;
    align-items: center;
}

.hero--visual .hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: rgba(42, 143, 143, 0.08);
    border: 1px solid rgba(42, 143, 143, 0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--teal);
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--teal);
    position: relative;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    opacity: 0.6;
}

.hero-sub {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 32px;
}

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

/* Visual mode: white text over dark overlay */
.hero--visual .hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.hero--visual h1 {
    color: var(--white);
    font-size: clamp(32px, 4.5vw, 50px);
}

.hero--visual h1 em {
    color: var(--orange-light);
}

.hero--visual h1 em::after {
    background: var(--orange);
    opacity: 0.8;
}

.hero--visual .hero-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Hero visual (no-image fallback) */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(26, 39, 68, 0.12);
    transition: transform 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
}

.hero-card-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.hero-card-metric .num {
    font-size: 48px;
    font-weight: 900;
    color: var(--teal);
    font-family: var(--font-zen);
}

.hero-card-metric .unit {
    font-size: 20px;
    color: var(--navy);
    font-weight: 600;
}

.hero-card-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
    line-height: 1.7;
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-2px);
}

.hero--visual .hero-stat {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.hero-stat-num {
    font-size: 36px;
    font-weight: 900;
    color: var(--teal);
    line-height: 1;
    font-family: var(--font-zen);
}

.hero-stat-pct {
    font-size: 20px;
    font-weight: 700;
    color: var(--teal);
}

.hero--visual .hero-stat-num,
.hero--visual .hero-stat-pct {
    color: var(--white);
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    white-space: nowrap;
}

.hero--visual .hero-stat-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Outline light button (for dark backgrounds) */
.btn-cta-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-cta-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Hero scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero-scroll-hint span {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
}

.hero--visual .hero-scroll-hint span {
    color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--teal);
    animation: scrollDown 2s infinite;
}

.hero--visual .scroll-line {
    background: rgba(255, 255, 255, 0.5);
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    50.01% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* --- Section shared --- */
.section {
    padding: 72px 0;
}

/* --- Pain Section --- */
.pain {
    background: var(--navy);
    color: var(--white);
    padding: 72px 0;
}

.pain-head {
    text-align: center;
    margin-bottom: 40px;
}

.pain-head h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}

.pain-head p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    margin: 0 auto;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pain-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}

.pain-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 131, 58, 0.4);
}

.pain-card-inner {
    padding: 36px 28px;
}

.pain-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 14px;
    font-family: var(--font-zen);
}

.pain-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
}

/* --- Solution Bridge --- */
.solution-bridge {
    background: linear-gradient(180deg, var(--navy) 0%, var(--teal) 100%);
    padding: 56px 0;
    text-align: center;
    color: var(--white);
}

.solution-bridge-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.solution-arrow {
    margin-bottom: 24px;
    animation: arrowBounce 2s ease-in-out infinite;
}

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

.solution-bridge h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.5;
}

.solution-bridge p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
}

/* --- Features Section --- */
.features {
    background: var(--white);
}

.features-head {
    text-align: center;
    margin-bottom: 48px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.features-head h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 12px;
}

.features-sub {
    font-size: 15px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Row */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row:nth-child(odd) .feature-visual {
    order: -1;
}

.feature-content {
    padding: 8px 0;
}

.feature-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-tag.daily {
    background: rgba(42, 143, 143, 0.1);
    color: var(--teal);
}

.feature-tag.plan {
    background: rgba(232, 131, 58, 0.1);
    color: var(--orange);
}

.feature-tag.team {
    background: rgba(26, 39, 68, 0.08);
    color: var(--navy);
}

.feature-tag.comm {
    background: rgba(42, 143, 143, 0.1);
    color: var(--teal-dark);
}

.feature-content h3 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 16px;
}

.feature-content > p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.feature-bullets {
    list-style: none;
    padding: 0;
}

.feature-bullets li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.7;
}

.feature-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.6;
}

.feature-visual {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-visual-dark {
    background: var(--navy);
    color: var(--white);
}

/* Feature background image */
.feature-visual-bg {
    position: relative;
    overflow: hidden;
}

.feature-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.feature-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-bg-overlay {
    position: absolute;
    inset: 0;
}

.feature-bg-overlay--light {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
}

.feature-bg-overlay--dark {
    background: rgba(26, 39, 68, 0.82);
    backdrop-filter: blur(2px);
}

.feature-visual-bg .mock-cycle,
.feature-visual-bg .mock-cycle-note,
.feature-visual-bg .mock-process {
    position: relative;
    z-index: 1;
}

/* --- Mock Timeline (Feature 1: Daily) --- */
.mock-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mock-step-dot {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

.mock-step-dot.morning { background: var(--teal); }
.mock-step-dot.active { background: var(--orange); }
.mock-step-dot.evening { background: var(--navy); }

.mock-step-content {
    background: var(--bg);
    border-radius: 10px;
    padding: 12px 16px;
    flex: 1;
}

.mock-step-content .label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.mock-step-content .text {
    font-size: 14px;
    color: var(--text);
}

/* --- Mock Cycle (Feature 2: Plan) --- */
.mock-cycle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mock-cycle-item {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg);
    border-radius: 12px;
    flex: 1;
    min-width: 110px;
}

.mock-cycle-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 10px;
}

.cycle-sheet {
    background: var(--teal);
}

.cycle-monitor {
    background: var(--orange);
}

.cycle-plan {
    background: var(--navy);
}

.mock-cycle-item .name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

.mock-cycle-arrow {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 300;
}

.mock-cycle-note {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- Mock Process (Feature 3: Team) --- */
.mock-process {
    text-align: center;
}

.mock-process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.process-node {
    font-family: var(--font-zen);
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.process-node.accent {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.process-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
}

.mock-process-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.9;
}

/* --- Mock Chat (Feature 4: Communication) --- */
.mock-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-bubble {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.mock-bubble.staff {
    background: var(--teal);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mock-bubble.parent {
    background: var(--bg);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.mock-bubble .sender {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 4px;
}

/* --- Feature slot images (fallback if used elsewhere) --- */
.feature-slot-img {
    border-radius: 0;
    overflow: hidden;
}

.feature-slot-img.slot-image {
    border-radius: 0;
    height: 100%;
}

.feature-slot-img.slot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

.feature-slot-img.slot-placeholder {
    min-height: 280px;
    border-radius: 0;
    border: none;
    background: linear-gradient(135deg, rgba(42, 143, 143, 0.06) 0%, var(--bg-alt) 100%);
}

/* --- Admin Features Section --- */
.admin-section {
    background: var(--bg);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-md);
}

.admin-card-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.admin-card-icon svg {
    width: 40px;
    height: 40px;
    color: var(--teal);
}

.admin-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.admin-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Comparison Section --- */
.comparison {
    background: var(--white);
}

.comparison-head {
    text-align: center;
    margin-bottom: 48px;
}

.comparison-head h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 16px;
}

.comparison-head p {
    font-size: 15px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 24px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
    font-weight: 600;
    font-size: 14px;
}

.comparison-table thead th:first-child {
    background: var(--navy);
    color: var(--white);
    width: 15%;
}

.comparison-table thead th:nth-child(2) {
    background: #5a6b7d;
    color: var(--white);
}

.comparison-table thead th:nth-child(3) {
    background: var(--teal);
    color: var(--white);
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--navy);
    background: rgba(26, 39, 68, 0.03);
}

.comparison-table tbody td:nth-child(3) {
    color: var(--teal-dark);
    font-weight: 500;
    background: rgba(42, 143, 143, 0.04);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: rgba(42, 143, 143, 0.02);
}

/* --- Cases Section --- */
.cases {
    background: var(--bg);
}

.cases-head {
    text-align: center;
    margin-bottom: 48px;
}

.cases-head h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--navy);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-md);
}

.case-slot-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-slot-img.slot-image {
    border-radius: 0;
}

.case-slot-img.slot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-slot-img.slot-placeholder {
    min-height: 200px;
    border-radius: 0;
    border: none;
    border-bottom: 2px dashed var(--border);
}

.case-body {
    padding: 24px;
}

.case-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.case-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.5;
}

.case-body blockquote {
    padding: 10px 16px;
    margin: 0 0 12px;
    border-left: 3px solid var(--orange);
    font-size: 14px;
    font-style: italic;
    color: var(--orange);
    background: rgba(232, 131, 58, 0.05);
    border-radius: 0 8px 8px 0;
}

.case-body > p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- FAQ Section --- */
.faq {
    background: var(--white);
}

.faq-head {
    text-align: center;
    margin-bottom: 48px;
}

.faq-head h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--navy);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-q {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    cursor: pointer;
    transition: color var(--transition);
    user-select: none;
}

.faq-q:hover {
    color: var(--teal);
}

.q-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.q-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

.q-toggle {
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 300;
    color: var(--text-light);
    transition: transform var(--transition);
    width: 24px;
    text-align: center;
    line-height: 1;
}

.faq-item.open .q-toggle {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-a p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
    padding-left: 46px;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    padding: 72px 0;
    text-align: center;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-inner > p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    line-height: 1.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-cta {
    background: var(--white);
    color: var(--teal);
    border-color: var(--white);
}

.cta-buttons .btn-cta:hover {
    background: var(--bg);
    color: var(--teal-dark);
    border-color: var(--bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-cta-teal {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-buttons .btn-cta-teal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
}

/* --- Footer --- */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-zen);
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--teal-light);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 12px;
}

footer p a {
    color: rgba(255, 255, 255, 0.7);
}

footer p a:hover {
    color: var(--white);
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Image Slots (shared) --- */
.slot-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
}

.slot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slot-placeholder {
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(42, 143, 143, 0.04) 0%, var(--bg-alt) 100%);
    border: 2px dashed rgba(42, 143, 143, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 32px;
}

.placeholder-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.placeholder-icon {
    font-size: 32px;
    opacity: 0.5;
}

.placeholder-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.placeholder-desc {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.7;
}

/* --- Scroll Animation --- */
.anim {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger children in grids */
.pain-grid .anim:nth-child(2) { transition-delay: 0.1s; }
.pain-grid .anim:nth-child(3) { transition-delay: 0.2s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero--visual .hero-inner {
        justify-content: center;
    }

    .hero--visual .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero--visual .hero-overlay {
        background: rgba(26, 39, 68, 0.7);
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-row:nth-child(odd) .feature-visual {
        order: 0;
    }

    .pain-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 90px 0 60px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
    }

    .hero-stat {
        padding: 16px 20px;
    }

    .hero-scroll-hint {
        display: none;
    }

    .hide-sp {
        display: none;
    }

    .pain {
        padding: 72px 0;
    }

    .solution-bridge {
        padding: 60px 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .feature-row {
        margin-bottom: 56px;
    }
}
