:root {
    --primary-color: #0056b3;
    --primary-light: #e3f2fd;
    --primary-dark: #003d82;
    --accent-color: #ff6b35;
    /* More vibrant accent from reference */
    --text-color: #1a1a1a;
    /* Darker for higher contrast */
    --text-light: #444444;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    /* Slightly darker and more distinct blue-gray */
    --border-color: #eeeeee;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --font-main: 'Noto Sans JP', sans-serif;
    --reveal-color: #222;
}

/* Animations Core */
.js-reveal {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.js-reveal.fade-up {
    transform: translateY(40px);
}

.js-reveal.fade-left {
    transform: translateX(-40px);
}

.js-reveal.fade-right {
    transform: translateX(40px);
}

.js-reveal.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hero Title Reveal Animation */
.reveal-text-wrapper {
    position: relative;
    display: table;
    overflow: hidden;
    margin-bottom: 15px;
    padding: 5px 15px;
    /* Added padding for background visibility */
}

.reveal-text {
    opacity: 0;
    position: relative;
    z-index: 2;
    color: var(--white);
    /* Ensure text is white for contrast with #222 */
}

.reveal-visible .reveal-text {
    animation: revealText 0.6s forwards;
    animation-delay: 0.4s;
}

.reveal-text-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--reveal-color);
    transform: translateX(-101%);
    z-index: 1;
}

.reveal-visible.reveal-text-wrapper::after {
    animation: revealBar 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes revealBar {
    0% {
        transform: translateX(-101%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    word-break: break-all;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    background-color: rgba(0, 86, 179, 0.75);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1010;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.active {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* White */
    transition: filter 0.3s ease;
}

.header.active .logo-img {
    filter: brightness(0) invert(1);
    /* Keep White */
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    color: var(--white);
}

.nav a:hover {
    color: var(--primary-light);
}

.burger-menu,
.mobile-nav {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-inquiry-header {
    box-shadow: 0 0 10px rgba(0, 86, 179, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 86, 179, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--primary-light);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 20px 48px;
    font-size: 1.4rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: -2;
}

.hero-slide.active {
    opacity: 1;
    z-index: -1;
    animation: zoomAnimation 10s linear forwards;
}

@keyframes zoomAnimation {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Darken for text readability */
}

.hero-content {
    color: var(--white);
    text-align: left;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 40px;
    opacity: 1;
    line-height: 1.6;
}

.hero-scroll-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateY(5px);
    filter: brightness(1.2);
}

.scroll-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
}

.scroll-icon {
    font-size: 3rem;
    animation: bounceVertical 2s infinite;
}

@keyframes bounceVertical {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Hook Section */
.hook-section {
    padding: 120px 0;
    background-color: var(--white);
}

.section-label {
    display: block;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
    /* A sharp modern font for labels */
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 40px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--accent-color);
    background: linear-gradient(transparent 50%, #fff3e0 50%);
    display: inline-block;
    padding: 0 4px;
}

.section-desc {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Scrolling Carousel */
.scrolling-carousel-wrapper {
    overflow: hidden;
    padding: 30px 0;
    margin: 20px 0;
    width: 100%;
    position: relative;
    cursor: grab;
}

.scrolling-carousel-wrapper:active {
    cursor: grabbing;
}

.scrolling-carousel {
    display: flex;
    width: max-content;
    /* animation: scrollEndless 40s linear infinite; - Moved to JS for better swipe/touch control */
    gap: 30px;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 280px;
    transition: transform 0.3s ease;
    position: relative;
    /* For bubble positioning */
    cursor: pointer;
}

/* Bubble style */
.bubble {
    position: absolute;
    background: var(--accent-color);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    left: 50%;
    top: 10%;
    transform-origin: center bottom;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        fadeOut 0.3s ease 2s forwards;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--accent-color);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(calc(-50% + var(--offsetX, 0px)), 20px) scale(0) rotate(var(--rotation, 0deg));
    }

    100% {
        opacity: 1;
        transform: translate(calc(-50% + var(--offsetX, 0px)), var(--yShift, 0px)) scale(1) rotate(var(--rotation, 0deg));
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    pointer-events: none;
    /* Prevent ghost image on drag */
}

@keyframes scrollEndless {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-280px * 11 - 30px * 11));
    }
}

/* Pause animation on hover for desktop */
/* Pause handled in JS */

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 200px;
    }

    @keyframes scrollEndless {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-200px * 11 - 30px * 11));
        }
    }
}

/* Solution Section */
.solution-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.solution-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.solution-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(227, 242, 253, 0.85);
    /* Light blue overlay */
}

.solution-content-wrapper {
    position: relative;
    z-index: 1;
}

.text-white {
    color: #333;
    /* Keep text dark on light overlay */
}

/* About Section */
.about-section {
    padding: 120px 0;
    position: relative;
    background: url('../assets/images/gifca_bg01.jpg') no-repeat center center/cover;
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    /* Adjust alpha to drop tone */
    backdrop-filter: blur(4px);
    /* Add blur effect */
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-subtitle {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-color);
    line-height: 2;
}

/* Problems Section */
.problems-section {
    padding: 120px 0;
    background-color: var(--white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.problem-item {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 16px;
    border: none;
    transition: all 0.3s ease;
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.problem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s ease;
}

.problem-item-1 {
    background-color: #0288d1;
}

.problem-item-1::before {
    background-image: url('../assets/images/prob_bg01.jpg');
}

.problem-item-2 {
    background-color: #00acc1;
}

.problem-item-2::before {
    background-image: url('../assets/images/prob_bg02.jpg');
}

.problem-item-3 {
    background-color: #00897b;
}

.problem-item-3::before {
    background-image: url('../assets/images/prob_bg03.jpg');
}

.problem-item-4 {
    background-color: #689f38;
}

.problem-item-4::before {
    background-image: url('../assets/images/prob_bg04.jpg');
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-item:hover::before {
    transform: scale(1.1);
    opacity: 0.4;
}

.problem-item .problem-text {
    color: var(--white);
    font-weight: 900;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.4;
}

.problem-item .problem-icon {
    font-size: 3rem;
    color: var(--white);
}

.problem-item .problem-img-wrapper {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

@media (max-width: 992px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .problem-item {
        padding: 40px 20px;
    }

    .problem-item .problem-img-wrapper {
        width: 80px;
        height: 80px;
    }

    .problem-item .problem-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .problems-grid {
        gap: 10px;
    }

    .problem-item {
        padding: 30px 10px;
    }

    .problem-item .problem-img-wrapper {
        width: 60px;
        height: 60px;
    }

    .problem-item .problem-icon {
        font-size: 2rem;
    }
}

/* Lineup Section */
.lineup-section {
    padding: 120px 0;
    background-color: #f9fafb;
    /* Subtle distinct background for lineup */
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    /* Restored */
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image-wrapper {
    height: 200px;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: bold;
    font-size: 1.2rem;
}

.card-body {
    padding: 24px;
    text-align: center;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    min-height: 4em;
    line-height: 1.6;
}

.card-actions-index {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 1300px;
    /* Matched to main container width */
    margin: 40px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f0f4f8;
}

.faq-toggle-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}

.faq-answer-content {
    padding: 24px 30px;
    /* Increased padding */
    color: var(--text-light);
    line-height: 1.8;
    background-color: #f8fafc;
    /* Subtle background tone */
    border-top: 1px solid var(--border-color);
}

/* Contact Page */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 10px;
}

.contact-section {
    padding: 80px 0;
}

.contact-form {
    margin: 0 auto;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.required {
    background-color: #ff5252;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-agreement {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.agreement-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.agreement-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 700;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 0 !important;
}

#submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Contact Tabs */
.contact-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    background: #f0f4f8;
    padding: 5px;
    border-radius: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-tab.active {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-example {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-top: 6px;
    margin-left: 2px;
}

.hidden {
    display: none !important;
}

@media (max-width: 576px) {
    .contact-tabs {
        flex-direction: column;
        border-radius: 12px;
        padding: 5px;
    }

    .contact-tab {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 120px;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 80px;
    /* Space for floating button */
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* White */
}

.social-icons {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.social-icons a {
    color: #ccc;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    color: #888;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-desc {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav {
        display: none;
    }

    .burger-menu {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--white);
        /* Changed to white for blue header */
    }

    .header.active .bar {
        background-color: var(--white);
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        left: 0;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        padding: 40px 0;
        z-index: 1009;
        /* Below header (1010) */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        border-radius: 0 0 20px 20px;
    }

    .mobile-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Menu Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.75);
        z-index: 1008;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-nav a {
        font-size: 1.2rem;
        font-weight: 500;
        color: var(--primary-color);
    }

    .mobile-nav a.btn-primary {
        color: var(--white);
    }

    .header-container {
        justify-content: space-between;
    }
}

/* Burger Menu Animation */
.burger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--white);
}

.burger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Floating Button */
.floating-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    justify-content: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    /* Hide initially */
}

.floating-container.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.floating-btn-tel,
.floating-btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.floating-btn-tel {
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.floating-btn-tel:hover {
    background-color: #f0f4f8;
}

.tel-number {
    font-size: 1.2rem;
    font-weight: 800;
}

.floating-btn-contact {
    background-color: #ff5252;
    color: var(--white);
    border: 2px solid #ff5252;
}

.floating-btn-contact:hover {
    background-color: #ff1744;
    border-color: #ff1744;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 769px) {
    .floating-container {
        width: auto;
        left: auto;
        right: 40px;
        bottom: 30px;
        border-radius: 100px;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 10px 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 768px) {
    .floating-container {
        padding: 10px;
        gap: 10px;
    }

    .floating-btn-tel,
    .floating-btn-contact {
        flex: 1;
        padding: 10px;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 2px;
        border-radius: 8px;
    }

    .tel-number {
        font-size: 1rem;
    }

    .floating-btn-tel .material-icons-outlined,
    .floating-btn-contact .material-icons-outlined {
        font-size: 1.5rem;
    }

    .footer-links a {
        font-size: 0.75rem;
    }

    .footer-links {
        gap: 10px 15px;
        padding: 0 10px;
    }
}

/* Products Page */
.products-section {
    padding: 100px 0 80px;
    background-color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-top: 50px;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
        /* Increased vertical gap */
    }
}

.product-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    /* Ensure it takes full width of grid cell */
    min-width: 0;
    /* Prevention for overflow issues with long text */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-info {
    text-align: left;
}

.product-label {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.product-catch {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.product-name-kana {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    margin-top: 2px;
}

.product-actions {
    margin-top: 12px;
}

.btn-buy {
    width: 100%;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
}

/* Dialog (Modal) */
dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    width: 92%;
    max-width: 800px;
    max-height: 85vh;
    /* Slightly smaller for better visibility */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    /* Enable scrolling */
    -webkit-overflow-scrolling: touch;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    /* Clear default margin to avoid centering issues */
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Animation */
dialog[open] {
    animation: fadeInModal 0.4s ease-out forwards;
}

dialog[open]::backdrop {
    animation: backdropFadeIn 0.4s ease-out forwards;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dialog-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .dialog-content {
        flex-direction: row;
    }
}

.dialog-image {
    width: 100%;
    aspect-ratio: 1 / 1;
}

@media (min-width: 769px) {
    .dialog-image {
        width: 50%;
    }
}

.dialog-body {
    padding: 30px;
    /* Reduced for mobile space */
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .dialog-body {
        padding: 25px;
    }
}

.dialog-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.dialog-description {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
}

.dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-dialog-link {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px;
}

.btn-dialog-close {
    background-color: #eee;
    color: #666;
    padding: 10px;
}

.external-icon {
    font-size: 1rem !important;
    vertical-align: middle;
    margin-left: 4px;
}

.hook-icons-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hook-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
}

.hook-img-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

.hook-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.hook-icon-item:hover .hook-img {
    transform: scale(1.1);
}

.hook-icon-text {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
}

/* Problem Solution CTA */
.problem-solution-cta {
    margin-top: 80px;
    text-align: center;
    padding: 60px 40px;
    background-color: #f8f9fa;
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.problem-solution-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 40px;
}

.problem-solution-img-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.rotating-card {
    width: 200px;
    height: auto;
    animation: rotateEndless 10s linear infinite;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.15));
    transform-style: preserve-3d;
    backface-visibility: visible;
}

.problem-solution-btn-wrapper {
    margin-top: 20px;
}

@keyframes rotateEndless {
    from {
        transform: perspective(1000px) rotateX(30deg) rotateZ(15deg) rotateY(0deg);
    }

    to {
        transform: perspective(1000px) rotateX(30deg) rotateZ(15deg) rotateY(360deg);
    }
}

@media (max-width: 768px) {
    .problem-solution-cta {
        margin-top: 40px;
        padding: 40px 20px;
    }

    .rotating-card {
        width: 150px;
    }
}

/* Article/CTA Section */
.article-section {
    padding: 100px 0;
    position: relative;
    background: url('../assets/images/cta_dark_bg.png') no-repeat center center/cover;
    color: var(--white);
    overflow: hidden;
}

.article-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay for readability */
    z-index: 1;
}

.article-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-label {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-image-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.article-image {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--primary-dark);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--primary-light);
}

.btn-download .material-icons-outlined {
    font-size: 1.5rem;
}

/* E-gift Use Case Section */
.use-case-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-top: 1px solid var(--border-color);
}

.use-case-card {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.08);
    border: 1px solid rgba(0, 86, 179, 0.05);
}

.use-case-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.use-case-image-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.use-case-image {
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.use-case-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .use-case-section {
        padding: 60px 0;
    }

    .use-case-card {
        padding: 40px 20px;
    }
}

/* Privacy Policy Content */
.privacy-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 40px 20px;
    }
}

.privacy-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
}

.privacy-content li {
    margin-bottom: 10px;
}