/* エコキュート型レイアウト共通スタイル(ec- 接頭辞)。業務用エアコンページ用 */
.ec-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 32px; border: 2px solid transparent; border-radius: 60px; font-size: 17px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; transition: 0.3s ease-in-out; }
.ec-btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.ec-btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--color-accent) 35%, transparent); }
.ec-btn-primary:hover { background: #fff; border-color: #fff; color: #111; }
.ec-btn-primary.on-light:hover { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }

/* ① ファーストビュー */
.ec-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.ec-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ec-hero::before { position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, #000 58%, transparent); content: ""; }
.ec-hero-inner { display: flex; min-height: 560px; flex-direction: column; justify-content: center; padding: 96px 0; }
.ec-hero-kicker { font-family: var(--font-heading); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: #fff; }
.ec-hero h1 { max-width: 820px; margin-top: 14px; font-family: var(--font-heading); font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.4; }
.ec-hero-lead { max-width: 640px; margin-top: 20px; font-size: 18px; line-height: 1.85; }
.ec-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.ec-hero-actions .ec-btn { min-height: 64px; padding: 8px 44px; font-size: 18px; }
.ec-hero-caption { position: absolute; right: 24px; bottom: 16px; margin: 0; padding: 2px 10px; border-radius: 4px; background: color-mix(in srgb, #000 45%, transparent); color: #fff; font-size: 11px; line-height: 1.6; }

/* ② お悩み */
.ec-center { text-align: center; }
.ec-center .section-title { margin-bottom: 0; }
.ec-worry-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 36px 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.ec-worry { display: flex; flex: 0 1 200px; flex-direction: column; align-items: center; }
.ec-bubble { position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; width: 100%; padding: 16px 14px; background: #fff; border: 2px solid var(--color-accent); border-radius: 20px; font-size: 15px; font-weight: 700; line-height: 1.6; text-align: center; }
.ec-bubble::after { position: absolute; bottom: -12px; left: 50%; width: 20px; height: 20px; background: #fff; border-right: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); content: ""; transform: translateX(-50%) rotate(45deg); }
.ec-face { display: grid; flex: none; place-items: center; width: 88px; height: 88px; margin-top: 26px; border-radius: 50%; background: color-mix(in srgb, var(--ec-tone, var(--color-accent)) 18%, #fff); border: 2px solid color-mix(in srgb, var(--ec-tone, var(--color-accent)) 45%, #fff); font-size: 42px; line-height: 1; }
.ec-face svg { stroke: var(--ec-tone, var(--color-accent)); }
.ec-face svg [fill] { fill: var(--ec-tone, var(--color-accent)); }
.ec-worry:nth-child(1) { --ec-tone: #0284c7; }
.ec-worry:nth-child(2) { --ec-tone: #db2777; }
.ec-worry:nth-child(3) { --ec-tone: #16a34a; }
.ec-worry:nth-child(4) { --ec-tone: #eab308; }
.ec-worry:nth-child(5) { --ec-tone: #7c3aed; }
.ec-worry-msg { margin-top: 56px; font-family: var(--font-heading); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; line-height: 1.6; }
.ec-worry-msg mark { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--color-accent) 40%, transparent) 62%); color: inherit; }
.ec-center .ec-btn { margin-top: 28px; }

/* ③ 解決の流れ */
.ec-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 48px 0 0; padding: 0; list-style: none; }
.ec-flow li { position: relative; padding: 28px 20px 26px; background: #fff; border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); border-radius: 24px; text-align: center; box-shadow: 0 6px 24px color-mix(in srgb, #000 5%, transparent); }
.ec-flow li:not(:last-child)::after { position: absolute; top: 50%; right: -28px; color: var(--color-accent); content: "→"; font-size: 26px; font-weight: 700; line-height: 1; transform: translateY(-50%); }
.ec-step-no { font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--color-text-muted); }
.ec-step-label { margin-top: 8px; font-family: var(--font-heading); font-size: 30px; font-weight: 700; line-height: 1.3; }
.ec-step-title { margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--color-accent); font-size: 15px; font-weight: 700; line-height: 1.6; }
.ec-flow p.ec-step-text { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--color-text-muted); text-align: left; }

/* ④ メーカー */
.ec-maker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.ec-maker { display: flex; flex-direction: column; align-items: center; padding: 32px 24px 28px; background: #fff; border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent); border-radius: 24px; text-align: center; box-shadow: 0 6px 24px color-mix(in srgb, #000 5%, transparent); }
.ec-maker-label { font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.ec-maker-name { margin-top: 6px; font-family: var(--font-heading); font-size: 24px; font-weight: 700; line-height: 1.4; }
.ec-maker-sub { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--color-text-muted); }
.ec-maker-scope { width: 100%; margin-top: 16px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent); font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.ec-maker-price { margin-top: 12px; font-family: var(--font-heading); font-size: 38px; font-weight: 700; line-height: 1.2; }
.ec-maker-price.is-text { font-size: 28px; }
.ec-maker-price small { margin-left: 2px; font-size: 18px; }
.ec-maker .ec-btn { width: 100%; margin-top: 24px; min-height: 52px; padding: 8px 16px; font-size: 15px; }
.ec-maker-note { margin-top: 24px; font-size: 14px; line-height: 1.8; color: var(--color-text-muted); text-align: center; }

/* ⑤ 無料診断 */
section.sd-section.ec-diag { background: color-mix(in srgb, var(--color-accent) 16%, var(--color-bg)); }
section.sd-section.ec-diag.ec-center { background: color-mix(in srgb, var(--color-accent) 7%, var(--color-bg)); }
section.sd-section.ec-center:has(> .container > .ec-flow) { background: color-mix(in srgb, var(--color-accent) 7%, var(--color-bg)); }
.ec-diag .section-title { margin-bottom: 20px; }
.ec-diag-lead { font-size: 15px; line-height: 1.8; color: var(--color-text-muted); }
.ec-diag-card { max-width: 1001px; margin: 40px auto 0; padding: 8px 40px 40px; background: #fff; border-radius: 16px; box-shadow: 0 6px 24px color-mix(in srgb, #000 6%, transparent); text-align: left; }
.ec-diag-q { min-width: 0; margin: 0; padding: 28px 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent); }
.ec-diag-q legend { display: block; width: 100%; margin-bottom: 16px; padding: 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
.ec-diag-q legend span { margin-right: 6px; color: var(--color-accent); }
.ec-diag-opts { display: flex; flex-wrap: wrap; gap: 12px; }
.ec-diag-opt { position: relative; }
.ec-diag-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ec-diag-opt span { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 20px; border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent); border-radius: 8px; background: #fff; font-size: 14px; line-height: 1.5; transition: 0.2s ease-in-out; }
.ec-diag-opt span::before { flex: none; width: 14px; height: 14px; border: 1.5px solid color-mix(in srgb, var(--color-text) 55%, transparent); border-radius: 50%; content: ""; transition: 0.2s ease-in-out; }
.ec-diag-opt:hover span { border-color: var(--color-accent); }
.ec-diag-opt input:checked + span { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, #fff); font-weight: 700; }
.ec-diag-opt input:checked + span::before { border-color: var(--color-accent); background: var(--color-accent); box-shadow: inset 0 0 0 3px #fff; }
.ec-diag-opt input:focus-visible + span { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.ec-diag-summary { margin-top: 28px; padding: 20px 24px; border-radius: 4px; background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg)); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.ec-diag-card .ec-btn { margin-top: 24px; }

/* 費用の考え方 */
.ec-cost { margin-top: 40px; }
.ec-cost-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.ec-cost-block { position: relative; display: flex; flex-direction: column; align-items: center; padding: 24px 20px; border: 2px solid var(--ec-tone); background: color-mix(in srgb, var(--ec-tone) 10%, #fff); text-align: center; }
.ec-cost-block:first-child { border-radius: 24px 0 0 24px; }
.ec-cost-block:last-child { border-radius: 0 24px 24px 0; border-style: dashed; }
.ec-cost-block + .ec-cost-block { margin-left: -2px; }
.ec-cost-block:not(:last-child)::after { position: absolute; top: 50%; right: -16px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ec-tone); color: #fff; content: "＋"; font-size: 16px; font-weight: 700; line-height: 1; transform: translateY(-50%); }
.ec-cost-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ec-tone); }
.ec-cost-icon svg { stroke: #fff; }
.ec-cost-name { margin-top: 12px; font-family: var(--font-heading); font-size: 20px; font-weight: 700; line-height: 1.4; }
.ec-cost-tag { margin-top: 8px; padding: 2px 12px; border-radius: 60px; background: var(--ec-tone); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.6; }
.ec-cost-total { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 0; padding: 16px 20px; border-radius: 16px; background: var(--color-text); color: var(--color-bg); font-size: 15px; font-weight: 700; line-height: 1.6; text-align: center; }
.ec-cost-total span { color: color-mix(in srgb, var(--color-accent) 70%, #fff); }
.ec-cost-table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent); border-radius: 16px; background: #fff; }
.ec-cost-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.75; text-align: left; }
.ec-cost-table th, .ec-cost-table td { padding: 16px 20px; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent); vertical-align: top; }
.ec-cost-table tbody tr:last-child th, .ec-cost-table tbody tr:last-child td { border-bottom: 0; }
.ec-cost-table thead th { background: color-mix(in srgb, var(--color-accent) 10%, #fff); font-size: 13px; font-weight: 700; color: var(--color-text); white-space: nowrap; }
.ec-cost-table tbody th { width: 150px; font-family: var(--font-heading); font-size: 15px; font-weight: 700; white-space: nowrap; }
.ec-cost-table tbody th::before { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--ec-tone); content: ""; }
.ec-cost-badge { display: inline-block; padding: 2px 12px; border-radius: 60px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.ec-cost-badge.is-always { background: var(--color-accent); color: var(--color-on-accent); }
.ec-cost-badge.is-case { background: color-mix(in srgb, var(--color-text) 10%, #fff); color: var(--color-text); }

/* 結びが大切にしていること */
.ec-approach-lead { max-width: 640px; margin: 16px auto 0; font-size: 15px; line-height: 1.9; color: var(--color-text-muted); }
.ec-approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.ec-approach-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 28px 28px 32px; background: #fff; border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); border-radius: 24px; box-shadow: 0 6px 24px color-mix(in srgb, #000 5%, transparent); transition: 0.3s ease-in-out; }
.ec-approach-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px color-mix(in srgb, #000 9%, transparent); }
.ec-approach-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ec-approach-icon { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent); }
.ec-approach-icon svg { stroke: #fff; }
.ec-approach-no { font-family: var(--font-heading); font-size: 44px; font-weight: 700; font-style: italic; line-height: 1; color: color-mix(in srgb, var(--color-accent) 35%, transparent); }
.ec-approach-title { margin-top: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--color-accent); font-family: var(--font-heading); font-size: 20px; font-weight: 700; line-height: 1.5; }
.ec-approach-text { margin-top: 14px; font-size: 14px; line-height: 1.85; color: var(--color-text-muted); }

@media (max-width: 1024px) {
  .ec-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .ec-flow li:nth-child(2)::after { display: none; }
  .ec-approach-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .ec-approach-card { padding: 24px 22px 28px; }
}
@media (max-width: 768px) {
  .ec-hero-inner { min-height: 480px; padding: 72px 0; }
  .ec-hero-lead { margin-top: 14px; font-size: 16px; }
  .ec-hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .ec-hero-actions .ec-btn { min-height: 60px; padding: 8px 20px; font-size: 17px; }
  .ec-hero-caption { right: 12px; bottom: 8px; }
  .ec-worry-grid { gap: 32px 16px; margin-top: 36px; }
  .ec-worry { flex: 0 1 calc(50% - 8px); }
  .ec-bubble { padding: 14px 10px; font-size: 14px; }
  .ec-face { width: 72px; height: 72px; font-size: 34px; }
  .ec-worry-msg { margin-top: 44px; }
  .ec-flow { grid-template-columns: 1fr; gap: 44px; margin-top: 36px; }
  .ec-flow li:not(:last-child)::after { display: block; top: auto; right: auto; bottom: -36px; left: 50%; content: "↓"; transform: translateX(-50%); }
  .ec-maker-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .ec-diag-card { margin-top: 28px; padding: 4px 20px 28px; }
  .ec-diag-q { padding: 22px 0; }
  .ec-diag-opts { flex-direction: column; gap: 10px; }
  .ec-diag-opt span { display: flex; width: 100%; }
  .ec-diag-card .ec-btn { width: 100%; }
  .ec-cost { margin-top: 28px; }
  .ec-cost-stack { grid-template-columns: 1fr; gap: 28px; }
  .ec-cost-block, .ec-cost-block:first-child, .ec-cost-block:last-child { border-radius: 20px; }
  .ec-cost-block + .ec-cost-block { margin-left: 0; }
  .ec-cost-block:not(:last-child)::after { top: auto; right: auto; bottom: -22px; left: 50%; transform: translateX(-50%); }
  .ec-cost-total { flex-direction: column; gap: 4px; }
}
