/* ==========================================
   佐藤塗装様 公式サイト 共通スタイルシート (style.css)
   ========================================== */

/* ------------------------------------------
   1. デザインシステム & 変数定義
   ------------------------------------------ */
:root {
  /* カラーシステム */
  --color-primary: #1e3a8a;      /* 深い信頼のネイビー (主色) */
  --color-primary-light: #3b82f6;/* 爽やかなブルー (中間色) */
  --color-accent: #f97316;       /* 鮮やかなペイントオレンジ (アクセント・塗装の躍動感) */
  --color-accent-hover: #ea580c; /* アクセントホバー */
  --color-bg-dark: #0f172a;      /* 濃いスレート (ダークセクション用) */
  --color-text-dark: #1e293b;    /* 主要テキスト */
  --color-text-light: #64748b;   /* 補足テキスト */
  --color-bg-light: #f8fafc;     /* 背景色 (薄いグレー) */
  --color-bg-warm: #fffbeb;      /* 暖かいニュアンス背景 (採用や安心感用) */
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  
  /* グラデーション */
  --grad-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --grad-accent: linear-gradient(135deg, #f97316 0%, #facc15 100%);
  --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  /* タイポグラフィ */
  --font-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Helvetica Neue", YuGothic, "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
  --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;

  /* シャドウ効果 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.08);

  /* トランジション */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* その他 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --header-height: 80px;
}

/* ------------------------------------------
   2. リセット & グローバル設定
   ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* 共通コンテナ */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* セクションタイトル */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .en {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--color-primary-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title .jp {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title .jp::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--grad-accent);
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .section-title {
    margin-bottom: 40px;
  }
  .section-title .jp {
    font-size: 1.8rem;
  }
}

/* ------------------------------------------
   3. ヘッダー (Navigation Header)
   ------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-header.scrolled {
  height: 70px;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* ロゴ */
.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.logo-info {
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.logo-main {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* ロゴ画像 */
.logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-fast);
}

.logo-img:hover {
  opacity: 0.85;
}

.site-header.scrolled .logo-img {
  height: 48px;
}

/* ナビゲーションメニュー */
.nav-menu ul {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--color-accent);
}

.nav-menu a:hover::after,
.nav-menu li.active a::after {
  width: 100%;
}

.nav-menu li.active a {
  color: var(--color-accent);
}

/* ヘッダーCTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-tel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
  background: var(--color-bg-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.btn-tel-header:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-tel-header svg {
  width: 18px;
  height: 18px;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1100;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

/* スマートフォン対応ヘッダー */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .hamburger-menu {
    display: flex;
  }
  .logo-main {
    font-size: 1.25rem;
  }
  .logo-img {
    height: 45px;
  }
  .site-header.scrolled .logo-img {
    height: 40px;
  }
}

/* スマホドロワーメニュー */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  margin-bottom: 40px;
}

.mobile-menu-overlay a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.mobile-menu-overlay a:hover {
  color: var(--color-accent);
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

/* ハンバーガーアクティブ状態 */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--color-white);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--color-white);
}

/* ------------------------------------------
   4. ボタン & 基本コンポーネント (Buttons)
   ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--grad-primary);
  color: var(--color-white);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ------------------------------------------
   5. ヒーローセクション (Hero Section)
   ------------------------------------------ */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

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

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  animation: fadeInUp 1s ease forwards;
}

.hero-title span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease forwards;
}

/* ヒーロースライダー操作・表示 */
.hero-controls {
  position: absolute;
  bottom: 40px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--color-accent);
  width: 24px;
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 550px;
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .hero-controls {
    bottom: 20px;
    left: 24px;
  }
}

/* ------------------------------------------
   6. スクロール監視アニメーション (Scroll Reveal)
   ------------------------------------------ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------
   7. 強み & 特徴 (Features Section)
   ------------------------------------------ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-white);
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  transition: height var(--transition-normal);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  height: 100%;
  opacity: 0.03;
}

.feature-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(30, 58, 138, 0.08);
  margin-bottom: -10px;
}

.feature-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin: 0 auto 24px;
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--color-primary);
  color: var(--color-white);
}

.feature-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  text-align: left;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-card {
    padding: 36px 24px;
  }
}

/* ------------------------------------------
   8. インタラクティブ Before/After セクション
   ------------------------------------------ */
.before-after-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.ba-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-image-before {
  z-index: 10;
}

.ba-image-after {
  width: 100%;
  z-index: 5;
}

/* スライダー操作バー */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--color-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 20;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-white);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-handle-button svg {
  width: 20px;
  height: 20px;
}

/* ラベル */
.ba-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  z-index: 15;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.ba-label-before {
  left: 16px;
}

.ba-label-after {
  right: 16px;
}

/* テキスト側 */
.ba-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.ba-text p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.ba-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.ba-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ba-point-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-point-icon svg {
  width: 14px;
  height: 14px;
}

.ba-point-text h4 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.ba-point-text p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .before-after-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ------------------------------------------
   9. 業務案内 (Services Menu)
   ------------------------------------------ */
.services-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-menu-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.service-menu-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-menu-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-menu-card:hover .service-menu-img img {
  transform: scale(1.05);
}

.service-menu-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  z-index: 2;
}

.service-menu-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-menu-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.service-menu-content p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-price-box {
  background: var(--color-bg-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border-left: 4px solid var(--color-accent);
}

.service-price-box h4 {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
  font-weight: 700;
}

.service-price-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.service-price-value span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.service-menu-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-menu-feature-tag {
  background: var(--color-bg-warm);
  color: var(--color-accent-hover);
  border: 1px solid rgba(249, 115, 22, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .services-menu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-menu-content {
    padding: 24px;
  }
}

/* ------------------------------------------
   10. 施工事例 / ブログ記事 (Works Blog Portfolio)
   ------------------------------------------ */
/* 施工事例フィルター */
.works-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--color-bg-light);
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* ブロググリッド */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.work-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.work-card:hover .work-card-img img {
  transform: scale(1.05);
}

.work-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 2;
  letter-spacing: 0.05em;
}

.work-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-card-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.work-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.3em;
}

.work-card-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.work-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-light);
}

.work-card-location svg {
  width: 14px;
  height: 14px;
}

.work-card-more {
  color: var(--color-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.work-card-more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.work-card:hover .work-card-more svg {
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ------------------------------------------
   11. 採用セクション (Recruitment Page Cards)
   ------------------------------------------ */
.recruit-hero-box {
  background: var(--grad-dark);
  border-radius: var(--radius-lg);
  padding: 60px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.recruit-hero-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: var(--grad-accent);
  opacity: 0.15;
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.recruit-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.recruit-hero-badge {
  display: inline-block;
  background: var(--color-accent);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.recruit-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.recruit-hero-desc {
  color: #cbd5e1;
  margin-bottom: 32px;
}

.recruit-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.recruit-feature-card {
  background: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.recruit-feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.recruit-feature-card h3 svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.recruit-feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

/* 募集要項アコーディオン・テーブル */
.recruit-table-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 60px;
}

.recruit-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--color-border);
}

.recruit-row:last-child {
  border-bottom: none;
}

.recruit-label {
  background: var(--color-bg-light);
  padding: 24px 32px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--color-border);
}

.recruit-value {
  padding: 24px 32px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .recruit-hero-box {
    padding: 30px 24px;
  }
  .recruit-hero-title {
    font-size: 1.6rem;
  }
  .recruit-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .recruit-row {
    grid-template-columns: 1fr;
  }
  .recruit-label {
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .recruit-value {
    padding: 16px 20px;
  }
}

/* ------------------------------------------
   12. 会社概要ページ用デザイン (Company Profile)
   ------------------------------------------ */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table tr {
  border-bottom: 1px solid var(--color-border);
}

.profile-table tr:last-child {
  border-bottom: none;
}

.profile-table th {
  text-align: left;
  padding: 20px 24px 20px 0;
  font-weight: 700;
  color: var(--color-primary);
  width: 140px;
  vertical-align: top;
}

.profile-table td {
  padding: 20px 0;
  color: var(--color-text-dark);
}

.profile-map-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-container {
  width: 100%;
  height: 380px;
  z-index: 10;
}

.map-desc {
  padding: 20px;
  background: var(--color-bg-light);
  font-size: 0.85rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .map-container {
    height: 300px;
  }
}

/* ------------------------------------------
   13. お問い合わせ & フォーム (Contact Form)
   ------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
}

.contact-info-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.contact-info-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-details h4 {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.contact-info-details p {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
}

.contact-info-details .tel-link {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.contact-info-footer {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #cbd5e1;
  text-align: center;
}

/* フォーム入力要素 */
.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-label span {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  vertical-align: middle;
}

.form-label span.optional {
  background: var(--color-text-light);
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  font-family: var(--font-base);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary-light);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

/* チェックボックス・ラジオボタンカスタム */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.form-error.active {
  display: flex;
}

.form-privacy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.form-privacy a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 700;
}

.form-submit-wrapper {
  text-align: center;
}

.form-submit-wrapper .btn {
  width: 100%;
  max-width: 280px;
}

@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 30px 24px;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ------------------------------------------
   14. ダイナミックモーダル (Modals)
   ------------------------------------------ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(30px) scale(0.95);
  transition: all var(--transition-normal);
  position: relative;
}

.modal-overlay.active .modal-wrapper {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  padding: 48px;
}

@media (max-width: 768px) {
  .modal-body {
    padding: 30px 20px;
  }
}

/* 施工事例詳細モーダル用レイアウト */
.work-detail-img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.work-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-detail-category {
  display: inline-block;
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-accent-hover);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.work-detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 24px;
}

.work-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--color-bg-light);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.work-detail-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-detail-info-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 700;
}

.work-detail-info-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.work-detail-story {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  line-height: 1.8;
  margin-bottom: 24px;
}

.work-detail-story p {
  margin-bottom: 16px;
}

.work-detail-customer-voice {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin-top: 24px;
}

.work-detail-customer-voice h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.customer-voice-box {
  background: var(--color-bg-warm);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  font-style: italic;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .work-detail-info-grid {
    grid-template-columns: 1fr;
  }
}

/* 採用応募フォームモーダル */
.recruit-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 8px;
}

.recruit-form-desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 32px;
}

/* ------------------------------------------
   15. 簡易案内CTAセクション (Call To Action)
   ------------------------------------------ */
.cta-section {
  background: var(--grad-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(30deg);
}

.cta-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-wrapper h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-wrapper p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

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

.cta-tel {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-heading);
}

.cta-tel svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.cta-tel-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: block;
  text-align: left;
  font-weight: 700;
}

.cta-tel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .cta-wrapper h2 {
    font-size: 1.8rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  .cta-tel {
    font-size: 1.8rem;
  }
}

/* ------------------------------------------
   16. フッター (Footer)
   ------------------------------------------ */
.site-footer {
  background: var(--color-bg-dark);
  color: #94a3b8;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

/* フッターロゴ画像 */
.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(1.1);
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-contact-info {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-links h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-left: 12px;
}

.footer-links h3::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* フォーム送信完了モーダル */
.success-modal {
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.success-modal h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.success-modal p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
