/* ui.css — CODE:YOU の本番の画面の共通の部品 (見た目)。南A 2026-11-19 (demo/demo-ui.css が元。南P1 2026-11-20 に /ui/ へ移した)。設計書 md/管理/edit_10点会議.md 5章
   使い方:
     <link rel="stylesheet" href="/ui/ui.css">  (/ui/ui.js・/ui/motion.js・/ui/tilt.js と一緒に読む)
     ボタン   <button class="cy-btn pri">次へ<span class="cy-go"></span></button>   (.cy-go の中の矢印は CY.ui が入れる。空でもよい)
              種類: .pri (白地の主) / .wh (色の地の主) / .sec (白地の2番目) / .glass (色の地の2番目) / .txt (字だけ) / .off (保存ずみ ✓ だけ)
     入力欄   <div class="cy-field"><label class="cy-label" for="x">名前</label>
                <div class="cy-box"><input id="x"><span class="cy-count">0/30</span></div>
                <p class="cy-hint">補足</p><p class="cy-msg" role="status" aria-live="polite"></p></div>
     ミニCD   CY.ui.cd({ size: 164, disc: 'white', url: 'codeyou.link', name: '名前' }) で作る (.cy-cd)
     待ちのCD <span class="cy-spin"></span> (20px。大きいのは .cy-spin.big = 64px)
     シート   <div class="cy-sheet" hidden><div class="cy-grab"></div> … </div> を CY.ui.sheet.open(el) で
     頭       <header class="cy-top">…</header>  (試作の帯 .cy-demo は本番にはない)
     客ページ (2026-11-19 追加): body.ph-dark (暗い灰の地) / .cy-row (入口の行) / .cy-pill (準備中) / .cy-opts > .cy-opt (選ぶ物) / .cy-seg (切りかえ) / .cy-paydock (値段 + ボタン) / .cy-warn (注意の箱)
   色と字の値は :root の変数。青は線 (--blue) と字のリンク (--blue-text) だけ。塗りに使わない */

:root {
    --cy-bg: #ffffff;
    --cy-ink: #242323;           /* 字 */
    --cy-ink-strong: #1b1a1a;
    --cy-sub: #606060;           /* 補足 (白地 6.4:1) */
    --cy-surface: #f5f5f4;       /* 面 */
    --cy-field: #f7f7f7;         /* 入力欄の面 */
    --cy-tint: #e5f1ff;          /* 入力中の欄の面だけ (選んだ物には使わない) */
    --cy-ph: #767676;            /* プレースホルダー */
    --cy-line: #909090;          /* 空の下線・2番目のボタンの枠 */
    --cy-hair: #eeeeec;          /* 行の線 */
    --cy-blue: #3895ff;          /* 入力中の線だけ */
    --cy-blue-text: #0a5bd6;     /* 字のリンクだけ (白地 5.9:1) */
    --cy-ok: #197a4b;            /* 成功の字だけ */
    --cy-err: #d32f2f;
    --cy-focus: #ffdd00;
    --cy-font: -apple-system, BlinkMacSystemFont, 'SF Pro', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
    --cy-ease-out: cubic-bezier(.22,1,.36,1);
    --cy-ease-in: cubic-bezier(.4,0,1,1);
    --cy-safe-b: max(30px, calc(env(safe-area-inset-bottom) + 16px));
    /* 暗い中立の灰 (register の R4・c・ポータルの地。客ページ会議 4-B) */
    --cy-dark-top: #4a4a4e;
    --cy-dark-bot: #2a2a2d;
    --cy-dark-glow: #5a5a5e;
    --cy-dark-bg: radial-gradient(60% 40% at 50% 40%, var(--cy-dark-glow) 0%, transparent 70%), linear-gradient(180deg, var(--cy-dark-top), var(--cy-dark-bot));
}

/* ---------- 頭 (高さ44・左右24) ---------- */
.cy-top { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; height: 44px; margin: 8px 24px 0; }
.cy-brand { font-size: 14px; letter-spacing: .32em; color: var(--cy-sub); }
.cy-back { display: inline-flex; align-items: center; height: 44px; min-width: 44px; margin-left: -8px; padding: 0 8px; border: 0; background: none;
    color: var(--cy-blue-text); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.cy-prog { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--cy-sub); font-variant-numeric: tabular-nums; }
.cy-prog i { position: relative; display: block; width: 72px; height: 6px; border-radius: 3px; background: #e3e3e3; overflow: hidden; }
.cy-prog i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 33%); border-radius: 3px; background: var(--cy-ink); transition: width .3s var(--cy-ease-out); }

/* ---------- ボタン (4種) ---------- */
.cy-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; padding: 0 56px; border: 0; border-radius: 999px;
    font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease; user-select: none; -webkit-user-select: none; }
.cy-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0; pointer-events: none; transition: opacity .08s ease-out; }
.cy-btn:active::before, .cy-btn.is-press::before { opacity: .06; }
.cy-btn.pri { color: #fff; background: linear-gradient(180deg, #363535, #1b1a1a);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 22px -8px rgba(0,0,0,.45); }
.cy-btn.wh { color: var(--cy-ink-strong); background: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }
.cy-btn.wh::before { background: #000; }
.cy-btn.sec { height: 52px; padding: 0 20px; color: var(--cy-ink); background: #fff; border: 1px solid var(--cy-line); font-size: 16px; }
.cy-btn.sec::before { background: #000; }
.cy-btn.glass { height: 52px; padding: 0 20px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); font-size: 16px; }
.cy-btn.txt { width: auto; height: 44px; padding: 0 12px; color: var(--cy-blue-text); background: none; font-size: 16px; }
.cy-btn.txt::before { display: none; }
.cy-btn.off { color: #636363; background: #ececea; box-shadow: none; cursor: default; }
.cy-btn.off::before { display: none; }
/* 押した (白の motion.js が細かく動かす。ここは CSS だけでも手ごたえが出る最低の形) */
.cy-btn:not(.off):not(.txt):active { transform: scale(.97); transition-duration: .08s; }
.cy-btn.pri:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 10px -6px rgba(0,0,0,.45); }
/* → の丸 (進む物だけ): 右はし 8px に 40×40 */
.cy-go { position: absolute; right: 8px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: rgba(255,255,255,.14);
    display: flex; align-items: center; justify-content: center; transition: transform .28s cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
.cy-btn.wh .cy-go { background: #1b1a1a; }
.cy-btn:active .cy-go { transform: translateX(3px); transition-duration: .08s; }
.cy-go svg { width: 20px; height: 20px; display: block; }
.cy-go .cy-spin { width: 22px; height: 22px; }
.cy-btn .cy-wait { display: inline-flex; margin-right: 8px; }      /* 丸のないボタンの、字の左の待ちのCD */
.cy-btn[aria-busy="true"] { cursor: progress; }
/* キーボードで動かす人のための枠 (デジタル庁) */
.cy-btn:focus-visible, .cy-back:focus-visible, .cy-link:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--cy-focus); }
.cy-link { color: var(--cy-blue-text); font-weight: 700; text-decoration: none; }

/* 下に固定のボタンの置き場。キーボードが出ている間 (.kb-on。CY.ui.dock がつける) は、固定をやめて 欄の下に置く
   (キーボードを追いかけると、iPhone のページのスクロールとけんかして ガクガクする。2026-11-21) */
.cy-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 16px 24px var(--cy-safe-b);
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 22%); }
.cy-dock.kb-on { position: static; padding-top: 8px; padding-bottom: 24px; background: none; }
.cy-dock-in { max-width: 420px; margin: 0 auto; }

/* ---------- 入力欄 (今の register.html のまま。面 + 下線) ---------- */
.cy-field { margin-bottom: 20px; }
.cy-label { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--cy-ink); letter-spacing: .02em; }
.cy-box { position: relative; display: flex; align-items: center; background: var(--cy-field); border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--cy-line);
    transition: background .15s; }
.cy-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cy-err); transform: scaleX(0); transform-origin: 50% 50%;
    transition: transform .2s ease-out; pointer-events: none; }
.cy-box:focus-within { background: var(--cy-tint); border-bottom-color: var(--cy-blue); box-shadow: 0 1px 0 0 var(--cy-blue); }
.cy-box.filled { border-bottom-color: var(--cy-blue); }
.cy-box.bad, .cy-box:has([aria-invalid="true"]) { border-bottom-color: var(--cy-err); box-shadow: 0 1px 0 0 var(--cy-err); }
.cy-box.bad::after, .cy-box:has([aria-invalid="true"])::after { transform: scaleX(1); }
.cy-box input, .cy-box textarea { flex: 1; min-width: 0; height: 56px; padding: 0 12px; border: 0; border-radius: 10px 10px 0 0; background: transparent;
    color: var(--cy-ink); font: inherit; font-size: 17px; letter-spacing: .01em; -webkit-appearance: none; appearance: none; }
.cy-box textarea { height: auto; min-height: 104px; padding: 14px 12px; line-height: 1.6; resize: none; }
.cy-box input::placeholder, .cy-box textarea::placeholder { color: var(--cy-ph); opacity: 1; }
.cy-box input:focus, .cy-box textarea:focus { outline: none; box-shadow: none; }
.cy-box .cy-count { flex: none; padding: 0 12px 0 4px; color: var(--cy-sub); font-size: 15px; font-variant-numeric: tabular-nums; }
/* × (消す) と「表示」: 見た目 24・押せる所 44 */
.cy-act { flex: none; min-width: 44px; height: 44px; margin-right: 4px; padding: 0 6px; border: 0; border-radius: 22px; background: transparent; color: var(--cy-sub);
    display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.cy-act.word { color: var(--cy-blue-text); padding: 0 10px; }
.cy-act svg { width: 24px; height: 24px; display: block; }
.cy-act:focus-visible { outline: 3px solid #000; outline-offset: 0; }
.cy-hint { margin: 6px 0 0; color: var(--cy-sub); font-size: 15px; line-height: 1.5; }
.cy-msg { margin: 4px 0 0; min-height: 1.5em; font-size: 15px; line-height: 1.5; }
.cy-msg:empty { min-height: 0; margin: 0; }
.cy-msg.err { color: var(--cy-err); font-weight: 700; }
.cy-msg.ok { color: var(--cy-ok); font-weight: 700; }

/* スイッチ (縦31 × 横51)。入ったら黒 (青で塗らない) */
.cy-sw { position: relative; flex: none; width: 51px; height: 31px; }
.cy-sw input { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cy-sw i { position: absolute; inset: 0; border-radius: 16px; background: #d9d9d6; transition: background .2s; pointer-events: none; }
.cy-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25);
    transition: transform .2s; }
.cy-sw input:checked + i { background: #242323; }
.cy-sw input:checked + i::after { transform: translateX(20px); }
.cy-sw input:focus-visible + i { outline: 3px solid #000; outline-offset: 3px; box-shadow: 0 0 0 5px var(--cy-focus); }
.cy-sw.bad i { outline: 2px solid var(--cy-err); outline-offset: 3px; }

/* ---------- 待ちのCD ---------- */
.cy-spin { position: relative; display: inline-block; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #f1f0ec; vertical-align: middle;
    -webkit-mask: radial-gradient(circle closest-side, transparent 0 16%, #000 calc(16% + .5px)); mask: radial-gradient(circle closest-side, transparent 0 16%, #000 calc(16% + .5px));
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); animation: cySpin .9s linear infinite; }
.cy-spin::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0,0,0,.22), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.22)); }
.cy-spin.big { width: 64px; height: 64px; }
.cy-spin.stop { animation: none; }
@keyframes cySpin { to { transform: rotate(360deg); } }

/* ---------- ミニCD (demo/view の .card.cd の値を写した。盤の色3つ・穴 15.5%・つや・ふち・落ち影) ---------- */
.cy-cd { --d: 164px; --disc: #f1f0ec; --groove: #d4cdc0; --face: #ededea; --cd-ink: #1b1a1a; --cd-url: #767676;
    position: relative; flex: none; width: var(--d); height: var(--d); border-radius: 50%; box-shadow: 0 12px 28px rgba(0,0,0,.30); }
.cy-cd.disc-black { --disc: #1d1d1f; --groove: #3a3a3c; }
.cy-cd.disc-pink { --disc: #f3a9c4; --groove: #e08fae; }
.cy-cd-disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
    -webkit-mask: radial-gradient(circle closest-side, transparent 0 15.5%, #000 calc(15.5% + .5px)); mask: radial-gradient(circle closest-side, transparent 0 15.5%, #000 calc(15.5% + .5px)); }
.cy-cd-spin { position: absolute; inset: 0; border-radius: 50%; background: var(--disc); will-change: transform; }
.cy-cd-face { position: absolute; inset: 2.2%; border-radius: 50%; background: var(--face) center / cover no-repeat; }
.cy-cd.light .cy-cd-face { background: radial-gradient(circle, #fafaf8 0 30%, #ededea 31% 100%); }
.cy-cd-hub { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle closest-side, transparent 0 15.5%, var(--disc) 15.5% 27.25%, var(--groove) 27.25% 30.25%, transparent 30.25%); }
.cy-cd-gloss { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.06) 30%, transparent 55%, rgba(0,0,0,.06) 100%);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.55), inset -1px -1px 0 rgba(0,0,0,.18); }
.cy-cd-hole { position: absolute; left: 50%; top: 50%; width: 15.5%; height: 15.5%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
    box-shadow: inset 3px 3px 5px rgba(0,0,0,.45), inset -1px -1px 0 rgba(255,255,255,.35), 0 0 0 2px var(--disc); }
/* CDの字 (飾り。回る側の中なので、盤と一緒に回る) */
/* URL は下 (穴のまわりの輪の上) にそろえ、長いときは上へ2行に。1行で「…」に切ると、打ったIDがCDに見えないため (中 2026-11-19) */
.cy-cd-url { position: absolute; left: 12%; right: 12%; bottom: 66%; text-align: center; color: var(--cd-url); font-size: 14px; letter-spacing: .03em; line-height: 1.25;
    overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.cy-cd-name { position: absolute; left: 15%; right: 15%; top: 59%; text-align: center; color: var(--cd-ink); font-size: calc(var(--d) * .11); font-weight: 700; line-height: 1.3;
    overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }

/* ---------- シート・暗幕 ---------- */
.cy-dim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .42s var(--cy-ease-out); }
.cy-dim.on { opacity: 1; }
.cy-dim.clear { background: transparent; }
.cy-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: calc(100% - 48px); margin: 0 auto; max-width: 560px; overflow-y: auto; overscroll-behavior: contain;
    padding: 10px 24px var(--cy-safe-b); background: #fff; color: var(--cy-ink); border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.18);
    transform: translateY(105%); transition: transform .42s var(--cy-ease-out); }
.cy-sheet[hidden] { display: none; }
.cy-sheet.on { transform: none; }
.cy-sheet.closing { transition: transform .22s var(--cy-ease-in); }
.cy-sheet.drag { transition: none; }
.cy-grab { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: #c4c4c4; }
.cy-sheet-h { margin: 0 0 6px; font-size: 20px; font-weight: 700; line-height: 1.5; outline: none; }
.cy-sheet-b { margin: 0 0 16px; color: var(--cy-sub); font-size: 16px; line-height: 1.7; }
.cy-sheet .cy-btn + .cy-btn { margin-top: 8px; }
.cy-sheet .cy-btn.txt { width: 100%; }
body.cy-lock { overflow: hidden; }

/* ---------- お知らせ ---------- */
.cy-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
    padding: 12px 20px; border-radius: 999px; background: rgba(30,30,32,.82); color: #fff; font-size: 17px; line-height: 1.4;
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    transform: translate(-50%, 12px); opacity: 0; transition: transform .28s var(--cy-ease-out), opacity .28s ease; pointer-events: none; }
.cy-toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cy-toast button { flex: none; min-height: 44px; margin: -12px -8px -12px 0; padding: 0 8px; border: 0; background: none; color: #8ec5ff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }

/* ---------- QR ---------- */
.cy-qr { display: block; width: 240px; height: 240px; max-width: 100%; margin: 0 auto; padding: 12px; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px #e3e3e3; }
.cy-qr svg { display: block; width: 100%; height: 100%; }

/* ---------- 日本語の折り返し (中 2026-11-19) ----------
   「す。」「い。」だけの行を作らない。text-wrap: pretty は iPhone (Safari 26)・Chrome、auto-phrase は Chrome (文節で折る)。効かない所では今のまま */
p, h1, h2, h3, legend, .cy-label, .cy-hint, .cy-msg, .cy-sheet-h, .cy-sheet-b { line-break: strict; text-wrap: pretty; }
p, .cy-hint, .cy-msg, .cy-sheet-b { word-break: auto-phrase; }
/* 動かしたフォーカスの見出し (tabindex=-1) には枠を出さない。押せる物ではないため */
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* ===================== 客ページの部品 (南A 2026-11-19。設計書 md/管理/客ページ_10点会議.md 6-0) ===================== */
/* 暗い地のページ (c)。<body class="ph-dark">。theme-color は #4a4a4e */
body.ph-dark { min-height: 100vh; min-height: 100dvh; margin: 0; color: rgba(255,255,255,.92); background: var(--cy-dark-bg), var(--cy-dark-bot); background-attachment: fixed; }
.ph-dark .cy-brand { color: rgba(255,255,255,.72); }
.ph-dark p { color: rgba(255,255,255,.80); }

/* 入口の行 (index。高さ64: 絵の丸44 + 名前17/700 + 補足15 + ›)。押せない行は <div class="cy-row" aria-disabled="true"> (リンクにしない)
   <a class="cy-row" href="…"><span class="cy-row-ic"></span><span class="cy-row-t"><b>音楽</b><span>補足</span></span><span class="cy-row-end">›</span></a> */
.cy-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--cy-hair); color: var(--cy-ink); text-decoration: none;
    -webkit-tap-highlight-color: transparent; }
.cy-row:first-child { border-top: 1px solid var(--cy-hair); }
a.cy-row:active { background: var(--cy-surface); }
a.cy-row:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--cy-focus); }
.cy-row-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cy-row-ic.dash { border: 2px dashed #b9b9b9; }
.cy-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cy-row-t b { font-size: 17px; font-weight: 700; line-height: 1.4; }
.cy-row-t span { font-size: 15px; color: var(--cy-sub); line-height: 1.5; }
.cy-row-end { flex: none; color: var(--cy-sub); font-size: 22px; line-height: 1; padding: 0 4px; }
.cy-row[aria-disabled="true"] { cursor: default; }
.cy-row[aria-disabled="true"] .cy-row-t b { color: #636363; }

/* 準備中などのピル (押せない) */
.cy-pill { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #ececea; color: #636363; font-size: 15px; font-weight: 700; white-space: nowrap; }

/* 選ぶ物 (make の盤の色・ジャケット)。<div class="cy-opts"><button class="cy-opt" aria-pressed="true"><i class="cy-opt-sw" style="--c:#f1f0ec"></i><span>白</span></button>…</div>
   四角は <i class="cy-opt-sq"> (縦57 × 横56。点線の「写真」は .cy-opt-sq.dash)。選んだ物は 2px の輪 + 字を 700 (aria-pressed か aria-checked) */
.cy-opts { display: flex; flex-wrap: wrap; gap: 16px; }
.cy-opt { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 56px; min-height: 44px; padding: 4px 0; border: 0; background: none;
    color: var(--cy-ink); font: inherit; font-size: 16px; line-height: 1.3; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cy-opt-sw { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--c, #f1f0ec); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
    outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.cy-opt-sq { display: block; width: 56px; height: 57px; border-radius: 6px; background: var(--c, #f5f5f4) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
    outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.cy-opt-sq.dash { box-shadow: none; border: 2px dashed #b9b9b9; display: flex; align-items: center; justify-content: center; color: var(--cy-sub); font-size: 24px; font-style: normal; }
.cy-opt small { font-size: 15px; color: var(--cy-sub); }
.cy-opt[aria-pressed="true"] .cy-opt-sw, .cy-opt[aria-pressed="true"] .cy-opt-sq, .cy-opt[aria-checked="true"] .cy-opt-sw, .cy-opt[aria-checked="true"] .cy-opt-sq { outline-color: var(--cy-ink); }
.cy-opt[aria-pressed="true"] > span, .cy-opt[aria-checked="true"] > span { font-weight: 700; }
.cy-opt:focus-visible { outline: 4px solid #000; outline-offset: 2px; border-radius: 8px; }

/* 2つ・3つの切りかえ (縦52)。<div class="cy-seg" role="radiogroup"><button role="radio" aria-checked="true">1個</button><button role="radio" aria-checked="false">2個</button></div> */
.cy-seg { display: flex; gap: 4px; height: 52px; padding: 4px; border-radius: 999px; background: var(--cy-surface); box-sizing: border-box; }
.cy-seg > button { flex: 1; min-width: 0; border: 0; border-radius: 999px; background: none; color: var(--cy-sub); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.cy-seg > button[aria-checked="true"], .cy-seg > button[aria-pressed="true"] { background: #fff; color: var(--cy-ink); box-shadow: 0 2px 8px -2px rgba(0,0,0,.22); }
.cy-seg > button:focus-visible { outline: 4px solid #000; outline-offset: 0; }

/* 値段 + ボタンの固定の列 (make・print)。.cy-dock の中で
   <div class="cy-dock-in cy-paydock"><div class="cy-pay"><b class="cy-pay-n">1,280円</b><span class="cy-pay-s">1個（送料込み）</span></div><button class="cy-btn pri">注文へ<span class="cy-go"></span></button></div> */
.cy-paydock { display: flex; align-items: center; gap: 12px; }
.cy-pay { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cy-pay-n { font-size: 24px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cy-pay-s { font-size: 15px; color: var(--cy-sub); line-height: 1.4; }
.cy-paydock .cy-btn { flex: none; width: auto; min-width: 160px; max-width: 62%; padding: 0 56px 0 24px; }

/* 注意の箱 (オレンジ。15px) */
.cy-warn { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: #fff4e5; color: #6b3d00; font-size: 15px; line-height: 1.6; }

.cy-hidden { display: none !important; }
.cy-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .cy-btn, .cy-go, .cy-box, .cy-box::after, .cy-sheet, .cy-dim, .cy-toast, .cy-prog i::after, .cy-sw i, .cy-sw i::after, .cy-opt-sw, .cy-opt-sq, .cy-seg > button { transition: none !important; }
    .cy-btn:active { transform: none; }
    .cy-spin { animation: none; }
}
