/* ============================================================
   SHINDO — Community page (Build_13)
   Palette from the app's report screens: community teal, and the six felt-intensity colours.
   ============================================================ */
.mod--cm { --mc: #6FC2B4; --mc-ink: #2F8C7E; --l0: #8A8F99; --l1: #8EC5E8; --l2: #F2D46D; --l3: #F2A23A; --l4: #F26B3A; --l5: #E0453A; }

/* ---------- 1 · Hero — pin field ---------- */
.cm-hero { position: relative; height: 100svh; min-height: 720px; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(60% 50% at 60% 70%, rgba(111,194,180,0.12) 0%, rgba(111,194,180,0) 70%), linear-gradient(180deg, #07080c 0%, #0b0f14 70%, #090b10 100%); }
.cm-hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cm-hero__copy { position: absolute; z-index: 2; left: clamp(24px, 4.6vw, 88px); top: calc(var(--nav-h) + clamp(30px, 7vh, 90px)); max-width: min(620px, 88vw); display: grid; gap: 20px; pointer-events: none; will-change: transform, opacity; }
.cm-hero__copy .eyebrow { color: var(--mc); }
.cm-hero__title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(42px, 4.6vw, 78px); line-height: 1.02; letter-spacing: -0.04em; }
.cm-hero__hint { margin: 0; font-size: 15px; color: rgba(255,255,255,0.62); max-width: 36ch; }
.cm-hero__phone.iphone { position: absolute; z-index: 2; right: clamp(24px, 6vw, 120px); top: calc(var(--nav-h) + 4vh); width: min(270px, 19vw); will-change: transform; }

/* ---------- 3 · Scale — the shaking room ---------- */
.cm-scale { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; margin: 0 var(--inset); border-radius: var(--radius-xl);
  padding: clamp(70px, 8vw, 130px) clamp(24px, 4.6vw, 88px); color: #fff; background: #0b0c10; }
.cm-scale__copy { display: grid; gap: 22px; }
.cm-scale__list { display: grid; gap: 8px; }
.cm-scale__list button { display: grid; grid-template-columns: 34px 1fr 96px; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color 250ms, background 250ms; }
.cm-scale__list i { grid-row: 1 / 3; font-style: normal; font-family: var(--font-display); font-weight: 300; font-size: 30px; color: var(--lc); text-align: center; border-right: 1px solid rgba(255,255,255,0.12); }
.cm-scale__list b { font-weight: 600; font-size: 16px; } .cm-scale__list span { font-size: 13px; color: rgba(255,255,255,0.55); }
.cm-scale__list svg { grid-column: 3; grid-row: 1 / 3; width: 96px; height: 24px; overflow: visible; }
.cm-scale__list svg path { fill: none; stroke: var(--lc); stroke-width: 1.6; stroke-linejoin: round; }
.cm-scale__list button[data-l="0"] { --lc: var(--l0); } .cm-scale__list button[data-l="1"] { --lc: var(--l1); } .cm-scale__list button[data-l="2"] { --lc: var(--l2); } .cm-scale__list button[data-l="3"] { --lc: var(--l3); } .cm-scale__list button[data-l="4"] { --lc: var(--l4); } .cm-scale__list button[data-l="5"] { --lc: var(--l5); }
.cm-scale__list button[aria-pressed="true"] { border-color: var(--lc); background: color-mix(in srgb, var(--lc) 12%, transparent); }
.cm-scale__list button[data-l="0"] svg path { stroke-dasharray: 2 4; }
.cm-scale__room { position: relative; display: grid; gap: 14px; }
.cm-scale__cv { width: 100%; aspect-ratio: 5 / 4; border-radius: 28px; background: #15161c; display: block; }
.cm-scale__again { position: absolute; right: 16px; top: 16px; padding: 9px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.2); background: rgba(10,10,14,0.6); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.cm-scale__fine { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.5); }

/* ---------- 4 · Flip book (sticky) ---------- */
.cm-flip { position: relative; height: 280vh; }
.cm-flip__sticky { position: sticky; top: 0; height: 100vh; min-height: 620px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; padding: 0 clamp(24px, 4.6vw, 88px); overflow: hidden; }
.cm-flip__copy { display: grid; gap: 22px; }
.cm-flip__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cm-flip__steps li { display: grid; gap: 4px; padding: 14px 18px; border-left: 2px solid rgba(0,0,0,0.1); opacity: 0.4; transition: opacity 400ms, border-color 400ms; }
.cm-flip__steps li.is-on { opacity: 1; border-color: var(--mc); }
.cm-flip__steps b { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.cm-flip__steps span { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.cm-flip__book { position: relative; justify-self: center; width: min(420px, 34vw); aspect-ratio: 1320 / 1680; perspective: 2200px; }
.cm-leaf { position: absolute; left: 0; right: 0; top: 50%; margin: 0; transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; }
.cm-leaf img { backface-visibility: hidden; -webkit-backface-visibility: hidden; display: block; width: 100%; border-radius: 26px; box-shadow: 0 40px 90px rgba(10,14,20,0.35), 0 0 0 1px rgba(0,0,0,0.06); }
.cm-leaf::after { content: ""; position: absolute; inset: 0; border-radius: 26px; background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0) 40%); opacity: var(--shade, 0); pointer-events: none; }

/* ---------- 5 · Bins ---------- */
.cm-bins { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 90px); align-items: center; margin: 0 var(--inset); border-radius: var(--radius-xl);
  padding: clamp(70px, 8vw, 130px) clamp(24px, 4.6vw, 88px); color: #fff; background: radial-gradient(60% 60% at 70% 30%, #13242a 0%, rgba(19,36,42,0) 70%), #0a0d11; }
.cm-bins__copy { display: grid; gap: 20px; }
.cm-bins__copy > p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.75); }
.cm-bins__drop { justify-self: start; padding: 14px 24px; border-radius: 99px; border: 0; background: var(--mc); color: #06221d; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.cm-bins__drop:disabled { opacity: 0.5; cursor: default; }
.cm-bins__copy > p.cm-bins__fine { font-size: 13px; color: rgba(255,255,255,0.5); }
.cm-bins__stage { display: grid; gap: 10px; }
.cm-bins__cv { width: 100%; aspect-ratio: 6 / 5; display: block; border-radius: 28px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); }
.cm-bins__counts { list-style: none; margin: 0; padding: 0 4%; display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; }
.cm-bins__counts li { display: grid; gap: 2px; }
.cm-bins__counts b { font-family: var(--font-display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-bins__counts span { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.5); }
.cm-bins__counts li[data-l="0"] b { color: var(--l0); } .cm-bins__counts li[data-l="1"] b { color: var(--l1); } .cm-bins__counts li[data-l="2"] b { color: var(--l2); } .cm-bins__counts li[data-l="3"] b { color: var(--l3); } .cm-bins__counts li[data-l="4"] b { color: var(--l4); } .cm-bins__counts li[data-l="5"] b { color: var(--l5); }

/* ---------- 6 · Post ---------- */
.cm-post { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 90px); align-items: center; padding: clamp(80px, 10vw, 150px) clamp(24px, 4.6vw, 88px); }
.cm-post__demo { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-xl); overflow: hidden; background: #0d1626; display: grid; place-items: center; }
.cm-post__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.cm-card { position: relative; z-index: 2; width: min(400px, 84%); padding: 20px 20px 16px; border-radius: 24px; color: #fff; background: rgba(12,13,18,0.9); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 70px rgba(0,0,0,0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 14px; }
.cm-card__head { display: flex; align-items: center; gap: 14px; }
.cm-card__head i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 24px; color: #fff; background: var(--l3); }
.cm-card__head div { display: grid; gap: 2px; } .cm-card__head b { font-size: 17px; } .cm-card__head span { font-size: 13px; color: rgba(255,255,255,0.55); }
.cm-card__note { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.05); font-size: 16px; }
.cm-card__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-act { position: relative; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: #fff; font: inherit; text-align: left; cursor: pointer; overflow: visible; transition: border-color 250ms, transform 150ms; }
.cm-act:active { transform: scale(0.97); }
.cm-act svg { grid-row: 1 / 3; width: 36px; height: 36px; padding: 7px; border-radius: 50%; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cm-act[data-a="confirm"] svg { stroke: #7FE3A6; background: rgba(127,227,166,0.12); } .cm-act[data-a="helpful"] svg { stroke: #6FA2FF; background: rgba(111,162,255,0.14); }
.cm-act .tick { stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset 400ms; }
.cm-act.is-on .tick { stroke-dashoffset: 0; }
.cm-act.is-on[data-a="confirm"] { border-color: rgba(127,227,166,0.6); } .cm-act.is-on[data-a="helpful"] { border-color: rgba(111,162,255,0.6); }
.cm-act b { font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; } .cm-act span { font-size: 11.5px; color: rgba(255,255,255,0.6); line-height: 1.25; }
.cm-burst { position: absolute; left: 28px; top: 50%; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; animation: cmBurst 700ms ease-out forwards; }
@keyframes cmBurst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--bx), var(--by)) scale(0.4); opacity: 0; } }
.cm-card__report { justify-self: center; font-size: 13px; color: rgba(255,255,255,0.4); }
.cm-post__tag { position: absolute; z-index: 2; left: 18px; bottom: 14px; margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.cm-post__copy { display: grid; gap: 20px; }
.cm-post__copy > p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.cm-post__shot { width: min(440px, 100%); border-radius: 18px; box-shadow: 0 20px 50px rgba(10,14,20,0.18); }
.cm-post__rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-post__rules li { padding: 8px 14px 8px 32px; border-radius: 99px; font-size: 14px; position: relative; }
.cm-post__rules li::before { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; }
.cm-post__rules .ok { background: rgba(47,140,126,0.12); color: #1f6b60; } .cm-post__rules .ok::before { content: "✓"; }
.cm-post__rules .no { background: rgba(224,69,58,0.1); color: #a8322a; } .cm-post__rules .no::before { content: "✕"; }
.cm-post__link { justify-self: start; font-size: 15px; font-weight: 600; color: var(--mc-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 7 · Snap to grid ---------- */
.cm-snap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 90px); align-items: center; margin: 0 var(--inset); border-radius: var(--radius-xl);
  padding: clamp(70px, 8vw, 130px) clamp(24px, 4.6vw, 88px); color: #fff; background: #0b0d12; }
.cm-snap__stage { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; background: #111620; }
.cm-snap__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.cm-snap__read { position: absolute; left: 18px; top: 16px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: rgba(8,10,16,0.78); border: 1px solid rgba(255,255,255,0.1); font-variant-numeric: tabular-nums; }
.cm-snap__read span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.cm-snap__read b { font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.cm-snap__read b em { font-style: normal; color: rgba(255,255,255,0.28); transition: color 400ms; }
.cm-snap__read .g-state { color: var(--mc); min-height: 1.3em; }
.cm-snap__copy { display: grid; gap: 20px; }
.cm-snap__copy > p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.75); }
.cm-snap .cm-post__link { color: var(--mc); }

/* ---------- 8 · Statement — it shakes, then settles ---------- */
.cm-quake { padding: clamp(110px, 14vw, 220px) clamp(24px, 6vw, 140px); text-align: center; }
.cm-quake h2 { margin: 0 auto; max-width: 22ch; font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4.6vw, 78px); line-height: 1.1; letter-spacing: -0.035em; color: var(--ink); }
.cm-quake h2 > span + br + span { color: var(--mc-ink); }
.cm-quake .wd { display: inline-block; white-space: nowrap; }
html[lang="ja"] .cm-quake .wd { display: inline; white-space: normal; }
.cm-quake .ch { display: inline-block; will-change: transform; }

/* ---------- Homepage row ---------- */
.cm-home { position: relative; aspect-ratio: 16 / 13; width: 100%; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; background: radial-gradient(70% 60% at 50% 62%, #12232a 0%, #08090d 70%); }
.cm-home__in { position: absolute; inset: 0; transform: rotateX(calc(var(--rx, 0deg) * 0.5)) rotateY(calc(var(--ry, 0deg) * 0.5)) scale(1.03); transition: transform 600ms var(--ease); }
.cm-home__rings { position: absolute; left: 50%; top: 66%; width: 86%; aspect-ratio: 3 / 1; transform: translate(-50%, -50%); }
.cm-home__rings i { position: absolute; inset: calc(var(--k) * 16%) calc(var(--k) * 16%); border-radius: 50%; border: 1px solid rgba(111,194,180,0.28); animation: cmRing 4s ease-out infinite; animation-delay: calc(var(--k) * -1s); }
@keyframes cmRing { 0% { opacity: 0.2; } 30% { opacity: 1; } 100% { opacity: 0.2; } }
.cm-home__pin { position: absolute; left: var(--x); bottom: var(--b); width: 2px; height: 0; background: linear-gradient(transparent, var(--c)); animation: cmPin 5s cubic-bezier(.3,1.3,.5,1) infinite; animation-delay: var(--d); }
.cm-home__pin::after { content: ""; position: absolute; left: -4px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
@keyframes cmPin { 0% { height: 0; opacity: 0; } 12% { opacity: 1; } 30%, 80% { height: var(--h); opacity: 1; } 100% { height: var(--h); opacity: 0; } }
.cm-home__card { position: absolute; margin: 0; z-index: 2; }
.cm-home__card img { display: block; width: 100%; border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08); }
.cm-home__card--entry { width: 56%; left: 5%; top: 6%; }
.cm-home__card--thanks { width: 34%; right: 5%; bottom: 5%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cm-hero__phone.iphone { left: 50%; right: auto; top: auto; bottom: -14%; width: 52vw; transform: translateX(-50%); }
  .cm-hero__copy { top: calc(var(--nav-h) + 24px); }
  .cm-scale, .cm-bins, .cm-post, .cm-snap { grid-template-columns: 1fr; }
  .cm-scale__list button { grid-template-columns: 28px 1fr 64px; padding: 10px 12px; } .cm-scale__list svg { width: 64px; } .cm-scale__list i { font-size: 24px; }
  .cm-flip { height: 260vh; }
  .cm-flip__sticky { grid-template-columns: 1fr; align-content: center; gap: 24px; padding-top: 70px; }
  .cm-flip__book { width: min(300px, 70vw); grid-row: 2; }
  .cm-flip__steps li:not(.is-on) { display: none; }
  .cm-flip__copy .ap-h2 { font-size: 28px; }
  .cm-home__card--entry { width: 66%; } .cm-home__card--thanks { width: 40%; }
}
@media (prefers-reduced-motion: reduce) { .cm-home__rings i, .cm-home__pin { animation: none; } .cm-home__pin { height: var(--h); } }
