/* ========================================
   株式会社EDEAL 案B デザインシステム
   Bootstrap 5 + CSS変数 + Orbitron（全体）
   ======================================== */

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800&display=swap");

:root {
  /* カラー（テーマ：#bd175c・グラデーションなし） */
  --edeal-primary: #bd175c;
  --edeal-primary-light: #bd175c;
  --edeal-primary-dark: #bd175c;
  --edeal-accent: #bd175c;
  --edeal-accent-hover: #a81452;
  --edeal-dark: #0a0a0a;
  --edeal-hero-bg: #111111;
  --edeal-text: #e5e7eb;
  --edeal-text-muted: #84898f;
  --edeal-bg: #0a0a0a;
  --edeal-bg-section: #141414;
  --edeal-border: #2d2d2d;
  /* フォント（全体にOrbitron） */
  --edeal-font: "Orbitron", sans-serif;
  --edeal-font-display: "Orbitron", sans-serif;
  /* スペーシング */
  --edeal-section-py: 5rem;
  --edeal-container-max: 1140px;
  /* トランジション */
  --edeal-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --edeal-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --edeal-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--edeal-font);
  color: var(--edeal-text);
  background-color: var(--edeal-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* text-muted：控えめな補足テキスト（見やすい青みグレー） */
.text-muted {
  color: var(--edeal-text-muted) !important;
}

/* text-primary：テーマカラー（ピンク）と同じ */
.text-primary {
  color: var(--edeal-primary) !important;
}

/* bg-primary：テーマカラー（ピンク）と同じ */
.bg-primary {
  background-color: var(--edeal-primary) !important;
}

/* ----- ヘッダー ----- */
.edeal-header {
  background: var(--edeal-dark);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--edeal-shadow);
}

.edeal-header .navbar {
  padding: 0;
}

.edeal-header .navbar-brand {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.edeal-header .edeal-logo-wrap {
  color: inherit;
}

.edeal-header .edeal-logo-wrap:hover {
  color: inherit;
}

.edeal-header .edeal-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--edeal-primary);
  transition: transform 0.25s var(--edeal-ease);
}

.edeal-header .edeal-logo-icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

.edeal-header .edeal-logo-wrap:hover .edeal-logo-icon {
  transform: scale(1.05);
}

.edeal-header .logo-img {
  height: 40px;
  width: auto;
}

.edeal-header .edeal-logo-text {
  color: var(--edeal-primary) !important;
  font-family: var(--edeal-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: opacity 0.25s var(--edeal-ease);
}

.edeal-header .edeal-logo-wrap:hover .edeal-logo-text {
  color: var(--edeal-primary) !important;
  opacity: 0.9;
}

.edeal-header .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: color 0.2s var(--edeal-ease), background 0.2s var(--edeal-ease);
}

.edeal-header .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.edeal-header .btn-contact {
  background: var(--edeal-accent);
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px;
  font-weight: 500;
}

.edeal-header .btn-contact:hover {
  background: var(--edeal-accent-hover);
  color: #fff !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.5rem;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* スマホ：サイトタイトル中央揃え、ハンバーガーボタン位置を固定（メニュー開閉でずれない） */
@media (max-width: 991.98px) {
  .edeal-header .navbar {
    position: relative;
    justify-content: center;
  }

  /* メニュー開閉に関係なく常に同じ位置に表示 */
  .edeal-header .navbar-toggler {
    position: fixed;
    top: 0.75rem;
    right: 0.5rem;
    z-index: 1031;
    margin: 0;
    transform: none;
  }
}

/* ----- ヒーロー（黒ベース・赤はワンポイント） ----- */
.edeal-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--edeal-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.edeal-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.edeal-hero .container {
  position: relative;
  z-index: 1;
}

.edeal-hero .lead {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 540px;
}

/* ヒーローCTA：赤はワンポイント（ボタンのみ） */
.edeal-hero .btn-hero-cta {
  background: var(--edeal-primary);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  transition: transform 0.2s var(--edeal-ease),
    box-shadow 0.2s var(--edeal-ease), background 0.2s;
}

.edeal-hero .btn-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--edeal-shadow-lg);
  background: var(--edeal-primary-dark);
  color: #fff;
}

/* ----- ヒーロー分割：左半分に動画、右半分にテキスト ----- */
.edeal-hero-split {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  overflow: hidden;
  margin-top: 0;
}

.edeal-hero-split::before {
  display: none;
}

/* 一旦動画を非表示（再表示する場合は display: none を削除） */
.edeal-hero-video-wrap {
  display: none;
  flex: 0 0 65%;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.edeal-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 動画を薄く（白のオーバーレイで淡く） */
.edeal-hero-video-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 1;
}

.edeal-hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    transparent 55%,
    rgba(0, 0, 0, 0.35) 80%,
    rgba(0, 0, 0, 0.95) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.edeal-hero-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 2.5rem;
  padding-top: 1rem;
  background: var(--edeal-hero-bg);
  color: #fff;
  overflow: hidden;
}

.edeal-matrix-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.edeal-matrix-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.edeal-hero-content-inner,
.edeal-cta-inner {
  position: relative;
  z-index: 1;
}

.edeal-hero-content-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.edeal-hero-content-inner .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

/* スマホのみ：ヒーロー下のスクロールリンク */
.edeal-hero-scroll-wrap {
  margin-top: 1rem;
}

.edeal-hero-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--edeal-primary);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  animation: edeal-hero-scroll-bounce 1.5s ease-in-out infinite;
}

.edeal-hero-scroll-link:hover {
  color: var(--edeal-accent-hover);
}

.edeal-hero-scroll-link::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.2rem;
}

@keyframes edeal-hero-scroll-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.35rem);
  }
}

@media (max-width: 991.98px) {
  .edeal-hero-split {
    flex-direction: column;
  }

  .edeal-hero-video-wrap {
    flex: none;
    width: 100%;
    height: 45vh;
    min-height: 280px;
  }

  .edeal-hero-video-overlay {
    background: linear-gradient(
      to bottom,
      transparent 40%,
      rgba(0, 0, 0, 0.6) 80%,
      rgba(0, 0, 0, 1) 100%
    );
  }

  .edeal-hero-content {
    padding: 2.5rem 1.5rem;
  }

  .edeal-hero-content-inner {
    max-width: 100%;
    text-align: center;
  }

  .edeal-hero-content-inner .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* スマホ：トップヒーロー・セクションの余白を抑える・横幅はみ出し防止 */
@media (max-width: 767.98px) {
  .edeal-hero-split {
    min-height: auto !important;
    padding-top: 1rem;
    padding-bottom: 1.75rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .edeal-hero-content {
    padding: 1.25rem 1rem;
    align-items: center;
    max-width: 100%;
  }

  .edeal-section {
    max-width: 100vw;
  }

  .edeal-hero-content-inner .hero-title {
    margin-bottom: 1rem !important;
  }

  .edeal-hero-content-inner .hero-lead {
    margin-bottom: 0 !important;
  }

  .edeal-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* スマホ小：余白をさらに詰める */
@media (max-width: 575.98px) {
  .edeal-hero-content {
    padding: 1rem 0.75rem;
  }

  .edeal-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ----- スマホ用：画面下部固定ナビ（アプリ風） ----- */
.edeal-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }

  /* お問い合わせページ含む全ページで表示（z-index を高めに） */
  .edeal-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    visibility: visible !important;
    margin: 0;
    background: var(--edeal-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0 env(safe-area-inset-bottom, 0) 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
  }

  .edeal-bottom-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    text-align: center;
    transition: color 0.2s, background 0.2s;
  }

  .edeal-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
  }

  .edeal-bottom-nav-label {
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .edeal-bottom-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .edeal-bottom-nav-item:hover .edeal-bottom-nav-icon,
  .edeal-bottom-nav-item:hover .edeal-bottom-nav-label {
    color: inherit;
  }

  .edeal-bottom-nav-item.is-active .edeal-bottom-nav-icon,
  .edeal-bottom-nav-item.is-active .edeal-bottom-nav-label {
    color: var(--edeal-primary);
  }

  /* お問い合わせはサービス・実績と同じデザイン（特別スタイルなし） */
}

/* ----- セクション共通 ----- */
.edeal-section {
  padding-top: var(--edeal-section-py);
  padding-bottom: var(--edeal-section-py);
}

.edeal-section-alt {
  background: var(--edeal-bg-section);
}

.edeal-section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.edeal-section-lead {
  color: var(--edeal-text-muted);
  margin-bottom: 2.5rem;
}

/* ----- サービスカード ----- */
.edeal-service-card {
  background: var(--edeal-bg-section);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--edeal-border);
  transition: box-shadow 0.25s var(--edeal-ease),
    transform 0.25s var(--edeal-ease);
}

.edeal-service-card:hover {
  box-shadow: var(--edeal-shadow-lg);
  transform: translateY(-4px);
}

.edeal-service-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.edeal-service-card .icon-wrap.primary {
  background: rgba(13, 59, 76, 0.1);
  color: var(--edeal-primary);
}

.edeal-service-card .icon-wrap.accent {
  background: rgba(189, 23, 92, 0.12);
  color: var(--edeal-accent);
}

.edeal-service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.edeal-service-card p {
  color: var(--edeal-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.edeal-section-alt .edeal-section-lead {
  color: var(--edeal-text-muted);
}

/* ----- 実績（Works） ----- */
.edeal-works-featured {
  background: var(--edeal-dark);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.edeal-works-featured .badge-cloud {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.edeal-works-featured h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0 0.75rem;
}

/* 開発実績：円グラフエリア */
.edeal-works-chart-wrap canvas {
  max-width: 100%;
  height: auto;
}
.edeal-works-chart-legend li {
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--edeal-text);
}
.edeal-works-chart-legend .legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 開発実績一覧：大カテゴリ（Cloud, Web…）を一段インデント */
.edeal-works-list-section > div {
  padding-left: 1.25rem;
}

.edeal-works-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 1.5rem; /* リスト全体を大カテゴリの下にさらにインデント */
}

.edeal-works-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--edeal-border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.edeal-works-list li:last-child {
  border-bottom: none;
}

.edeal-works-list .category {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--edeal-primary);
  font-size: 0.875rem;
  min-width: 120px;
}

/* ----- About ----- */
.edeal-about-box {
  background: var(--edeal-bg-section);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--edeal-border);
}

.edeal-about-box table {
  margin: 0;
  --bs-table-bg: transparent;
  background-color: transparent;
}

.edeal-about-box table th,
.edeal-about-box table td {
  background-color: transparent !important;
}

.edeal-about-box th {
  font-weight: 600;
  color: var(--edeal-text-muted);
  width: 140px;
}

.edeal-about-box td {
  color: var(--edeal-text);
  padding: 0.5rem 0.75rem 0.5rem 0;
  vertical-align: top;
}

.edeal-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 3px solid var(--edeal-primary);
  padding-left: 1.5rem;
}

.edeal-history-list li {
  padding: 0.5rem 0;
  position: relative;
  color: var(--edeal-text);
}

.edeal-about-box .text-muted,
.edeal-about-box h4,
.edeal-about-box h6 {
  color: var(--edeal-text) !important;
}

.edeal-history-list li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  background: var(--edeal-primary);
  border-radius: 50%;
}

.edeal-history-list .year {
  font-weight: 700;
  color: var(--edeal-primary);
  margin-right: 0.5rem;
}

/* ----- CTA（黒ベース・赤はボタンのみワンポイント） ----- */
.edeal-cta {
  background: var(--edeal-dark);
  color: #fff;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.edeal-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.edeal-cta .btn-cta {
  background: var(--edeal-primary);
  color: #fff;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  margin-top: 1rem;
  transition: background 0.2s var(--edeal-ease),
    transform 0.2s var(--edeal-ease);
}

.edeal-cta .btn-cta:hover {
  background: var(--edeal-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ----- フッター（豪華版） ----- */
.edeal-footer {
  background: var(--edeal-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 0 0 0;
  position: relative;
  overflow: hidden;
}

.edeal-footer-accent {
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--edeal-primary) 20%, var(--edeal-primary) 80%, transparent 100%);
  opacity: 0.9;
}

.edeal-footer-main {
  padding: 3.5rem 0 2.5rem;
}

.edeal-footer-logo {
  display: inline-block;
  font-family: var(--edeal-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff !important;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.25s var(--edeal-ease), opacity 0.25s var(--edeal-ease);
}

.edeal-footer-logo:hover {
  color: #fff !important;
  opacity: 0.9;
}

.edeal-footer-tagline {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 0.02em;
}

.edeal-footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.5rem;
}

.edeal-footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--edeal-primary);
}

.edeal-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
}

.edeal-footer-list li {
  margin-bottom: 0.25rem;
}

.edeal-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.25s var(--edeal-ease), padding-left 0.25s var(--edeal-ease);
  display: inline-block;
}

.edeal-footer-links a:hover {
  color: var(--edeal-primary);
  padding-left: 4px;
}

.edeal-footer-cta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

.edeal-footer-cta .edeal-footer-heading::after {
  width: 100%;
}

.edeal-footer-cta-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.btn-edeal-footer {
  display: inline-block;
  background: var(--edeal-primary);
  color: #fff !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s var(--edeal-ease), transform 0.2s var(--edeal-ease), box-shadow 0.25s var(--edeal-ease);
  border: none;
}

.btn-edeal-footer:hover {
  background: var(--edeal-accent-hover);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(189, 23, 92, 0.35);
}

/* Bootstrap 5 カラーオーバーライド */
.btn-primary {
  background-color: var(--edeal-primary);
  border-color: var(--edeal-primary);
}
.btn-primary:hover {
  background-color: var(--edeal-accent-hover);
  border-color: var(--edeal-accent-hover);
}
.btn-outline-primary {
  color: var(--edeal-primary);
  border-color: var(--edeal-primary);
}
.btn-outline-primary:hover {
  background-color: var(--edeal-primary);
  border-color: var(--edeal-primary);
  color: #fff;
}

.edeal-footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.edeal-footer-bottom-inner {
  text-align: center;
}

.edeal-footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ----- ユーティリティ ----- */
.edeal-container {
  width: 100%;
  max-width: var(--edeal-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .edeal-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ----- ページ共通（サブページ用） ----- */
.edeal-page-header {
  background: var(--edeal-dark);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 0;
}

.edeal-page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0;
}

.edeal-page-content {
  padding: var(--edeal-section-py) 0;
}

/* ----- お問い合わせページ ----- */
.edeal-contact-form .form-label {
  font-weight: 600;
  color: var(--edeal-text);
}

.edeal-contact-form .form-control {
  border-radius: 8px;
  border-color: var(--edeal-border);
  padding: 0.625rem 0.875rem;
}

.edeal-contact-form .form-control:focus {
  border-color: var(--edeal-primary);
  box-shadow: 0 0 0 3px rgba(189, 23, 92, 0.15);
}

.edeal-contact-form .btn-submit {
  background: var(--edeal-primary);
  color: #fff;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
}

.edeal-contact-form .btn-submit:hover {
  background: var(--edeal-primary-dark);
  color: #fff;
}

/* Contact Form 7 送信ボタン（お問い合わせページで確実に表示） */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: var(--edeal-primary) !important;
  color: #fff !important;
  padding: 0.75rem 2rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  margin-top: 1rem !important;
}

/* お問い合わせページ：スマホでフォーム下・送信ボタン・下部ナビがすべて表示されるように */
@media (max-width: 767.98px) {
  body.edeal-contact-page .edeal-page-content {
    padding-bottom: 6rem !important;
    overflow: visible !important;
  }

  body.edeal-contact-page .edeal-about-box {
    overflow: visible !important;
    padding-bottom: 2rem !important;
  }

  /* 下部固定ナビを確実に表示 */
  body.edeal-contact-page .edeal-bottom-nav {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
