/* ============================================================
   ShiseiKeeper v32 — Claude Design 統合版（v31 → v32）
   Base tokens from Claude Design lp-styles.css
   ============================================================ */

:root {
  --primary: #1f6feb;
  --primary-hover: #1b63d6;
  --primary-soft: #eef5ff;
  --success: #1a9641;
  --success-soft: #edf7f0;
  --danger: #d6453f;
  --danger-soft: #fdeeed;
  --warn: #c2810a;
  --warn-soft: #fdf6e7;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted-1: #475569;
  --muted-2: #64748b;
  --muted-3: #94a3b8;
  --bg: #fbfdfe;
  --bg-tint: #f4f8fd;
  --border: #e2e8f0;
  --border-soft: #eef2f7;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(15,23,42,0.04), 0 8px 24px -12px rgba(15,23,42,0.12);
  --shadow-lift: 0 2px 6px rgba(15,23,42,0.05), 0 18px 44px -18px rgba(15,23,42,0.20);
  --container: 1180px;
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink-2);
  background: var(--bg); line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--primary); border-radius: 2px; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 700;
  color: var(--ink); line-height: 1.3; letter-spacing: -0.01em;
  text-wrap: balance; word-break: auto-phrase;
}
.section-head p { margin: 0; font-size: 16px; color: var(--muted-1); line-height: 1.85; }

.hidden { display: none !important; }

/* ---------- legacy UI hidden by default (JS hook DOM kept invisible) ---------- */
.legacy-ui { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; border: none; border-radius: var(--radius-sm);
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--primary); color: #fff; font-size: 17px; padding: 17px 32px;
  box-shadow: 0 8px 20px -8px rgba(31,111,235,0.55);
}
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(31,111,235,0.6); }
.btn--primary:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; }
.btn--lg { font-size: 19px; padding: 21px 44px; border-radius: 14px; }
.btn .ico { width: 20px; height: 20px; flex: none; }

/* ---------- accessibility: focus & reduced motion ---------- */
:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #1f6feb; outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  /* ループ・装飾アニメーション（呼吸リング/点滅/カウントダウン等）は抑制。
     短いUIトランジション（色フェード・コーチングパネルの開閉）は残す（状態フィードバックのため）。 */
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,253,254,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .name { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.brand .beta {
  font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border-radius: 6px; padding: 2px 7px; margin-left: 2px;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--muted-1); transition: color .15s ease; }
.nav a:hover { color: var(--primary); }
/* mobile hamburger nav */
.nav-burger { display: none; }
@media (max-width: 980px) {
  .site-header .container { position: relative; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 4px; flex: none;
    width: 40px; height: 40px; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer;
  }
  .nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-toggle:checked ~ .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: calc(100% + 8px); right: 12px; z-index: 200;
    min-width: 210px; padding: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15,23,42,.16);
  }
  .nav-toggle:checked ~ .nav a { padding: 11px 14px; border-radius: 8px; font-size: 15px; color: var(--ink); }
  .nav-toggle:checked ~ .nav a:hover { background: var(--bg-tint); color: var(--primary); }
}
.header-right { display: flex; align-items: center; gap: 26px; }
.btn--install {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff;
  font-size: 14.5px; font-weight: 700; padding: 11px 20px; border-radius: 10px; border: none;
  box-shadow: 0 6px 16px -8px rgba(31,111,235,0.6); transition: transform .14s ease, background .18s ease;
  white-space: nowrap; cursor: pointer;
}
.btn--install:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn--install .ico { width: 17px; height: 17px; flex: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 {
  margin: 18px 0 22px; font-size: clamp(38px, 4.6vw, 56px); font-weight: 800;
  color: var(--ink); line-height: 1.18; letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--success); }
.hero .lead { margin: 0 0 36px; font-size: 17px; color: var(--muted-1); line-height: 1.85; max-width: 30em; }
.hero .lead strong { color: var(--ink); font-weight: 700; }
.hero-body { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }

/* steps */
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-bottom: 22px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: -2px;
  width: 2px; background: var(--success); opacity: .55;
}
.step .badge {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; z-index: 1;
  background: #fff; color: var(--muted-2); border: 2px solid var(--border);
}
.step.is-active .badge { background: var(--success); color: #fff; border-color: var(--success); }
.step .s-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.step .s-desc { font-size: 13.5px; color: var(--muted-2); line-height: 1.65; margin-top: 2px; }

/* stat badges */
.stats { display: flex; flex-direction: column; gap: 12px; width: 150px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; text-align: center; background: #fff; }
.stat.is-green { background: var(--success-soft); border-color: #cce8d4; }
.stat .num { font-size: 25px; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
.stat .num .u { font-size: 14px; font-weight: 700; margin-left: 1px; }
.stat.is-blue .num { color: var(--primary); }
.stat.is-green .num { color: var(--success); }
.stat .cap { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; font-weight: 600; }

.hero-cta { margin-top: 38px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.text-link { color: var(--primary); font-weight: 600; font-size: 14.5px; border-bottom: 1px solid currentColor; padding-bottom: 1px; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; }

/* product card */
.product-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lift); border: 1px solid var(--border-soft); overflow: hidden; }
.pc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.pc-head .left { display: flex; align-items: center; gap: 10px; }
.pill-step { background: var(--success); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: .03em; }
.pc-head .title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.pc-head .proc { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--success); }
.pc-head .proc .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.pc-media { position: relative; aspect-ratio: 4/3; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- lh-details (hero CTA下に展開する詳細設定) ---------- */
.lh-details {
  margin-top: 18px; padding: 18px 20px; max-width: 560px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); max-height: 60vh; overflow-y: auto;
}
.lh-details-section { margin-bottom: 16px; }
.lh-details-section:last-child { margin-bottom: 0; }
.lh-details-section-title { font-size: 11.5px; font-weight: 800; color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.lh-details-rows { display: flex; flex-direction: column; gap: 4px; }
.lh-setting-row { padding: 4px 0; }
.lh-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.lh-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }

.lh-fine-rows { display: flex; flex-direction: column; gap: 12px; }
.lh-fine-row { padding: 8px 10px; background: var(--bg-tint); border: 1px solid var(--border-soft); border-radius: 8px; }
.lh-fine-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.lh-fine-val { background: var(--primary); color: #fff; padding: 1px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 800; min-width: 28px; text-align: center; }
.lh-fine-range { width: 100%; accent-color: var(--primary); cursor: pointer; }
.lh-fine-num { width: 80px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 12.5px; color: var(--ink); background: #fff; }
.lh-fine-hint { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; line-height: 1.45; }

/* ---------- before / after ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.ba-card { border-radius: var(--radius); border: 1px solid var(--border); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.ba-card.bad { border-color: #f2cecb; }
.ba-card.good { border-color: #cce8d4; }
.ba-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 18px 18px 0; padding: 6px 13px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; }
.ba-card.bad .ba-tag { background: var(--danger-soft); color: var(--danger); }
.ba-card.good .ba-tag { background: var(--success-soft); color: var(--success); }
.ba-illust { padding: 14px 18px 0; background: linear-gradient(180deg, #f8fafc, #eef2f7); }
.ba-load { padding: 20px 22px 24px; }
.ba-load .lbl { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.ba-load .val { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-top: 2px; }
.ba-load .val .u { font-size: 17px; font-weight: 700; margin-left: 3px; }
.ba-card.bad .val { color: var(--danger); }
.ba-card.good .val { color: var(--success); }
.ba-load .note { font-size: 13px; color: var(--muted-2); margin-top: 8px; line-height: 1.7; }
.ba-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ba-arrow .chip { display: inline-flex; align-items: center; gap: 7px; background: var(--primary); color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: var(--radius-pill); box-shadow: 0 8px 18px -8px rgba(31,111,235,0.5); white-space: nowrap; }
.ba-arrow .line { width: 2px; flex: 1; background: linear-gradient(var(--danger), var(--success)); border-radius: 2px; min-height: 40px; }
.ba-delta { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: var(--success-soft); color: var(--success); border: 1px solid #cce8d4; border-radius: 12px; padding: 8px 14px; white-space: nowrap; }
.ba-delta b { font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.ba-delta .ba-delta-sub { font-size: 11px; font-weight: 700; color: var(--success); opacity: .85; }

/* なぜ姿勢が大切か（座りすぎ・肩こり） */
.ba-why { margin-top: 32px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
.ba-why > h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 18px; text-align: center; letter-spacing: -0.01em; }
.ba-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ba-why-item { background: var(--bg-tint); border: 1px solid var(--border); border-radius: 12px; padding: 18px 18px 16px; }
.ba-why-ico { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.ba-why-item h4 { font-size: 14.5px; font-weight: 800; color: var(--ink); margin: 0 0 7px; }
.ba-why-item p { font-size: 13px; color: var(--muted-1); line-height: 1.75; margin: 0; }
.ba-why-note { font-size: 11.5px; color: var(--muted-2); margin: 16px 0 0; line-height: 1.6; text-align: center; }
@media (max-width: 760px) {
  .ba-why-grid { grid-template-columns: 1fr; }
  .ba-why { padding: 22px 18px; }
}

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: #d4e2f5; }
.feat .ico-wrap { width: 50px; height: 50px; border-radius: 14px; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); margin-bottom: 18px; }
.feat.is-green .ico-wrap { background: var(--success-soft); color: var(--success); }
.feat h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.feat p { margin: 0; font-size: 14px; color: var(--muted-1); line-height: 1.8; }

/* ---------- operator ---------- */
.operator { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 40px; box-shadow: var(--shadow-card); }
.op-photo { width: 168px; height: 168px; }
.op-avatar-placeholder { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--primary-soft), var(--success-soft)); display: grid; place-items: center; border: 1px solid var(--border); }
.op-photo picture { display: block; width: 100%; height: 100%; }
.op-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); display: block; }
.op-name { font-size: 23px; font-weight: 800; color: var(--ink); }
.op-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.op-meta span { font-size: 12.5px; font-weight: 600; color: var(--muted-1); background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 5px 13px; }
.op-quote { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.7; border-left: 3px solid var(--success); padding-left: 18px; margin: 0; }
.op-quote .from { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted-2); margin-top: 10px; line-height: 1.8; }
.op-links { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.op-links a { font-size: 13px; font-weight: 700; color: var(--primary); padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: #fff; transition: all .15s; }
.op-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); }

/* ---------- final CTA ---------- */
.final-cta { text-align: center; background: var(--bg-tint); }
.final-cta h2 { margin: 0 auto 14px; font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; color: var(--ink); line-height: 1.4; letter-spacing: -0.01em; max-width: 22em; text-wrap: balance; word-break: auto-phrase; }
.final-cta p { margin: 0 auto 36px; font-size: 16px; color: var(--muted-1); max-width: 34em; line-height: 1.85; }
.final-cta .reassure { margin-top: 20px; font-size: 13.5px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 36px 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { font-size: 13.5px; color: var(--muted-1); font-weight: 600; }
.foot-links a:hover { color: var(--primary); }
.foot-bottom { max-width: var(--container); margin: 22px auto 0; padding: 18px 24px 0; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot-bottom .v { font-size: 12px; color: var(--muted-3); }
.foot-bottom .pr { font-size: 12px; color: var(--muted-3); }

/* ============================================================
   監視中モーダル (C案 Hybrid)
   ============================================================ */
.sk-modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; font-family: var(--font); }
.sk-modal.hidden { display: none; }
.sk-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.sk-modal-card.v2 {
  position: relative; width: min(836px, 94vw); max-height: 92vh; background: #ffffff;
  color: var(--ink); border-radius: 20px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  animation: sk-modal-in 0.32s ease-out;
}
@keyframes sk-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.sk-modal-header.v2 {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: #fff; transition: background .4s ease;
}
.sk-modal-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sk-modal-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.sk-modal-dot { position: relative; width: 9px; height: 9px; border-radius: 99px; background: var(--success); flex-shrink: 0; transition: background-color .4s ease; }
.sk-modal-dot::before { content: ""; position: absolute; inset: 0; border-radius: 99px; background: inherit; animation: skPing 2.6s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes skPing { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.sk-modal-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.sk-modal-sub { font-size: 12.5px; color: var(--muted-2); }

.sk-modal-close, .sk-notify-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border);
  background: #fff; color: var(--muted-1); font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.sk-modal-close:hover { background: var(--bg-tint); border-color: var(--muted-3); color: var(--ink); }
.sk-notify-toggle { background: var(--success-soft); border-color: #cce8d4; color: var(--success); font-weight: 700; }
.sk-notify-toggle:hover { background: #ddeee2; }
.sk-notify-toggle.hidden { display: none; }
.sk-notify-toggle.sk-notify-off { background: var(--danger-soft); border-color: #f2cecb; color: var(--danger); }

.sk-modal-body.v2 { flex: 1; padding: 14px; display: flex; min-height: 0; }

.sk-modal-stage.v2 {
  flex: 1; position: relative; min-height: 360px;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  border-radius: 13px; overflow: hidden;
}
.sk-modal-stage.v2 video,
.sk-modal-stage.v2 canvas {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
}
.sk-modal-stage.v2 video { transform: scaleX(-1) !important; }
.sk-modal-stage.v2 canvas { transform: scaleX(-1) !important; pointer-events: none; }

.sk-corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--success); border-radius: 3px; z-index: 3; pointer-events: none; transition: border-color .4s ease; }
.sk-corner-tl { top: 14px; left:  14px; border-top-width: 2px; border-left-width:  2px; }
.sk-corner-tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.sk-corner-bl { bottom: 14px; left:  14px; border-bottom-width: 2px; border-left-width:  2px; }
.sk-corner-br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

.sk-modal-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #e6edf3;
  font-size: 13px; gap: 14px; z-index: 2;
}
.sk-spinner { width: 34px; height: 34px; border: 3px solid #334155; border-top-color: #58a6ff; border-radius: 99px; animation: sk-spin 0.9s linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }

.sk-countdown {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  z-index: 10; color: #fff; gap: 8px; pointer-events: none;
}
.sk-countdown.hidden { display: none; }
.sk-countdown-label-top { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: #58a6ff; text-transform: uppercase; }
.sk-countdown-number { font-size: 140px; font-weight: 900; color: #fff; text-shadow: 0 12px 40px rgba(31, 111, 235, 0.65); line-height: 1; letter-spacing: -0.04em; animation: sk-count-pop 0.9s ease-out; }
@keyframes sk-count-pop {
  0%   { transform: scale(0.55); opacity: 0; }
  35%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.sk-countdown-number.sk-count-done { font-size: 64px; color: var(--success); text-shadow: 0 12px 40px rgba(26, 150, 65, 0.65); }
.sk-countdown-label { font-size: 13.5px; font-weight: 600; color: #cbd5e1; margin-top: 4px; }

.sk-modal-footer.v2 {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg-tint); gap: 16px;
}
.sk-modal-status { font-size: 13px; color: var(--muted-1); font-weight: 600; flex: 1; min-width: 0; }
.sk-modal-status .ok { color: var(--success); font-weight: 700; }

.sk-modal-cta.v2 {
  padding: 11px 18px; border-radius: 10px; background: var(--success);
  color: #fff; border: none; font-size: 13.5px; font-weight: 800;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  box-shadow: 0 8px 18px -6px rgba(26, 150, 65, 0.45);
  transition: all .15s;
}
.sk-modal-cta.v2:hover:not(:disabled) { background: #167a37; transform: translateY(-1px); box-shadow: 0 12px 24px -6px rgba(26, 150, 65, 0.55); }
.sk-modal-cta.v2:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; }

/* 監視中モード時の状態色変化 */
.sk-modal.sk-monitoring .sk-modal-backdrop { background: rgba(15, 23, 42, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ============================================================
   レポートモーダル
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.55); padding: 20px; }
.modal.hidden { display: none !important; }
.modal-inner { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); max-width: 1080px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 32px 80px rgba(15, 23, 42, 0.35); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.modal-close { background: transparent; border: none; color: var(--muted-2); font-size: 24px; cursor: pointer; padding: 4px 12px; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 24px; }
.modal-body h3 { font-size: 14px; font-weight: 800; color: var(--primary); margin: 24px 0 12px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
/* くわしい内訳：折りたたみアコーディオン */
.report-accordion { border: 1px solid var(--border); border-radius: 12px; margin: 8px 0 4px; background: #fff; overflow: hidden; }
.report-accordion-summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; font-size: 14px; font-weight: 800; color: var(--ink);
}
.report-accordion-summary::-webkit-details-marker { display: none; }
.report-accordion-summary:hover { background: var(--bg-tint); }
.report-accordion-summary .acc-title { display: inline-flex; align-items: center; gap: 8px; }
.report-accordion-summary .acc-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--primary); }
.report-accordion-summary .acc-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 12px; font-weight: 600; }
.acc-chevron { display: inline-flex; align-items: center; transition: transform .22s ease; color: var(--muted-2); }
.report-accordion[open] .acc-chevron { transform: rotate(180deg); }
.report-accordion[open] .acc-hint { display: none; }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0 16px 16px; }
.summary-card {
  background: var(--bg-tint); border: 1px solid var(--border); border-left: 3px solid #cbd5e1;
  border-radius: 10px; padding: 12px 14px;
}
.summary-card.good { border-left-color: #22c55e; }
.summary-card.warn { border-left-color: #f5b301; }
.summary-card.bad  { border-left-color: #ef4444; }
.summary-card .sc-label { font-size: 11.5px; color: var(--muted-1); font-weight: 600; line-height: 1.4; }
.summary-card .sc-value { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.2; margin-top: 4px; letter-spacing: -0.01em; }
.summary-card.warn .sc-value { color: #b45309; }
.summary-card.bad  .sc-value { color: #b91c1c; }
.summary-card .sc-sub { font-size: 11.5px; color: var(--muted-2); font-weight: 600; margin-top: 3px; }
.timeline-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 11.5px; color: var(--muted-1); }
.timeline-legend span { display: inline-flex; align-items: center; gap: 5px; }
.timeline-legend i { width: 11px; height: 11px; border-radius: 999px; display: inline-block; }
.lg-sit { background: #22c55e; }
.lg-away { background: #f5b301; }
.lg-pause { background: #94a3b8; }
.lg-posture { background: #ef4444; }
.lg-elbow { background: #14b8a6; }
.lg-touch { background: #8b5cf6; }
.lg-sitalert { background: #06b6d4; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: flex-end; }
.modal-actions button { background: #fff; color: var(--primary); border: 1px solid #93c5fd; border-radius: 8px; padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.modal-actions button:hover { background: var(--primary-soft); }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .operator { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .op-quote { border-left: none; border-top: 3px solid var(--success); padding-left: 0; padding-top: 16px; }
  .nav { display: none; }
}
@media (max-width: 680px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { flex-direction: row; padding: 4px 0; }
  .ba-arrow .line { width: auto; height: 2px; min-height: 0; background: linear-gradient(90deg, var(--danger), var(--success)); }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-body { grid-template-columns: 1fr; }
  .stats { flex-direction: row; width: auto; flex-wrap: wrap; }
  .stat { flex: 1; min-width: 92px; }
  .feat-grid { grid-template-columns: 1fr; }
  .sk-modal-body.v2 { padding: 8px; }
  .sk-modal-stage.v2 { min-height: 280px; }
  .sk-countdown-number { font-size: 100px; }
}

/* ============================================================
   legal page styles（about/howto/price/faq/privacy/terms/contact）
   ============================================================ */
body.legal-page { background: var(--bg-tint); font-family: var(--font); }

.lh-header.lh-header-legal {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,253,254,0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; gap: 12px; flex-wrap: wrap;
}
.lh-logo {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--primary); text-decoration: none;
}
.lh-logo-icon { color: var(--primary); }
.lh-logo-text { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.lh-logo-badge { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary); letter-spacing: 0.05em; }
.lh-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lh-nav a { font-size: 13px; font-weight: 600; color: var(--muted-1); text-decoration: none; }
.lh-nav a:hover { color: var(--primary); }
.lh-nav-back { color: var(--primary) !important; font-weight: 700 !important; padding: 4px 10px; border-radius: 8px; background: var(--primary-soft); }
.lh-nav-back:hover { background: #dbeafe; }

.lh-footer.lh-footer-legal {
  border-top: 1px solid var(--border); background: #fff; padding: 22px 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 11.5px; color: var(--muted-3);
}
.lh-footer-meta { font-weight: 600; }
.lh-footer-pr { font-style: italic; }

.legal-section {
  max-width: 880px; margin: 32px auto;
  padding: 40px 48px; background: #fff;
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-card);
  color: var(--ink); font-size: 14px; line-height: 1.85;
}
.legal-section h2 {
  font-size: 26px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.015em; margin: 0 0 6px;
  padding-bottom: 14px; border-bottom: 3px solid var(--primary);
}
.legal-section h2::before {
  content: ""; display: inline-block; width: 8px; height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--success));
  border-radius: 4px; vertical-align: middle; margin-right: 12px; position: relative; top: -3px;
}
.legal-section h3 {
  font-size: 16px; font-weight: 800; color: var(--primary);
  margin: 28px 0 10px; padding-left: 12px; border-left: 4px solid var(--primary);
}
.legal-section p { margin: 10px 0; color: var(--ink-2); }
.legal-section p strong, .legal-section p b { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 65%, rgba(31,111,235,0.18) 65%); padding: 0 2px; }
.legal-section ul { margin: 12px 0; padding-left: 0; list-style: none; }
.legal-section li { position: relative; padding-left: 24px; margin: 6px 0; color: var(--ink-2); line-height: 1.8; }
.legal-section li::before { content: ""; position: absolute; left: 8px; top: 12px; width: 6px; height: 6px; background: var(--success); border-radius: 99px; }
.legal-section a { color: var(--primary); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(31,111,235,0.30); }
.legal-section a:hover { color: var(--primary-hover); border-bottom-color: var(--primary-hover); }
.legal-section code { background: var(--primary-soft); color: var(--primary); padding: 2px 7px; border-radius: 5px; font-size: 12.5px; font-family: 'JetBrains Mono', 'Consolas', monospace; font-weight: 600; border: 1px solid #dbeafe; }
.legal-meta { font-size: 12px; color: var(--muted-3); font-style: italic; margin: 0 0 24px; }

/* Price card */
.price-card {
  background: linear-gradient(135deg, var(--primary-soft), var(--success-soft));
  border: 2px solid var(--primary); border-radius: 18px;
  padding: 32px 28px; margin: 24px 0 36px; text-align: center;
  box-shadow: 0 18px 40px rgba(31, 111, 235, 0.12);
}
.price-badge { display: inline-block; background: linear-gradient(135deg, var(--primary), var(--success)); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.price-name { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 14px 0 12px; }
.price-amount-currency { font-size: 28px; font-weight: 800; color: var(--primary); }
.price-amount-num { font-size: 72px; font-weight: 900; color: var(--primary); letter-spacing: -0.04em; line-height: 1; }
.price-amount-period { font-size: 16px; font-weight: 700; color: var(--muted-2); margin-left: 4px; }
.price-tagline { font-size: 13.5px; color: var(--muted-1); font-weight: 600; margin: 0 0 22px; }
.price-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
.price-features li { position: relative; padding: 7px 0 7px 28px; font-size: 13.5px; color: var(--ink); border-bottom: 1px dashed var(--border); }
.price-features li::before { content: "✓"; position: absolute; left: 4px; top: 7px; color: var(--success); font-weight: 800; font-size: 15px; background: none; width: auto; height: auto; }
.price-cta { display: inline-block; padding: 14px 28px; background: linear-gradient(135deg, var(--primary), #1a4fb8); color: #fff !important; border-radius: 12px; font-size: 14.5px; font-weight: 800; text-decoration: none; border-bottom: none !important; box-shadow: 0 14px 28px rgba(31, 111, 235, 0.30); transition: all .15s; }
.price-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(31, 111, 235, 0.40); border-bottom: none !important; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.faq-item { background: var(--bg-tint); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; transition: all .15s; }
.faq-item:hover { background: #fff; border-color: var(--muted-3); }
.faq-item[open] { background: #fff; border-color: var(--primary); box-shadow: 0 8px 22px rgba(31, 111, 235, 0.10); }
.faq-item summary { font-size: 14.5px; font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; position: relative; padding-right: 32px; line-height: 1.55; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-55%); font-size: 24px; font-weight: 300; color: var(--primary); line-height: 1; transition: transform .2s; width: 24px; height: 24px; text-align: center; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { font-size: 13.5px; line-height: 1.85; color: var(--muted-1); margin: 12px 0 0; }
.faq-item p b { color: var(--ink); font-weight: 800; }

/* About profile card */
.about-profile {
  background: linear-gradient(135deg, var(--primary-soft), var(--success-soft));
  border: 1px solid #93c5fd; border-radius: 14px; padding: 22px 24px; margin-top: 14px;
}
.about-profile-name { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.about-profile-sub { font-size: 12.5px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.about-profile-bullets { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.about-profile-bullets li { position: relative; padding: 6px 10px 6px 26px; background: rgba(255,255,255,0.65); border-radius: 8px; font-size: 13px; line-height: 1.7; }
.about-profile-bullets li::before { content: ""; position: absolute; left: 10px; top: 14px; width: 6px; height: 6px; background: var(--success); border-radius: 99px; }
.about-profile-bullets li b { color: var(--ink); font-weight: 800; background: none; padding: 0; margin-right: 4px; }
.about-profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.about-profile-links a { display: inline-flex; align-items: center; padding: 7px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; color: var(--primary); text-decoration: none; border-bottom: 1px solid var(--border); transition: all .15s; }
.about-profile-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); }

/* Howto screen mockup layout */
.howto-screen-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 28px; margin: 18px 0 24px; align-items: start; }
@media (max-width: 760px) { .howto-screen-layout { grid-template-columns: 1fr; } }
.howto-screen-mock { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; font-family: var(--font); }
.howto-mock-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--border); gap: 6px; font-size: 10.5px; }
.howto-mock-header-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.howto-mock-header-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.howto-mock-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--success); flex-shrink: 0; }
.howto-mock-title { font-weight: 800; color: var(--ink); font-size: 11px; }
.howto-mock-sub { color: var(--muted-2); font-size: 9.5px; white-space: nowrap; }
.howto-mock-notify { background: var(--success-soft); border: 1px solid #6ee7b7; color: #047857; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-pill); white-space: nowrap; }
.howto-mock-close { color: var(--muted-2); font-size: 9.5px; font-weight: 600; }
.howto-mock-stage { height: 180px; background: linear-gradient(180deg, #0f172a, #1e293b); position: relative; display: flex; align-items: center; justify-content: center; }
.howto-mock-corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--success); border-radius: 2px; }
.howto-mock-corner-tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.howto-mock-corner-tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.howto-mock-corner-bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.howto-mock-corner-br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.howto-mock-person { display: flex; align-items: center; justify-content: center; }
.howto-mock-footer { padding: 8px 10px; background: var(--bg-tint); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.howto-mock-status { font-size: 10px; color: var(--muted-1); font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.howto-mock-ok { color: var(--success); font-weight: 800; }
.howto-mock-divider { color: var(--muted-3); }
.howto-mock-finish-wrap { display: flex; align-items: center; gap: 6px; }
.howto-mock-finish { background: var(--muted-1); color: #fff; font-size: 10px; font-weight: 800; padding: 6px 10px; border-radius: 8px; border: none; cursor: not-allowed; opacity: 0.85; font-family: inherit; }
.howto-mock-callout { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: var(--primary); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 800; flex-shrink: 0; box-shadow: 0 2px 6px rgba(31, 111, 235, 0.40); line-height: 1; }
.howto-mock-callout-stage { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; }
.howto-screen-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.howto-screen-legend li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 12px; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 10px; align-items: start; }
.howto-screen-legend li::before { display: none; }
.howto-screen-legend li > div { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.howto-screen-legend li b { color: var(--ink); }
.howto-legend-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--primary); color: #fff; border-radius: 99px; font-size: 13px; font-weight: 800; flex-shrink: 0; box-shadow: 0 4px 10px rgba(31, 111, 235, 0.30); line-height: 1; }

/* contact */
.contact-section { max-width: 880px; margin: 32px auto; padding: 40px 48px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-card); }
.contact-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: linear-gradient(135deg, var(--primary), #1a4fb8); color: #fff !important; border-radius: 12px; font-size: 14px; font-weight: 800; text-decoration: none; border-bottom: none !important; box-shadow: 0 14px 28px rgba(31, 111, 235, 0.30); transition: all .15s; }
.contact-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 32px rgba(31, 111, 235, 0.36); border-bottom: none !important; }
.contact-embed { margin-top: 20px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-tint); }
.contact-embed iframe { background: #fff; display: block; border: 0; width: 100%; }

@media (max-width: 700px) {
  .legal-section, .contact-section { margin: 16px 12px; padding: 24px 18px; }
  .legal-section h2 { font-size: 20px; }
  .legal-section h3 { font-size: 14px; }
  .lh-header.lh-header-legal { padding: 14px 18px; }
}


/* ===== PWA install button in header (v32) ===== */
.header-right { display: flex; align-items: center; gap: 16px; }
.btn--install {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px;
  background: #ffffff; color: #1f6feb; text-decoration: none;
  border: 1.5px solid #1f6feb; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 2px 6px rgba(31,111,235,.12);
}
.btn--install:hover { background: #f0f7ff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(31,111,235,.20); }
.btn--install .ico { width: 15px; height: 15px; }
.btn--install.hidden { display: none; }
@media (max-width: 860px) {
  .header-right { gap: 10px; }
  .btn--install { padding: 7px 12px; font-size: 12px; }
}


/* ===== 監視モーダル C案: 指標パネル + ステータスチップ (v35) ===== */
/* 監視中はモーダルbodyを横並び（カメラ + 右側指標） */

/* 右側指標パネル */

/* ステータスチップ（カメラ左上にオーバーレイ） */
.sk-status-chip {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 4; background: #1a9641; color: #fff;
  font-size: 12.5px; font-weight: 800; padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.25); white-space: nowrap;
  transition: background-color .4s ease;
}
.sk-status-chip.hidden { display: none; }

@media (max-width: 680px) {
      }

/* ===== Before/After 写真 (v36) ===== */
.ba-illust img{width:100%;height:100%;object-fit:cover;display:block;border-radius:12px;}
.ba-illust picture{display:block;width:100%;height:100%;}

/* ===== btn--outline + hero CTA row (v37) ===== */
.btn--outline{background:#fff;color:var(--primary);border:1.5px solid var(--primary);font-size:15px;padding:15px 26px;box-shadow:0 2px 8px rgba(31,111,235,.10);}
.btn--outline:hover{background:var(--primary-soft);transform:translateY(-1px);}
.hero-cta-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;}
@media(max-width:520px){.hero-cta-row{flex-direction:column;align-items:stretch;}.hero-cta-row .btn{width:100%;}}

/* ============================================================
   v40: 監視中C案コーチングレール + ミニ指標 + レポートスコアヘッダー
   ============================================================ */

/* --- C案コーチングレール（崩れた時だけ展開） --- */
.sk-modal-body.v2 { display: flex; gap: 0; align-items: stretch; transition: gap .35s ease; }
.sk-modal-stage.v2 { flex: 1 1 0; min-width: 0; }
.sk-rail {
  width: 0; flex: none; overflow: hidden; opacity: 0;
  transition: width .4s ease, opacity .3s ease, margin .35s ease;
}
.sk-modal-body.v2:has(.sk-rail.open) { gap: 14px; }
.sk-rail.open { width: 286px; opacity: 1; }
.sk-rail-inner {
  width: 286px; height: 100%; box-sizing: border-box;
  border: 1px solid #e2e8f0; border-radius: 14px;
  background: #fafbfc; padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background-color .4s ease, border-color .4s ease;
}
/* 監視中もランディングをぼかし背景として残す（削除しない） */
.lh-dismissed { pointer-events: none; }
.sk-rail-head { display: flex; align-items: center; gap: 10px; }
.sk-rail-icon {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 17px; font-weight: 800;
  background: #fff; border: 1px solid #e2e8f0;
}
.sk-rail-title { font-size: 14.5px; font-weight: 700; color: #0f172a; line-height: 1.4; }
.sk-rail-section-label { font-size: 11.5px; font-weight: 700; color: #64748b; letter-spacing: 0.02em; }
.sk-rail-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sk-rail-tips li {
  display: flex; gap: 9px; align-items: flex-start;
  background: #fff; border: 1px solid #eef2f7; border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; color: #0f172a; line-height: 1.6;
}
.sk-rail-tips li .n {
  width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 1px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.sk-rail-foot { margin-top: auto; font-size: 11.5px; color: #94a3b8; }

@media (max-width: 720px) {
  .sk-modal-body.v2 { flex-direction: column; }
  .sk-rail.open { width: 100%; }
  .sk-rail-inner { width: 100%; }
}

/* --- フッターのミニ指標（C案：常時） --- */
.sk-mini-metrics { display: inline-flex; gap: 18px; align-items: center; }
.sk-mini-metrics.hidden { display: none; }
.sk-mini { display: inline-flex; flex-direction: column; line-height: 1.25; }
.sk-mini .k { font-size: 10.5px; color: #64748b; font-weight: 600; }
.sk-mini .v { font-size: 15px; font-weight: 800; color: #0f172a; }

/* --- レポート KPIサマリー（Claude Design: 4枚横並び） --- */
.report-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px;
}
.report-kpi {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px 12px; text-align: center;
}
.report-kpi .v { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.report-kpi .k { font-size: 12px; color: #64748b; font-weight: 600; margin-top: 6px; }

@media (max-width: 680px) {
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* --- レポート ヘッダー右側・時間レンジ・フッターノート --- */
.modal-header-right { display: flex; align-items: center; gap: 12px; }
.report-timerange { font-size: 13px; color: var(--muted-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.report-note { margin: 18px 0 0; font-size: 13px; color: var(--muted-1); line-height: 1.7; }

@media (max-width: 560px) {
  .report-timerange { display: none; }
}

/* v45: PrivacyChip + paused veil (Claude Design忠実化) */
.sk-privacy-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;color:#475569;font-size:11.5px;font-weight:600;white-space:nowrap;margin-left:auto;}
.sk-paused-veil{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:rgba(241,245,249,0.82);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);text-align:center;padding:20px;}
.sk-paused-veil.hidden{display:none;}
.sk-veil-icon{width:52px;height:52px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 2px 10px rgba(15,23,42,0.10);}
.sk-veil-title{font-size:15px;font-weight:700;color:#0f172a;}
.sk-veil-sub{font-size:12.5px;color:#64748b;line-height:1.7;max-width:280px;}

/* v46: 呼吸リング(ambient breathing) + LiveDot skPing */
.sk-breathe-ring { position: absolute; inset: 0; z-index: 2; border-radius: 14px; pointer-events: none; box-shadow: inset 0 0 0 3px rgba(26,150,65,0.42); animation: skBreathe 4.6s ease-in-out infinite; }
.sk-breathe-ring.hidden { display: none; }
@keyframes skBreathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.about-profile-avatar{width:88px;height:88px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 4px 14px rgba(15,23,42,0.12);margin-bottom:12px;display:block;}

.howto-figure{margin:16px 0 8px;}
.howto-figure img{width:100%;height:auto;border-radius:12px;border:1px solid var(--border);box-shadow:0 4px 14px rgba(15,23,42,0.05);display:block;}
.howto-figure figcaption{font-size:12px;color:var(--muted-2);margin-top:8px;line-height:1.6;text-align:center;}
