/* =========================================================
   内山板金工業株式会社 共通スタイル
   B案：チャコールグレー × アイボリー × アクセントレッド
   雪国の堅牢さ・無骨で頼れる
   ========================================================= */

:root {
  --uchi-charcoal: #2c3338;
  --uchi-charcoal-dark: #1a1f24;
  --uchi-charcoal-light: #4a5560;
  --uchi-ivory: #faf7f0;
  --uchi-ivory-dark: #ede7d6;
  --uchi-red: #c0392b;
  --uchi-red-dark: #962d22;
  --uchi-red-light: #e74c3c;
  --uchi-text: #1a1a1a;
  --uchi-gray: #6b7280;
  --uchi-gray-light: #9ca3af;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--uchi-text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

.font-display {
  font-family: "Bebas Neue", "Noto Sans JP", sans-serif;
  letter-spacing: 0.05em;
}

/* ヒーロー 背景 */
.hero-pattern {
  background:
    linear-gradient(135deg, rgba(44,51,56,0.95) 0%, rgba(26,31,36,0.92) 100%),
    radial-gradient(circle at 20% 30%, rgba(192,57,43,0.18) 0%, transparent 35%);
  color: #ffffff;
}

/* 鉄板テクスチャ風（縞模様） */
.metal-texture {
  background-color: var(--uchi-charcoal);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 2px,
      transparent 2px,
      transparent 8px
    );
}

/* セクション見出し */
.section-heading {
  position: relative;
  padding-left: 1rem;
  border-left: 5px solid var(--uchi-red);
  line-height: 1.4;
  font-weight: 800;
}

.section-eyebrow {
  font-family: "Bebas Neue", serif;
  color: var(--uchi-red);
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}

/* 番号付き見出し */
.numbered-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.numbered-title .num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  color: var(--uchi-red);
  line-height: 1;
  font-weight: 700;
}

/* CTAボタン */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--uchi-red);
  color: #ffffff;
  font-weight: 700;
  border-radius: 4px;
  transition: all .15s ease;
  box-shadow: 0 4px 12px rgba(192,57,43,0.3);
  text-decoration: none;
  border: 2px solid var(--uchi-red);
}
.btn-primary:hover {
  background-color: var(--uchi-red-dark);
  border-color: var(--uchi-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192,57,43,0.4);
}

.btn-charcoal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--uchi-charcoal);
  color: #ffffff;
  font-weight: 700;
  border-radius: 4px;
  transition: all .15s ease;
  text-decoration: none;
  border: 2px solid var(--uchi-charcoal);
}
.btn-charcoal:hover {
  background-color: var(--uchi-charcoal-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: transparent;
  color: var(--uchi-charcoal);
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid var(--uchi-charcoal);
  transition: all .15s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background-color: var(--uchi-charcoal);
  color: #ffffff;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: transparent;
  color: #ffffff;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid #ffffff;
  transition: all .15s ease;
  text-decoration: none;
}
.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--uchi-charcoal);
}

/* 緊急電話バッジ */
.emergency-badge {
  background: linear-gradient(135deg, var(--uchi-red) 0%, var(--uchi-red-dark) 100%);
  color: #ffffff;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(192,57,43,0.3);
}

/* カード */
.card-hover {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

/* グローバルナビ */
.global-nav a {
  position: relative;
  transition: color .15s ease;
}
.global-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background-color: var(--uchi-red);
  transition: width .2s ease;
}
.global-nav a:hover::after,
.global-nav a.is-current::after {
  width: 100%;
}

/* モバイルナビ */
.mobile-nav { transition: transform .25s ease; transform: translateX(100%); }
.mobile-nav.is-open { transform: translateX(0); }
.body-locked { overflow: hidden; }

/* お客様の声 */
.voice-card {
  background: var(--uchi-ivory);
  border-radius: 4px;
  padding: 1.5rem;
  border-left: 4px solid var(--uchi-red);
  position: relative;
}

/* テーブル */
.info-table th {
  background-color: var(--uchi-charcoal);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--uchi-charcoal-light);
  width: 30%;
  vertical-align: top;
}
.info-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--uchi-ivory-dark);
  vertical-align: top;
  background-color: #ffffff;
}
@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td {
    display: block; width: 100%;
  }
  .info-table th { padding-bottom: 0.5rem; }
  .info-table td { padding-top: 0.5rem; padding-bottom: 1.25rem; }
}

/* タイムライン */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid var(--uchi-charcoal-light);
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px; top: 4px;
  width: 14px; height: 14px;
  background-color: var(--uchi-red);
  border-radius: 0;
  transform: rotate(45deg);
}

/* フォーム */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--uchi-ivory-dark);
  border-radius: 4px;
  background-color: #ffffff;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--uchi-red);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--uchi-text);
}
.form-required {
  display: inline-block;
  background: var(--uchi-red);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
  font-weight: 700;
}

/* SVGプレースホルダー */
.svg-placeholder {
  background: var(--uchi-ivory);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uchi-gray);
  font-size: 0.875rem;
  border: 2px dashed var(--uchi-charcoal-light);
}

/* フッターCTA */
.footer-cta {
  background-color: var(--uchi-red);
  background-image:
    linear-gradient(rgba(192,57,43,0.92), rgba(150,45,34,0.95)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 10px);
}

@media print {
  .global-header, .footer-cta, .site-footer { display: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp .6s ease forwards;
  opacity: 0;
}
.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }

/* 強調マーカー */
.highlight-red {
  background: linear-gradient(transparent 65%, rgba(192,57,43,0.25) 65%);
  padding: 0 0.1em;
  font-weight: 700;
}
