/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors */
    --color-primary: #d05c23;
    --color-primary-dark: #b84e1d;
    --color-bg: #f5f4f0;
    --color-bg-light: #fffbf7;
    --color-bg-accent: rgba(238, 136, 33, 0.1);
    --color-text-primary: #2b2b2b;
    --color-text-secondary: #3a3a3a;
    --color-text-tertiary: #6b5e5e;
    --color-text-muted: #8c8c8c;
    --color-white: #ffffff;
    --color-border: #e0e0e0;

    /* ScrollHint Overrides */
    --scroll-hint-icon-color: #fff;
    --scroll-hint-bg-color: rgba(0, 0, 0, 0.6);
    --color-border-light: #c9c9c9;

    /* Typography */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    /* Spacing */
    --container-width: 1440px;
    --container-padding: 80px;
    --section-spacing: 80px;

    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 8px 32px rgba(208, 92, 35, 0.15);

    /* Transitions */
    --transition-base: 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 0.04em;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    line-height: 1.8;
    overflow-x: hidden;
    background-image: url('../assets/images/background.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
}

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

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

ul {
    list-style: none;
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    line-height: 1.3;
    color: var(--color-text-primary);
}

.option-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 48px;
    line-height: 1.3;
}

.section-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 0;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 32px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-header {
    text-align: center;
    margin-bottom: 160px;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 24px 48px;
    gap: 16px;
}

.icon-sp {
    display: none;
}

.icon-pc {
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-text-primary);
    padding: 24px 48px;
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-small {
    padding: 11.5px 40px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 48px;
    font-size: 16px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background-color: transparent;
    padding: 28px 0 12px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo svg text {
    font-weight: 900;
}

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

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

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

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text-primary);
    transition: var(--transition-base);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1002;
    padding: 80px 32px 32px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav a {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-primary);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.mobile-nav a:hover {
    color: var(--color-primary);
}

.mobile-nav .btn-primary {
    border-bottom: none;
    margin-top: 16px;
    text-align: center;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   Side Floating Buttons
   ======================================== */
.side-floating {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 1;
    visibility: visible;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-floating.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-50%) translateX(30px) !important;
    pointer-events: none !important;
}

.floating-btn {
    width: 60px;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-base);
}

.vertical-text {
    writing-mode: vertical-rl;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
}

.download-btn {
    background-color: #d05c23;
    /* Matching the orange color from image */
    color: var(--color-white);
    height: 240px;
    /* Adjust height as needed */
    border-top-left-radius: 8px;
    /* Optional: adds a bit of style if needed, checking image */
}

/* Specific adjustment for icon in download button */
.download-btn img {
    margin-bottom: 4px;
}

.download-btn:hover {
    background-color: #b84d1b;
    transform: translateX(-4px);
}

.contact-btn {
    background-color: var(--color-white);
    color: #d05c23;
    /* Orange text color */
    height: 300px;
    /* Longer for the longer text */
    border-bottom-left-radius: 8px;
    border: 1px solid #e0e0e0;
    border-right: none;
}

.contact-btn:hover {
    background-color: #f5f5f5;
    transform: translateX(-4px);
}

.floating-btn svg {
    width: 20px;
    height: 20px;
    transform: rotate(-90deg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    margin-top: 88px;
    padding: 100px 0 160px;
    overflow: hidden;
}

.hero-bg-effects {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.ellipse {
    position: absolute;
    width: 1620px;
    height: 1620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 117, 39, 0.64) 0%, rgba(224, 117, 39, 0) 100%);
    opacity: 0.6;
    filter: blur(40px);
}

.ellipse-1 {
    top: -604px;
    right: -392px;
}

.ellipse-2 {
    top: 206px;
    left: -1040px;
}

.ellipse-3 {
    top: 438px;
    left: -161px;
}

.ellipse-4 {
    top: 438px;
    right: -200px;
}

.ellipse-5 {
    top: 2025px;
    right: -417px;
}

.ellipse-6 {
    top: 3870px;
    left: -1016px;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    margin-bottom: 100px;
}

.hero-badge {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 2.56px;
    line-height: 1.3;
    margin-bottom: 64px;
}

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

.hero-image {
    border-radius: 16px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* ========================================
   Solution Section
   ======================================== */
/* ========================================
   Section Image Container (Unified)
   ======================================== */
.section-image-container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.section-image-container img {
    width: 100%;
    max-width: 1280px;
    height: auto;
    position: relative;
}

.worry-image img {
    width: 100%;
    height: auto;
    position: relative;
}

.cta-button-center {
    text-align: center;
    margin: 64px 0 80px 0;
}

.note-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text-secondary);
    text-align: left;
    margin-top: 24px;
}

/* ========================================
   Mockup Section
   ======================================== */
.mockup-section {
    padding: var(--section-spacing) 0;
}

/* PC Version - Single Image */
.mockup-section-pc {
    display: block;
}

.mockup-image-pc {
    width: 100%;
    height: auto;
    border-radius: var(--radius-large);
}

/* SP Version - Auto Carousel with Snap */
.mockup-section-sp {
    display: none;
    overflow: hidden;
}

.mockup-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    scroll-padding: 7.5vw;
    /* Center the active slide */
    gap: 16px;
}

.mockup-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 85vw;
    /* Show partial slides on sides */
    width: 85vw;
    max-width: 85vw;
    height: auto;
    object-fit: contain;
    scroll-snap-align: center;
}

/* SP: Show carousel, hide PC version */
@media (max-width: 768px) {
    .mockup-section-pc {
        display: none;
    }

    .mockup-section-sp {
        display: block;
    }
}

/* ========================================
   Difference Section
   ======================================== */
.difference-section {
    padding: var(--section-spacing) 0;
}


.difference-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.difference-card h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
}

.difference-card p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.feature-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Difference Section */
.difference-images-pc,
.difference-images-sp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.difference-images-sp {
    display: none;
}

.difference-marker-top {
    width: auto;
    max-width: 1200px;
    height: 24px;
    margin-bottom: 32px;
    z-index: 2;
    position: relative;
}

.difference-items-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.difference-items-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.difference-item {
    flex: 1;
    max-width: 400px;
}

.difference-content {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .difference-images-pc {
        display: none;
    }

    .difference-images-sp {
        display: flex;
    }

    .difference-item {
        max-width: 100%;
    }
}

/* Price Plans Container */
.price-plans-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.price-plan-item {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.price-plan-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Standard plan (2nd item) - Orange drop shadow */
.price-plan-item:nth-child(2) img {
    filter: drop-shadow(0 0 24px rgba(208, 92, 35, 0.24));
}

@media (max-width: 768px) {
    .price-plans-container {
        flex-direction: column;
        gap: 32px;
    }

    .price-plan-item {
        max-width: 100%;
    }
}

/* Options Container */
.options-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.option-item {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.option-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide option notes on PC, show on SP below respective images */
.option-note {
    display: none;
}

/* Show PC notes on PC, hide on SP */
.option-notes-pc {
    display: block;
}

@media (max-width: 768px) {
    .options-container {
        flex-direction: column;
        gap: 24px;
    }

    .option-item {
        max-width: 100%;
    }

    /* Show option notes on SP */
    .option-note {
        display: block;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.6;
        color: var(--color-text-secondary);
        text-align: left;
        margin-top: 16px;
    }

    /* Add extra spacing after option-note-1 (40px total = 16px margin-bottom + 24px gap) */
    .option-note-1 {
        margin-bottom: 16px;
    }

    /* Hide PC notes on SP */
    .option-notes-pc {
        display: none;
    }
}

/* Flow Section */
.flow-image-pc {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.flow-image-pc img {
    width: 100%;
    height: auto;
}

.flow-images-sp {
    display: none;
}

@media (max-width: 768px) {
    .flow-image-pc {
        display: none;
    }

    .flow-images-sp {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .flow-step-image {
        width: 100%;
        height: auto;
    }
}

/* FAQ Section */
.faq-image-pc {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-image-pc img {
    width: 100%;
    height: auto;
}

.faq-images-sp {
    display: none;
}

@media (max-width: 768px) {
    .faq-image-pc {
        display: none;
    }

    .faq-images-sp {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .faq-item-image {
        width: 100%;
        height: auto;
    }
}

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
    padding: 64px 0;
    background-color: var(--color-bg-light);
}

.cta-banner-content {
    text-align: center;
}

.cta-banner-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 32px;
}

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

/* ========================================
   Price Section
   ======================================== */
.price-section {
    position: relative;
    padding: var(--section-spacing) 0;
    background-color: var(--color-bg-accent);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.price-card {
    background-color: var(--color-white);
    padding: 48px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
    transition: var(--transition-base);
    position: relative;
}

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

.price-card.featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-large);
}

.price-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.price-header h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
}

.price-tag {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 40px;
    font-weight: 900;
    color: var(--color-primary);
}

.price-tax {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin-left: 8px;
}

.price-period {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
}

.price-features li {
    position: relative;
    padding-left: 32px;
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 20px;
}

.price-card .btn-primary,
.price-card .btn-outline {
    width: 100%;
}

.option-header {
    text-align: center;
    margin-top: 80px;
}


/* ========================================
   Flow Section
   ======================================== */
.flow-section {
    padding: var(--section-spacing) 0;
}


.strong-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-bg-accent);
}



/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: var(--section-spacing) 0;
}



/* ========================================
   Final CTA Section
   ======================================== */

.final-cta-section {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
}

.final-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.final-cta-bg img {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    position: absolute;
    right: 0;
    top: 0;
}

.final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    /* Allow clicks to pass through to buttons but not block whole area if needed, though buttons are inside */
}

/* Ensure buttons are clickable */
.final-cta-buttons {
    pointer-events: auto;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 80px;
    /* Add space between text and buttons */
    margin-bottom: 0;
    /* Remove bottom margin as wrapper handles bottom positioning */
}

/* Wrapper to group text and buttons for alignment */
.final-cta-content-wrapper {
    position: absolute;
    bottom: 80px;
    width: 100%;
    /* Same left calculation as buttons before */
    left: calc((100vw - min(1440px, 100vw)) / 2 + var(--container-padding));
    pointer-events: none;
    /* Wrapper itself passes clicks */
    text-align: left;
}

.final-cta-content-wrapper h2 {
    font-size: 64px;
    font-weight: 900;
    line-height: 88px;
    /* 64px font + 16px gap between lines */
    margin-bottom: 48px;
    color: var(--color-text-primary);
    pointer-events: auto;
}

.final-cta-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #e07527;
    /* Orange color from design */
    margin-bottom: 0;
    pointer-events: auto;
}

@media (max-width: 1440px) {
    .final-cta-content-wrapper {
        left: var(--container-padding);
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: #222222;
    /* Dark gray background */
    color: var(--color-white);
    padding: 80px 0 40px;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align bottom */
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 40px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}

.social-link {
    display: block;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.footer-contact {
    display: grid;
    grid-template-columns: auto auto;
    /* Label and Value */
    gap: 8px 24px;
    align-items: center;
}

.contact-item {
    display: contents;
    /* Allows dt and dd to sit in the grid */
}

.contact-item dt {
    font-size: 14px;
    color: #888888;
    /* Muted text color */
    font-weight: 500;
}

.contact-item dd {
    font-size: 14px;
    color: var(--color-white);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-family: 'Poppins', sans-serif;
}

.footer-right {
    padding-bottom: 4px;
    /* Align visually with contact info text baseline */
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

/* Responsive Footer */
@media (max-width: 768px) {

    /* SP Background Image */
    body {
        background-image: url('../assets/images/sp/background.png');
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    .footer-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 64px;
    }

    .footer-social {
        margin-bottom: 48px;
    }

    .footer-contact {
        grid-template-columns: 1fr;
        /* Stack vertically on small screens if needed, or keep grid */
        gap: 16px;
    }

    .contact-item {
        display: block;
        margin-bottom: 8px;
    }

    .contact-item dt {
        display: inline-block;
        width: 100px;
    }

    .contact-item dd {
        display: inline-block;
    }

    .footer-links {
        flex-direction: column;
        /* Stack links on mobile if space is tight, or row wrap */
        gap: 16px;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    :root {
        --container-padding: 40px;
        --section-spacing: 80px;
    }

    .section-title {
        font-size: 48px;
    }

    .hero-title {
        font-size: 48px;
    }

    .difference-grid,
    .price-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
        --section-spacing: 60px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 28px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-header {
        margin-bottom: 80px;
    }

    .hero-buttons,
    .cta-banner-buttons,
    .final-cta-buttons {
        flex-direction: column;
    }

    /* Icon Switching for SP */
    .icon-pc {
        display: none !important;
    }

    .icon-sp {
        display: inline-block !important;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .side-floating {
        display: none;
    }

    .problems-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .flow-item {
        flex-direction: column;
        gap: 24px;
    }

    .flow-item::after {
        display: none;
    }

    .flow-number {
        width: 100px;
        height: 100px;
        font-size: 14px;
    }

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

    .final-cta-content h2 {
        font-size: 32px;
        margin-bottom: 32px;
    }

    /* SP CTA Section - Vertical Stack Layout */
    .final-cta-section {
        position: relative;
        height: auto !important;
        min-height: auto !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        background: linear-gradient(180deg, #FFFFFF 0%, #F5F1EE 100%);
        overflow: visible;
        margin: 0;
    }

    .final-cta-bg {
        position: relative !important;
        height: auto !important;
        width: 100%;
        z-index: auto;
        top: auto;
        left: auto;
        /* Increase height for SP to show more image content if needed, or rely on content */
        min-height: 400px;
    }

    .final-cta-bg img {
        width: 100%;
        height: auto;
        position: relative;
        object-fit: contain;
        object-position: center;
    }

    .final-cta-overlay {
        position: relative !important;
        min-height: auto;
        height: auto !important;
        background: transparent !important;
        padding: 0 0 64px 0;
        justify-content: flex-start;
        align-items: flex-start;
        top: auto;
        left: auto;
        width: 100%;
        z-index: auto;
    }

    .final-cta-content {
        text-align: left;
        max-width: 100%;
        padding: 0;
    }

    /* SP CTA padding */
    .final-cta-overlay .container {
        padding: 0 16px;
        max-width: 100%;
        margin: 0;
    }

    .final-cta-content-wrapper {
        position: relative !important;
        text-align: left;
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        bottom: auto;
        left: auto;
        padding: 0;
    }

    .final-cta-content-wrapper h2 {
        color: var(--color-text-primary);
        font-size: 32px;
        line-height: 1.6;
        margin-bottom: 16px;
        text-shadow: none;
    }

    .final-cta-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    .final-cta-buttons {
        flex-direction: column;
        gap: 16px;
        margin-top: 0;
        position: static;
        width: 100%;
        left: auto;
        bottom: auto;
        padding-bottom: 0;
    }

    .final-cta-buttons .btn-primary,
    .final-cta-buttons .btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}



/* Scroll animations will be handled by JavaScript */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}