:root {
    --primary: #227093;
    --secondary: #ff5252;
    --background: #eee;
    --highlight: #ffda79;
    /* Theme color */
    --theme: var(--primary);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Ensure scrollbars are visible on all pages */
html {
    overflow-y: scroll;
    scrollbar-width: auto;
    -ms-overflow-style: scrollbar;
}

html::-webkit-scrollbar {
    display: block;
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: #f1f1f1;
}

html::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: #888;
}

body {
    overflow-y: auto;
    font-family: 'Noto Sans JP', sans-serif;
    color: #343434;
}

.hero-pagination .swiper-pagination-bullet {
  width: 40px;
  height: 2px;
  border-radius: 0;
  background: white;
  opacity: 1;
  margin: 0 4px !important;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 40px;
  background: #0463FE;
}

.font-inter {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}

.font-noto-sans-jp {
    font-family: 'Noto Sans JP', sans-serif;
}

.simpleParallax {
    height: 100%;
}

.font-mincho {
    font-family: "Zen Old Mincho", serif;
}

.font-gothic {
    font-family: 'Zen Maru Gothic', sans-serif !important;
}

.featured-swiper .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 1 !important;
}

.featured-swiper .swiper-pagination-bullet-active {
    background: #C4B28C !important;
}

@keyframes flow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-flow {
    animation: flow 18s linear infinite;
}


@keyframes bounce {
    25% {
        transform: rotate(90deg) translate(.25rem);
    }

    75% {
        transform: rotate(90deg) translate(-.25rem);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

@media (min-width: 767px) {

    .top-about-swiper .swiper-slide.swiper-slide-next {
        transition: width .5s;
    }

    .top-about-swiper .swiper-slide {
        width: 30%;
        transition: width .5s;
    }

    .top-about-swiper .swiper-slide.swiper-slide-next {
        width: 38%;
        transition: width .5s;
    }
}

@media (max-width: 425px) {
    .top-about-swiper .swiper-slide {
        width: 80%;
        transition: width .5s;
    }

    .top-about-swiper .swiper-slide.swiper-slide-next {
        width: 90%;
    }
}


@keyframes scrollCircleMoveFade {
    0% {
        top: -15px;
        opacity: 0;
    }

    10% {
        top: -5px;
        opacity: 1;
    }

    86% {
        top: 80px;
        opacity: 1;
    }

    98% {
        top: 80px;
        opacity: 0;
    }

    100% {
        top: 0;
        opacity: 0;
    }
}

#scroll-circle {
    animation: scrollCircleMoveFade 1.6s linear infinite;
}

.c-btn.grad {
  background-size: 200% 100%;
  border: none;
}

.c-btn.grad:hover {
  background-position: 100% 0;
}

/* Contact page: SP layout tuned for 390px width */
@media (max-width: 390px) {
  body.contact-page .contact-form {
    border: 0 !important;
    padding: 16px 14px !important;
    gap: 24px !important;
  }

  /* Titles / helper texts */
  body.contact-page .contact-form [class*="text-[20px]"] {
    font-size: 16px !important;
  }
  body.contact-page .contact-form [class*="text-[16px]"] {
    font-size: 14px !important;
  }
  body.contact-page .contact-form [class*="text-[14px]"] {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  /* Field row spacing and label width */
  body.contact-page .contact-form [class*="w-[200px]"] {
    width: auto !important;
  }
  body.contact-page .contact-form [class*="gap-12"] {
    gap: 12px !important;
  }
  body.contact-page .contact-form [class*="gap-10"] {
    gap: 20px !important;
  }
  body.contact-page .contact-form [class*="gap-8"] {
    gap: 10px !important;
  }

  /* Inputs */
  body.contact-page .contact-form select,
  body.contact-page .contact-form input[type="text"],
  body.contact-page .contact-form input[type="email"],
  body.contact-page .contact-form input[type="tel"] {
    height: 40px !important;
    font-size: 14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.contact-page .contact-form textarea {
    height: 120px !important;
    font-size: 14px !important;
    padding: 14px !important;
  }

  /* Utility overrides used in this form */
  body.contact-page .contact-form [class*="h-[64px]"] {
    height: 40px !important;
  }
  body.contact-page .contact-form [class*="px-6"] {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.contact-page .contact-form [class*="p-6"] {
    padding: 14px !important;
  }

  /* Address fields should be full width on SP */
  body.contact-page .contact-form [class*="w-[280px]"] {
    width: 100% !important;
  }
  body.contact-page #postal_code {
    padding-left: 44px !important;
  }

  /* Select arrow positioning */
  body.contact-page .contact-form .pointer-events-none {
    right: 14px !important;
  }

  /* Agreement + submit button */
  body.contact-page .contact-form label span[class*="text-[18px]"] {
    font-size: 14px !important;
  }
  body.contact-page .contact-form label span[class*="w-[18px]"] {
    width: 16px !important;
    height: 16px !important;
  }
  body.contact-page .contact-form button {
    height: 56px !important;
    font-size: 22px !important;
  }
  body.contact-page .contact-form button[class*="max-w-[520px]"] {
    max-width: 100% !important;
  }
}

/* Disable product slider on mobile (SP) */
@media (max-width: 767px) {
  .product-swiper {
    overflow: visible !important;
  }
  
  .product-swiper .swiper-wrapper {
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    transition: none !important;
  }
  
  .product-swiper .swiper-slide {
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    margin: 0 !important;
  }
}

