/* ===================================
   Global Styles & Variables
   =================================== */

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

:root {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================================
   Circuit Background Pattern
   =================================== */

.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px),
        linear-gradient(0deg, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, var(--secondary-color) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--accent-color) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 100px 100px, 100px 100px;
    background-position: 0 0, 0 0, 0 0, 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 50px 50px;
    }
    100% {
        background-position: 50px 50px, -50px -50px, 100px 100px, 0 0;
    }
}

/* ===================================
   Typography
   =================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* ===================================
   Header & Navigation
   =================================== */

.logo img {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Special Navigation Link for External Site */
.nav-link-special {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
}

.nav-link-special:hover {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu {
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.mobile-menu-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-menu-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
}

.mobile-menu-link-special {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    font-weight: 600;
}

.mobile-menu-link-special:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(1.02);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

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

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* ===================================
   Price Box
   =================================== */

.price-box {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.discount-items {
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1rem 0;
}

.discount-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.discount-value {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.1rem;
}

.final-price-box {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 0.75rem;
    margin-top: 1rem;
}

.final-price {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

/* ===================================
   CTA Buttons
   =================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.cta-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ===================================
   Sections
   =================================== */

.section-light {
    background: var(--dark-bg);
    position: relative;
}

.section-dark {
    background: var(--darker-bg);
    position: relative;
}

/* ===================================
   Service Cards
   =================================== */

.service-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* ===================================
   Feature Cards
   =================================== */

.feature-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.feature-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(59, 130, 246, 0.2);
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

/* ===================================
   Pricing Detail Card
   =================================== */

.pricing-detail-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    margin: 2rem 0;
}

.discount-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.discount-detail-item {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.discount-detail-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.discount-amount {
    color: #ef4444;
    font-size: 1.75rem;
    font-weight: 900;
}

.final-pricing-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 2rem;
}

/* ===================================
   Flow Section
   =================================== */

.flow-container {
    position: relative;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.flow-step {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.flow-content {
    flex: 1;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.flow-content:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(10px);
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.flow-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin: 1rem 0;
}

/* ===================================
   Contact Section
   =================================== */

.contact-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contact-info-card {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

/* Square Contact Cards (Cube Layout) */
.contact-info-card-square {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-decoration: none;
    aspect-ratio: 1 / 1; /* 正方形を保証 */
    min-height: 280px;
}

.contact-info-card-square:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
}

.contact-info-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.contact-info-card-line {
    cursor: default;
    flex-direction: column;
    text-align: center;
}

.contact-info-card-line:hover {
    transform: none;
}

/* QR Code Styling */
.qr-code-image-square {
    width: 100px;
    height: 100px;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.3);
    border: 2px solid rgba(6, 199, 85, 0.5);
    background: white;
    padding: 0.25rem;
    display: inline-block;
}

.qr-code-image-small {
    width: 100px;
    height: 100px;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.3);
    border: 2px solid rgba(6, 199, 85, 0.5);
    background: white;
    padding: 0.25rem;
    display: inline-block;
}

.qr-code-container {
    display: inline-block;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.3);
    border: 3px solid rgba(6, 199, 85, 0.5);
    background: white;
    padding: 0.5rem;
    display: block;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer a:hover {
    transform: translateY(-3px) scale(1.1);
}

.footer .fa-instagram:hover {
    color: #E1306C !important;
}

.footer .fa-line:hover {
    color: #06C755 !important;
}

/* ===================================
   Scroll to Top Button
   =================================== */

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .final-price {
        font-size: 2.5rem;
    }

    .pricing-detail-card,
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .flow-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-content {
        flex-direction: column;
        text-align: center;
    }

    .discount-detail-item p {
        margin-left: 0 !important;
    }

    .hero {
        padding-top: 100px;
    }
    
    .qr-code-image {
        width: 180px;
        height: 180px;
    }
    
    .qr-code-image-small,
    .qr-code-image-square {
        width: 80px;
        height: 80px;
    }
    
    .contact-info-card-square {
        min-height: 240px;
        padding: 2rem 1rem;
    }
    
    .contact-info-icon-large {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .price-box,
    .pricing-detail-card,
    .contact-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .qr-code-image {
        width: 160px;
        height: 160px;
    }
    
    .qr-code-image-small,
    .qr-code-image-square {
        width: 70px;
        height: 70px;
    }
    
    .contact-info-card-square {
        min-height: 220px;
        padding: 1.5rem 1rem;
    }
    
    .contact-info-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

/* ===================================
   Animations
   =================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.bounce {
    animation: bounce 1s infinite;
}