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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 120px; /* Account for fixed header */
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;

    --secondary-50: #f0fdfa;
    --secondary-100: #ccfbf1;
    --secondary-200: #99f6e4;
    --secondary-300: #5eead4;
    --secondary-400: #2dd4bf;
    --secondary-500: #14b8a6;
    --secondary-600: #0d9488;
    --secondary-700: #0f766e;
    --secondary-800: #115e59;
    --secondary-900: #134e4a;

    --accent-50: #fef7ff;
    --accent-100: #fce7ff;
    --accent-200: #f8d4fe;
    --accent-300: #f2b2fc;
    --accent-400: #e879f9;
    --accent-500: #d946ef;
    --accent-600: #c026d3;
    --accent-700: #a21caf;
    --accent-800: #86198f;
    --accent-900: #701a75;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 50%, var(--accent-600) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-500) 0%, var(--accent-500) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--primary-500) 100%);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--secondary-700) 50%, var(--accent-700) 100%);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

.btn-outline:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
}

.header.loaded {
    transform: translateY(0);
    opacity: 1;
    animation: fadeInDown 0.8s ease-out;
}

.header.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.visible {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(255, 255, 255, 1) 50%, var(--secondary-50) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    width: 80px;
    height: 80px;
    background: var(--primary-400);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-2 {
    width: 60px;
    height: 60px;
    background: var(--secondary-400);
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.floating-3 {
    width: 40px;
    height: 40px;
    background: var(--accent-400);
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--gray-600);
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0;
    animation: slideUp 1s ease-out 0.7s forwards;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    opacity: 0;
    animation: slideUp 1s ease-out 0.9s forwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: slideUp 1s ease-out 1.1s forwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-600);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-600);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 24px;
        opacity: 0;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.feature-content p {
    color: var(--gray-600);
    margin: 0;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient-secondary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: var(--primary-600);
    margin-left: 4px;
}

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

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-card.featured {
    border: 2px solid var(--primary-200);
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-600);
    font-weight: bold;
}

.service-price {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--gray-600);
}

.service-price span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-600);
}

/* Profile Section */
.profile {
    background: var(--gray-50);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.profile-image {
    position: relative;
}

.profile-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.profile-image .image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--gradient-accent);
    border-radius: 1rem;
    position: relative;
}

.profile-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-600);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.profile-title {
    font-size: 1.25rem;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.profile-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.profile-story p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.achievements {
    margin: 2rem 0;
}

.achievements h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.achievements ul {
    list-style: none;
}

.achievements li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.achievements li:before {
    content: '🏆';
    position: absolute;
    left: 0;
}

.profile-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-700);
    border-left: 4px solid var(--primary-200);
    padding-left: 1.5rem;
    margin: 2rem 0;
    background: var(--primary-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

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

.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}

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

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating span {
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-info strong {
    display: block;
    color: var(--gray-900);
    font-weight: 600;
}

.author-info span {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.testimonial-result {
    background: var(--secondary-50);
    color: var(--secondary-800);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
}

/* Contact Section */
.contact {
    background: var(--gray-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.business-hours p {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.contact-note {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--primary-50);
    border-radius: 0.5rem;
}

.contact-note p {
    color: var(--primary-700);
    font-size: 0.875rem;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 1.125rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .about-content,
    .profile-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 0.5rem 0;
        display: block;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

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

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

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

    body.menu-open {
        overflow: hidden;
    }

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

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

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .profile-image .image-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 0.75rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .service-card,
    .testimonial-card,
    .contact-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding-top: 6rem;
    min-height: 100vh;
    background: var(--gray-50);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.legal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.legal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.legal-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.legal-meta {
    font-size: 0.875rem;
    opacity: 0.8;
}

.legal-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.legal-body {
    padding: 3rem 2rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-200);
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-700);
    margin: 1.5rem 0 1rem 0;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-table {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.legal-row {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
}

.legal-row:last-child {
    border-bottom: none;
}

.legal-label {
    background: var(--gray-100);
    color: var(--gray-800);
    font-weight: 600;
    padding: 1rem;
    width: 30%;
    min-width: 120px;
    border-right: 1px solid var(--gray-200);
}

.legal-value {
    padding: 1rem;
    flex: 1;
    color: var(--gray-700);
}

.pricing-info {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-item {
    background: var(--gray-50);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.pricing-item h3 {
    color: var(--primary-600);
    margin-top: 0;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 1rem;
}

.price-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-200);
}

.payment-methods {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.payment-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-style: italic;
}

.delivery-info {
    background: var(--secondary-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-400);
}

.refund-policy {
    background: var(--primary-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.disclaimer {
    background: var(--accent-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent-400);
}

.legal-link {
    color: var(--primary-600);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--primary-800);
}

.other-terms {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.contact-info {
    background: var(--primary-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--primary-200);
}

.legal-footer {
    background: var(--gray-100);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.legal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Privacy Policy Specific Styles */
.info-category,
.purpose-category {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-200);
}

.security-measures {
    background: var(--secondary-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-400);
}

.cookie-types {
    background: var(--accent-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent-400);
}

.customer-rights {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.right-item {
    background: var(--primary-50);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-400);
}

.right-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-700);
}

.right-item p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.rights-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--gray-300);
}

.manager-info {
    background: var(--secondary-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--secondary-200);
}

.external-contact {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--gray-300);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

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

@media (max-width: 1024px) {
    .section-padding {
        padding: 4rem 0;
    }

    .about-content,
    .profile-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .legal-table {
        display: block;
    }

    .legal-row {
        display: block;
        border-bottom: 1px solid var(--gray-200);
    }

    .legal-label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        background: var(--primary-100);
        color: var(--primary-800);
    }

    .legal-value {
        width: 100%;
    }

    .customer-rights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 80px; /* ナビゲーションバーの高さ分確保 */
    }

    .hero-content {
        padding: 8rem 1.5rem 2rem;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: calc(100vh - 80px);
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.75rem, 10vw, 4rem);
        margin-bottom: 2rem;
        line-height: 1.1;
        text-align: center;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .hero-subtitle {
        font-size: clamp(1.125rem, 4.5vw, 1.375rem);
        margin-bottom: 3rem;
        line-height: 1.6;
        text-align: center;
        padding: 0 1rem;
        color: var(--gray-600);
        font-weight: 400;
    }

    .hero-main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        margin-bottom: auto;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 1.125rem 2rem;
        font-size: 1.125rem;
        font-weight: 600;
        min-height: 56px; /* タッチターゲット最適化 */
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
        margin-top: auto;
    }

    .stat {
        text-align: center;
        padding: 0.875rem 0.5rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 0.875rem;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: var(--shadow-lg);
    }

    .stat-number {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
        display: block;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .stat-label {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--gray-700);
        line-height: 1.2;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .profile-image {
        order: 1;
    }

    .profile-text {
        order: 2;
    }

    .profile-image .image-placeholder {
        height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Legal Pages Mobile */
    .legal-page {
        padding-top: 5rem;
    }

    .legal-content {
        margin: 1rem;
        border-radius: 0.5rem;
    }

    .legal-header {
        padding: 2rem 1.5rem;
    }

    .legal-body {
        padding: 2rem 1.5rem;
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .legal-actions {
        flex-direction: column;
        align-items: center;
    }

    .legal-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .pricing-info {
        gap: 1rem;
    }

    .pricing-item {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 0.875rem 1rem;
        height: 70px; /* ナビゲーションバーの高さを明確化 */
    }

    .logo {
        font-size: 1.75rem;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 0;
        min-height: 100vh;
        padding-top: 70px; /* ナビゲーションバーの高さに合わせて調整 */
    }

    .hero-content {
        padding: 7.5rem 1rem 2rem;
        justify-content: space-between;
        min-height: calc(100vh - 70px);
    }

    .hero-title {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
        margin-bottom: 1.75rem;
        padding: 0 0.5rem;
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1.05;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
        color: var(--gray-600);
    }

    .hero-buttons {
        margin-bottom: auto;
        padding: 0 0.5rem;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        max-width: 300px;
        padding: 1rem 1.75rem;
        font-size: 1.05rem;
        font-weight: 600;
        min-height: 52px;
    }

    .hero-stats {
        max-width: 100%;
        gap: 0.625rem;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 0.75rem;
    }

    .stat {
        padding: 1rem 0.5rem;
        border-radius: 0.75rem;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .stat-number {
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .feature-icon {
        align-self: center;
    }

    .service-card,
    .testimonial-card,
    .contact-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

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

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Legal Pages Small Mobile */
    .legal-header {
        padding: 1.5rem 1rem;
    }

    .legal-title {
        font-size: 1.75rem;
    }

    .legal-subtitle {
        font-size: 1rem;
    }

    .legal-body {
        padding: 1.5rem 1rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-footer {
        padding: 1.5rem 1rem;
    }

    .info-category,
    .purpose-category,
    .security-measures,
    .cookie-types,
    .pricing-item,
    .refund-policy,
    .payment-methods,
    .delivery-info,
    .disclaimer,
    .other-terms,
    .contact-info,
    .manager-info,
    .external-contact {
        padding: 1rem;
    }

    .right-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 0.875rem;
        height: 65px;
    }

    .hero {
        min-height: 100vh;
        padding: 0;
        padding-top: 65px; /* ナビゲーションバーの高さに調整 */
    }

    .hero-content {
        padding: 7.5rem 0.875rem 1.5rem;
        min-height: calc(100vh - 65px);
        justify-content: space-between;
    }

    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3rem);
        line-height: 1.05;
        margin-bottom: 1.5rem;
        padding: 0 0.25rem;
        font-weight: 800;
        letter-spacing: -0.05em;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.125rem);
        line-height: 1.4;
        margin-bottom: 2.25rem;
        padding: 0 0.25rem;
        max-width: 98%;
        color: var(--gray-600);
    }

    .hero-buttons {
        margin-bottom: auto;
        gap: 0.875rem;
        padding: 0 0.25rem;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        min-height: 48px;
    }

    .hero-stats {
        max-width: 100%;
        gap: 0.5rem;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 0.5rem;
    }

    .stat {
        padding: 0.875rem 0.375rem;
        border-radius: 0.625rem;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .stat-number {
        font-size: 1.375rem;
        margin-bottom: 0.125rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .stat-label {
        font-size: 0.6rem;
        font-weight: 600;
        color: var(--gray-700);
        line-height: 1.1;
    }

    .scroll-indicator {
        bottom: 1rem;
        scale: 0.75;
        opacity: 0.8;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-story p {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Ultra-small screens */
    .legal-content {
        margin: 0.5rem;
        border-radius: 0.25rem;
    }

    .legal-header {
        padding: 1rem;
    }

    .legal-title {
        font-size: 1.5rem;
    }

    .legal-body {
        padding: 1rem;
    }

    .legal-section {
        margin-bottom: 1.5rem;
    }

    .legal-footer {
        padding: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-size: cover;
    }

    .floating-element {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 0.5rem 0;
    }

    .hero-content {
        padding: 1rem 2rem;
        min-height: calc(100vh - 60px);
        justify-content: center;
        gap: 1rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        margin-bottom: 0.75rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: clamp(0.875rem, 2.5vw, 1.125rem);
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        max-width: 200px;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 500px;
        gap: 1rem;
        margin: 0 auto;
    }

    .stat {
        padding: 0.5rem;
        border-radius: 0.5rem;
        background: rgba(255, 255, 255, 0.08);
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }

    .nav-link:hover {
        color: var(--primary-600);
    }

    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: 0.75rem 0.5rem;
    }

    .hamburger {
        padding: 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }
}

/* Print Styles */
/* Service Overview, Details, Process Sections */
.service-overview,
.service-details,
.service-process,
.success-stories,
.service-pricing,
.service-faq,
.application {
    position: relative;
    z-index: 1;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.overview-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.overview-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.key-benefits {
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.benefit-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

.overview-image {
    position: relative;
}

.image-caption {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Service Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.detail-card.featured {
    border: 2px solid var(--primary-300);
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
}

.detail-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.detail-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.detail-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.detail-card p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.detail-features {
    list-style: none;
    margin: 0;
}

.detail-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.detail-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-600);
    font-weight: bold;
}

/* Process Timeline */
.process-timeline {
    margin-top: 3rem;
    position: relative;
    padding-left: 2rem;
}

.process-timeline:before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: var(--gray-300);
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    min-height: 120px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.step-content p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    flex: 1;
}

.step-duration {
    font-size: 0.875rem;
    color: var(--primary-600);
    font-weight: 600;
}

/* Success Stories */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.story-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.story-result {
    background: var(--gradient-primary);
    padding: 2rem;
    text-align: center;
    color: white;
}

.result-metric {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-metric span {
    font-size: 2.5rem;
    display: block;
    margin-top: 0.5rem;
}

.result-period {
    font-size: 1rem;
    opacity: 0.9;
}

.story-content {
    padding: 2rem;
}

.story-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.story-content p {
    color: var(--gray-700);
    line-height: 1.6;
    font-style: italic;
}

.story-details {
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.detail-item {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.detail-item strong {
    color: var(--gray-700);
}

/* Pricing Card */
.pricing-card-wrapper {
    max-width: 600px;
    margin: 3rem auto 0;
}

.pricing-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 2px solid var(--primary-300);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.pricing-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.currency {
    font-size: 2rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
}

.period {
    font-size: 1.5rem;
    opacity: 0.9;
}

.pricing-description {
    font-size: 1.125rem;
    opacity: 0.9;
}

.pricing-features {
    padding: 2.5rem;
}

.pricing-features h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.pricing-features ul {
    list-style: none;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-notes {
    padding: 0 2.5rem 1.5rem;
}

.pricing-notes h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.notes-list {
    list-style: none;
    margin: 0;
}

.notes-list li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.notes-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

.pricing-action {
    padding: 2.5rem;
    background: var(--gray-50);
}

.btn-full {
    width: 100%;
}

.pricing-guarantee {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* FAQ Styles */
.faq-list {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: var(--gray-50);
}

.faq-item.open .faq-question {
    background: var(--primary-50);
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    padding-right: 1rem;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--gray-500);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-600);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

/* Application Form Styles */
.application-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.application-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.consultation-benefits ul,
.consultation-flow {
    margin-top: 1rem;
}

.consultation-benefits li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    position: relative;
    padding-left: 1.5rem;
}

.consultation-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-600);
    font-weight: bold;
}

.flow-steps {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flow-number {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.flow-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.flow-step:not(:last-child):after {
    content: '→';
    margin-left: 0.5rem;
    color: var(--gray-400);
}

.consultation-form {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.checkbox-group {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-600);
    text-decoration: underline;
}

.form-note {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Mobile Responsive Adjustments for Service Pages */
@media (max-width: 768px) {
    .service-hero {
        padding-top: 8rem;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .service-hero-title {
        font-size: 2rem;
    }

    .service-hero-subtitle {
        font-size: 1.125rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .service-hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .service-hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .process-timeline {
        padding-left: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-timeline:before {
        display: none;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
        padding: 2rem;
        background: white;
        border-radius: 1rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--gray-200);
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .process-step:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }

    .process-step .step-number {
        margin-bottom: 1rem;
    }

    .process-step .step-content {
        text-align: center;
    }

    .process-step:not(:last-child)::after {
        content: '↓';
        position: absolute;
        bottom: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.5rem;
        color: var(--primary-600);
        font-weight: bold;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        40% {
            transform: translateX(-50%) translateY(-5px);
        }
        60% {
            transform: translateX(-50%) translateY(-3px);
        }
    }

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

    .application-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .consultation-form {
        padding: 1.5rem;
    }

    .pricing-header {
        padding: 2rem 1rem;
    }

    .pricing-features,
    .pricing-notes,
    .pricing-action {
        padding: 1.5rem;
    }

    .flow-steps {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-step:not(:last-child):after {
        content: '↓';
        position: absolute;
        left: 13px;
        top: 35px;
    }
}

@media print {
    .header,
    .footer,
    .legal-footer,
    .floating-element,
    .scroll-indicator {
        display: none;
    }

    .legal-page {
        padding-top: 0;
    }

    .legal-content {
        box-shadow: none;
        border: 1px solid #000;
    }

    .legal-header {
        background: none;
        color: #000;
        border-bottom: 2px solid #000;
    }

    .legal-body {
        color: #000;
    }

    .btn {
        display: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        display: none;
    }

    .floating-element {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #000;
        color: #fff;
    }

    .btn-outline {
        border: 2px solid #000;
        color: #000;
    }

    .legal-table,
    .legal-row {
        border-color: #000;
    }
}

/* Services Page Styles */
.services-hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(255, 255, 255, 1) 50%, var(--secondary-50) 100%);
    padding: 8rem 0 4rem;
    padding-top: 10rem; /* ナビゲーションバーの高さを考慮 */
    position: relative;
    overflow: hidden;
}

/* Service Hero Styles (個別コンサルティングページ用) */
.service-hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(255, 255, 255, 1) 50%, var(--secondary-50) 100%);
    padding: 8rem 0 4rem;
    padding-top: 10rem; /* ナビゲーションバーの高さを考慮 */
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.service-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.service-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.service-hero-title .gradient-text {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 0.5rem;
}

.service-hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-hero-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.price-label {
    font-size: 1.25rem;
    color: var(--gray-600);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-600);
}

.price-tax {
    font-size: 1rem;
    color: var(--gray-500);
}

.service-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.services-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.services-hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--gray-600);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.services-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

/* Service Detail Cards */
.service-detail-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 3rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    position: relative;
}

.service-detail-card.featured {
    border: 2px solid var(--primary-300);
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.service-detail-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-detail-icon.individual {
    background: var(--gradient-primary);
}

.service-detail-icon.community {
    background: var(--gradient-secondary);
}

.service-detail-icon.corporate {
    background: var(--gradient-accent);
}

.service-detail-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.service-detail-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.service-detail-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.service-detail-price {
    text-align: right;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-600);
    display: block;
}

.price-period {
    color: var(--gray-600);
    font-size: 1rem;
}

.service-detail-content {
    padding: 2.5rem;
}

.service-description {
    margin-bottom: 3rem;
}

.service-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.service-description p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
}

/* Service Features */
.service-features-detailed {
    margin-bottom: 3rem;
}

.service-features-detailed h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

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

.feature-detailed {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.feature-detailed-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-detailed h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-detailed p {
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-detailed ul {
    list-style: none;
    margin: 0;
}

.feature-detailed li {
    padding: 0.25rem 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 1.5rem;
}

.feature-detailed li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-600);
    font-weight: bold;
}

/* Process Steps */
.service-process {
    margin-bottom: 3rem;
}

.service-process h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.process-steps {
    display: grid;
    gap: 1.5rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.step-content p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Target Audience */
.service-target {
    margin-bottom: 3rem;
}

.service-target h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.target-list {
    display: grid;
    gap: 0.75rem;
}

.target-item {
    background: var(--primary-50);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: var(--primary-800);
    font-weight: 500;
    border-left: 4px solid var(--primary-400);
}

/* Community Benefits */
.community-benefits {
    margin-bottom: 3rem;
}

.community-benefits h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-50);
    border-radius: 1rem;
    border: 1px solid var(--secondary-200);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-800);
}

.benefit-item p {
    color: var(--secondary-700);
    font-size: 0.875rem;
}

/* Training Types */
.training-types {
    margin-bottom: 3rem;
}

.training-types h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.training-type {
    background: var(--accent-50);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--accent-200);
}

.training-type h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-800);
}

.training-type p {
    color: var(--accent-700);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.training-type ul {
    list-style: none;
    margin: 0;
}

.training-type li {
    padding: 0.25rem 0;
    color: var(--accent-600);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.875rem;
}

.training-type li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-500);
    font-weight: bold;
}

/* Service Actions */
.service-action {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-800);
}

.feature-column {
    text-align: left !important;
    background: var(--gray-50) !important;
    font-weight: 600;
    color: var(--gray-900);
    min-width: 200px;
}

.service-column.individual {
    background: var(--primary-50);
    color: var(--primary-800);
}

.service-column.community {
    background: var(--secondary-50);
    color: var(--secondary-800);
}

.service-column.corporate {
    background: var(--accent-50);
    color: var(--accent-800);
}

.service-column.featured {
    background: var(--secondary-100);
    position: relative;
}

.service-column.featured:after {
    content: '人気No.1';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-600);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-name {
    text-align: left;
    background: var(--gray-50);
    font-weight: 500;
    color: var(--gray-800);
}

.service-value {
    font-weight: 500;
}

.service-value.featured {
    background: var(--secondary-50);
    color: var(--secondary-800);
    font-weight: 600;
}

/* Application Process */
.process-flow {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.flow-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.flow-step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2rem;
    flex-shrink: 0;
}

.flow-step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.flow-step-content p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-details span {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.application-cta {
    text-align: center;
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    margin-top: 2rem;
}

.application-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.application-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.application-cta .btn {
    background: white;
    color: var(--primary-600);
}

.application-cta .btn:hover {
    background: var(--gray-100);
}

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

.faq-category {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.faq-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-600);
    border-bottom: 2px solid var(--primary-200);
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Active Navigation */
.nav-link.active {
    color: var(--primary-600);
    font-weight: 600;
}

.nav-link.active:after {
    width: 100%;
}

/* Section padding for proper anchor positioning */
section[id] {
    scroll-margin-top: 120px;
}

/* Services Detail Link */
.services-detail-link {
    margin-top: 4rem;
    padding: 3rem 0;
    position: relative;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 50%, var(--accent-50) 100%);
    border-radius: 2rem;
    overflow: hidden;
}

.detail-link-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.detail-link-content {
    flex: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.detail-link-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-link-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-gradient-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.btn-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient-primary:hover::before {
    left: 100%;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-gradient-primary .icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-gradient-primary:hover .icon {
    transform: translateX(4px);
}

.detail-link-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.decoration-element:nth-child(1) {
    width: 120px;
    height: 120px;
    background: var(--primary-400);
    top: -20px;
    right: -20px;
    animation: float 6s ease-in-out infinite;
}

.decoration-element:nth-child(2) {
    width: 80px;
    height: 80px;
    background: var(--secondary-400);
    bottom: -10px;
    left: -10px;
    animation: float 4s ease-in-out infinite reverse;
}

.decoration-element:nth-child(3) {
    width: 60px;
    height: 60px;
    background: var(--accent-400);
    top: 50%;
    left: 20px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive scroll padding for mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 100px;
    }
    
    section[id] {
        scroll-margin-top: 100px;
    }
    
    /* Mobile styles for services detail link */
    .services-detail-link {
        margin-top: 2rem;
        padding: 2rem 1rem;
        border-radius: 1rem;
    }
    
    .detail-link-content h3 {
        font-size: 1.375rem;
    }
    
    .detail-link-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-gradient-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .decoration-element:nth-child(1) {
        width: 80px;
        height: 80px;
    }
    
    .decoration-element:nth-child(2) {
        width: 60px;
        height: 60px;
    }
    
    .decoration-element:nth-child(3) {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Responsiveness for Services */
@media (max-width: 768px) {
    .services-hero {
        padding: 6rem 0 3rem;
    }

    .services-hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }

    .hero-stat {
        padding: 1rem;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .service-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .service-detail-price {
        text-align: center;
    }

    .service-detail-content {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefits-grid,
    .training-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-steps {
        gap: 1rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .flow-step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .flow-step-number {
        margin: 0 auto;
    }

    .step-details {
        justify-content: center;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-table-wrapper {
        border-radius: 0.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .service-detail-card {
        margin: 0 -1rem 2rem;
        border-radius: 0;
    }

    .service-detail-header {
        padding: 1.5rem;
    }

    .service-detail-icon {
        width: 60px;
        height: 60px;
    }

    .service-detail-icon svg {
        width: 30px;
        height: 30px;
    }

    .service-detail-title h2 {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .application-cta {
        padding: 2rem 1rem;
        margin: 1rem -1rem 0;
        border-radius: 0;
    }
}
