:root{
  --primary:#2563EB;
  --primary-dark:#1E3A8A;
  --primary-deep:#0F2A5F;
  --primary-soft:#EFF6FF;
  --primary-pale:#F5F9FF;
  --cyan:#38BDF8;
  --cyan-soft:#E0F2FE;
  --accent:#FF8A3D;
  --accent-soft:#FFF1E8;
  --green:#22C55E;
  --green-dark:#1E3A8A;
  --green-soft:#EFF6FF;
  --blue:#2563EB;
  --blue-soft:#EFF6FF;
  --orange:#FF8A3D;
  --orange-soft:#FFF1E8;
  --cream:#FFF9F4;
  --ink:#0F172A;
  --muted:#64748B;
  --line:#DBEAFE;
  --white:#FFFFFF;
  --line-green:#06C755;
  --shadow:0 18px 50px rgba(37, 99, 235, .14);
  --shadow-soft:0 10px 30px rgba(15,23,42,.08);
  --radius:24px;
  --radius-sm:16px;
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{
  margin:0;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",YuGothic,"Noto Sans JP",sans-serif;
  line-height:1.75;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 52%,#fffaf5 100%);
  overflow-x:hidden;
  max-width:100vw;
}
body.no-scroll{overflow:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
.elr-container{width:min(var(--max), calc(100% - 36px)); margin-inline:auto}
.elr-section{padding:88px 0}
.elr-section.is-soft{background:linear-gradient(180deg,var(--primary-soft),#fff)}
.elr-section.is-cream{background:linear-gradient(180deg,#fffdf9,#fff6ef)}
.elr-section.is-blue{background:linear-gradient(180deg,var(--blue-soft),#fff)}
.elr-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 13px;
  border-radius:999px;
  color:var(--primary-dark);
  background:rgba(37,99,235,.09);
  border:1px solid rgba(37,99,235,.18);
  font-weight:800;
  font-size:.86rem;
}
.elr-title{
  margin:14px 0 16px;
  font-size:clamp(2rem,4.6vw,4.2rem);
  line-height:1.14;
  letter-spacing:-.04em;
}
.elr-title span{color:var(--primary)}
.elr-heading{
  margin:12px 0 18px;
  font-size:clamp(1.75rem,3vw,3rem);
  line-height:1.2;
  letter-spacing:-.035em;
}
.elr-lead{
  max-width:760px;
  color:var(--muted);
  font-size:1.06rem;
}
.elr-center{text-align:center}
.elr-center .elr-lead{margin-inline:auto}
.elr-grid{display:grid;gap:22px}
.elr-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.elr-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.elr-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.elr-card{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(245,249,255,.92));
  border:1px solid rgba(219,234,254,.96);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.elr-card h3{margin:0 0 8px;font-size:1.22rem}
.elr-card p{margin:0;color:var(--muted)}
.elr-icon{
  width:54px;height:54px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--primary-soft),#fff);
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.14);
  font-size:1.55rem;
  margin-bottom:14px;
}
.elr-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.elr-tag{
  display:inline-flex;
  padding:5px 10px;
  background:#f8fafc;
  border:1px solid var(--line);
  color:#475569;
  border-radius:999px;
  font-weight:700;
  font-size:.78rem;
}
.elr-btns{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:28px}
.elr-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:999px;
  padding:13px 20px;
  font-weight:900;
  border:1px solid transparent;
  transition:.22s ease;
  cursor:pointer;
}
.elr-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}
.elr-btn-primary{background:var(--primary);color:white}
.elr-btn-orange{background:var(--accent);color:white}
.elr-btn-outline{background:white;color:var(--primary-dark);border-color:rgba(37,99,235,.25)}
.elr-btn-dark{background:var(--ink);color:white}
.elr-btn-line{
  background:#06C755;
  color:#fff !important;
  border-color:#06C755;
  font-weight:900;
}
.elr-btn-line:hover{background:#04a845}
.elr-btn-line span,
.elr-btn-line strong{
  color:#fff !important;
  opacity:1 !important;
}

/* LINE Icon */
.elr-line-icon{
  width:22px;
  height:22px;
  object-fit:contain;
  flex-shrink:0;
  display:block;
}

/* LINE バッジ（CSS製 丸ロゴ） */
.elr-line-badge{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#fff;
  color:#06C755 !important;
  font-size:9px;
  font-weight:900;
  line-height:1;
  flex-shrink:0;
  letter-spacing:.02em;
  opacity:1 !important;
}

/* Header */
.elr-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  border-bottom:1px solid rgba(226,232,240,.9);
}
.elr-header-inner{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.elr-header .elr-btns{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:0;
  flex-shrink:0;
}
.elr-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:950;
  letter-spacing:-.03em;
  flex-shrink:0;
}
.elr-logo-img{
  width:44px;
  height:44px;
  object-fit:contain;
  flex-shrink:0;
}
.elr-logo-text{
  font-size:.9rem;
  line-height:1.35;
  font-weight:950;
}
.elr-logo-mark{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--cyan));
  color:white;
  box-shadow:0 12px 28px rgba(37,99,235,.22);
  flex-shrink:0;
}
.elr-nav{
  display:flex;
  align-items:center;
  gap:18px;
  color:#334155;
  font-size:.92rem;
  font-weight:800;
}
.elr-nav a{transition:.2s}
.elr-nav a:hover{color:var(--primary)}
.elr-menu-btn{display:none;background:white;border:1px solid var(--line);border-radius:14px;padding:10px 12px;font-weight:900}
.elr-mobile-nav{
  display:none;
  padding:0 18px 20px;
}
.elr-mobile-nav a{
  display:block;
  padding:13px 10px;
  border-bottom:1px solid var(--line);
  font-weight:850;
}

/* Hero */
.elr-hero{
  position:relative;
  min-height:calc(100vh - 76px);
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:78px 0;
}
.elr-hero::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(circle at 18% 20%, rgba(56,189,248,.20), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(37,99,235,.18), transparent 26%),
    radial-gradient(circle at 52% 90%, rgba(255,138,61,.12), transparent 32%);
  pointer-events:none;
}
.elr-hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:36px;
}
.elr-hero-text{position:relative;z-index:2}

/* Hero Visual — 3D canvas + fallback overlay */
.elr-hero-visual{
  position:relative;
  min-height:560px;
  border-radius:38px;
  overflow:hidden;
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.95), transparent 26%),
    radial-gradient(circle at 78% 84%, rgba(255,255,255,.7), transparent 24%),
    linear-gradient(145deg, #f5f9ff 0%, #eff6ff 55%, #e0f2fe 100%);
  border:1px solid rgba(37,99,235,.14);
  box-shadow:0 28px 80px rgba(71, 98, 128, .18);
}
.elr-hero-visual::after,
.elr-network-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.42), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  z-index:3;
  pointer-events:none;
}
/* Canvas sits on top (z-index:2) */
.elr-three-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  z-index:2;
}
/* Fallback: 3D読み込み中はCSSグラデーション表示、成功後に非表示 */
.elr-visual-fallback{
  position:absolute;
  inset:0;
  z-index:1;
  display:grid;
  place-items:center;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
  opacity:1;
  visibility:visible;
  transition:opacity .3s ease, visibility .3s ease;
}
.elr-visual-fallback img{
  display:none;
}
.elr-fallback-loading{
  margin:0;
  font-size:.82rem;
  font-weight:800;
  color:var(--muted);
  letter-spacing:.01em;
  text-align:center;
}
.elr-fallback-error{
  display:none;
  margin:0;
  font-size:.8rem;
  font-weight:700;
  color:#e05a00;
  letter-spacing:.01em;
  text-align:center;
}
/* 3D 成功時: fallback を完全に隠す */
.elr-hero-visual.is-three-ready .elr-visual-fallback,
.elr-visual-box.is-three-ready .elr-visual-fallback{
  opacity:0;
  visibility:hidden;
}
/* 3D 失敗時: フォールバック画像を表示、エラーメッセージに切替 */
.elr-hero-visual.is-three-error .elr-visual-fallback,
.elr-visual-box.is-three-error .elr-visual-fallback{
  opacity:1;
  visibility:visible;
}
.elr-hero-visual.is-three-error .elr-fallback-loading,
.elr-visual-box.is-three-error .elr-fallback-loading{
  display:none;
}
.elr-hero-visual.is-three-error .elr-fallback-error,
.elr-visual-box.is-three-error .elr-fallback-error{
  display:block;
}
/* スキップ時（小型スマホ）: 画像のみ表示、テキスト類非表示 */
.elr-hero-visual.is-three-skipped .elr-visual-fallback{
  opacity:1;
  visibility:visible;
  transition:none;
}
.elr-hero-visual.is-three-skipped .elr-fallback-loading,
.elr-hero-visual.is-three-skipped .elr-fallback-error{
  display:none;
}
/* Pills and floating card above canvas */
.elr-hero-note{
  position:absolute;
  left:18px;
  bottom:18px;
  right:18px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  z-index:5;
}
.elr-pill{
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:0 6px 16px rgba(15,23,42,.07);
  font-weight:900;
  font-size:.8rem;
  backdrop-filter:blur(6px);
}
.elr-hero-visual-badge,
.elr-network-badge{
  position:absolute;
  top:18px;
  left:18px;
  z-index:5;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.82);
  box-shadow:0 12px 32px rgba(30, 41, 59, .08);
  color:var(--primary-dark);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(12px);
}
.elr-hero-visual-badge::before,
.elr-network-badge::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--primary),var(--cyan));
  box-shadow:0 0 0 5px rgba(56,189,248,.14);
}
.elr-map-hotspots,
.elr-network-labels{
  position:absolute;
  inset:0;
  z-index:5;
  pointer-events:none;
}
.elr-map-hotspot,
.elr-network-label{
  position:absolute;
  left:0;
  top:0;
  transform:translate3d(-9999px,-9999px,0);
  transform-origin:center;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.9);
  background:rgba(255,255,255,.82);
  color:#16324f;
  box-shadow:0 10px 22px rgba(28, 53, 86, .1);
  font-size:.76rem;
  font-weight:900;
  white-space:nowrap;
  backdrop-filter:blur(10px);
  pointer-events:auto;
  transition:transform .28s ease, box-shadow .28s ease, background .28s ease, color .28s ease, opacity .28s ease;
}
.elr-map-hotspot::before,
.elr-network-label::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--dot-color, #3db27c);
  box-shadow:0 0 0 5px color-mix(in srgb, var(--dot-color, #3db27c) 14%, white);
}
.elr-map-hotspot.is-active,
.elr-network-label.is-active{
  background:rgba(15, 42, 95, .92);
  color:white;
  box-shadow:0 16px 36px rgba(19, 63, 80, .22);
}
.elr-map-hotspot.is-hidden,
.elr-network-label.is-hidden{
  opacity:0;
  pointer-events:none;
}
.elr-map-ui{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:6;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.elr-map-chip{
  appearance:none;
  border:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 18px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  color:#183254;
  box-shadow:0 14px 34px rgba(15, 23, 42, .08);
  font-size:.9rem;
  font-weight:900;
  letter-spacing:.02em;
  cursor:pointer;
  transition:transform .24s ease, background .24s ease, color .24s ease, box-shadow .24s ease;
}
.elr-map-chip:hover,
.elr-map-chip:focus-visible{
  transform:translateY(-1px);
  background:white;
  box-shadow:0 18px 42px rgba(20, 51, 87, .14);
  outline:none;
}
.elr-map-chip.is-active{
  background:linear-gradient(135deg,var(--primary),var(--cyan));
  color:white;
  box-shadow:0 18px 40px rgba(37,99,235,.26);
}
.elr-floating-card{
  position:absolute;
  right:18px;
  top:18px;
  background:rgba(255,255,255,.88);
  padding:12px 15px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:18px;
  box-shadow:var(--shadow-soft);
  font-weight:900;
  font-size:.88rem;
  z-index:5;
  backdrop-filter:blur(8px);
}
.elr-stat-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:28px;
}
.elr-stat{
  background:rgba(255,255,255,.74);
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
}
.elr-stat strong{display:block;font-size:1.5rem;color:var(--primary-dark);line-height:1.1}
.elr-stat span{font-size:.82rem;color:var(--muted);font-weight:800}

/* Hero price badge */
.elr-hero-price-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  font-size:.9rem;
  font-weight:800;
  color:var(--primary-dark);
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.18);
  border-radius:12px;
  padding:9px 14px;
  margin-top:18px;
  line-height:1.5;
}
.elr-hero-price-badge strong{
  white-space:nowrap;
}

/* Visual Fallback — カバー画像モディファイア（農業セクション等） */
.elr-visual-fallback--cover{
  padding:0;
  background:none;
}
.elr-visual-fallback--cover img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-height:none;
  max-width:none;
  object-fit:cover;
  opacity:0.72;
  filter:none;
}

/* Offer */
.elr-offer{
  background:linear-gradient(135deg,var(--primary-deep),var(--primary));
  color:white;
  border-radius:34px;
  padding:34px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.elr-offer::after{
  content:"";
  position:absolute;right:-80px;top:-90px;width:260px;height:260px;border-radius:999px;
  background:rgba(255,255,255,.1);
}
.elr-offer .elr-lead{color:rgba(255,255,255,.78)}
.elr-price-compare{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:22px;
}
.elr-price-box{
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.16);
  border-radius:22px;
  padding:22px;
}
.elr-price-box.is-featured{
  background:white;
  color:var(--ink);
}
.elr-price-main{
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1;
  font-weight:950;
  letter-spacing:-.04em;
}
.elr-price-list{margin:16px 0 0;padding:0;list-style:none}
.elr-price-list li{
  padding:8px 0;
  border-bottom:1px solid rgba(148,163,184,.25);
  display:flex;
  justify-content:space-between;
  gap:12px;
}

/* Program */
.elr-program-card{position:relative;overflow:hidden}
.elr-program-card::before{
  content:"";
  position:absolute;inset:0 0 auto 0;height:5px;
  background:linear-gradient(90deg,var(--primary),var(--cyan),var(--accent));
}
.elr-program-meta{
  display:grid;gap:8px;margin:14px 0;
  color:#334155;
}
.elr-program-meta span{
  display:flex;gap:8px;align-items:flex-start;
  font-weight:700;
  font-size:.92rem;
}
.elr-special{
  background:linear-gradient(135deg,var(--primary-pale),var(--green-soft));
  border-color:rgba(37,99,235,.18);
}

/* ═══════════════════════════════════════════════════════════════════════
   活動カード 3D風 CSS アイコンビジュアル
═══════════════════════════════════════════════════════════════════════ */

/* ── アニメーション ─────────────────────────────────────────────────── */
@keyframes elr-float    {0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)}}
@keyframes elr-float-sm {0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)}}
@keyframes elr-sway     {0%,100%{transform:translateX(-50%) rotate(-5deg)} 50%{transform:translateX(-50%) rotate(5deg)}}
@keyframes elr-sway-belt{0%,100%{transform:skewX(-2deg)} 50%{transform:skewX(2deg)}}
@keyframes elr-pulse-sun{0%,100%{opacity:.88;transform:scale(1)} 50%{opacity:1;transform:scale(1.1)}}
@keyframes elr-sprout   {0%,100%{transform:translateX(-50%) scaleY(.94)} 50%{transform:translateX(-50%) scaleY(1.05)}}

/* ── 共通コンテナ ──────────────────────────────────────────────────── */
.elr-program-visual{
  position:relative;
  height:170px;
  border-radius:22px 22px 0 0;
  overflow:hidden;
  display:grid;
  place-items:center;
  perspective:700px;
  margin:-4px -4px 20px;
  user-select:none;
  border-bottom:1px solid rgba(37,99,235,.08);
}

/* ── 空手 ──────────────────────────────────────────────────────────── */
.elr-visual-karate{
  background:radial-gradient(ellipse at 50% 30%, #fff 0%, #f2fdf6 55%, #e6f8ee);
}
.elr-visual-karate .krt-gi{
  position:relative;
  width:60px; height:80px;
  background:linear-gradient(155deg, #fff, #f0f0ee);
  border-radius:8px 8px 10px 10px;
  box-shadow:6px 10px 24px rgba(0,0,0,.13),-2px 4px 10px rgba(0,0,0,.06),
             inset 1px 2px 4px rgba(255,255,255,.8);
  transform:rotateY(-8deg) rotateX(4deg);
  animation:elr-float-sm 3.6s ease-in-out infinite;
}
/* V-neck */
.elr-visual-karate .krt-gi::before{
  content:'';
  position:absolute; top:0; left:50%;
  transform:translateX(-50%);
  width:0; height:0;
  border-left:13px solid transparent;
  border-right:13px solid transparent;
  border-top:28px solid #e8f8ee;
}
/* Belt */
.elr-visual-karate .krt-belt{
  position:absolute;
  left:-8px; right:-8px; top:54%;
  height:9px;
  background:linear-gradient(90deg, #111827, #1e2a5a, #111827);
  border-radius:2px;
  display:block;
  box-shadow:0 3px 8px rgba(0,0,0,.5);
  animation:elr-sway-belt 4.5s ease-in-out infinite;
}

/* ── サッカー ──────────────────────────────────────────────────────── */
.elr-visual-soccer{
  background:linear-gradient(168deg, #e0f4ff 0%, #d2f2e6 55%, #b8e8c0);
}
.elr-visual-soccer .sc-pitch{
  position:absolute; bottom:10px;
  width:172px; height:56px;
  background:linear-gradient(155deg, #4dbe74, #2b9448);
  border-radius:50% 50% 44% 44% / 28% 28% 18% 18%;
  transform:rotateX(62deg);
  box-shadow:0 14px 30px rgba(0,0,0,.22),inset 0 -4px 10px rgba(0,0,0,.12);
}
.elr-visual-soccer .sc-pitch::after{
  content:'';
  position:absolute; left:50%; top:15%;
  width:1.5px; height:70%;
  background:rgba(255,255,255,.35);
  transform:translateX(-50%);
}
.elr-visual-soccer .sc-ball{
  position:absolute; top:20px;
  width:74px; height:74px;
  border-radius:50%;
  background:
    radial-gradient(circle at 34% 30%, #fff 0% 22%, transparent 23%),
    radial-gradient(circle at 66% 60%, #111827 0% 10%, transparent 11%),
    radial-gradient(circle at 36% 66%, #111827 0% 9%, transparent 10%),
    radial-gradient(circle at 65% 30%, #111827 0% 8%, transparent 9%),
    #fff;
  box-shadow:8px 16px 32px rgba(0,0,0,.2),-3px 3px 10px rgba(0,0,0,.07),
             inset -6px -6px 14px rgba(0,0,0,.05);
  animation:elr-float 2.8s ease-in-out infinite;
}

/* ── 野球 ──────────────────────────────────────────────────────────── */
.elr-visual-baseball{
  background:radial-gradient(ellipse at 50% 22%, #f0f8ff 0%, #e4efff 55%, #d8e8f8);
}
.elr-visual-baseball .bb-ball{
  position:absolute; top:18px; left:calc(50% - 56px);
  width:76px; height:76px;
  border-radius:50%;
  background:radial-gradient(circle at 33% 28%, #fff 0% 26%, #fdf9f4 100%);
  box-shadow:6px 12px 26px rgba(0,0,0,.15),-2px 4px 10px rgba(0,0,0,.06),
             inset -4px -4px 10px rgba(0,0,0,.04);
  animation:elr-float-sm 3.4s ease-in-out infinite;
}
.elr-visual-baseball .bb-ball::before,
.elr-visual-baseball .bb-ball::after{
  content:'';
  position:absolute;
  border:2.5px solid #e53935;
  border-radius:50%;
}
.elr-visual-baseball .bb-ball::before{
  width:22px; height:48px; top:12px; left:10px;
  border-right-color:transparent; border-bottom-color:transparent;
  transform:rotate(-18deg);
}
.elr-visual-baseball .bb-ball::after{
  width:22px; height:48px; top:12px; right:10px;
  border-left-color:transparent; border-top-color:transparent;
  transform:rotate(-18deg);
}
.elr-visual-baseball .bb-bat{
  position:absolute; top:16px; right:calc(50% - 56px);
  width:17px; height:100px;
  background:linear-gradient(180deg, #c8943e 0%, #a06828 45%, #7a4e18 100%);
  border-radius:7px 7px 3px 3px;
  transform:rotate(20deg);
  transform-origin:bottom center;
  box-shadow:3px 6px 16px rgba(0,0,0,.22),inset 2px 0 5px rgba(255,255,255,.18);
}
.elr-visual-baseball .bb-bat::before{
  content:'';
  position:absolute; top:-13px; left:-6px;
  width:29px; height:26px;
  background:linear-gradient(155deg, #d4a052, #b07832);
  border-radius:50% 50% 22% 22%;
  box-shadow:inset 0 3px 6px rgba(255,255,255,.25);
}

/* ── けん玉 ──────────────────────────────────────────────────────── */
.elr-visual-kendama{
  background:radial-gradient(ellipse at 48% 28%, #fffdf5 0%, #fdf0d8 55%, #f5dba8);
}
.elr-visual-kendama .kd-ball{
  position:absolute; top:16px; left:50%;
  transform:translateX(-50%);
  width:42px; height:42px;
  border-radius:50%;
  background:radial-gradient(circle at 34% 30%, #ff8080 0%, #dc2020 100%);
  box-shadow:5px 8px 18px rgba(200,30,30,.38),inset -4px -4px 10px rgba(0,0,0,.14);
  animation:elr-sway 2.8s ease-in-out infinite;
  transform-origin:bottom center;
}
.elr-visual-kendama .kd-string{
  position:absolute; top:58px; left:50%;
  transform:translateX(-50%);
  width:2px; height:28px;
  background:linear-gradient(180deg, rgba(90,60,20,.5), rgba(90,60,20,.18));
}
.elr-visual-kendama .kd-handle{
  position:absolute; top:78px; left:50%;
  transform:translateX(-50%);
  width:44px;
}
.elr-visual-kendama .kd-handle::before{
  content:'';
  display:block;
  width:44px; height:24px;
  background:linear-gradient(155deg, #d49840, #9a6020);
  border-radius:50% 50% 6px 6px;
  box-shadow:3px 5px 12px rgba(0,0,0,.2),inset 2px 2px 5px rgba(255,255,255,.18);
}
.elr-visual-kendama .kd-handle::after{
  content:'';
  display:block;
  width:10px; height:40px;
  background:linear-gradient(90deg, #d4943e, #a06828);
  margin:0 auto;
  border-radius:2px 2px 4px 4px;
  box-shadow:2px 3px 8px rgba(0,0,0,.15);
}

/* ── うごきラボ ──────────────────────────────────────────────────── */
.elr-visual-ugoki{
  background:radial-gradient(ellipse at 50% 30%, #f2f8ff 0%, #eaf4ff 45%, #fff8ef);
}
.elr-visual-ugoki .ug-arc{
  position:absolute;
  width:150px; height:56px;
  border:2.5px dashed rgba(80,160,100,.42);
  border-bottom:none;
  border-radius:76px 76px 0 0;
  bottom:24px; left:50%;
  transform:translateX(-50%);
}
.elr-visual-ugoki .ug-ball{
  position:absolute;
  border-radius:50%;
}
.elr-visual-ugoki .ug-ball.b1{
  width:34px; height:34px;
  background:radial-gradient(circle at 34% 30%, #ffaa60, #f06318);
  box-shadow:4px 6px 14px rgba(240,99,24,.3);
  bottom:26px; left:calc(50% - 74px);
  animation:elr-float 2.2s ease-in-out infinite;
}
.elr-visual-ugoki .ug-ball.b2{
  width:50px; height:50px;
  background:radial-gradient(circle at 34% 30%, #6de0a8, #1fbb7a);
  box-shadow:5px 9px 20px rgba(31,187,122,.28);
  top:24px; left:50%; transform:translateX(-50%);
  animation:elr-float 3s ease-in-out infinite .4s;
}
.elr-visual-ugoki .ug-ball.b3{
  width:28px; height:28px;
  background:radial-gradient(circle at 34% 30%, #88c8ff, #3b82f6);
  box-shadow:4px 5px 12px rgba(59,130,246,.28);
  bottom:26px; right:calc(50% - 74px);
  animation:elr-float 2.5s ease-in-out infinite .8s;
}

/* ── Sports English ──────────────────────────────────────────────── */
.elr-visual-english{
  background:radial-gradient(ellipse at 50% 25%, #e8f3ff 0%, #d4e8ff 55%, #c4dcf8);
}
.elr-visual-english .en-globe{
  position:absolute; bottom:16px; left:calc(50% - 26px);
  width:70px; height:70px;
  border-radius:50%;
  background:linear-gradient(145deg, #4a90d9, #2862b8 50%, #1a4898);
  box-shadow:6px 10px 24px rgba(30,80,160,.3),
             inset -6px -5px 14px rgba(0,0,0,.18),
             inset 5px 5px 10px rgba(255,255,255,.1);
  overflow:hidden;
  animation:elr-float-sm 3.8s ease-in-out infinite;
}
.elr-visual-english .en-globe::before{
  content:'';
  position:absolute; inset:0; border-radius:50%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 9px, rgba(255,255,255,.14) 9px, rgba(255,255,255,.14) 10px),
    repeating-linear-gradient(90deg, transparent, transparent 14px, rgba(255,255,255,.11) 14px, rgba(255,255,255,.11) 15px);
}
.elr-visual-english .en-globe::after{
  content:'';
  position:absolute; left:-4px; right:-4px; top:42%; height:12%;
  background:rgba(255,255,255,.1); border-radius:50%;
}
.elr-visual-english .en-bubble{
  position:absolute; top:14px; right:calc(50% - 64px);
  padding:8px 13px;
  background:#fff;
  border-radius:14px 14px 14px 4px;
  font-size:.82rem; font-weight:900; color:#2460b4;
  box-shadow:3px 4px 14px rgba(30,80,160,.18);
  letter-spacing:.07em; white-space:nowrap;
  animation:elr-float 3.4s ease-in-out infinite .5s;
}
.elr-visual-english .en-bubble::after{
  content:'';
  position:absolute; bottom:-8px; left:10px;
  border-left:8px solid transparent;
  border-top:9px solid #fff;
}

/* ── ラン&ウォーク ────────────────────────────────────────────────── */
.elr-visual-runwalk{
  background:radial-gradient(ellipse at 50% 28%, #f4fff6 0%, #ecfdf2 50%, #fffaec);
}
/* Runner figure */
.elr-visual-runwalk .rw-runner{
  position:absolute; top:14px; left:50%;
  transform:translateX(-50%);
  width:26px; height:50px;
  background:linear-gradient(180deg, #1f8a5b 55%, #0f5f3c);
  border-radius:50% 50% 30% 30%;
  box-shadow:4px 8px 18px rgba(31,138,91,.22);
  animation:elr-float 2.4s ease-in-out infinite;
}
.elr-visual-runwalk .rw-runner::before{
  content:'';
  position:absolute; top:-18px; left:50%; transform:translateX(-50%);
  width:22px; height:22px;
  background:radial-gradient(circle at 40% 35%, #2ecc8a, #1f8a5b);
  border-radius:50%;
  box-shadow:0 3px 8px rgba(31,138,91,.2);
}
/* Road */
.elr-visual-runwalk .rw-road{
  position:absolute; bottom:14px;
  width:188px; height:16px;
  background:linear-gradient(90deg, rgba(210,170,108,.28), rgba(210,170,108,.62) 50%, rgba(210,170,108,.28));
  border-radius:999px;
}
.elr-visual-runwalk .rw-road::before{
  content:'';
  position:absolute; top:50%; left:10%; right:10%; height:2px;
  background:repeating-linear-gradient(90deg, rgba(255,255,255,.72) 0 10px, transparent 10px 20px);
  transform:translateY(-50%);
}
/* Footstep marks */
.elr-visual-runwalk .rw-step{
  position:absolute; bottom:28px;
  width:13px; height:19px;
  background:linear-gradient(155deg, #2e9a64, #0f5f3c);
  border-radius:50% 50% 50% 35% / 58% 58% 42% 38%;
  box-shadow:2px 4px 9px rgba(15,95,60,.26);
}
.elr-visual-runwalk .rw-step.s1{left:calc(50% - 44px);transform:rotate(-14deg);animation:elr-float 2.2s ease-in-out infinite}
.elr-visual-runwalk .rw-step.s2{left:50%;transform:translateX(-50%) rotate(10deg);animation:elr-float 2.2s ease-in-out infinite .55s}
.elr-visual-runwalk .rw-step.s3{right:calc(50% - 56px);transform:rotate(-8deg);animation:elr-float 2.2s ease-in-out infinite 1.1s}

/* ── 農業 ────────────────────────────────────────────────────────── */
.elr-visual-agriculture{
  background:radial-gradient(ellipse at 50% 28%, #f8fff4 0%, #f0fce8 50%, #fef9e8);
}
.elr-visual-agriculture .ag-field{
  position:absolute; bottom:12px;
  width:168px; height:58px;
  background:linear-gradient(155deg, #8b6f42, #6a4e26);
  border-radius:50% 50% 38% 38% / 28% 28% 16% 16%;
  transform:rotateX(52deg);
  transform-origin:bottom center;
  box-shadow:0 14px 28px rgba(0,0,0,.2),inset 0 -4px 10px rgba(0,0,0,.12);
  display:flex; flex-direction:column;
  justify-content:space-around; padding:6px 12px;
  overflow:hidden;
}
.elr-visual-agriculture .ag-field span{
  display:block; height:4px;
  background:rgba(110,80,30,.52); border-radius:999px;
}
.elr-visual-agriculture .ag-sprout{
  position:absolute; bottom:50px; left:50%;
  transform:translateX(-50%);
  animation:elr-sprout 3s ease-in-out infinite;
}
.elr-visual-agriculture .ag-sprout::before{
  content:'';
  display:block;
  width:5px; height:36px;
  background:linear-gradient(180deg, #2ecc71, #1f8a5b);
  margin:0 auto; border-radius:0 0 2px 2px;
  box-shadow:1px 2px 6px rgba(31,138,91,.25);
}
.elr-visual-agriculture .ag-sprout::after{
  content:'';
  position:absolute; top:6px; left:-10px;
  width:24px; height:16px;
  background:linear-gradient(135deg, #2ecc71, #1aaf55);
  border-radius:0 14px 0 14px;
  box-shadow:1px 2px 5px rgba(31,138,91,.2);
}
.elr-visual-agriculture .ag-sun{
  position:absolute; top:14px; right:26px;
  width:38px; height:38px;
  border-radius:50%;
  background:radial-gradient(circle at 38% 34%, #ffe870, #ffb800);
  box-shadow:0 0 18px rgba(255,190,0,.52),0 4px 10px rgba(255,170,0,.28);
  animation:elr-pulse-sun 3.2s ease-in-out infinite;
}
.elr-visual-agriculture .ag-sun::before{
  content:'';
  position:absolute; inset:-10px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,200,0,.22) 0%, transparent 68%);
}

/* ── プログラムカード: カード下部余白調整 ─────────────────────────── */
.elr-program-card .elr-program-meta{margin-top:14px}

/* ── スマホ対応 ──────────────────────────────────────────────────── */
@media (max-width:680px){
  .elr-program-visual{height:145px;margin-bottom:16px}
  .elr-visual-soccer .sc-ball,.elr-visual-baseball .bb-ball{width:60px;height:60px}
  .elr-visual-ugoki .ug-ball.b2{width:40px;height:40px}
  .elr-visual-agriculture .ag-field{width:136px;height:50px}
}

/* モーション低減 */
@media (prefers-reduced-motion:reduce){
  .elr-visual-karate .krt-gi,.elr-visual-karate .krt-belt,
  .elr-visual-soccer .sc-ball,.elr-visual-baseball .bb-ball,
  .elr-visual-kendama .kd-ball,.elr-visual-ugoki .ug-ball,
  .elr-visual-english .en-globe,.elr-visual-english .en-bubble,
  .elr-visual-runwalk .rw-runner,.elr-visual-runwalk .rw-step,
  .elr-visual-agriculture .ag-sprout,.elr-visual-agriculture .ag-sun
  {animation:none}
}

/* Photo Grid */
.elr-photo-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:28px;
}
.elr-photo{
  border-radius:20px;
  overflow:hidden;
  aspect-ratio:4/3;
  background:#f0f0f0;
}
.elr-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
  display:block;
}
.elr-photo:hover img{transform:scale(1.05)}
.elr-photo-caption{
  font-size:.78rem;
  color:var(--muted);
  font-weight:700;
  margin-top:8px;
  text-align:center;
}

/* Image Card */
.elr-image-card{
  border-radius:var(--radius);
  overflow:hidden;
  background:#f8fafc;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.elr-image-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.elr-image-card-body{
  padding:20px;
}
.elr-image-card-body h3{margin:0 0 8px;font-size:1.12rem}
.elr-image-card-body p{margin:0;color:var(--muted);font-size:.94rem}

/* Schedule */
.elr-table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:22px;
  background:white;
  box-shadow:var(--shadow-soft);
}
.elr-table{
  width:100%;
  border-collapse:collapse;
  min-width:720px;
}
.elr-table th,.elr-table td{
  padding:16px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
.elr-table th{background:#f8fafc;font-weight:950}
.elr-table td strong{color:var(--primary-dark)}

/* Timeline/steps */
.elr-steps{counter-reset:step}
.elr-step{
  display:grid;
  grid-template-columns:58px 1fr;
  gap:16px;
  align-items:start;
}
.elr-step + .elr-step{margin-top:18px}
.elr-step::before{
  counter-increment:step;
  content:counter(step);
  width:50px;height:50px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--cyan));
  color:white;
  font-weight:950;
  box-shadow:0 10px 24px rgba(37,99,235,.22);
}

/* FAQ */
.elr-faq{max-width:900px;margin:34px auto 0}
.elr-faq-item{
  border:1px solid var(--line);
  border-radius:18px;
  background:white;
  overflow:hidden;
  margin-bottom:12px;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.elr-faq-q{
  width:100%;
  background:white;
  border:0;
  padding:18px 20px;
  text-align:left;
  font-weight:950;
  display:flex;
  justify-content:space-between;
  gap:14px;
  cursor:pointer;
}
.elr-faq-a{
  display:none;
  padding:0 20px 18px;
  color:var(--muted);
}
.elr-faq-item.is-open .elr-faq-a{display:block}
.elr-faq-item.is-open .elr-faq-q span:last-child{transform:rotate(45deg)}

/* Footer */
.elr-footer{
  background:#0f172a;
  color:white;
  padding:52px 0 28px;
}
.elr-footer-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(3,1fr);
  gap:26px;
}
.elr-footer a{display:block;color:rgba(255,255,255,.76);padding:5px 0}
.elr-footer p{color:rgba(255,255,255,.7)}
.elr-footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:30px;
  padding-top:20px;
  color:rgba(255,255,255,.58);
  font-size:.88rem;
}
.elr-footer .elr-logo-img{
  filter:brightness(0) invert(1);
  opacity:.88;
}
.elr-footer .elr-logo-text{
  color:white;
  font-size:.88rem;
}

/* Utility */
.elr-page-hero{
  padding:88px 0 62px;
  background:
    radial-gradient(circle at 18% 10%, rgba(37,99,235,.12), transparent 28%),
    radial-gradient(circle at 84% 15%, rgba(56,189,248,.14), transparent 26%),
    linear-gradient(180deg,#fff,#f7fbff);
}
.elr-mini-hero-grid{
  display:grid;
  grid-template-columns:1fr .8fr;
  gap:32px;
  align-items:center;
}
.elr-visual-box{
  min-height:380px;
  border-radius:34px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.92), transparent 26%),
    radial-gradient(circle at 82% 84%, rgba(255,255,255,.66), transparent 22%),
    linear-gradient(145deg, #f5f9ff 0%, #eff6ff 58%, #e0f2fe 100%);
  border:1px solid rgba(37,99,235,.14);
  box-shadow:0 24px 64px rgba(71, 98, 128, .16);
  overflow:hidden;
  position:relative;
}
.elr-network-visual{
  min-height:420px;
}
.elr-visual-box canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  z-index:2;
}
.elr-visual-box .elr-visual-fallback{
  z-index:1;
  background:linear-gradient(135deg,#f5f9ff,#e0f2fe);
}
.elr-highlight{
  color:var(--primary-dark);
  background:linear-gradient(transparent 62%, rgba(255,225,120,.45) 0);
}
.elr-notice{
  padding:16px 18px;
  border-radius:18px;
  background:#fff8e8;
  border:1px solid #ffe0aa;
  color:#7a4b00;
  font-weight:800;
}
.elr-check-list{
  list-style:none;
  margin:18px 0 0;
  padding:0;
}
.elr-check-list li{
  padding:9px 0 9px 30px;
  position:relative;
  color:#334155;
  font-weight:700;
}
.elr-check-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:8px;
  width:22px;height:22px;
  display:grid;place-items:center;
  background:var(--primary-soft);
  color:var(--primary-dark);
  border-radius:999px;
  font-weight:950;
}
.elr-cta-band{
  border-radius:34px;
  background:linear-gradient(135deg,var(--primary-deep),var(--primary));
  color:white;
  padding:38px;
  overflow:hidden;
  position:relative;
}
.elr-cta-band .elr-lead{color:rgba(255,255,255,.78)}
.elr-cta-band::after{
  content:"";
  position:absolute;right:-60px;bottom:-90px;
  width:230px;height:230px;border-radius:50%;
  background:rgba(255,255,255,.1);
}
.elr-filter-tabs{
  display:flex;flex-wrap:wrap;gap:10px;margin:28px 0 26px;
}
.elr-tab{
  border:1px solid var(--line);
  background:white;
  border-radius:999px;
  padding:10px 15px;
  font-weight:900;
  cursor:pointer;
}
.elr-tab.is-active{background:var(--primary);color:white;border-color:var(--primary)}
.elr-hidden{display:none!important}

/* Contact Form */
.elr-contact-form{
  max-width:680px;
  margin:0 auto;
}
.elr-form-group{
  margin-bottom:24px;
}
.elr-form-group label{
  display:block;
  font-weight:800;
  margin-bottom:8px;
  color:var(--ink);
  font-size:.97rem;
}
.elr-required{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  background:var(--orange);
  color:white;
  border-radius:999px;
  font-size:.7rem;
  font-weight:900;
  margin-left:6px;
  vertical-align:middle;
}
.elr-optional{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  background:var(--line);
  color:var(--muted);
  border-radius:999px;
  font-size:.7rem;
  font-weight:900;
  margin-left:6px;
  vertical-align:middle;
}
.elr-form-input,
.elr-form-textarea,
.elr-form-select{
  width:100%;
  border:1.5px solid var(--line);
  border-radius:14px;
  padding:13px 16px;
  font-size:1rem;
  background:white;
  color:var(--ink);
  transition:border-color .2s, box-shadow .2s;
  outline:none;
  appearance:none;
}
.elr-form-input:focus,
.elr-form-textarea:focus,
.elr-form-select:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}
.elr-form-textarea{
  resize:vertical;
  min-height:160px;
  line-height:1.7;
}
.elr-form-note{
  margin:20px 0;
  padding:14px 18px;
  background:var(--blue-soft);
  border:1px solid rgba(37,99,235,.18);
  border-radius:14px;
  color:#2d4a6d;
  font-size:.9rem;
  line-height:1.75;
}
.elr-form-note a{
  color:var(--primary-dark);
  text-decoration:underline;
  font-weight:800;
}

/* First member notice */
.elr-line-cta-box{
  background:linear-gradient(135deg,#e8fdf0,#f0fff8);
  border:2px solid rgba(6,199,85,.3);
  border-radius:24px;
  padding:28px;
  text-align:center;
}
.elr-line-cta-box h3{
  margin:0 0 10px;
  font-size:1.3rem;
  color:var(--ink);
}
.elr-line-cta-box p{
  margin:0 0 20px;
  color:var(--muted);
}

/* Registration notice */
.elr-reg-notice{
  background:linear-gradient(135deg,var(--primary-pale),#eef8ff);
  border:1.5px solid rgba(37,99,235,.24);
  border-radius:20px;
  padding:22px 24px;
  margin-top:22px;
}
.elr-reg-notice p{
  margin:0;
  font-weight:800;
  color:var(--primary-dark);
  font-size:.95rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width:980px){
  .elr-nav{display:none}
  .elr-menu-btn{display:inline-flex}
  .elr-mobile-nav.is-open{display:block}
  .elr-hero-grid{grid-template-columns:1fr}
  .elr-mini-hero-grid{grid-template-columns:1fr}
  .elr-hero{min-height:auto;padding:52px 0}
  .elr-hero-visual{min-height:460px}
  .elr-grid-4,.elr-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .elr-footer-grid{grid-template-columns:1fr 1fr}
  .elr-photo-grid{grid-template-columns:repeat(2,1fr)}
  .elr-logo-img{width:38px;height:38px}
  /* Visual box for farm/network on tablet */
  .elr-visual-box{min-height:320px}
  .elr-network-visual{min-height:360px}
}

@media (max-width:680px){
  /* Layout */
  .elr-container{width:calc(100% - 24px);max-width:100%}
  .elr-section{padding:56px 0}

  /* Header */
  .elr-header{
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(18px);
  }
  .elr-header-inner{
    min-height:72px;
    gap:12px;
    padding:8px 0;
    align-items:center;
  }
  .elr-logo{
    flex:1 1 auto;
    min-width:0;
    gap:10px;
  }
  .elr-logo-img{width:34px;height:34px}
  .elr-logo-text{
    font-size:.82rem;
    line-height:1.28;
    letter-spacing:-.02em;
  }
  .elr-header .elr-btns{
    flex:0 0 auto;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    width:126px;
  }
  .elr-header .elr-btn{
    width:100%;
    min-height:40px;
    padding:0 12px;
    border-radius:18px;
    font-size:.8rem;
    justify-content:center;
    box-shadow:none;
  }
  .elr-header .elr-btn-line{
    min-height:48px;
    padding:0 12px;
    font-size:.82rem;
  }
  .elr-header .elr-line-badge{
    width:24px;
    height:24px;
    font-size:8px;
  }
  .elr-menu-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 12px;
    border-radius:18px;
    font-size:.8rem;
    font-weight:900;
    color:var(--ink);
    background:linear-gradient(180deg,#ffffff,#f8fafc);
    box-shadow:0 8px 18px rgba(15,23,42,.05);
  }
  .elr-menu-btn::before{
    content:"";
    width:14px;
    height:10px;
    margin-right:8px;
    border-top:2px solid currentColor;
    border-bottom:2px solid currentColor;
    box-shadow:0 4px 0 0 currentColor inset;
    opacity:.9;
  }

  /* Hero */
  .elr-hero{padding:36px 0 32px;min-height:auto}
  .elr-hero-grid{gap:22px}
  .elr-hero-visual{
    height:440px;
    min-height:400px;
    max-height:480px;
    border-radius:24px;
    order:0;
  }
  .elr-map-ui{gap:8px;left:12px;right:12px;bottom:12px}
  .elr-map-chip{min-height:48px;padding:0 16px;font-size:.84rem}
  .elr-hero-visual-badge,
  .elr-network-badge{top:12px;left:12px;padding:9px 12px;font-size:.72rem}
  .elr-map-hotspot,
  .elr-network-label{padding:7px 10px;font-size:.72rem}
  .elr-pill{font-size:.74rem;padding:5px 9px}
  .elr-floating-card{font-size:.78rem;padding:9px 12px;right:12px;top:12px;border-radius:14px}

  /* Stat row → 3 columns stays, but compact */
  .elr-stat{padding:12px}
  .elr-stat strong{font-size:1.25rem}
  .elr-stat span{font-size:.76rem}

  /* Grids → single column */
  .elr-grid-2,
  .elr-grid-3,
  .elr-grid-4,
  .elr-price-compare{grid-template-columns:1fr}
  /* stat-row: 3 cols でコンパクトに維持 */
  .elr-stat-row{grid-template-columns:repeat(3,1fr);gap:8px}

  /* Buttons → full width, stacked */
  .elr-btns{flex-direction:column;align-items:stretch;gap:10px}
  .elr-btn{width:100%;justify-content:center;padding:14px 16px}
  .elr-header .elr-btns,
  .elr-header .elr-btn{
    width:auto;
  }

  /* Cards */
  .elr-card{padding:18px;border-radius:18px}
  .elr-offer,.elr-cta-band{padding:22px;border-radius:22px}

  /* Footer */
  .elr-footer-grid{grid-template-columns:1fr}

  /* Photo grid: 2 cols on mobile */
  .elr-photo-grid{grid-template-columns:repeat(2,1fr);gap:10px}

  /* Program card image */
  .elr-program-img{height:120px}

  /* Visual box */
  .elr-visual-box{min-height:300px}
  .elr-network-visual{min-height:320px}

  /* Form inputs: 16px+ prevents iOS auto-zoom */
  .elr-form-input,
  .elr-form-textarea,
  .elr-form-select{font-size:16px;padding:12px 14px;border-radius:12px}
  .elr-form-textarea{min-height:140px}
  .elr-contact-form{padding:0}

  /* FAQ */
  .elr-faq{margin-top:24px}
  .elr-faq-q{font-size:.94rem;padding:15px 16px}

  /* Inner page hero */
  .elr-page-hero{padding:52px 0 36px}
}

/* ── 480px: スマホ全般（iPhone 14 / Pro Max / Android 標準） ─────────── */
@media (max-width:480px){
  /* タイトル・見出しを小さくしてレイアウト崩れ防止 */
  .elr-title{font-size:1.55rem;line-height:1.22}
  .elr-heading{font-size:1.4rem;line-height:1.28}
  .elr-lead{font-size:.95rem}

  /* セクション余白をコンパクトに */
  .elr-section{padding:48px 0}

  /* 統計行をより詰める */
  .elr-stat{padding:10px 8px}
  .elr-stat strong{font-size:1.2rem}
  .elr-stat span{font-size:.75rem}

  /* ビジュアルボックス（農業・パートナー） */
  .elr-visual-box{min-height:280px}
  .elr-network-visual{min-height:300px}

  /* 料金エリア */
  .elr-price-main{font-size:1.9rem}

  /* フォントサイズ統一 */
  .elr-eyebrow{font-size:.82rem;padding:6px 11px}
}

/* ── 380px: iPhone SE・小型 Android ────────────────────────────────── */
@media (max-width:380px){
  .elr-container{width:calc(100% - 20px)}

  .elr-title{font-size:1.38rem;line-height:1.24}
  .elr-heading{font-size:1.22rem;line-height:1.3}
  .elr-lead{font-size:.92rem}

  .elr-section{padding:40px 0}
  .elr-page-hero{padding:44px 0 28px}

  /* ボタンの余白を詰める */
  .elr-btns{gap:8px;margin-top:20px}
  .elr-btn{padding:13px 14px;font-size:.9rem}

  /* ヒーロービジュアル */
  .elr-hero-visual{height:390px;min-height:390px}

  .elr-header-inner{gap:10px}
  .elr-header .elr-btns{width:118px}
  .elr-logo-text{font-size:.76rem}

  /* ピル・フローティングカードを小さく */
  .elr-map-chip{min-height:44px;padding:0 14px;font-size:.78rem}
  .elr-floating-card{font-size:.74rem;padding:7px 10px}

  /* カード */
  .elr-card{padding:14px;border-radius:16px}
  .elr-offer,.elr-cta-band{padding:18px;border-radius:18px}

  /* ステップ番号 */
  .elr-step::before{width:40px;height:40px;font-size:.9rem}
  .elr-step{grid-template-columns:48px 1fr;gap:12px}
}

/* ── 3D スキップ / エラー時の旧ルールを統合済み（上記で定義） ─────── */

/* ── 横スクロール完全防止 ───────────────────────────────────────────── */
@media (max-width:680px){
  .elr-hero::before{inset:-10%}
  .elr-hero-price-badge{
    display:grid;
    grid-template-columns:1fr;
    gap:2px;
    width:100%;
    max-width:100%;
    font-size:.86rem;
    padding:12px 14px;
    margin:16px 0 0;
    line-height:1.45;
  }
  .elr-hero-price-badge strong,
  .elr-hero-price-badge-lead,
  .elr-hero-price-badge-tail{
    display:block;
  }
  .elr-hero-price-badge strong{
    font-size:1rem;
  }
}
