/* =========================================================
   株式会社齋藤塗装店 共通スタイル
   Tailwind CDNで補完しきれない部分のみ定義
   ========================================================= */

:root {
  --saito-green: #4d7c3a;
  --saito-green-dark: #355525;
  --saito-green-light: #8fb87b;
  --saito-cream: #faf8f3;
  --saito-yellow: #f4c430;
  --saito-yellow-dark: #d9a900;
  --saito-text: #2d3748;
  --saito-gray: #718096;
}

html { scroll-behavior: smooth; }

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

/* ヒーローセクション 葉模様の背景 */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(143, 184, 123, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(244, 196, 48, 0.10) 0%, transparent 45%),
    linear-gradient(135deg, #faf8f3 0%, #f3efe5 100%);
}

/* バッジリボン */
.badge-ribbon {
  background: linear-gradient(135deg, var(--saito-yellow) 0%, var(--saito-yellow-dark) 100%);
  box-shadow: 0 4px 12px rgba(217, 169, 0, 0.25);
}

/* セクション見出し（縦線アクセント） */
.section-heading {
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--saito-green);
  line-height: 1.4;
}

/* セクションタイトル英字（薄い背景文字） */
.section-eyebrow {
  font-family: "Georgia", serif;
  font-style: italic;
  color: var(--saito-green);
  letter-spacing: 0.1em;
  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(--saito-green);
  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(77, 124, 58, 0.25);
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--saito-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(77, 124, 58, 0.35);
}

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--saito-yellow);
  color: var(--saito-text);
  font-weight: 700;
  border-radius: 9999px;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 12px rgba(244, 196, 48, 0.30);
  text-decoration: none;
}
.btn-yellow:hover {
  background-color: var(--saito-yellow-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: #ffffff;
  color: var(--saito-green);
  font-weight: 700;
  border: 2px solid var(--saito-green);
  border-radius: 9999px;
  transition: all .15s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background-color: var(--saito-green);
  color: #ffffff;
}

/* カードホバー */
.card-hover {
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  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: -4px;
  width: 0; height: 2px;
  background-color: var(--saito-green);
  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 #e8e3d6;
  position: relative;
}
.voice-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem; left: 1rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--saito-green-light);
  font-family: Georgia, serif;
  opacity: 0.4;
}

/* テーブル（会社概要） */
.info-table th {
  background-color: var(--saito-cream);
  color: var(--saito-green-dark);
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e8e3d6;
  width: 30%;
  vertical-align: top;
}
.info-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e8e3d6;
  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(--saito-green-light);
}
.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(--saito-green);
  border-radius: 9999px;
}

/* フォーム */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d6d3c7;
  border-radius: 0.5rem;
  background-color: #ffffff;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--saito-green);
  box-shadow: 0 0 0 3px rgba(77, 124, 58, 0.15);
}

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

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

/* フッター上 緑帯 */
.footer-cta {
  background:
    linear-gradient(rgba(77, 124, 58, 0.92), rgba(77, 124, 58, 0.92)),
    radial-gradient(circle at 30% 50%, rgba(244, 196, 48, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #4d7c3a 0%, #355525 100%);
}

/* 印刷用 */
@media print {
  .global-header, .footer-cta, .site-footer { display: none; }
}

/* アニメーション fade-in */
@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; }
