@import url('/css/tokens.css');

:root {
    /* LP固有フォント（tokens.cssのLINE Seed JPをオーバーライド） */
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Noto Serif JP', serif;

    /* LP固有シャドウ（tokens.cssと値が異なる） */
    --shadow: 0 2px 4px rgba(120, 100, 80, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(120, 100, 80, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(120, 100, 80, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(120, 100, 80, 0.1);

    /* LP固有Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section + .section {
    border-top: 1px solid var(--gray-200);
}

/* 大型チェキモチーフ背景（セクション端から見切れ） */
.section-pattern {
    position: relative;
    overflow: hidden;
}
.section-pattern::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 480px;
    background-color: var(--primary);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='480' viewBox='0 0 400 480'%3E%3Crect x='0' y='0' width='400' height='480' rx='8' ry='8' fill='black'/%3E%3Crect x='24' y='24' width='352' height='320' rx='4' ry='4' fill='white'/%3E%3Cpath d='M24 280 L140 200 L220 260 L300 180 L376 240 L376 344 L24 344 Z' fill='black' opacity='0.3'/%3E%3Ccircle cx='320' cy='80' r='30' fill='black' opacity='0.2'/%3E%3Crect x='120' y='400' width='160' height='12' rx='6' ry='6' fill='black' opacity='0.15'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='480' viewBox='0 0 400 480'%3E%3Crect x='0' y='0' width='400' height='480' rx='8' ry='8' fill='black'/%3E%3Crect x='24' y='24' width='352' height='320' rx='4' ry='4' fill='white'/%3E%3Cpath d='M24 280 L140 200 L220 260 L300 180 L376 240 L376 344 L24 344 Z' fill='black' opacity='0.3'/%3E%3Ccircle cx='320' cy='80' r='30' fill='black' opacity='0.2'/%3E%3Crect x='120' y='400' width='160' height='12' rx='6' ry='6' fill='black' opacity='0.15'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* セクション別配置（右上→左下→右下のリズム） */
.features-section.section-pattern::before {
    top: -30px;
    right: -40px;
    transform: rotate(-15deg);
}

.how-it-works-section.section-pattern::before {
    bottom: -40px;
    left: -30px;
    transform: rotate(12deg);
}

.use-cases-section.section-pattern::before {
    bottom: -20px;
    right: -50px;
    transform: rotate(-8deg);
    width: 420px;
    height: 504px;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-600);
}

.text-primary {
    color: var(--primary);
}

.text-gradient {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 30%, transparent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 40%, transparent);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .section-pattern::before {
        width: 240px;
        height: 288px;
        opacity: 0.04;
    }

    .features-section.section-pattern::before {
        top: -20px;
        right: -25px;
    }

    .how-it-works-section.section-pattern::before {
        bottom: -25px;
        left: -20px;
    }

    .use-cases-section.section-pattern::before {
        bottom: -15px;
        right: -30px;
        width: 250px;
        height: 300px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}
