/* 
==========================================
= REPAIR PAGE - Additional Styles
==========================================
*/

/* 
----------------------------------
  1. 基本設定
----------------------------------
*/
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

/* divタグのスタイリング */
.repair-col-md-6 > div,
.repair-col-md-8 > div {
  margin: 0 0 1rem;
}

/* 
----------------------------------
  2. ヒーローセクション
----------------------------------
*/
.repair-hero-section {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: #fff;
  padding: 120px 0;
  text-align: center;
  min-height: 400px;
}

.repair-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.repair-hero-section .repair-container {
  position: relative;
  z-index: 2;
}

.repair-hero-section 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;
}

.repair-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0068B7;
  border: none;
  color: #fff;
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.repair-hero-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.repair-hero-btn i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* 
----------------------------------
  3. コンテンツセクション
----------------------------------
*/
.repair-content-section {
  padding: 60px 0;
  background-color: #fff;
}

.repair-content-section.bg-light {
  background-color: #f9f9f9;
}

.repair-content-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.repair-content-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* 
----------------------------------
  4. レイアウト
----------------------------------
*/
.repair-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.repair-row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 -15px;
}

.repair-row > [class*="repair-col-"] {
  padding: 0 15px;
}

/* PC表示のカラムサイズ */
@media (min-width: 768px) {
  .repair-col-md-4 {
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
  }
  .repair-col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .repair-col-md-8 {
    flex: 0 0 66.6667% !important;
    max-width: 66.6667% !important;
  }
}

/* 
----------------------------------
  5. ユーティリティクラス
----------------------------------
*/
.text-center {
  text-align: center;
}

.text-primary {
  color: #007bff;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* 
----------------------------------
  6. 画像関連（重要：レイアウト維持）
----------------------------------
*/
/* 画像基本スタイル */
.repair-img-fluid, .img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 画像コンテナのスタイル - 重要な設定 */
.repair-col-md-4, 
.repair-col-md-6,
.repair-content-section .repair-col-md-8 {
  position: relative !important;
  box-sizing: border-box !important;
  padding: 0 15px !important;
}

/* レイアウト調整 */
.repair-row.mb-5.align-items-center,
.repair-row.align-items-center {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

/* 画像サイズ調整 */
.repair-col-md-4 img,
.repair-col-md-6 img,
.repair-col-md-4 .repair-img-fluid,
.repair-col-md-6 .repair-img-fluid {
  width: 100%;
}

/* モバイル向けの調整 */
@media (max-width: 767px) {
  .repair-hero-section {
    padding: 60px 15px;
    min-height: calc(100vw * 0.7);
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
  }
  
  .repair-hero-section .repair-container {
    width: 100%;
    padding: 20px 15px;
  }
  
  .repair-hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .repair-hero-btn {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    margin-top: 10px;
  }
  
  .repair-row.align-items-center {
    flex-direction: column;
  }
  
  .repair-row.align-items-center .repair-col-md-4,
  .repair-row.align-items-center .repair-col-md-6 {
    order: 1;
    width: 100%;
    max-width: 100%;
  }
  
  .repair-row.align-items-center .repair-col-md-8,
  .repair-row.align-items-center .repair-col-md-6:last-child {
    order: 2;
    width: 100%;
    max-width: 100%;
  }
}