/*
Theme Name: Konno Toso
Theme URI: https://konnotoso.info
Author: 今野塗装
Description: 横浜市鶴見区の外壁塗装専門店「今野塗装」公式WordPressテーマ。東京23区＋神奈川広域対応・地域密着・自社施工・最長10年保証。LP型トップページ＋60秒シミュレーター＋LINE連携を標準装備。
Version: 1.4.0
License: GPL v2 or later
Text Domain: konnotoso
*/

/*
改修履歴:
- v1.4.0 (2026-05-12): アステック認定店 12.9% 希少性訴求ヒーロー callout を #astec セクションに追加／JSON-LD の award を array 化し「全国24,100店中3,100店=12.9%のみ」を明示、hasCredential に description / credentialCategory 追加
- v1.3.1 (2026-05-10): wp_enqueue_style/script に filemtime() バージョン付与（ブラウザキャッシュ自動バスト）／AIチャットボット応答更新（対応エリア3層構造・大田区出身・料金intro一般化）
- v1.3.0 (2026-05-10): 対応エリアを東京23区＋神奈川広域に拡張（JSON-LD areaServed 70エリア・FAQ 3層構造化・footer tagline 拡張・About 代表大田区出身明示）
- v1.2.x (2026-05-09): LINE oaMessage 連携、折り返し希望ミニフォーム、管理者スパム対策スキップ、FVヒーロー電話CTAボタン
- v1.1.0: 初期実装
*/

:root {
  --navy: #0F2A4A;
  --navy-light: #1e3a5f;
  --navy-dark: #081a30;
  --gold: #d99a2b;
  --gold-light: #e8b34a;
  --gold-soft: #fef5e0;
  --bg: #fafaf7;
  --card: #ffffff;
  --text: #1f2937;
  --text-soft: #6b7280;
  --border: #e5e7eb;
  --line: #06C755;
  --red: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.05);
  --shadow: 0 4px 16px rgba(15, 42, 74, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 42, 74, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.02em;
}
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

/* ===== ヘッダー ===== */
.site-header {
  background: rgba(15, 42, 74, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: padding 0.25s, background 0.25s;
}
.site-header.scrolled { padding: 8px 24px; background: rgba(15, 42, 74, 0.97); box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.site-header .inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-header .logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.site-header .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(217, 154, 43, 0.35);
  flex-shrink: 0;
}
.site-header .logo-mark svg { color: var(--navy); }
.site-header .logo { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 1.2rem; letter-spacing: 0.05em; line-height: 1; }
.site-header .logo .tagline { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.75; letter-spacing: 0.1em; margin-top: 4px; font-family: 'Noto Sans JP', sans-serif; }
.site-header .logo .accent { color: var(--gold-light); }

.site-nav-wrap { display: flex; align-items: center; gap: 24px; }
.site-header nav { display: flex; gap: 22px; font-size: 0.9rem; }
.site-header nav ul { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; }
.site-header nav a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; position: relative; padding: 4px 0; }
.site-header nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.site-header nav a:hover { color: var(--gold-light); }
.site-header nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--line); color: #fff;
  padding: 8px 16px; border-radius: 24px;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(6, 199, 85, 0.5); color: #fff; }

.menu-toggle { display: none; background: transparent; border: none; color: #fff; cursor: pointer; padding: 8px; border-radius: 6px; transition: background 0.15s; }
.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }
body.menu-open .menu-toggle .icon-open { display: none; }
body.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta .label-full { display: none; }
  .header-cta .label-short { display: inline; }
  .header-cta { padding: 7px 12px; font-size: 0.78rem; gap: 4px; }
}
@media (max-width: 480px) {
  .header-cta { padding: 6px 10px; font-size: 0.72rem; }
  #mobile-menu {
    position: fixed; top: 0; right: 0; width: 88%; max-width: 320px; height: 100vh;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    transform: translateX(100%); transition: transform 0.3s ease-out;
    z-index: 200; padding: 80px 28px 28px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 4px;
  }
  body.menu-open #mobile-menu { transform: translateX(0); }
  #mobile-menu a { color: #fff; text-decoration: none; padding: 14px 18px; font-size: 1rem; border-radius: 8px; transition: background 0.15s; display: flex; align-items: center; gap: 12px; }
  #mobile-menu a:hover { background: rgba(255,255,255,0.08); }
  #mobile-menu a .arrow { margin-left: auto; opacity: 0.5; }
  #mobile-menu .divider { height: 1px; background: rgba(255,255,255,0.1); margin: 14px 0; }
  #mobile-menu .menu-cta { margin-top: 8px; background: var(--line); text-align: center; justify-content: center; font-weight: 700; }
  #mobile-menu .menu-cta-tel { background: var(--red); }
  .menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; backdrop-filter: blur(2px); }
  body.menu-open .menu-overlay { display: block; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 901px) {
  #mobile-menu, .menu-overlay { display: none; }
  .header-cta .label-short { display: none; }
}

/* ===== ヒーロー ===== */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(217, 154, 43, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(30, 58, 95, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 90px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 動画背景があるとき */
.hero.hero-has-video { background: #0F2A4A; }
.hero-video-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-video-toggle {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  pointer-events: auto;
  transition: background 0.15s;
  backdrop-filter: blur(6px);
}
.hero-video-toggle:hover { background: rgba(0,0,0,0.7); }
.hero-has-video > * { position: relative; z-index: 1; }
.hero-has-video .hero-video-wrap { z-index: 0; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h20v20H0zM20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 500; color: var(--gold-light); letter-spacing: 0.2em; margin-bottom: 18px; text-transform: uppercase; }
.hero h1 { font-size: 2.5rem; line-height: 1.4; font-weight: 900; margin-bottom: 20px; }
.hero h1 .em { background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 1.05rem; opacity: 0.95; margin-bottom: 32px; line-height: 1.8; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero .badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero .badge { background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.15); }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 50px;
  text-decoration: none; font-weight: bold; font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.hero .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.3); }
.hero .btn-line { background: var(--line); color: #fff; }
.hero .btn-form { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); }
@media (max-width: 768px) {
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 1.7rem; }
  .hero .sub { font-size: 0.95rem; }
}

/* ===== 信頼の数字 ===== */
.trust-bar {
  background: var(--card); box-shadow: var(--shadow);
  max-width: 1100px; margin: -40px auto 0;
  border-radius: var(--radius-lg); padding: 28px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  position: relative; z-index: 2;
}
.trust-item { text-align: center; padding: 6px; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-num { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 1.8rem; font-weight: 900; color: var(--navy); line-height: 1; }
.trust-num .unit { font-size: 0.9rem; color: var(--text-soft); margin-left: 2px; font-weight: 500; }
.trust-label { font-size: 0.8rem; color: var(--text-soft); margin-top: 6px; }
@media (max-width: 768px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); margin: -30px 16px 0; padding: 20px 12px; gap: 16px 0; }
  .trust-item + .trust-item { border-left: none; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-top: 1px solid var(--border); padding-top: 16px; }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-num { font-size: 1.5rem; }
}

/* ===== セクション共通 ===== */
.site-main { max-width: 1000px; margin: 0 auto; padding: 70px 20px; }
section { margin-bottom: 80px; }
section h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 12px; position: relative; }
section h2::after { content: ''; display: block; width: 56px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin: 16px auto 0; border-radius: 2px; }
section h2 .small { display: block; font-size: 0.85rem; color: var(--text-soft); font-weight: normal; margin-top: 4px; }
section .lead { text-align: center; color: var(--text-soft); font-size: 0.95rem; margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }

.reveal { opacity: 1; transform: none; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== ごあいさつ ===== */
.intro { background: var(--card); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow); max-width: 780px; margin: 0 auto; }
.intro p { margin-bottom: 18px; }
.intro p:last-child { margin-bottom: 0; }
.intro .worry-list { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 18px 24px; margin: 24px 0; border-radius: 8px; list-style: none; }
.intro .worry-list li { padding: 4px 0; }
.intro .worry-list li::before { content: "・"; color: var(--gold); font-weight: bold; margin-right: 4px; }
.intro strong { color: var(--navy); }

/* ===== お悩みカード ===== */
.worry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.worry-card { background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; border-top: 3px solid var(--gold); }
.worry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.worry-card .ico { width: 48px; height: 48px; background: var(--gold-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--gold); }
.worry-card h3 { color: var(--navy); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.worry-card p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; }
.worry-summary { margin-top: 32px; text-align: center; color: var(--text-soft); font-size: 0.95rem; }

/* ===== 選ばれる理由 ===== */
.reasons { display: grid; gap: 20px; }
.reason-item { background: var(--card); border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow); display: flex; gap: 24px; align-items: flex-start; transition: transform 0.25s; }
.reason-item:hover { transform: translateX(6px); }
.reason-num { flex-shrink: 0; width: 56px; height: 56px; background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 1.5rem; box-shadow: 0 6px 16px rgba(217, 154, 43, 0.35); }
.reason-item h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.1rem; font-weight: 700; }
.reason-item p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.8; }

/* ===== サービスカード ===== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--gold)); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .ico { width: 44px; height: 44px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.service-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; font-weight: 700; }
.service-card p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.7; }

/* ===== 料金表 ===== */
.price-wrap { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; font-weight: 500; font-size: 0.9rem; letter-spacing: 0.05em; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--gold-soft); }
.price-table .grade { font-weight: 700; color: var(--navy); }
.price-table .recommended { background: linear-gradient(90deg, var(--gold-soft) 0%, transparent 100%); }
.price-table .recommended .grade::before { content: '★ おすすめ'; display: inline-block; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; margin-right: 10px; vertical-align: middle; box-shadow: 0 2px 6px rgba(217,154,43,0.4); }
.price-note { padding: 16px 20px; font-size: 0.85rem; color: var(--text-soft); line-height: 1.8; background: #f9fafc; border-top: 1px solid var(--border); }

/* ===== 工事の流れ ===== */
.flow-timeline { position: relative; padding-left: 28px; }
.flow-timeline::before { content: ''; position: absolute; left: 22px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(to bottom, var(--gold-light) 0%, var(--gold) 50%, var(--navy) 100%); }
.flow-item { position: relative; padding: 18px 0 18px 32px; }
.flow-item .dot { position: absolute; left: -28px; top: 22px; width: 44px; height: 44px; background: #fff; border: 3px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 900; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(217, 154, 43, 0.25); }
.flow-item h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.05rem; font-weight: 700; }
.flow-item p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.8; }

/* ===== お客様の声 ===== */
.testimonial-grid { display: grid; gap: 20px; }
.testimonial { background: var(--card); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow); position: relative; transition: transform 0.25s; }
.testimonial:hover { transform: translateY(-3px); }
.testimonial::before { content: '"'; position: absolute; top: 12px; right: 24px; font-size: 5rem; line-height: 1; color: var(--gold-soft); font-family: serif; }
.testimonial .header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.testimonial .meta { font-size: 0.85rem; color: var(--text-soft); line-height: 1.4; }
.testimonial .meta strong { color: var(--navy); display: block; font-size: 0.95rem; margin-bottom: 2px; }
.testimonial .quote { color: var(--text); line-height: 1.9; position: relative; z-index: 1; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.95rem; }
.testimonial-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 16px; text-align: center; }

/* ===== FAQ ===== */
.faq-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item.open { box-shadow: var(--shadow); }
.faq-q { padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--navy); font-weight: 700; font-size: 1rem; user-select: none; }
.faq-q .q-text { display: flex; gap: 12px; align-items: flex-start; flex: 1; }
.faq-q .q-text::before { content: 'Q'; flex-shrink: 0; width: 28px; height: 28px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.faq-q .arrow { width: 20px; height: 20px; transition: transform 0.25s; color: var(--gold); flex-shrink: 0; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 24px 22px 64px; color: var(--text-soft); font-size: 0.95rem; line-height: 1.9; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== お問い合わせ動線 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 40px; }
.contact-card { background: var(--card); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card.line { border-top: 4px solid var(--line); }
.contact-card.tel { border-top: 4px solid var(--red); }
.contact-card.form { border-top: 4px solid var(--gold); }
.contact-card .recommended-tag { position: absolute; top: 12px; right: 12px; background: var(--line); color: #fff; font-size: 0.7rem; padding: 3px 10px; border-radius: 12px; font-weight: 500; }
.contact-card .icon-circle { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 28px; color: #fff; }
.contact-card.line .icon-circle { background: linear-gradient(135deg, var(--line), #04a247); }
.contact-card.tel .icon-circle { background: linear-gradient(135deg, #ef4444, var(--red)); }
.contact-card.form .icon-circle { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.contact-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.1rem; font-weight: 700; }
.contact-card .desc { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 16px; line-height: 1.6; min-height: 2.4em; }
.contact-card .btn { display: inline-block; padding: 11px 26px; border-radius: 50px; color: #fff; font-weight: 700; font-size: 0.9rem; }
.contact-card.line .btn { background: var(--line); }
.contact-card.tel .btn { background: var(--red); }
.contact-card.form .btn { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); }
.contact-card .hours { font-size: 0.75rem; color: var(--text-soft); margin-top: 8px; }

/* ===== お問い合わせフォーム ===== */
.form-block { background: var(--card); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.form-block h3 { color: var(--navy); margin-bottom: 6px; text-align: center; font-size: 1.3rem; }
.form-block .form-lead { text-align: center; color: var(--text-soft); font-size: 0.9rem; margin-bottom: 24px; }
.form-block form { display: grid; gap: 14px; }
.form-block input, .form-block textarea, .form-block select {
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 1rem; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
  background: #fafafa; width: 100%;
}
.form-block input:focus, .form-block textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px var(--gold-soft); }
.form-block button, .form-block input[type="submit"] {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy); border: none; padding: 16px;
  border-radius: 12px; font-weight: 700; font-size: 1.05rem;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 16px rgba(217, 154, 43, 0.3);
}
.form-block button:hover, .form-block input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(217, 154, 43, 0.4); }
.form-block .form-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 4px; text-align: center; }

/* ===== 一般ページ ===== */
.entry-header { padding: 60px 20px 30px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; text-align: center; }
.entry-header h1 { font-size: 2rem; font-weight: 900; }
.entry-content { background: var(--card); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 30px auto; max-width: 800px; }
.entry-content h2 { color: var(--navy); margin: 24px 0 12px; font-size: 1.4rem; }
.entry-content h2::after { display: none; }
.entry-content h3 { color: var(--navy); margin: 18px 0 10px; font-size: 1.15rem; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 24px; }
.entry-content a { color: var(--navy); }
.entry-content a:hover { color: var(--gold); }
.entry-content blockquote { border-left: 4px solid var(--gold); padding: 12px 20px; margin: 20px 0; background: var(--gold-soft); border-radius: 0 8px 8px 0; }
.entry-content img { border-radius: 8px; margin: 16px 0; }

/* ブログ一覧 */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--gold-soft); }
.post-card .body { padding: 20px 22px; }
.post-card .date { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 6px; }
.post-card h2 { color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--gold); }
.post-card p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.7; }

/* ===== フッター ===== */
.site-footer {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: rgba(255,255,255,0.75);
  padding: 48px 20px 28px;
  text-align: center;
  font-size: 0.85rem;
}
/* 会社情報カード（管理システムのフッター風） */
.footer-company-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.footer-logo {
  height: 60px; width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.footer-company-info { font-size: 12px; line-height: 1.7; min-width: 0; }
.footer-company-name {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 5px;
  margin-bottom: 4px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.footer-tagline {
  font-size: 11.5px;
  color: rgba(203,213,225,0.85);
  margin-bottom: 14px;
  letter-spacing: .5px;
}
.footer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 28px;
  font-size: 11.5px;
  color: #e2e8f0;
}
.footer-info-grid .fi-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  min-width: 0;
}
.footer-info-grid .fi-lbl {
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 2px;
  border-right: 1px solid rgba(255,255,255,0.18);
  padding-right: 8px;
  white-space: nowrap;
  font-size: 10.5px;
}
.footer-info-grid .fi-val {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.footer-info-grid a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.4);
  transition: border-color .15s;
}
.footer-info-grid a:hover { border-bottom-color: #fff; }
.site-footer .footer-links { margin: 18px 0 6px; }
.site-footer .footer-tool-link {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 9px 22px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.site-footer .footer-tool-link:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.site-footer .copyright {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .site-footer { padding: 36px 14px 24px; }
  .footer-company-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
  }
  .footer-logo { justify-self: start; height: 46px; }
  .footer-company-name { font-size: 18px; letter-spacing: 3px; }
  .footer-tagline { font-size: 10.5px; margin-bottom: 12px; }
  .footer-info-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .footer-info-grid .fi-row { grid-template-columns: 50px 1fr; }
  .footer-info-grid .fi-lbl { font-size: 10px; letter-spacing: 1.5px; }
}

/* チャットボット */
#chat-toggle { position: fixed; bottom: 24px; right: 24px; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); border: none; cursor: pointer; font-size: 28px; box-shadow: 0 8px 24px rgba(217, 154, 43, 0.4); z-index: 999; transition: transform 0.2s; }
#chat-toggle:hover { transform: scale(1.05); }
#chat-toggle::after { content: "AI無料相談"; position: absolute; right: 72px; top: 50%; transform: translateY(-50%); background: var(--navy); color: #fff; padding: 5px 12px; border-radius: 6px; font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); }
#chat-window { position: fixed; bottom: 100px; right: 24px; width: 380px; max-width: calc(100vw - 48px); height: 540px; max-height: calc(100vh - 140px); background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.22); display: none; flex-direction: column; overflow: hidden; z-index: 999; }
#chat-window.open { display: flex; }
#chat-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; padding: 16px 18px; font-weight: 700; }
#chat-header .sub { font-size: 0.75rem; opacity: 0.85; font-weight: 400; }
#chat-messages { flex: 1; overflow-y: auto; padding: 16px; background: #f7f7fa; }
.msg { margin-bottom: 12px; padding: 11px 15px; border-radius: 14px; max-width: 80%; white-space: pre-wrap; word-wrap: break-word; line-height: 1.6; font-size: 14px; }
.msg.user { background: var(--navy); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.msg.bot { background: #fff; color: var(--text); margin-right: auto; border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.msg.bot.thinking { color: var(--text-soft); font-style: italic; }
#chat-input-area { display: flex; padding: 12px; gap: 8px; border-top: 1px solid var(--border); background: #fff; }
#chat-input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 22px; font-size: 14px; outline: none; font-family: inherit; }
#chat-input:focus { border-color: var(--gold); }
#chat-send { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); border: none; padding: 0 22px; border-radius: 22px; cursor: pointer; font-size: 14px; font-weight: 700; }
#chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; background: #f7f7fa; }
.quick-replies button { background: #fff; border: 1px solid var(--gold); color: var(--navy); padding: 7px 13px; border-radius: 16px; font-size: 12px; cursor: pointer; transition: background 0.15s; font-family: inherit; }
.quick-replies button:hover { background: var(--gold-soft); }

/* CTAバナー */
#cta-banner { position: fixed; left: 0; right: 0; bottom: 0; display: none; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); z-index: 998; }
#cta-banner .cta-row { display: flex; width: 100%; }
.cta-btn { flex: 1; border: none; color: #fff; padding: 12px 8px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-family: inherit; text-decoration: none; min-height: 68px; transition: filter 0.15s; }
.cta-btn:hover { filter: brightness(1.08); color: #fff; }
.cta-line { background: linear-gradient(135deg, var(--line) 0%, #04a247 100%); }
.cta-phone { background: linear-gradient(135deg, #ef4444 0%, var(--red) 100%); }
.cta-btn .icon { font-size: 26px; flex-shrink: 0; }
.cta-btn .text-block { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.cta-btn .label { font-size: 0.7rem; opacity: 0.95; }
.cta-btn .main { font-size: 1rem; font-weight: 700; letter-spacing: 0.5px; margin-top: 2px; }
.cta-btn .sub { font-size: 0.65rem; opacity: 0.9; margin-top: 2px; }
.cta-phone .icon { animation: phone-shake 2s infinite; }
@keyframes phone-shake { 0%,90%,100% { transform: rotate(0); } 92%,96% { transform: rotate(-12deg); } 94%,98% { transform: rotate(12deg); } }
@media (max-width: 768px) { #cta-banner { display: block; } #chat-toggle { bottom: 84px; } #chat-window { bottom: 158px; height: calc(100vh - 200px); } body { padding-bottom: 72px; } }
@media (min-width: 769px) { #cta-banner { display: block; left: 24px; right: auto; bottom: 24px; max-width: 460px; background: transparent; box-shadow: none; } #cta-banner .cta-row { gap: 8px; } .cta-btn { border-radius: 50px; padding: 11px 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.18); min-height: 60px; } .cta-btn .main { font-size: 0.95rem; } }

#phone-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 1100; padding: 20px; backdrop-filter: blur(4px); }
#phone-modal.hidden { display: none; }
#phone-modal .modal-card { background: #fff; border-radius: 18px; max-width: 380px; width: 100%; padding: 32px 28px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.4); animation: modal-pop 0.25s ease-out; }
@keyframes modal-pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#phone-modal .icon-circle
/* ロゴ画像対応 */
.logo-image-wrap { padding: 4px 0; }
.custom-logo-img { max-height: 56px; width: auto; height: auto; display: block; }
.site-header.scrolled .custom-logo-img { max-height: 44px; transition: max-height 0.25s; }
@media (max-width: 768px) { .custom-logo-img { max-height: 40px; } }

/* ===== 施工事例 ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}
.case-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--gold-soft); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-thumb-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; opacity: 0.3; }
.case-body { padding: 18px 20px; }
.case-area { display: inline-block; font-size: 0.8rem; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.case-card h2 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; line-height: 1.5; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.case-meta span { font-size: 0.75rem; color: var(--text-soft); background: var(--bg); padding: 3px 10px; border-radius: 12px; }

.case-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.case-ba-item { position: relative; border-radius: 12px; overflow: hidden; }
.case-ba-item img { width: 100%; height: auto; display: block; }
.case-ba-label {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; color: #fff;
  z-index: 1;
}
.case-ba-before { background: #6b7280; }
.case-ba-after { background: var(--gold); }
@media (max-width: 600px) { .case-ba { grid-template-columns: 1fr; } }

.case-info-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; border-radius: 8px; overflow: hidden; }
.case-info-table th, .case-info-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.case-info-table th { background: #f9fafc; color: var(--navy); font-weight: 700; width: 30%; font-size: 0.95rem; }
.case-info-table tr:last-child th, .case-info-table tr:last-child td { border-bottom: none; }

/* v1.2.x */
