/* =========================================================
   電気治療（特別治療）説明ページ 専用スタイル
   参考: /denki/index.html
   このページ配下は #denki_page 以下にスコープしています
========================================================= */

/* ===== リセット & 基本設定 ===== */
#denki_page *, #denki_page *::before, #denki_page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#denki_page {
  --white:    #ffffff;
  --bg:       #f0f8ff;
  --blue-l:   #e0f4ff;
  --blue:     #4db8e8;
  --blue-d:   #1a7db5;
  --green-l:  #e8f8f0;
  --green:    #4dc490;
  --green-d:  #2a8f65;
  --orange:   #ff8c42;
  --yellow:   #ffd166;
  --gray-l:   #f5f5f5;
  --gray:     #888;
  --text:     #2d3a4a;
  --text-s:   #5a6a7a;
  --radius:   20px;
  --shadow:   0 6px 32px rgba(77,184,232,0.13);

  font-family: 'Hiragino Maru Gothic ProN', 'BIZ UDPGothic', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

.page-id-3077 #header {
  margin: 0;
}
/* ===== スクロールフェードイン ===== */
#denki_page .fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
#denki_page .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 共通レイアウト ===== */
#denki_page .section {
  padding: 60px 24px;
  max-width: 820px;
  margin: 0 auto;
}
#denki_page .section-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}
#denki_page .section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--blue-d);
  border-radius: 99px;
  padding: 4px 16px;
  margin-bottom: 12px;
}
#denki_page .section-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}
#denki_page .section-sub {
  font-size: 15px;
  color: var(--text-s);
  margin-bottom: 28px;
  line-height: 1.8;
}
#denki_page .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 99px;
  padding: 3px 14px;
  margin-right: 6px;
  margin-bottom: 6px;
}
#denki_page .tag-blue  { background: var(--blue-l);  color: var(--blue-d); }
#denki_page .tag-green { background: var(--green-l); color: var(--green-d); }
#denki_page .tag-orange{ background: #fff3e0;        color: #c75000; }

/* ===== SVGキャンバス共通 ===== */
#denki_page svg text { font-family: inherit; }

/* ===== メリットカード ===== */
#denki_page .merit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
#denki_page .merit-card {
  background: linear-gradient(135deg, var(--blue-l) 0%, var(--green-l) 100%);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
}
#denki_page .merit-card .m-icon  { font-size: 34px; margin-bottom: 10px; }
#denki_page .merit-card .m-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
#denki_page .merit-card .m-desc  { font-size: 12px; color: var(--text-s); line-height: 1.6; }

/* ===== 効果カード ===== */
#denki_page .effect-cards, #denki_page .elec-cards {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
#denki_page .effect-card, #denki_page .elec-card {
  flex: 1;
  min-width: 100px;
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
#denki_page .ec-heat  { background: linear-gradient(135deg,#fff3e0,#ffe0b2); color:#b85c00; }
#denki_page .ec-flow  { background: linear-gradient(135deg,#e3f2fd,#bbdefb); color:var(--blue-d); }
#denki_page .ec-soft  { background: linear-gradient(135deg,#e8f5e9,#c8e6c9); color:var(--green-d); }
#denki_page .ecard-1  { background: linear-gradient(135deg,#e8eaff,#c5caf5); color:#3344aa; }
#denki_page .ecard-2  { background: linear-gradient(135deg,#f3e8ff,#ddb6f5); color:#6022aa; }
#denki_page .ecard-3  { background: linear-gradient(135deg,#e8fff4,#b6f5d8); color:#1a7755; }
#denki_page .effect-card .ec-icon, #denki_page .elec-card .ec-icon { font-size: 26px; margin-bottom: 6px; }
#denki_page .effect-card .ec-text, #denki_page .elec-card .ec-text { font-size: 11px; font-weight:400; color:#666; margin-top:4px; line-height:1.4; }

/* ===== 比較レイアウト ===== */
#denki_page .compare-wrap {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
#denki_page .compare-col {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #ddeeff;
}
#denki_page .compare-col.orange-border { border-color: #ffe0b2; }
#denki_page .col-head {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 4px;
}
#denki_page .col-head.blue-h   { background:#ddeeff; color:var(--blue-d); }
#denki_page .col-head.orange-h { background:#ffe8cc; color:#b85c00; }

/* ===== ステップ ===== */
#denki_page .step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0 0;
}
#denki_page .step-item {
  display: flex; flex-direction: column; align-items: center;
  font-size: 12px; color: var(--text-s); text-align: center; width: 72px;
}
#denki_page .step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 4px;
}
#denki_page .step-line { width: 36px; height: 2px; background: linear-gradient(90deg,var(--blue-l),var(--blue)); margin-bottom: 16px; }

/* ===== セクション番号 ===== */
#denki_page .sec-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 16px; font-weight: 900; color:#fff; flex-shrink:0;
}
#denki_page .sn-orange { background: linear-gradient(135deg,var(--orange),#e05500); }
#denki_page .sn-blue   { background: linear-gradient(135deg,var(--blue),var(--blue-d)); }
#denki_page .sn-green  { background: linear-gradient(135deg,var(--green),var(--green-d)); }

/* ===== アクセントライン ===== */
#denki_page .accent-line {
  display: block; width: 48px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg,var(--blue),var(--green));
  margin: 10px 0 18px;
}

/* ========================================
   ヒーローセクション
======================================== */
#denki_page #hero {
  background: linear-gradient(160deg,#cceeff 0%,#d8f5ea 55%,#fff8e8 100%);
  padding: 56px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#denki_page #hero::before {
  content:''; position:absolute;
  width:500px; height:500px; border-radius:50%;
  background:radial-gradient(circle,rgba(77,184,232,0.13) 0%,transparent 70%);
  top:-100px; left:50%; transform:translateX(-50%);
  pointer-events:none;
}
#denki_page .hero-label {
  display:inline-block; background:var(--blue-d); color:#fff;
  font-size:13px; font-weight:700; border-radius:99px;
  padding:5px 22px; margin-bottom:16px; letter-spacing:0.1em;
}
#denki_page .hero-title {
  font-size: clamp(26px,5vw,42px);
  font-weight:900; color:var(--text); line-height:1.35; margin-bottom:14px;
}
#denki_page .hero-title span { color:var(--blue-d); }
#denki_page .hero-sub {
  font-size:16px; color:var(--text-s);
  max-width:560px; margin:0 auto 32px; line-height:1.85;
}

/* ===== クロージング ===== */
#denki_page #closing {
  background: linear-gradient(135deg,var(--blue-d) 0%,var(--green-d) 100%);
  padding: 64px 24px;
  text-align: center;
  color: #fff;
}
#denki_page #closing .c-title { font-size:clamp(20px,3.5vw,28px); font-weight:900; margin-bottom:14px; line-height:1.5; }
#denki_page #closing .c-sub   { font-size:15px; opacity:.88; margin-bottom:28px; line-height:1.85; }
#denki_page #closing .c-btn {
  display:inline-block; background:#fff; color:var(--blue-d);
  font-weight:900; font-size:17px; border-radius:99px;
  padding:16px 40px; box-shadow:0 4px 20px rgba(0,0,0,0.2);
}

/* ===== 店舗一覧（クロージング内） ===== */
#denki_page .store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 8px 0 0;
  text-align: left;
}
#denki_page .store-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
#denki_page .store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}
#denki_page .store-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #eef4f8;
  overflow: hidden;
}
#denki_page .store-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
#denki_page .store-card:hover .store-thumb img { transform: scale(1.06); }
#denki_page .store-noimg {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: #aab4bf; font-size: 13px; font-weight: 700;
}
#denki_page .store-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
#denki_page .store-name {
  font-size: 17px; font-weight: 900;
  color: var(--text); line-height: 1.4;
  margin-bottom: 10px;
}
#denki_page .store-hours-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--green-d); background: var(--green-l);
  border-radius: 6px; padding: 2px 8px; margin-bottom: 6px;
}
#denki_page .store-hours {
  font-size: 13px; color: var(--text-s);
  line-height: 1.7; margin-bottom: 16px;
}
#denki_page .store-btn {
  margin-top: auto;
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  color: #fff; font-weight: 800; font-size: 14px;
  border-radius: 99px; padding: 11px 16px;
  text-decoration: none;
  transition: opacity .2s ease;
}
#denki_page .store-btn:hover { opacity: .88; color:#fff; }

/* ===== 免責文 ===== */
#denki_page .denki-disclaimer {
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
}

/* ===== アニメーション ===== */
@keyframes denkiFloatUp {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-8px); }
}
@keyframes denkiFloatParticle {
  0%   { transform:translateY(0) scale(1); opacity:0; }
  15%  { opacity:1; }
  85%  { opacity:0.5; }
  100% { transform:translateY(-320px) scale(0.5); opacity:0; }
}

/* ===== プログレスバー ===== */
#denki_page #progress-bar {
  position:fixed; top:0; left:0; height:4px;
  background:linear-gradient(90deg,var(--blue),var(--green),var(--orange));
  width:0%; z-index:1000; transition:width 0.1s;
}

/* ===== ナビドット ===== */
#denki_page #nav-dots {
  position:fixed; right:16px; top:50%; transform:translateY(-50%);
  display:flex; flex-direction:column; gap:10px; z-index:999;
}
#denki_page .nav-dot {
  width:10px; height:10px; border-radius:50%;
  background:rgba(77,184,232,0.3); border:2px solid var(--blue-d);
  cursor:pointer; transition:background 0.3s, transform 0.3s;
}
#denki_page .nav-dot.active { background:var(--blue-d); transform:scale(1.3); }

/* ===== レスポンシブ ===== */
@media (max-width:820px) {
  #denki_page .store-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width:600px) {
  #denki_page .section       { padding:32px 12px; }
  #denki_page .section-card  { padding:22px 14px; }
  #denki_page .merit-grid    { grid-template-columns:1fr 1fr; gap:10px; }
  #denki_page .compare-wrap  { gap:8px; }
  #denki_page .hero-title    { font-size:22px; }
}
@media (max-width:520px) {
  #denki_page .store-grid { grid-template-columns: 1fr; }
}
