/* ==========================================================================
   Smart Life - Main Stylesheet
   株式会社スマートライフ - 屋根・外壁・リフォーム
   
   【変更履歴】
   - カラースキーム：緑→オレンジ基調、背景を生成り系に変更
   - 角丸：8px→0-2pxへ、四角い枠ベースに
   - 影：基本削除、枠線で区切るスタイルに
   - 余白：section padding を 60px→25-35px に縮小
   - 見出し：中央揃え→左寄せ、帯/枠スタイルに
   - ナビ：タブ風UIに変更
   - 情報密度を上げる（工務店サイト的チラシ感）
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* === カラー：メイン（オレンジ系） === */
  --color-primary: #ea5514;
  --color-primary-dark: #c94610;
  --color-primary-light: #ff7a3d;

  /* === カラー：アクセント（青系・控えめ使用） === */
  --color-accent: #0068b7;
  --color-accent-dark: #004d8a;

  /* === カラー：背景（生成り/ベージュ系） === */
  --color-bg: #fff9f0;
  --color-bg-alt: #fff;
  --color-bg-cream: #fef6e6;

  /* === カラー：文字（茶系寄り） === */
  --color-text: #3a3020;
  --color-text-light: #5a5040;
  --color-text-muted: #8a8070;

  /* === カラー：枠線（濃いめのベージュ/茶） === */
  --color-border: #c9b89a;
  --color-border-light: #e0d5c5;
  --color-border-dark: #a09080;

  /* === 余白 === */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;

  /* === 枠・角丸 === */
  --radius: 2px;

  /* === フォント・レイアウト === */
  --font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --max-width: 980px;
  --transition: 0.2s ease;

  /* === グラデーション === */
  --gradient-primary: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  --gradient-primary-dark: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-orange: linear-gradient(180deg, #ff8c00 0%, var(--color-primary) 100%);
  --gradient-accent: linear-gradient(180deg, #ffa500 0%, #ff8c00 100%);
  --gradient-accent-dark: linear-gradient(180deg, #ff8c00 0%, #e67700 100%);

  /* === ブレークポイント（参照用） === */
  /* @media 1024px - タブレット */
  /* @media 768px  - モバイル */
  /* @media 480px  - 小画面 */
}

/* --------------------------------------------------------------------------
   Reset & Base - フォント小さめ、行間詰め
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 14px;
}

a {
  text-decoration: none;
  color: var(--color-accent);
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.3;
}

p {
  margin: 0 0 0.8em;
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Layout - max-width縮小、余白詰め
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 20px 0;
}

.section--alt {
  /* 背景色・ボーダーを削除して統一 */
}

/* 見出し：左寄せ＋帯風（サイドバーヘッダーと高さを統一） */
.section-title {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 15px;
  padding: 7px 12px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  border-left: 4px solid var(--color-primary-dark);
  position: relative;
  line-height: 1.4;
}


.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Header - 情報密度アップ
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-bg-alt);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-primary);
}

.logo a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo a:hover {
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-phone {
  text-align: right;
}

.header-phone-number {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.header-phone-number a {
  color: inherit;
}

.header-phone-number a:hover {
  text-decoration: none;
}

.header-phone-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ヘッダーお問い合わせボタン */
.btn-contact {
  display: inline-block;
  padding: 10px 18px;
  background: var(--gradient-orange);
  color: #fff;
  border: 2px solid var(--color-primary-dark);
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 0.9rem;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.btn-contact:hover {
  background: var(--gradient-primary-dark);
  color: #fff;
  text-decoration: none;
}

/* Navigation - タブ風UI */
.main-nav {
  background-color: var(--color-bg-cream);
  border-bottom: 2px solid var(--color-border);
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  flex: 1;
  border-right: 1px solid var(--color-border);
}

.main-nav li:last-child {
  border-right: none;
}

.main-nav a {
  display: block;
  padding: 12px 8px;
  color: var(--color-text);
  text-align: center;
  font-size: 0.85rem;
  font-weight: bold;
  background-color: var(--color-bg-cream);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.main-nav a:hover {
  background-color: #fff;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom-color: var(--color-primary);
}

.main-nav a.active {
  background-color: var(--color-primary);
  color: #fff;
  border-bottom-color: var(--color-primary-dark);
}

/* Mobile Navigation Toggle - PC時は非表示 */
.nav-toggle {
  display: none;
}

/* ==========================================================================
   Mobile Header - 3タイル形式（電話/お問い合わせ/メニュー）
   参考: 街の屋根やさん風
   ========================================================================== */
.mobile-header-tiles {
  display: none;
}

@media (max-width: 768px) {
  /* モバイル時のヘッダー基本構造 */
  .site-header {
    border-bottom: none;
  }
  
  .site-header .container {
    padding: 0;
  }
  
  /* ヘッダートップを横並び（ロゴ左、3タイル右） */
  .header-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    border-bottom: none;
    gap: 0;
  }
  
  /* ロゴエリア */
  .logo {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 1rem;
  }

  .logo-img {
    height: 32px;
  }

  /* PC用ヘッダー連絡先を非表示 */
  .header-contact {
    display: none;
  }
  
  /* 3タイル表示 */
  .mobile-header-tiles {
    display: flex;
    flex-shrink: 0;
  }
  
  .mobile-header-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    padding: 6px 4px;
    text-decoration: none;
    background-color: #fff;
    border-left: 1px solid var(--color-border);
    cursor: pointer;
    transition: background-color var(--transition);
  }
  
  .mobile-header-tile:hover {
    text-decoration: none;
  }
  
  /* タイルアイコン（SVG） */
  .mobile-header-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    line-height: 1;
  }

  .mobile-header-tile-icon img {
    width: 29px;
    height: 29px;
    object-fit: contain;
  }
  
  /* タイルラベル */
  .mobile-header-tile-label {
    font-size: 0.6rem;
    font-weight: bold;
    color: var(--color-text);
    line-height: 1.2;
  }
  
  /* 電話タイル - 白背景＋オレンジアイコン */
  .mobile-header-tile--tel {
    background-color: #fff;
  }
  
  .mobile-header-tile--tel .mobile-header-tile-icon {
    color: var(--color-primary);
  }
  
  .mobile-header-tile--tel .mobile-header-tile-label {
    color: var(--color-text);
  }
  
  /* お問い合わせタイル - 白背景＋オレンジアイコン（他と統一） */
  .mobile-header-tile--contact {
    background-color: #fff;
  }

  .mobile-header-tile--contact .mobile-header-tile-label {
    color: var(--color-text);
  }
  
  /* メニュータイル - 白背景＋オレンジアイコン */
  .mobile-header-tile--menu {
    background-color: #fff;
    border: none;
  }
  
  .mobile-header-tile--menu .mobile-header-tile-icon {
    color: var(--color-primary);
  }
  
  .mobile-header-tile--menu .mobile-header-tile-label {
    color: var(--color-text);
  }
  
  /* ハンバーガーアイコン */
  .mobile-menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 20px;
  }
  
  .mobile-menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
  }
  
  /* ヘッダー下端のブラウン帯（非表示） */
  .header-bottom-bar {
    display: none;
  }
  
  /* メインナビの調整 */
  .main-nav {
    border-bottom: none;
  }
}

/* --------------------------------------------------------------------------
   Hero - 写真＋暗幕＋コピー＋CTA 構成
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* 背景画像（<picture> または <img>） */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 暗幕オーバーレイ - 文字が常に読めるように */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  max-width: 800px;
}

.hero-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  line-height: 1.35;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.hero-cta .btn {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* バッジ/勲章風の訴求BOX */
.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.hero-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.6);
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}

.hero-badge-label {
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: normal;
}

.hero-badge-value {
  font-size: 1rem;
  font-weight: bold;
}

/* Page Hero (smaller) - 下層ページ用 */
.hero.page-hero {
  min-height: 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.page-hero .hero-overlay {
  display: none;
}

.page-hero .hero-content {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero .hero-title {
  font-size: 1.3rem;
  margin: 0;
  text-shadow: none;
}

.page-hero .hero-subtitle {
  margin: 4px 0 0;
  text-shadow: none;
}

/* --------------------------------------------------------------------------
   Hero Animated - 大和ハウス風アニメーションHero
   -------------------------------------------------------------------------- */
.hero-animated {
  position: relative;
  min-height: 500px;
  background: #fff;
  overflow: hidden;
}

/* スライドショー背景 */
.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-animated.show-image .hero-slides {
  opacity: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* テキストオーバーレイ */
.hero-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  transition: opacity 1s ease;
}

.hero-animated.show-image .hero-text-overlay {
  opacity: 0;
}

.hero-animated-title {
  font-size: 2.5rem;
  color: var(--color-text);
  text-align: center;
  line-height: 1.6;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   Buttons - チラシ感のあるCTA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: bold;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border-color: var(--color-primary-dark);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: var(--gradient-primary-dark);
  color: #fff;
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  border-color: #cc7000;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.btn-accent:hover {
  background: var(--gradient-accent-dark);
  color: #fff;
}

.btn-outline {
  background-color: #fff;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Cards - 枠ベース、影なし、角丸なし、情報密度UP
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background-color: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* hover効果 */
.card:hover {
  border-color: var(--color-primary);
}

/* 画像比率を4:3に統一、object-fit: cover で実画像対応 */
.card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--color-border-light);
  border-bottom: 1px solid var(--color-border);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}


.card-body {
  padding: 10px;
}

.card-title {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--color-text);
  line-height: 1.3;
}

.card-text {
  color: var(--color-text-light);
  font-size: 0.78rem;
  margin-bottom: 6px;
  line-height: 1.45;
}

.card-meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  padding-top: 5px;
  border-top: 1px dashed var(--color-border-light);
}

.card-link {
  display: block;
  color: inherit;
}

.card-link:hover {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Strength Cards (Top Page) - 枠ベース
   -------------------------------------------------------------------------- */
.strength-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.strength-card {
  display: block;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
}

.strength-card:hover {
  border-color: var(--color-primary);
}

.strength-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   Service Cards - 枠ベース、実画像対応
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.service-card {
  display: block;
  background-color: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  color: inherit;
}

.service-card:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

/* 画像比率4:3で統一、object-fit: cover で実画像対応 */
.service-card-img {
  aspect-ratio: 4/3;
  background-color: var(--color-border-light);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}


.service-card-body {
  padding: 8px;
}

.service-card-title {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 3px;
  font-weight: bold;
}

.service-card-text {
  font-size: 0.72rem;
  color: var(--color-text-light);
  line-height: 1.35;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Voice / Testimonial - 枠ベース
   -------------------------------------------------------------------------- */
.voice-card {
  background-color: var(--color-bg-alt);
  padding: 15px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
}

.voice-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-border);
}

.voice-card-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-border-light);
  overflow: hidden;
  border: 2px solid var(--color-border);
}

.voice-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-card-info {
  flex: 1;
}

.voice-card-area {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.voice-card-type {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.voice-card-text {
  color: var(--color-text);
  line-height: 1.6;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   News List - 枠ベース
   -------------------------------------------------------------------------- */
.news-list {
  background-color: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--color-border-light);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  min-width: 90px;
  background-color: var(--color-bg-cream);
  padding: 2px 6px;
  border-radius: var(--radius);
}

.news-title {
  flex: 1;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.news-title a {
  color: var(--color-text);
}

.news-title a:hover {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   CTA Section - オレンジ基調
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  border-top: 4px solid var(--color-primary-dark);
  border-bottom: 4px solid var(--color-primary-dark);
}

.cta-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.cta-text {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-bottom: 15px;
}

.cta-phone {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.cta-phone a {
  color: inherit;
}

.cta-section .cta-phone a {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-phone a:hover {
  text-decoration: none;
}

.cta-time {
  opacity: 0.85;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Company About - 枠ベース
   -------------------------------------------------------------------------- */
.about-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background-color: var(--color-bg-alt);
  padding: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
}

.about-img {
  flex: 0 0 200px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-border-light);
}

.about-img img {
  width: 100%;
  height: auto;
}

.about-content {
  flex: 1;
}

.about-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.about-text {
  color: var(--color-text);
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Knowledge / Utility Links - 枠ベース
   -------------------------------------------------------------------------- */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.knowledge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-bg-alt);
  padding: 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
}

.knowledge-card:hover {
  border-color: var(--color-primary);
  text-decoration: none;
  background-color: var(--color-bg-cream);
}

.knowledge-card-icon {
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: bold;
}

.knowledge-card-title {
  font-size: 0.85rem;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Footer - 濃い茶/グレー系
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #3d3528;
  color: #e8e0d5;
  padding: 30px 0 20px;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.footer-info p {
  margin-bottom: 4px;
  opacity: 0.9;
  font-size: 0.85rem;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--color-primary-light);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.copyright {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Page Content - 枠ベース、余白詰め
   -------------------------------------------------------------------------- */

.content-box {
  padding: 20px;
  margin-bottom: 20px;
}

/* コンテンツ内見出し：左寄せ、枠/帯スタイル */
.content-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--color-text);
  padding: 8px 10px;
  background-color: var(--color-bg-cream);
  border-left: 4px solid var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 100px;
}

.content-subtitle {
  font-size: 1rem;
  margin: 20px 0 10px;
  color: var(--color-primary);
  padding-left: 10px;
  border-left: 3px solid var(--color-primary);
}

/* --------------------------------------------------------------------------
   Lists - チェックマークをオレンジに
   -------------------------------------------------------------------------- */
.check-list {
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   Before/After
   -------------------------------------------------------------------------- */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.before-after-item {
  text-align: center;
}

.before-after-label {
  display: inline-block;
  padding: 3px 12px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 6px;
  border-radius: var(--radius);
}

.before-after-img {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-border-light);
}

.before-after-img img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Table - 枠ベース
   -------------------------------------------------------------------------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--color-border);
  font-size: 0.9rem;
}

.info-table th,
.info-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.info-table th {
  width: 30%;
  background-color: var(--color-bg-cream);
  font-weight: bold;
  color: var(--color-text);
  border-right: 1px solid var(--color-border-light);
}

/* --------------------------------------------------------------------------
   FAQ - 枠ベース
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 12px 15px;
  font-weight: bold;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--color-bg-cream);
  font-size: 0.95rem;
}

.faq-question::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.faq-answer {
  padding: 12px 15px 12px 50px;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px dashed var(--color-border);
}

/* --------------------------------------------------------------------------
   Form - 枠ベース
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9rem;
}

.form-label .required {
  color: #d32f2f;
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #fffaf5;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding: 10px 0;
  font-size: 0.8rem;
  background-color: var(--color-bg-cream);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  color: var(--color-text-muted);
  font-size: 0.7rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Filter - 枠ベース
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  background-color: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Related Cases
   -------------------------------------------------------------------------- */
.related-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid var(--color-border);
}

.related-title {
  font-size: 1rem;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid var(--color-primary);
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   2-Column Page Layout (main + sidebar)
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 15px;
}

.page-layout > .main-content {
  min-width: 0; /* prevent grid blowout */
}

/* メインコンテンツの最初のセクションはpadding-top不要（サイドバーと高さを揃える） */
.page-layout > .main-content > .section:first-child {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   Sidebar - 全ページ共通
   -------------------------------------------------------------------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* サイドバー共通ボックススタイル */
.sidebar-box {
  background-color: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-box-header {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 7px 12px;
  font-size: 1.2rem;
  font-weight: bold;
  border-left: 4px solid var(--color-primary-dark);
  line-height: 1.4;
}

.sidebar-box-body {
  padding: 12px;
}

/* お問い合わせボックス */
.sidebar-contact {
  text-align: center;
}

.sidebar-contact-phone {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.sidebar-contact-phone a {
  color: inherit;
}

.sidebar-contact-phone a:hover {
  text-decoration: none;
}

.sidebar-contact-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.sidebar-contact .btn {
  width: 100%;
}

/* バナー枠 */
.sidebar-banner {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
}

.sidebar-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-banner:hover {
  opacity: 0.9;
}

/* ショートメニュー */
.sidebar-menu {
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-menu li:last-child {
  border-bottom: none;
}

.sidebar-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: bold;
  transition: all var(--transition);
}

.sidebar-menu a:hover {
  background-color: var(--color-bg-cream);
  color: var(--color-primary);
  text-decoration: none;
}

.sidebar-menu a::before {
  content: '›';
  margin-right: 6px;
  color: var(--color-primary);
}

/* FAQショート */
.sidebar-faq-list {
  padding: 0;
  margin: 0;
}

.sidebar-faq-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border-light);
}

.sidebar-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-faq-item:first-child {
  padding-top: 0;
}

.sidebar-faq-q {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.sidebar-faq-q::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 2px;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.sidebar-faq-a {
  font-size: 0.75rem;
  color: var(--color-text-light);
  line-height: 1.5;
  padding-left: 24px;
}

.sidebar-faq-more {
  text-align: right;
  margin-top: 8px;
}

.sidebar-faq-more a {
  font-size: 0.75rem;
  color: var(--color-accent);
}

/* 最新施工事例（サイドバー用） */
.sidebar-case-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-case-item {
  display: flex;
  gap: 10px;
  color: var(--color-text);
}

.sidebar-case-item:hover {
  text-decoration: none;
}

.sidebar-case-item:hover .sidebar-case-title {
  color: var(--color-primary);
}

.sidebar-case-thumb {
  width: 70px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-border-light);
}

.sidebar-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-case-info {
  flex: 1;
  min-width: 0;
}

.sidebar-case-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 3px;
  transition: color var(--transition);
}

.sidebar-case-meta {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.sidebar-case-more {
  text-align: right;
  margin-top: 5px;
}

.sidebar-case-more a {
  font-size: 0.75rem;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Placeholder Image Style
   -------------------------------------------------------------------------- */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-border-light);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-align: center;
  min-height: 100px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* サイドバー幅を縮小 */
  .page-layout {
    grid-template-columns: 1fr 240px;
    gap: 20px;
  }

  .card-grid,
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strength-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* 2カラム→1カラムに変更、サイドバーは本文の下へ */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 15px;
  }

  .sidebar {
    display: none;
  }

  /* ナビゲーションのモバイル対応 */
  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a {
    padding: 10px;
  }

  /* PC時のヘッダー下端ブラウン帯は非表示（モバイルは専用の帯を使用） */
  .header-bottom-bar {
    display: block;
  }

  .hero {
    min-height: 320px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badge {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .hero-badge-icon {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .hero-badge-value {
    font-size: 0.9rem;
  }

  .card-grid,
  .card-grid--4,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .strength-cards {
    grid-template-columns: 1fr;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  /* モバイルではフッターのリンク一覧（サービス/会社情報/その他）を非表示 */
  .footer-col:nth-child(n+2) {
    display: none;
  }

  .about-section {
    flex-direction: column;
  }

  .about-img {
    flex: none;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-right: none;
    padding-bottom: 4px;
  }

  .info-table td {
    padding-top: 4px;
    border-bottom: 2px solid var(--color-border-light);
  }

  .cta-phone {
    font-size: 1.6rem;
  }

  .content-box {
    padding: 15px;
  }

  .section {
    padding: 20px 0;
  }

  .section-title {
    font-size: 1.1rem;
    padding: 6px 10px;
  }

  .sidebar-box-header {
    font-size: 1.1rem;
    padding: 6px 10px;
  }
}

/* PC時はヘッダー下端帯を非表示 */
.header-bottom-bar {
  display: none;
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .hero {
    min-height: 280px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section-title {
    font-size: 1rem;
  }

  .sidebar-box-header {
    font-size: 1rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .header-phone-number {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   Page-Specific Styles（ページ固有スタイル）
   必要に応じて追加。<body class="page-xxx">で適用可能
   ========================================================================== */
/* .page-home { } */
/* .page-services { } */
/* .page-cases { } */
/* .page-company { } */

/* ==========================================================================
   Home Banners - モバイル情報密度向上用バナーグリッド
   ========================================================================== */

/* デスクトップでは非表示（モバイル専用） */
.home-banners {
  display: none;
}

@media (max-width: 768px) {
  .home-banners {
    display: block;
    padding: 15px 0;
    background-color: var(--color-bg);
  }

  .home-banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .home-banner {
    position: relative;
    display: block;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
  }

  .home-banner img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
  }

  .home-banner-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
  }
}

/* ==========================================================================
   Mobile Card Grid 2列化 - トップページ用
   ========================================================================== */

@media (max-width: 768px) {
  /* トップページのみカードグリッドを2列に */
  .page-home .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .page-home .card-img {
    aspect-ratio: 4/3;
  }

  .page-home .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-home .card-body {
    padding: 8px;
  }

  .page-home .card-title {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .page-home .card-meta {
    font-size: 0.7rem;
  }

  /* 強みカード（画像のみ） */
  .page-home .strength-cards {
    gap: 8px;
  }
}

/* ==========================================================================
   Home Mobile: 横スクロールメニュー
   ========================================================================== */

/* デスクトップでは横スクロールメニューを非表示 */
.home-scroll-menu {
  display: none;
}

@media (max-width: 768px) {
  /* モバイル用アニメーションHero */
  .hero-animated {
    min-height: 300px;
  }

  .hero-animated-title {
    font-size: 1.5rem;
    padding: 0 20px;
  }

  /* 横スクロールメニューを表示 */
  .home-scroll-menu {
    display: block;
    padding: 12px 0;
    background-color: var(--color-bg);
  }

  .home-scroll-section {
    margin-bottom: 16px;
  }

  .home-scroll-section:last-child {
    margin-bottom: 0;
  }

  .home-scroll-menu-title {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0 12px 8px;
    color: var(--color-text);
    border-left: 3px solid var(--color-primary);
    margin-left: 12px;
    padding-left: 8px;
  }

  .home-scroll-menu-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 0 12px;
    -webkit-overflow-scrolling: touch;
  }

  .home-scroll-menu-list::-webkit-scrollbar {
    display: none;
  }

  .home-scroll-card {
    flex: 0 0 auto;
    width: 130px;
    scroll-snap-align: start;
    text-decoration: none;
  }

  .home-scroll-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
  }

  .home-scroll-card-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text);
    text-align: center;
    margin-top: 4px;
    line-height: 1.3;
  }

  .home-scroll-more {
    flex: 0 0 auto;
    width: 70px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-primary);
    text-decoration: none;
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   Mobile Card Height Reduction - 全ページ用
   ========================================================================== */

@media (max-width: 768px) {
  /* 強みカード（トップページ）- 1列で16:9画像 */
  .strength-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .strength-card img {
    aspect-ratio: 16/9;
  }

  /* 下層ページのカード高さ縮小（サービス一覧等） */
  .card-grid {
    gap: 6px;
  }

  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-img {
    aspect-ratio: 3/2;
  }

  .card-body {
    padding: 6px;
  }

  .card-title {
    font-size: 0.75rem;
    margin-bottom: 2px;
  }

  .card-text {
    font-size: 0.65rem;
    margin-bottom: 2px;
    line-height: 1.3;
  }

  .card-meta {
    font-size: 0.6rem;
    padding-top: 3px;
  }
}

/* ==========================================================================
   Case List - 施工事例リスト形式
   ========================================================================== */

.case-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.case-list-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.2s ease;
}

.case-list-item:last-child {
  border-bottom: none;
}

.case-list-item:hover {
  background-color: var(--color-bg);
}

.case-list-thumb {
  flex: 0 0 100px;
  width: 100px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.case-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-list-body {
  flex: 1;
  min-width: 0;
}

.case-list-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-primary);
  margin: 0 0 4px;
  line-height: 1.3;
}

.case-list-desc {
  font-size: 0.8rem;
  color: var(--color-text);
  margin: 0 0 6px;
  line-height: 1.4;
}

.case-list-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.case-list-tag {
  display: inline-block;
  padding: 2px 8px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 2px;
}

.case-list-area {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .case-list-item {
    padding: 10px;
    gap: 10px;
  }

  .case-list-thumb {
    flex: 0 0 80px;
    width: 80px;
  }

  .case-list-title {
    font-size: 0.85rem;
  }

  .case-list-desc {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .case-list-tag {
    font-size: 0.65rem;
    padding: 1px 6px;
  }

  .case-list-area {
    font-size: 0.7rem;
  }
}
