/* ========================================
   area.css — 地域ページ共通スタイル（刷新版）
   ======================================== */

/* ========== ベース ========== */
:root {
  --a-blue: #1e40af;
  --a-blue-light: #dbeafe;
  --a-blue-dark: #1e3a8a;
  --a-green: #059669;
  --a-amber: #92400e;
  --a-amber-bg: #fffbeb;
  --a-text: #1f2937;
  --a-muted: #6b7280;
  --a-border: #e5e7eb;
  --a-bg: #f9fafb;
  --a-radius: 10px;
  --a-wrap: 1100px;
}

main { background: var(--a-bg); }

/* ========== ラッパー共通 ========== */
.a-section { padding: 64px 20px; }
.a-wrap { max-width: var(--a-wrap); margin: 0 auto; }
.a-section-title { text-align: center; margin-bottom: 40px; }
.a-section-label { display: block; font-size: 12px; font-weight: 700; color: var(--a-blue); letter-spacing: 2px; margin-bottom: 8px; }
.a-section-title h2 { font-size: 28px; font-weight: 700; color: var(--a-text); line-height: 1.4; margin: 0; }

@media (max-width: 768px) {
  .a-section { padding: 48px 16px; }
  .a-section-title { text-align: left; }
  .a-section-title h2 { font-size: 22px; }
}

/* ========== ヒーロー ========== */
.a-hero { background: #fff; padding: 56px 20px; }
.a-hero-inner { max-width: var(--a-wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.a-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--a-blue); color: #fff; padding: 7px 16px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.04em; box-shadow: 0 2px 8px rgba(30,64,175,0.25); }
.a-hero h1 { font-size: 32px; font-weight: 700; color: var(--a-text); line-height: 1.35; margin: 0 0 16px; }
.a-hero-sub { font-size: 16px; font-weight: 400; color: #4b5563; display: block; margin-top: 6px; }
.a-hero-lead { font-size: 15px; line-height: 1.8; color: #374151; margin-bottom: 20px; }
.a-hero-checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.a-hero-checks li { font-size: 14px; padding-left: 24px; position: relative; color: #374151; }
.a-hero-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: #10b981; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; }
.a-hero-cta { display: inline-block; background: #ea580c; color: #fff; padding: 16px 32px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 18px; }
.a-hero-cta-label { display: block; font-size: 14px; margin-bottom: 4px; opacity: .9; }
.a-hero-note { font-size: 12px; margin-top: 12px; color: var(--a-muted); }
.a-hero-img { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.a-hero-img img { width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
  .a-hero { padding: 0 0 32px; background: #fff; }
  .a-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .a-hero-img { order: -1; border-radius: 0; box-shadow: none; }
  .a-hero-img img { aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
  .a-hero-badge { position: relative; margin: -14px 0 12px; display: flex; justify-content: center; z-index: 1; border-radius: 0 0 6px 6px; font-size: 11px; padding: 8px 16px; }
  .a-hero-text { padding: 0 16px; }
  .a-hero h1 { font-size: 20px; }
  .a-hero-sub { font-size: 13px; }
  .a-hero-checks { grid-template-columns: 1fr; gap: 4px; }
  .a-hero-cta { display: block; text-align: center; }
  .a-hero-note { text-align: center; }
}

/* ========== 漏水フォーカス ========== */
.a-leak { background: var(--a-amber-bg); padding: 56px 20px; }
.a-leak h2 { font-size: 24px; font-weight: 700; color: var(--a-amber); text-align: center; margin: 0 0 12px; }
.a-leak-lead { font-size: 15px; color: #78350f; line-height: 1.8; text-align: center; margin: 0 0 32px; }
.a-leak-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.a-leak-card { background: #fff; border: 1px solid #fbbf24; border-radius: var(--a-radius); padding: 20px; }
.a-leak-card-tag { display: inline-block; background: #fef3c7; color: var(--a-amber); padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.a-leak-card h3 { font-size: 15px; font-weight: 700; color: var(--a-amber); margin: 0 0 8px; line-height: 1.4; }
.a-leak-card p { font-size: 13px; color: #78350f; line-height: 1.7; margin: 0; }

@media (max-width: 768px) {
  .a-leak-grid { grid-template-columns: 1fr; }
  .a-leak h2 { font-size: 20px; text-align: left; }
  .a-leak-lead { text-align: left; }
}

/* ========== 動画（遅延ロード） ========== */
.a-video { background: #0b1d33; padding: 48px 20px; }
.a-video-inner { max-width: var(--a-wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: center; }
.a-video-text { color: #fff; }
.a-video-text p { font-size: 13px; color: rgba(255,255,255,.7); margin: 0 0 8px; }
.a-video-text h2 { font-size: 22px; font-weight: 700; margin: 0 0 12px; line-height: 1.4; }
.a-video-text .a-video-desc { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.9); margin: 0; }
.a-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--a-radius); overflow: hidden; cursor: pointer; background: #000; }
.a-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.a-video-thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.a-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; background: rgba(255,0,0,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; border: none; cursor: pointer; padding: 0; }
.a-video-play::after { content: ""; border-left: 24px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 4px; }

@media (max-width: 768px) {
  .a-video { padding: 40px 16px; }
  .a-video-inner { grid-template-columns: 1fr; gap: 20px; }
  .a-video-text h2 { font-size: 18px; }
}

/* ========== サービス概要 ========== */
.a-service { background: #fff; padding: 48px 20px; text-align: center; }
.a-service-inner { max-width: 860px; margin: 0 auto; }
.a-service h2 { font-size: 22px; font-weight: 700; color: var(--a-text); margin: 0 0 16px; }
.a-service p { font-size: 15px; color: #374151; line-height: 1.9; margin: 0 0 20px; }
.a-service-link { display: inline-block; background: #0b1d33; color: #f39c12; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; }

@media (max-width: 768px) { .a-service { text-align: left; } }

/* ========== ピックアップ事例 ========== */
.a-case { background: #fff; padding: 56px 20px; }
.a-case-inner { max-width: var(--a-wrap); margin: 0 auto; }
.a-case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.a-case-tag { display: inline-block; padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; }
.a-case-tag-loc { background: var(--a-blue-light); color: var(--a-blue); }
.a-case-tag-type { background: #fef3c7; color: var(--a-amber); }
.a-case-tag-date { background: #f3f4f6; color: #374151; }
.a-case h3 { font-size: 22px; font-weight: 700; color: var(--a-text); line-height: 1.4; margin: 0 0 12px; }
.a-case-summary { font-size: 15px; color: #374151; line-height: 1.8; margin: 0 0 36px; }

/* ビフォーアフター */
.a-ba { margin-bottom: 32px; }
.a-ba-grid { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 12px; align-items: center; margin-bottom: 16px; }
.a-ba-label { font-size: 13px; font-weight: 700; text-align: center; padding: 4px; border-radius: 4px; margin-bottom: 8px; }
.a-ba-label.before { background: #fef2f2; color: #dc2626; }
.a-ba-label.after { background: #f0fdf4; color: #059669; }
.a-ba-img { border-radius: 8px; overflow: hidden; border: 1px solid var(--a-border); }
.a-ba-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.a-ba-arrow { text-align: center; font-size: 28px; color: #9ca3af; }
.a-ba-desc { font-size: 14px; color: #374151; line-height: 1.8; background: var(--a-bg); padding: 16px; border-radius: 8px; }

@media (max-width: 768px) {
  .a-ba-grid { grid-template-columns: 1fr; }
  .a-ba-arrow { transform: rotate(90deg); }
  .a-ba-img img { height: 180px; }
}

/* 作業工程 */
.a-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.a-step { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; background: var(--a-bg); border-radius: var(--a-radius); padding: 16px; }
.a-step-img img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; display: block; }
.a-step-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--a-blue); background: var(--a-blue-light); padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.a-step h4 { font-size: 15px; font-weight: 700; color: var(--a-text); margin: 0 0 6px; }
.a-step p { font-size: 13px; color: #374151; line-height: 1.7; margin: 0; }

@media (max-width: 768px) {
  .a-step { grid-template-columns: 1fr; }
  .a-step-img { display: block; }
  .a-step-img img { height: 200px; }
}

/* 費用 */
.a-cost { background: var(--a-bg); border-radius: var(--a-radius); padding: 20px; margin-bottom: 20px; }
.a-cost-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
.a-cost-label { font-size: 12px; color: var(--a-muted); margin-bottom: 4px; }
.a-cost-value { font-size: 18px; font-weight: 700; color: var(--a-text); }
.a-cost-value.hl { color: var(--a-blue); }
.a-cost-value.ins { color: var(--a-green); }

@media (max-width: 600px) { .a-cost-grid { grid-template-columns: 1fr 1fr; } }

/* 保険サポートボックス */
.a-ins-box { border: 2px solid #10b981; border-radius: var(--a-radius); padding: 20px; background: #f0fdf4; margin-bottom: 20px; }
.a-ins-badge { display: inline-block; background: #10b981; color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.a-ins-box p { font-size: 14px; color: #374151; line-height: 1.7; margin: 0 0 12px; }
.a-ins-box a { color: var(--a-blue); }
.a-ins-links { background: #fff; border: 1px solid #d1fae5; border-radius: 6px; padding: 12px 14px; }
.a-ins-links p { font-size: 13px; font-weight: 700; color: #065f46; margin: 0 0 6px; }
.a-ins-links a { display: block; font-size: 13px; color: var(--a-blue); margin: 4px 0; }

/* 保険申請フロー */
.a-flow { border: 2px solid var(--a-blue); border-radius: var(--a-radius); padding: 24px; background: #fff; }
.a-flow h4 { font-size: 15px; font-weight: 700; color: var(--a-blue); text-align: center; margin: 0 0 20px; }
.a-flow-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 16px; }
.a-flow-step { background: var(--a-blue-light); border-radius: 8px; padding: 14px 10px; text-align: center; }
.a-flow-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--a-blue); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.a-flow-step h5 { font-size: 13px; font-weight: 700; color: var(--a-blue-dark); margin: 0 0 4px; }
.a-flow-step p { font-size: 11px; color: #374151; line-height: 1.5; margin: 0; }
.a-flow-arrow { font-size: 20px; color: #93c5fd; text-align: center; }
.a-flow-msg { background: #eff6ff; border-radius: 8px; padding: 14px 16px; font-size: 14px; color: #1e3a8a; line-height: 1.7; margin: 0; text-align: center; }

@media (max-width: 768px) {
  .a-flow-steps { grid-template-columns: 1fr; }
  .a-flow-arrow { transform: rotate(90deg); }
  .a-flow-msg { text-align: left; }
}

/* ========== 事例カード一覧 ========== */
.a-cases { background: var(--a-bg); padding: 56px 20px; }
.a-cases-lead { font-size: 15px; color: #374151; line-height: 1.8; text-align: center; margin-bottom: 32px; }
.a-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.a-card { background: #fff; border: 1px solid var(--a-border); border-radius: var(--a-radius); overflow: hidden; }
.a-card a { display: block; text-decoration: none; color: inherit; }
.a-card-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.a-card-body { padding: 16px; }
.a-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.a-card-tag { font-size: 11px; padding: 3px 8px; border-radius: 10px; background: #f3f4f6; color: #374151; }
.a-card-tag-primary { background: var(--a-blue-light); color: var(--a-blue); }
.a-card h3 { font-size: 14px; font-weight: 700; color: var(--a-text); line-height: 1.5; margin: 0 0 6px; }
.a-card p { font-size: 13px; color: var(--a-muted); line-height: 1.6; margin: 0 0 10px; }
.a-card-more { font-size: 13px; color: var(--a-blue); font-weight: 600; text-align: right; }
.a-cases-more { text-align: center; margin-top: 32px; }
.a-cases-more a { display: inline-block; background: var(--a-blue); color: #fff; padding: 14px 36px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 15px; }

@media (max-width: 768px) {
  .a-cases-lead { text-align: left; }
  .a-cards { grid-template-columns: 1fr; }
}

/* ========== エリア情報 ========== */
.a-area { background: #fff; padding: 56px 20px; }
.a-risk { background: var(--a-blue-light); border: 1px solid #93c5fd; border-radius: var(--a-radius); padding: 20px; margin-bottom: 28px; }
.a-risk h3 { font-size: 16px; font-weight: 700; color: var(--a-blue); margin: 0 0 10px; }
.a-risk p { font-size: 14px; color: #1e3a8a; line-height: 1.8; margin: 0; }
.a-area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.a-area-card { background: var(--a-bg); border: 1px solid var(--a-border); border-radius: 8px; padding: 16px; }
.a-area-card h3 { font-size: 15px; font-weight: 700; color: var(--a-text); margin: 0 0 6px; }
.a-area-card p { font-size: 13px; color: #374151; line-height: 1.7; margin: 0; }
.a-area-note { text-align: center; font-size: 14px; color: var(--a-muted); margin-top: 24px; line-height: 1.8; }

@media (max-width: 768px) {
  .a-area-grid { grid-template-columns: 1fr; }
  .a-area-note { text-align: left; }
}

/* ========== FAQ ========== */
.a-faq { background: var(--a-bg); padding: 56px 20px; }
.a-faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.a-faq-item { background: #fff; border: 1px solid var(--a-border); border-radius: var(--a-radius); padding: 20px; }
.a-faq-item.local { border-left: 4px solid #10b981; }
.a-faq-q { font-size: 16px; font-weight: 700; color: var(--a-text); margin: 0 0 10px; }
.a-faq-a { font-size: 14px; color: #374151; line-height: 1.9; margin: 0; }
.a-faq-a a { color: var(--a-blue); }

/* ========== CTA ========== */
.a-cta { text-align: center; padding: 64px 20px; background: #f3f4f6; color: #1f2937; }
.a-cta h2 { font-size: 28px; font-weight: 700; margin: 0 0 16px; color: #1f2937; line-height: 1.5; }
.a-cta p { font-size: 15px; margin: 0 0 32px; color: #374151; }
.a-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.a-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 17px; }
.a-cta-btn-tel { background: var(--a-blue); color: #fff; }
.a-cta-btn-line { background: #06C755; color: #fff; }
.a-cta-btn-sub { background: transparent; color: #374151; border: 2px solid #d1d5db; font-size: 15px; padding: 12px 24px; }
.a-cta-note { font-size: 13px; color: #6b7280; }
.a-cta-links { display: none; }
.a-cta-links a { color: var(--a-blue); text-decoration: underline; margin: 0 12px; font-size: 14px; }

@media (max-width: 768px) {
  .a-cta { padding: 48px 16px; }
  .a-cta h2 { font-size: 22px; }
  .a-cta-btns { flex-direction: column; align-items: stretch; }
  .a-cta-btn { justify-content: center; }
}

.a-case-section-title { font-size: 17px; font-weight: 700; color: #1f2937; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid #1e40af; }

/* ヒーロー無料訴求 */
.a-hero-free { font-size: 15px; font-weight: 700; color: #1e40af; background: #dbeafe; border: 2px solid #93c5fd; border-radius: 8px; padding: 10px 16px; text-align: center; margin-bottom: 12px; }
.a-hero-free strong { color: #dc2626; font-size: 18px; }

/* ========== Before/After事例カード（case-card）========== */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--a-border); }
.case-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #1f2937; }
.case-ba-item { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.case-ba-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-ba-label { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px; border-radius: 4px; }
.case-ba-label.before { background: #374151; color: #fff; }
.case-ba-label.after { background: #2a6e3f; color: #fff; }
.case-body { padding: 20px; }
.case-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #1a5276; background: #e8f4f8; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.case-title { font-size: 15px; font-weight: 700; color: var(--a-text); margin: 0 0 8px; line-height: 1.5; }
.case-desc { font-size: 12px; color: var(--a-muted); line-height: 1.7; margin: 0 0 14px; }
.case-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #1a5276; text-decoration: none; }

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