/*
Theme Name: 外壁塗装セカンドオピニオン窓口
Theme URI: https://gaiheki-second-opinion.com
Author: みのりペイント
Author URI: https://gaiheki-second-opinion.com
Description: 外壁塗装の見積もりをプロが無料で査定するセカンドオピニオンサービスのWordPressテーマ
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gaiheki-second-opinion
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/* ========================================
   外壁塗装セカンドオピニオン窓口 - v2.1
   ======================================== */

:root {
  --color-primary: #1a2744;
  --color-primary-dark: #0f1b33;
  --color-primary-light: #2c4a6e;
  --color-accent: #c8a45a;
  --color-accent-dark: #b08f42;
  --color-accent-light: #e0c67a;
  --color-danger: #b54a3f;
  --color-danger-light: #fdf2f0;
  --color-success: #3a7d5c;
  --color-success-light: #eef7f2;
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f0;
  --color-bg-warm: #faf8f3;
  --color-text: #222831;
  --color-text-light: #555b66;
  --color-text-muted: #8a919c;
  --color-border: #ddd9d2;
  --color-border-light: #ece9e3;
  --shadow-sm: 0 2px 8px rgba(26,39,68,0.06);
  --shadow-md: 0 4px 20px rgba(26,39,68,0.08);
  --shadow-lg: 0 8px 40px rgba(26,39,68,0.10);
  --shadow-xl: 0 16px 56px rgba(26,39,68,0.13);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 9999px;
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-heading: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-light); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-danger { color: var(--color-danger); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.section-padding { padding: 64px 0; position: relative; }
.section-padding-lg { padding: 80px 0; position: relative; }
.bg-light { background: var(--color-bg-light); }
.bg-warm { background: var(--color-bg-warm); }
.bg-primary { background: var(--color-primary); color: #fff; }
.bg-danger-light { background: var(--color-danger-light); }
.bg-success-light { background: var(--color-success-light); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}
h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

.section-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-title span { color: var(--color-accent); }

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 44px;
  font-size: 0.92rem;
  line-height: 1.8;
}

.section-label {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.12em;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  vertical-align: middle;
  margin-right: 10px;
}
.section-label::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  vertical-align: middle;
  margin-left: 10px;
}


/* ========================================
   BUTTONS - 各ボタンに個性を持たせる
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
}

/* Primary: 矩形角丸＋ホバーで背景がスライドイン */
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  z-index: 0;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: var(--color-primary);
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: -1;
}
.btn-primary:hover { color: #fff; }
.btn-primary:hover::after { left: 0; }

/* Outline: 下線が伸びるスタイル */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* White */
.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s, transform 0.3s;
}
.btn-white:hover {
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.btn-lg { padding: 18px 44px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }


/* ========================================
   HEADER
   ======================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  height: var(--header-height);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(26,39,68,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
}
.site-logo:hover { color: var(--color-primary); }

.site-logo .logo-icon {
  width: 42px; height: 42px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  font-size: 1.3rem; font-weight: 800;
}
.site-logo .logo-text { line-height: 1.2; font-size: 0.92rem; }
.site-logo .logo-sub { font-size: 0.62rem; color: var(--color-text-muted); font-weight: 400; }

/* --- Nav Desktop --- */
.nav-desktop { display: none; align-items: center; gap: 28px; }
.nav-desktop a,
.nav-desktop .menu-item a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.3s;
}
/* ホバー：下線がleft→rightへスライド（中央からではなく） */
.nav-desktop a::after,
.nav-desktop .menu-item a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-desktop a:hover,
.nav-desktop .menu-item a:hover { color: var(--color-primary); }
.nav-desktop a:hover::after,
.nav-desktop .menu-item a:hover::after { width: 100%; }

.header-cta { display: none; }
.header-cta .btn { padding: 10px 24px; font-size: 0.84rem; }

/* --- Hamburger --- */
.hamburger {
  display: flex; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 1001;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-primary);
  transition: all 0.3s; border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Mobile Nav --- */
.nav-mobile {
  position: fixed; top: 0; right: -100%;
  width: 85%; max-width: 380px; height: 100vh;
  background: #fff; z-index: 999;
  padding: 100px 32px 32px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}
.nav-mobile.open { right: 0; }
.nav-mobile a,
.nav-mobile .menu-item a {
  display: block; padding: 15px 0;
  font-size: 1rem; font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
}
.nav-mobile .nav-cta { margin-top: 28px; }

.nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,27,51,0.5);
  z-index: 998; opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.nav-overlay.active { opacity: 1; visibility: visible; }


/* ========================================
   HERO - ダーク背景・写真映え
   ======================================== */

.hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 60%; height: 100%;
  background: linear-gradient(135deg, rgba(200,164,90,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  color: var(--color-accent-light);
  font-size: 0.8rem; font-weight: 700;
  padding: 8px 18px; border-radius: 6px;
  margin-bottom: 24px;
  border: 1px solid rgba(200,164,90,0.25);
}
.hero-badge::before { content: '\26A0'; }

.hero h1 {
  font-size: 1.8rem; line-height: 1.5;
  margin-bottom: 12px; color: #fff; font-weight: 800;
}
.hero h1 .highlight {
  color: var(--color-accent-light);
  position: relative;
}
.hero h1 .highlight::after {
  content: '';
  position: absolute; bottom: 2px; left: 0; right: 0;
  height: 8px;
  background: rgba(200,164,90,0.3);
  z-index: -1;
}

.hero-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px; line-height: 1.9;
}
.hero-lead strong { color: #fff; }

.hero-cta-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

/* ヒーロー内のoutlineボタン：白系 */
.hero .btn-outline {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 32px;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.84rem; color: rgba(255,255,255,0.75);
}
.trust-item .icon { color: var(--color-accent-light); font-weight: 700; }

/* --- Hero Stats --- */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.12);
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 1.6rem; font-weight: 800;
  color: var(--color-accent-light); line-height: 1.2;
}
.stat-number .unit { font-size: 0.7rem; font-weight: 600; }
.stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* Hero BG Image */
.hero-bg {
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15,27,51,0.88) 0%, rgba(26,39,68,0.82) 50%, rgba(44,74,110,0.78) 100%);
  z-index: 0;
}
.hero-bg > .container { position: relative; z-index: 1; }


/* ========================================
   Section Dividers
   ======================================== */

.section-divider-top { position: relative; z-index: 1; }
.section-divider-top::before {
  content: ''; position: absolute;
  top: -40px; left: 0; right: 0; height: 80px;
  background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}


/* ========================================
   PROBLEM CARDS - ホバーで左ボーダーが太くなる
   ======================================== */

.problem-list {
  display: flex; flex-direction: column; gap: 16px;
}

.problem-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px; padding-left: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--color-danger);
  transition: border-left-width 0.3s, box-shadow 0.3s, padding-left 0.3s;
}
/* ホバー：ボーダーが太くなって強調 */
.problem-card:hover {
  border-left-width: 6px;
  padding-left: 29px;
  box-shadow: var(--shadow-md);
}

.problem-card .problem-icon { font-size: 1.5rem; margin-bottom: 10px; }
.problem-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--color-primary); }
.problem-card p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.75; }


/* ========================================
   STRENGTHS - 横並び交互レイアウト
   ======================================== */

.strengths-list {
  display: flex; flex-direction: column; gap: 48px;
}

.strength-row {
  display: flex; flex-direction: column; gap: 0;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* 画像部分：ホバーでズーム */
.strength-row .strength-image {
  width: 100%; height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}
.strength-row .strength-image::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,39,68,0.0);
  transition: background 0.4s;
}
.strength-row:hover .strength-image::after {
  background: rgba(26,39,68,0.08);
}

.strength-image .strength-number {
  position: absolute; top: 16px; left: 16px;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: var(--color-accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  z-index: 1;
}

.strength-body {
  padding: 32px;
}
.strength-icon { width: 52px; height: 52px; margin-bottom: 14px; }
.strength-icon svg { width: 100%; height: 100%; }
.strength-body h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.45; }
.strength-body p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.8; }

/* 旧strengths-grid（3カラム）も互換のため残す */
.strengths-grid {
  display: flex; flex-direction: column; gap: 28px;
}
.strength-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.strength-card .strength-image {
  width: 100%; height: 200px;
  background-size: cover; background-position: center;
  background-color: var(--color-bg-light);
  position: relative; overflow: hidden;
}
.strength-card .strength-image::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,39,68,0);
  transition: background 0.4s;
}
.strength-card:hover .strength-image::after {
  background: rgba(26,39,68,0.1);
}


/* ========================================
   HOW IT WORKS - ステップ：タイムライン風
   ======================================== */

.steps {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
}

/* 縦の接続線 */
.steps::before {
  content: '';
  position: absolute;
  top: 48px; bottom: 48px;
  left: 43px;
  width: 2px;
  background: var(--color-border);
  z-index: 0;
}

.step {
  display: flex; gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

.step-number {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  transition: background 0.3s, transform 0.3s;
}
/* ホバーでステップ番号がアクセント色に */
.step:hover .step-number {
  background: var(--color-accent);
  transform: scale(1.1);
}

.step-content {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  transition: box-shadow 0.3s;
}
.step:hover .step-content {
  box-shadow: var(--shadow-md);
}

.step-content h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-content p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.75; }

.step-time {
  display: inline-block;
  background: var(--color-bg-warm);
  color: var(--color-accent-dark);
  font-size: 0.75rem; font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  margin-top: 10px;
  border: 1px solid var(--color-border-light);
}


/* ========================================
   CASE STUDIES - ホバーでヘッダーが色濃く
   ======================================== */

.case-cards {
  display: flex; flex-direction: column; gap: 20px;
}

.case-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s;
}
.case-card:hover { box-shadow: var(--shadow-lg); }

.case-header {
  padding: 18px 22px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  transition: padding-left 0.3s;
}
.case-header.overpriced { background: var(--color-danger-light); border-left: 4px solid var(--color-danger); }
.case-header.fair { background: var(--color-success-light); border-left: 4px solid var(--color-success); }
/* ホバーでヘッダーのborder太く */
.case-card:hover .case-header.overpriced { border-left-width: 6px; }
.case-card:hover .case-header.fair { border-left-width: 6px; }

.case-tag {
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 4px;
  white-space: nowrap;
}
.case-tag.overpriced { background: var(--color-danger); color: #fff; }
.case-tag.fair { background: var(--color-success); color: #fff; }

.case-title { font-size: 0.92rem; font-weight: 700; flex: 1; }
.case-body { padding: 22px; }

.case-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 18px;
}
.case-detail dt { font-size: 0.73rem; color: var(--color-text-muted); }
.case-detail dd { font-size: 0.9rem; font-weight: 600; }

.case-point {
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.85rem; line-height: 1.75;
}
.case-point strong { color: var(--color-primary); }

/* リンク：矢印が右にスライド */
.case-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  font-weight: 700; font-size: 0.88rem;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border-light);
  transition: background 0.2s, gap 0.3s;
}
.case-link:hover {
  background: var(--color-bg-light);
  color: var(--color-accent);
  gap: 14px;
}


/* ========================================
   CHECKLIST - ホバーでアイコン回転
   ======================================== */

.check-items { display: flex; flex-direction: column; gap: 14px; }

.check-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.check-item:hover { box-shadow: var(--shadow-md); }

.check-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s, border-radius 0.4s;
}
/* ホバーでアイコンが回転＋丸くなる */
.check-item:hover .check-icon {
  transform: rotate(10deg) scale(1.1);
  border-radius: 50%;
}

.check-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.check-item p { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.65; }


/* ========================================
   AREA CARDS - ホバーでスライドイン背景
   ======================================== */

.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.area-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.4s, box-shadow 0.3s;
}
/* ホバーで背景がスライドイン */
.area-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--color-primary);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: -1;
}
.area-card:hover::before { transform: translateX(0); }
.area-card:hover { color: #fff; box-shadow: var(--shadow-lg); }
.area-card:hover .area-name { color: #fff; }
.area-card:hover .area-sub { color: rgba(255,255,255,0.7); }
.area-card:hover .area-icon { background: rgba(255,255,255,0.15); }

.area-icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-light);
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.4s;
}
.area-name { font-weight: 700; font-size: 0.95rem; transition: color 0.4s; }
.area-sub { font-size: 0.7rem; color: var(--color-text-muted); transition: color 0.4s; }


/* ========================================
   FAQ - ホバーでQ全体にアクセントライン
   ======================================== */

.faq-list {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 800px; margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover {
  border-left-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: none; border: none;
  cursor: pointer;
  font-size: 0.95rem; font-weight: 700;
  color: var(--color-text);
  text-align: left;
  font-family: var(--font-main);
  line-height: 1.5; gap: 14px;
  transition: color 0.3s;
}
.faq-item:hover .faq-question { color: var(--color-primary); }

.faq-toggle {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: transform 0.3s, background 0.3s, color 0.3s;
  font-weight: 400;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #fff;
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner {
  padding: 0 22px 22px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.85;
}


/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,164,90,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: #fff; font-size: 1.4rem; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.cta-section p {
  font-size: 0.92rem; opacity: 0.85; margin-bottom: 28px;
  position: relative; z-index: 1;
}
.cta-section .btn-primary {
  position: relative; z-index: 1;
  font-size: 1.05rem; padding: 18px 44px;
}
.cta-features {
  display: flex; justify-content: center;
  gap: 22px; margin-top: 22px;
  font-size: 0.82rem; opacity: 0.75;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}


/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; margin-bottom: 44px;
}
.footer-brand .footer-logo {
  font-size: 1rem; font-weight: 700;
  color: var(--color-accent-light); margin-bottom: 14px;
}
.footer-brand p { font-size: 0.84rem; line-height: 1.75; }

.footer-nav h4 {
  color: #fff; font-size: 0.88rem;
  margin-bottom: 14px; font-weight: 700;
}
/* フッターリンク：ホバーで右に少しスライド */
.footer-nav a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.84rem;
  padding: 5px 0;
  transition: color 0.25s, padding-left 0.25s;
}
.footer-nav a:hover {
  color: var(--color-accent-light);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}


/* ========================================
   ARTICLE STYLES
   ======================================== */

.article-hero {
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 44px;
  background: var(--color-bg-light);
}
.article-category {
  display: inline-block;
  font-size: 0.73rem; font-weight: 700;
  padding: 4px 14px; border-radius: 4px;
  margin-bottom: 12px;
}
.article-category.estimate { background: #e8eef6; color: #1a4a8a; }
.article-category.area { background: #e6f2ec; color: #2a6b48; }
.article-category.industry { background: #f6e8ea; color: #8a2a3a; }

.article-hero h1 { font-size: 1.5rem; line-height: 1.5; margin-bottom: 12px; }
.article-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.8rem; color: var(--color-text-muted);
}

.article-body {
  max-width: 800px; margin: 0 auto; padding: 44px 20px;
}
.article-body h2 {
  font-size: 1.3rem;
  margin-top: 52px; margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-primary);
}
.article-body h3 {
  font-size: 1.1rem;
  margin-top: 36px; margin-bottom: 12px;
  padding-left: 16px;
  border-left: 4px solid var(--color-accent);
}
.article-body p { margin-bottom: 22px; font-size: 1rem; line-height: 2; }
.article-body ul, .article-body ol { margin-bottom: 22px; padding-left: 26px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; font-size: 0.95rem; line-height: 1.85; }

/* Callout */
.callout { border-radius: var(--radius-md); padding: 22px 26px; margin: 28px 0; font-size: 0.93rem; line-height: 1.85; }
.callout-warning { background: #fdf8ee; border-left: 4px solid var(--color-accent); }
.callout-danger { background: var(--color-danger-light); border-left: 4px solid var(--color-danger); }
.callout-info { background: #edf2fa; border-left: 4px solid #3768a8; }
.callout-success { background: var(--color-success-light); border-left: 4px solid var(--color-success); }
.callout-title { font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }

/* Table */
.article-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.88rem; }
.article-table th {
  background: var(--color-primary); color: #fff;
  padding: 14px 16px; text-align: left; font-weight: 600; font-size: 0.84rem;
}
.article-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-border-light); }
.article-table tr:nth-child(even) { background: var(--color-bg-light); }

/* Article CTA */
.article-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; border-radius: var(--radius-md);
  padding: 34px 28px; text-align: center; margin: 44px 0;
}
.article-cta h3 { color: #fff; border: none; padding: 0; margin: 0 0 10px; font-size: 1.1rem; }
.article-cta p { font-size: 0.88rem; opacity: 0.88; margin-bottom: 18px; }
.article-cta .btn { background: var(--color-accent); color: #fff; }

/* Related */
.article-related { background: var(--color-bg-light); padding: 44px 0; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.related-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.3s, transform 0.3s;
  border-bottom: 3px solid transparent;
}
/* ホバー：下に色付きボーダーが現れる */
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}
.related-card .tag {
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 10px; display: inline-block;
}
.related-card h4 { font-size: 0.95rem; margin-bottom: 8px; line-height: 1.5; }
.related-card p { font-size: 0.78rem; color: var(--color-text-muted); }


/* --- Breadcrumb --- */
.breadcrumb, .breadcrumb-wrap { padding: 12px 0; font-size: 0.75rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { margin: 0 6px; }


/* --- Area Page --- */
.area-hero {
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 44px;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-warm) 100%);
}
.area-features { display: grid; grid-template-columns: 1fr; gap: 16px; }
.area-feature-card {
  background: #fff; border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.area-feature-card:hover { box-shadow: var(--shadow-md); }
.area-feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.area-feature-card p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.75; }

.area-hero-bg { background-size: cover; background-position: center; position: relative; }
.area-hero-bg::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(245,245,240,0.92) 0%, rgba(250,248,243,0.90) 100%);
  z-index: 0;
}
.area-hero-bg > .container { position: relative; z-index: 1; }


/* --- Form --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 7px; }
.form-group .required { color: var(--color-danger); font-size: 0.73rem; margin-left: 4px; }
.form-control {
  width: 100%; padding: 13px 18px;
  border: 2px solid var(--color-border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font-main);
  transition: border-color 0.25s, box-shadow 0.25s;
  background: #fff;
}
.form-control:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.08);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23555b66' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 42px;
}


/* --- Floating CTA --- */
.floating-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  box-shadow: 0 -4px 24px rgba(26,39,68,0.10);
  z-index: 900;
  display: flex; gap: 10px;
}
.floating-cta .btn { flex: 1; padding: 13px; font-size: 0.84rem; }


/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }


/* --- Articles List --- */
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.article-list-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
/* ホバー：下ボーダーにアクセント色 */
.article-list-card:hover {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-accent);
  transform: translateY(-3px);
}
.article-list-card a { display: block; padding: 26px; color: var(--color-text); text-decoration: none; }
.article-list-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.5; }
.article-list-card p { font-size: 0.84rem; color: var(--color-text-light); line-height: 1.65; margin-bottom: 10px; }
.article-list-card .meta { font-size: 0.73rem; color: var(--color-text-muted); }

.article-thumbnail {
  width: 100%; height: 240px;
  background-size: cover; background-position: center;
  background-color: var(--color-bg-light);
}
.article-list-card .article-thumb {
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  background-color: var(--color-bg-light);
}


/* --- Comparison Table (legacy) --- */
.comparison-table { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 30px; }
.comparison-row { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--color-border-light); }
.comparison-row:last-child { border-bottom: none; }
.comparison-header { font-weight: 700; font-size: 0.85rem; background: var(--color-bg-light); }
.comparison-cell { padding: 14px 12px; font-size: 0.85rem; text-align: center; display: flex; align-items: center; justify-content: center; }
.comparison-cell.label { font-weight: 600; text-align: left; justify-content: flex-start; background: var(--color-bg-light); font-size: 0.8rem; }
.comparison-cell .good { color: var(--color-success); font-weight: 700; }
.comparison-cell .bad { color: var(--color-danger); font-weight: 700; }

/* --- Placeholders --- */
.img-placeholder-house { background: linear-gradient(135deg, #2c4a6e 0%, #1a2744 100%); }
.img-placeholder-inspection { background: linear-gradient(135deg, #3d5a80 0%, #2c4a6e 100%); }
.img-placeholder-estimate { background: linear-gradient(135deg, #c8a45a 0%, #b08f42 100%); }
.img-placeholder-handshake { background: linear-gradient(135deg, #3a7d5c 0%, #2a6b48 100%); }
.img-placeholder-osaka { background: linear-gradient(135deg, #2c4a6e 0%, #1a2744 100%); }
.img-placeholder-hyogo { background: linear-gradient(135deg, #3d5a80 0%, #2c4a6e 100%); }
.img-placeholder-kyoto { background: linear-gradient(135deg, #4a3a5c 0%, #3a2a4c 100%); }
.img-placeholder-nara { background: linear-gradient(135deg, #5c6b3a 0%, #4a5a2a 100%); }
.img-placeholder-shiga { background: linear-gradient(135deg, #3a6b7d 0%, #2a5a6b 100%); }
.img-placeholder-wakayama { background: linear-gradient(135deg, #6b5c3a 0%, #5a4a2a 100%); }
.img-placeholder-label { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255,255,255,0.6); font-size: 0.84rem; font-weight: 600; }

/* --- WordPress --- */
.wp-block-image img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.step-icon-wrap { flex-shrink: 0; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.step-icon-wrap svg { width: 48px; height: 48px; color: var(--color-primary); }


/* ========================================
   RESPONSIVE: Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
  .section-title { font-size: 1.8rem; }
  .section-padding { padding: 84px 0; }

  .hero { padding-top: calc(var(--header-height) + 56px); padding-bottom: 80px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-lead { font-size: 1.08rem; }
  .hero-cta-area { flex-direction: row; gap: 16px; }
  .hero-stats { padding: 30px; gap: 20px; }
  .stat-number { font-size: 2.1rem; }
  .stat-label { font-size: 0.78rem; }

  .problem-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

  /* 強みセクション：横並び交互レイアウト */
  .strengths-list { gap: 60px; }
  .strength-row {
    flex-direction: row;
    align-items: stretch;
  }
  .strength-row .strength-image {
    width: 45%; height: auto; min-height: 280px;
  }
  .strength-row .strength-body {
    width: 55%; display: flex; flex-direction: column; justify-content: center;
  }
  /* 偶数行は左右反転 */
  .strength-row:nth-child(even) {
    flex-direction: row-reverse;
  }

  /* 旧3カラムグリッド（互換性） */
  .strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .strength-card .strength-image { height: 180px; }

  .case-cards { display: grid; grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .area-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-cta { display: none; }
  .cta-section h2 { font-size: 1.65rem; }
}


/* ========================================
   RESPONSIVE: Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .container { padding: 0 40px; }
  .nav-desktop { display: flex; }
  .header-cta { display: block; }
  .hamburger { display: none; }

  .hero { padding-top: calc(var(--header-height) + 80px); padding-bottom: 90px; }
  .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .hero h1 { font-size: 2.5rem; }
  .hero-stats { margin-top: 0; }

  /* ステップ：タイムライン線を太く */
  .steps { max-width: 720px; margin: 0 auto; }
  .steps::before { left: 43px; }

  .check-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .area-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .area-features { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: repeat(3, 1fr); }

  .strength-card .strength-image { height: 220px; }
  .strength-card .strength-body { padding: 32px; }
  .strength-card .strength-body h3 { font-size: 1.15rem; }

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

@media print {
  .site-header, .floating-cta, .nav-mobile, .nav-overlay { display: none; }
  .hero { padding-top: 20px; }
  body { font-size: 12pt; }
}
