/* ----------------------------------------------------
   9. Connect Section & CTA
---------------------------------------------------- */
.connect-inner {
    background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.08) 0%, rgba(0,0,0,0) 60%), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 120px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.connect-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, rgba(34,211,238,0) 0%, rgba(34,211,238,0.8) 50%, rgba(34,211,238,0) 100%);
}

.connect-title {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.connect-desc {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.cta-wrapper {
    display: flex;
    justify-content: center;
}

.btn-giant {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s ease-out; /* Magnet transition */
}

.btn-giant-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.3);
    transition: transform 0.5s cubic-bezier(0.1, 0.8, 0.2, 1), background-color 0.3s;
}

.btn-giant:hover .btn-giant-bg {
    transform: scale(1.15);
    background-color: #0891b2;
}

.btn-giant-text {
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

/* ----------------------------------------------------
   9b. QR Dock (bottom-fixed) + Flip enlarge stage
---------------------------------------------------- */
.connect-note {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: center;
}

/* Dock — in-flow at page bottom (footer). Frames stay; only the QR content flies out */
.qr-dock {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 28px 0 8px;
}

.qr-dock-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.qr-thumb {
    display: block;
    width: 64px;
    height: 64px;
    filter: drop-shadow(-1.5px 0 3px #ff2d55) drop-shadow(1.5px 0 3px #2d7bff);
    transition: filter 0.3s, transform 0.3s;
}

.qr-dock-btn:hover .qr-thumb {
    transform: translateY(-3px);
    filter: drop-shadow(-2.5px 0 6px #ff2d55) drop-shadow(2.5px 0 6px #2d7bff);
}

.qr-mini {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-mini.hidden {
    visibility: hidden;
}

/* 識別アイコン — 既定は黒塗り、QR付近を hover で色変化＋浮き上がり */
.qr-icon {
    display: inline-flex;
    order: -1;            /* QR の上に配置 */
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    opacity: 0;           /* 既定は 100% 非表示 */
    transform: translateY(8px) scale(0.9);
    pointer-events: none;
    transition: transform 0.35s ease, filter 0.3s ease, opacity 0.35s ease;
}

.qr-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ブランド色は最初から設定（普段は opacity:0 で見えない） */
.qr-icon-line svg path {
    fill: #06c755;
}

.qr-icon-mail svg path {
    fill: #2d7bff;
}

/* hover: フェードイン＋浮き上がり（隠れていた所から出現） */
.qr-dock-btn:hover .qr-icon {
    opacity: 1;
    transform: translateY(-8px) scale(1.14);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}

/* Centered stage — pointer-events:none kills cursor-reactive jitter */
.qr-stage {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10000;
}

.qr-full {
    display: none;
    width: min(78vw, 360px);
    height: min(78vw, 360px);
    filter: drop-shadow(-4px 0 12px #ff2d55) drop-shadow(4px 0 12px #2d7bff);
}

.qr-full.active {
    display: block;
}

.qr-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.qr-backdrop.show {
    opacity: 1;
    pointer-events: auto;
    cursor: zoom-out;
}

/* ----------------------------------------------------
   10. Footer
---------------------------------------------------- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    background-color: var(--bg-dark);
}

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

.logo-small {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.2em;
    color: #fff;
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.footer-link {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: 10px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
}

/* ----------------------------------------------------
   11. Reveal & Animation Utilities
---------------------------------------------------- */
/* text reveals will be driven by GSAP */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
}

.reveal-words {
    opacity: 0;
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
}

/* ----------------------------------------------------
   12. Responsive Design
---------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .sticky-title {
        position: relative;
        top: 0;
    }

    .hero-title {
        font-size: 60px;
    }

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

@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .nav-links {
        display: none; /* Hide simple nav on mobile for minimalism */
    }

    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 44px;
    }

    .text-large {
        font-size: 20px;
    }

    .identity-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .connect-inner {
        padding: 60px 20px;
    }

    .connect-title {
        font-size: 36px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

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