:root {
    /* Colors */
    --color-bg: #F9FAFB;
    --color-surface: #FFFFFF;
    --color-text: #111827;
    --color-text-light: #6B7280;
    --color-primary: #4F46E5;
    /* Indigo 600 */
    --color-primary-hover: #4338CA;
    --color-secondary: #E0E7FF;
    --color-secondary-text: #4338CA;
    --color-border: #E5E7EB;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Radius */
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Responsive Line Breaks */
.br-pc {
    display: block;
}

.br-sp {
    display: none;
}

@media (max-width: 768px) {
    .br-pc {
        display: none;
    }

    .br-sp {
        display: block;
    }
}

.narrow {
    max-width: 800px;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-secondary-text);
}

.btn-secondary:hover {
    background: #dbeafe;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    background: var(--color-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.badge {
    background: var(--color-text);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
    color: var(--color-primary);
}

/* Hero */
.hero {
    padding-top: 140px;
    /* Header height + space */
    padding-bottom: var(--space-xl);
    background: radial-gradient(circle at top right, #eef2ff, transparent 40%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin: 1.5rem 0 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}

/* Image Mockup */
.mockup-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.mockup-image:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-card {
    position: absolute;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.float-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 10%;
    left: -20px;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Sections */
.section {
    padding: var(--space-xl) 0;
}

.problems {
    background: white;
}

.problems-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: var(--space-md);
}

.problem-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    flex: 1 1 300px;
    max-width: 400px;
}

.problem-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.abstract-shape {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary), #bfdbfe);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--space-md);
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
    display: inline-block;
}

.feature-icon {
    font-size: 3rem;
    /* Fallback */
    margin-bottom: 1rem;
    display: inline-flex;
    /* Changed from block to inline-flex for SVG centering */
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
}

.process-steps {
    max-width: 800px;
    margin: var(--space-md) auto 0;
    position: relative;
    padding-left: 2rem;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.step-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.step-item::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 1px var(--color-border);
}

.step-number {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

/* Samples */
.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--space-md);
}

.sample-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.sample-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sample-image {
    height: 200px;
    background: #eee;
    width: 100%;
    object-fit: cover;
}

.sample-body {
    padding: 1.5rem;
}

.sample-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Plans */
.plans-grid {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
}

.plan-card {
    background: white;
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
    max-width: 500px;
    width: 100%;
}

.plan-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
    z-index: 1;
}

.plan-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 1rem 0;
}

.plan-price span {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.plan-features {
    margin: 2rem 0;
}

.plan-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* FAQ */
.faq {
    background: white;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    margin-top: 1rem;
    color: var(--color-text-light);
    display: none;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Final CTA */
.final-cta {
    background: var(--color-text);
    color: white;
    padding: var(--space-xl) 0;
}

.final-cta h2 {
    margin-bottom: 1rem;
}

.final-cta p {
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    background: #f3f4f6;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Forms */
.form-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #f9fafb;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-secondary);
    background: white;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Loading & Error */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.error-box {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-nav {
        /* Simple menu for this mockup */
        display: none;
    }

    .container {
        width: 90%;
        padding: 0 1rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: var(--space-md);
        text-align: center;
    }

    .hero-inner {
        display: flex;
        /* Changed from grid to flex column for better control */
        flex-direction: column;
        gap: var(--space-md);
    }

    /* Show visual on mobile but adjust size */
    .hero-visual {
        display: block;
        /* Was hidden */
        width: 100%;
        margin-top: 2rem;
        transform: scale(0.9);
        /* Slightly shrink if needed */
    }

    .mockup-image {
        transform: none;
        /* remove tilt on mobile for cleaner look */
    }

    .mockup-image:hover {
        transform: none;
    }

    /* Adjust floating cards for mobile */
    .mockup-card {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .float-1 {
        top: -10px;
        right: 0;
    }

    .float-2 {
        bottom: -10px;
        left: 0;
    }

    .hero-content {
        order: 1;
        /* Content first */
    }

    .hero-visual {
        order: 2;
        /* Image second */
    }

    .hero-actions {
        flex-direction: column;
        /* Stack buttons */
        gap: 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
        /* Smaller H1 */
    }

    .hero-sub {
        font-size: 1rem;
    }

    .solution-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Adjust padding for sections */
    .section {
        padding: var(--space-md) 0;
    }

    .process-steps {
        padding-left: 0;
    }

    .process-steps::before {
        left: 20px;
    }

    .step-item {
        padding-left: 3rem;
    }

    .step-item {
        padding-left: 3rem;
    }

    .step-item::after {
        left: 12px;
    }
}

/* Sample LP Specific Fixes */

/* SNS LP: Graph */
.graph-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .graph-container {
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .graph-container>div {
        width: 100% !important;
    }

    .graph-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* SaaS LP: Roadmap */
.roadmap-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 100%;
    padding-left: 0;
    margin-top: 2rem;
}

.roadmap-steps::before {
    display: none;
    /* Hide vertical line */
}

.roadmap-steps .step-item {
    padding-left: 0;
    width: 200px;
    text-align: center;
    margin-bottom: 0;
}

.roadmap-steps .step-item::after {
    display: none;
    /* Hide step circle */
}

.roadmap-steps .step-number {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .roadmap-steps {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2rem;
        position: relative;
    }

    .roadmap-steps::before {
        display: block;
        /* Show line on mobile */
        left: 20px;
    }

    .roadmap-steps .step-item {
        width: auto;
        text-align: left;
        padding-left: 3rem;
        margin-bottom: 2rem;
    }

    .roadmap-steps .step-item::after {
        display: block;
        /* Show circle on mobile */
        left: 12px;
        background: var(--color-primary);
        /* Ensure visible */
    }
}

/* Kendo LP: Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    /* Force scroll on small screens */
}

/* General Mobile Tweaks */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* SNS LP Graph Styles */
/* Note: Original inline styles are moved here for better responsiveness */
.graph-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.graph-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 200px;
    /* Ensure space for bars */
}

.graph-group {
    width: 30%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.graph-bar-visual {
    width: 100%;
    border-radius: 4px 4px 0 0;
    position: relative;
    margin: 0 auto;
}

/* Before Bar */
.graph-bar-visual.before {
    height: 50px;
    background: #e5e7eb;
}

/* After Bar */
.graph-bar-visual.after {
    height: 150px;
    background: linear-gradient(to top, #db2777, #f472b6);
}

.graph-label-top {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    font-weight: bold;
}

.graph-label-top.highlight {
    color: #db2777;
}

.graph-label-bottom {
    font-weight: bold;
    margin-top: 0.5rem;
    border-top: 1px solid #ccc;
    padding-top: 0.5rem;
    width: 100%;
}

.graph-label-bottom.highlight {
    color: #db2777;
}

.graph-arrow {
    font-size: 2rem;
    color: #db2777;
    align-self: center;
    padding-bottom: 2rem;
    /* Align with bottom of bars roughly */
}

@media (max-width: 600px) {
    .graph-container {
        gap: 0.5rem;
        align-items: center;
        /* Center alignment might look better if stacking, but let's keep side-by-side if possible */
    }

    .graph-arrow {
        font-size: 1.5rem;
        padding-bottom: 2.5rem;
        /* Adjust alignment */
    }

    .graph-label-top {
        font-size: 0.9rem;
    }

    .graph-label-bottom {
        font-size: 0.8rem;
    }
}