/* Tailwindで対応できない細部の調整、カスタムフォント指定など */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
}

/* 見出し等のフォントを太めに設定 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* 追従CTAの表示/非表示トランジション */
#sticky-cta {
    transition: opacity 0.3s, transform 0.3s;
}

#sticky-cta.hidden {
    opacity: 0;
    transform: translateY(100%);
}

@media (min-width: 768px) {
    #sticky-cta.hidden {
        transform: translateY(-100%);
    }
}

/* モーダルの表示/非表示トランジション */
#result-modal {
    transition: opacity 0.3s ease-in-out;
}

#result-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#result-modal>div {
    transition: transform 0.3s ease-in-out;
    transform: scale(0.95);
}

#result-modal:not(.hidden)>div {
    transform: scale(1);
}

#background-video {
    z-index: -1;
}

/* Custom scrollbar hiding utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.animate-scroll-slow {
    animation: scroll-slow 60s linear infinite;
}

#problem-carousel-viewport:hover .animate-scroll-slow,
#staff-carousel-viewport:hover .animate-scroll-slow {
    animation-play-state: paused;
}

@keyframes scroll-slow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2));
        /* Duplicate the content, scroll by half the total width */
    }
}

.staff-description {
    height: 100px;
    overflow: hidden;
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transition: all 2.0s cubic-bezier(0.22, 1, 0.36, 1);
    /* Ease-out cubic for smooth "slide-in" */
}

.scroll-animate.slide-left {
    transform: translateX(-50px);
}

.scroll-animate.slide-right {
    transform: translateY(50px);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Design Utilities */
.text-shadow {
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.pattern-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 24px 24px;
}

/* ===== remains.html Visual Upgrade ===== */

/* 1. Step Number Pulse Animation */
@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 103, 102, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(0, 103, 102, 0); }
}
.step-pulse {
    animation: pulse-gentle 3s ease-in-out infinite;
}

/* 2. Card Image Zoom on Hover */
.card-zoom-img .card-img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card-zoom-img:hover .card-img {
    transform: scale(1.03);
}
.card-zoom-img {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-zoom-img:hover {
    box-shadow: 0 20px 40px rgba(0, 103, 102, 0.15);
    transform: translateY(-4px);
}

/* 3. Staff Circle Hover Overlay */
.staff-circle {
    position: relative;
}
.staff-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(0, 103, 102, 0);
    transition: background 0.4s ease;
}
.staff-circle:hover::after {
    background: rgba(0, 103, 102, 0.10);
}

/* 4. Table Row Hover */
.pricing-table tbody tr {
    transition: background-color 0.2s ease;
}
.pricing-table tbody tr:hover {
    background-color: rgba(0, 103, 102, 0.05);
}

/* 5. Flow Connector Line (Desktop) */
.flow-grid {
    position: relative;
}
.flow-card {
    position: relative;
}
@media (min-width: 1024px) {
    .flow-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 24px;
        right: -1rem;
        width: calc(2rem);
        height: 2px;
        border-top: 2px dashed rgba(0, 103, 102, 0.3);
        z-index: 1;
    }
}

/* 6. Section Wave Divider */
.section-wave {
    position: relative;
    overflow: hidden;
}
.section-wave .wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.section-wave .wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.section-wave .wave-top svg,
.section-wave .wave-bottom svg {
    display: block;
    width: 100%;
    height: auto;
}

/* 7. Glassmorphism Sticky CTA */
.glass-cta {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 103, 102, 0.08);
}

/* 8. FAQ Accordion Subtle */
.faq-item {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 103, 102, 0.08);
    transform: translateY(-1px);
}

/* 9. Area Card Hover */
.area-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.area-card:hover {
    box-shadow: 0 8px 24px rgba(0, 103, 102, 0.12);
    transform: translateY(-2px);
}

/* 10. Hero Text Fade-in */
@keyframes hero-fade-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-animate {
    animation: hero-fade-up 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-animate-delay-1 { animation-delay: 0.2s; opacity: 0; }
.hero-animate-delay-2 { animation-delay: 0.5s; opacity: 0; }
.hero-animate-delay-3 { animation-delay: 0.8s; opacity: 0; }
.hero-animate-delay-4 { animation-delay: 1.1s; opacity: 0; }