/* =========================================================
   六興整熱工業株式会社 共通スタイル
   C案：雪国の暖かさ系（赤茶 × ベージュ × アイボリー）
   Tailwind CDN で補完しきれない部分のみ定義
   ========================================================= */

:root {
  /* メインカラー：温かみのある赤茶（漆・煉瓦・冬の囲炉裏のイメージ） */
  --rokko-redbrown: #9a3b22;        /* primary */
  --rokko-redbrown-dark: #6e2614;   /* primary-dark / 見出し */
  --rokko-redbrown-light: #c8694a;  /* terracotta accent */

  /* サブカラー：暖かいベージュ（土壁・無垢材） */
  --rokko-beige: #e8d6bc;
  --rokko-beige-dark: #b89878;

  /* ベース：アイボリー（雪あかり・障子のような白） */
  --rokko-ivory: #faf5ec;
  --rokko-ivory-deep: #f1e8d6;

  /* アクセント：雪／水／炎の差し色 */
  --rokko-snow: #f4f7fb;            /* 雪あかりの白 */
  --rokko-snow-blue: #c7d8e8;       /* 雪空のうすいブルー */
  --rokko-flame: #e8a04a;           /* 暖房・暖炉の橙 */

  /* 文字 */
  --rokko-text: #3b2a1f;            /* 焦げ茶系の本文色 */
  --rokko-gray: #7a6857;            /* キャプション */
}

html { scroll-behavior: smooth; }

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

/* ===== ヒーロー背景：雪あかり×囲炉裏の温度感 ===== */
.hero-pattern {
  background-image:
    radial-gradient(circle at 18% 25%, rgba(232, 160, 74, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 82% 70%, rgba(199, 216, 232, 0.20) 0%, transparent 45%),
    linear-gradient(135deg, #faf5ec 0%, #f1e8d6 100%);
}

/* 雪のドット背景（強み・対応エリアセクション用） */
.snow-pattern {
  background-color: var(--rokko-ivory);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(110, 38, 20, 0.06) 1.2px, transparent 1.6px),
    radial-gradient(circle at 60px 60px, rgba(110, 38, 20, 0.04) 1.2px, transparent 1.6px);
  background-size: 80px 80px;
}

/* ===== バッジリボン（hero浮遊バッジ） ===== */
.badge-ribbon {
  background: linear-gradient(135deg, var(--rokko-flame) 0%, var(--rokko-redbrown-light) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 160, 74, 0.30);
}

/* ===== セクション見出し ===== */
.section-heading {
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--rokko-redbrown);
  line-height: 1.4;
}
.section-eyebrow {
  font-family: "Georgia", serif;
  font-style: italic;
  color: var(--rokko-redbrown);
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ===== CTA ボタン群 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--rokko-redbrown);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 12px rgba(154, 59, 34, 0.25);
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--rokko-redbrown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(154, 59, 34, 0.35);
}

.btn-flame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--rokko-flame);
  color: var(--rokko-redbrown-dark);
  font-weight: 700;
  border-radius: 9999px;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 12px rgba(232, 160, 74, 0.30);
  text-decoration: none;
}
.btn-flame:hover {
  background-color: #d68b35;
  transform: translateY(-2px);
}

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

/* 緊急ダイヤル ボタン（赤強め） */
.btn-emergency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #c0341d 0%, #8e1d0c 100%);
  color: #fff;
  font-weight: 800;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(192, 52, 29, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(192, 52, 29, 0.45);
}

/* ===== カードホバー ===== */
.card-hover {
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(58, 30, 18, 0.10);
}

/* ===== グローバルナビ ===== */
.global-nav a {
  position: relative;
  transition: color .15s ease;
}
.global-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background-color: var(--rokko-redbrown);
  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: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--rokko-beige);
  position: relative;
}
.voice-card::before {
  content: '“';
  position: absolute;
  top: -0.5rem; left: 1rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--rokko-redbrown-light);
  font-family: Georgia, serif;
  opacity: 0.35;
}

/* ===== テーブル（会社概要） ===== */
.info-table th {
  background-color: var(--rokko-ivory-deep);
  color: var(--rokko-redbrown-dark);
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--rokko-beige);
  width: 30%;
  vertical-align: top;
}
.info-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--rokko-beige);
  vertical-align: top;
}
@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 { border-bottom: none; padding-bottom: 0.25rem; }
  .info-table td { padding-top: 0.25rem; padding-bottom: 1rem; }
}

/* ===== 沿革タイムライン ===== */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid var(--rokko-beige-dark);
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  background-color: var(--rokko-redbrown);
  border-radius: 9999px;
}

/* ===== フォーム ===== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--rokko-beige-dark);
  border-radius: 0.5rem;
  background-color: #ffffff;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  color: var(--rokko-text);
}
.form-input:focus {
  outline: none;
  border-color: var(--rokko-redbrown);
  box-shadow: 0 0 0 3px rgba(154, 59, 34, 0.15);
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--rokko-text);
}
.form-required {
  display: inline-block;
  background: #c0341d;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ===== フッター上 CTA 帯 ===== */
.footer-cta {
  background:
    linear-gradient(rgba(110, 38, 20, 0.92), rgba(110, 38, 20, 0.92)),
    radial-gradient(circle at 30% 50%, rgba(232, 160, 74, 0.30) 0%, transparent 50%),
    linear-gradient(135deg, var(--rokko-redbrown) 0%, var(--rokko-redbrown-dark) 100%);
}

/* ===== 緊急対応 警告ストライプ ===== */
.emergency-stripe {
  background: repeating-linear-gradient(
    -45deg,
    #c0341d, #c0341d 16px,
    #8e1d0c 16px, #8e1d0c 32px
  );
  color: #fff;
}

/* 印刷用 */
@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; }

/* 雪の粒（hero左右上のふわふわ）— transformでゆっくり落ちるアニメ */
@keyframes snowfall {
  0%   { transform: translateY(-10px); opacity: 0.0; }
  20%  { opacity: 0.8; }
  100% { transform: translateY(180px); opacity: 0.0; }
}
.snow-flake {
  position: absolute;
  width: 6px; height: 6px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 0 6px rgba(199, 216, 232, 0.7);
  animation: snowfall 8s linear infinite;
  pointer-events: none;
}

/* セクションタイトル下線 */
.title-underline {
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}
.title-underline::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  background: var(--rokko-redbrown-light);
  border-radius: 9999px;
}

/* SVGプレースホルダー枠 */
.svg-placeholder {
  background: linear-gradient(135deg, var(--rokko-ivory-deep) 0%, var(--rokko-beige) 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rokko-gray);
  font-size: 0.875rem;
  border: 2px dashed var(--rokko-beige-dark);
}
