/* ===== pote Design System — Shared CSS ===== */

:root {
    --bg-page: linear-gradient(180deg, #f0f5fd 0%, #ebeffe 20%, #efecfb 50%, #ebeffe 80%, #f0f5fd 100%);
    --bg-card: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #4A5568;
    --text-muted: #6B7280;
    --border: rgba(0, 0, 0, 0.06);
    --border-accent: rgba(59, 130, 246, 0.15);
    --gradient-accent: linear-gradient(135deg, #3080F0, #30A0F0, #A090F0);
    --accent: #3080F0;
    --accent-light: #30A0F0;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 12px 40px rgba(59, 130, 246, 0.1);
    --card-radius: 20px;
    --ease-overshoot: cubic-bezier(.37, 2, .42, 1.02);
    --stagger: 80ms;
    --section-gap: 120px;
    --grad-border: linear-gradient(135deg, #3080F0, #38bdf8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-primary);
    background: var(--bg-page);
    background-attachment: fixed;
    line-height: 1.8;
    letter-spacing: 0.04em;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3 {
    line-height: 1.3;
}

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

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

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(240, 244, 253, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 50;
    padding: 14px 0;
}

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

.header-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 36px;
    width: auto;
}

/* ===== Header: PC nav ===== */
.header-nav-pc {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav-pc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav-pc a:hover {
    color: var(--text-primary);
}

.header-actions-pc {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-login-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-login-link:hover {
    color: var(--text-primary);
}

.header-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 28px;
    padding: 4px 8px;
}

/* ===== Header: SP overlay menu ===== */
.sp-menu {
    position: fixed;
    inset: 0;
    background: rgba(240, 244, 253, 0.98);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: none;
    flex-direction: column;
    padding: 80px 24px 40px;
    overflow-y: auto;
}

.sp-menu.open {
    display: flex;
}

.sp-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.sp-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.sp-menu-nav > a {
    display: block;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.15s;
}

.sp-menu-nav > a:hover,
.sp-menu-nav > a:active {
    background: rgba(48, 128, 240, 0.08);
}

.sp-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sp-menu-cta .btn-ghost,
.sp-menu-cta .btn-gradient {
    width: 100%;
    text-align: center;
}

@media (min-width: 769px) {
    .sp-menu,
    .sp-menu.open {
        display: none !important;
    }
}

/* ===== Buttons ===== */
.btn-gradient {
    display: inline-block;
    background: var(--gradient-accent);
    color: #FFF;
    padding: 10px 40px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(48, 128, 240, 0.25);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(48, 128, 240, 0.35);
}

.btn-ghost {
    display: inline-block;
    background: var(--bg-card);
    color: var(--accent);
    padding: 10px 40px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    border: 1px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(59, 130, 246, 0.06);
    transform: translateY(-2px);
}

.btn-header {
    padding: 8px 22px;
    font-size: 16px;
    border-radius: 100px;
    color: #FFF;
}

.cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== Section ===== */
.section-dark,
.section-light,
.section-light-2 {
    background: transparent;
    color: var(--text-primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 12px;
}

.section-label-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label-muted {
    color: var(--text-muted);
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
}

.section-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.section-cta {
    text-align: center;
    margin-top: 56px;
}

/* ===== Footer ===== */
.footer {
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    padding: 56px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-copy {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.7;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

/* ===== Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-overshoot), transform 0.7s var(--ease-overshoot);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: calc(var(--stagger) * 1); }
.fade-in-delay-2 { transition-delay: calc(var(--stagger) * 2); }
.fade-in-delay-3 { transition-delay: calc(var(--stagger) * 3); }
.fade-in-delay-4 { transition-delay: calc(var(--stagger) * 4); }
.fade-in-delay-5 { transition-delay: calc(var(--stagger) * 5); }

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Legal Pages ===== */
.legal-card {
    max-width: 800px;
    margin: 0 auto 80px;
    background: var(--bg-card);
    border: 6px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 48px 40px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.legal-content h1 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.legal-content .legal-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p,
.legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.legal-content p {
    margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5em;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 4px;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.legal-content th,
.legal-content td {
    padding: 14px 20px;
    border: 1px solid var(--border);
    font-size: 14px;
    text-align: left;
    line-height: 1.7;
}

.legal-content th {
    background: rgba(48, 128, 240, 0.04);
    font-weight: 700;
    white-space: nowrap;
    width: 180px;
    color: var(--text-primary);
}

.legal-content td {
    color: var(--text-secondary);
}

/* ===== Page Hero (small) ===== */
.page-hero {
    padding: 48px 0 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.pricing-card {
    background: var(--bg-card);
    border: 6px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.pricing-card.recommended {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(48, 128, 240, 0.15);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-plan-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pricing-price {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.pricing-price-unit {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-credits {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.pricing-feature-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-feature-list li i {
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.pricing-cta-primary {
    background: var(--gradient-accent);
    color: #FFF;
    border: none;
    box-shadow: 0 4px 16px rgba(48, 128, 240, 0.25);
}

.pricing-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(48, 128, 240, 0.35);
}

.pricing-cta-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.pricing-cta-secondary:hover {
    background: rgba(59, 130, 246, 0.06);
    transform: translateY(-2px);
}

/* ===== Credit Explanation ===== */
.credit-table {
    max-width: 600px;
    margin: 0 auto;
}

.credit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.credit-row:last-child {
    border-bottom: none;
}

.credit-label {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.credit-value {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

/* ===== Info Grid (Security / Company) ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 6px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 36px 28px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.info-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 26px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.12);
    color: var(--accent);
}

.info-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info h2 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(48, 128, 240, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.contact-link-card:hover {
    background: rgba(48, 128, 240, 0.08);
}

.contact-link-card i {
    font-size: 20px;
    color: var(--accent);
}

/* ===== FAQ (shared) ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 6px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.faq-btn:hover {
    background: rgba(48, 128, 240, 0.03);
}

.faq-btn i {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.faq-item.open .faq-btn i {
    transform: rotate(180deg);
}

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

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 28px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-nav-pc,
    .header-actions-pc {
        display: none;
    }

    .header-hamburger {
        display: block;
    }


    .section-dark,
    .section-light,
    .section-light-2 {
        padding: 64px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .btn-gradient,
    .btn-ghost {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 20px;
        text-align: left;
    }

    .footer-grid > .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    /* Legal */
    .legal-card {
        padding: 32px 20px;
        margin: 0 16px 60px;
        border-width: 4px;
    }

    .legal-content {
        padding: 40px 20px 60px;
    }

    .legal-content h1 {
        font-size: 24px;
    }

    .legal-content th {
        width: 120px;
        font-size: 13px;
    }

    /* Page Hero */
    .page-hero h1 {
        font-size: 28px;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 60px;
    }

    .pricing-price {
        font-size: 32px;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Section Heading (copy-style) =====
   ラベル語ではなく、コピー文1行で語るセクション見出し */
.section-headline {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.35;
}

.section-sub {
    font-size: 24px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 auto 72px;
    max-width: 640px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .section-headline { font-size: 32px; margin-bottom: 10px; }
    .section-sub { font-size: 16px; margin-bottom: 32px; line-height: 1.7; }
}

/* features セクションのみ左寄せ */
#features .section-headline,
#features .section-sub {
    text-align: left;
    margin-left: 0;
}

/* ===== Showcase (Auto-scroll Marquee, native aspect-ratio) ===== */
.showcase {
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.showcase-viewport {
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* 1 段ずつの marquee 行。--row-speed / --row-dir で速度と進行方向を切替 */
.showcase-row {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: showcase-marquee var(--row-speed, 60s) linear infinite var(--row-dir, normal);
}

.showcase-row:hover {
    animation-play-state: paused;
}

@keyframes showcase-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

.showcase-item {
    flex: 0 0 auto;
    height: 340px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    background: var(--bg-card);
}

.showcase-item img {
    height: 100%;
    width: auto;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

@media (max-width: 884px) {
    .showcase { padding: 56px 0 72px; }
    .showcase-row {
        gap: 16px;
    }
    .showcase-item { height: 260px; }
}

/* モバイル幅では行1のみ表示し、縦スクロール阻害を回避 */
@media (max-width: 768px) {
    .showcase-viewport > .showcase-row:nth-child(n+2) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-row {
        animation: none;
    }
}

/* ===== Features (Pillar blocks + Bento) ===== */
/* Pillar は container を使わない全幅ラッパ。
   見出しは Pillar 内の .container で中央寄せ、カード行 .feature-pillar-cards は
   container の外に置き、viewport 全幅で overflow-x スクロール。
   初期位置: 1 枚目左端が container 左端（=見出し左端）と揃う。
   右端送り: 最終カード右端が container 右端と揃う。 */
.feature-pillar {
    margin-bottom: 80px;
}

.feature-pillar:last-of-type {
    margin-bottom: 56px;
}

.feature-pillar-headline {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    line-height: 1.35;
}

.feature-pillar-lead {
    font-size: 24px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 720px;
}

.feature-pillar-cards {
    display: flex;
    flex-direction: row;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    cursor: grab;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* スクロール停止位置を container（=見出し）の幅に揃える。
       container は max-width: 1200px + padding: 0 24px なので、
       画面 ≥ 1248px で左右 padding = (100vw - 1200) / 2 + 24、
       それ未満は 24px 固定。 */
    padding-left:  max(24px, calc((100vw - 1200px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1200px) / 2 + 24px));
    padding-top: 4px;
    padding-bottom: 20px;
}

.feature-pillar-cards:active { cursor: grabbing; }
.feature-pillar-cards::-webkit-scrollbar { display: none; }

.feature-pillar-card {
    flex: 0 0 480px;
    background: var(--bg-card);
    border: 6px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* 入場アニメ: 初期は右にズラして透明、.revealed で 0/1 に */
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
    will-change: transform, opacity;
}

.feature-pillar-card.revealed {
    opacity: 1;
    transform: translateX(0);
}

.feature-pillar-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(167, 139, 250, 0.06));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 40px;
}

.feature-pillar-media img,
.feature-pillar-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-pillar-card h4 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 20px 22px 8px;
}

.feature-pillar-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 22px 22px;
}

/* Bento — small extras */
.feature-bento {
    max-width: 1100px;
    margin: 56px auto 0;
}

.feature-bento-headline {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    text-align: center;
}

.feature-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-bento-card {
    background: var(--bg-card);
    border: 6px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.4s var(--ease-overshoot), box-shadow 0.4s ease;
}

.feature-bento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.feature-bento-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(167, 139, 250, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
}

.feature-bento-card h5 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 4px 0 0;
}

.feature-bento-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 884px) {
    .feature-pillar { margin-bottom: 56px; }
    .feature-pillar-headline { font-size: 26px; }
    .feature-pillar-lead { font-size: 16px; margin-bottom: 24px; }
    .feature-pillar-cards {
        gap: 16px;
        padding-left: 24px;
        padding-right: 24px;
        padding-top: 4px;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
    }
    .feature-pillar-card {
        flex: 0 0 78vw;
        scroll-snap-align: start;
    }
    .feature-pillar-card h4 { font-size: 16px; margin: 18px 20px 6px; }
    .feature-pillar-card p { font-size: 14px; margin: 0 20px 20px; }
    .feature-pillar-media { aspect-ratio: 16 / 10; }
    .feature-bento-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-bento-headline { font-size: 20px; }
}

/* ===== Flow (Horizontal Timeline) ===== */
.flow {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 32px 0;
}

.flow-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.flow-track::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, rgba(48, 128, 240, 0.15), rgba(48, 128, 240, 0.4), rgba(48, 128, 240, 0.15));
    border-radius: 2px;
    z-index: 0;
}

.flow-track::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 12%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(48, 128, 240, 0.6);
    transform: translateX(calc(var(--flow-progress, 0) * (76%)));
    transition: transform 0.6s var(--ease-overshoot);
    z-index: 1;
}

.flow-step {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 72px;
}

.flow-step-num {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-step h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.flow-step p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 320px;
    margin: 0 auto;
}

.flow-step .step-mock {
    margin: 20px auto 0;
    max-width: 320px;
}

@media (max-width: 768px) {
    .flow-track {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .flow-track::before,
    .flow-track::after { display: none; }
    .flow-step { padding-top: 56px; }
    .flow-step h3 { font-size: 18px; }
    .flow-step p { font-size: 14px; }
}

/* ===== FAQ (details-based, smooth open) ===== */
.faq-details {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 6px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.faq-details details {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-details details:last-child {
    border-bottom: none;
}

.faq-details summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 30px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-details summary::-webkit-details-marker { display: none; }

.faq-details summary:hover {
    background: rgba(48, 128, 240, 0.03);
}

.faq-details summary::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.3s var(--ease-overshoot);
    margin-right: 4px;
}

.faq-details details[open] summary::after {
    transform: rotate(-135deg);
}

.faq-details .faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-details details[open] .faq-body {
    grid-template-rows: 1fr;
}

.faq-details .faq-body > div {
    overflow: hidden;
}

.faq-details .faq-body p {
    padding: 0 30px 22px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.85;
}

@media (max-width: 768px) {
    .faq-details summary { padding: 18px 22px; font-size: 15px; }
    .faq-details .faq-body p { padding: 0 22px 18px; font-size: 14px; }
}
