/* ベース設定 */
        body {
            font-family: 'Noto Sans JP', sans-serif;
            color: #333;
            overflow-x: hidden;
        }

        /* スクロール連動フェードインアニメーション */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
        }
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* 時間差アニメーション用 */
        .delay-100 { transition-delay: 100ms; }
        .delay-200 { transition-delay: 200ms; }
        .delay-300 { transition-delay: 300ms; }

        /* Blobアニメーションの遅延 */
        .animation-delay-2000 { animation-delay: 2s; }
        .animation-delay-4000 { animation-delay: 4s; }

        /* パララックス効果 */
        .bg-parallax {
            background-attachment: fixed;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

        /* カスタムクリップパス（斜めの切り欠き等） */
        .clip-diagonal {
            clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        }

        /* アコーディオンアイコンのアニメーション */
        .faq-icon {
            transition: transform 0.3s ease;
        }
        .faq-icon.open {
            transform: rotate(45deg);
        }

        /* 目立つバッジ用アニメーション */
        @keyframes float-badge {
            0% { transform: translateY(0px) scale(1); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
            50% { transform: translateY(-10px) scale(1.05); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
            100% { transform: translateY(0px) scale(1); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
        }
        .animate-float-badge {
            animation: float-badge 3s ease-in-out infinite;
        }

        /* 白の袋文字5px（文字の輪郭線が内側に食い込まず、外側に綺麗に広がる設定） */
        .text-outline-5px {
            -webkit-text-stroke: 10px #ffffff;
            paint-order: stroke fill;
        }
        /* スマートフォンなど文字が小さい場合は、輪郭線が太すぎると潰れるため、メディアクエリでフチの太さを調整 */
        @media (max-width: 640px) {
            .text-outline-5px {
                -webkit-text-stroke: 5px #ffffff;
            }
        }

        /* * 新設：リード文・注釈用 高精度白フチ取り (text-shadowマルチ定義方式)
         * ブラウザ独自の文字幅計算バグを防ぎ、文字の重なりや潰れを100%回避しながら、綺麗に白いフチを作ります。
         */
        .text-outline-lead {
            text-shadow: 
                2.5px 2.5px 0 #fff, -2.5px 2.5px 0 #fff, 2.5px -2.5px 0 #fff, -2.5px -2.5px 0 #fff,
                1.5px 1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff,
                0px 2.5px 0 #fff, 0px -2.5px 0 #fff, 2.5px 0px 0 #fff, -2.5px 0px 0 #fff,
                1px 1.5px 0 #fff, -1px 1.5px 0 #fff, 1.5px -1px 0 #fff, -1.5px 1px 0 #fff;
        }

/* ==================================================
   Tailwind CDN custom color fallback
   WordPress環境でTailwind設定の読み込み順やキャッシュにより
   bg-navy 等の独自カラーが効かない場合の保険です。
================================================== */
.bg-navy { background-color: #0a1d3d !important; }
.text-navy { color: #0a1d3d !important; }
.border-navy { border-color: #0a1d3d !important; }
.bg-primary { background-color: #0066cc !important; }
.text-primary { color: #0066cc !important; }
.border-primary { border-color: #0066cc !important; }
.bg-primaryLight { background-color: #e6f0fa !important; }
.border-primaryLight { border-color: #e6f0fa !important; }
.bg-accent { background-color: #ffcc00 !important; }
.text-accent { color: #ffcc00 !important; }
.border-accent { border-color: #ffcc00 !important; }
.bg-accentHover { background-color: #e6b800 !important; }
.text-textDark { color: #333333 !important; }
.text-textLight { color: #666666 !important; }
.bg-bgGray { background-color: #f5f8fa !important; }

/* フッターはTailwindの独自クラスに依存せず、確実に濃紺背景に固定 */
.site-footer,
footer.bg-navy {
  background: #0a1d3d !important;
  color: #ffffff !important;
}

footer.bg-navy a,
footer.bg-navy p,
footer.bg-navy li,
footer.bg-navy h2,
footer.bg-navy h3,
footer.bg-navy h4,
footer.bg-navy span {
  color: inherit;
}

footer.bg-navy .text-gray-300 { color: #d1d5db !important; }
footer.bg-navy .text-gray-400 { color: #9ca3af !important; }
footer.bg-navy .text-primary { color: #22cae6 !important; }
footer.bg-navy .text-accent { color: #ffcc00 !important; }

/* ==================================================
   Section background fallback
   Tailwind CDNの独自カラー・任意値カラーがWP環境やキャッシュで効かない場合でも、
   LP各セクションの背景色が元HTMLどおり出るように固定します。
================================================== */
body.bg-white,
body {
  background: #ffffff !important;
}

/* Tailwindの通常背景・透過背景の保険 */
.bg-white { background-color: #ffffff !important; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95) !important; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.80) !important; }
.bg-white\/60 { background-color: rgba(255, 255, 255, 0.60) !important; }
.bg-white\/40 { background-color: rgba(255, 255, 255, 0.40) !important; }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.20) !important; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.10) !important; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05) !important; }
.bg-black\/5 { background-color: rgba(0, 0, 0, 0.05) !important; }
.bg-gray-50 { background-color: #f9fafb !important; }
.bg-gray-100 { background-color: #f3f4f6 !important; }
.bg-gray-200 { background-color: #e5e7eb !important; }

/* 任意値カラー bg-[#f4f9fc] の保険 */
.bg-\[\#f4f9fc\] { background-color: #f4f9fc !important; }

/* グラデーション系の保険 */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important;
}
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops)) !important;
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops)) !important;
}
.from-primary\/95 {
  --tw-gradient-from: rgba(0, 102, 204, 0.95) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(0, 102, 204, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-primary\/70 {
  --tw-gradient-to: rgba(0, 102, 204, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 102, 204, 0.70) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.to-primary\/10 {
  --tw-gradient-to: rgba(0, 102, 204, 0.10) var(--tw-gradient-to-position);
}
.from-yellow-300 {
  --tw-gradient-from: #fde047 var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(253, 224, 71, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-yellow-500 { --tw-gradient-to: #eab308 var(--tw-gradient-to-position); }
.from-blue-50 {
  --tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(239, 246, 255, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-white { --tw-gradient-to: #ffffff var(--tw-gradient-to-position); }
.from-white\/80 {
  --tw-gradient-from: rgba(255, 255, 255, 0.80) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.lg\:from-white\/60 {
  --tw-gradient-from: rgba(255, 255, 255, 0.60) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-transparent { --tw-gradient-to: transparent var(--tw-gradient-to-position); }

/* セクション単位で背景色を明示固定 */
#service,
section#flow,
section.py-12.bg-bgGray,
#chat-messages.bg-bgGray {
  background-color: #f5f8fa !important;
}

#area {
  background-color: #f4f9fc !important;
}

#voice,
#faq,
section.py-16.bg-white {
  background-color: #ffffff !important;
}

section.bg-accent {
  background-color: #ffcc00 !important;
}

/* Appealセクション：画像が読み込めない場合でも青背景にする */
section.bg-parallax {
  background-color: #0066cc !important;
}
section.bg-parallax > .absolute.inset-0 {
  background-image: linear-gradient(to right, rgba(0,102,204,0.95), rgba(0,102,204,0.70), rgba(0,102,204,0.10)) !important;
}

/* カード内の淡い青背景など */
.bg-primary\/5 { background-color: rgba(0, 102, 204, 0.05) !important; }
.bg-primary\/10 { background-color: rgba(0, 102, 204, 0.10) !important; }
.bg-primary\/20 { background-color: rgba(0, 102, 204, 0.20) !important; }
.border-primary\/20 { border-color: rgba(0, 102, 204, 0.20) !important; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.10) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.20) !important; }

/* ==================================================
   Contact Form 7 / お問い合わせフォーム
================================================== */

.ns-contact-section {
  background: #f5f8fa;
  padding: 88px 0;
}

.ns-contact-section__inner {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.ns-contact-section__head {
  text-align: center;
  margin-bottom: 40px;
}

.ns-contact-section__en {
  margin-bottom: 8px;
  color: #0066cc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ns-contact-section__title {
  margin: 0 0 16px;
  color: #333333;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.ns-contact-section__lead {
  color: #666666;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}

.ns-contact-section__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 32px;
  align-items: start;
}

.ns-contact-section__info {
  display: grid;
  gap: 20px;
}

.ns-contact-section__card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 102, 204, 0.12);
  border-top: 5px solid #0066cc;
}

.ns-contact-section__card-label {
  margin: 0 0 10px;
  color: #333333;
  font-size: 14px;
  font-weight: 900;
}

.ns-contact-section__tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0066cc;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.ns-contact-section__tel:hover {
  opacity: 0.82;
}

.ns-contact-section__note {
  margin: 16px 0 0;
  color: #666666;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.ns-contact-section__points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  list-style: none;
  box-shadow: 0 10px 30px rgba(10, 29, 61, 0.06);
}

.ns-contact-section__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333333;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
}

.ns-contact-section__points i {
  margin-top: 4px;
  color: #0066cc;
}

.ns-contact-section__form {
  padding: 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(10, 29, 61, 0.08);
}

/* CF7本体 */
.ns-contact-form {
  display: grid;
  gap: 20px;
}

.ns-contact-form__row {
  display: grid;
  gap: 8px;
}

.ns-contact-form__label {
  color: #333333;
  font-size: 14px;
  font-weight: 900;
}

.ns-contact-form__required,
.ns-contact-form__optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ns-contact-form__required {
  color: #ffffff;
  background: #e02424;
}

.ns-contact-form__optional {
  color: #0066cc;
  background: #e6f0fa;
}

.ns-contact-form__input,
.ns-contact-form__select,
.ns-contact-form__textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #dbe6ee;
  border-radius: 14px;
  background: #ffffff;
  color: #333333;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ns-contact-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.ns-contact-form__input:focus,
.ns-contact-form__select:focus,
.ns-contact-form__textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
  background: #fbfdff;
}

.ns-contact-form__privacy {
  padding: 16px;
  border-radius: 14px;
  background: #f5f8fa;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.ns-contact-form__privacy .wpcf7-list-item {
  margin: 0;
}

.ns-contact-form__privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
}

.ns-contact-form__submit {
  text-align: center;
}

.ns-contact-form__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 360px);
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffdc45 0%, #ffcc00 100%);
  color: #333333;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(255, 204, 0, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ns-contact-form__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 204, 0, 0.42);
}

.ns-contact-form__button:disabled,
.ns-contact-form__button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* CF7メッセージ */
.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #e02424;
  font-size: 12px;
  font-weight: 800;
}

/* 1024px以下 */
@media (max-width: 1024px) {
  .ns-contact-section__body {
    grid-template-columns: 1fr;
  }

  .ns-contact-section__info {
    grid-template-columns: 1fr 1fr;
  }
}

/* 768px以下 */
@media (max-width: 768px) {
  .ns-contact-section {
    padding: 64px 0;
  }

  .ns-contact-section__head {
    text-align: left;
  }

  .ns-contact-section__info {
    grid-template-columns: 1fr;
  }

  .ns-contact-section__form {
    padding: 24px 18px;
    border-radius: 22px;
  }
}

/* 576px以下 */
@media (max-width: 576px) {
  .ns-contact-section__inner {
    width: min(100% - 24px, 1120px);
  }

  .ns-contact-section__lead {
    font-size: 14px;
  }

  .ns-contact-section__card {
    padding: 22px;
  }

  .ns-contact-section__tel {
    font-size: 25px;
  }

  .ns-contact-form__input,
  .ns-contact-form__select,
  .ns-contact-form__textarea {
    font-size: 16px;
  }
}

/* ==================================================
   Case Section / 施工事例
================================================== */

.ns-case-section {
  background: #ffffff;
  padding: 88px 0;
}

.ns-case-section__inner {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.ns-case-section__head {
  margin-bottom: 40px;
  text-align: center;
}

.ns-case-section__en {
  margin-bottom: 8px;
  color: #0066cc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ns-case-section__title {
  margin: 0 0 16px;
  color: #333333;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.35;
}

.ns-case-section__lead {
  color: #666666;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}

.ns-case-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ns-case-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(10, 29, 61, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ns-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(10, 29, 61, 0.12);
}

.ns-case-card__link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ns-case-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e6f0fa;
}

.ns-case-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ns-case-card:hover .ns-case-card__thumb {
  transform: scale(1.08);
}

.ns-case-card__body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.ns-case-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ns-case-card__date {
  color: #666666;
  font-size: 12px;
  font-weight: 800;
}

.ns-case-card__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e6f0fa;
  color: #0066cc;
  font-size: 11px;
  font-weight: 900;
}

.ns-case-card__title {
  margin: 0;
  color: #333333;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.55;
}

.ns-case-card__excerpt {
  margin: 0;
  color: #666666;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.ns-case-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #0066cc;
  font-size: 13px;
  font-weight: 900;
}

.ns-case-section__button {
  margin-top: 36px;
  text-align: center;
}

.ns-case-section__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0066cc;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 102, 204, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-case-section__more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 102, 204, 0.32);
}

.ns-case-section__empty {
  padding: 32px;
  border-radius: 22px;
  background: #f5f8fa;
  color: #666666;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.9;
  text-align: center;
}

/* 1024px以下 */
@media (max-width: 1024px) {
  .ns-case-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 768px以下 */
@media (max-width: 768px) {
  .ns-case-section {
    padding: 64px 0;
  }

  .ns-case-section__head {
    text-align: left;
  }

  .ns-case-section__grid {
    grid-template-columns: 1fr;
  }
}

/* 576px以下 */
@media (max-width: 576px) {
  .ns-case-section__inner {
    width: min(100% - 24px, 1120px);
  }

  .ns-case-card__body {
    padding: 20px;
  }
}

/* reCAPTCHA 表記 */
.ns-recaptcha-notice {
  margin: -4px 0 0;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.ns-recaptcha-notice a {
  color: #0066cc;
  text-decoration: underline;
}

.ns-recaptcha-notice a:hover {
  opacity: 0.75;
}