/* 
==========================================
= ECO DRIVE ABOUT PAGE STYLES - 最適化版
= (Date: 2025-04-11)
==========================================
*/

/* 
----------------------------------
  ABOUTページ専用 Heroセクション
----------------------------------
*/
/* ヒーローセクションの調整 */
.about-hero-section {
    position: relative;
    background-image: url('http://httpsusecodriveautosalescom.local/wp-content/uploads/2025/04/img-page-bg-common-1.jpg'); /* アバウト用の画像に変更 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 120px 0; /* パディングを増やして空間を広げる */
    text-align: center;
    min-height: 500px; /* 高さを増やす */
    width: 100vw; /* ビューポート幅いっぱいに広げる */
    margin-left: calc(-50vw + 50%); /* 中央揃えのための調整 */
    left: 0;
    right: 0;
    max-width: 100%; /* 幅の制限を解除 */
    box-sizing: border-box;
  }
  
  /* オーバーレイを少し薄くして視認性を高める */
  .about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* アバウト用に透明度を調整 */
    z-index: 1;
  }
  
  /* コンテナのz-indexを確実に設定 */
  .about-hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px; /* コンテンツ自体は適切な幅に制限 */
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /* タイトルのスタイル */
  .about-hero-section h2.h1 {
    font-size: 2.6rem; /* サイズを大きく */
    font-weight: 700; /* 太字に */
    margin-bottom: 1.5rem; /* 下マージンを増やす */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* テキストシャドウで視認性向上 */
    letter-spacing: 1px; /* 文字間隔を少し広げる */
  }
  
  /* サブタイトルのスタイル */
  .about-hero-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  }
  
  /* テキストのスタイル */
  .about-hero-section h4 {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  }
  
/* レスポンシブ対応 */
@media (max-width: 767px) {
  .about-hero-section {
    padding: 80px 0; /* モバイルでのパディング調整 */
    min-height: 300px; /* モバイルでの最小高さ */
    background-size: cover;
    background-position: 65% center; /* 左右の位置を調整（60%は右寄りから左に調整する値） */
  }
  
  .about-hero-section h2.h1 {
    font-size: 1.8rem; /* モバイルでは少し小さく */
  }
  
  .about-hero-section h3 {
    font-size: 1.2rem;
  }
  
  .about-hero-section h4 {
    font-size: 1rem;
  }
}
  
  /* WordPressテーマの幅制限を上書き */
  body .about-hero-section {
    max-width: none !important;
  }

/* -----------------------------------------
   1. Section Layout & Common Elements
----------------------------------------- */
.about-section {
    padding: 40px 0 !important;
    position: relative;
    margin: 0 !important;
  }
  
  .about-reduced-bottom {
    padding-bottom: 0 !important;
  }
  
  .about-spacer-small {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  
  .about-bg-light {
    background-color: #f9f9f9;
  }
  
  .about-bg-light + .about-bg-light {
    border-top: 1px solid #eee !important;
  }
  
  .about-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    text-align: center !important;
  }
  
  .about-row {
    display: flex !important;
    flex-wrap: wrap;
    margin: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  /* セクション特有の調整 */
  .about-section:first-of-type {
    padding-bottom: 20px !important;
  }
  
  .about-section:nth-of-type(2) {
    padding-top: 20px !important;
  }
  
  .about-section:last-of-type {
    padding-bottom: 60px !important;
  }
  
  /* アニメーション */
  .about-fade-in {
    animation: fadeIn 0.7s ease-in-out;
  }
  
  .about-fade-in-right {
    animation: fadeInRight 0.7s ease-in-out;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes fadeInRight {
    from { 
      opacity: 0;
      transform: translateX(20px);
    }
    to { 
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* -----------------------------------------
     2. Column System
  ----------------------------------------- */
  .about-col-full,
  .about-col-large,
  .about-col-medium,
  .about-col-small,
  .about-col-table {
    padding: 0 !important;
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 auto !important;
  }
  
  .about-col-full {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* For mobile first approach */
  @media (min-width: 768px) {
    .about-col-small {
      flex: 0 0 33.333%;
      max-width: 33.333%;
    }
    
    .about-hide-sm {
      display: block;
    }
  }
  
  /* -----------------------------------------
     3. Typography & Text Utilities
  ----------------------------------------- */
  .about-title {
    font-size: 2.2rem;
    margin-bottom: 30px !important;
    line-height: 1.2;
  }
  
  .about-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px !important;
    line-height: 1.6;
  }
  
  .about-small-title {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .about-center {
    text-align: center;
  }
  
  .about-text-left {
    text-align: left !important;
  }
  
  .about-primary {
    color: #007bff;
  }
  
  .about-white {
    color: #fff;
  }
  
  .about-italic {
    font-style: italic;
  }
  
  /* -----------------------------------------
     4. Spacing Utilities
  ----------------------------------------- */
  .about-mb-0 {
    margin-bottom: 0 !important;
  }
  
  .about-mb-sm {
    margin-bottom: 10px !important;
  }
  
  .about-mb-md {
    margin-bottom: 20px !important;
  }
  
  .about-mb-lg {
    margin-bottom: 40px !important;
  }
  
  .about-mb-xl {
    margin-bottom: 60px !important;
  }
  
  .about-center-align {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }
  
  .about-mb {
    margin-bottom: 30px !important;
  }
  
  /* セクション内の最後の要素の下マージン削除 */
  .about-section > *:last-child,
  .about-container > *:last-child,
  .about-row > *:last-child,
  .about-col-full > *:last-child,
  .about-col-large > *:last-child,
  .about-col-medium > *:last-child,
  .about-col-small > *:last-child {
    margin-bottom: 0 !important;
  }
  
  /* -----------------------------------------
     5. Component Styles
  ----------------------------------------- */
  /* Card */
  .about-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .about-card-body {
    padding: 20px;
  }
  
  .about-primary-bg {
    background-color: #007bff;
  }
  
  /* Images */
  .about-img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Utilities */
  .about-flex-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .about-justify-center {
    justify-content: center;
  }
  
  /* Numbered list */
  .about-number-list {
    counter-reset: number-circle;
    padding-left: 1.2rem;
    margin-bottom: 0;
  }
  
  .about-number-item {
    position: relative;
    margin-bottom: 10px;
    list-style: none;
    padding-left: 5px;
  }
  
  .about-number-item:last-child {
    margin-bottom: 0;
  }
  
  .about-number-item::before {
    counter-increment: number-circle;
    content: counter(number-circle);
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    width: 24px;
    height: 24px;
    line-height: 22px;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 14px;
  }
  
  /* -----------------------------------------
     6. Table Styles
  ----------------------------------------- */
  /* テーブル基本スタイル */
  .about-table {
    border-collapse: collapse;
    margin-bottom: 0;
    border: 1px solid #dee2e6;
    width: auto !important;
    min-width: 50% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    table-layout: auto !important;
    display: table !important;
  }
  
  /* 中央配置のための強化スタイル */
  .about-center-table {
    margin: 0 auto !important;
    float: none !important;
    display: table !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
  }
  
  /* テーブルセル */
  .about-table th,
  .about-table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    text-align: center !important;
  }
  
  .about-striped tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  
  .about-bg-blue {
    background-color: #1a3d7c;
    color: #fff;
  }
  
  .about-bg-blue-light {
    background-color: #d8e6f5;
  }
  
  /* テーブルを囲む親要素の中央揃え強化 */
  .about-col-table {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 !important;
  }
  
  /* -----------------------------------------
     7. QUALITYセクションの特別調整
  ----------------------------------------- */
 /* QUALITYセクションのレイアウト */
.about-section:nth-of-type(3) .about-row {
    /* flex-direction: column !important; */ /* この行をコメントアウトまたは削除 */
    gap: 20px !important;
    justify-content: center !important; /* この行を追加 */
    align-items: center !important; /* この行を追加 */
  }
  
  .about-section:nth-of-type(3) .about-col-medium,
  .about-section:last-of-type .about-col-medium,
  .about-section:nth-of-type(3) .about-col-large,
  .about-section:last-of-type .about-col-large {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  /* QUALITYセクションの画像サイズ */
  .about-section:nth-of-type(3) .about-img-fluid,
  .about-section:last-of-type .about-img-fluid {
    max-width: 100% !important;
    width: auto !important;
    max-height: 500px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
  
  /* 画像を含むコンテナの調整 */
  .about-section:nth-of-type(3) .about-col-medium,
  .about-section:last-of-type .about-col-medium {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }
  
  /* QUALITYセクションの中央揃え */
  .about-col-large.about-flex-center .about-center {
    text-align: center !important;
    width: 100% !important;
  }

  /* 余白を消すための新しいクラス */
.about-no-padding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* QUALITYセクションのカスタムパディング */
.about-custom-padding {
    padding-top: 20px !important; /* 上の余白を20pxに設定 */
    padding-bottom: 0 !important; /* 下の余白を0に設定 */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  
  /* 最後のセクションの下部パディングを削除 */
  .about-section:last-of-type {
    padding-bottom: 0 !important; /* 60pxのパディングを上書き */
  }
  
  /* -----------------------------------------
     8. レスポンシブ調整
  ----------------------------------------- */
  @media (max-width: 992px) {
    .about-section:nth-of-type(3) .about-img-fluid,
    .about-section:last-of-type .about-img-fluid {
      max-height: 450px !important;
    }
  }
  
  @media (max-width: 768px) {
    .about-section:nth-of-type(3) .about-img-fluid,
    .about-section:last-of-type .about-img-fluid {
      max-height: 400px !important;
    }
    
    .about-section:nth-of-type(3) .about-row,
    .about-section:last-of-type .about-row {
      flex-direction: column !important;
    }
    
    .about-section:nth-of-type(3) .about-col-medium,
    .about-section:last-of-type .about-col-medium,
    .about-section:nth-of-type(3) .about-col-large,
    .about-section:last-of-type .about-col-large {
      width: 100% !important;
      max-width: 100% !important;
      flex: 0 0 100% !important;
    }
    
    .about-hide-sm {
      display: none;
    }
    
    .about-title {
      font-size: 1.8rem;
    }
    
    .about-subtitle {
      font-size: 1.1rem;
    }
    
    .about-table th,
    .about-table td {
      padding: 8px 10px;
      font-size: 14px;
    }
    
    .about-center-table, 
    .about-table {
      max-width: 90% !important;
      min-width: 280px !important;
    }
  }
  
  @media (max-width: 576px) {
    .about-section:nth-of-type(3) .about-img-fluid,
    .about-section:last-of-type .about-img-fluid {
      max-height: 350px !important;
    }
  }

/* 上部余白用クラス */
.about-mt-lg {
    margin-top: 40px !important;
  }
  
  /* 右寄せテキスト用のクラス */
  .about-text-right {
    text-align: right !important;
  }

/* 追加のQUALITYセクション用スタイル */
.about-section .about-col-medium img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}

/* スマホ表示でのテキスト整列 */
@media (max-width: 767px) {
  .about-col-large .about-center {
    text-align: center !important;
  }
  
  .about-col-large p {
    padding: 0 15px;
  }
}

/* テキスト表示を強制するためのスタイル */
.about-text-block {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #333 !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

@media (min-width: 768px) {
  .about-text-block {
    text-align: left !important;
  }
}

/* 既存のpタグに対する上書きスタイル */
.about-center p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 常に中央揃えを強制するスタイル */
.about-center-align {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* テキストブロックのスタイルを修正 */
.about-text-block {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #333 !important;
  margin-bottom: 20px !important;
  text-align: center !important; /* 常に中央揃え */
  max-width: 800px !important; /* 最大幅を制限 */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* PCでの中央揃えを強制するメディアクエリ */
@media (min-width: 768px) {
  .about-center .about-text-block {
    text-align: center !important; /* PCでも中央揃えを強制 */
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .about-col-large, .about-col-medium {
    text-align: center !important;
    float: none !important;
    display: block !important;
  }
}

/* テキスト表示を強制するためのスタイル */
.about-text-block {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #333 !important;
  margin-bottom: 20px !important;
}

/* 中央揃えのテキストブロック */
.about-text-block.about-center {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 800px !important;
}

/* スマホ表示で非表示にする要素 */
@media (max-width: 767px) {
  .about-hide-sm {
    display: none !important;
  }
}

/* =============================
   About Page Button Style
   ============================= */
   .about-button {
    display: inline-block;
    background-color: #0068B7;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    margin: 0px auto 0;
  }
  
  .about-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* Mobile responsive */
  @media (max-width: 768px) {
    .about-button {
      padding: 10px 20px;
      font-size: 0.9rem;
      width: 80%;
      max-width: 300px;
    }
  }


/* Modify the margin-top for the button container */
.about-center-align.about-mt-lg {
  margin-top: 0px !important; /* Reduced from 40px to 20px */
}

/* QUALITYセクションの背景エリアを下に伸ばす */
.about-section:last-of-type {
  padding-bottom: 60px !important; /* 下部のパディングを増やす */
}

