@font-face {
    font-family: 'ビルの谷間と高架下 フリー版';
    src: url('../fonts/Buildingsandundertherailwaytracksfree_ver.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette */
    --color-base: #FFFFFF;
    --color-main: #00BFFF;
    /* Sky Blue / Turquoise approximation */
    --color-accent: #32CD32;
    /* Fresh Green */
    --color-line: #06C755;
    /* LINE Green */
    --color-text: #333333;
    --color-gray-light: #F5F5F5;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Font */
    --font-family-base: 'Noto Sans JP', sans-serif;
}

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

/* Global Styles for Sports Aesthetic */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: #f0f2f5;
    background-image:
        linear-gradient(45deg, #f0f2f5 25%, transparent 25%, transparent 75%, #f0f2f5 75%, #f0f2f5),
        linear-gradient(45deg, #f0f2f5 25%, transparent 25%, transparent 75%, #f0f2f5 75%, #f0f2f5);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    /* Subtle mesh/grid texture */
}

/* Typography Overhaul */
h1,
h2,
h3,
h4,
.section-title,
.hero-title,
.plan-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    /* More strong/impactful font if available */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.1em;
    display: block;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #06C755 0%, #04a546 100%);
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 800;
    transform: skewX(-5deg);
    /* Italic button */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: skewX(-5deg) scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.6);
    filter: brightness(1.1);
}

/* Header */
.site-header {
    padding: var(--spacing-md) 0;
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
    width: 100%;
    padding: 0 var(--spacing-md);
    /* Keep some padding from edge */
}

.logo {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    /* Dark text for header */
    text-align: left;
    margin: 0;
}

/* .logo img {
    height: 40px;
} REMOVED as logo is now text */

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    padding-top: 60px;
    padding-bottom: 10vw;
    /* Prevent clipping on bottom right */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
    margin-top: 0;
    z-index: 10;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 191, 255, 0.2) 100%);
    opacity: 0.3;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 120px;
    /* Shift down by approx 3cm */
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-logo {
        width: 520px;
        /* 130% of 400px */
    }
}

@media (min-width: 768px) {
    .hero-br {
        display: none;
    }

    .plan-br {
        display: none;
    }

    .mobile-br {
        display: none;
    }
}

.hero-logo-wrapper {
    margin-bottom: var(--spacing-xl);
}

.hero-logo {
    max-width: 90%;
    width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

@media (min-width: 768px) {
    .hero-logo {
        width: 800px;
        /* 200% size */
        max-width: 100%;
    }
}

/* Subtitle usually goes ABOVE logo in the user's sketch, but let's check.
   User image shows: Title -> Subtitle (small) -> Logo (LARGE) -> Button.
   Ah, wait.
   In the user's image:
   "撮っておけばよかったを無くす。" (Title)
   "大会オフィシャル動画撮影サービス" (Subtitle, overlapping the logo slightly or just above it)
   [LOGO: Camera + Zentori]
   [Green Button]

   Let's adjust HTML structure slightly if needed.
   Currently: Title -> Logo Wrapper (Logo -> Subtitle) -> Button.
   Looking closer at user request image:
   The subtitle "大会オフィシャル..." is clearly ON TOP of the logo or just above it.
   Let's keep the wrapper but maybe adjust order or padding.
*/

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: -20px;
    /* Slight overlap or close proximity */
    position: relative;
    z-index: 2;
    /* Ensure text is above logo if overlapping */
    display: inline-block;
    /* Or block */
    background: rgba(0, 0, 0, 0.3);
    /* Optional: semi-transparent background for readability if needed, but user image doesn't show it clearly. */
    padding: 2px 10px;
    border-radius: 4px;
}

.btn-large {
    font-size: 1.2rem;
    padding: var(--spacing-md) var(--spacing-xl);
    border-bottom: 4px solid #04923e;
    /* Darker green */
}

.btn-large:active {
    border-bottom: none;
    transform: translateY(4px);
}

/* Sections General */
.section {
    padding: calc(var(--spacing-xl) + 5vw) 0;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 calc(100% - 5vw));
    /* Diagonal cut */
    margin-top: -5vw;
    /* Overlap to hide gaps */
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    transform: skewX(-10deg);
    /* Skew for speed/dynamic feel */
    border-bottom: none;
    /* Remove old style */
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-main), var(--color-accent));
    margin-top: 5px;
    transform: skewX(20deg);
    /* Counter skewed line */
}

/* Problem / Solution */
.problem-solution {
    background-color: var(--color-gray-light);
}

.comparison {
    background: linear-gradient(135deg, #fff 0%, #f9fcff 100%);
}

.highlight-problem {
    color: #FF6347;
    /* Tomato */
}

.comparison-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center items vertically */
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    /* Wrap on mobile */
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    background-color: #fff;
    border-radius: 12px;
    padding: var(--spacing-lg);
    flex: 1;
    min-width: 280px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    /* Placeholder for border */
}

.comparison-card.problem {
    border-color: #ddd;
    background-color: #fcfcfc;
}

.comparison-card.solution {
    border-color: var(--color-main);
    background-color: #fff;
    transform: scale(1.05);
    /* Emphasize solution */
    box-shadow: 0 8px 16px rgba(0, 191, 255, 0.2);
    position: relative;
    z-index: 10;
}

.card-header h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.check-list .icon {
    font-size: 1.2rem;
    margin-right: var(--spacing-sm);
    font-weight: bold;
    min-width: 24px;
}

/* Problem Styles */
.problem .icon {
    color: #999;
}

.problem-list li {
    color: #666;
}

/* Solution Styles */
.solution .icon {
    color: var(--color-main);
}

.solution .text strong {
    color: var(--color-main);
    background: linear-gradient(transparent 70%, rgba(0, 191, 255, 0.2) 70%);
    /* Highlighter effect */
}

.comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-sm);
}

.arrow-icon {
    display: block;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 30px solid #ccc;
}

/* Concept / Merits */
.concept {
    background: #1a1a1a;
    color: #fff;
    clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.concept .section-title {
    color: #fff;
}

.concept .card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.concept .card-icon {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 15px var(--color-accent);
}

.concept .card h3 {
    color: var(--color-main);
}

.text-main {
    color: var(--color-main);
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.feature-card {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #E0F7FA;
    color: var(--color-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--spacing-md);
}

.feature-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Service Intro Section */
.service-intro {
    background-color: #f9f9f9;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gallery */
.gallery {
    background-color: #fff;
    z-index: 2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
}

.gallery-item img,
.gallery-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    border: none;
}

.gallery-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
    padding: 0 10px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-main);
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.gallery-item:hover .play-icon {
    background-color: #fff;
    color: var(--color-accent);
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #FFD700 0%, #FFF8E1 100%);
    /* Gold gradient */
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
    /* Flat bottom for flow? No, keep diagonal */
}

.section-subtitle {
    font-weight: 700;
    color: var(--color-main);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transform: skewX(-10deg);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.testimonials .section-title {
    margin-bottom: var(--spacing-xl);
}

.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    gap: var(--spacing-lg);
    justify-content: flex-start;
    /* Align to start */
    overflow-x: auto;
    /* Enable horizontal scroll */
    padding-bottom: var(--spacing-md);
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    padding: var(--spacing-md);
    /* Add padding so shadow isn't cut off */
}

/* Custom Scrollbar for Testimonials */
.testimonials-grid::-webkit-scrollbar {
    height: 8px;
}

.testimonials-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.testimonials-grid::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.voice-card {
    background-color: #fff;
    border-radius: 12px;
    padding: var(--spacing-lg);
    flex: 0 0 auto;
    /* Don't shrink, stick to width */
    width: 300px;
    /* Fixed width for scroll */
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.voice-header {
    border-bottom: 2px dotted #ccc;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.voice-role {
    font-size: 0.85rem;
    font-weight: bold;
    color: #888;
}

.voice-summary {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    color: var(--color-text);
}

.voice-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.highlight {
    background: linear-gradient(transparent 60%, #FFF3B8 60%);
    /* Yellow marker */
    font-weight: bold;
}

/* Pricing */
.pricing {
    background-color: #fff;
    clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%);
    /* Flat bottom for usage flow? */
}

.plan-container {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.basic-plan {
    border-top: 4px solid var(--color-main);
}

.basic-plan .plan-title,
.lite-plan .plan-title {
    font-family: 'ビルの谷間と高架下 フリー版', 'M PLUS Rounded 1c', sans-serif;
    font-size: 3rem;
}

.lite-plan {
    border-top: 4px solid var(--color-accent);
}

.plan-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-lg) * 0.3);
    /* Reduced to 30% of original space */
    color: var(--color-text);
    text-transform: none;
}

.plan-desc {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: #666;
    font-size: 0.95rem;
}

.plan-desc p {
    font-size: 1.3rem;
}

.plan-features {
    text-align: left;
    display: inline-block;
    margin-top: var(--spacing-sm);
    padding-left: 1.5rem;
}

.plan-features li {
    margin-bottom: 4px;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: var(--spacing-lg);
}

.pricing-table,
.option-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    /* Ensure readability on mobile */
}

.pricing-table th,
.pricing-table td,
.option-table th,
.option-table td {
    border: 1px solid #ccc;
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    vertical-align: middle;
}

.pricing-table th,
.option-table th {
    background-color: var(--color-main);
    font-weight: bold;
    color: #fff;
    border-color: var(--color-main);
}

.pricing-table tr:nth-child(even) td,
.option-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.pricing-table td,
.option-table td {
    font-size: 0.95rem;
}

.price {
    font-weight: bold;
    color: var(--color-text);
    font-size: 1.1rem;
}

.discount {
    color: #ff4500;
    font-weight: bold;
}

.options-wrapper {
    background-color: #fafafa;
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-top: var(--spacing-md);
}

.options-wrapper h4 {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    border-left: 4px solid #ddd;
    padding-left: var(--spacing-sm);
}

.recommend {
    background-color: #fffce6;
    /* Lite yellow highlight */
}

.badge {
    display: inline-block;
    background-color: #ff4500;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

.price-free {
    color: var(--color-accent);
    font-size: 1.1rem;
}

/* Option List for Lite Plan */
.option-list {
    list-style: none;
    padding: 0;
}

.option-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: var(--spacing-md);
    border: 1px solid #ccc;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.option-name {
    font-weight: bold;
}

.option-price {
    font-weight: bold;
    color: var(--color-text);
}

/* Usage Flow */
.flow {
    background-color: #F0F8FF;
    /* AliceBlue */
}

.flow-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Vertical Line */
.flow-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    /* Adjust based on icon size */
    width: 4px;
    height: 100%;
    background-color: #ddd;
    z-index: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-base);
    border: 4px solid var(--color-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-main);
    margin-right: var(--spacing-lg);
    flex-shrink: 0;
}

.step-content {
    background-color: #fff;
    padding: var(--spacing-lg);
    border-radius: 8px;
    flex-grow: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.step-content p {
    color: #666;
}

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

/* FAQ */
.faq {
    background-color: #fff;
    padding-bottom: 80px;
    /* Space for Sticky CTA */
}

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

.faq-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background-color: #fff;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    border-left: 5px solid var(--color-main);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-icon {
    transition: transform 0.3s;
}

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

.faq-question.active {
    background-color: var(--color-base);
    color: var(--color-main);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fcfcfc;
    border-top: 1px solid transparent;
}

.faq-question.active+.faq-answer {
    border-top-color: #ccc;
}

.faq-answer p {
    padding: var(--spacing-md) var(--spacing-lg);
    color: #555;
    line-height: 1.6;
}

/* Sticky CTA */
.sticky-cta {
    display: flex;
    /* Always show */
    position: fixed;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%) skewX(-5deg);
    /* Centering + Skew */
    width: 95%;
    max-width: 450px;
    background: linear-gradient(90deg, #06C755, #00d2ff);
    /* Gradient CTA */
    color: #fff;
    text-align: center;
    padding: var(--spacing-md);
    border-radius: 4px;
    /* Less rounded, more sporty */
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    animation: bounceIn 1s;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    border: 2px solid #fff;
}

.sticky-cta:hover {
    background-color: #05b34c;
    transform: translateX(-50%) skewX(-5deg) scale(1.02);
}

/* Show Sticky CTA only on mobile/tablet usually, or always if requested.
   User requirement: "Sticky CTA: A persistent button on mobile for LINE inquiries."
   So let's make it visible on smaller screens.
   User Update: Show on PC too.
*/
/* Removed redundant media query */

@keyframes bounceIn {
    0% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Footer */
.site-footer {
    background-color: #f0f2f5;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 60px;
    /* Space for sticky CTA */
    margin-top: -5vw;
    padding-top: calc(var(--spacing-lg) + 5vw);
    padding-bottom: var(--spacing-lg);
    position: relative;
    z-index: 0;
}

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

.footer-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.copyright {
    font-size: 0.85rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-logo {
        width: 110%;
        max-width: none;
        margin-left: 2%;
        margin-top: -20px;
    }

    .logo {
        font-size: 2.8vw;
    }

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

    .hero-subtitle {
        font-size: 0.96rem;
        margin-top: -30px;
    }

    .comparison-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        margin: var(--spacing-sm) 0;
    }

    .comparison-card.solution {
        transform: none;
    }

    .section {
        clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 calc(100% - 3vw));
        margin-top: -3vw;
        padding: calc(var(--spacing-xl) + 3vw) 0;
    }

    .hero {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
    }

    .hero {
        height: 70vh;
        min-height: auto;
    }

    .option-price {
        margin-left: auto;
        text-align: right;
    }

    .concept {
        clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
    }

    .concept .container {
        width: 95%;
        padding: 0 var(--spacing-sm);
    }

    /* Mobile card layout for pricing tables */
    .pricing-table,
    .option-table {
        min-width: 0;
        border: none;
    }

    .pricing-table thead,
    .option-table thead {
        display: none;
    }

    .pricing-table tbody,
    .option-table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .pricing-table tr,
    .option-table tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .pricing-table td,
    .option-table td {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 10px 16px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        font-size: 0.95rem;
    }

    .pricing-table td:last-child,
    .option-table td:last-child {
        border-bottom: none;
    }

    .pricing-table td:first-child,
    .option-table td:first-child {
        background: #f5f7fa;
        font-size: 1.05rem;
        padding: 12px 16px;
        border-bottom: 2px solid #e0e0e0;
    }

    .pricing-table td::before,
    .option-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #888;
        font-size: 0.85rem;
        flex-shrink: 0;
        width: 6em;
        margin-right: 12px;
    }

    .pricing-table td:first-child::before,
    .option-table td:first-child::before {
        display: none;
    }

    .option-table tr.recommend {
        border: 2px solid var(--color-main);
    }

    .option-table tr.recommend td:first-child {
        background: rgba(0, 162, 255, 0.08);
    }

    .table-responsive {
        overflow-x: visible;
    }

    .discount {
        margin-left: 0.5em;
    }

    .basic-plan .plan-title,
    .lite-plan .plan-title {
        line-height: 0.95;
        margin-bottom: calc(var(--spacing-lg) * 0.9) !important;
        /* Increase from the desktop values specifically on mobile */
    }

    .plan-container {
        padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
    }
}