/* ==========================================================
   와우오더 — 화재방지 멀티 충전 스테이션 페이지 (/fire_protection_multistation)
   ① 왜 필요할까요 (첫 화면): 밝은 회색 바탕 — 실제 매장 충전 사진 두 장 · 흰 카드(실제 보도 제목 + 화재 현장 사진 작게 | 서울 통계)
   ② 매장 충전은 왜 더 위험할까요: 흰 바탕 — 원인 세 가지(글 + 아래에 깐 사진)가 한 점으로 모여 "화재"
      → 선이 다리 문장을 지나 ③ 의 라벨까지 이어진다
   ③ 화재방지 멀티 충전 스테이션: 이전 디자인 그대로(검정 무대 + 점·선 꼬리표 + EVENT 알약)
   색 규칙 — 섹션마다 강조 하나: ① 빨강 #d71900(제목 한 구절 · 통계 55건과 올해 막대)  ② 불꽃 아이콘 주황(화재 상자)  ③ 연하늘(제목 한 구절)
   상단바·푸터·상담바는 메인과 같은 common.css / main.css
   ========================================================== */

/* main.css 의 .page-table section(여백)·.page-table h2(Paperozi 글꼴)보다 이기도록 section.fp-… / 섹션 클래스를 붙여 쓴다 */
.fp__inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 80px; }

/* ---------- 공통 머리 (① ②) ---------- */
.fp-head { margin-bottom: 56px; text-align: center; }
.fp-head__label { margin-bottom: 14px; font-size: 18px; font-weight: 700; line-height: 1.4; color: #6b7280; }
.fp-news .fp-head__title,
.fp-why .fp-head__title {
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: 44px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; color: #171717;
}
.fp-head__title em { font-style: normal; color: #d71900; }      /* ① 의 빨강은 여기 하나 — 주황기 없는 선명한 빨강 */
.fp-head__desc { margin-top: 18px; font-size: 19px; line-height: 1.6; color: #555; }

/* ---------- ① 왜 필요할까요 (첫 화면 — 고정 상단바 88px 만큼 내린다) ---------- */
section.fp-news { padding: 184px 0 140px; background: #f3f5f8; color: #171717; }

/* 실제 매장 사진 두 장(위) · 보도 | 통계 흰 카드(아래, 같은 너비 — 사진 사이 틈과 카드 사이 틈이 가운데 한 줄).
   두 카드 모두 "회색 라벨 → 내용 → 맨 아래 출처" 순서 */
.fp-press,
.fp-stat { padding: 32px 36px; border-radius: 22px; background: #fff; }
.fp-press .fp-press__label,
.fp-stat__pre { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; color: #6b7280; }

/* 실제 매장 사진 두 장 — 같은 크기 4:3 */
.fp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.fp-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.fp-photos figcaption { grid-column: 1 / -1; margin-top: 2px; text-align: center; font-size: 13.5px; line-height: 1.4; color: #8a919c; }

/* 보도 제목 | 서울 통계 */
.fp-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.fp-press { display: flex; flex-direction: column; }
.fp-press .fp-press__label { margin-bottom: 4px; }
.fp-press ul { margin-bottom: 20px; list-style: none; }
.fp-press li { display: grid; grid-template-columns: 104px 1fr; column-gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid #eef0f3; }
.fp-press li img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }   /* 화재 현장 사진 작게 */
.fp-press li:first-child { border-top: 0; }
.fp-press li:last-child { padding-bottom: 0; }
.fp-press p { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; color: #171717; word-break: keep-all; }
.fp-press small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: #8a919c; }

/* 통계 — 숫자 → 한 줄 설명 → 가로 막대(해마다), 위에서부터 채운다 */
.fp-stat { display: flex; flex-direction: column; }
.fp-stat__num { margin: 12px 0 0; font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #d71900; }   /* 이 카드의 주인공 — 빨강 */
.fp-stat__num small { margin-left: 4px; font-size: 30px; letter-spacing: 0; }
.fp-stat__txt { margin: 20px 0 0; font-size: 18px; font-weight: 500; line-height: 1.6; color: #4b5260; word-break: keep-all; }
.fp-stat__txt b { font-weight: 800; color: #171717; }
.fp-bars { display: grid; row-gap: 14px; margin: 30px 0 24px; list-style: none; }
.fp-bars li { display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 12px; }
.fp-bars span { font-size: 13px; font-weight: 600; line-height: 20px; color: #8a919c; }
.fp-bars i { position: relative; display: block; width: calc(var(--h) * 86%); height: 12px; border-radius: 6px; background: #dde2e9; }   /* 55건 = 86% (끝에 숫자 자리) */
.fp-bars em { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; font-weight: 700; line-height: 1; color: #8a919c; }
.fp-bars .is-now span { color: #171717; }
.fp-bars .is-now em { color: #d71900; }
.fp-bars .is-now i { background: #d71900; }                     /* 올해 막대만 빨강 — 위 55건과 같은 색으로 잇는다 */

/* 출처 — 두 카드 모두 맨 아래, 같은 높이 */
.fp-press .fp-press__src,
.fp-stat__src { margin: auto 0 0; padding-top: 16px; border-top: 1px solid #eef0f3; font-size: 12.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: #8a919c; }

/* ---------- ② 매장 충전은 왜 더 위험할까요 ---------- */
section.fp-why { padding: 136px 0 0; background: #fff; color: #171717; }

/* 원인 세 가지(글 + 아래에 깐 사진) → 가는 선 세 줄이 가운데로 모여 → 화재 상자(불 사진) */
.fp-mix__causes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.fp-mix__causes li {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: 330px; padding: 30px 24px; border-radius: 20px; background: #f3f5f8; text-align: center;
}
.fp-mix__bg {                                         /* 배경 사진 — 위쪽 가장자리는 상자 바탕색으로 녹인다 */
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
}
.fp-mix__causes .fp-mix__bg {                         /* 원인 상자는 아래 2/3 에만 — 글과 겹치지 않게 */
  top: auto; height: 66%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
}
.fp-mix__causes b { display: block; font-size: 20px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; color: #171717; }
.fp-mix__causes p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: #6b7280; word-break: keep-all; }
.fp-mbr { display: none; }                                      /* 좁은 화면에서만 줄을 바꾸는 <br> — 세 칸 모두 두 줄로 맞춘다 */
.fp-mix__lines { display: block; width: 100%; height: 120px; fill: none; stroke: #cfd5dc; stroke-width: 1.5; }
.fp-mix__lines path { vector-effect: non-scaling-stroke; }
.fp-mix__fire {                                       /* ② 의 강조는 이 불 사진 하나 — 나머지는 흑백·회색 */
  position: relative; isolation: isolate; overflow: hidden; width: 560px; max-width: 100%; min-height: 320px;
  margin: 0 auto; padding: 34px 32px; border-radius: 20px; background: #171717; text-align: center;
}
.fp-mix__fire .fp-mix__bg {
  -webkit-mask-image: linear-gradient(180deg, transparent 18%, #000 62%);
          mask-image: linear-gradient(180deg, transparent 18%, #000 62%);
}
.fp-mix__fire b { display: block; font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; color: #fff; }
.fp-mix__fire p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .66); word-break: keep-all; }

/* 다리 문장 — 화재 상자에서 내려온 선이 이 문장을 지나 ③ 의 라벨까지 이어진다 */
.fp-bridge {
  position: relative; margin: 0; padding: 96px 0 128px; text-align: center;
  font-size: 32px; font-weight: 800; line-height: 1.42; letter-spacing: -0.025em; color: #171717;
}
.fp-bridge::before,
.fp-bridge::after { content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px; background: #cfd5dc; }
.fp-bridge::before { top: 0; height: 64px; }
.fp-bridge::after { bottom: 0; height: 96px; }

/* ---------- ③ 화재방지 멀티 충전 스테이션 — 이전 디자인 그대로 ---------- */
section.fr-sol { position: relative; padding: 0 0 120px; background: #08090b; color: #fff; text-align: center; }
.fr-sol__beam { display: block; width: 2px; height: 112px; margin: 0 auto; background: rgba(255, 255, 255, .26); }   /* ② 에서 내려온 선이 라벨에 닿는다 */
.fr-sol__label {
  display: inline-flex; margin-bottom: 22px; padding: 9px 18px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .22);
  font-size: 15px; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, .86);
}
.fr-sol .fr-sol__tit {
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: 46px; font-weight: 800; line-height: 1.3; letter-spacing: -0.025em; color: #fff;
}
.fr-sol__tit em {
  font-style: normal; background: linear-gradient(100deg, #f2f6ff 0%, #a9c3f5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* 무대 — 사진과 같은 16:9 상자에 점·선·꼬리표를 % 좌표로 얹는다 */
.fr-stage { position: relative; max-width: 1180px; margin: 36px auto 0; }
.fr-stage__frame { position: relative; aspect-ratio: 16 / 9; }
.fr-stage__img {                                       /* 위·옆은 타원, 아래는 직선으로 바탕색에 녹인다 — 사진 끝의 잘린 선이 안 보이게 */
  display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 60% 56% at 50% 56%, #000 62%, transparent 100%), linear-gradient(180deg, #000 0%, #000 72%, transparent 97%);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(ellipse 60% 56% at 50% 56%, #000 62%, transparent 100%), linear-gradient(180deg, #000 0%, #000 72%, transparent 97%);
          mask-composite: intersect;
}
.fr-stage__lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 1; }
.fr-stage__lines path { vector-effect: non-scaling-stroke; }
.fr-dot {                                              /* 짚는 점 — 흰 점 + 옅은 고리 */
  position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .16), 0 0 18px rgba(169, 195, 245, .55);
}
.fr-dot i { display: none; }
.fr-tags { list-style: none; }
.fr-tag {
  position: absolute; z-index: 2; width: 236px; padding: 15px 18px 16px; border-radius: 14px; text-align: left;
  background: #17181c; border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  transform: translateY(-50%);
}
.fr-tag i { display: none; }
.fr-tag b { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.35; color: #fff; }
.fr-tag span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .6); word-break: keep-all; text-wrap: balance; }   /* 좁아져 두 줄이 되면 고르게 나눈다 */
.fr-tag--fan   { left: 67%; top: 9%; }
.fr-tag--temp  { left: 79%; top: 33.5%; }
.fr-tag--port  { right: 78%; top: 42.3%; }
.fr-tag--patch { right: 78%; top: 70%; }

/* 이벤트와 잇는 한 줄 — 메인 "신규 가맹점 EVENT"의 세 번째 혜택 */
.fr-sol__event {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px 22px; border-radius: 100px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 15.5px; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, .86);
}
a.fr-sol__event { transition: background-color .2s, border-color .2s; }
a.fr-sol__event:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.fr-sol__event b { font-weight: 800; color: #fff; }
.fr-sol__event span { padding: 4px 10px; border-radius: 100px; background: #fff; font-size: 13px; font-weight: 800; color: #171717; }

/* ---------- 반응형 ---------- */
@media (max-width: 1199px) {
  .fp__inner { padding: 0 40px; }
  .fp-press, .fp-stat { padding: 28px 30px; }
  .fp-press li { grid-template-columns: 96px 1fr; column-gap: 16px; }
  .fp-stat__num { font-size: 64px; }
  .fp-mix__causes li { min-height: 300px; padding: 26px 20px; }
  .fp-mix__causes b { font-size: 18px; }
  .fp-mix__causes p { font-size: 14.5px; }
  .fp-bridge { font-size: 28px; }
  .fr-tag { width: 200px; padding: 13px 15px 14px; }
  .fr-tag b { font-size: 15px; }
  .fr-tag span { font-size: 12.5px; }
}
@media (max-width: 899px) {
  .fp-evidence { grid-template-columns: 1fr; }
  /* 무대 — 선은 숨기고 점에 번호, 꼬리표는 사진 아래 목록으로.
     사진 틀을 4:3 으로 좁혀(가운데 기준 cover) 기기를 크게 — 점 x좌표도 같은 비율로 옮긴다(보이는 폭 75%, 왼쪽 12.5% 잘림) */
  .fr-stage__frame { aspect-ratio: 4 / 3; }
  .fr-stage__lines { display: none; }
  .fr-dot { left: calc((var(--x) - 12.5%) / 0.75); width: 24px; height: 24px; margin: -12px 0 0 -12px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .16); }
  .fr-dot i { display: block; font-style: normal; font-size: 12px; font-weight: 800; color: #171717; }
  .fr-dot--temp { margin-left: 0; }   /* 번호 점이 커지면 온도계 숫자를 가리지 않게 오른쪽으로 12px */
  .fr-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .fr-tag { position: static; width: auto; transform: none; display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; }
  .fr-tag i { display: grid; place-items: center; grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; color: #171717; }
}
@media (max-width: 599px) {
  .fp__inner { padding: 0 20px; }
  section.fp-news { padding: 128px 0 88px; }
  section.fp-why { padding: 84px 0 0; }
  .fp-head { margin-bottom: 32px; }
  .fp-head__label { margin-bottom: 10px; font-size: 15px; }
  .fp-news .fp-head__title, .fp-why .fp-head__title { font-size: 28px; }
  .fp-head__desc { margin-top: 12px; font-size: 16px; }
  .fp-evidence { gap: 12px; margin-top: 28px; }
  .fp-press, .fp-stat { padding: 24px 22px; border-radius: 20px; }
  .fp-press .fp-press__label, .fp-stat__pre { font-size: 14px; }
  .fp-press p { font-size: 16px; }
  .fp-press li { grid-template-columns: 88px 1fr; column-gap: 14px; padding: 14px 0; }
  .fp-press li img { border-radius: 8px; }
  .fp-stat__num { font-size: 54px; }
  .fp-stat__num small { font-size: 24px; }
  .fp-stat__txt { font-size: 16px; }
  .fp-photos { gap: 10px; }
  .fp-photos img { border-radius: 16px; }
  .fp-photos figcaption { font-size: 12.5px; }
  /* 원인 — 좁은 화면은 세 칸에 제목만, 선은 짧게 */
  .fp-mix__causes { gap: 8px; }
  .fp-mix__causes li { min-height: 160px; padding: 16px 8px; border-radius: 16px; }
  .fp-mix__causes b { font-size: 14.5px; }
  .fp-mix__causes p { display: none; }
  .fp-mbr { display: inline; }
  .fp-mix__lines { height: 72px; }
  .fp-mix__fire { min-height: 230px; padding: 24px 20px; border-radius: 18px; }
  .fp-mix__fire b { font-size: 19px; }
  .fp-mix__fire p { font-size: 14px; }
  .fp-bridge { padding: 64px 0 88px; font-size: 21px; }
  .fp-bridge::before { height: 40px; }
  .fp-bridge::after { height: 64px; }
  section.fr-sol { padding: 0 0 80px; }
  .fr-sol__beam { height: 72px; }
  .fr-sol__label { margin-bottom: 16px; font-size: 13px; padding: 7px 14px; }
  .fr-sol .fr-sol__tit { font-size: 29px; }
  .fr-stage { margin-top: 20px; }
  .fr-tags { grid-template-columns: 1fr; gap: 8px; }
  .fr-sol__event { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 18px; font-size: 14px; }
}

/* ---------- 움직임 — 사진·숫자·선에만, 글 덩어리는 움직이지 않는다 ----------
   · 원인 사진이 아주 천천히 커졌다 작아진다 · 불 사진이 은은하게 일렁인다 (계속)
   · 통계: 화면에 들어오면 55건이 0부터 올라가고 막대가 차오른다 (한 번, fire.js)
   "움직임 줄이기" 설정이면 전부 멈추고 처음부터 완성된 모습 */
@media (prefers-reduced-motion: no-preference) {
  .fp-mix__causes .fp-mix__bg { transform-origin: 50% 100%; animation: fp-breathe 8s ease-in-out infinite; }   /* 아래 끝을 붙인 채로 커져서 틈이 안 생긴다 */
  .fp-mix__causes li:nth-child(2) .fp-mix__bg { animation-delay: -2.7s; }
  .fp-mix__causes li:nth-child(3) .fp-mix__bg { animation-delay: -5.4s; }
  .fp-mix__fire .fp-mix__bg { animation: fp-flicker 2.8s ease-in-out infinite; }
}
@keyframes fp-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes fp-flicker {
  0%, 100% { filter: brightness(1); }
  18% { filter: brightness(1.1); }
  34% { filter: brightness(.96); }
  52% { filter: brightness(1.07); }
  71% { filter: brightness(.98); }
  86% { filter: brightness(1.09); }
}
/* 아래는 fire.js 가 html 에 .fp-js 를 붙였을 때만 (스크립트가 없으면 처음부터 완성된 모습) */
.fp-js .fp-bars i { width: 0; transition: width 1.1s cubic-bezier(.22, .8, .25, 1); }
.fp-js .fp-bars li:nth-child(2) i { transition-delay: .12s; }
.fp-js .fp-bars li:nth-child(3) i { transition-delay: .24s; }
.fp-js .fp-stat.is-in .fp-bars i { width: calc(var(--h) * 86%); }
