/* ==========================================================================
   共通設定
   ========================================================================== */
html {
  scroll-padding-top: 6rem; /* ヘッダーの高さ(6rem)分、スクロール位置を調整 */
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333333;
}

/* イラレカンプからの抽出カラー */
.text-orange { color: #E55A35; }
.text-navy { color: #1E335B; }

/* 共通セクションタイトル */
.section-title {
  font-size: 1.5rem; /* PCなら24px〜30px程度 */
  font-weight: 700;
  color: #1A2E5A;
  text-align: center;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .section-title { font-size: 1.875rem; }
}

.section-subtitle {
  text-align: center;
  color: #6B7280;
  font-size: 0.875rem;
  margin-top: -2.5rem;
  margin-bottom: 3rem;
}

  /* 全体的なスムーススクロール */
  html {
    scroll-behavior: smooth;
  }

  /* アニメーション用の基本スタイル（表示前） */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* 表示時（JSでクラス付与） */
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }

  /* ヒーローエリア専用のふわっと表示アニメーション */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* ==========================================================================
   HEADER
   ========================================================================== */
.lp-header {
  width: 100%;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 影を追加 */
  z-index: 50;
}
.header-container {
  max-width: 75rem; /* 1200px (選ばれる理由と合わせる) */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  height: auto; /* padding調整に合わせて自動に */
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 36px; /* ロゴサイズ拡大 */
}
.header-nav {
  display: none;
}
@media (min-width: 768px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
  }
  .header-nav a:not(.btn-download-nav):hover {
    opacity: 0.7;
  }
}
/* ヘッダー右のオレンジボタン */
.btn-download-nav {
  background-color: #E55A35;
  color: #ffffff;
  padding: 0.8rem 2.25rem; /* 少し大きく */
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem; /* 明示的に設定 */
  transition: opacity 0.2s;
}
.btn-download-nav:hover {
  opacity: 0.9;
}

/* ==========================================================================
   HERO SECTION (メインビジュアル)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #ffffff;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(249, 250, 251, 0.95)),
    url('../img/backimage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 2rem;
}
.hero-container {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
}
.hero-arrow{
  width: 0.7rem;
}
@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    align-items: stretch;
    position: relative;
  }
}

/* 左側テキストエリア */
.hero-text-area {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .hero-text-area {
    width: 45%;
    padding-top: 2rem;
    padding-right: 1rem;
  }
}

/* 「AI導入相談窓口」大タイトル */
.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #E55A35;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem; /* 60px相当 */
  }
}

/* 中見出しキャッチコピー */
.hero-sub-catch {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .hero-sub-catch {
    font-size: 1.75rem; /* 28px相当 */
  }
}
/* カンプの「最適な活用法」の下線再現 */
.text-orange-underline {
  color: #E55A35;
  background: linear-gradient(transparent 70%, #E2E8F0 70%);
}

/* リード文テキストの塊 */
.hero-lead-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333333;
  font-weight: 500;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .hero-lead-text {
    font-size: 1.125rem; /* 18px相当 */
  }
}

/* 20周年月桂樹バッジ */
.badge-anniversary {
  align-self: flex-start;
  width: 10rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .badge-anniversary {
    width: 14rem;
  }
}
.badge-anniversary img {
  width: 100%;
  height: auto;
}

/* 右側メイン画像エリア */
.hero-image-area {
  width: 100%;
}
@media (min-width: 768px) {
  .hero-image-area {
    width: 55%;
    display: flex;
    align-items: center;
  }
}
.hero-image-area img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* ==========================================================================
   HERO BUTTONS AREA (画面下部の浮かぶ大きな2つのボタン)
   ========================================================================== */
.hero-action-area {
  width: 100%;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .hero-action-area {
    margin-top: 1.5rem;
  }
}
.hero-buttons-container {
  max-width: 55rem; /* ボタン2つが綺麗に並ぶ幅 */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-buttons-container {
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
  }
}

/* 共通：メインビジュアル下部の巨大ボタン装飾 */
.btn-hero-orange, .btn-hero-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.25rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.5rem; /* 24px相当 */
  color: #ffffff;
  letter-spacing: 0.05em;
  /* イラレのドロップシャドウを再現（少し強めで滑らかな影） */
  box-shadow: 0 15px 30px rgba(26, 46, 90, 0.25);
  transition: all 0.2s ease;
}
@media (min-width: 640px) {
  .btn-hero-orange, .btn-hero-navy {
    width: 24rem; /* ボタン1つあたり約384px幅 */
  }
}

/* オレンジボタン：イラレの絶妙なグラデーションをブレンド */
.btn-hero-orange {
  background: linear-gradient(135deg, #EC6D4C 0%, #E55A35 100%);
}
/* ネイビーボタン */
.btn-hero-navy {
  background-color: #383E4F;
}

/* ホバーした時に少し上に浮き上がるイラレデザイナー好みのエフェクト */
.btn-hero-orange:hover, .btn-hero-navy:hover {
  transform: translateY(2px);
  box-shadow: 0 8px 18px rgba(26, 46, 90, 0.25);
  opacity: 0.92;
}
/* ==========================================================================
   PROBLEM SECTION (お悩み)
   ========================================================================== */
.problem-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #f2f2f2 !important; /* 濃いグレーへ調整 */
}
.problem-container {
  max-width: 75rem; /* 1200px (選ばれる理由と合わせる) */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.problem-card {
  background-color: #ffffff; /* 背景色に合わせてカードを白に */
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.problem-card img {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}
.problem-card p {
  font-size: 0.875rem;
  font-weight: 700;
}
/* ==========================================================================
   FEATURES SECTION (選ばれる3つの理由)
   ========================================================================== */
.features-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #1E335B;
}
.features-container {
  max-width: 75rem; /* 1200px に広げて全体の横幅を確保 */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.features-section .section-title {
  color: #ffffff;
}

/* セクション大見出し */
.features-main-title {
  font-size: 1.75rem; /* 28px */
  font-weight: 900;
  color: #000000;
  text-align: center;
  margin-bottom: 5rem; /* タイトルとコンテンツの間を広めに設定 */
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .features-main-title {
    font-size: 2.25rem; /* 36px */
  }
}

/* 3カラムのグリッド配置 */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px; /* スマホ時の間隔を狭める */
  margin-top: 40px;
  align-items: start;
}
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem; /* PC時の間隔を狭める (40px -> 16px) */
  }
}

/* 各カードのスタイル */
.feature-card {
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

/* 数字と見出しの並び */
.feature-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  /* タイトルエリアの下にオレンジの線を敷く設定 */
  border-bottom: 1px solid #1E335B;
  padding-bottom: 1.25rem;
}

/* 大きな数字 (1, 2, 3) */
/* --- 前半のスタイル（.feature-headerまで）はそのまま --- */

/* 変更：テキスト用の .feature-number は削除し、以下を追加します */

/* 数字画像用のコンテナ（サイズと位置の調整） */
.feature-number-img {
  width: 40px;
  flex-shrink: 0;  /* 横幅が狭まらないように固定するおまじない */
  margin-bottom: 8px;
}

.feature-number-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* カード内の見出し（画像と並びが綺麗になるよう少し調整） */
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
  margin-bottom: 10px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) {
  .feature-title { font-size: 1.2rem; }
}
@media (min-width: 768px) {
  .feature-card { padding: 40px 20px; }
  .feature-number-img { width: 50px; }
}


/* カード内の見出し */
.feature-title {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
  padding-top: 0.25rem;
}
@media (min-width: 1024px) {
  .feature-title {
    font-size: 1.25rem; /* 20px */
  }
}

/* 説明文（長文） */
.feature-body-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555555;
  text-align: justify; /* カンプのように左右の端を揃える */
  font-weight: 500;
}

/* ==========================================================================
   SERVICES SECTION (サービス一覧)
   ========================================================================== */
.services-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #f2f2f2 !important; /* 濃いグレーへ調整 */
}
.services-container {
  max-width: 75rem; /* 1200px (選ばれる理由と合わせる) */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.service-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background-color: #ffffff; /* 背景色に合わせてカードを白に */
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.service-card img {
  width: 180px !important;
  height: auto !important;
  margin: 30px auto 0 !important;
  display: block;
}
.problem-card img {
  width: 100%;
  height: auto;
}
.service-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-content h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1A2E5A;
}
.service-content p {
  font-size: 0.875rem;
  color: #4B5563;
  line-height: 1.625;
}
.section-cta-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-top: 3rem;
}
@media (min-width: 640px) {
  .section-cta-buttons { flex-direction: row; }
}

/* 共通：中くらいボタン */
.btn-orange-md, .btn-dark-md {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.3rem 5rem; /* 少し大きく */
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.5rem; /* 明示的に設定 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  white-space: nowrap; /* テキストと矢印を同じ行に維持 */
}
.btn-orange-md { background-color: #D95338; color: #ffffff; }
.btn-dark-md { background-color: #2B364A; color: #ffffff; }
.btn-orange-md:hover, .btn-dark-md:hover {
  transform: translateY(3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-orange-md:hover img, .btn-dark-md:hover img { transform: translateX(4px); }

/* ==========================================================================
   SOLUTIONS SECTION (解決できること)
   ========================================================================== */
.solutions-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #f2f2f2 !important; /* 濃いグレーへ調整 */
}
.solutions-container {
  max-width: 75rem; /* 1200px (選ばれる理由と合わせる) */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* セクション大見出し */
.solutions-main-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #000000;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .solutions-main-title { font-size: 2.25rem; }
}

/* 2カラムのグリッド */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* 解決カードの装飾 */
.solution-card {
  border: 1px solid #A0A0A0; /* カンプのシャープなグレーの細線 */
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* カード内のタイトル（上部の薄いベージュ背景エリア） */
.solution-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.5;
  background-color: #F7F5F0; /* カンプの背景色を再現 */
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E5E0D5; /* タイトル下のうっすらとした区切り線 */
}
@media (min-width: 768px) {
  .solution-card-title { font-size: 1.125rem; }
}

/* カード内の説明文 */
.solution-card-body {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333333;
  line-height: 1.7;
  padding: 1.5rem;
  text-align: justify;
}
@media (min-width: 768px) {
  .solution-card-body { font-size: 0.937rem; }
}

/* 下部メッセージエリア */
.solutions-summary {
  text-align: center;
  font-size: 0.937rem;
  line-height: 2;
  color: #000000;
  font-weight: 700; /* 全体的に太めの文字組み */
  margin-bottom: 4rem;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .solutions-summary { font-size: 1.125rem; }
}
/* 「実現できません」等の強調部分 */
.summary-highlight {
  font-weight: 900;
}

/* ボタンエリア全体の調整（マージンのみ） */
.solutions-action-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .solutions-action-area {
    flex-direction: row;
    gap: 2.5rem;
  }
}
/* ==========================================================================
   CASE SECTION (導入事例)
   ========================================================================== */
.case-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #1E335B !important; /* 紺色に変更 */
  overflow: hidden; /* 画面外にはみ出たカードを綺麗に隠す */
}
.case-section .section-title {
  color: #ffffff;
}
.case-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* セクション大見出し */
.case-main-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #000000;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .case-main-title { font-size: 2.25rem; }
}

/* スライダーの位置基準となるラッパー */
.slider-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

/* 横スクロールするコンテナ */
.slider-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto; /* 横スクロールを可能にする */
  scroll-snap-type: x mandatory; /* スナップ機能を有効化 */
  scroll-behavior: smooth;
  padding-bottom: 2rem;
  /* 無限ループ用に固定パディングを削除 */
  padding-left: 0;
  padding-right: 0;
  /* スクロールバーを非表示にする（デザイン重視） */
  -ms-overflow-style: none;  /* IE, Edge */
  scrollbar-width: none;  /* Firefox */
}
.slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* 事例カードの基本装飾 */
.case-card {
  flex: 0 0 100%; /* スマホでは画面幅の100%のサイズ */
  max-width: 45rem; /* 720px (カンプのメインカードサイズ) */
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  scroll-snap-align: center; /* カードを中央で止める */
  scroll-snap-stop: always;
}
@media (min-width: 768px) {
  .case-card {
    flex: 0 0 45rem; /* PCでは720pxに固定 */
  }
}
@media (max-width: 768px) {
  .slider-container {
    padding-left: 5%; /* (100% - 85%) / 2 */
    padding-right: 5%;
  }
}

/* カード内のタイトル */
.case-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .case-card-title { font-size: 1.25rem; }
}

/* カード内部のレイアウト */
.case-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .case-card-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* カード内左側（画像とプロフィール） */
.case-card-left {
  flex-shrink: 0;
  width: 11rem; /* 約176px */
}
.case-img-placeholder {
  width: 100%;
  height: 11rem;
  background-color: #DCDCDC; /* カンプのグレーのプレースホルダー */
  margin-bottom: 1rem;
}
.case-img-placeholder img {
  width: 100%;
  object-fit: cover;
}
.case-meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
}

/* カード内右側（長文テキスト） */
.case-card-right {
  flex-grow: 1;
}
.case-text {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.75;
  text-align: justify;
  word-break: break-all;
}

/* 左右の矢印ボタン共通スタイル */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background-color: #E55A35; /* 紺背景で見やすいオレンジに変更 */
  color: #ffffff;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.2s;
}
.slide-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}
.slide-arrow:hover {
  background-color: #E55A35; /* ホバーでオレンジになる小粋な演出 */
  transform: translateY(-50%) scale(1.1);
}

/* 矢印ボタンの左右の配置場所（カンプの位置に重ねる） */
.prev-arrow {
  left: calc(50% - 360px - 1.5rem); /* メインカード（720px）の左端に絶妙に被る位置 */
}
.next-arrow {
  right: calc(50% - 360px - 1.5rem); /* メインカード（720px）の右端に絶妙に被る位置 */
}

/* 画面が狭いときはボタンを端に寄せる */
@media (max-width: 800px) {
  .prev-arrow { left: 0.5rem; }
  .next-arrow { right: 0.5rem; }
}

/* 下部ボタンエリア */
.case-action-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 640px) {
  .case-action-area { flex-direction: row; gap: 2.5rem; }
}

/* 導入事例エリアの資料ダウンロードボタン（紺背景に埋もれないよう白に変更） */
.case-section .btn-dark-md {
  background-color: #ffffff;
  color: #1E335B;
}
.case-section .btn-dark-md img {
  filter: brightness(0); /* 白い矢印を黒に変更して視認性を確保 */
}
.case-section .btn-dark-md:hover {
  background-color: #f2f2f2;
  color: #1E335B;
}

/* スマートフォンサイズ時の余白調整（導入例エリア） */
@media (max-width: 640px) {
  .case-section {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
  .case-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .slider-wrapper {
    margin-bottom: 2.5rem;
  }
  .case-card {
    padding: 1.5rem 1.25rem;
  }
  /* 導入例画像をスマホ時にセンター揃え */
  .case-card-left {
    margin-left: auto;
    margin-right: auto;
  }
  .case-img-placeholder {
    margin-left: auto;
    margin-right: auto;
  }
  .case-card-title {
    margin-bottom: 1rem;
  }
  .case-card-content {
    gap: 1.25rem;
  }
  .case-action-area {
    gap: 1rem;
  }
  /* スマホ時は矢印ボタンのサイズを小さくし、左右に寄せてテキストへの被りを軽減 */
  .slide-arrow {
    width: 2.3rem;
    height: 2.3rem;
  }
  .prev-arrow { left: 0.25rem; }
  .next-arrow { right: 0.25rem; }
}

/* ==========================================================================
   FLOW SECTION (AI導入の流れ)
   ========================================================================== */
.flow-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #f9fafb;
}
.flow-container {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .flow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.flow-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* スマホ〜タブレット：カードの下に縦向きの矢印 */
.flow-card:not(:last-child)::after {
  content: "▼";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: #4a69a4;
}

.flow-step-header {
  padding: 1.25rem 1.5rem 0;
}
.flow-step-number {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #D95338;
}
.flow-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
}
.flow-step-title-sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
}

.flow-step-list {
  list-style: none;
  padding: 1.25rem 1.5rem 0.75rem 1.5rem;
  margin: 0;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.8;
}
.flow-step-list li::before {
  content: "●";
  color: #E55A35;
  font-size: 0.6rem;
  margin-right: 0.4rem;
}

.flow-step-period {
  margin-top: auto;
  padding: 0.75rem 1.5rem 1.25rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1E335B;
}

.flow-bottom {
  text-align: center;
}
.flow-bottom-text {
  font-size: 0.937rem;
  color: #6B7280;
  margin-bottom: 1rem;
}
.flow-bottom-btn {
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* PC幅（4カラム）のときは横向きの矢印に変更 */
@media (min-width: 1024px) {
  .flow-card:not(:last-child)::after {
    content: "▶︎";
    top: 50%;
    right: -1.6rem;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
  }
}
.flow-step-img{
  padding: 1.3rem;
}

/* ==========================================================================
   FAQ SECTION (よくある質問 - アコーディオン)
   ========================================================================== */
.faq-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #f2f2f2 !important; /* 濃いグレーへ調整 */
}
.faq-container {
  max-width: 75rem; /* 1200px (選ばれる理由と合わせる) */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* FAQ大見出し */
.faq-main-title {
  font-size: 2rem;
  font-weight: 900;
  color: #000000;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 0.1em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 各質問の間の余白 */
}

/* アコーディオンの1枠の外枠 */
.faq-item {
  background-color: #ffffff;
  border: 1px solid #E5E7EB; /* カンプの細い境界線 */
  box-shadow: 0 8px 25px rgba(30, 51, 91, 0.1); /* 影を少し強めて存在感を出す */
  border-radius: 0.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  transform: translateY(-3px); /* 少し浮き上がる動き */
  box-shadow: 0 15px 35px rgba(30, 51, 91, 0.18); /* ホバー時に影を強調 */
}
.faq-item[open] {
  background-color: #f8fafc; /* 開いている時はわずかにブルーグレーに */
  box-shadow: 0 4px 10px rgba(30, 51, 91, 0.08); /* 影を浅くして「沈んだ」感を出す */
}
.faq-item[open]:hover {
  transform: none; /* 開いている時は浮き上がらせないことで「固定された」印象に */
}

/* 質問エリア（クリックできるヘッダー） */
.faq-q {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  list-style: none; /* デフォルトの三角形を消す（Mac用） */
  position: relative;
}
.faq-q::-webkit-details-marker {
  display: none; /* デフォルトの三角形を消す（Windows用） */
}

/* Q. マーク */
.q-mark {
  color: #E55A35;
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

/* 質問のテキスト */
.faq-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.5;
  padding-right: 3rem; /* 右側のアイコンと被らないための余白 */
}
@media (min-width: 768px) {
  .faq-question-text { font-size: 1.2rem; }
}

/* 右側の開閉アイコン（ベースとなる丸） */
.icon-toggle {
  position: absolute;
  right: 2rem;
  width: 2rem;
  height: 2rem;
  background-color: #1E335B; /* ネイビーに変更して落ち着いた印象に */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
/* アイコンの中の「横線（マイナス）」 */
.icon-toggle::before {
  content: "";
  width: 0.875rem;
  height: 2px;
  background-color: #ffffff;
  position: absolute;
}
/* アイコンの中の「縦線（これと横線でプラスを作る）」 */
.icon-toggle::after {
  content: "";
  width: 2px;
  height: 0.875rem;
  background-color: #ffffff;
  position: absolute;
  transition: transform 0.3s ease;
}

/* 💡 仕掛け：アコーディオンが「閉じている（プラス）」時の処理 */
/* detailsタグが開いていない（open属性がない）とき、縦線を表示させて「＋」にする */
.faq-item:not([open]) .icon-toggle::after {
  transform: scale(1);
}
/* detailsタグが「開いている（open）」とき、縦線を回転・消去させて「ー」にする */
.faq-item[open] .icon-toggle::after {
  transform: rotate(90deg) scale(0);
}

/* 回答エリア（中身） */
.faq-a {
  background-color: #F8FAFC; /* 目に優しい薄いブルーグレーに変更 */
  margin: 0 2rem 2rem 2rem; /* カンプ通り、外枠から少し内側に余白を空けてボックスを配置 */
  padding: 2rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.75;
  font-weight: 500;
}
@media (min-width: 768px) {
  .faq-a { font-size: 1.05rem; }
}

/* 回答内の各段落の余白 */
.faq-a p {
  margin-bottom: 1rem;
}
.faq-a p:last-child {
  margin-bottom: 0;
}

/* メリット内の箇条書きテキスト */
.faq-bullet {
  margin-top: 1.25rem;
  padding-left: 0rem;
}
/* ==========================================================================
   FORM SECTION (相談申し込み・資料請求)
   ========================================================================== */
.form-section {
  padding-top: 5rem;
  padding-bottom: 6rem;
  background-color: #f9fafb; /* 交互：グレー */
  background-image:
    linear-gradient(to bottom, rgba(249, 250, 251, 0.96), rgba(249, 250, 251, 0.98)),
    url('../img/backimage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.form-container {
  max-width: 75rem; /* 1200px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* セクションタイトル */
.form-main-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #000000;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .form-main-title { font-size: 2.25rem; }
}

/* 左右2カラムレイアウト（PCで並べる） */
.form-content-layout {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
@media (min-width: 992px) {
  .form-content-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ----------------------------------
   左側：案内文＆お電話窓口エリア
   ---------------------------------- */
.form-info-area {
  width: 100%;
}
@media (min-width: 992px) {
  .form-info-area {
    width: 42%;
  }
}

.form-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .form-info-title { font-size: 1.5rem; }
}

.form-info-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #000000;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* イラスト画像 */
.form-illustration {
  width: 100%;
  max-width: 20rem;
  margin-bottom: 2rem;
}
.form-illustration img {
  width: 100%;
  height: auto;
}

/* お電話窓口の白いボックス（カンプの看板デザイン） */
.tel-window-box {
  background-color: #ffffff;
  padding: 1.5rem;
  border: 1px solid #000000;
  max-width: 24rem; /* 384px幅に固定 */
  text-align: center;
}
.tel-box-title {
  font-size: 1rem;
  font-weight: 900;
  color: #000000;
  margin-bottom: 0.5rem;
}
.tel-number-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #1E335B; /* ネイビー */
  margin-bottom: 0.25rem;
}
.tel-number {
  font-size: 1.875rem; /* 30px */
  font-weight: 900;
  text-decoration: none;
  color: inherit;
  letter-spacing: 0.02em;
}
.tel-time {
  font-size: 0.812rem; /* 13px */
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.75rem;
}
.tel-note {
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  color: #000000;
  line-height: 1.5;
  border-top: 1px dashed #A0A0A0;
  padding-top: 0.75rem;
}

/* ----------------------------------
   右側：入力フォームエリア
   ---------------------------------- */
.form-input-area {
  width: 100%;
}
@media (min-width: 992px) {
  .form-input-area {
    width: 58%;
  }
}

.actual-lp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 各フォーム項目のグループ */
.input-item-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ラベルテキスト */
.item-label {
  font-size: 0.937rem; /* 15px */
  font-weight: 700;
  color: #000000;
}
/* 必須マークの赤色 */
.required-mark {
  color: #E55A35;
  margin-left: 0.25rem;
}

/* 入力欄（テキスト・メール・電話など共通） */
.form-input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: #ffffff;
  border: 1px solid #BCBCBC; /* カンプの細いグレー枠 */
  border-radius: 0.375rem; /* 6px相当の角丸 */
  font-size: 1rem;
  color: #000000;
  transition: border-color 0.2s;
}
.form-input-field:focus {
  outline: none;
  border-color: #E55A35; /* フォーカス時にオレンジにする小粋な処理 */
}

/* チェックボックスの並び（横並び） */
.form-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0.25rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.937rem;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
}
.form-checkbox-input {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

/* お問合せ内容（複数行テキストエリア） */
.form-textarea-field {
  width: 100%;
  padding: 1rem;
  background-color: #ffffff;
  border: 1px solid #BCBCBC;
  border-radius: 0.375rem;
  font-size: 1rem;
  color: #000000;
  resize: vertical; /* 縦方向のみサイズ変更可能に */
}
.form-textarea-field:focus {
  outline: none;
  border-color: #E55A35;
}

/* 個人情報同意エリア */
.privacy-policy-consent-wrap {
  text-align: left;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.privacy-guide-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.75rem;
}
.privacy-link {
  color: #2563EB; /* 綺麗なリンクブルー */
  text-decoration: underline;
}
.privacy-checkbox {
  font-size: 0.875rem;
}

/* 送信ボタンエリア */
.form-submit-btn-wrap {
  text-align: center;
  padding-top: 0.5rem;
}
.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 24rem; /* 384px相当 */
  padding: 1.25rem 2.5rem; /* 少し大きく */
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.5rem; /* 24px相当に大きく */
  color: #ffffff;
  border: none;
  cursor: pointer;
  /* メインビジュアルと同じ美しいグラデーションと影 */
  background: linear-gradient(135deg, #EC6D4C 0%, #E55A35 100%);
  box-shadow: 0 12px 24px rgba(229, 90, 53, 0.3);
  transition: all 0.2s ease;
}
.btn-form-submit:hover {
  transform: translateY(2px);
  box-shadow: 0 8px 18px rgba(229, 90, 53, 0.35);
  opacity: 0.95;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
.lp-footer {
  background-color: #1A2E5A;
  color: #ffffff;
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 0.875rem;
}
.footer-container {
  max-width: 72rem;
  max-width: 64rem; /* 揃える：1024px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-container { flex-direction: row; items-start; }
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo-img {
  height: 2.5rem;
  filter: brightness(0) invert(1); /* ロゴを白抜きにする処理 */
}
.copyright {
  font-size: 0.75rem;
  color: #9CA3AF;
}
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-right { align-items: flex-end; }
}
.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.75rem;
  color: #D1D5DB;
}
.footer-links a:hover { text-decoration: underline; }
.footer-info {
  font-size: 0.75rem;
  color: #D1D5DB;
  line-height: 1.5;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #ffffff; /* 背景を白に変更 */
  color: #1E335B; /* 矢印の色を紺色に */
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* 影を少し強めに */
  z-index: 1000;
  opacity: 0; /* 初期状態では非表示 */
  visibility: hidden; /* 初期状態では非表示 */
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  text-decoration: none; /* 下線を削除 */
}
.scroll-to-top:hover {
  background-color: #f0f0f0; /* ホバーで薄いグレーに */
  transform: translateY(-2px); /* 少し浮き上がるアニメーション */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}
/* ==========================================================================
   FOOTER (デザイン画像に沿った詳細レイアウト)
   ========================================================================== */
.lp-footer {
  background-color: #2E364A; /* カンプの濃紺の背景色 */
  color: #ffffff;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.875rem;
}
.footer-container {
  max-width: 75rem; /* 1200px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}
@media (min-width: 992px) {
  .footer-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* フッター：左ブロック（ロゴ・住所・マーク） */
.footer-left {
  width: 100%;
}
@media (min-width: 992px) {
  .footer-left {
    width: 45%;
  }
}
.footer-logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo-img {
  height: 2.5rem;
  filter: brightness(0) invert(1); /* 黒いロゴを白抜きに反転させる魔法 */
}
.footer-company-name {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.footer-address-info {
  line-height: 1.8;
  color: #D1D5DB;
  margin-bottom: 2rem;
  font-weight: 400;
  font-size: 0.875rem;
}
.footer-address-info p {
  margin: 0;
}
.footer-cert-marks {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.cert-mark-box {
 width: 4rem;
  height: 4rem;
  width: 10rem;
  height: auto;
  background-color: rgba(255, 255, 255, 0.1); /* 画像がない場合の仮の薄白枠 */
  border-radius: 0.25rem;
  display: flex;
}
.cert-mark-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* フッター：右ブロック（会社概要・事業内容テーブル） */
.footer-right {
  width: 100%;
}
@media (min-width: 992px) {
  .footer-right {
    width: 50%;
  }
}
.footer-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.812rem; /* 13px相当の少し小ぶりで綺麗な文字サイズ */
  color: #E5E7EB;
}
.footer-info-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* カンプのうっすらとした区切り線 */
}
.footer-info-table tr:last-child {
  border-bottom: none;
}
.footer-info-table th {
  text-align: left;
  vertical-align: top;
  width: 5.5rem; /* 「事業内容」という文字が綺麗に収まる幅 */
  padding: 1rem 0;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}
.footer-info-table td {
  padding: 1rem 0;
  vertical-align: top;
}
.footer-business-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 各事業ジャンルごとの隙間 */
}
.footer-business-list li {
  line-height: 1.5;
  font-weight: 700;
  color: #ffffff;
}
.list-dot {
  color: #9CA3AF;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}
/* カンプ特有の、中身のインデント（1文字下げ）の再現 */
.sub-desc {
  display: block;
  font-weight: 400;
  color: #9CA3AF; /* 少し暗めのグレーにして視認性のメリハリをつける */
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  font-size: 0.812rem;
}

/* フッター：最下部コピーライト */
.footer-bottom-copyright {
  max-width: 75rem;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.footer-bottom-copyright p {
  font-size: 0.75rem;
  color: #9CA3AF;
  margin: 0;
}