/* ===== CSS Variables ===== */
:root {
    --lapis-deep: #1B4F72;
    --lapis-medium: #2874A6;
    --lapis-light: #D6EAF8;
    --lapis-accent: #3498DB;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-600: #475569;
    --gray-800: #1E293B;
    --shadow-sm: 0 1px 2px rgba(27, 79, 114, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(27, 79, 114, 0.1), 0 2px 4px -1px rgba(27, 79, 114, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(27, 79, 114, 0.1), 0 4px 6px -2px rgba(27, 79, 114, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(27, 79, 114, 0.15), 0 10px 10px -5px rgba(27, 79, 114, 0.04);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hannotate SC', 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url(../images/bgc.jpg)no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(1px);
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 20%;
    animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.floating-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 80% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 70% 90%, rgba(255, 255, 255, 0.2), transparent);
    animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge i {
    color: var(--lapis-light);
    font-size: 1rem;
}

.hero-badge span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-title {
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
    display: block;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: 2px;
}

.title-line.highlight {
    color: var(--lapis-light);
    text-shadow: 0 0 40px rgba(214, 234, 248, 0.5);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--lapis-light);
    font-weight: 600;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--lapis-light);
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light .divider {
    background: linear-gradient(90deg, transparent, var(--lapis-light), transparent);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--lapis-medium);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header.light .section-tag {
    color: var(--lapis-light);
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--lapis-deep);
    margin-bottom: 16px;
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--lapis-medium), var(--lapis-accent));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about-section {
    padding: 100px 0;
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.about-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--lapis-deep), var(--lapis-medium));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.card-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--lapis-deep);
    margin-bottom: 16px;
}

.about-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== Feature Section ===== */
.feature-section {
    padding: 100px 0;
    background: var(--white);
}

.feature-section.alt {
    background: var(--off-white);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--lapis-light) 0%, var(--white) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 2px dashed var(--lapis-medium);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(40, 116, 166, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.image-placeholder i {
    font-size: 3rem;
    color: var(--lapis-medium);
}

.image-placeholder span {
    font-size: 0.9rem;
    color: var(--lapis-medium);
    font-weight: 500;
}

/* ===== Feature Image Styles ===== */
.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.feature-img:hover {
    transform: scale(1.02);
}

.feature-text {
    padding: 20px 0;
}

.feature-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--lapis-medium);
    background: var(--lapis-light);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.feature-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--lapis-deep);
    margin-bottom: 20px;
}

.feature-text p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 28px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.feature-list i {
    color: var(--lapis-medium);
    font-size: 1rem;
}

/* ===== Benefits Section ===== */
.benefits-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--lapis-deep) 0%, var(--lapis-medium) 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lapis-light);
    opacity: 0.5;
    margin-bottom: 16px;
    line-height: 1;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 100px 0;
    background: var(--off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--lapis-light), var(--lapis-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar i {
    font-size: 1.25rem;
    color: var(--white);
}

.user-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lapis-deep);
    margin-bottom: 4px;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.testimonial-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
}

.testimonial-rating i {
    color: #F59E0B;
    font-size: 0.9rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 100px 0;
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--lapis-medium);
}

.faq-question span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--lapis-deep);
}

.faq-question i {
    color: var(--lapis-medium);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== Final CTA Section ===== */
.final-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--lapis-light) 0%, var(--white) 100%);
    border-top: 1px solid var(--lapis-light);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--lapis-deep);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lapis-medium);
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-features i {
    color: var(--lapis-accent);
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    background: var(--lapis-deep);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* ===== Fixed CTA Button ===== */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 16px 24px;
    background: transparent;
    z-index: 1000;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--lapis-medium), var(--lapis-deep));
    color: var(--white);
    font-family: 'Hannotate SC', 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 48px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(27, 79, 114, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 79, 114, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button i {
    font-size: 1rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 40px 20px;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .feature-image {
        order: -1;
    }

    .feature-text {
        text-align: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
    }

    .cta-features {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .section-header {
        text-align: center;
    }

    .final-cta-section .cta-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 8px 18px;
    }

    .hero-content {
        padding: 30px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 40px;
        text-align: center;
    }

    .about-section,
    .feature-section,
    .benefits-section,
    .testimonials-section,
    .faq-section {
        padding: 60px 0;
    }

    .about-card,
    .benefit-card,
    .testimonial-card {
        padding: 28px 24px;
        text-align: center;
    }

    .feature-text {
        text-align: center;
        padding: 20px 0;
    }

    .feature-list {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-button {
        font-size: 1rem;
        padding: 14px 32px;
    }
}

/* ===== Animation on Scroll ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--lapis-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lapis-deep);
}

