/* ============================================
   NamiFlow Landing Page - Material Design 3
   ============================================ */

/* ── LP Header ─────────────────────────────── */
.lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.lp-header-logo {
    font-size: 16px;
    font-weight: 700;
    color: #1565C0;
    text-decoration: none;
}

.lp-header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-header-try {
    font-size: 14px;
    font-weight: 500;
    color: #535F70;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.lp-header-try:hover {
    background: #f1f5f9;
}

.lp-header-login {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1565C0;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    transition: background 0.2s;
}

.lp-header-login:hover {
    background: #1251a3;
}

/* ヘッダー分のスペース確保 */
body {
    padding-top: 56px;
}

/* ── CTA login card ─────────────────────────── */
.cta-card--login {
    background: white;
    color: #1565C0;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.cta-card--login .cta-card-icon-wrapper svg {
    stroke: #1565C0;
}

.cta-card--login .cta-card-content h3 {
    color: #1565C0;
}

.cta-card--login .cta-card-content p {
    color: #535F70;
}

.cta-card--login .cta-card-arrow svg {
    stroke: #1565C0;
}

.cta-card--login:hover {
    background: #f0f7ff;
}

/* MD3 Design Tokens */
:root {
    /* Primary Colors - Blue-based for trust/security */
    --md-sys-color-primary: #1565C0;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #D1E4FF;
    --md-sys-color-on-primary-container: #001D36;

    /* Secondary Colors */
    --md-sys-color-secondary: #535F70;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #D7E3F7;
    --md-sys-color-on-secondary-container: #101C2B;

    /* Tertiary Colors */
    --md-sys-color-tertiary: #6B5778;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #F2DAFF;
    --md-sys-color-on-tertiary-container: #251431;

    /* Error Colors */
    --md-sys-color-error: #BA1A1A;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #FFDAD6;
    --md-sys-color-on-error-container: #410002;

    /* Surface Colors */
    --md-sys-color-surface: #FDFCFF;
    --md-sys-color-on-surface: #1A1C1E;
    --md-sys-color-surface-variant: #DFE2EB;
    --md-sys-color-on-surface-variant: #43474E;
    --md-sys-color-surface-container: #EEEEF2;
    --md-sys-color-surface-container-high: #E8E8EC;
    --md-sys-color-surface-container-low: #F4F4F8;
    --md-sys-color-outline: #73777F;
    --md-sys-color-outline-variant: #C3C6CF;

    /* Custom Colors for Service Cards */
    --md-custom-color-guard: #0D47A1;
    --md-custom-color-safe: #2E7D32;
    --md-custom-color-safe-lite: #6A1B9A;
    --md-custom-color-guard-sougi: #5D4037;
    --md-custom-color-sos: #C62828;
    --md-custom-color-line: #06C755;

    /* Spacing */
    --md-sys-spacing-xs: 4px;
    --md-sys-spacing-sm: 8px;
    --md-sys-spacing-md: 16px;
    --md-sys-spacing-lg: 24px;
    --md-sys-spacing-xl: 32px;
    --md-sys-spacing-xxl: 48px;
    --md-sys-spacing-xxxl: 64px;

    /* Shape */
    --md-sys-shape-corner-none: 0px;
    --md-sys-shape-corner-extra-small: 4px;
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-extra-large: 28px;
    --md-sys-shape-corner-full: 9999px;

    /* Motion */
    --md-sys-motion-duration-short1: 50ms;
    --md-sys-motion-duration-short2: 100ms;
    --md-sys-motion-duration-short3: 150ms;
    --md-sys-motion-duration-short4: 200ms;
    --md-sys-motion-duration-medium1: 250ms;
    --md-sys-motion-duration-medium2: 300ms;
    --md-sys-motion-easing-standard: cubic-bezier(0.2, 0.0, 0, 1.0);
    --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0.0, 0, 1.0);

    /* Elevation */
    --md-sys-elevation-1: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-2: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-3: 0px 1px 3px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-4: 0px 2px 3px rgba(0, 0, 0, 0.3), 0px 6px 10px 4px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-5: 0px 4px 4px rgba(0, 0, 0, 0.3), 0px 8px 12px 6px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Roboto', sans-serif;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
.md-display-large { font-size: 57px; line-height: 64px; font-weight: 400; letter-spacing: -0.25px; }
.md-display-medium { font-size: 45px; line-height: 52px; font-weight: 400; }
.md-display-small { font-size: 36px; line-height: 44px; font-weight: 400; }

.md-headline-large { font-size: 32px; line-height: 40px; font-weight: 400; }
.md-headline-medium { font-size: 28px; line-height: 36px; font-weight: 400; }
.md-headline-small { font-size: 24px; line-height: 32px; font-weight: 400; }

.md-title-large { font-size: 22px; line-height: 28px; font-weight: 400; }
.md-title-medium { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0.15px; }
.md-title-small { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.1px; }

.md-body-large { font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: 0.5px; }
.md-body-medium { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0.25px; }
.md-body-small { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.4px; }

.md-label-large { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.1px; }
.md-label-medium { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.5px; }
.md-label-small { font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.5px; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--md-sys-spacing-lg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: var(--md-sys-spacing-xxxl) var(--md-sys-spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--md-sys-spacing-sm);
    background-color: rgba(255, 255, 255, 0.15);
    padding: var(--md-sys-spacing-sm) var(--md-sys-spacing-md);
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--md-sys-spacing-lg);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: var(--md-sys-spacing-lg);
    line-height: 1.3;
}

.hero h1 .highlight {
    color: #FFEB3B;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: var(--md-sys-spacing-sm);
    line-height: 1.7;
}

.hero-mechanism {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: var(--md-sys-spacing-xl);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--md-sys-spacing-xl);
    flex-wrap: wrap;
    margin-top: var(--md-sys-spacing-xl);
}

.stat-item {
    text-align: center;
    padding: var(--md-sys-spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--md-sys-shape-corner-large);
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #FFEB3B;
    display: block;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: var(--md-sys-spacing-xs);
    line-height: 1.4;
}

/* Hero CTA Button - Base styles */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--md-sys-spacing-sm);
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    color: var(--md-sys-color-primary);
    text-decoration: none;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-standard),
                box-shadow var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-standard);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--md-sys-color-primary);
    border-radius: 50%;
    color: white;
}

.hero-cta-icon svg {
    margin-left: 2px;
}

.hero-cta-text {
    color: var(--md-sys-color-on-surface);
}

.hero-cta-badge {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: 3px 8px;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 10px;
    font-weight: 600;
}


/* Bottom CTA - PC and mobile, below subtitle */
.hero-cta--bottom {
    display: inline-flex;
    margin-top: var(--md-sys-spacing-lg);
    padding: var(--md-sys-spacing-md) var(--md-sys-spacing-xl);
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta--bottom .hero-cta-icon {
    width: 36px;
    height: 36px;
}

.hero-cta--bottom .hero-cta-badge {
    padding: 4px 12px;
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-cta--bottom {
        display: inline-flex;
    }
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background-color: var(--md-sys-color-surface-container-low);
    padding: var(--md-sys-spacing-xxxl) var(--md-sys-spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--md-sys-spacing-xl);
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: var(--md-sys-spacing-sm);
}

.section-header p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--md-sys-spacing-lg);
}

.stat-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-large);
    padding: var(--md-sys-spacing-lg);
    box-shadow: var(--md-sys-elevation-1);
    transition: box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
                transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.stat-card:hover {
    box-shadow: var(--md-sys-elevation-2);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: var(--md-sys-spacing-md);
    margin-bottom: var(--md-sys-spacing-md);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--md-sys-color-error-container);
    border-radius: var(--md-sys-shape-corner-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.4;
}

.stat-card-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--md-sys-color-error);
    margin-bottom: var(--md-sys-spacing-xs);
}

.stat-card-unit {
    font-size: 18px;
    font-weight: 500;
}

.stat-card-description {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
    line-height: 1.6;
}

.stat-source {
    text-align: center;
    margin-top: var(--md-sys-spacing-xl);
    font-size: 12px;
    color: var(--md-sys-color-outline);
}

.stat-source a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
}

.stat-source a:hover {
    text-decoration: underline;
}

/* Bridge between problem and solution */
.solution-bridge {
    background: var(--md-sys-color-primary);
    color: white;
    text-align: center;
    padding: var(--md-sys-spacing-lg) var(--md-sys-spacing-lg);
}

.solution-bridge p {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
    letter-spacing: 0.01em;
}

/* ============================================
   Problem Section
   ============================================ */
.problem-section {
    padding: var(--md-sys-spacing-xxxl) var(--md-sys-spacing-lg);
    background-color: var(--md-sys-color-surface);
}

.problem-list {
    display: grid;
    gap: var(--md-sys-spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.problem-item {
    background-color: var(--md-sys-color-error-container);
    border-radius: var(--md-sys-shape-corner-large);
    padding: var(--md-sys-spacing-lg);
    position: relative;
    overflow: hidden;
}

.problem-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--md-sys-color-error);
}

.problem-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--md-sys-color-on-error-container);
    margin-bottom: var(--md-sys-spacing-sm);
}

.problem-item p {
    color: var(--md-sys-color-on-error-container);
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.problem-item .case {
    background-color: var(--md-sys-color-surface);
    padding: var(--md-sys-spacing-md);
    border-radius: var(--md-sys-shape-corner-medium);
    margin-top: var(--md-sys-spacing-md);
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
}

.problem-item .case strong {
    color: var(--md-sys-color-error);
}

/* ============================================
   Solution Section
   ============================================ */
.solution-section {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: var(--md-sys-spacing-xxxl) var(--md-sys-spacing-lg);
}

.solution-section .section-header h2,
.solution-section .section-header p {
    color: var(--md-sys-color-on-primary);
}

.solution-section .section-header p {
    opacity: 0.9;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--md-sys-spacing-lg);
}

.service-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: var(--md-sys-spacing-lg);
    text-align: center;
    box-shadow: var(--md-sys-elevation-2);
    transition: box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
                transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.service-card:hover {
    box-shadow: var(--md-sys-elevation-4);
    transform: translateY(-4px);
}

.service-card-icon {
    font-size: 48px;
    margin-bottom: var(--md-sys-spacing-md);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: var(--md-sys-spacing-sm);
}

.service-card-subtitle {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: var(--md-sys-spacing-md);
}

.service-card ul {
    list-style: none;
    text-align: left;
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
}

.service-card li {
    padding: var(--md-sys-spacing-sm) 0;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    align-items: flex-start;
    gap: var(--md-sys-spacing-sm);
}

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

.service-card li::before {
    content: '✓';
    color: var(--md-sys-color-primary);
    font-weight: 600;
    flex-shrink: 0;
}

.service-card-price {
    margin-top: var(--md-sys-spacing-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--md-sys-color-primary);
    opacity: 0.85;
}

.service-card-note {
    margin-top: var(--md-sys-spacing-xs);
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
}

.service-card-guide-link {
    display: inline-block;
    margin-top: var(--md-sys-spacing-sm);
    font-size: 12px;
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.service-card-guide-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.service-card-guide-btn {
    display: block;
    margin-top: var(--md-sys-spacing-md);
    padding: 10px 16px;
    border: 2px solid var(--md-sys-color-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--md-sys-color-primary);
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.service-card-guide-btn:hover {
    background: var(--md-sys-color-primary);
    color: white;
}

/* Service Card Variants */
.service-card--guard {
    border-top: 4px solid var(--md-custom-color-guard);
}

.service-card--guard .service-card-icon {
    color: var(--md-custom-color-guard);
}

.service-card--safe {
    border-top: 4px solid var(--md-custom-color-safe);
}

.service-card--safe .service-card-icon {
    color: var(--md-custom-color-safe);
}

.service-card--safe-lite {
    border-top: 4px solid var(--md-custom-color-safe-lite);
}

.service-card--safe-lite .service-card-icon {
    color: var(--md-custom-color-safe-lite);
}

.service-card--guard-sougi {
    border-top: 4px solid var(--md-custom-color-guard-sougi);
    background: linear-gradient(180deg, #EFEBE9 0%, var(--md-sys-color-surface) 100%);
}

.service-card--guard-sougi .service-card-icon {
    color: var(--md-custom-color-guard-sougi);
}

.service-card--safe-direct {
    border-top: 4px solid #00897B;
    background: linear-gradient(180deg, #E0F2F1 0%, var(--md-sys-color-surface) 100%);
}

.service-card--safe-direct .service-card-icon {
    color: #00897B;
}

.service-card--sos {
    border-top: 4px solid var(--md-custom-color-sos);
    background: linear-gradient(180deg, #FFF5F5 0%, var(--md-sys-color-surface) 100%);
}

.service-card--sos .service-card-icon {
    color: var(--md-custom-color-sos);
}

/* ============================================
   Video Section (Legacy - kept for compatibility)
   ============================================ */
.video-section {
    background-color: var(--md-sys-color-surface-container-low);
    padding: var(--md-sys-spacing-xxxl) var(--md-sys-spacing-lg);
    text-align: center;
}

/* ============================================
   Guide Section (もっと詳しく知る)
   ============================================ */
.guide-section {
    background-color: var(--md-sys-color-surface-container-low);
    padding: var(--md-sys-spacing-xxxl) var(--md-sys-spacing-lg);
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--md-sys-spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .guide-cards {
        grid-template-columns: 1fr;
    }
}

.guide-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--md-sys-color-surface) 0%, #F5F9FF 100%);
    border-radius: var(--md-sys-shape-corner-extra-large);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--md-sys-elevation-2);
    transition: box-shadow var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-standard),
                transform var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-standard);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.guide-card:hover {
    box-shadow: var(--md-sys-elevation-4);
    transform: translateY(-4px);
}

.guide-card--secondary {
    background: linear-gradient(135deg, var(--md-sys-color-surface) 0%, #F0FFF4 100%);
}

.guide-card-visual {
    position: relative;
    padding: var(--md-sys-spacing-xl) var(--md-sys-spacing-lg) var(--md-sys-spacing-md);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.guide-card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #1976D2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.3);
    position: relative;
    z-index: 1;
}

.guide-card--secondary .guide-card-icon-wrapper {
    background: linear-gradient(135deg, var(--md-custom-color-safe) 0%, #388E3C 100%);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
}

.guide-card-icon {
    font-size: 40px;
    filter: grayscale(1) brightness(10);
}

.guide-card-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.guide-card--secondary .guide-card-decoration {
    background: radial-gradient(circle, rgba(46, 125, 50, 0.08) 0%, transparent 70%);
}

.guide-card-content {
    padding: var(--md-sys-spacing-md) var(--md-sys-spacing-lg) var(--md-sys-spacing-lg);
    text-align: center;
}

.guide-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: var(--md-sys-spacing-sm);
}

.guide-card-content p {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
    margin: 0 0 var(--md-sys-spacing-md);
}

.guide-card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--md-sys-spacing-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--md-sys-color-primary);
    padding: var(--md-sys-spacing-sm) var(--md-sys-spacing-md);
    border-radius: var(--md-sys-shape-corner-full);
    background-color: var(--md-sys-color-primary-container);
    transition: background-color 0.2s, gap 0.2s;
}

.guide-card--secondary .guide-card-cta {
    color: var(--md-custom-color-safe);
    background-color: #E8F5E9;
}

.guide-card:hover .guide-card-cta {
    gap: var(--md-sys-spacing-md);
}

.guide-card-cta svg {
    transition: transform 0.2s;
}

.guide-card:hover .guide-card-cta svg {
    transform: translateX(4px);
}

/* ============================================
   How to Use Section
   ============================================ */
.howto-section {
    padding: var(--md-sys-spacing-xxxl) var(--md-sys-spacing-lg);
    background-color: var(--md-sys-color-surface);
}

.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--md-sys-spacing-xl);
    max-width: 1000px;
    margin: 0 auto var(--md-sys-spacing-xl);
}

.howto-step {
    background: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: var(--md-sys-spacing-xl);
    text-align: center;
    position: relative;
    border: 1px solid var(--md-sys-color-outline-variant);
}

.howto-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #1976D2 100%);
    color: var(--md-sys-color-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

.howto-step-icon {
    font-size: 48px;
    margin: var(--md-sys-spacing-md) 0;
}

.howto-step h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: var(--md-sys-spacing-sm);
}

.howto-step p {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.7;
    margin: 0;
}

.howto-step p strong {
    color: var(--md-sys-color-on-surface);
}

.howto-note {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: var(--md-sys-shape-corner-large);
    padding: var(--md-sys-spacing-md) var(--md-sys-spacing-lg);
    text-align: center;
}

.howto-note p {
    margin: 0;
    font-size: 14px;
    color: var(--md-custom-color-guard);
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section {
    padding: var(--md-sys-spacing-xxxl) var(--md-sys-spacing-lg);
    background-color: var(--md-sys-color-surface-container-low);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--md-sys-spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.pricing-grid--four {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
    .pricing-grid--four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-grid--four {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 600px) {
    .pricing-grid--three {
        grid-template-columns: 1fr;
    }
}

/* Pricing Type Badge (回数券/月額) */
.pricing-type-badge {
    display: inline-block;
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    padding: 4px 12px;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: var(--md-sys-spacing-sm);
}

.pricing-type-badge--monthly {
    background-color: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

.pricing-card {
    background-color: var(--md-sys-color-surface);
    border: 2px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: var(--md-sys-spacing-xl);
    text-align: center;
    box-shadow: var(--md-sys-elevation-1);
    transition: box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
                transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: var(--md-sys-elevation-3);
    transform: translateY(-2px);
}

.pricing-card--primary {
    border-color: var(--md-sys-color-primary);
}

.pricing-card--safe {
    border-color: var(--md-custom-color-safe);
}

.pricing-card--safe .pricing-price {
    color: var(--md-custom-color-safe);
}

.pricing-card--safe .pricing-badge {
    background-color: #E8F5E9;
    color: var(--md-custom-color-safe);
}

.pricing-card--safe .pricing-features li::before {
    color: var(--md-custom-color-safe);
}

.pricing-card--guard {
    border-color: var(--md-custom-color-guard);
}

.pricing-card--guard .pricing-price {
    color: var(--md-custom-color-guard);
}

.pricing-card--guard .pricing-badge {
    background-color: #E3F2FD;
    color: var(--md-custom-color-guard);
}

.pricing-card--guard .pricing-features li::before {
    color: var(--md-custom-color-guard);
}

.pricing-card--sougi {
    border-color: var(--md-custom-color-guard-sougi);
}

.pricing-card--sougi .pricing-price {
    color: var(--md-custom-color-guard-sougi);
}

.pricing-card--sougi .pricing-badge {
    background-color: #EFEBE9;
    color: var(--md-custom-color-guard-sougi);
}

.pricing-card--sougi .pricing-features li::before {
    color: var(--md-custom-color-guard-sougi);
}

.pricing-card--sos {
    border-color: var(--md-custom-color-sos);
}


.pricing-card-icon {
    font-size: 40px;
    margin-bottom: var(--md-sys-spacing-sm);
}

.pricing-badge {
    display: inline-block;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: var(--md-sys-spacing-xs) var(--md-sys-spacing-md);
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: var(--md-sys-spacing-md);
}

.pricing-card--sos .pricing-badge {
    background-color: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

.pricing-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: var(--md-sys-spacing-xs);
}

.pricing-subtitle {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: var(--md-sys-spacing-md);
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    margin: var(--md-sys-spacing-md) 0;
    white-space: nowrap;
    line-height: 1.2;
}

.pricing-card--sos .pricing-price {
    color: var(--md-custom-color-sos);
}

.pricing-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface-variant);
}

.pricing-features {
    list-style: none;
    margin: var(--md-sys-spacing-md) 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: var(--md-sys-spacing-sm) 0;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: flex-start;
    gap: var(--md-sys-spacing-sm);
}

.pricing-features li::before {
    content: '✓';
    color: var(--md-sys-color-primary);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card--sos .pricing-features li::before {
    color: var(--md-custom-color-sos);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    font-size: 13px;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: var(--md-sys-spacing-md);
    line-height: 1.6;
}

.pricing-highlight {
    background-color: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    padding: var(--md-sys-spacing-xs) var(--md-sys-spacing-sm);
    border-radius: var(--md-sys-shape-corner-small);
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-top: var(--md-sys-spacing-sm);
}

.pricing-card--sos .pricing-highlight {
    background-color: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    padding: var(--md-sys-spacing-xxxl) var(--md-sys-spacing-lg);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.cta-header {
    margin-bottom: var(--md-sys-spacing-xl);
    position: relative;
    z-index: 1;
}

.cta-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--md-sys-spacing-sm);
}

.cta-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* CTA Cards */
.cta-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--md-sys-spacing-lg);
    max-width: 700px;
    margin: 0 auto var(--md-sys-spacing-xl);
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .cta-cards {
        grid-template-columns: 1fr;
        max-width: 340px;
    }
}

.cta-card {
    display: flex;
    align-items: center;
    gap: var(--md-sys-spacing-md);
    padding: var(--md-sys-spacing-lg);
    border-radius: var(--md-sys-shape-corner-extra-large);
    text-decoration: none;
    transition: box-shadow var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-standard),
                transform var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-standard);
}

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

.cta-card--line {
    background: linear-gradient(135deg, #06C755 0%, #00B341 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
}

.cta-card--line:hover {
    box-shadow: 0 8px 30px rgba(6, 199, 85, 0.5);
}

.cta-card--try {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    color: var(--md-sys-color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-card--try:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-card-icon-wrapper {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--md-sys-shape-corner-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card--try .cta-card-icon-wrapper {
    background: var(--md-sys-color-primary-container);
}

.cta-card-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.cta-card-content {
    flex: 1;
    text-align: left;
}

.cta-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cta-card-content p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

.cta-card--try .cta-card-content p {
    color: var(--md-sys-color-on-surface-variant);
}

.cta-card-arrow {
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
}

.cta-card:hover .cta-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.cta-card--try .cta-card-arrow svg {
    stroke: var(--md-sys-color-primary);
}

.line-add-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--md-sys-spacing-md);
    background-color: white;
    color: var(--md-custom-color-line);
    padding: var(--md-sys-spacing-md) var(--md-sys-spacing-xl);
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--md-sys-elevation-3);
    transition: box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
                transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.line-add-btn:hover {
    box-shadow: var(--md-sys-elevation-5);
    transform: translateY(-3px);
}

.line-add-btn img {
    width: 28px;
    height: 28px;
}

.cta-note {
    margin-top: 0;
    font-size: 13px;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--md-sys-color-surface-container);
    padding: var(--md-sys-spacing-xl) var(--md-sys-spacing-lg);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--md-sys-spacing-lg);
    flex-wrap: wrap;
    margin-bottom: var(--md-sys-spacing-md);
}

.footer-links a {
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.footer-links a:hover {
    color: var(--md-sys-color-primary);
}

.footer-copyright {
    font-size: 12px;
    color: var(--md-sys-color-outline);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: var(--md-sys-spacing-xl) var(--md-sys-spacing-md);
    }

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

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-mechanism {
        font-size: 13px;
    }

    .hero-stats {
        gap: var(--md-sys-spacing-md);
    }

    .stat-item {
        min-width: 120px;
        padding: var(--md-sys-spacing-sm);
    }

    .stat-number {
        font-size: 26px;
    }

    .stats-section,
    .problem-section,
    .solution-section,
    .video-section,
    .pricing-section,
    .cta-section {
        padding: var(--md-sys-spacing-xl) var(--md-sys-spacing-md);
    }

    .section-header h2 {
        font-size: 24px;
    }

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

    .service-cards {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card {
        padding: var(--md-sys-spacing-lg);
    }

    .pricing-price {
        font-size: 40px;
    }

    .line-add-btn {
        padding: var(--md-sys-spacing-md) var(--md-sys-spacing-lg);
        font-size: 16px;
    }

    .footer-links {
        gap: var(--md-sys-spacing-md);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 22px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 200px;
    }

    .stat-card-number {
        font-size: 32px;
    }

    .service-card {
        padding: var(--md-sys-spacing-md);
    }
}

/* ============================================
   Howto Accordion (Inside Pricing Section)
   ============================================ */
.howto-accordion {
    max-width: 600px;
    margin: var(--md-sys-spacing-xl) auto 0;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-surface);
}

.howto-accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background-color: var(--md-sys-color-surface);
    border: none;
    border-radius: var(--md-sys-shape-corner-medium);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    transition: background-color 0.2s ease;
}

.howto-accordion-trigger:hover {
    background-color: var(--md-sys-color-surface-container-low);
}

.howto-accordion-icon {
    font-size: 12px;
    color: var(--md-sys-color-outline);
    transition: transform 0.3s ease;
}

.howto-accordion-content {
    display: none;
    padding: 0 20px 20px;
}

.howto-accordion-content.open {
    display: block;
}

.howto-steps-compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.howto-step-compact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.howto-step-compact .step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background-color: var(--md-sys-color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.howto-step-compact .step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 4px 0;
}

.howto-step-compact .step-content p {
    font-size: 13px;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    line-height: 1.5;
}

.howto-step-compact .step-content p strong {
    color: var(--md-sys-color-on-surface);
}

.howto-tip {
    margin-top: 16px;
    padding: 10px 14px;
    background-color: #FFF8E1;
    border-left: 3px solid #FFC107;
    border-radius: 0 var(--md-sys-shape-corner-small) var(--md-sys-shape-corner-small) 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5D4037;
}

@media (max-width: 480px) {
    .howto-accordion-trigger {
        padding: 12px 16px;
        font-size: 14px;
    }

    .howto-accordion-content {
        padding: 0 16px 16px;
    }

    .howto-step-compact .step-num {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 12px;
    }

    .howto-step-compact .step-content h4 {
        font-size: 13px;
    }

    .howto-step-compact .step-content p {
        font-size: 12px;
    }
}
