/* ===== CSS Variables ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
}

h3 {
    font-size: 1.5rem;
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nowrap {
    white-space: nowrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 14px rgb(99 102 241 / 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(99 102 241 / 0.5);
}

.btn-secondary {
    background: var(--bg-dark);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-light);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-text h1 {
    margin-bottom: 24px;
}

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

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

.hero-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.3),
        0 30px 60px -30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0a0a0a;
    border-radius: 20px;
    z-index: 10;
}

.phone-mockup img {
    border-radius: 30px;
    width: 100%;
}

/* ===== Problem Section ===== */
.problem {
    padding: 100px 0;
    background: var(--bg-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.problem-card {
    background: white;
    padding: 40px 24px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-8px);
}

.problem-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.problem-icon svg {
    width: 48px;
    height: 48px;
}

.problem-card p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== Solution Section ===== */
.solution {
    padding: 100px 0;
    background: var(--gradient-1);
    color: white;
}

.solution-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.solution h2 {
    color: white;
    margin-bottom: 30px;
}

.solution .highlight {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solution p {
    font-size: 1.25rem;
    line-height: 1.9;
    opacity: 0.95;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 4px 14px rgb(99 102 241 / 0.4);
}

.step-image {
    width: 200px;
    margin: 0 auto 30px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.step-image img {
    width: 100%;
}

.step h3 {
    margin-bottom: 16px;
    color: var(--text-color);
}

.step p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-card.reverse {
    direction: rtl;
}

.feature-card.reverse > * {
    direction: ltr;
}

.feature-image {
    width: 280px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.feature-image img {
    width: 100%;
}

.feature-content h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Screenshots Section ===== */
.screenshots {
    padding: 100px 0;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

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

.screenshot-item img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    margin-bottom: 12px;
}

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

.screenshot-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== Benefits Section ===== */
.benefits {
    padding: 100px 0;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.benefit-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.benefit-icon svg {
    width: 48px;
    height: 48px;
}

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

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Support Section ===== */
.support {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.support h2 {
    margin-bottom: 20px;
}

.support > .container > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.support-contact {
    display: flex;
    justify-content: center;
}

.support-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.support-email:hover {
    background: var(--primary-color);
    color: white;
}

.support-email svg {
    width: 24px;
    height: 24px;
}

/* ===== CTA Section ===== */
.cta {
    padding: 120px 0;
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
}

.cta > .container > p {
    font-size: 1.25rem;
    color: var(--text-lighter);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-note {
    font-size: 0.95rem;
    color: var(--text-lighter);
    margin-bottom: 30px;
}

.notify-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.notify-form input {
    flex: 1;
    padding: 16px 24px;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.notify-form input::placeholder {
    color: var(--text-lighter);
}

.notify-form input:focus {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-lighter);
    margin-top: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-column a {
    display: block;
    color: var(--text-lighter);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 24px;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .phone-mockup {
        width: 240px;
    }

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

    .steps {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .feature-card,
    .feature-card.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        direction: ltr;
    }

    .screenshot-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .nowrap {
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .phone-mockup {
        width: 200px;
    }

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

    .problem-card {
        padding: 30px 20px;
    }

    .solution-content {
        max-width: 100%;
    }

    .solution-content p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .step-image {
        width: 180px;
    }

    .feature-content h3 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 8px;
    }

    .feature-image {
        width: 220px;
    }

    .screenshot-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

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

    .benefit-card {
        padding: 30px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .notify-form {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }

    .hero-content {
        padding: 30px 16px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .phone-mockup {
        width: 180px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .problem,
    .solution,
    .how-it-works,
    .features,
    .screenshots,
    .benefits,
    .cta {
        padding: 60px 0;
    }

    .problem-icon svg,
    .benefit-icon svg {
        width: 40px;
        height: 40px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .step-image {
        width: 160px;
    }

    .step h3 {
        font-size: 1.1rem;
    }

    .step p {
        font-size: 0.95rem;
    }

    .feature-image {
        width: 100%;
        max-width: 200px;
    }

    .feature-content h3 {
        font-size: 1.2rem;
    }

    .feature-content p {
        font-size: 1rem;
    }

    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .screenshot-item p {
        font-size: 0.8rem;
    }

    .benefit-card h3 {
        font-size: 1.1rem;
    }

    .benefit-card p {
        font-size: 0.95rem;
    }

    .cta h2 {
        font-size: 1.4rem;
    }

    .footer {
        padding: 50px 0 30px;
    }

    .footer-content {
        gap: 40px;
        margin-bottom: 40px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .btn-nav {
        width: auto;
    }
}

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

.hero-text,
.hero-image {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image {
    animation-delay: 0.2s;
}

/* ===== Legal Pages (Privacy Policy, Terms) ===== */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
    background: var(--bg-light);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-update {
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: left;
    color: var(--text-color);
}

.legal-section h3 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-section li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-section strong {
    color: var(--text-color);
}

.contact-info {
    background: var(--bg-light);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .legal-content {
        padding: 32px 24px;
        border-radius: var(--radius-lg);
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 24px 16px;
    }

    .legal-content h1 {
        font-size: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .legal-section h3 {
        font-size: 1rem;
    }
}
