/*
Theme Name: SL Motors Clean Pro
Description: SL Motors上品でクリーンなプロフェッショナル版
Version: 4.1.0
*/

/* CSS変数定義 - クリーンなカラーパレット */
:root {
  --sl-blue: #1e40af;
  --sl-blue-light: #3b82f6;
  --sl-blue-dark: #1e3a8a;
  --sl-accent: #06b6d4;
  --sl-white: #ffffff;
  --sl-gray-50: #f8fafc;
  --sl-gray-100: #f1f5f9;
  --sl-gray-200: #e2e8f0;
  --sl-gray-400: #94a3b8;
  --sl-gray-600: #475569;
  --sl-gray-800: #1e293b;
  --sl-gray-900: #0f172a;

  --gradient-hero: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* グローバルスタイル */
body {
  background: var(--sl-gray-50);
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'YuGothic', sans-serif;
  line-height: 1.6;
}

/* SL Motorsヒーローセクション - クリーン */
.sl-motors-hero {
  background: var(--gradient-hero);
  color: var(--sl-white);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border-bottom: 3px solid var(--sl-blue-dark);
}

.sl-motors-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.8rem;
  margin-top: 0;
  color: var(--sl-white);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sl-motors-hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

/* SL Motorsセクション - クリーンでモダン */
.sl-motors-section {
  padding: 3rem 2.5rem;
  max-width: 980px;
  margin: 0 auto 2rem auto;
  background: var(--sl-white);
  border-radius: 12px;
  color: var(--sl-gray-800);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--sl-gray-200);
}

.sl-motors-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sl-blue-light);
}

.sl-motors-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.8rem;
  color: var(--sl-gray-900);
  font-weight: 700;
  letter-spacing: -0.025em;
  border-bottom: 2px solid var(--sl-gray-200);
}

.sl-motors-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: var(--sl-accent);
  border-radius: 1px;
}

.sl-motors-section ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
  color: var(--sl-gray-600);
  line-height: 1.7;
  font-weight: 400;
  transition: all 0.2s ease;
}

.sl-motors-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: var(--sl-accent);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.sl-motors-section ul li:hover {
  color: var(--sl-gray-800);
  transform: translateX(4px);
}

.sl-motors-section ul li:hover::before {
  background: var(--sl-blue-light);
  transform: scale(1.2);
}

/* ステップ表示 - 2列レイアウト */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--sl-white);
  padding: 2rem 1.8rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--sl-gray-200);
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 8px 8px 0 0;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--sl-accent);
}

.step strong {
  color: var(--sl-blue);
  font-weight: 600;
  font-size: 1.05rem;
}

/* 会社写真・店内写真 - 統一スタイル */
.company-photo {
  margin-top: 2.5rem;
  text-align: center;
}

.company-photo img,
.sl-motors-section img {
  max-width: 100%;
  width: 100%;
  /* 幅を100%に設定 */
  max-width: 800px;
  /* 最大幅を800pxに拡大 */
  height: auto;
  /* 比率を維持 */
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--sl-white);
  transition: all 0.3s ease;
  display: block;
  margin: 2rem auto 0 auto;
  /* 中央配置とマージン調整 */
}

.company-photo img:hover,
.sl-motors-section img:hover {
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
}

/* CTAボタン - 右下固定、シンプル */
.cta-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--sl-blue);
  color: var(--sl-white);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--sl-blue);
}

.cta-button:hover,
.cta-button:focus {
  background: var(--sl-blue-dark);
  border-color: var(--sl-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--sl-white);
  text-decoration: none;
}

.cta-button:visited {
  color: var(--sl-white);
}

/* パラグラフスタイル */
.sl-motors-section p {
  line-height: 1.7;
  color: var(--sl-gray-600);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.sl-motors-section p strong {
  color: var(--sl-gray-900);
  font-weight: 600;
}

/* レスポンシブ対応 - モバイルファースト強化 */
@media (max-width: 768px) {
  .sl-motors-hero {
    padding: 2rem 1rem;
    margin-bottom: 1rem;
  }

  .sl-motors-section {
    padding: 2rem 1.5rem;
    margin: 0 1rem 1.5rem 1rem;
    border-radius: 10px;
  }

  .sl-motors-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .step {
    padding: 1.5rem 1.2rem;
  }

  .cta-button {
    bottom: 20px;
    right: 20px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* 会社写真・店内写真のレスポンシブ対応 */
  .company-photo img,
  .sl-motors-section img {
    max-width: 100%;
    width: 100%;
    border-radius: 6px;
  }

  /* テキストサイズの調整 */
  .sl-motors-section p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .sl-motors-section ul li {
    font-size: 0.95rem;
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sl-motors-hero {
    padding: 1.5rem 0.8rem;
  }

  .sl-motors-hero h1 {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .sl-motors-hero p {
    font-size: 0.9rem;
  }

  .sl-motors-section {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem 1rem 0.5rem;
  }

  .sl-motors-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .cta-button {
    bottom: 15px;
    right: 15px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  /* 会社写真・店内写真のモバイル対応 */
  .company-photo img,
  .sl-motors-section img {
    max-width: 100%;
    width: 100%;
    border: 2px solid var(--sl-white);
    border-radius: 6px;
  }

  /* さらに小さい画面での調整 */
  .sl-motors-section p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .sl-motors-section ul li {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .step {
    padding: 1.2rem 1rem;
  }
}

/* WordPressとの調和 */
.sl-motors-section ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

.sl-motors-section strong {
  font-weight: 600;
  color: var(--sl-gray-900);
}

/* 新着在庫カードの改善 */
.car-digest a {
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--sl-gray-200) !important;
}

.car-digest a:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-xl) !important;
  border-color: var(--sl-accent) !important;
}

/* アルタネイトセクションスタイル */
.sl-motors-section:nth-child(even) {
  background: var(--sl-gray-50);
}

/* HRスタイル */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sl-gray-300), transparent);
  margin: 3rem 0;
}