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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* CSS Variables for consistent spacing */
:root {
    /* Legacy spacing variables */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 40px;
    
    /* New unified spacing system */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */
    
    /* Typography system */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    
    /* Border radius system */
    --radius-sm: 0.5rem;    /* 8px */
    --radius-md: 0.75rem;   /* 12px */
    --radius-lg: 1rem;      /* 16px */
    --radius-xl: 1.25rem;   /* 20px */
    
    /* Shadow system */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: #2e7d32;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #2e7d32;
}

.cta-btn-small {
    background: #2e7d32;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.cta-btn-small:hover {
    background: #1b5e20;
    color: white !important;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e8 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1b5e20;
}

.highlight {
    color: #2e7d32;
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e7d32;
    display: block;
}

.stat-number span {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.cta-btn-primary {
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    will-change: transform;
}

.cta-btn-primary:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.cta-btn-secondary {
    background: transparent;
    color: #2e7d32;
    padding: 1rem 2rem;
    border: 2px solid #2e7d32;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-btn-secondary:hover {
    background: #2e7d32;
    color: white;
}


/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1b5e20;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Problems Section */
.problems {
    padding: 80px 0;
    background: #fafafa;
}

.problems-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.problems-logo img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.problem-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    will-change: transform;
}

.problem-item:hover {
    transform: translate3d(0, -5px, 0);
}

.problem-icon {
    font-size: 3rem;
    color: #f44336;
    margin-bottom: 1rem;
}

.problem-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.problem-item p {
    color: #666;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 80px 0;
}

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

.service-item {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
    will-change: transform;
}

.service-item:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    color: #2e7d32;
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1b5e20;
}

.service-item p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #f8fdf8;
}

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

.testimonial-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
    margin-bottom: 1.5rem;
}

.testimonial-info h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

.testimonial-results {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.result-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.pricing-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    will-change: transform;
}

.pricing-item:hover {
    transform: translate3d(0, -5px, 0);
    border-color: #4caf50;
}

.pricing-item.featured {
    border-color: #4caf50;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #4caf50;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1b5e20;
}

.price {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #2e7d32;
}

.price-period {
    font-size: 1.2rem;
    color: #666;
}

.pricing-features ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: #555;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #4caf50;
    font-weight: bold;
    font-size: 0.9rem;
}

.pricing-features li i {
    display: none; /* Hide duplicate icons */
}

.pricing-cta {
    margin-top: auto;
}

.cta-btn-outline {
    background: transparent;
    color: #2e7d32;
    padding: 1rem 2rem;
    border: 2px solid #2e7d32;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-btn-outline:hover {
    background: #2e7d32;
    color: white;
}

.pricing-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.pricing-note i {
    color: #2e7d32;
    margin-right: 0.5rem;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #fafafa;
}

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

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.faq-question i {
    color: #2e7d32;
    transition: transform 0.2s ease;
    will-change: transform;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}


/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e8 100%);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2e7d32;
    font-weight: 600;
}

.benefit-item i {
    font-size: 1.2rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.required {
    color: #f44336;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
    transition: border-color 0.15s ease;
}

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

.form-submit button {
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    will-change: transform;
}

.form-submit button:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.form-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #1b5e20;
    color: white;
    padding: 2rem 0 1rem;
}

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

.footer-company h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: #4caf50;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #2e7d32;
    color: #a5d6a7;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-button span {
    width: 25px;
    height: 3px;
    background: #2e7d32;
    margin: 3px 0;
    transition: all 0.2s ease;
    will-change: transform;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Fixed Bottom CTA */
.mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    width: 100%;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    display: none;
    box-sizing: border-box;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Base Typography & Spacing */
    body {
        font-size: 16px;
        line-height: 1.7;
        padding-bottom: 80px; /* Space for fixed CTA */
        overflow-x: hidden;
    }
    
    h1 {
        font-size: clamp(28px, 6vw, 32px);
        line-height: 1.25;
    }
    
    h2 {
        font-size: clamp(20px, 4.5vw, 24px);
        line-height: 1.35;
    }
    
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    section {
        padding-top: var(--space-6);
        padding-bottom: var(--space-6);
    }
    
    /* Button Touch Targets */
    .cta-btn-primary,
    .cta-btn-secondary,
    .cta-btn-outline,
    .cta-btn-small,
    .btn,
    button {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Show Fixed Bottom CTA */
    .mobile-sticky-cta {
        display: block;
    }
    
    .mobile-sticky-cta .btn {
        width: 100%;
        background: linear-gradient(45deg, #4caf50, #2e7d32);
        color: white;
        border: none;
        border-radius: 25px;
        font-weight: 600;
        font-size: 16px;
        min-height: 48px;
        padding: 12px 16px;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
        box-sizing: border-box;
        text-decoration: none;
        display: block;
        text-align: center;
        line-height: 1.2;
    }
    
    .mobile-sticky-cta .btn:hover {
        transform: translate3d(0, -2px, 0);
        box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    }
    
    /* Hero Mobile Layout - ファーストビュー最適化 */
    .hero {
        padding: 80px 0 40px;
        /* min-height: calc(100vh - 80px); */
        display: flex;
        align-items: center;
    }
    
    .hero .container {
        width: 100%;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: clamp(24px, 6vw, 28px);
        line-height: 1.3;
        margin-bottom: 0;
        font-weight: 700;
        color: #1b5e20;
        max-width: 20ch;
        word-break: keep-all;
    }
    
    .hero-sub,
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
        color: #555;
        margin: 0;
        max-width: 35ch;
        opacity: 0.9;
    }
    
    .hero-metrics,
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        width: 100%;
        max-width: 350px;
        margin: 0;
    }
    
    .stat-item {
        background: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 0.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(46, 125, 50, 0.1);
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 280px;
        margin: 0;
    }
    
    .hero-cta .cta-btn-primary,
    .hero-cta .cta-btn-secondary {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 25px;
        text-decoration: none;
        display: block;
        text-align: center;
        line-height: 1.2;
        box-sizing: border-box;
    }
    
    /* Cards and Spacing - 余白圧縮 */
    section {
        padding: 2.5rem 0; /* セクション間余白を縮小 */
    }
    
    .problems,
    .services,
    .testimonials,
    .pricing,
    .faq,
    .contact {
        padding: 2.5rem 0;
    }
    
    .problem-item,
    .service-item,
    .testimonial-item {
        padding: 1rem;
        margin-bottom: 1rem; /* カード間余白を縮小 */
        border-radius: 12px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .section-title {
        margin-bottom: 1.5rem; /* タイトル下余白を縮小 */
    }
    
    .section-subtitle {
        margin-bottom: 2rem;
    }
    
    /* Testimonials Horizontal Scroll */
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        gap: var(--space-3);
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        grid-template-columns: none;
    }
    
    .testimonials-grid .testimonial-item {
        min-width: 80%;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    /* Pricing Plans - Mobile Compact */
    .pricing {
        padding: 2rem 0; /* 料金セクション余白を縮小 */
    }
    
    .plan,
    .pricing-item {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 1rem; /* カード間余白を縮小 */
        transform: none;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .plan:last-child,
    .pricing-item:last-child {
        margin-bottom: 0;
    }
    
    .pricing-item.featured {
        transform: none;
        scale: 1;
    }
    
    .pricing-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        cursor: pointer;
    }
    
    .pricing-features,
    .pricing-cta {
        display: none;
        padding: 0 16px 16px;
    }
    
    .pricing-item.plan--open .pricing-features,
    .pricing-item.plan--open .pricing-cta {
        display: block;
    }
    
    .pricing-toggle {
        font-size: 1.5rem;
        color: #2e7d32;
        transition: transform 0.2s ease;
    }
    
    .pricing-item.plan--open .pricing-toggle {
        transform: rotate(45deg);
    }
    
    /* Form Improvements */
    .form-row {
        display: block;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: clamp(20px, 4.5vw, 24px);
    }
    
    /* Grid Layouts */
    .services-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Benefits */
    .contact-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .nav {
        position: fixed;
        inset: 0;
        background: white;
        padding: 24px 16px;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        z-index: 1000;
    }
    
    .nav.is-open {
        display: flex;
    }
    
    .nav a {
        display: block;
        padding: 12px 8px;
        font-size: 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav .cta-btn-small {
        margin-top: 1rem;
        text-align: center;
        width: auto;
        border-bottom: none;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section-title {
        font-size: clamp(18px, 5vw, 22px);
    }
    
    .hero-title {
        font-size: clamp(24px, 6vw, 28px);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-content,
.problem-item,
.service-item,
.testimonial-item,
.pricing-item {
    will-change: transform, opacity;
    animation: fadeInUp 0.4s ease-out;
}

/* Honeypot field (bot trap) */
.hp-field{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

/* ===== PC Layout Enhancements (min-width: 1024px) ===== */
@media (min-width: 1024px) {
  /* PC Typography Enhancement */
  body {
    font-size: 18px;
    line-height: 1.8;
  }
  
  /* Hero Section PC */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: clamp(3rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1b5e20;
  }
  
  /* Section Titles PC */
  .section-title {
    font-size: clamp(2.25rem, 3vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
  }
  
  /* Enhanced CTA Buttons */
  .cta-btn-primary {
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
    min-height: 56px;
    border-radius: 28px;
  }
  
  .cta-btn-secondary,
  .cta-btn-outline {
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
    min-height: 56px;
    border-radius: 28px;
  }
  
  .cta-btn-small {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    min-height: 44px;
  }
  
  /* PC Pricing Plans - 3カード統一 */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto 2rem;
  }
  
  .plan,
  .pricing-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
  }
  
  .plan:hover,
  .pricing-item:hover {
    transform: translateY(-8px);
    border-color: #4caf50;
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.15);
  }
  
  .plan--featured,
  .pricing-item.featured {
    border-color: #4caf50;
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.2);
    transform: scale(1.02);
  }
  
  .plan--featured:hover,
  .pricing-item.featured:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 16px 40px rgba(46, 125, 50, 0.25);
  }
  
  .plan__badge,
  .pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #4caf50;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
  }
  
  .plan__title,
  .pricing-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1b5e20;
  }
  
  /* 価格行の整列 */
  .plan__price,
  .price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
    line-height: 1;
  }
  
  .plan__currency,
  .price .currency {
    font-size: 1.5rem;
    color: #666;
    font-weight: 500;
  }
  
  .plan__amount,
  .price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2e7d32;
    letter-spacing: -0.02em;
  }
  
  .plan__per,
  .price-period {
    font-size: 1.25rem;
    color: #666;
    font-weight: 500;
  }
  
  .plan__features,
  .pricing-features {
    flex: 1;
    margin-bottom: 2rem;
    text-align: left;
  }
  
  .plan__features ul,
  .pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .plan__features li,
  .pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .plan__features li:last-child,
  .pricing-features li:last-child {
    border-bottom: none;
  }
  
  .plan__cta,
  .pricing-cta {
    margin-top: auto;
  }
  
  .plan__cta .cta-btn-primary,
  .plan__cta .cta-btn-outline,
  .pricing-cta .cta-btn-primary,
  .pricing-cta .cta-btn-outline {
    width: 100%;
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
    min-height: 56px;
  }
  
  .hero-subtitle,
  .hero-sub {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }
  
  /* PC では固定CTA非表示 */
  .mobile-sticky-cta {
    display: none !important;
  }
  
  body {
    padding-bottom: 0;
  }
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
  }
  
  .hero-stats,
  .hero-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    justify-content: center;
  }
  
  .hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  
  /* PCでの料金プラン：3カード統一レイアウト */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .plan {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
  }
  
  .plan:hover {
    transform: translateY(-5px);
    border-color: #4caf50;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .plan--featured {
    border-color: #4caf50;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    position: relative;
  }
  
  .plan--featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.3);
  }
  
  .plan__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #4caf50;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
  }
  
  .plan__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1b5e20;
  }
  
  .plan__price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .plan__currency {
    font-size: 1.2rem;
    color: #666;
  }
  
  .plan__amount {
    font-size: 3rem;
    font-weight: 700;
    color: #2e7d32;
  }
  
  .plan__per {
    font-size: 1.2rem;
    color: #666;
  }
  
  .plan__features {
    flex: 1;
    margin-bottom: 2rem;
  }
  
  .plan__features ul {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
  }
  
  .plan__features li {
    padding: 0.75rem 0;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    padding-left: 1.5rem;
  }
  
  .plan__features li:last-child {
    border-bottom: none;
  }
  
  .plan__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #4caf50;
    font-weight: bold;
    font-size: 0.9rem;
  }
  
  .plan__cta {
    margin-top: auto;
  }
  
  .plan__cta .cta-btn-primary,
  .plan__cta .cta-btn-outline {
    width: 100%;
    padding: 1rem 2rem;
  }
  
  /* PCでのお客様の声：グリッド表示 */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
  
  .testimonial-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  }
}

/* ===== モバイル専用スタイル（768px以下） ===== */

/* 基本スケールと余白の統一 */
@media (max-width: 768px){
  body{ 
    font-size: var(--text-base); 
    line-height: 1.7; 
    padding-bottom: 5rem; /* Fixed bottom CTA space */
  }
  
  /* Typography hierarchy */
  h1{ 
    font-size: clamp(1.75rem, 6vw, 2.125rem); /* 28px - 34px */
    line-height: 1.25; 
    margin-bottom: var(--spacing-md);
  }
  
  h2{ 
    font-size: clamp(1.25rem, 4.8vw, 1.5rem); /* 20px - 24px */
    line-height: 1.35; 
    margin-bottom: var(--spacing-sm);
  }
  
  h3{ 
    font-size: var(--text-lg); /* 18px */
    line-height: 1.4; 
    margin-bottom: var(--spacing-xs);
  }
  
  p{ 
    margin-bottom: var(--spacing-sm); 
    line-height: 1.7;
  }
  
  /* Container and section spacing */
  .container{ 
    padding-left: var(--spacing-md); 
    padding-right: var(--spacing-md); 
  }
  
  section{ 
    padding: var(--spacing-xl) 0; 
  }
  
  /* Button consistency */
  .cta-btn-primary,
  .cta-btn-secondary,
  .cta-btn-outline,
  .btn{ 
    min-height: 44px; 
    padding: var(--spacing-xs) var(--spacing-sm); 
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    transition: all 0.2s ease;
  }

  /* ファーストビュー最適化（モバイル） */
  .hero{ 
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .hero-title{ 
    font-size: clamp(1.75rem, 6vw, 2.125rem);
    line-height: 1.3;
    max-width: 20ch; 
    word-break: keep-all; 
    margin: 0 auto var(--spacing-md);
    text-align: center;
    position: relative;
    z-index: 3;
    color: #1b5e20;
    font-weight: 700;
  }
  
  .hero-sub,
  .hero-subtitle{ 
    font-size: var(--text-lg);
    max-width: 42ch; 
    opacity: 0.9; 
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 3;
    color: #555;
    line-height: 1.6;
  }
  
  .hero-metrics,
  .hero-stats{ 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: var(--spacing-xs); 
    margin: var(--spacing-lg) 0;
    width: 100%;
    max-width: 400px;
  }
  
  .hero-metrics > *,
  .hero-stats > *{ 
    text-align: center; 
    padding: var(--spacing-sm); 
    border-radius: var(--radius-md); 
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(46, 125, 50, 0.1);
    position: relative;
    z-index: 3;
  }
  
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 320px;
  }
  
  .hero-cta .cta-btn-primary,
  .hero-cta .cta-btn-secondary {
    width: 100%;
    max-width: 280px;
  }
  
  /* テキストの改行制御とレイヤー管理 */
  .hero h1,
  .hero h2,
  .hero h3,
  .hero p,
  .hero .cta-btn-primary{ 
    word-break: keep-all; 
    white-space: normal; 
    letter-spacing: normal; 
    writing-mode: horizontal-tb; 
    position: relative;
    z-index: 3;
  }

  /* 料金プラン 統一されたカードデザイン */
  .pricing{ 
    display: block; 
  }
  
  .pricing-grid{ 
    display: block; 
    gap: var(--spacing-md);
  }
  
  .plan{ 
    border: 1px solid rgba(0, 0, 0, 0.08); 
    border-radius: var(--radius-lg); 
    padding: var(--spacing-lg); 
    margin-bottom: var(--spacing-md); 
    background: #fff; 
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
  }
  
  .plan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .plan--featured{ 
    border-color: rgba(46, 125, 50, 0.2); 
    box-shadow: var(--shadow-lg);
    position: relative; 
    transform: scale(1.02);
  }
  
  .plan--featured:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: var(--shadow-xl);
  }
  
  .plan--featured .plan__badge{
    position: absolute; 
    top: calc(-1 * var(--spacing-xs)); 
    left: var(--spacing-lg); 
    font-size: var(--text-xs); 
    background: #e8f5e9; 
    color: #2e7d32; 
    padding: var(--spacing-xs) var(--spacing-sm); 
    border-radius: 999px; 
    border: 1px solid rgba(46, 125, 50, 0.2);
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
  }
  
  .plan__title{ 
    font-size: var(--text-lg); 
    margin: 0 0 var(--spacing-sm); 
    font-weight: 600; 
    color: #1b5e20;
  }
  
  .plan__price{
    display: flex; 
    align-items: flex-end; 
    gap: var(--spacing-xs); 
    margin: var(--spacing-xs) 0 var(--spacing-md); 
    line-height: 1;
    word-break: keep-all; 
    white-space: nowrap;
  }
  
  .plan__currency{ 
    font-size: var(--text-lg); 
    transform: translateY(-2px); 
    opacity: 0.8; 
    color: #2e7d32;
  }
  
  .plan__amount{ 
    font-size: 1.75rem; /* 28px */
    font-weight: 700; 
    letter-spacing: 0.02em; 
    color: #2e7d32; 
  }
  
  .plan__tax{ 
    font-size: var(--text-xs); 
    opacity: 0.7; 
    margin-left: auto; 
    color: #666;
  }
  
  .plan__features{ 
    margin: var(--spacing-md) 0 var(--spacing-lg); 
  }
  
  .plan__features ul{ 
    list-style: none; 
    padding: 0; 
    margin: 0;
  }
  
  .plan__features li{ 
    display: flex; 
    gap: var(--spacing-xs); 
    align-items: flex-start; 
    margin: var(--spacing-xs) 0; 
    color: #555;
    font-size: var(--text-sm);
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
  }
  
  .plan__features li::before{ 
    content: '✓'; 
    position: absolute; 
    left: 0; 
    top: 2px; 
    color: #4caf50; 
    font-weight: bold; 
    font-size: var(--text-sm);
  }
  
  .plan__cta{ 
    margin-top: var(--spacing-lg); 
  }
  
  .plan .cta-btn-primary,
  .plan .cta-btn-outline{ 
    width: 100%; 
    justify-content: center;
  }

  /* その他のカードデザイン統一 */
  .problem-item,
  .service-item,
  .testimonial-item {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
  }
  
  .problem-item:hover,
  .service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .problem-item h3,
  .service-item h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-lg);
    line-height: 1.4;
  }
  
  .problem-item p,
  .service-item p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    color: #666;
  }

  /* お客様の声：縦スクロール（横スクロール無効化） */
  .testimonials-grid{ 
    display: block;
    overflow-x: hidden;
    overflow-y: visible;
  }
  
  .testimonials-grid .testimonial-item{ 
    width: 100%;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    position: relative;
  }
  
  .testimonials-grid .testimonial-item:last-child {
    margin-bottom: 0;
  }

  /* フォームの統一されたスタイル */
  .form-row{ 
    display: block; 
  }
  
  .form-group{ 
    margin-bottom: var(--spacing-md); 
  }
  
  .form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: #333;
    font-size: var(--text-sm);
  }
  
  input,
  select,
  textarea{ 
    font-size: var(--text-base); 
    line-height: 1.6; 
    padding: var(--spacing-sm);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  }
  
  .contact-form {
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
  }
}

/* 画面下固定CTA 横スクロール防止・ビューポート対応 */
.mobile-sticky-cta{
  position: fixed; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  z-index: 60;
  width: 100%;
  max-width: 100vw;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  display: none;
  box-sizing: border-box;
  overflow: hidden;
}

/* PCビューでは固定CTAを非表示 */
@media (min-width: 769px) {
  .mobile-sticky-cta {
    display: none !important;
  }
  
  body {
    padding-bottom: 0;
  }
}

/* レスポンシブ対応の強化 */
@media (max-width: 768px) {
  /* 横スクロール防止の強化 */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .mobile-sticky-cta{ 
    display: block; 
  }
  
  .mobile-sticky-cta .btn{ 
    width: 100%; 
    max-width: 100%;
    min-height: 48px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    margin: 0;
    padding: 12px 16px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .mobile-sticky-cta .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  }
  
  /* セクションタイトルの調整 */
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    line-height: 1.3;
  }
  
  .section-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    color: #666;
    line-height: 1.6;
  }
}

/* タブレット用スタイル（481px〜768px） */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  .hero-metrics,
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: 500px;
  }
  
  .testimonials-grid .testimonial-item {
    padding: var(--spacing-lg);
  }
  
  .plan {
    padding: var(--spacing-lg);
  }
}

/* スマートフォン用スタイル（480px以下） */
@media (max-width: 480px) {
  .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
  
  .hero-metrics,
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
    max-width: 280px;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 5vw, 1.875rem);
    max-width: 18ch;
  }
  
  .hero-sub,
  .hero-subtitle {
    font-size: var(--text-base);
    max-width: 35ch;
  }
  
  .plan {
    padding: var(--spacing-md);
  }
  
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  .hero-cta .cta-btn-primary,
  .hero-cta .cta-btn-secondary {
    width: 100%;
    max-width: 260px;
  }
  
  .plan__title {
    font-size: var(--text-base);
  }
  
  .plan__amount {
    font-size: 1.5rem;
  }
}

/* 極小スマートフォン用（360px-414px）最適化 */
@media (max-width: 414px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .hero-title {
    font-size: clamp(22px, 5.5vw, 26px);
    line-height: 1.2;
    max-width: 16ch;
  }
  
  .hero-sub {
    font-size: 15px;
    max-width: 32ch;
  }
  
  .problem-card {
    padding: 14px;
    margin-bottom: 14px;
  }
  
  .problem-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .problem-card h3 {
    font-size: 15px;
  }
  
  .problem-card p {
    font-size: 13px;
  }
  
  .plan {
    padding: 16px;
    margin-bottom: 14px;
  }
  
  .plan__title {
    font-size: 17px;
  }
  
  .plan__amount {
    font-size: 24px;
  }
  
  .mobile-sticky-cta {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  
  .mobile-sticky-cta .btn {
    font-size: 15px;
    min-height: 44px;
    padding: 10px 14px;
  }
}

/* 超小型デバイス（360px以下）対応 */
@media (max-width: 360px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .hero-title {
    font-size: clamp(20px, 5vw, 24px);
    max-width: 14ch;
  }
  
  .hero-sub {
    font-size: 14px;
    max-width: 28ch;
  }
  
  .problem-card {
    padding: 12px;
    gap: 10px;
  }
  
  .problem-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .problem-card h3 {
    font-size: 14px;
  }
  
  .problem-card p {
    font-size: 12px;
  }
  
  .plan {
    padding: 14px;
  }
  
  .plan__amount {
    font-size: 22px;
  }
}

/* ===== 新しい改善スタイル（ブレイクポイント明確分離） ===== */

/* ---- 共通トークン ---- */
:root{
  --space-1:8px; --space-2:12px; --space-3:16px; --space-4:24px; --space-5:32px; --space-6:40px;
}

/* ---- スマホ（max:768px）---- */
@media (max-width:768px){
  body{ font-size:16px; line-height:1.7; }
  .container{ padding-left:16px; padding-right:16px; }
  section{ padding-top:var(--space-5); padding-bottom:var(--space-5); } /* 余白を詰める */
  .card{ margin-bottom:var(--space-3); }

  /* Hero rules moved to final section for consolidation */

  /* お悩みカード：アイコン左、テキスト右の2カラムレイアウト */
  .problems-grid {
    display: block;
  }
  
  .problem-card{ 
    padding: 16px; 
    border-radius: 12px; 
    margin-bottom: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  
  .problem-icon { 
    flex-shrink: 0;
    width: 40px; 
    height: 40px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #f44336;
    margin: 0;
  }
  
  .problem-text {
    flex: 1;
    min-width: 0;
  }
  
  .problem-card h3{ 
    font-size: 16px; 
    font-weight: 600;
    margin: 0 0 6px 0; 
    color: #333;
    line-height: 1.3;
  }
  
  .problem-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
  }

  /* 料金：縦並び読みやすくレイアウト（スマホ） */
  .pricing{ 
    display: block; 
    padding: var(--space-5) 0; /* 32px section spacing */
  }
  
  .pricing-grid {
    display: block;
    gap: 0;
  }
  
  .plan{ 
    border: 1px solid rgba(0, 0, 0, 0.08); 
    border-radius: 16px; 
    padding: 20px; 
    margin-bottom: 16px; /* 16px card spacing */
    background: #fff; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
  }
  
  .plan:last-child {
    margin-bottom: 0;
  }
  
  .plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .plan--featured{ 
    border-color: rgba(46, 125, 50, 0.3); 
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.15); 
    position: relative; 
    margin-bottom: 16px;
  }
  
  .plan--featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.2);
  }
  
  .plan--featured .plan__badge{
    position: absolute; 
    top: -10px; 
    left: 20px; 
    font-size: 12px; 
    background: #e8f5e9; 
    color: #2e7d32; 
    padding: 6px 12px; 
    border-radius: 20px; 
    border: 1px solid rgba(46, 125, 50, 0.2);
    font-weight: 600;
    z-index: 10;
  }
  
  /* タイトル */
  .plan__title{ 
    font-size: 18px; 
    margin: 0 0 12px; 
    font-weight: 600;
    color: #1b5e20;
    text-align: center;
  }
  
  /* 価格表示 */
  .plan__price{ 
    display: flex; 
    align-items: baseline; 
    justify-content: center;
    gap: 4px; 
    margin: 0 0 16px; 
    line-height: 1; 
    white-space: nowrap; 
  }
  
  .plan__currency{ 
    font-size: 16px; 
    opacity: 0.8; 
    color: #2e7d32;
  }
  
  .plan__amount{ 
    font-size: 28px; 
    font-weight: 700; 
    letter-spacing: 0.02em; 
    color: #2e7d32;
  }
  
  .plan__per{ 
    font-size: 14px; 
    opacity: 0.7; 
    color: #666;
  }
  
  /* 特徴リスト */
  .plan__features{ 
    margin: 16px 0 20px; 
  }
  
  .plan__features ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .plan__features li{ 
    display: flex; 
    gap: 8px; 
    align-items: flex-start; 
    margin: 10px 0; 
    padding-left: 20px; 
    position: relative; 
    font-size: 14px;
    line-height: 1.5;
    color: #555;
  }
  
  .plan__features li::before{ 
    content: '✓'; 
    position: absolute; 
    left: 0; 
    top: 2px; 
    color: #4caf50; 
    font-weight: bold; 
    font-size: 14px;
  }
  
  /* CTA */
  .plan__cta{ 
    margin-top: auto; 
    margin-bottom: 0;
  }
  
  .plan .cta-btn-primary,
  .plan .cta-btn-outline{ 
    width: 100%; 
    min-height: 44px; 
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .plan .cta-btn-primary {
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    color: white;
    border: none;
  }
  
  .plan .cta-btn-outline {
    background: transparent;
    color: #2e7d32;
    border: 2px solid #2e7d32;
  }
  
  .plan .cta-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  }
  
  .plan .cta-btn-outline:hover {
    background: #2e7d32;
    color: white;
  }

  /* 隙間の最終調整（スマホ） */
  .section-title{ margin-bottom:var(--space-4); }
  .grid{ row-gap:16px; } /* もしカードをgridで並べている場合 */
}

/* ---- PC（min:1024px）---- */
@media (min-width:1024px){
  body{ font-size:17px; line-height:1.8; }
  h2.section-title{ font-size:clamp(28px,2.2vw,32px); line-height:1.3; }
  .hero-title{ font-size:clamp(36px,3.2vw,44px); line-height:1.2; }
  .hero-sub{ font-size:16px; max-width:56ch; }
  .hero-cta{ min-height:48px; padding:12px 20px; font-weight:600; }

  /* 料金：3カラム横並び時の均等レイアウト */
  .pricing .plan{ height:100%; padding:20px; }
  .pricing .plan__title{ font-size:20px; }
  .pricing .plan__amount{ font-size:32px; }
}

/* ---- 共通：価格の崩れ＆改行防止 ---- */
.plan__price, .plan__title, .cta-btn-primary, .hero-title{
  word-break: keep-all; white-space: normal; letter-spacing: normal; writing-mode: horizontal-tb;
}

/* ===== 共有トークン ===== */
:root{ 
  --header-h-mobile: 56px; 
  --space-1: 8px; 
  --space-2: 12px; 
  --space-3: 16px; 
  --space-4: 24px; 
  --space-5: 32px; 
}

/* ===== ヘッダー固定化（被り防止の基準） ===== */
@media (max-width:768px){
  .header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000;
    height: var(--header-h-mobile); 
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
  }
  
  .header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }
  
  /* スクロール時の干渉防止 */
  html {
    scroll-padding-top: var(--header-h-mobile);
  }
}

/* Old hero rules moved to final consolidated section */

/* ===== PC：見出し・CTAの底上げ ===== */
@media (min-width:1024px){
  .mobile-sticky-cta {
    display: none !important;
  }
  
  body {
    padding-bottom: 0;
  }
  
  h2.section-title{ 
    font-size: clamp(28px, 2.2vw, 32px); 
    line-height: 1.3; 
  }
  
  .cta-btn-primary{ 
    min-height: 52px; 
    padding: 12px 22px; 
    font-weight: 600; 
    font-size: 1.125rem;
  }
  
  .cta-btn-secondary,
  .cta-btn-outline {
    min-height: 52px; 
    padding: 12px 22px; 
    font-weight: 600; 
    font-size: 1.125rem;
  }
}

/* ===== スマホヒーロー最終仕上げ：強制センター＋余白圧縮（!important強化版） ===== */
@media (max-width:768px){
  /* ① 強制センター：ヒーロー内を縦並びflex */
  .hero .container,
  .hero .hero-content,
  .hero .hero-text,
  .hero .hero-inner{
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important; 
    text-align: center !important; 
    margin: 0 auto !important;
    width: 100% !important;
  }
  
  .hero h1,
  .hero h2,
  .hero .hero__title,
  .hero .hero-title{
    display: block !important; 
    margin: 0 auto 6px !important;
    max-width: 22ch !important;
    text-align: center !important;
    word-break: keep-all !important; 
    letter-spacing: normal !important; 
    white-space: normal !important;
  }

  /* TOPの補足文章もセンター揃えに */
  .hero p,
  .hero .hero-sub,
  .hero .hero__sub {
    display: block !important;
    text-align: center !important;
    margin: 0 auto 12px !important;
    max-width: 40ch !important;
  }

  .hero .hero-metrics,
  .hero .hero__metrics {
    margin: 0 !important;
    align-self: center !important;
  }

  /* ② 余白圧縮：ヒーロー末尾 と 次セクション頭 */
  .hero{ 
    padding-bottom: 4px !important; /* さらに圧縮 */
  }
  
  .hero .hero-cta,
  .hero .hero__ctaGroup{ 
    margin: 0 !important; 
    gap: 6px !important; /* CTA間の隙間も減らす */
    padding: 0 !important;
    margin-bottom: 0 !important; /* 下余白確実に0 */
  }
  
  .hero + section,
  section.hero + section{ 
    padding-top: 8px !important; /* 次セクションとの隙間も減らす */
    margin-top: 0 !important; 
  }

  /* 下固定CTAを使っている場合の下余白（最小限に） */
  body{ 
    padding-bottom: calc(48px + env(safe-area-inset-bottom)) !important; 
  }
}

/* スマホビュー専用の修正 */
@media (max-width: 768px) {
  
  /* ヘッダーの固定化と高さ設定 */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    height: 56px !important;
    background: white !important;
  }
  
  /* スクロール時の干渉防止 */
  html {
    scroll-padding-top: 56px !important;
  }
  
  /* ヒーローセクションの修正 */
  .hero {
    padding-top: 72px !important; /* ヘッダー高さ + 余白 */
    padding-bottom: 16px !important;
    text-align: center !important;
  }
  
  /* ヒーロー内のコンテナを中央揃え */
  .hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
  }
  
  /* タイトルの中央揃え */
  .hero .hero-title,
  .hero h2 {
    text-align: center !important;
    margin: 0 auto 16px !important;
    max-width: 90% !important;
    word-break: keep-all !important;
    line-height: 1.4 !important;
  }
  
  /* サブタイトルの中央揃え */
  .hero .hero-subtitle,
  .hero p {
    text-align: center !important;
    margin: 0 auto 24px !important;
    max-width: 90% !important;
    line-height: 1.6 !important;
  }
  
  /* メトリクスカードの中央揃え */
  .hero .hero-stats {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 auto 24px !important;
    width: 100% !important;
  }
  
  .hero .stat-item {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
    background: white !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }
  
  /* CTAボタンの中央揃えと余白調整 */
  .hero .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  
  .hero .cta-btn-primary,
  .hero .cta-btn-secondary {
    width: 100% !important;
    max-width: 280px !important;
    min-height: 48px !important;
    text-align: center !important;
  }
  
  /* ヒーロー直後のセクションの余白調整 */
  .hero + section {
    padding-top: 16px !important;
    margin-top: 0 !important;
  }
  
  /* 下固定CTAがある場合の下余白 */
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
  }
}

/* 超小画面での調整 */
@media (max-width: 480px) {
  .hero .hero-title,
  .hero h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  
  .hero .hero-subtitle,
  .hero p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  .hero .stat-item {
    max-width: 240px !important;
    padding: 12px !important;
  }
}

/* ---- tokens ---- */
:root{ --header-h-mobile:56px; }

/* ---- Mobile only ---- */
@media (max-width:768px){
  /* ヘッダー高さを基準化（被り対策） */
  .site-header{ height:var(--header-h-mobile); }

  /* ヒーロー：縦並び＋中央に一本化（min-heightは禁止） */
  .hero{
    display:flex; flex-direction:column; align-items:center;
    text-align:center;
    padding: calc(var(--header-h-mobile) + 12px) 0 12px; /* 上=ヘッダー分+α / 下=詰める */
    min-height:auto;
  }

  /* タイトル：厳密センター＋幅制御 */
  .hero h1,.hero h2,.hero .hero-title,.hero .hero__title{
    display:block; margin:0 auto 8px;
    max-width:22ch; /* 20–24chで微調整OK */
    word-break:keep-all; letter-spacing:normal; white-space:normal;
  }

  /* 補足テキスト */
  .hero .hero__sub{ font-size:15px; line-height:1.7; opacity:.9; max-width:40ch; margin:0 auto 12px; }

  /* メトリクス3つ：等幅等高 */
  .hero .hero__metrics{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:0 0 12px; }
  .hero .hero__metric{
    background:#fff; border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,.06);
    padding:10px 6px; min-height:70px; display:flex; flex-direction:column; justify-content:center; align-items:center;
  }

  /* CTA：下の余白を圧縮 */
  .hero .hero__ctaGroup{ display:flex; flex-direction:column; gap:8px; margin:0; width:100%; }
  .hero .hero__ctaGroup .btn, .hero .hero__ctaGroup .cta-btn-primary{ width:100%; min-height:48px; }

  /* 次セクションとの間延び防止 */
  .hero + section{ padding-top:16px !important; margin-top:0 !important; }

  /* 追従CTA使用時でも本文が隠れない最小の余白だけ残す */
  body{ padding-bottom:calc(48px + env(safe-area-inset-bottom)); }

  /* 追従CTA：SPで表示、横スクロール防止 */
  .mobile-sticky-cta{ 
    position: fixed; 
    left: 0; 
    right: 0; 
    bottom: 0;
    width: auto; 
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); 
    background: rgba(255,255,255,.95); 
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,.08); 
    z-index: 1000; 
    box-sizing: border-box;
  }
}

/* ---- Desktop safety (必要最低限の底上げ。既存に影響少) ---- */
@media (min-width:1024px){
  .cta-btn-primary{ min-height:52px; padding:12px 22px; font-weight:600; }
  .mobile-sticky-cta{ display: none !important; }
  body{ padding-bottom: 0; }
}

/* Old hero metrics rules removed - replaced by final rules below */

/* ===== CTAアクセシビリティ（フォーカス見える化） ===== */
:root{ --focus-ring: 0 0 0 3px rgba(76,175,80,.25); }
a.cta-btn-primary:focus-visible,
a.cta-btn-secondary:focus-visible,
a.cta-btn-outline:focus-visible,
button:focus-visible{
  outline:none;
  box-shadow: var(--focus-ring);
  transition: box-shadow .15s ease;
}

/* ===== ヒーロー実績ボックス最終決定ルール ===== */

/* --- 共通: 旧擬似要素での単位付与やダブりを無効化 --- */
.hero__metrics .num::before,
.hero__metrics .num::after,
.stat-number::before,
.stat-number::after { content: none !important; }

/* --- 共通: レイアウトと行揃えの土台 --- */
.hero__metrics{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px; align-items:stretch;
}
.hero__metric{
  box-sizing:border-box;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center;
  background:#fff; border:1px solid rgba(46,125,50,.10);
  border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.hero__metric, .hero__metric *{
  writing-mode: horizontal-tb; word-break: keep-all; letter-spacing: normal;
}
.hero__metric .num{
  display:flex; align-items:baseline; gap:4px;
  line-height:1; white-space:nowrap; font-weight:700;
}
.hero__metric .num .prefix{ font-size:0.875rem; opacity:.85; transform: translateY(-1px); order:0; }
.hero__metric .num .em{     font-size:1.625rem; font-weight:700; order:1; }
.hero__metric .num .unit{   font-size:0.875rem; opacity:.85; order:2; }
.hero__metric .label{ margin-top:6px; font-size:0.75rem; line-height:1.2; opacity:.75; }

/* --- スマホ --- */
@media (max-width:768px){
  .hero__metrics{ gap:8px; margin:0 auto 12px; max-width:400px; }
  .hero__metric{ min-height:84px; padding:10px 6px; }
  .hero__metric .num .em{ font-size:22px; }   /* 20–24pxで微調整OK */
}

/* --- PC --- */
@media (min-width:1024px){
  .hero__metrics{ gap:16px; margin:12px auto 16px; max-width:720px; }
  .hero__metric{ min-height:96px; padding:14px 10px; }
  .hero__metric .num .em{ font-size:28px; }
  .hero__metric .num .prefix,
  .hero__metric .num .unit{ font-size:15px; }
}

/* ===== ヒーロー実績カウントアップアニメーション ===== */
:root{
  --brand-green: #1a7f3b;          /* メインの緑 */
  --brand-green-weak: #2e7d32;     /* 予備 */
}

/* 旧実装の疑似要素による重複を無効化 */
.hero__metrics .num::before,
.hero__metrics .num::after,
.stat-number::before,
.stat-number::after { content: none !important; }

/* 数値の色とアニメ時の強調 */
.hero__metric .num .em{
  color: var(--brand-green);
  transition: transform .35s ease, color .2s ease;
}
.hero__metric.counting .num .em{ transform: translateY(-1px); }

/* 初期フェード（任意） */
.metric-animate{ opacity:0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.metric-animate.is-visible{ opacity:1; transform: translateY(0); }

/* 追加の見栄え（ボックスの高さは既存を尊重） */
.hero__metric{
  border: 1px solid rgba(26,127,59,.10);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* フォントサイズは上記の既存ルールを使用（重複を避ける） */