/* 2026-10-17 使用场景库 /usecases (08 spec A): hub cards (uc-), scene-page hero/demo spacing (uc-),
 * calc preset note (calc-preset-note), 業種別 「ある一日」 rows (day-). Tokens only from the product stylesheet. */

/* ---------- scene / hub hero: short, no product image ---------- */
.uc-hero{padding-bottom:64px}
.uc-hero h1{font-size:clamp(34px,4.4vw,58px);letter-spacing:-.045em;line-height:1.3}
.uc-hero h1 span{text-wrap:balance;word-break:auto-phrase} /* 08-B: phrase-aware breaks (lang=ja) — no 「だ／けで」 splits */
.uc-hero .hero-copy{max-width:40em;margin-bottom:30px}
.uc-hero .hero-copy span+span{margin-top:6px}
.uc-hero .actions{justify-content:center}
.uc-demo{padding-top:64px}
/* calc and Founding 100 share the pale background here (no blocks between them as on /try): trim the doubled gap */
#calc ~ #founding100{padding-top:16px}

/* ---------- calc preset note (inserted by the calc script under the card label) ---------- */
.calc-preset-note{margin:-4px 0 10px;font-size:12px;line-height:1.7}

/* ---------- hub ---------- */
.uc-hub{background:#fff;padding-top:56px}
.uc-filter{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:36px}
.uc-filter-label{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.06em}
.uc-chips{display:flex;gap:8px;flex-wrap:wrap}
.uc-chip{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:6px 16px;font-size:14px;line-height:1.6;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.uc-chip:hover{border-color:#b9cbe0}
.uc-chip[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.uc-chip[hidden],.uc-card[hidden],.uc-group[hidden]{display:none}
.uc-group+.uc-group{margin-top:56px}
.uc-group-h{font-size:20px;font-weight:600;color:var(--ink);letter-spacing:-.01em;margin:0 0 18px}
.uc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
/* Keep link decoration off the anchor itself: a:hover otherwise underlines every child. */
.uc-card{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:10px;min-width:0;padding:22px 24px 20px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);text-decoration:none;transition:border-color .22s ease,box-shadow .22s ease,transform .22s var(--ease)}
.uc-card::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(140deg,#fff 20%,#f4f9ff 65%,#eaf4ff 100%);opacity:0;pointer-events:none;transition:opacity .22s ease}
.uc-card:hover,.uc-card:focus-visible,.uc-card:active{text-decoration:none}
.uc-card:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-color:#8ec4f8;box-shadow:0 16px 36px -20px rgba(0,113,227,.3),0 3px 10px rgba(21,77,132,.04)}
.uc-card:focus-visible::before{opacity:1}
.uc-card:focus-visible .uc-title{color:var(--blue)}
.uc-card:focus-visible .uc-tag{background:#e5f1ff;color:#37658e}
@media(hover:hover) and (pointer:fine){
  .uc-card:hover{border-color:#8ec4f8;box-shadow:0 18px 38px -20px rgba(0,113,227,.32),0 3px 10px rgba(21,77,132,.04);transform:translateY(-4px)}
  .uc-card:hover::before{opacity:1}
  .uc-card:hover .uc-title{color:var(--blue)}
  .uc-card:hover .uc-tag{background:#e5f1ff;color:#37658e}
  .uc-card:hover .uc-more{transform:translateX(3px)}
}
.uc-no{font-size:12px;font-weight:600;color:var(--blue);letter-spacing:.06em}
.uc-title{transition:color .2s ease;font-size:17px;font-weight:600;line-height:1.6;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere}
@supports (word-break:auto-phrase){.uc-title{word-break:auto-phrase}} /* 08-B: no 「この 1／週間」 splits */
.uc-pain{font-size:14px;line-height:1.75;color:var(--body)}
.uc-tags{display:flex;gap:6px;flex-wrap:wrap}
.uc-tag{transition:background-color .2s ease,color .2s ease;font-size:11px;color:var(--muted);background:var(--pale);border-radius:999px;padding:2px 10px;line-height:1.8}
.uc-more{transition:transform .22s ease;margin-top:auto;padding-top:6px;font-size:14px;font-weight:500;color:var(--blue)}
.uc-note{margin-top:28px}

/* ---------- 業種別 「ある一日」 (#day): 時刻｜出来事｜TANKA がしたこと ---------- */
.day-section{background:#fff;padding-bottom:40px}
.day-section+.uc-demo{padding-top:40px}
.day-head,.day-row{display:grid;grid-template-columns:96px minmax(0,1fr) minmax(0,1.4fr);gap:24px;align-items:baseline}
.day-head{padding:0 4px 10px;border-bottom:1px solid var(--line);font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.06em}
.day-list{list-style:none;margin:0;padding:0}
.day-row{padding:18px 4px;border-bottom:1px solid var(--line)}
.day-time{font-size:20px;font-weight:600;color:var(--blue);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.day-event{margin:0;font-size:16px;font-weight:600;line-height:1.6;color:var(--ink)}
.day-did{margin:0;font-size:15px;line-height:1.75;color:var(--body)}
.day-did-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

@media(max-width:820px){
  .uc-hero{padding-bottom:52px}
  .uc-demo{padding-top:48px}
  .uc-grid{grid-template-columns:1fr;gap:12px}
  .uc-group+.uc-group{margin-top:44px}
  .day-head,.day-row{grid-template-columns:72px minmax(0,1fr) minmax(0,1.3fr);gap:16px}
}
@media(max-width:580px){
  .uc-hero{padding-bottom:44px}
  .uc-hero h1,.uc-hero h1#hero-title{font-size:clamp(22px,6vw,32px);line-height:1.45;letter-spacing:-.04em}
  .uc-hero .actions{flex-wrap:wrap}
  .uc-demo{padding-top:36px}
  .uc-hub{padding-top:40px}
  .uc-filter{gap:10px;margin-bottom:26px}
  .uc-chip{font-size:13px;padding:5px 13px}
  .uc-group-h{font-size:18px}
  .uc-card{padding:18px 18px 16px;border-radius:14px}
  .uc-title{font-size:16px}
  .uc-pain{font-size:13px}
  .day-head{display:none}
  .day-row{grid-template-columns:1fr;gap:4px;padding:16px 0}
  .day-time{font-size:16px}
  .day-event{font-size:15px}
  .day-did{font-size:14px;margin-top:4px;padding:10px 12px;background:var(--pale);border-radius:10px}
  .day-did-label{position:static;width:auto;height:auto;overflow:visible;clip:auto;clip-path:none;display:block;font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.04em;margin-bottom:2px}
}
@media(prefers-reduced-motion:reduce){
  .uc-card,.uc-card::before,.uc-chip,.uc-title,.uc-tag,.uc-more{transition:none}
  .uc-card:hover,.uc-card:focus-visible,.uc-card .uc-more{transform:none}
}
