/* ==========================================================
   RiPRO LP — Styles
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@500;700;900&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
img, svg { display:block; max-width:100%; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
a { color:inherit; text-decoration:none; }
ul, ol { list-style:none; }

/* ---------- Tokens ---------- */
:root {
  /* Palette: green (default) — refined, earthy green */
  --ink: #0f1a14;
  --ink-2: #1c2b22;
  --ink-3: #2f3a33;
  --muted: #6b7668;
  --muted-2: #9aa39a;
  --line: #e5e8e1;
  --line-2: #edefe8;
  --bg: #fafaf7;
  --bg-warm: #f4f1ea;
  --bg-cool: #eff3ec;
  --white: #ffffff;

  --brand: #2f7a48;         /* primary green */
  --brand-dk: #1d5a34;
  --brand-lt: #d7e6dc;
  --accent: #c94a2a;        /* warm terracotta accent (replaces harsh red) */
  --accent-dk: #a93616;

  --shadow-sm: 0 1px 2px rgba(15,26,20,.05), 0 1px 6px rgba(15,26,20,.04);
  --shadow-md: 0 2px 10px rgba(15,26,20,.06), 0 10px 30px rgba(15,26,20,.06);
  --shadow-lg: 0 4px 18px rgba(15,26,20,.10), 0 30px 60px rgba(15,26,20,.10);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --ff-sans: 'Zen Kaku Gothic New', 'Noto Sans JP', -apple-system, system-ui, sans-serif;
  --ff-en: 'Inter', var(--ff-sans);
  --ff-display: var(--ff-sans);

  --wrap: 1180px;
  --pad-sec: clamp(56px, 8vw, 112px);
}

/* Palette variants */
body[data-palette="earth"] {
  --brand: #8d6b3f; --brand-dk: #5a431f; --brand-lt: #ece2d0;
  --accent: #b94a1e; --accent-dk: #8a3413;
  --bg: #faf6ee; --bg-warm: #f2e9d6; --bg-cool: #f5ede0;
  --ink: #241a0f; --ink-2: #32271a; --ink-3: #4a3c28;
  --line: #e6dcc7; --line-2: #efe7d4;
  --muted: #7a6a54;
}
body[data-palette="dark"] {
  --brand: #65b383; --brand-dk: #3d8d5a; --brand-lt: #2e4a3a;
  --accent: #ff8a5e; --accent-dk: #d96a41;
  --bg: #0f1412; --bg-warm: #161c19; --bg-cool: #1a221d;
  --white: #191f1b;
  --ink: #f2f5ef; --ink-2: #e4e9df; --ink-3: #c7cfc2;
  --line: #28322b; --line-2: #1f2822;
  --muted: #95a296; --muted-2: #6f7b71;
}
body[data-palette="fresh"] {
  --brand: #1f8f6d; --brand-dk: #146045; --brand-lt: #d5ece2;
  --accent: #ea6a2a; --accent-dk: #b74c17;
  --bg: #ffffff; --bg-warm: #f7faf7; --bg-cool: #eef7f1;
}

/* Font variants */
body[data-font="noto"] { --ff-sans: 'Noto Sans JP', system-ui, sans-serif; }
body[data-font="mincho"] { --ff-sans: 'Noto Sans JP', system-ui, sans-serif; --ff-display: 'Noto Serif JP', serif; }

/* Density */
body[data-density="airy"] { --pad-sec: clamp(72px, 10vw, 140px); }
body[data-density="compact"] { --pad-sec: clamp(44px, 6vw, 80px); }

/* ---------- Base typography ---------- */
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { width:100%; max-width:var(--wrap); margin:0 auto; padding:0 clamp(16px, 3vw, 32px); }
.sp-only { display:none; }
@media (max-width: 720px) { .sp-only { display:inline; } .pc-only { display:none; } }

/* ---------- Reveal anim ---------- */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.on { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  background: var(--accent); color:#fff; font-weight:800; font-size:15px;
  padding: 14px 28px; border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(201,74,42,.55);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-dk); box-shadow: 0 12px 26px -6px rgba(201,74,42,.65); }
.btn-primary.btn-lg { font-size:17px; padding: 18px 32px; }
.btn-primary.btn-block { width:100%; }

.btn-ghost {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  background: rgba(255,255,255,.12); color:#fff; font-weight:800; font-size:15px;
  padding: 14px 28px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); }
.btn-ghost.btn-lg { font-size:17px; padding: 16px 28px; }
.btn-icon { font-size: 1em; opacity:.95; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top:0; z-index:80;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(15,26,20,.06);
}
body[data-palette="dark"] .nav { background: rgba(15,20,18,.8); border-bottom-color: rgba(255,255,255,.06); }
.nav-logo img { height: 30px; width:auto; object-fit: contain; }
body[data-palette="dark"] .nav-logo img { filter: brightness(1.2); }
.nav-links { display:flex; gap:22px; }
.nav-links a { font-size:13px; font-weight:600; color:var(--ink-3); position:relative; padding: 4px 0; }
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px; background:var(--brand); transform:scaleX(0); transform-origin:left; transition: transform .2s ease; }
.nav-links a:hover { color:var(--brand); }
.nav-links a:hover::after { transform:scaleX(1); }
.nav-cta { display:flex; align-items:center; gap:12px; }
.nav-tel-wrap { text-align:right; line-height:1.2; }
.nav-tel-label { font-size:10px; color:var(--muted); letter-spacing:.1em; }
.nav-tel { font-family:var(--ff-en); font-size:18px; font-weight:800; color:var(--ink); letter-spacing:.02em; }
.nav-btn { font-size: 13px; padding: 10px 18px; }

@media (max-width: 980px) { .nav-links { display:none; } }
@media (max-width: 560px) { .nav-tel-wrap { display:none; } .nav-btn { padding: 10px 14px; font-size:12px; } }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 90vh, 820px);
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width:100%; height:100%; object-fit:cover; }
.hero-scrim {
  position:absolute; inset:0;
  background: linear-gradient(100deg, rgba(15,26,20,.2) 0%, rgba(15,26,20,0) 40%),
              linear-gradient(to right, rgba(15,26,20,0) 50%, var(--ink) 95%);
}
.hero-body {
  position: relative; z-index:1;
  background: var(--ink);
  color: #fff;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 72px);
  display:flex; flex-direction:column; justify-content:center;
  max-width: 720px;
}
.hero-eyebrow { display:flex; align-items:center; gap:10px; font-size:12px; letter-spacing:.18em; color:rgba(255,255,255,.7); margin-bottom: 24px; font-weight:600; }
.hero-dot { width:8px; height:8px; border-radius:50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,74,42,.2); animation: dot 2s ease-in-out infinite; }
@keyframes dot { 0%,100%{box-shadow: 0 0 0 4px rgba(201,74,42,.2);} 50%{box-shadow: 0 0 0 10px rgba(201,74,42,0);} }
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 6vw, 72px); font-weight:900; line-height:1.1;
  letter-spacing: -0.01em; margin-bottom: 24px;
}
.hero-title em { font-style: normal; color: var(--brand); position:relative; display:inline-block; }
.hero-title em::after { content:""; position:absolute; left:0; right:0; bottom:.06em; height:.18em; background: rgba(47,122,72,.2); z-index:-1; }
body[data-palette="dark"] .hero-title em { color: #8fd5a8; }
.hero-lead { font-size: clamp(15px, 1.4vw, 17px); color: rgba(255,255,255,.85); margin-bottom: 20px; line-height:1.9; }
.hero-motto { font-family: var(--ff-display); font-size: 15px; color: rgba(255,255,255,.5); margin-bottom: 36px; letter-spacing: .04em; border-left: 2px solid var(--brand); padding-left: 14px; }
.hero-ctas { display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 28px; }
.btn-tel-num { font-family: var(--ff-en); letter-spacing: .02em; }
.hero-chips { display:flex; flex-wrap:wrap; gap:8px 16px; font-size:12.5px; color:rgba(255,255,255,.7); }
.hero-chips li { display:flex; align-items:center; }

/* Hero scroll indicator */
.hero-scroll { position:absolute; bottom: 24px; left: 50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:10px; z-index:2; color: rgba(255,255,255,.5); font-size:10px; letter-spacing:.3em; }
.hero-scroll-line { width:1px; height:40px; background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent); animation: scrollL 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollL { 0%{transform:scaleY(0);} 50%{transform:scaleY(1);} 100%{transform:scaleY(0); transform-origin:bottom;} }

/* Hero layout variants */
body[data-hero="full"] .hero { grid-template-columns: 1fr; }
body[data-hero="full"] .hero-media { grid-row:1; grid-column:1; }
body[data-hero="full"] .hero-body { grid-row:1; grid-column:1; background: transparent; max-width:unset; }
body[data-hero="full"] .hero-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,26,20,.45), rgba(15,26,20,.8)); }
body[data-hero="full"] .hero-body { text-align: left; padding: clamp(80px, 10vw, 140px) clamp(24px, 5vw, 80px); }

body[data-hero="split"] .hero { grid-template-columns: 1.1fr .9fr; }
body[data-hero="split"] .hero-body { background: var(--bg); color: var(--ink); order: -1; }
body[data-hero="split"] .hero-eyebrow { color: var(--muted); }
body[data-hero="split"] .hero-lead { color: var(--ink-3); }
body[data-hero="split"] .hero-motto { color: var(--muted); }
body[data-hero="split"] .hero-chips { color: var(--ink-3); }
body[data-hero="split"] .hero-scrim { background: none; }
body[data-hero="split"] .btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-media { height: 42vh; min-height: 280px; }
  .hero-body { padding: 40px 22px 60px; }
  body[data-hero="full"] .hero-media { height: 90vh; }
  body[data-hero="split"] .hero-body { order: 1; }
}

/* ---------- STATS ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display:grid; grid-template-columns: repeat(4, 1fr); padding: 28px 0; }
.stat { text-align:center; padding: 0 16px; position:relative; }
.stat + .stat::before { content:""; position:absolute; left:0; top:20%; bottom:20%; width:1px; background: var(--line); }
.stat-num { font-family: var(--ff-en); font-size: clamp(26px, 3vw, 38px); font-weight:800; color: var(--ink); letter-spacing: -0.01em; line-height:1.1; }
.stat-unit { font-size: .5em; font-weight:600; color: var(--muted); margin-left: 4px; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing:.02em; }
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding: 28px 0; }
  .stat + .stat::before { display:none; }
  .stat:nth-child(odd)::after { content:""; position:absolute; right:0; top:20%; bottom:20%; width:1px; background:var(--line); }
}

/* ---------- SECTIONS ---------- */
.sec { padding: var(--pad-sec) 0; }
.sec-head { text-align:center; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-eyebrow { font-family: var(--ff-en); font-size: 12px; font-weight:700; letter-spacing:.32em; color: var(--brand); margin-bottom: 12px; }
.sec-title { font-family: var(--ff-display); font-size: clamp(26px, 3.4vw, 42px); font-weight:900; color: var(--ink); line-height:1.3; letter-spacing: -0.01em; }
.sec-desc { font-size: 15px; color: var(--muted); margin-top: 14px; line-height:1.9; }
.sec-head-dark .sec-title, .sec-head-dark .sec-desc { color:#fff; }
.sec-head-dark .sec-desc { color: rgba(255,255,255,.7); }

/* ---------- PROBLEM ---------- */
.sec-problem { background: var(--bg-warm); position: relative; }
.sec-problem::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 20% 10%, rgba(47,122,72,.05) 0, transparent 40%), radial-gradient(circle at 80% 90%, rgba(201,74,42,.04) 0, transparent 40%); pointer-events:none; }
.problems { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position:relative; }
.problem {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.problem:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-lt); }
.problem-num { font-family: var(--ff-en); font-size: 13px; font-weight:800; color: var(--brand); letter-spacing: .08em; margin-bottom: 14px; }
.problem h3 { font-size: 17px; font-weight:800; color: var(--ink); margin-bottom: 8px; line-height:1.5; }
.problem p { font-size: 13.5px; color: var(--muted); line-height:1.8; }
@media (max-width: 860px) { .problems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .problems { grid-template-columns: 1fr; } }

.problem-bridge {
  display:flex; align-items:center; gap:18px;
  margin-top: 48px; text-align:center; justify-content:center;
}
.problem-bridge-line { height:1px; flex:1; background: linear-gradient(to right, transparent, var(--brand), transparent); max-width: 200px; }
.problem-bridge p { font-size:15px; color: var(--ink-3); }
.problem-bridge strong { color: var(--brand); font-weight:800; }

/* ---------- MERIT ---------- */
.sec-merit { background: var(--white); }
.merits { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 72px); }
.merit {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.merit:nth-child(even) .merit-visual { order: 2; }
.merit-visual {
  position:relative; aspect-ratio: 4/3;
  border-radius: var(--r-lg); overflow:hidden;
  background:
    repeating-linear-gradient(45deg, var(--bg-warm) 0 14px, var(--bg-cool) 14px 28px);
  display:flex; align-items:flex-end;
  border: 1px solid var(--line);
}
.ph-label {
  font-family: var(--ff-en); font-size: 11px; letter-spacing:.18em;
  color: var(--ink-3); background: rgba(255,255,255,.9);
  padding: 6px 12px; margin: 12px; border-radius: 4px; font-weight:600;
}
.merit-num { font-family: var(--ff-en); font-size: 60px; font-weight:800; color: var(--brand-lt); line-height:1; margin-bottom: 8px; }
body[data-palette="dark"] .merit-num { color: var(--brand-lt); opacity:.4; }
.merit-text h3 { font-family: var(--ff-display); font-size: clamp(20px, 2.2vw, 26px); font-weight:900; color: var(--ink); margin-bottom: 14px; line-height:1.4; }
.merit-text h3 strong { color: var(--accent); font-weight:inherit; }
.merit-text > p { font-size: 15px; color: var(--ink-3); line-height:1.9; margin-bottom: 18px; }
.merit-points { display:grid; gap:8px; }
.merit-points li { position:relative; padding-left: 22px; font-size: 13.5px; color: var(--ink-3); }
.merit-points li::before { content:""; position:absolute; left:0; top:.7em; width:12px; height:1px; background: var(--brand); }
@media (max-width: 780px) {
  .merit { grid-template-columns: 1fr; gap: 20px; }
  .merit:nth-child(even) .merit-visual { order: 0; }
}

/* ---------- SERVICE / ITEMS ---------- */
.sec-service { background: var(--bg); }
/* Category cards (6 grouping) */
.categories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 28px;
}
@media (max-width: 900px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .categories-grid { grid-template-columns: 1fr; } }

.cat-card {
  background: #ffffff; border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
  text-align: left; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(15,26,20,.28);
  border-color: var(--brand-lt);
}
.cat-card-free {
  background: linear-gradient(180deg, var(--brand-lt) 0%, #ffffff 60%);
  border-color: var(--brand);
}
.cat-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.cat-card-emoji { font-size: 28px; line-height: 1; }
.cat-card-count {
  font-family: var(--ff-en); font-weight: 800; font-size: 11px;
  color: var(--brand-dk); background: var(--brand-lt);
  padding: 4px 10px; border-radius: 999px; letter-spacing: .04em;
}
.cat-card-name {
  font-family: var(--ff-display);
  font-size: 17px; font-weight: 800; color: var(--ink);
  line-height: 1.4;
}
.cat-card-price {
  font-family: var(--ff-en); font-size: 14.5px; font-weight: 800;
  color: var(--brand-dk); letter-spacing: .02em;
}
.cat-card-free .cat-card-price { color: var(--brand-dk); }
.cat-card-items {
  font-size: 12px; color: var(--ink-3); line-height: 1.7;
  flex: 1;
}
.cat-card-cta {
  font-family: var(--ff-en); font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: .08em; margin-top: 4px;
}

/* Items table (collapsible) */
.items-table-details {
  margin-top: 8px;
  border-radius: var(--r-md);
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s ease;
}
.items-table-details[open] { border-color: var(--brand-lt); }
.items-table-details summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--ff-display);
  font-weight: 700; font-size: 14px; color: var(--ink);
  transition: background .2s ease;
}
.items-table-details summary::-webkit-details-marker { display: none; }
.items-table-details summary:hover { background: var(--bg-cool); }
.items-table-summary-left { display: flex; align-items: center; gap: 10px; }
.items-table-summary-icon { font-size: 18px; }
.items-table-summary-count {
  font-family: var(--ff-en); font-weight: 800; font-size: 11px;
  color: var(--brand-dk); background: var(--brand-lt);
  padding: 3px 9px; border-radius: 999px;
}
.items-table-summary-chev {
  font-size: 11px; color: var(--muted);
  transition: transform .2s ease;
}
.items-table-details[open] .items-table-summary-chev { transform: rotate(180deg); }
.items-table-wrap { padding: 0 20px 20px; }
.items-table-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-cool); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 12px;
}
.items-table-search input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--ink);
  flex: 1; min-width: 0;
}
.items-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.items-table thead {
  background: var(--bg-cool);
  border-bottom: 2px solid var(--brand-lt);
}
.items-table th {
  text-align: left; padding: 10px 12px;
  font-size: 11px; font-weight: 800; color: var(--ink-3);
  letter-spacing: .08em;
}
.items-table td {
  padding: 12px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.items-table tbody tr:last-child td { border-bottom: none; }
.items-table tbody tr:hover { background: var(--bg-cool); }
.items-table-cat {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  background: var(--brand-lt); color: var(--brand-dk);
  padding: 3px 8px; border-radius: 6px;
}
.items-table-price {
  font-family: var(--ff-en); font-weight: 800;
  color: var(--brand-dk); white-space: nowrap;
}
@media (max-width: 540px) {
  .items-table-wrap { padding: 0 12px 16px; }
  .items-table th, .items-table td { padding: 10px 8px; font-size: 12px; }
  .items-table-cat { font-size: 10px; }
}

.service-note { text-align:center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Bunbetsu */
.bunbetsu {
  margin-top: 56px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align:center;
}
.bunbetsu-head h3 { font-family: var(--ff-display); font-size: clamp(20px, 2.4vw, 28px); font-weight:900; color: var(--ink); margin-top: 8px; margin-bottom: 24px; line-height:1.4; }
.bunbetsu-head h3 em { font-style:normal; color: var(--accent); }
.bunbetsu-cmp { display:flex; align-items:center; justify-content:center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.bunbetsu-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .05em; }
.bunbetsu-new .bunbetsu-label { color: var(--brand); font-weight:700; }
.bunbetsu-price { font-family: var(--ff-en); font-size: 44px; font-weight:800; color: var(--ink); line-height:1; position:relative; }
.bunbetsu-price s { color: var(--muted-2); text-decoration-thickness: 3px; }
.bunbetsu-price span { font-size: 14px; font-weight:600; color: var(--muted); margin-left: 4px; }
.bunbetsu-new .bunbetsu-price { color: var(--brand); }
.bunbetsu-arrow { font-size: 28px; color: var(--brand); font-weight:800; }
.bunbetsu-badge { position:absolute; top:-12px; right:-30px; transform: rotate(8deg); background: var(--accent); color:#fff; font-family: var(--ff-en); font-weight:800; font-size:12px; padding: 4px 10px; border-radius: 4px; letter-spacing:.1em; }
.bunbetsu-note { font-size: 13px; color: var(--muted); }

/* NG */
.ng-block { margin-top: 48px; text-align:center; }
.ng-title { font-family: var(--ff-display); font-size: 20px; font-weight:900; color: var(--ink); margin-bottom: 18px; }
.ng-cards { display:flex; gap: 14px; justify-content:center; flex-wrap:wrap; }
.ng-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 28px;
  display:flex; align-items:center; gap: 14px;
  min-width: 240px;
}
.ng-icon { font-size: 22px; }
.ng-card h4 { font-size: 14px; font-weight:800; color: var(--accent); text-align:left; }
.ng-card p { font-size: 12px; color: var(--muted); text-align:left; }

/* ---------- PRICE / SIMULATOR ---------- */
.sec-price { background: var(--bg-cool); }
.sim {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  max-width: 960px; margin: 0 auto;
}
@media (max-width: 780px) { .sim { grid-template-columns: 1fr; } }
.sim-inputs {
  background: #fff; border-radius: var(--r-lg);
  padding: 24px; border: 1px solid var(--line);
}
.sim-row {
  display: grid; grid-template-columns: 1.3fr 1fr auto;
  gap: 10px; align-items:center;
  padding: 12px 0; border-bottom: 1px dashed var(--line-2);
}
.sim-row:last-of-type { border-bottom: none; }
.sim-row select, .sim-row .sim-qty {
  width: 100%;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
  font-size: 13px; color: var(--ink); font-family: inherit;
  transition: border-color .2s;
}
.sim-row select:focus, .sim-row .sim-qty:focus { outline: none; border-color: var(--brand); }
.sim-qty-wrap { position: relative; }
.sim-qty-wrap::after { content: attr(data-unit); position:absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); pointer-events:none; }
.sim-qty { padding-right: 32px !important; font-family: var(--ff-en); font-weight:600; text-align:right; }
.sim-qty::-webkit-inner-spin-button, .sim-qty::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.sim-qty { -moz-appearance: textfield; }
.sim-remove {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); color: var(--muted);
  transition: background .2s, color .2s;
}
.sim-remove:hover { background: #fee; color: var(--accent); }
.sim-addrow {
  margin-top: 10px; padding: 12px;
  width: 100%; border-radius: 10px;
  background: var(--bg-cool); color: var(--brand);
  font-weight:700; font-size: 13px; border: 1px dashed var(--brand-lt);
  transition: background .2s;
}
.sim-addrow:hover { background: var(--brand-lt); }
.sim-transport { display:flex; justify-content:space-between; align-items:center; margin-top: 14px; padding: 14px 12px; background: var(--bg); border-radius: 10px; font-size: 13px; color: var(--ink-3); }
.sim-transport strong { font-family: var(--ff-en); font-size: 16px; color: var(--ink); }

.sim-result {
  background: var(--ink); color:#fff;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: sticky; top: 80px; align-self: flex-start;
}
.sim-result-label { font-size: 12px; letter-spacing: .24em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.sim-result-sub { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.sim-result-amt { font-family: var(--ff-en); font-weight:800; font-size: 48px; margin: 18px 0; letter-spacing: -0.02em; }
.sim-breakdown { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.9; margin-bottom: 20px; min-height: 60px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.sim-breakdown .bd-row { display:flex; justify-content:space-between; }
.sim-breakdown .bd-row span:last-child { font-family: var(--ff-en); }
.sim-cta { margin-top: 8px; }
.sim-note { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 12px; line-height:1.7; }

.subsidy {
  max-width: 720px; margin: 36px auto 0;
  background: #fff; border-radius: var(--r-md);
  padding: 20px 24px;
  border-left: 4px solid var(--brand);
  display:flex; gap:16px; align-items:flex-start;
  box-shadow: var(--shadow-sm);
}
.subsidy-icon { font-size: 24px; }
.subsidy h4 { font-size: 15px; font-weight:800; color: var(--brand); margin-bottom: 6px; }
.subsidy p { font-size: 13px; color: var(--ink-3); line-height:1.8; }

/* ---------- BEFORE / AFTER ---------- */
.sec-ba { background: var(--white); }
.ba-gallery { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 580px)); gap: 24px; justify-content: center; max-width: 1180px; margin: 0 auto; }
@media (max-width: 820px) { .ba-gallery { grid-template-columns: 1fr; } }
.ba-card {
  background: var(--bg); border-radius: var(--r-lg); overflow:hidden;
  border: 1px solid var(--line);
}
.ba-images { display:grid; grid-template-columns: 1fr 1fr; gap:1px; background: var(--line); }
.ba-before, .ba-after {
  aspect-ratio: 1/1; position:relative; display:flex; align-items:flex-start;
}
.ba-before { background: repeating-linear-gradient(45deg, #d5cfbe 0 12px, #c7c1ad 12px 24px); }
.ba-after { background: repeating-linear-gradient(45deg, #d9e4d4 0 12px, #c4d4bf 12px 24px); }
.ba-tag {
  font-family: var(--ff-en); font-weight:800; font-size: 11px; letter-spacing: .15em;
  padding: 6px 10px; margin: 10px; border-radius: 4px;
}
.ba-tag-before { background: rgba(0,0,0,.6); color: #fff; }
.ba-tag-after { background: var(--brand); color: #fff; }
.ba-body { padding: 20px 22px; }
.ba-body h3 { font-size: 15px; font-weight:800; color: var(--ink); margin-bottom: 8px; }
.ba-body p { font-size: 13px; color: var(--muted); line-height:1.8; }

.cleanup-price {
  margin-top: 32px;
  background: var(--ink); color:#fff;
  border-radius: var(--r-lg);
  padding: 24px 32px;
  display:flex; align-items:center; gap:24px; flex-wrap:wrap;
  justify-content: space-between;
}
.cleanup-price-title { font-family: var(--ff-display); font-size: 20px; font-weight:800; margin-top: 4px; }
.cleanup-price-amt { font-family: var(--ff-en); font-size: 40px; font-weight:800; line-height:1; }
.cleanup-price-amt span { font-family: var(--ff-sans); font-size: 13px; color: rgba(255,255,255,.6); margin-left: 4px; font-weight:500; }
.cleanup-price-note { font-size: 11px; color: rgba(255,255,255,.55); line-height:1.8; }

/* ---------- VOICE ---------- */
.sec-voice { background: var(--bg-warm); }
.voices { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .voices { grid-template-columns: 1fr; } }
.voice {
  background: #fff; border-radius: var(--r-md); padding: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.voice blockquote { flex:1; position:relative; padding-left: 18px; margin-bottom: 18px; }
.voice blockquote::before { content: "“"; position:absolute; left:-4px; top:-14px; font-family: Georgia, serif; font-size: 60px; color: var(--brand-lt); line-height:1; }
.voice blockquote p { font-size: 14px; color: var(--ink-3); line-height:1.9; }
.voice figcaption { display:flex; align-items:center; gap:12px; padding-top: 14px; border-top: 1px solid var(--line); }
.voice-avatar { width: 42px; height: 42px; border-radius:50%; background: repeating-linear-gradient(45deg, var(--bg-warm) 0 6px, var(--bg-cool) 6px 12px); flex-shrink:0; }
.voice-name { font-size: 13px; font-weight:700; color: var(--ink); }
.voice-role { font-size: 11px; color: var(--muted); }

/* ---------- FLOW ---------- */
.sec-flow { background: var(--bg-cool); }
.flow { max-width: 720px; margin: 0 auto; position: relative; padding-left: 28px; }
.flow::before { content:""; position: absolute; left: 32px; top: 0; bottom: 44px; width: 2px; background: var(--brand-lt); }
.flow-step { display:flex; gap: 20px; align-items:flex-start; margin-bottom: 28px; position:relative; }
.flow-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); color: var(--brand);
  display:flex; align-items:center; justify-content:center; font-family: var(--ff-en); font-weight:800; font-size: 14px;
  flex-shrink:0; z-index:1;
  margin-left: -14px;
}
.flow-last .flow-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.flow-body { flex:1; padding-top: 6px; }
.flow-body h4 { font-family: var(--ff-display); font-size: 18px; font-weight:800; color: var(--ink); margin-bottom: 6px; }
.flow-last .flow-body h4 { color: var(--accent); }
.flow-body p { font-size: 13.5px; color: var(--ink-3); line-height:1.8; }

/* ---------- RECYCLE / PROCESS ---------- */
.sec-recycle { background: var(--bg-warm); }
.recycle-lead {
  max-width: 820px; margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center; font-size: 15px; line-height: 2;
  color: var(--ink-3);
}
.recycle-lead strong { color: var(--brand-dk); font-weight: 800; }

/* 4-panel grid */
.recycle-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto clamp(24px, 3vw, 36px);
}

.recycle-panel {
  background: #ffffff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.recycle-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -24px rgba(15,26,20,.28);
  border-color: var(--brand-lt);
}

.recycle-panel-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-cool);
}
.recycle-panel-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.recycle-panel:hover .recycle-panel-img img { transform: scale(1.04); }

.recycle-panel-num {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--ff-en); font-weight: 800; font-size: 14px;
  color: var(--brand-dk);
  width: 34px; height: 34px; border-radius: 50%;
  background: #ffffff; border: 2px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  letter-spacing: .02em;
}

.recycle-panel-scope {
  position: absolute; top: 12px; right: 12px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.recycle-scope-local {
  background: rgba(47,122,72,.92); color: #ffffff;
}
.recycle-scope-global {
  background: rgba(61,123,196,.92); color: #ffffff;
}

.recycle-panel-body {
  padding: 20px 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.recycle-panel-eyebrow {
  font-family: var(--ff-en); font-weight: 800; font-size: 10.5px;
  color: var(--brand); letter-spacing: .15em;
}
.recycle-panel-eyebrow-hero { color: var(--accent); }
.recycle-panel h3 {
  font-family: var(--ff-display);
  font-size: 16.5px; font-weight: 800;
  color: var(--ink); line-height: 1.5;
  margin-bottom: 4px;
}
.recycle-panel p {
  font-size: 13px; color: var(--ink-3); line-height: 1.85;
}
.recycle-panel p strong { color: var(--brand-dk); font-weight: 800; }

/* Hero panel (step 03) */
.recycle-panel-hero {
  border: 2px solid var(--brand);
  box-shadow: 0 20px 40px -22px rgba(47,122,72,.35);
  position: relative;
}
.recycle-panel-hero::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, transparent 60%, rgba(47,122,72,.06));
  pointer-events: none;
}
.recycle-panel-hero .recycle-panel-num {
  background: var(--brand); color: #ffffff; border-color: var(--brand);
}
.recycle-panel-hero-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--accent); color: #ffffff;
  font-family: var(--ff-display);
  font-size: 11px; font-weight: 800; line-height: 1.35;
  text-align: center;
  padding: 6px 10px; border-radius: 8px;
  box-shadow: 0 4px 10px rgba(201,74,42,.35);
}

/* Summary bar */
.recycle-summary {
  max-width: 880px; margin: 0 auto clamp(32px, 4vw, 48px);
  display: flex; align-items: stretch; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.recycle-summary-local, .recycle-summary-global {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  flex: 1 1 200px;
  text-align: center;
}
.recycle-summary-local {
  background: var(--brand-lt);
  border: 1px solid var(--brand);
}
.recycle-summary-global {
  background: #dce7f3;
  border: 1px solid #3d7bc4;
}
.recycle-summary-tag {
  font-family: var(--ff-display); font-weight: 800; font-size: 13px;
  color: var(--brand-dk);
}
.recycle-summary-global .recycle-summary-tag { color: #1c4a85; }
.recycle-summary-nums {
  font-family: var(--ff-en); font-weight: 800; font-size: 17px;
  color: var(--brand-dk); letter-spacing: .08em;
}
.recycle-summary-global .recycle-summary-nums { color: #1c4a85; }
.recycle-summary-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  color: var(--muted); flex: 0 0 auto;
}

/* Closing */
.recycle-closing {
  max-width: 760px; margin: clamp(28px, 3.5vw, 44px) auto 0;
  text-align: center;
}
.recycle-closing-text {
  font-size: clamp(16px, 1.6vw, 18px); font-weight: 700;
  color: var(--ink); line-height: 1.9; margin-bottom: 18px;
}
.recycle-closing-text strong { color: var(--accent); font-weight: 900; }
.recycle-footnote {
  font-size: 12px; color: var(--ink-3); line-height: 1.8;
  padding: 14px 18px; background: #ffffff;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  display: inline-block; text-align: left;
}

/* Responsive */
@media (max-width: 1080px) {
  .recycle-panels { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .recycle-panel-hero { grid-column: 1 / -1; }
  .recycle-panel-hero .recycle-panel-img { aspect-ratio: 21 / 9; }
}
@media (max-width: 640px) {
  .recycle-panels { grid-template-columns: 1fr; }
  .recycle-panel-hero { grid-column: 1; }
  .recycle-panel-hero .recycle-panel-img { aspect-ratio: 16 / 10; }
  .recycle-panel-body { padding: 16px; }
  .recycle-panel h3 { font-size: 15.5px; }
  .recycle-summary { flex-direction: column; gap: 8px; }
  .recycle-summary-arrow { transform: rotate(90deg); }
  .recycle-panel-hero-badge { font-size: 10px; padding: 5px 8px; }
}

/* ---------- MOVIE ---------- */
.sec-movie { background: var(--ink); padding: var(--pad-sec) 0; }
.movie-frame { max-width: 860px; margin: 0 auto; aspect-ratio: 16/9; background: #000; border-radius: var(--r-lg); overflow:hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.movie-frame iframe { width:100%; height:100%; border: none; }

/* ---------- FAQ ---------- */
.sec-faq { background: var(--bg); }
.faqs { max-width: 820px; margin: 0 auto; display:grid; gap: 10px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow:hidden; transition: border-color .2s; }
.faq[open] { border-color: var(--brand-lt); box-shadow: var(--shadow-sm); }
.faq summary { list-style:none; cursor:pointer; padding: 18px 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.faq summary::-webkit-details-marker { display:none; }
.faq-q { font-size: 14.5px; font-weight:700; color: var(--ink); flex:1; line-height:1.6; }
.faq-q::before { content: "Q. "; color: var(--brand); font-family: var(--ff-en); font-weight:800; font-size: 13px; margin-right: 4px; }
.faq-icon { width: 14px; height: 14px; position:relative; flex-shrink:0; }
.faq-icon::before, .faq-icon::after { content:""; position:absolute; background: var(--ink-3); transition: transform .25s ease; }
.faq-icon::before { left:0; right:0; top: 50%; height: 2px; margin-top:-1px; }
.faq-icon::after { top:0; bottom:0; left: 50%; width: 2px; margin-left:-1px; }
.faq[open] .faq-icon::after { transform: rotate(90deg); }
.faq-a { padding: 0 22px 20px; border-top: 1px solid var(--line-2); margin-top: 0; padding-top: 14px; }
.faq-a p { font-size: 13.5px; color: var(--ink-3); line-height: 1.9; }

/* ---------- ABOUT ---------- */
.sec-about { background: var(--bg-warm); }
.about { max-width: 960px; margin: 0 auto; background:#fff; border-radius: var(--r-lg); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-sm); }
.about-msg { display:grid; grid-template-columns: .8fr 1fr; }
.about-portrait {
  position:relative; min-height: 240px;
  background: repeating-linear-gradient(45deg, #d5cfbe 0 12px, #c7c1ad 12px 24px);
  display:flex; align-items:flex-end;
}
.about-msg-body { padding: 32px 36px; }
.about-eyebrow { font-family: var(--ff-en); font-size: 11px; letter-spacing: .3em; color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.about-msg-body h3 { font-family: var(--ff-display); font-size: 22px; font-weight:900; color: var(--ink); margin-bottom: 14px; line-height:1.5; }
.about-msg-body p { font-size: 13.5px; color: var(--ink-3); line-height: 1.9; margin-bottom: 12px; }
.about-sign { text-align:right; font-family: var(--ff-display); font-weight:700; color: var(--ink); }
.about-tbl { width:100%; border-collapse:collapse; border-top: 1px solid var(--line); }
.about-tbl th, .about-tbl td { padding: 14px 20px; font-size: 13px; text-align:left; border-bottom: 1px solid var(--line-2); }
.about-tbl th { width: 140px; color: var(--brand); font-weight:700; background: var(--bg); }
.about-tbl td { color: var(--ink-3); }
@media (max-width: 720px) {
  .about-msg { grid-template-columns: 1fr; }
  .about-portrait { min-height: 200px; }
  .about-msg-body { padding: 26px 22px; }
  .about-tbl th { width: 100px; }
}

/* ---------- CONTACT ---------- */
.sec-contact {
  background: linear-gradient(160deg, var(--ink) 0%, var(--brand-dk) 120%);
  color:#fff;
}
body[data-palette="dark"] .sec-contact { background: linear-gradient(160deg, #0a0e0c 0%, #1e3e2a 100%); }
.contact-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tel-card {
  background: rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align:center;
  border: 1px solid rgba(255,255,255,.12);
}
.contact-tel-label { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .1em; margin-bottom: 12px; }
.contact-tel-num { display:block; font-family: var(--ff-en); font-size: clamp(30px, 4vw, 46px); font-weight:800; letter-spacing:.02em; color:#fff; margin-bottom: 10px; }
.contact-tel-sub { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.contact-tel-chips { display:flex; flex-direction: column; gap: 6px; text-align: left; max-width: 220px; margin: 0 auto; }
.contact-tel-chips li { font-size: 13px; color: rgba(255,255,255,.85); }
.contact-form {
  background: #fff; color: var(--ink);
  border-radius: var(--r-lg);
  padding: 28px;
  display:grid; gap: 14px;
}
.contact-form-title { font-size: 14px; font-weight:800; color: var(--ink); margin-bottom: 4px; }
.contact-form label { font-size: 12px; font-weight:700; color: var(--ink-3); display:block; }
.contact-form input, .contact-form textarea {
  width:100%; margin-top: 6px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font-size: 14px;
  font-family: inherit; color: var(--ink);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); }
.contact-form textarea { resize: vertical; }
.req { display:inline-block; margin-left: 4px; padding: 1px 6px; background: var(--accent); color:#fff; border-radius: 3px; font-size: 9.5px; letter-spacing:.05em; vertical-align: 1px; }
.chk-row { display:flex; flex-wrap:wrap; gap: 10px 14px; margin-top: 8px; }
.chk { display:inline-flex !important; align-items:center; gap: 6px; font-weight:500 !important; font-size: 13px !important; color: var(--ink-3) !important; cursor: pointer; }
.chk input { width: 16px !important; height: 16px !important; margin: 0 !important; padding: 0 !important; }
.contact-privacy { font-size: 11px; color: var(--muted); text-align:center; margin-top: 4px; }

/* ---------- FOOTER ---------- */
.footer { background: #0a100d; color: rgba(255,255,255,.7); padding: 48px 0 20px; }
.footer-grid { display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-logo { height: 28px; width:auto; opacity:.9; margin-bottom: 12px; filter: brightness(1.1); }
.footer-brand p { font-family: var(--ff-display); font-size: 14px; color: rgba(255,255,255,.5); line-height:1.7; }
.footer-col h5 { font-family: var(--ff-en); font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.5); margin-bottom: 14px; font-weight:700; }
.footer-col a, .footer-col span { display:block; font-size: 13px; color: rgba(255,255,255,.75); padding: 4px 0; line-height:1.7; }
.footer-col a:hover { color: #fff; }
.footer-copy { text-align:center; font-size: 11px; color: rgba(255,255,255,.35); margin-top: 20px; }

/* ---------- FAB (mobile floating CTA) ---------- */
.fab {
  display:none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.fab a {
  flex:1; display:flex; flex-direction: column; align-items:center; justify-content:center; gap:2px;
  font-size: 11px; font-weight:700;
  padding: 10px; border-radius: 12px;
}
.fab-tel { background: var(--brand); color:#fff; }
.fab-ct { background: var(--accent); color:#fff; }
.fab-ic { font-size: 18px; }
@media (max-width: 720px) { .fab { display:flex; } main { padding-bottom: 72px; } }

/* ---------- MODAL ---------- */
.modal-ov {
  display:none; position:fixed; inset:0;
  background: rgba(15,26,20,.6); z-index: 200;
  padding: 20px;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-ov.open { display:flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes slideUp { from{opacity:0; transform: translateY(20px);} to{opacity:1; transform:none;} }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--ink-3);
  font-size: 20px;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-sm);
}

/* Category modal */
.cat-modal {
  background: #ffffff;
  border-radius: var(--r-lg);
  width: 100%; max-width: 720px; max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s cubic-bezier(.2,.7,.2,1);
}
.cat-modal-header {
  padding: 28px 28px 18px;
  background: linear-gradient(180deg, var(--brand-lt) 0%, #ffffff 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  position: sticky; top: 0; z-index: 2;
  border-bottom: 1px solid var(--line);
}
.cat-modal-eyebrow {
  font-family: var(--ff-en); font-weight: 800; font-size: 12px;
  color: var(--brand-dk); letter-spacing: .08em; margin-bottom: 6px;
}
.cat-modal-title {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 900;
  color: var(--ink); line-height: 1.3; margin-bottom: 6px;
}
.cat-modal-summary {
  font-size: 13px; color: var(--ink-3); line-height: 1.7;
}
.cat-modal-body {
  padding: 16px 28px 28px;
  display: flex; flex-direction: column; gap: 24px;
}
.cat-modal-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #ffffff;
}
.cat-modal-item-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  background: var(--bg-cool);
  border-bottom: 1px solid var(--line);
}
.cat-modal-item-head h4 {
  font-family: var(--ff-display);
  font-size: 15px; font-weight: 800; color: var(--ink);
  line-height: 1.4; margin: 0;
}
.cat-modal-item-price {
  font-family: var(--ff-en); font-size: 14px; font-weight: 800;
  color: var(--brand-dk);
  background: #ffffff; border: 1px solid var(--brand-lt);
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.cat-modal-subs {
  padding: 12px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 540px) { .cat-modal-subs { grid-template-columns: 1fr; } }
.cat-modal-sub {
  display: flex; gap: 12px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: var(--bg);
  align-items: flex-start;
}
.cat-modal-sub-img {
  flex: 0 0 100px; aspect-ratio: 4/3;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-cool);
  display: flex; align-items: center; justify-content: center;
}
.cat-modal-sub-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-modal-sub-img .ph-label { font-size: 9px; color: var(--muted); padding: 4px 6px; }
.cat-modal-sub-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.cat-modal-sub-label {
  font-size: 12.5px; font-weight: 800; color: var(--ink);
  line-height: 1.4;
}
.cat-modal-subdesc {
  font-size: 11.5px; color: var(--ink-3); line-height: 1.7;
}
.cat-modal-note {
  font-size: 11px; color: var(--accent-dk); line-height: 1.7;
  background: #fff5f0; border-left: 2.5px solid var(--accent);
  padding: 6px 10px; border-radius: 4px; margin-top: 4px;
}

@media (max-width: 540px) {
  .cat-modal-header { padding: 22px 20px 14px; }
  .cat-modal-body { padding: 14px 20px 22px; gap: 18px; }
  .cat-modal-item-head { padding: 12px 14px; }
  .cat-modal-item-head h4 { font-size: 14px; }
  .cat-modal-sub-img { flex-basis: 80px; }
}

/* ---------- TWEAK PANEL ---------- */
.tweak-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 150;
  width: 280px; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 16px;
  font-family: var(--ff-sans);
  border: 1px solid var(--line);
}
body[data-palette="dark"] .tweak-panel { background: #1a211c; color: #fff; border-color: rgba(255,255,255,.1); }
.tweak-head { display:flex; align-items:baseline; justify-content:space-between; padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tweak-head strong { font-size: 14px; color: var(--ink); }
.tweak-head span { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-label { font-size: 11px; font-weight:700; color: var(--muted); letter-spacing: .08em; margin-bottom: 8px; }
.tweak-opts { display:flex; flex-wrap:wrap; gap: 6px; }
.tweak-opts button {
  font-size: 11.5px; font-weight:600;
  padding: 7px 12px; border-radius: 8px;
  background: var(--bg); color: var(--ink-3);
  border: 1px solid var(--line);
  transition: all .15s ease;
}
.tweak-opts button:hover { border-color: var(--brand); color: var(--brand); }
.tweak-opts button.active { background: var(--ink); color:#fff; border-color: var(--ink); }
@media (max-width: 720px) { .tweak-panel { left: 12px; right: 12px; bottom: 84px; width: auto; } }
