/* LINE公式アカウント CTA */
.line-cta-section {
    margin: 4rem 0 2rem;
    padding: 40px 1rem 0;
}

.line-cta-wrapper {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    background: linear-gradient(135deg, #00867b 0%, #10b981 100%);
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 134, 123, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.line-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: 20px;
}

.line-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    animation: linePatternMove 60s linear infinite;
}

@keyframes linePatternMove {
    0% {
        transform: translate(-50%, -50%);
    }
    100% {
        transform: translate(0, 0);
    }
}

.line-icon-bg {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.line-icon-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.line-cta-content {
    position: relative;
    padding: 4rem 2.5rem 3rem;
    text-align: center;
    color: #ffffff;
    z-index: 1;
}

.line-logo {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    z-index: 2;
}

.line-logo img {
    width: 100%;
    height: 100%;
    border-radius: 20%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.line-cta-catchphrase {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.6rem 2rem;
    display: inline-block;
    backdrop-filter: blur(10px);
}


.line-cta-main-message {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #ffffff;
}

.line-cta-sub-message {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    color: #ffffff;
}

.line-cta-button-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.line-add-friend-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 2.5rem;
    background: #ffffff;
    color: #00867b;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.line-add-friend-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 134, 123, 0.1), transparent);
    transition: left 0.5s ease;
}

.line-add-friend-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: #00867b;
    background: #f0fdf4;
}

.line-add-friend-btn:hover::before {
    left: 100%;
}

.line-add-friend-btn .btn-emoji {
    font-size: 1.3rem;
    margin-right: 0.25rem;
}

.line-qr-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.line-qr-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}


/* QRコードモーダル */
.line-qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.line-qr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.line-qr-modal-content {
    position: relative;
    max-width: 400px;
    width: 90%;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.line-qr-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.line-qr-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.line-qr-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.line-qr-code {
    width: 200px;
    height: 200px;
    margin: 1.5rem auto;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #06C755;
    border-radius: 15px;
}

.line-qr-code img {
    width: 100%;
    height: 100%;
}

.line-qr-instruction {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .line-cta-wrapper {
        margin: 50px auto 0;
    }
    
    .line-cta-content {
        padding: 3.5rem 1.5rem 2.5rem;
    }
    
    .line-logo {
        width: 70px;
        height: 70px;
        top: -35px;
    }
    
    .line-cta-catchphrase {
        font-size: 1.1rem;
        padding: 0.4rem 1.2rem;
    }
    
    .line-cta-main-message {
        font-size: 1rem;
    }
    
    .line-cta-sub-message {
        font-size: 0.95rem;
    }
    
    .line-add-friend-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .line-qr-button {
        width: 100%;
        justify-content: center;
    }
    
    .line-cta-button-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .line-cta-wrapper {
        margin: 40px auto 0;
    }
    
    .line-cta-content {
        padding: 3rem 1rem 2rem;
    }
    
    .line-logo {
        width: 60px;
        height: 60px;
        top: -30px;
    }
    
    .line-cta-catchphrase {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .line-cta-main-message {
        font-size: 0.95rem;
    }
    
    .line-cta-sub-message {
        font-size: 0.9rem;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .line-qr-modal-content {
        background: #1f2937;
    }
    
    .line-qr-modal-title {
        color: #ffffff;
    }
    
    .line-qr-instruction {
        color: #9ca3af;
    }
    
    .line-qr-close {
        background: #374151;
    }
    
    .line-qr-close:hover {
        background: #4b5563;
    }
}