: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;
  }
}
/* SPアコーディオン用：開いた時のアイコン回転 */
.menu-group.is-open .accordion-icon {
  transform: rotate(180deg);
}

/* 他の箇所（フッター等）の + 設定が干渉しないよう無効化 */
.js-sp-menu-trigger::before, 
.js-sp-menu-trigger::after {
  content: none !important;
  display: none !important;
}



/* ========================
   Contact Form 7 カスタムスタイル
   ======================== */

/* CF7フォーム全体 */
.wpcf7-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

/* CF7 autop が挿入する不要な <br> をボタン内で非表示 */
.nbc-confirm-btn br,
.nbc-back-btn br,
.nbc-submit-btn br,
.nbc-confirm-wrap br,
.nbc-submit-wrap br {
  display: none !important;
}

@media (min-width: 768px) {
  .wpcf7-form {
    gap: 32px !important;
  }
}

@media (min-width: 1024px) {
  .wpcf7-form {
    gap: 40px !important;
  }
}

/* CF7のspanラッパーをfull-widthに */
.wpcf7 .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}

/* テキスト入力・メール・電話 */
.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-email,
.wpcf7 .wpcf7-tel,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
  width: 100% !important;
  background-color: #E6F4FB !important;
  border: 1px solid #D6D6D6 !important;
  height: 32px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  outline: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.wpcf7 .wpcf7-text:focus,
.wpcf7 .wpcf7-email:focus,
.wpcf7 .wpcf7-tel:focus,
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus {
  border-color: #0F4B8D !important;
}

@media (min-width: 768px) {
  .wpcf7 .wpcf7-text,
  .wpcf7 .wpcf7-email,
  .wpcf7 .wpcf7-tel,
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"] {
    height: 45px !important;
    font-size: 16px !important;
  }
}

@media (min-width: 1024px) {
  .wpcf7 .wpcf7-text,
  .wpcf7 .wpcf7-email,
  .wpcf7 .wpcf7-tel,
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"] {
    height: 65px !important;
    font-size: 20px !important;
  }
}

/* テキストエリア */
.wpcf7 .wpcf7-textarea,
.wpcf7 textarea {
  width: 100% !important;
  background-color: #E6F4FB !important;
  border: 1px solid #D6D6D6 !important;
  height: 126px !important;
  padding: 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  outline: none !important;
  resize: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.wpcf7 .wpcf7-textarea:focus,
.wpcf7 textarea:focus {
  border-color: #0F4B8D !important;
}

.wpcf7 .wpcf7-textarea::placeholder,
.wpcf7 textarea::placeholder {
  color: #8E8E8E !important;
}

@media (min-width: 768px) {
  .wpcf7 .wpcf7-textarea,
  .wpcf7 textarea {
    height: 160px !important;
    font-size: 16px !important;
  }
}

@media (min-width: 1024px) {
  .wpcf7 .wpcf7-textarea,
  .wpcf7 textarea {
    height: 240px !important;
    font-size: 20px !important;
  }
}

/* セレクトボックス */
.wpcf7 .wpcf7-select,
.wpcf7 select {
  width: 100% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #E6F4FB !important;
  border: 1px solid #D6D6D6 !important;
  height: 32px !important;
  padding: 0 48px 0 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #8E8E8E !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpolygon points='8,10 0,0 16,0' fill='%238E8E8E'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 24px center !important;
  background-size: 16px 10px !important;
}

@media (min-width: 768px) {
  .wpcf7 .wpcf7-select,
  .wpcf7 select {
    height: 45px !important;
    font-size: 16px !important;
  }
}

@media (min-width: 1024px) {
  .wpcf7 .wpcf7-select,
  .wpcf7 select {
    height: 65px !important;
    font-size: 20px !important;
  }
}

/* ラジオボタン */
.wpcf7 .wpcf7-radio {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

@media (min-width: 768px) {
  .wpcf7 .wpcf7-radio {
    flex-direction: row !important;
    gap: 24px !important;
  }
}

@media (min-width: 1024px) {
  .wpcf7 .wpcf7-radio {
    gap: 32px !important;
  }
}

.wpcf7 .wpcf7-radio .wpcf7-list-item {
  margin: 0 !important;
}

.wpcf7 .wpcf7-radio .wpcf7-list-item label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.03em !important;
}

@media (min-width: 768px) {
  .wpcf7 .wpcf7-radio .wpcf7-list-item label {
    font-size: 16px !important;
  }
}

@media (min-width: 1024px) {
  .wpcf7 .wpcf7-radio .wpcf7-list-item label {
    font-size: 20px !important;
  }
}

/* 同意チェックボックス */
.nbc-acceptance-wrap {
  display: inline !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.03em !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

.nbc-acceptance-wrap .wpcf7-form-control-wrap {
  display: inline !important;
  width: auto !important;
}

.nbc-acceptance-wrap .wpcf7-acceptance {
  display: inline !important;
}

.nbc-acceptance-wrap .wpcf7-list-item {
  display: inline !important;
  margin: 0 8px 0 0 !important;
}

.nbc-acceptance-wrap .wpcf7-list-item label {
  display: inline !important;
  cursor: pointer !important;
}

.nbc-acceptance-wrap input[type="checkbox"] {
  vertical-align: middle !important;
  margin-right: 8px !important;
  width: 18px !important;
  height: 18px !important;
}

@media (min-width: 768px) {
  .nbc-acceptance-wrap {
    font-size: 16px !important;
  }
}

@media (min-width: 1024px) {
  .nbc-acceptance-wrap {
    font-size: 20px !important;
  }
}

/* 送信ボタン */
.wpcf7 input.nbc-submit-btn,
.wpcf7 .wpcf7-submit,
.wpcf7 input[type="submit"] {
  width: 164px !important;
  height: 34px !important;
  background: linear-gradient(90deg, #1B3068 0%, #355FCE 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.03em !important;
  line-height: 1.5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  cursor: pointer !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
}

@media (min-width: 768px) {
  .wpcf7 input.nbc-submit-btn,
  .wpcf7 .wpcf7-submit,
  .wpcf7 input[type="submit"] {
    width: 240px !important;
    height: 45px !important;
    font-size: 26px !important;
  }
}

@media (min-width: 1024px) {
  .wpcf7 input.nbc-submit-btn,
  .wpcf7 .wpcf7-submit,
  .wpcf7 input[type="submit"] {
    width: 350px !important;
    height: 74px !important;
    font-size: 32px !important;
  }
}

/* バリデーションエラーメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
  color: #ED0D0D !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}

/* 送信完了・エラーメッセージ */
.wpcf7 .wpcf7-response-output {
  border: 1px solid #0F4B8D !important;
  padding: 16px !important;
  margin-top: 16px !important;
  text-align: center !important;
  font-size: 14px !important;
}

/* 確認ビュー */
.nbc-confirm-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nbc-confirm-view > div:first-child {
  border-top: 1px solid #D6D6D6;
}

/* 確認するボタン */
.nbc-confirm-btn {
  cursor: pointer;
  transition: opacity 0.2s;
}

.nbc-confirm-btn:hover {
  opacity: 0.85;
}

/* 戻るボタン */
.nbc-back-btn {
  cursor: pointer;
  transition: all 0.2s;
}

.nbc-back-btn:hover {
  background-color: #1B3068;
  color: #fff;
}

/* 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;
  }
}

