:root {
    --primary-color: #0f4c75;
    --primary-dark: #1b262c;
    --secondary-color: #3282b8;
    --accent-color: #00b894;
    --accent-hover: #00a383;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

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

ul {
    list-style: none;
}

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

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

.mb-4 {
    margin-bottom: 30px;
}

.mb-5 {
    margin-bottom: 50px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin-top: 15px;
}

.text-center .section-title::after {
    margin: 15px auto 0;
}

/* Button & Badge */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 20px 60px;
    font-size: 1.3rem;
}

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

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

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.shadow-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 184, 148, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0);
    }
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1px;
}

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

.nav a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav a:not(.btn):hover {
    color: var(--secondary-color);
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6fffb 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    background: var(--primary-dark);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.text-gradient {
    background: linear-gradient(to right, #0f4c75, #00b894);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-note {
    font-size: 0.8rem;
    margin-top: 10px;
    color: #999;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.process-step {
    background: #f0f4f8;
    padding: 10px 20px;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.process-step i {
    width: 20px;
    text-align: center;
}

.arrow {
    color: #ccc;
}

.status-box {
    margin-top: 10px;
    background: #e6fffa;
    color: #00b894;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: rgba(50, 130, 184, 0.2);
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(0, 184, 148, 0.2);
    bottom: -50px;
    left: -50px;
}

/* Pain Points */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.warning {
    background: #fff5f5;
    color: #ff6b6b;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Solution & AI */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.illustration-box {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    position: relative;
    color: var(--primary-color);
}

.ai-illustration {
    color: var(--accent-color);
}

.floating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 10;
    /* Ensure it stays on top of images */
}

.lead {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
}

.check-list i {
    color: var(--accent-color);
}

.example-box {
    background: #e6fffb;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid var(--accent-color);
}

/* Benefits */
.benefits {
    background: var(--primary-dark);
    color: var(--white);
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.7);
}

.number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: -20px;
    margin-left: -10px;
}

/* Workflow */
.workflow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-item {
    background: var(--white);
    padding: 20px;
    width: 160px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.flow-item.highlight {
    border: 2px solid var(--accent-color);
    background: #f0fffa;
}

.flow-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.highlight .flow-icon {
    color: var(--accent-color);
}

.flow-arrow {
    color: #ccc;
    font-size: 1.5rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-dark);
}

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

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust if needed */
}

.icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6fffb 100%);
    padding: 100px 0;
}

/* Footer */
.footer {
    padding: 30px 0;
    background: var(--white);
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}

/* Image Stack for Screenshots */
.image-stack {
    position: relative;
    height: 100%;
    min-height: 400px;
    width: 100%;
    /* Flex box is not needed for centering absolute items, but kept for safety */
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-img {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    max-width: 90%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
}

/* Center basis: translate(-50%, -50%) then offset */
.main-img {
    z-index: 2;
    transform: translate(-50%, -50%) translateX(-30px) translateY(-20px);
    width: 80%;
}

.sub-img {
    z-index: 1;
    transform: translate(-50%, -50%) translateX(30px) translateY(20px) scale(0.95);
    opacity: 0.9;
    width: 80%;
}

.image-stack:hover .main-img {
    transform: translate(-50%, -50%) translateX(-40px) translateY(-30px);
}

.image-stack:hover .sub-img {
    transform: translate(-50%, -50%) translateX(40px) translateY(30px) scale(0.95);
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 220px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-visual {
        margin-top: 40px;
    }

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

    /* Increase specificity to ensure flex display overrides grid */
    .row.reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        /* Fix: Prevent width collapse of absolute-content containers */
    }

    .col-image,
    .col-text {
        width: 100%;
    }

    .workflow-diagram {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    /* Image Stack Mobile */
    .image-stack {
        min-height: 300px;
        /* Slightly increased for visibility */
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .main-img {
        transform: translate(-50%, -50%) translateX(-10px) translateY(-10px);
        width: 85%;
    }

    .sub-img {
        transform: translate(-50%, -50%) translateX(10px) translateY(10px) scale(0.95);
        width: 85%;
    }

    .image-stack:hover .main-img {
        transform: translate(-50%, -50%) translateX(-10px) translateY(-10px);
    }

    .image-stack:hover .sub-img {
        transform: translate(-50%, -50%) translateX(10px) translateY(10px) scale(0.95);
    }
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(150%);
    animation: slideUp 0.5s ease 1s forwards;
}

.sticky-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        justify-content: center;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    }

    .sticky-text {
        font-size: 0.9rem;
    }

    .sticky-cta .btn {
        width: 100%;
    }
}