/* ────────────────────────────────────────────────────
   100web-pay - Landing Page Styles
   Aesthetics: Modern, Vibrant, Premium (SpeakBUDDY inspired)
   ──────────────────────────────────────────────────── */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #06b6d4;
    --accent: #10b981;
    --warning: #f59e0b;
    
    --text-main: #1e293b;
    --text-light: #535a63;
    --text-white: #ffffff;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* ─── Header ────────────────────────────────────── */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.landing-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 5%;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

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

/* ─── Mobile Menu Toggle ────────────────────────── */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ─── Buttons ───────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    gap: 8px;
}

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

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

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ─── Hero Section ──────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    overflow: hidden;
    background-color: var(--bg-light);
}

/* --- Hero Background Animation --- */
.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('../images/hero-mesh.png') center/cover no-repeat;
    z-index: 0;
    animation: meshSway 20s infinite alternate ease-in-out;
    will-change: transform;
}

@keyframes meshSway {
    0% { transform: scale(1.2) translate(-5%, -5%) rotate(0deg); }
    50% { transform: scale(1.2) translate(5%, 5%) rotate(2deg); }
    100% { transform: scale(1.2) translate(-5%, 5%) rotate(-2deg); }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.7;
    mix-blend-mode: screen;
    animation: blobFloat 12s infinite alternate ease-in-out;
}

.blob-1 {
    width: 60%;
    height: 60%;
    background: var(--accent); /* エメラルドグリーン */
    top: -10%;
    right: 10%;
    animation-duration: 15s;
}

.blob-2 {
    width: 50%;
    height: 50%;
    background: var(--warning); /* イエロー */
    bottom: -10%;
    left: 10%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.blob-3 {
    width: 55%;
    height: 55%;
    background: var(--secondary); /* シアン */
    top: 30%;
    left: 20%;
    animation-delay: -7s;
    animation-duration: 20s;
}

@keyframes blobFloat {
    0% { transform: translate(-10%, -10%) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.3); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--bg-light), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 870px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.5;
}

.hero-usp {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

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

/* ─── Common Section Styles ──────────────────────── */

.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ─── Target Section ────────────────────────────── */

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.target-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.target-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.target-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.target-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: inherit;
    z-index: -1;
    opacity: 0.5;
    animation: pulseIcon 4s infinite;
}

.target-card:nth-child(1) .target-icon::after { background: var(--primary); opacity: 0.1; }
.target-card:nth-child(2) .target-icon::after { background: var(--secondary); opacity: 0.1; }
.target-card:nth-child(3) .target-icon::after { background: var(--accent); opacity: 0.1; }

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0.2; }
}

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

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

/* ─── Solutions Section ─────────────────────────── */

.solution-container {
    background: var(--text-main);
    border-radius: var(--radius-xl);
    padding: 80px 5%;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.solution-item {
    display: flex;
    gap: 20px;
}

.solution-num {
    font-size: 2rem;
    font-weight: 800;
    opacity: 0.3;
}

.solution-content h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.solution-content p {
    color: #94a3b8;
}

/* ─── Features Section ───────────────────────────── */

.feature-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .feature-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .feature-categories {
        grid-template-columns: 1fr;
    }
}

.feature-cat {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid #f1f5f9;
}

.feature-cat h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-cat h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--secondary);
    border-radius: 2px;
}

.feature-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 900;
}

/* ─── Steps Section ──────────────────────────────── */

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    position: relative;
}

.step-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    border: 1px solid #f1f5f9;
}

.step-card h4 {
    margin-bottom: 1em;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--text-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
}

.step-time {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 16px;
    color: var(--primary);
}

/* --- Preparation Section --- */
.preparation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.prep-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid #f1f5f9;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.prep-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.prep-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prep-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
}

.prep-desc {
    color: var(--text-light);
    font-size: 1rem;
}

.prep-note {
    font-size: 0.85rem;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 12px;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.prep-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.05;
    transform: rotate(15deg);
}

.trust-section {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
}

.trust-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-label {
    font-weight: 700;
    font-size: 1rem;
}

/* ─── FAQ Section ────────────────────────────────── */

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

.faq-item {
    background: var(--bg-white);
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: none;
    padding: 0 24px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-question span {
    display: none; /* 開閉アイコンを非表示に */
}

/* ─── Service Policy ─────────────────────────────── */

.service-policy-section {
    padding-top: 20px;
}

.service-policy-panel {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 6px solid var(--warning);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.service-policy-panel .section-title {
    margin-bottom: 28px;
}

.service-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-policy-grid h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

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

.service-policy-link {
    display: inline-flex;
    margin-top: 28px;
    color: var(--primary);
    font-weight: 700;
}

/* ─── Footer ────────────────────────────────────── */

.final-cta {
    text-align: center;
    padding: 120px 5%;
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('../images/hero-mesh.png') center/cover;
}

.final-cta-note {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.final-cta-note a {
    color: var(--primary);
    font-weight: 700;
}

.footer {
    padding: 60px 5% 30px;
    background: var(--bg-white);
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.footer-logo {
    margin-bottom: 24px;
    justify-content: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.copyright {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ─── Terms Page ─────────────────────────────────── */

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

.terms-main {
    max-width: 920px;
    margin: 0 auto;
    padding: 140px 5% 80px;
}

.terms-hero {
    margin-bottom: 32px;
}

.terms-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.terms-hero p {
    color: var(--text-light);
}

.terms-version {
    margin-top: 8px;
    font-size: 0.9rem;
}

.terms-document {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.terms-document h2 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
}

.terms-document h2:first-child {
    margin-top: 0;
}

.terms-document p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.terms-nav {
    gap: 12px;
}

/* ─── Responsive ────────────────────────────────── */

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    .hero-usp {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .section-title {
        font-size: 2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1050;
    }

    .header-nav.active {
        right: 0;
    }

    .header-nav a {
        width: 100%;
        font-size: 1.2rem;
        padding: 15px;
    }

    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        z-index: 1040;
        pointer-events: none;
    }

    .service-policy-panel,
    .terms-document {
        padding: 28px 22px;
    }

    .service-policy-grid {
        grid-template-columns: 1fr;
    }

    .terms-main {
        padding-top: 120px;
    }

    .terms-hero h1 {
        font-size: 2.2rem;
    }

    .terms-nav {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        justify-content: flex-end;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .terms-nav a {
        width: auto;
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

@media (max-width: 640px) {
    .terms-nav .btn-ghost {
        display: none;
    }
}
