/* ===== AI Hub (AI体験ひろば) Phase 1 styles — hub pages only =====
   v9 (2026-11-15, full-site WCAG contrast audit): the four
   TEXT-bearing gradient buttons — .hub-fontbtn[aria-pressed="true"],
   .hub-btn-main, .hub-btn-play, .hub-activity — end at the deep
   azure #0077B6 instead of the bright cyan stop: white text over
   the cyan end measured 2.00:1; at #0077B6 it is 4.63:1.
   Decorative gradients (.hub-eq bars, .hub-mini-card) carry no
   text and keep the bright cyan by design.
   v2 (2026-11-08 fix round): font-toggle mechanism repaired, spacing
   widened, per-section decorative motion added. v3 (2026-11-08):
   Chloe, the AI concierge, added as the hub guide (hero + tool intro
   rows + closing rows); asset renamed so the 30-day /static cache
   cannot serve the previous build. Loaded via head_extra
   on hub pages; site-v10.css is untouched.
   Rules honoured: base font >= 18px in hub scope; tap targets >= 48px;
   every boxed component sets its children's margins explicitly (the
   site-v10 "Spacing normalization" pattern — bare <p> margins are never
   relied on inside a box); no filter: blur() anywhere (radial-gradient
   fades only, iOS Safari rule); nothing conveyed by colour alone;
   all animation is transform/opacity only, inside a
   prefers-reduced-motion: no-preference block. */

.hub-wrap{font-size:18px;line-height:1.75;color:var(--deepDark)}
.hub-wrap.hub-large{font-size:22px}
.hub-wrap .prose{max-width:46rem}
/* Font-size toggle mechanism: site-v10.css pins .prose to
   font-size:1.0625rem (root-relative), and every hub page renders its
   content inside .prose — so in v1 the .hub-large size change on
   .hub-wrap was inherited by nothing and the toggle looked dead.
   The hub therefore re-pins .prose inside hub scope (specificity
   0,2,0 beats the site rule): 18px base, 22px in large mode. All hub
   em-based sizes and inherited body text resolve from .prose, so the
   whole hub scales; site chrome outside .hub-wrap is unaffected. */
.hub-wrap .prose{font-size:1.125rem}
.hub-wrap.hub-large .prose{font-size:1.375rem}
.hub-wrap h1{font-size:1.9em;line-height:1.3;margin:.25em 0 .5em}
.hub-lead{font-size:1.08em;font-weight:600;margin:.6em 0 1em}
.hub-h2{font-size:1.35em;line-height:1.4;margin:1.8em 0 .65em}
.hub-h3{font-size:1.1em;line-height:1.45;margin:1.25em 0 .5em}
.hub-wrap p{margin:.6em 0}
.hub-list{margin:.5em 0 .9em;padding-left:1.3em}
.hub-list li{margin:.4em 0}
.hub-source{color:var(--softSlate);font-size:.92em}
.hub-q{font-weight:700;margin:1em 0 .5em}
.hub-quote{background:var(--slate50);border-left:4px solid var(--calmBlue);padding:.85em 1.1em;border-radius:0 var(--radius-inner) var(--radius-inner) 0;margin:.9em 0}
.hub-quote-label{font-weight:700;margin-right:.4em}
.hub-quote>:first-child{margin-top:0}
.hub-quote>:last-child{margin-bottom:0}
.hub-safety{font-weight:600;background:#fef9ec;border:1px solid #e7cf8f;border-radius:var(--radius-inner);padding:.85em 1.1em}
.hub-closing{font-weight:600;margin-top:1em}
.hub-closing-quote{font-size:1.1em;font-weight:700;margin:1.2em 0;padding:0;border:0}
.hub-rendering{color:var(--softSlate)}
.hub-selmark{display:inline-block;font-size:.85em;font-weight:700;color:var(--calmPurple);margin:.2em 0 0 .2em}

/* Font-size control row */
.hub-fontrow{display:flex;justify-content:flex-end;margin:1rem 0 .5rem}
.hub-fontbtn{font:inherit;font-size:.95em;min-height:48px;padding:.65rem 1.3rem;border:1px solid var(--gray200);border-radius:var(--radius-pill);background:#fff;cursor:pointer}
.hub-fontbtn:hover{border-color:var(--calmBlue)}
.hub-fontbtn[aria-pressed="true"]{background:linear-gradient(120deg,var(--guidesFrom),#0077B6);color:#fff;border-color:transparent;font-weight:700}

/* Boxed components — child margins set explicitly */
.hub-simlabel{border:2px solid var(--calmBlue);background:rgba(14,165,233,.07);border-radius:var(--radius-inner);padding:1.05em 1.25em;margin:0 0 1.3em;font-weight:600}
.hub-panel{border:1px solid var(--gray200);border-radius:var(--radius-panel);background:rgba(255,255,255,.75);padding:1.4em 1.5em;margin:1.3em 0}
.hub-panel>:first-child{margin-top:0}
.hub-panel>:last-child{margin-bottom:0}
.hub-panel p{margin:.5em 0}
.hub-panel .hub-h3{margin:.2em 0 .5em}
.hub-panel-text{border:1px solid var(--gray200);border-radius:var(--radius-inner);background:var(--slate50);padding:.95em 1.1em;margin:.6em 0}
.hub-trap{border-color:#e7cf8f;background:#fffdf4}
.hub-notice{background:var(--slate50)}

/* Buttons */
.hub-btn{font:inherit;display:inline-flex;align-items:center;justify-content:center;gap:.4em;min-height:48px;padding:.7em 1.55em;border-radius:var(--radius-pill);border:1px solid var(--gray200);background:#fff;color:var(--deepDark);cursor:pointer;text-decoration:none;margin:.4em .4em .4em 0}
.hub-btn:hover{border-color:var(--calmBlue)}
.hub-btn:disabled{opacity:.45;cursor:not-allowed}
.hub-btn-main{background:linear-gradient(120deg,var(--guidesFrom),#0077B6);color:#fff;border:0;font-weight:700}
.hub-btn-main:hover{filter:brightness(1.06)}
.hub-btn-main:disabled{filter:grayscale(.4)}
.hub-btn-sub{background:#fff}
.hub-btn-choice{background:#fff;text-align:center;flex:1 1 10rem}
.hub-btn-play{min-height:56px;font-size:1.05em;font-weight:700;background:linear-gradient(120deg,var(--guidesFrom),#0077B6);color:#fff;border:0;min-width:9rem}
.hub-btn.hub-chosen,.hub-chip.hub-chosen{border-color:var(--calmPurple);background:rgba(79,70,229,.1);font-weight:700;box-shadow:inset 0 0 0 1px var(--calmPurple)}
.hub-btn:focus-visible,.hub-chip:focus-visible,.hub-sentence:focus-visible,.hub-fontbtn:focus-visible{outline:3px solid var(--calmPink);outline-offset:2px}
.hub-choices{display:flex;flex-wrap:wrap;gap:.7em;margin:.7em 0}
.hub-choices-col{flex-direction:column;align-items:stretch}
.hub-choices-col .hub-btn-choice{flex:none;text-align:left}
.hub-endrow{display:flex;flex-wrap:wrap;gap:.7em;margin:1.4em 0 .5em;align-items:center}
.hub-guidelink{display:inline-block;font-weight:700;margin:.6em 0;min-height:48px;line-height:48px}

/* Stage footer */
.hub-navrow{display:flex;align-items:center;gap:.7em;margin-top:2em;border-top:1px solid var(--gray200);padding-top:1.2em;flex-wrap:wrap}
.hub-progress{font-weight:700}
.hub-navspacer{flex:1}

/* Voice */
.hub-transcript{background:var(--slate50);border-radius:var(--radius-inner);padding:.95em 1.1em;margin:.7em 0}
.hub-field-label{display:block;font-weight:700;margin:1em 0}
.hub-field{display:block;width:100%;font:inherit;font-size:1em;padding:.7em .9em;margin-top:.4em;border:1px solid var(--gray200);border-radius:var(--radius-inner);background:#fff;color:var(--deepDark)}
.hub-steps{margin:.6em 0;padding-left:1.4em}
.hub-steps li{margin:.85em 0}
.hub-examples{font-weight:700}

/* Hallucination — v8: each judged item is ONE self-contained card
   (.hub-sentence-wrap): sentence, then its judgement row (picked marker
   + verdict badge), then its correction, all inside the same card.
   v7 rendered the marker/badge as loose rows between cards, so a badge
   visually grouped with the NEXT sentence's card. Boxed-component rule:
   every child's margin inside the card is set explicitly below. */
.hub-sentences{display:grid;gap:.8em;margin:.9em 0}
.hub-sentence-wrap{display:block;background:#fff;border:1px solid var(--gray200);border-radius:var(--radius-inner);padding:.95em 1.05em}
.hub-sentence{font:inherit;width:100%;text-align:left;min-height:48px;padding:.45em .55em;margin:0;border:0;border-radius:8px;background:transparent;cursor:pointer;line-height:1.6;color:var(--deepDark)}
.hub-sentence:hover{background:rgba(14,165,233,.06)}
.hub-sentence.hub-chosen{background:rgba(79,70,229,.08);box-shadow:inset 0 0 0 1px var(--calmPurple)}
.hub-sentence:disabled{cursor:default;opacity:1}
.hub-judgement{display:flex;align-items:center;flex-wrap:wrap;gap:.55em;margin:.6em 0 0}
.hub-judgement[hidden]{display:none}
.hub-judgement .hub-selmark{margin:0}
.hub-judgement .hub-badge{margin:0}
.hub-badge{display:inline-block;font-weight:700;font-size:.88em;padding:.15em .7em;border-radius:var(--radius-pill);margin:.45em 0 0}
.hub-badge[hidden],.hub-selmark[hidden],.hub-correction[hidden]{display:none}
.hub-badge-ok{background:rgba(26,158,84,.12);color:#0d6e3c;border:1px solid #1a9e54}
.hub-badge-ng{background:rgba(180,83,9,.1);color:#8a4b06;border:1px solid #b45309}
.hub-correction{background:var(--slate50);border-radius:var(--radius-inner);padding:.85em 1.05em;margin:.65em 0 0}
.hub-correction>:first-child{margin-top:0}
.hub-correction>:last-child{margin-bottom:0}
.hub-reveal{margin-top:1em}
.hub-reveal-main{font-weight:700}
.hub-reveal>:first-child{margin-top:0}

/* Dojo */
.hub-tray{border:1px dashed var(--gray200);border-radius:var(--radius-inner);padding:.85em 1em;margin:.6em 0 1em;min-height:3.2em;background:rgba(255,255,255,.6)}
.hub-tray>:first-child{margin-top:0}
.hub-tray-chip{display:inline-block;background:rgba(14,165,233,.12);border-radius:var(--radius-pill);padding:.2em .8em;margin:.2em .3em .2em 0;font-size:.95em}
.hub-tray-none{color:var(--softSlate)}
.hub-chips{display:flex;flex-wrap:wrap;gap:.65em;margin:.6em 0 1.1em}
.hub-chip{font:inherit;min-height:48px;padding:.6em 1.2em;border-radius:var(--radius-pill);border:1px solid var(--gray200);background:#fff;cursor:pointer;color:var(--deepDark)}
.hub-chip:hover{border-color:var(--calmBlue)}
.hub-rubric{list-style:none;padding:0;margin:.4em 0 .8em}
.hub-rubric li{margin:.35em 0;font-weight:600}
.hub-memo{font-size:1.05em}

/* Duel */
.hub-poem{margin:1.2em 0;text-align:left}
.hub-poem-line{font-size:1.45em;font-weight:700;line-height:1.5;margin:.15em 0;letter-spacing:.02em}
.hub-photo{width:100%;max-width:40rem;height:auto;border-radius:var(--radius-inner);display:block;margin:.6em 0}
.hub-option{margin:.6em 0}

/* Rules card */
.hub-situation{font-size:1.08em;font-weight:600}
.hub-zone-green{border-left:6px solid #1a9e54;padding-left:.5em}
.hub-zone-yellow{border-left:6px solid #d97706;padding-left:.5em}
.hub-zone-red{border-left:6px solid #b45309;padding-left:.5em}
.hub-zone-family{border-left:6px solid var(--calmBlue);padding-left:.5em}
.hub-printcard{border:2px solid var(--calmBlue);border-radius:var(--radius-panel);background:#fff;padding:1.6em 1.7em;margin:1.2em 0;background-image:radial-gradient(120% 90% at 100% 0%,rgba(0,200,240,.12),rgba(0,200,240,0) 60%)}
.hub-printcard>:first-child{margin-top:0}
.hub-printcard>:last-child{margin-bottom:0}
.hub-card-title{font-size:1.5em;margin:.1em 0 .3em}
.hub-card-doctrine{font-weight:700;margin:.3em 0 .8em}
.hub-card-group{margin:.9em 0 .3em;font-size:1.05em}
.hub-card-footer{color:var(--softSlate);font-size:.9em;margin-top:1em}

/* Index */
.hub-hero{background-color:rgba(255,255,255,.45);border:1px solid rgba(8,105,212,.14);background-image:radial-gradient(90% 120% at 0% 0%,rgba(8,105,212,.1),rgba(8,105,212,0) 55%),radial-gradient(80% 100% at 100% 0%,rgba(0,200,240,.14),rgba(0,200,240,0) 55%);border-radius:var(--radius-panel);padding:1.6em 1.5em 1.7em}
.hub-tagline{font-size:1.25em;font-weight:800;margin:.2em 0 .6em}
.hub-deal{list-style:none;padding:0;margin:.7em 0}
.hub-deal li{margin:.55em 0;padding-left:1.4em;position:relative}
.hub-deal li::before{content:"・";position:absolute;left:.3em;font-weight:700}
.hub-sort{display:flex;flex-wrap:wrap;gap:.65em;margin:.7em 0}
.hub-sort-btn{font:inherit;min-height:48px;padding:.6em 1.3em;border-radius:var(--radius-pill);border:1px solid var(--gray200);background:#fff;cursor:pointer;color:var(--deepDark)}
.hub-sort-btn.hub-chosen{border-color:var(--calmPurple);background:rgba(79,70,229,.1);font-weight:700;box-shadow:inset 0 0 0 1px var(--calmPurple)}
.hub-sort-caption{font-weight:600;min-height:1.8em}
.hub-toolgrid{display:grid;gap:1.3em;margin:1.3em 0}
@media(min-width:768px){.hub-toolgrid{grid-template-columns:1fr 1fr}}
.hub-card{border:1px solid var(--gray200);border-radius:var(--radius-panel);background:rgba(255,255,255,.8);padding:1.5em 1.5em;display:flex;flex-direction:column;gap:.55em}
.hub-card>*{margin-top:0;margin-bottom:0}
.hub-card h3{font-size:1.2em;line-height:1.4}
.hub-card .hub-time{color:var(--softSlate);font-size:.92em;font-weight:700}
.hub-card .hub-btn{margin-top:auto;align-self:flex-start}
.hub-path{margin:.6em 0;padding-left:1.4em}
.hub-path li{margin:.65em 0}
.hub-foot{border-top:1px solid var(--gray200);margin-top:2.6em;padding-top:1.1em;color:var(--softSlate);font-size:.92em}
.hub-foot p{margin:.3em 0}

/* Family page */
.hub-activity{display:inline-flex;align-items:center;min-height:48px;padding:.65em 1.4em;border-radius:var(--radius-pill);background:linear-gradient(120deg,var(--guidesFrom),#0077B6);color:#fff;font-weight:700;text-decoration:none;margin:.5em 0}
.hub-blockquote{font-size:1.1em;font-weight:700;border-left:4px solid var(--calmBlue);padding:.5em 0 .5em 1.1em;margin:1.4em 0}

/* ===== Per-section decorative visuals (v2) =====
   Pure CSS/SVG, aria-hidden in the markup, no information carried by
   the shapes or the motion. Base state is fully rendered and static;
   every keyframe animation below is applied only inside the
   prefers-reduced-motion: no-preference block, animates transform /
   opacity only, and never affects layout (no CLS). No filter: blur(),
   no blend modes, no WebGL/canvas — iOS Safari safe. */
.hub-visual{display:flex;align-items:center;gap:1.1em;border:1px solid rgba(8,105,212,.14);border-radius:var(--radius-panel);background:linear-gradient(120deg,rgba(8,105,212,.07),rgba(0,200,240,.1));padding:1.05em 1.3em;margin:0 0 1.4em;overflow:hidden}
.hub-visual svg{flex:none}
/* Voice: equaliser bars */
.hub-eq{display:flex;align-items:flex-end;gap:5px;height:46px}
.hub-eq i{display:block;width:8px;border-radius:4px;background:linear-gradient(180deg,var(--guidesTo),var(--guidesFrom))}
.hub-eq i:nth-child(1){height:52%}.hub-eq i:nth-child(2){height:78%}.hub-eq i:nth-child(3){height:100%}
.hub-eq i:nth-child(4){height:64%}.hub-eq i:nth-child(5){height:88%}.hub-eq i:nth-child(6){height:46%}
.hub-eq i:nth-child(7){height:70%}
/* Hallucination: dashed "text" track + scanning beam + magnifier */
.hub-scan{position:relative;flex:1;height:46px;min-width:120px}
.hub-scan-track{position:absolute;left:0;right:0;top:50%;height:10px;transform:translateY(-50%);border-radius:6px;background:repeating-linear-gradient(90deg,rgba(16,29,66,.16) 0 26px,transparent 26px 42px)}
.hub-scan-beam{position:absolute;top:3px;bottom:3px;width:34%;border-radius:8px;background:linear-gradient(90deg,rgba(0,200,240,0),rgba(0,200,240,.38),rgba(0,200,240,0))}
/* Prompt dojo: typing-indicator chat bubbles */
.hub-bubbles{position:relative;flex:1;height:58px;min-width:210px}
.hub-bub{position:absolute;display:flex;gap:4px;align-items:center;background:#fff;border:1px solid rgba(8,105,212,.25);border-radius:14px;padding:.5em .75em;box-shadow:0 6px 14px -8px rgba(16,29,66,.35)}
.hub-bub i{display:block;width:6px;height:6px;border-radius:50%;background:var(--calmBlue)}
.hub-bub-1{left:0;bottom:2px}
.hub-bub-2{left:37%;bottom:17px}
.hub-bub-3{left:71%;bottom:5px}
/* Creative duel: two cards in 3D perspective */
.hub-dcards{display:flex;gap:12px;perspective:700px;padding:.2em 0}
.hub-dcard{width:54px;height:74px;border-radius:10px;border:1px solid rgba(8,105,212,.3);background:linear-gradient(155deg,#fff,rgba(0,200,240,.28));display:flex;align-items:center;justify-content:center}
.hub-dcard-b{background:linear-gradient(155deg,#fff,rgba(79,70,229,.2))}
/* Rules card: mini card */
.hub-mini-card{width:76px;height:54px;border-radius:10px;background:linear-gradient(140deg,var(--guidesFrom),var(--guidesTo));box-shadow:0 10px 22px -10px rgba(8,105,212,.55);position:relative;flex:none}
.hub-mini-card::after{content:"";position:absolute;left:10px;right:10px;top:11px;height:6px;border-radius:3px;background:rgba(255,255,255,.8);box-shadow:0 12px 0 rgba(255,255,255,.55),0 24px 0 rgba(255,255,255,.35)}
/* Index hero: floating icon tiles */
.hub-hero-visual{display:flex;gap:.8em;margin:1.15em 0 .35em}
.hub-tile{width:60px;height:60px;border-radius:18px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(8,105,212,.18);background:linear-gradient(140deg,rgba(8,105,212,.16),rgba(0,200,240,.22))}
.hub-tile-2{background:linear-gradient(140deg,rgba(0,200,240,.22),rgba(79,70,229,.16))}
.hub-tile-3{background:linear-gradient(140deg,rgba(79,70,229,.14),rgba(8,105,212,.2))}
/* Family: sun inside the house SVG pulses around its own centre */
.hub-sun{transform-box:fill-box;transform-origin:center}

@media (prefers-reduced-motion: no-preference){
  .hub-eq i{transform-origin:bottom;animation:hub-eq 1.15s ease-in-out infinite alternate}
  .hub-eq i:nth-child(2n){animation-duration:.9s;animation-delay:.15s}
  .hub-eq i:nth-child(3n){animation-duration:1.3s;animation-delay:.3s}
  .hub-eq i:nth-child(4n){animation-duration:1s;animation-delay:.45s}
  .hub-scan-beam{animation:hub-scan 3.4s ease-in-out infinite}
  .hub-mag{animation:hub-bob 5s ease-in-out infinite}
  .hub-bub{animation:hub-bubble 3.6s ease-in-out infinite}
  .hub-bub-2{animation-delay:1.2s}
  .hub-bub-3{animation-delay:2.4s}
  .hub-dcard{animation:hub-tilt 7s ease-in-out infinite}
  .hub-dcard-b{animation-delay:-3.5s}
  .hub-mini-card{animation:hub-cardtilt 8s ease-in-out infinite}
  .hub-tile{animation:hub-float 6s ease-in-out infinite alternate}
  .hub-tile-2{animation-delay:-2s}
  .hub-tile-3{animation-delay:-4s}
  .hub-sun{animation:hub-pulse 4.5s ease-in-out infinite}
  .hub-stage>*{animation:hub-rise .45s ease both}
  .hub-toolgrid .hub-card{animation:hub-rise .55s ease both}
  .hub-toolgrid .hub-card:nth-child(2){animation-delay:.07s}
  .hub-toolgrid .hub-card:nth-child(3){animation-delay:.14s}
  .hub-toolgrid .hub-card:nth-child(4){animation-delay:.21s}
  .hub-printcard{animation:hub-cardtilt 9s ease-in-out infinite}
  .hub-chloe-fig{animation:hub-chloe-in .7s ease both}
  .hub-chloe-anim{animation:hub-chloe-idle 5s ease-in-out 1.2s infinite alternate}
  .hub-concierge .hub-bubble{transform-origin:left bottom;animation:hub-bubble-pop .55s ease .35s both}
  .hub-guide .hub-chloe-img{animation:hub-chloe-idle 5.5s ease-in-out infinite alternate}
}
@keyframes hub-eq{from{transform:scaleY(.45)}to{transform:scaleY(1)}}
@keyframes hub-scan{0%{transform:translateX(-120%);opacity:0}12%{opacity:1}88%{opacity:1}100%{transform:translateX(310%);opacity:0}}
@keyframes hub-bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-4px) rotate(4deg)}}
@keyframes hub-bubble{0%,100%{transform:translateY(6px);opacity:.55}50%{transform:translateY(-5px);opacity:1}}
@keyframes hub-tilt{0%,100%{transform:rotateY(-11deg) rotateX(3deg)}50%{transform:rotateY(11deg) rotateX(-3deg)}}
@keyframes hub-cardtilt{0%,100%{transform:perspective(900px) rotateX(1.5deg) rotateY(-2deg)}50%{transform:perspective(900px) rotateX(-1.5deg) rotateY(2deg)}}
@keyframes hub-float{from{transform:translateY(0) rotate(-1.5deg)}to{transform:translateY(-8px) rotate(1.5deg)}}
@keyframes hub-pulse{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.14);opacity:1}}
@keyframes hub-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes hub-chloe-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes hub-bubble-pop{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}
@keyframes hub-chloe-idle{from{transform:translateY(0)}to{transform:translateY(-5px)}}

/* ===== Chloe — the AI concierge (v3) =====
   The approved 3D stills at hub sizes (transparent PNGs). She is the
   guide, never "the AI" inside an exercise: her speech bubbles carry
   real HTML copy from the packs and templates — never text baked into
   an image — and the image itself is decorative beside that text.
   Boxed-component rule honoured: the bubble sets its children's
   margins explicitly. Motion is transform/opacity only, inside the
   prefers-reduced-motion: no-preference block below; the base state
   is fully visible and static. No blur, no blend modes. */
.hub-concierge{display:flex;gap:1.1em;align-items:flex-end;margin:1.1em 0 .5em}
.hub-chloe-fig{margin:0;flex:none;text-align:center}
.hub-chloe-anim{display:block}
.hub-chloe-img{height:260px;width:auto;display:block}
.hub-chloe-chip{display:inline-block;font-size:.82em;font-weight:700;color:#0869D4;background:#fff;border:1px solid rgba(8,105,212,.3);border-radius:var(--radius-pill);padding:.22em .95em}
.hub-chloe-fig .hub-chloe-chip{margin-top:.6em}
.hub-bubble{position:relative;flex:1;background:#fff;border:1px solid rgba(8,105,212,.22);border-radius:18px;padding:1em 1.25em;box-shadow:0 10px 24px -14px rgba(16,29,66,.35)}
.hub-bubble>:first-child{margin-top:0}
.hub-bubble>:last-child{margin-bottom:0}
.hub-bubble p{margin:.45em 0}
.hub-bubble .hub-h2{margin:.1em 0 .4em;font-size:1.3em}
.hub-bubble .hub-chloe-chip{margin-top:.65em}
.hub-bubble::before{content:"";position:absolute;left:-7px;bottom:26px;width:14px;height:14px;background:#fff;border-left:1px solid rgba(8,105,212,.22);border-bottom:1px solid rgba(8,105,212,.22);transform:rotate(45deg)}
.hub-guide{display:flex;gap:.95em;align-items:flex-start;margin:0 0 1.25em}
.hub-guide-img{height:112px;width:auto;flex:none;display:block}
.hub-guide .hub-bubble{margin-top:.3em}
.hub-guide .hub-bubble::before{top:36px;bottom:auto}
.hub-guide-head{align-items:center}
.hub-guide-head .hub-bubble{margin-top:0}
.hub-guide-head .hub-bubble::before{top:calc(50% - 7px);bottom:auto}
@media(max-width:640px){
  .hub-concierge{flex-direction:column;align-items:center;gap:.7em}
  .hub-chloe-img{height:190px;width:auto}
  .hub-bubble-hero{width:100%}
  .hub-bubble-hero::before{left:calc(50% - 7px);bottom:auto;top:-7px;border-bottom:0;border-top:1px solid rgba(8,105,212,.22)}
}

/* Print: hub pages print their content; the rules card prints alone. */
@media print{
  .site-header,.site-footer,.hub-fontrow,.hub-navrow,.hub-endrow,.orbs,.hub-visual,.hub-hero-visual,.hub-concierge,.hub-guide{display:none !important}
  .hub-printcard{transform:none !important}
  .hub-wrap{font-size:14pt}
  /* When the assembled rules card is on screen, it prints alone. */
  .hub-stage:has(#hub-card)>*:not(:has(#hub-card)){display:none !important}
  .hub-stage div:has(>#hub-card)>*:not(#hub-card){display:none !important}
}

/* Deepfake tool (Phase 1.5) + index 準備中 badge — v6 additions.
   Motif: two tilting video-frame cards (play triangle + shield),
   same transform/opacity discipline; no blur, no blend modes. */
.hub-vframes{display:flex;gap:.7em;align-items:center}
.hub-vframe{width:52px;height:38px;border:2px solid #0869D4;border-radius:9px;background:rgba(255,255,255,.65);display:flex;align-items:center;justify-content:center}
.hub-video{width:100%;max-width:340px;aspect-ratio:2/3;background:#0f172a;border-radius:14px;display:block;margin:.4em 0 .7em}
.hub-videobox{margin:0 0 1.3em}
.hub-videobox .hub-h3{margin:.2em 0 .4em}
.hub-casecard{border:1px solid var(--gray200);border-radius:var(--radius-panel);background:rgba(255,255,255,.75);margin:1em 0;padding:0;overflow:hidden}
.hub-casehead{width:100%;text-align:left;background:none;border:0;padding:1em 1.2em;font:inherit;font-weight:700;font-size:1.02em;cursor:pointer;min-height:48px;margin:0}
.hub-casebody{padding:0 1.2em 1.1em}
.hub-casebody p{margin:.5em 0}
.hub-casebody>:first-child{margin-top:0}
.hub-casebody>:last-child{margin-bottom:0}
.hub-wip-badge{display:inline-block;background:#f59e0b;color:#101D42;font-weight:700;font-size:.82em;line-height:1.5;padding:.18em .8em;border-radius:999px;margin:0 0 .15em}
@media (prefers-reduced-motion: no-preference){
  .hub-vframe-a{animation:hub-tilt-a 7s ease-in-out infinite}
  .hub-vframe-b{animation:hub-tilt-b 7s ease-in-out infinite}
  .hub-toolgrid .hub-card:nth-child(5){animation-delay:.28s}
}
@keyframes hub-tilt-a{0%,100%{transform:rotate(-4deg) translateY(0)}50%{transform:rotate(-1deg) translateY(-4px)}}
@keyframes hub-tilt-b{0%,100%{transform:rotate(3deg) translateY(-3px)}50%{transform:rotate(5deg) translateY(1px)}}
/* v7 (deepfake S4 verification question): the picked choice stays
   readable after the group disables; the feedback panel reuses
   .hub-panel, whose child margins are already pinned there. */
.hub-choices .hub-btn-choice.hub-picked{border-color:#0869D4;background:#eaf4fd;opacity:1}

/* v10 (2026-11-15 design release): hub index tool cards gained a
   visual header — the image bleeds to the card's side edges (the
   card carries 1.5em padding). It sits BELOW the concept sheet's
   per-tool icon tile (.hub-card::before, an in-flow flex child),
   so the tile keeps its designed place at the card top and
   nothing overlaps the photo. The image's alt carries the tool
   name (the card's title), matching the site-wide card pattern. */
.hub-card-img{
  display:block;width:calc(100% + 3em);max-width:none;
  margin:0 -1.5em .35em;aspect-ratio:16/10;object-fit:cover;
}
