/* =========================================================================
 * tour.css — 「?」からの案内（tt-）と、使い方の小さな絵・ガイド（tg-）
 *   2026-11-07 / ハルト（設計 レイ）。接頭辞 tt- / tg- の物だけ。ページの全体の規則（m.css の button{}・styles.css の h2{} p{} 等）に
 *   負けないよう、.tt-root の下で書体・行間・字間・box-sizing・ボタンの見た目を全部自分で決める。
 *   軽さ: backdrop-filter・filter・will-change は使わない。暗幕は「穴の箱の影」1枚（ぼかし無しの広がりだけ）。
 *   色: 和紙 #FCF9E8／紙 #FFFDF3／茶 #3C321D／緑 #007E43（濃 #005F32）／淡緑 #DFEED1・#E3F2EA／線 #D8D1B8／くすみ #6E6553
 * ========================================================================= */
.tt-root,.tt-hint{
  --tt-cream:#FCF9E8; --tt-paper:#FFFDF3; --tt-brown:#3C321D; --tt-green:#007E43; --tt-green-dk:#005F32; --tt-leaf:#DFEED1; --tt-mint:#E3F2EA;
  --tt-line:#D8D1B8; --tt-muted:#6E6553; --tt-scrim:rgb(60 50 29 / .55); --tt-like:#D81B57; --tt-red:#C0392B;
  --tt-ease:cubic-bezier(.22,.61,.36,1);
  --tt-font:"Zen Maru Gothic","Hiragino Maru Gothic ProN","BIZ UDPGothic","Noto Sans JP",sans-serif;
}
.tt-root{position:fixed;inset:0;z-index:30000;margin:0;box-sizing:border-box;overflow:hidden;outline:none;
  padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
  font:400 15px/1.65 var(--tt-font);letter-spacing:.02em;color:var(--tt-brown);text-align:left;text-transform:none;word-break:normal;line-break:strict;
  touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;
  pointer-events:none;   /* 11/17: 膜そのものは何も受けない。受けるのは板（.tt-blk）と吹き出しだけ＝穴の中は本物の部品へ直に届く（iOS のタップの素通し・ゴーストクリックが一番小さい形） */
  opacity:0;transition:opacity .18s ease}
.tt-root.tt-on{opacity:1}
.tt-root *,.tt-root *::before,.tt-root *::after{box-sizing:border-box}
.tt-root :is(h2,p,ol,li,b){margin:0;padding:0;font:inherit;color:inherit;letter-spacing:inherit;border:0;background:none;text-align:inherit}
.tt-root b{font-weight:700;color:var(--tt-green-dk)}
.tt-root button{-webkit-appearance:none;appearance:none;margin:0;font:inherit;letter-spacing:inherit;line-height:1.2;text-transform:none;cursor:pointer;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:0;background:none;color:inherit;padding:0;min-width:0;width:auto;height:auto;box-shadow:none;transform:none}
.tt-root [hidden]{display:none!important}
.tt-root :focus-visible{outline:2.5px solid var(--tt-green-dk);outline-offset:3px}
.tt-root:focus-visible{outline:none}
.tt-nw{white-space:nowrap}
.tt-root a{color:var(--tt-green);text-decoration:underline;text-underline-offset:2px}

/* ---- 穴（対象の四角）。周りの暗さはこの箱の影＝塗り1回。穴そのものも受けない（pointer-events:none） ---- */
.tt-hole{position:absolute;left:0;top:0;width:0;height:0;border-radius:12px;pointer-events:none;
  box-shadow:0 0 0 2px var(--tt-cream),0 0 0 4px var(--tt-green),0 0 0 9999px var(--tt-scrim);
  transition:transform .22s var(--tt-ease),width .22s var(--tt-ease),height .22s var(--tt-ease),border-radius .22s var(--tt-ease)}
.tt-hole.tt-none{box-shadow:0 0 0 9999px var(--tt-scrim)}
/* 「押せる所」の光の輪（穴の中が本物のコマだけ・opacity/transform のみ）。板を押された時は 1 回強く光る（tt-flash） */
.tt-hole::after{content:"";position:absolute;inset:-4px;border-radius:inherit;box-shadow:0 0 0 3px rgb(255 253 243 / .95),0 0 16px 5px rgb(0 126 67 / .6);opacity:0;pointer-events:none}
.tt-root[data-pass="1"] .tt-hole:not(.tt-none)::after{animation:tt-ring 2.4s var(--tt-ease) .3s infinite}
.tt-hole.tt-flash::after{animation:tt-flash .7s var(--tt-ease) 1!important}
@keyframes tt-ring{0%,100%{opacity:0;transform:scale(1)}40%{opacity:.9;transform:scale(1.015)}70%{opacity:0;transform:scale(1.04)}}
@keyframes tt-flash{0%{opacity:0;transform:scale(1.08)}30%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.02)}}
/* 板: 穴の上・下・左・右の4枚（透明・ここだけが受ける）。閉のコマは穴の上に5枚目（.tt-cap）。寄せている間は1枚で全面 */
.tt-blk{position:absolute;left:0;top:0;width:0;height:0;pointer-events:auto;background:transparent;touch-action:none;
  -webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.tt-root .tt-blk[hidden]{display:none!important}

/* ---- 吹き出し ---- */
.tt-tip{position:absolute;left:0;top:0;width:340px;padding:10px 14px 10px 16px;pointer-events:auto;background:var(--tt-paper);border:1.5px solid var(--tt-line);border-radius:20px;
  box-shadow:0 12px 32px rgb(60 50 29 / .28),0 2px 0 var(--tt-leaf) inset;transition:transform .22s var(--tt-ease)}
.tt-root:not(.tt-on) :is(.tt-hole,.tt-tip),.tt-root.tt-now :is(.tt-hole,.tt-tip){transition:none}
.tt-tail{position:absolute;left:50%;width:16px;height:16px;margin-left:-8px;background:var(--tt-paper);border:1.5px solid var(--tt-line);transform:rotate(45deg);pointer-events:none}
.tt-tip[data-side="bottom"] .tt-tail{top:-8.5px;border-right:0;border-bottom:0;border-radius:4px 0 0 0}
.tt-tip[data-side="top"] .tt-tail{bottom:-8.5px;border-left:0;border-top:0;border-radius:0 0 4px 0}
.tt-tip[data-side="none"] .tt-tail{display:none}

.tt-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;margin:0 -6px 2px 0}
.tt-label{display:inline-flex;align-items:center;gap:5px;padding:3px 11px 3px 8px;border-radius:999px;background:var(--tt-mint);color:var(--tt-green);font-size:12px;font-weight:700;line-height:1.4;letter-spacing:.08em}
.tt-label svg{width:14px;height:14px;fill:var(--tt-green)}
.tt-root .tt-skip{min-height:44px;margin:-6px 0;padding:0 10px;border-radius:12px;color:var(--tt-muted);font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.tt-root .tt-skip:active{background:var(--tt-cream)}

.tt-in.tt-fade{animation:tt-fade .22s var(--tt-ease)}
@keyframes tt-fade{from{opacity:0;transform:translateY(4px)}}
.tt-art{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px 0 8px}
.tt-root .tt-h{font-size:18px;font-weight:700;line-height:1.4;letter-spacing:.04em;color:var(--tt-brown);margin:2px 0 4px}
.tt-b{font-size:15px;line-height:1.7;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.tt-root .tt-note{margin-top:6px;padding-left:1em;text-indent:-1em;font-size:12.5px;line-height:1.6;color:var(--tt-muted)}
.tt-root .tt-note::before{content:"※"}
.tt-root .tt-flow{list-style:none;display:flex;flex-direction:column;gap:6px;margin-top:8px}
.tt-root .tt-flow li{display:flex;align-items:center;gap:9px;padding:6px 10px;border-radius:12px;background:var(--tt-cream);border:1px solid var(--tt-line);font-size:14px;line-height:1.45}
.tt-no{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--tt-green);color:#fff;font-size:12px;font-weight:700;letter-spacing:0}
.tt-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tt-root .tt-act{min-height:44px;padding:0 16px;border-radius:22px;border:2px solid var(--tt-green);background:#fff;color:var(--tt-green);font-size:14px;font-weight:700}
.tt-root .tt-act-write{background:var(--tt-mint)}
.tt-root .tt-act-guide,.tt-root .tt-act-finish{border-color:var(--tt-line);color:var(--tt-brown)}
.tt-root .tt-act-put{background:var(--tt-mint)}
.tt-root .tt-act-noput{border-color:var(--tt-line);color:var(--tt-brown)}
.tt-root .tt-next[hidden]{display:block!important;visibility:hidden}   /* 選ぶコマ（w-put）: 足の並びは崩さず「つぎ」だけ見えなくする */
.tt-root .tt-act:active{background:var(--tt-leaf)}
.tt-root .tt-terms{flex:1 1 100%;font-size:11.5px;line-height:1.6;color:var(--tt-muted)}

.tt-foot{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-top:12px;padding-top:8px;border-top:1px dashed var(--tt-line)}
.tt-root .tt-back{justify-self:start;min-height:44px;padding:0 12px 0 4px;border-radius:12px;color:var(--tt-muted);font-size:14px;font-weight:700}
.tt-root .tt-back::before{content:"‹";margin-right:4px;font-size:18px;line-height:1;vertical-align:-1px}
.tt-root .tt-back[hidden]{display:block!important;visibility:hidden}
.tt-prog{display:flex;flex-direction:column;align-items:center;gap:3px}
.tt-dots{display:flex;gap:4px}
.tt-dots i{display:block;width:6px;height:6px;border-radius:3px;background:var(--tt-line);transition:width .2s var(--tt-ease),background-color .2s}
.tt-dots i.on{width:16px;background:var(--tt-green)}
.tt-dots i.done{background:#9CCBB0}
.tt-count{font-size:11px;line-height:1;color:var(--tt-muted);font-variant-numeric:tabular-nums;letter-spacing:.06em}
.tt-root .tt-next{justify-self:end;min-height:44px;min-width:96px;padding:0 20px;border-radius:22px;background:var(--tt-green);color:#fff;font-size:15px;font-weight:700;
  box-shadow:0 3px 10px rgb(0 126 67 / .28)}
.tt-root .tt-next:active{background:var(--tt-green-dk)}
@media (hover:hover){.tt-root .tt-next:hover{background:var(--tt-green-dk)}.tt-root .tt-act:hover{background:var(--tt-mint)}.tt-root :is(.tt-skip,.tt-back):hover{color:var(--tt-brown)}}

/* ---- 節の見出し兼タブ（11/17）: 小さな字だけ（背景・枠・丸い塊は付けない）。今の節は緑の太字＋細い下線＋数。当たりは上下の余白で 40px ---- */
.tt-secs{display:flex;align-items:center;flex-wrap:nowrap;gap:2px;min-width:0;margin:-6px 0 -6px -6px}
.tt-root .tt-sec{min-height:40px;padding:0 7px;color:var(--tt-muted);font-size:12.5px;font-weight:500;letter-spacing:.06em;white-space:nowrap}
.tt-root .tt-sec.on{color:var(--tt-green-dk);font-weight:700;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.tt-k{margin:0 6px 0 -3px;color:var(--tt-green-dk);font-size:11.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
@media (hover:hover){.tt-root .tt-sec:not(.on):hover{color:var(--tt-brown)}}
.tt-tip.tt-compact .tt-sec:not(.on){display:none}   /* キーボードの間は今の節の名前と数だけ */
.tt-tip.tt-compact .tt-secs{margin-right:auto}
.tt-root .tt-prog[hidden]{display:block!important;visibility:hidden}

/* ---- できた（ok）・止めた操作のひとこと（nudge）・「つぎ」の光・吹き出しの揺れ（transform／translate・opacity のみ） ---- */
.tt-root .tt-ok{margin-top:8px;padding:5px 10px;border-radius:10px;background:var(--tt-mint);color:var(--tt-green-dk);font-size:13.5px;font-weight:700;line-height:1.5;animation:tt-fade .22s var(--tt-ease)}
.tt-root .tt-ok::before{content:"✓ ";font-weight:700}
.tt-root .tt-ok.tt-nudge{background:#FBEDE3;color:#8A3B12}
.tt-root .tt-ok.tt-nudge::before{content:"! "}
.tt-root .tt-next.tt-glow{animation:tt-glow 1.3s var(--tt-ease) 1}
@keyframes tt-glow{0%,100%{transform:none}20%{transform:scale(1.1)}40%{transform:scale(.98)}60%{transform:scale(1.07)}80%{transform:none}}
.tt-tip.tt-shake{animation:tt-shake .42s ease 1}
@keyframes tt-shake{0%,100%{translate:0 0}20%{translate:-6px 0}45%{translate:5px 0}70%{translate:-3px 0}}
/* キーボードが出ている間の小さい吹き出し（題＋1〜2行＋つぎ／とばす。ドット・絵・注は出さない。高さは走者が見えている高さの 4 割に収める） */
.tt-tip.tt-compact{padding:6px 12px 6px 14px;border-radius:16px}
.tt-tip.tt-compact .tt-top{min-height:26px;margin-bottom:0}
.tt-tip.tt-compact .tt-label{display:none}
.tt-tip.tt-compact .tt-top{justify-content:flex-end}
.tt-tip.tt-compact :is(.tt-art,.tt-note,.tt-dots,.tt-flow){display:none!important}
.tt-root .tt-tip.tt-compact .tt-h{font-size:15px;margin:0 0 2px}
.tt-tip.tt-compact .tt-b{font-size:14px;line-height:1.55}
.tt-root .tt-tip.tt-compact .tt-ok{margin-top:4px;padding:3px 8px;font-size:12.5px}
.tt-tip.tt-compact .tt-foot{margin-top:6px;padding-top:4px}
.tt-root .tt-tip.tt-compact :is(.tt-next,.tt-back,.tt-skip){min-height:40px}
/* 寄せている間（カードを閉じる等の 0.1〜1 秒）: 吹き出しを少し引く */
.tt-root.tt-wait .tt-tip{opacity:.55;transition:opacity .15s}

/* ---- とばした時の知らせ（押しても下へ通る） ---- */
.tt-hint{position:fixed;inset:0;z-index:30000;pointer-events:none;font:700 13px/1.4 var(--tt-font);letter-spacing:.02em}
.tt-hint-ring{position:absolute;box-shadow:0 0 0 3px var(--tt-cream),0 0 0 6px var(--tt-green);animation:tt-pulse 1.1s var(--tt-ease) 2}
.tt-hint-msg{position:absolute;left:0;top:0;white-space:nowrap;padding:8px 14px;border-radius:999px;background:var(--tt-brown);color:#fff;box-shadow:0 6px 18px rgb(60 50 29 / .3);animation:tt-fade .22s var(--tt-ease)}
@keyframes tt-pulse{0%{transform:scale(.9);opacity:0}30%{opacity:1}100%{transform:scale(1.18);opacity:0}}
.tt-hint.tt-still .tt-hint-ring{animation:tt-hide 0s linear 1.5s forwards}
@keyframes tt-hide{to{visibility:hidden}}

/* ---- 小さな絵（案内の吹き出しとガイドで同じ部品）。値は本物から写した: /m/＝m.css・PC＝chat.html の <style>・styles.css。
 *      全部 em（1em＝本物の 16px）。大きさは --k だけ（.tt-art・.tg-guide・@container で変える）。動きは transform / opacity のキーフレームだけ ---- */
.tg-leaf svg{display:block;width:64px;height:32px}
.tt-art .tg-leaf svg{width:34px;height:17px}   /* 11/17: hello の葉っぱは題の隣の小さな葉っぱ印と重なるので半分ほどに */
.tg-leaf .a{fill:var(--tt-leaf);stroke:var(--tt-green);stroke-width:2;stroke-linejoin:round}
.tg-leaf .b{fill:none;stroke:var(--tt-green);stroke-width:1.6;stroke-linecap:round}
.tg-mini{--g-cmt:rgb(252 249 232 / .94);--g-quiet:#8A8474;--g-qline:rgb(60 50 29 / .10);--g-hl:#FF9F1A;--g-veil:rgb(244 241 229 / .62);--g-count:#6C6C6C;--g-heart:#A3A3A3;
  --g-like:#D81B57;--g-toast:#2B2B2B;--g-tbtn:#7FE0A8;--g-sheet:#FFFDF3;--g-cream:#FCF9E8;--g-brown:#3C321D;--g-green:#007E43;--g-green-dk:#005F32;--g-line:#D8D1B8;--g-red:#C0392B;--g-pcline:#C8E6D6;
  position:relative;display:block;flex:none;width:17em;height:9em;margin:0;padding:0;font-size:calc(16px * var(--k,.75));line-height:1.25;
  border-radius:.875em;border:.094em solid var(--g-line);background:var(--g-cream);overflow:hidden;color:var(--g-brown);
  font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN","BIZ UDPGothic","Noto Sans JP",sans-serif;font-weight:400;font-style:normal;letter-spacing:0;text-align:left;white-space:nowrap;text-indent:0;
  -webkit-user-select:none;user-select:none;pointer-events:none;isolation:isolate;contain:paint}
:where(.tg-mini) *{box-sizing:border-box}
:where(.tg-mini) :is(p,b,i,span){margin:0;padding:0;font-style:normal}
.tg-mini svg{display:block;fill:currentColor}
.tg-ly{position:absolute;inset:0}
/* コメント（.c／.comment: 角丸 12px・1.5px の currentColor の枠・和紙色の地・字間 2px・右に♡と数） */
.tg-c{position:absolute;display:block;padding:.625em 2.19em .625em .94em;border-radius:.75em;border:.094em solid currentColor;background:var(--g-cmt);
  box-shadow:0 .19em .625em rgb(60 50 29 / .15);font-weight:700;letter-spacing:.125em;line-height:1.25}
.tg-c .tg-t{display:block}
.tg-lk{position:absolute;right:.81em;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:center;letter-spacing:0}
.tg-lk svg{width:1.125em;height:1.125em;fill:var(--g-heart)}
.tg-lk.on svg{fill:var(--g-like)}
.tg-lk b{display:block;font:400 .75em/1.2 "Noto Sans JP",sans-serif;color:var(--g-count)}
.tg-k1{left:.75em;top:.7em;color:#3C321D}
.tg-k2{left:9.6em;top:1.2em;color:#007E43}
.tg-k3{left:2.2em;top:4.2em;color:#8A5A2B}
.tg-k4{left:12.6em;top:4.6em;color:#B0306A}
.tg-k5{left:-2em;top:7em;color:#2F6DB5}
.tg-sel{outline:.25em solid var(--g-hl);outline-offset:.19em;box-shadow:0 0 1.125em .56em rgb(255 159 26 / .75)}
.tg-hov{box-shadow:0 .375em 1.125em rgb(60 50 29 / .25)}
.tg-veil{position:absolute;inset:0;background:var(--g-veil)}
/* 指とカーソル（.tg-ptr の左上＝触れている点） */
.tg-ptr{position:absolute;left:8em;top:3.6em;width:0;height:0;z-index:5}
.tg-finger{position:absolute;left:-.8em;top:-.8em;width:1.6em;height:1.6em;border-radius:50%;background:rgb(60 50 29 / .28);border:.125em solid #fff;box-shadow:0 .125em .375em rgb(60 50 29 / .3)}
.tg-cursor{position:absolute;left:-.31em;top:-.19em;width:1.5em;height:1.5em;fill:var(--g-brown)!important;stroke:#fff;stroke-width:1.5;stroke-linejoin:round}
/* 動かす（地図ごと左右へ） */
.tg-pan .tg-ly,.tg-pan .tg-ptr{animation:tg-pan 3s ease-in-out infinite}
@keyframes tg-pan{0%,100%{transform:translateX(-1.6em)}50%{transform:translateX(1.6em)}}
/* /m/ の下段（.bar・.bb・.bic・.blb: 高さ 68px・4つ並び・灰色の囲い無し・ペンだけ緑） */
.tg-bar{position:absolute;left:0;right:0;bottom:0;height:4.25em;z-index:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;justify-items:center;background:var(--g-cream);border-top:.0625em solid var(--g-qline)}
.tg-bb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.06em;min-width:0;max-width:100%;padding:0 .2em;min-height:3em;border-radius:.75em;color:var(--g-quiet)}
.tg-bic{display:flex;align-items:center;justify-content:center;width:1.5em;height:1.25em;font:400 1.5em/1 sans-serif;color:inherit}
.tg-bic svg{width:.92em;height:.92em}
.tg-blb{font-size:.656em;line-height:1.2}
.tg-pen{color:var(--g-green)}
.tg-hl{color:var(--g-green);background:rgb(0 126 67 / .08);box-shadow:0 0 0 .125em rgb(0 126 67 / .45)}
.tg-zm .tg-ly{transform-origin:8.5em 2.4em;animation:tg-zm 4.2s ease-in-out infinite}
@keyframes tg-zm{0%,20%,100%{transform:none}30%,50%{transform:scale(.74)}62%,86%{transform:scale(1.22)}}
.tg-zm .z1{animation:tg-press 4.2s ease-in-out infinite}
.tg-zm .z2{animation:tg-press 4.2s ease-in-out 1.35s infinite}
@keyframes tg-press{0%,18%,30%,100%{transform:none}23%{transform:scale(.9)}}
/* /m/ 読むカード（#card・.kact: 上の角 18px・和紙・本文 19px 太字・ボタンは灰色の囲い無し・♡は押した時だけ色） */
.tg-read .tg-k1{left:2.4em;top:.15em;font-size:.8em}
.tg-read .tg-k4{left:12.4em;top:-.6em}
.tg-read .tg-k2{left:-2.4em;top:1.6em}
.tg-card{position:absolute;left:0;right:0;bottom:0;z-index:3;background:var(--g-sheet);border-radius:1.125em 1.125em 0 0;box-shadow:0 -.375em 1.375em rgb(60 50 29 / .22);padding:.2em .875em .35em}
.tg-ktop{display:flex;align-items:center;gap:.5em;height:1.6em}
.tg-meta{flex:1;min-width:0;font-size:.75em;color:var(--g-quiet)}
.tg-kt{flex:none;display:grid;place-items:center;width:2.75em;height:1.6em;margin-right:1em;border-radius:.75em;color:var(--g-quiet)}
.tg-kt svg{width:1.25em;height:1.25em}
.tg-kx{font:400 1.125em/1 sans-serif;color:var(--g-quiet);margin-right:-.2em}
.tg-kbody{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:.375em;align-items:start;margin:0 0 .15em}
.tg-mini .tg-ktext{margin:0;font-size:1.1875em;font-weight:700;letter-spacing:.053em;line-height:1.5;color:var(--g-brown)}
.tg-like{display:flex;flex-direction:column;align-items:center;gap:.06em;width:2.875em;margin-right:-.56em;padding:.1em 0 .2em;color:var(--g-quiet)}
.tg-like b{font:500 .75em/1.2 "Zen Maru Gothic",sans-serif;color:var(--g-quiet)}
.tg-hrt{width:1.5em!important;height:1.5em!important;fill:none!important;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round}
.tg-kact{display:flex;justify-content:space-between;align-items:center;height:2em}
.tg-kb{display:inline-flex;align-items:center;justify-content:center;gap:.21em;height:100%;padding:0 .29em;border-radius:.86em;color:var(--g-quiet);font-size:.875em;font-weight:500;line-height:1}
.tg-kb .tg-chev{width:1.21em;height:1.21em}
.tg-likeon .tg-like{color:var(--g-like)}
.tg-likeon .tg-like svg{animation:tg-pop 2.4s ease-in-out infinite}
@keyframes tg-pop{0%,30%,60%,100%{transform:none}40%{transform:scale(1.3)}}
.tg-at-like{left:15.1em;top:4.75em}
.tg-at-like .tg-finger,.tg-at-heart .tg-finger{animation:tg-tap 2.4s ease-in-out infinite}
@keyframes tg-tap{0%,25%,55%,100%{transform:none;opacity:1}38%{transform:scale(.8);opacity:.85}}
/* /m/ 書く（帯 #head: 緑・左 やめる／右 次へ＝白い小判。打つ所 #wp: 置いた時と同じ吹き出し） */
.tg-head{position:absolute;left:0;right:0;top:0;height:3.25em;z-index:4;display:flex;align-items:center;justify-content:space-between;padding:0 .375em 0 .25em;
  background:var(--g-green);border-bottom:.0625em solid var(--g-green-dk);box-shadow:0 .125em .625em rgb(60 50 29 / .22);color:#fff}
.tg-hc{padding:0 .8em;font-size:.9375em;font-weight:700}
.tg-hp{display:flex;align-items:center;height:2.4em;padding:0 1.2em;border-radius:1.2em;background:#fff;color:var(--g-green);font-size:.9375em;font-weight:700;
  box-shadow:0 0 0 .2em rgb(255 255 255 / .35);animation:tg-call 2.4s ease-in-out infinite}
@keyframes tg-call{0%,40%,100%{transform:none}55%{transform:scale(1.08)}70%{transform:none}}
.tg-sheet{position:absolute;left:0;right:0;top:3.25em;z-index:3;display:flex;flex-direction:column;align-items:flex-start;padding:.75em .75em .9em;background:var(--g-sheet);border-radius:0 0 1.125em 1.125em;box-shadow:0 .375em 1.125em rgb(60 50 29 / .22)}
.tg-wc{position:relative;color:var(--g-brown);box-shadow:0 0 0 .19em #E3F2EA}
.tg-caret{display:inline-block;width:.1em;height:1.1em;margin-left:.08em;vertical-align:-.18em;background:currentColor;animation:tg-blink 1s steps(1) infinite}
@keyframes tg-blink{50%{opacity:0}}
.tg-scrim{position:absolute;left:0;right:0;top:3.25em;bottom:0;z-index:2;background:rgb(0 0 0 / .45)}
.tg-wr{background:var(--g-cream)}
.tg-wr .tg-ly{display:none}
/* /m/ 置く（書きかけ＝点線の吹き出しを指で動かす・#wbar: ← 文字を直す・−・＋） */
.tg-pl .tg-k1{left:.4em;top:3.5em}.tg-pl .tg-k2{left:11.2em;top:3.9em}.tg-pl .tg-k4{left:5.4em;top:5.4em}
.tg-mv{position:absolute;left:2.6em;top:3.7em;z-index:3;animation:tg-mv 3.6s ease-in-out infinite}
@keyframes tg-mv{0%,100%{transform:translate(-1.2em,.1em)}50%{transform:translate(1.4em,-.2em)}}
.tg-mv .tg-c{position:relative}
.tg-ghost{border-style:dashed;background:var(--g-sheet);color:var(--g-brown);box-shadow:0 .625em 1.625em rgb(40 30 10 / .38)}
.tg-mv .tg-finger{left:5em;top:1.2em}
.tg-wbar{position:absolute;left:0;right:0;bottom:0;height:2.6em;z-index:4;display:flex;align-items:center;gap:.875em;padding:0 .75em 0 .5em;background:var(--g-cream);border-top:.0625em solid var(--g-qline);color:var(--g-quiet)}
.tg-wbk{margin-right:auto;font-size:.875em;font-weight:700}
.tg-wb{width:1.85em;text-align:center;font:400 1.625em/1 sans-serif}
/* /m/ 消す・元に戻す（カードのゴミ箱 → #toast: 濃い灰・〔元に戻す〕は緑の線・5秒で減る帯） */
.tg-del .tg-k1{left:4.4em;top:3.3em}
.tg-card-s{top:.45em;bottom:auto;left:.45em;right:.45em;border-radius:1.125em;padding:.3em .75em .35em;box-shadow:0 .25em 1em rgb(60 50 29 / .22)}
.tg-trashon .tg-kt{color:var(--g-red);background:rgb(192 57 43 / .08);box-shadow:0 0 0 .125em rgb(192 57 43 / .55);animation:tg-pop 2.4s ease-in-out infinite}
.tg-toast{position:absolute;left:.71em;right:.71em;bottom:.71em;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:.71em;min-height:3.57em;padding:.71em .71em .86em 1em;
  overflow:hidden;border-radius:.86em;background:var(--g-toast);color:#fff;font-size:.875em;font-weight:500;line-height:1.35;box-shadow:0 .29em 1em rgb(0 0 0 / .3);white-space:normal}
.tg-tm{min-width:0}
.tg-undo{flex:none;display:flex;align-items:center;min-height:2.6em;padding:0 .93em;border-radius:1.4em;border:.133em solid var(--g-tbtn);color:var(--g-tbtn);font-size:1.07em;font-weight:700;white-space:nowrap}
.tg-drain{position:absolute;left:0;bottom:0;width:100%;height:.29em;background:var(--g-tbtn);transform-origin:left;animation:tg-drain 5s linear infinite}
@keyframes tg-drain{from{transform:scaleX(1)}to{transform:scaleX(0)}}
/* PC 書く（ダブルクリック → #commentBox: 和紙・2px の緑の枠・角丸 18px・入力欄は白に #C8E6D6 の枠） */
.tg-dbl .tg-k1{left:.6em;top:.6em}.tg-dbl .tg-k3{left:-3em;top:6.2em}
.tg-at-dbl{left:5.4em;top:3.5em}
.tg-rip{position:absolute;left:-.9em;top:-.9em;width:1.8em;height:1.8em;border-radius:50%;border:.125em solid var(--g-green);opacity:0;animation:tg-rip 2.6s ease-out infinite}
.tg-rip.r2{animation-delay:.22s}
@keyframes tg-rip{0%{transform:scale(.3);opacity:0}6%{opacity:1}26%{transform:scale(1.5);opacity:0}100%{opacity:0}}
.tg-cbox{position:absolute;left:6.3em;top:3.4em;z-index:3;width:10.2em;display:flex;flex-direction:column;gap:.4em;padding:1.1em .9em .9em;background:var(--g-cream);border:.125em solid var(--g-green);border-radius:1.125em;
  box-shadow:0 .375em 1.5em rgb(60 50 29 / .22);animation:tg-show 2.6s ease infinite}
.tg-bx{position:absolute;right:.4em;top:.2em;font-size:1.125em;color:var(--g-count)}
.tg-in{display:block;overflow:hidden;text-overflow:clip;padding:.62em .75em;background:#fff;border:.094em solid var(--g-pcline);border-radius:.625em;color:#9A9A9A;font-size:.85em}
.tg-in .tg-caret{color:var(--g-brown);margin:0 .1em 0 0}
.tg-lab{font-size:.75em;font-weight:700}
.tg-sel2{display:block;padding:.375em .5em;background:#fff;border:.094em solid var(--g-pcline);border-radius:.5em;font-size:.85em}
.tg-send{display:none}
@keyframes tg-show{0%,24%{opacity:0;transform:translateY(.25em) scale(.96)}34%,92%{opacity:1;transform:none}100%{opacity:0}}
/* いいね（PC・iPad・Android）: ♡が色付き、数が1つ増える */
.tg-lk1 .tg-k2{left:-1.5em;top:6.4em}
.tg-big{left:1.3em;top:2.25em;font-size:1.25em;color:var(--g-green)}
.tg-big .tg-lk{display:grid;justify-items:center;align-content:center}
.tg-big .tg-lk svg{grid-area:1/1}
.tg-big .tg-lk b{grid-area:2/1;display:grid}
.tg-big .tg-lk b span{grid-area:1/1}
.tg-big .h1,.tg-big .n1{fill:var(--g-like);animation:tg-on 2.6s ease infinite}
.tg-big .h0,.tg-big .n0{opacity:0;animation:tg-off 2.6s ease infinite}
@keyframes tg-on{0%,38%{opacity:0;transform:scale(.6)}48%{opacity:1;transform:scale(1.25)}58%,92%{opacity:1;transform:none}100%{opacity:0}}
@keyframes tg-off{0%,38%{opacity:1}44%,96%{opacity:0}100%{opacity:1}}
.tg-at-heart{left:13.66em;top:3.94em}
.tg-at-heart .tg-cursor{animation:tg-tap 2.6s ease-in-out infinite}
/* PC 消す（右クリック → #contextMenu: 赤 #C0392B の箱・白い太字 15px・下に残りの回数 #6E1F18） */
.tg-ctx .tg-k1{left:.6em;top:.5em}
.tg-ctx .tg-k2{left:1.8em;top:3em}
.tg-at-ctx{left:5.2em;top:4.3em}
.tg-menu{position:absolute;left:5.5em;top:4.5em;z-index:4;display:flex;flex-direction:column;overflow:hidden;border-radius:.625em;box-shadow:0 .25em .75em rgb(0 0 0 / .25);font-family:"Noto Sans JP",sans-serif;animation:tg-show 2.6s ease infinite}
.tg-mb{display:block;padding:.87em 1.47em;background:var(--g-red);color:#fff;font-size:.9375em;font-weight:700}
.tg-mi{display:block;padding:.36em 2em .64em;background:#6E1F18;color:rgb(255 255 255 / .88);font-size:.6875em;text-align:center;letter-spacing:.04em}
/* /pc/ の下段（#bar: 下の真ん中に浮く札・角丸 18px・影。並びは /m/ の下段と同じ5つ）。11/14 段2: 旧画面の右下の丸い＋−（tg-zp・tg-zc）の絵はここへ差し替えた */
.tg-pbar{left:.5em;right:.5em;bottom:.5em;height:3.5em;border:.0625em solid var(--g-qline);border-radius:1.125em;background:var(--g-sheet);box-shadow:0 .375em 1.375em rgb(60 50 29 / .2)}
.tg-pbar .tg-bb{min-height:2.9em}
.tg-pbar .tg-blb{font-size:.6em}
/* /pc/ 読むカード（#card: 下の真ん中に浮く・四隅とも角丸 18px）。中身は /m/ のカードと同じ部品・カーソルで♡ */
.tg-pcu .tg-card{left:.8em;right:.8em;bottom:.25em;border-radius:1.125em;box-shadow:0 .375em 1.375em rgb(60 50 29 / .22)}
.tg-pcu .tg-at-like{left:14.3em;top:4.5em}
.tg-pcu .tg-at-like .tg-cursor{animation:tg-tap 2.4s ease-in-out infinite}
/* /pc/ 書く（その場で打つ: 書きかけ #wPrev＝緑の輪のコメント・上に道具 #wTool＝書体・大きさ・色・「書く」） */
.tg-wpc .tg-k1{left:11em;top:6.3em}.tg-wpc .tg-k3{left:-3.2em;top:6.9em}
.tg-at-wpc{left:4.4em;top:6.2em}
.tg-wt{position:absolute;left:.7em;top:.7em;z-index:4;display:flex;align-items:center;gap:.3em;padding:.32em .4em;background:var(--g-sheet);border:.0625em solid var(--g-qline);border-radius:1em;
  box-shadow:0 .5em 1.5em rgb(60 50 29 / .22);animation:tg-show 2.6s ease infinite}
.tg-wf,.tg-ws,.tg-wd{display:flex;align-items:center;height:2.6em;border:.11em solid var(--g-line);border-radius:1.3em;background:#fff;font-size:.69em;font-weight:700}
.tg-wf{padding:0 .7em}
.tg-wf::after{content:"";width:.4em;height:.4em;margin:-.2em 0 0 .5em;border-right:.16em solid currentColor;border-bottom:.16em solid currentColor;transform:rotate(45deg)}
.tg-ws{overflow:hidden;color:var(--tt-muted,#6E6553)}
.tg-ws i{display:flex;align-items:center;height:100%;padding:0 .55em;border-left:.08em solid var(--g-line)}
.tg-ws i:first-child{border-left:0}
.tg-ws i.on{background:#E3F2EA;color:var(--g-green)}
.tg-wd{gap:.35em;padding:0 .7em 0 .5em}
.tg-wd i{width:1.2em;height:1.2em;border-radius:50%;background:var(--g-brown)}
.tg-wp{display:flex;align-items:center;height:2.5em;padding:0 1em;border-radius:1.25em;background:var(--g-green);color:#fff;font-size:.75em;font-weight:700}
.tg-wn{left:4.1em;top:3.75em;z-index:3;color:var(--g-brown);outline:.19em solid var(--g-green);outline-offset:.25em;animation:tg-show 2.6s ease infinite}
/* /pc/ 言葉をさがす（#find: 上の真ん中の窓。当たりの字は黄色・今の当たりは橙＝p-find.js の mark.lf） */
.tg-fdp .tg-k1{left:.6em;top:3.6em}.tg-fdp .tg-k3{left:3.4em;top:6.4em}.tg-fdp .tg-k4{left:7.4em;top:3.6em}
.tg-mk{padding:0;background:#FFE45C;border-radius:.12em;color:inherit}.tg-mk.on{background:#FF9E3D}
.tg-fb{position:absolute;left:3.1em;top:.55em;z-index:4;display:flex;align-items:center;gap:.35em;padding:.3em .4em;background:var(--g-sheet);border:.0625em solid var(--g-line);border-radius:.75em;
  box-shadow:0 .375em 1.1em rgb(60 50 29 / .2);font-size:.75em;animation:tg-show 2.6s ease infinite}
.tg-fi{display:flex;align-items:center;width:5.6em;height:1.9em;padding:0 .6em;border:.0625em solid var(--g-line);border-radius:.5em;background:#fff;font-weight:700}
.tg-fn{min-width:2.6em;text-align:center;color:var(--g-quiet);font-variant-numeric:tabular-nums}
.tg-fa{display:grid;place-items:center;width:1.9em;height:1.9em;border:.0625em solid var(--g-line);border-radius:.5em;background:#fff;font-size:.8em;color:var(--g-quiet)}
/* iPad・Android 長押し（0.5秒 → 本番の ＋ と ゴミ箱 の丸 48px） */
.tg-lp .tg-k1{left:.6em;top:.6em}.tg-lp .tg-k3{left:-3em;top:6.2em}
.tg-at-lp{left:10.4em;top:5.4em}
.tg-ring{position:absolute;left:-1.3em;top:-1.3em;width:2.6em;height:2.6em;border-radius:50%;border:.15em solid var(--g-green);animation:tg-hold 2.6s ease-out infinite}
@keyframes tg-hold{0%{transform:scale(.4);opacity:0}5%{opacity:.9}30%{transform:scale(1);opacity:.9}40%,100%{transform:scale(1.1);opacity:0}}
.tg-menu2{position:absolute;left:11.2em;top:.9em;z-index:4;display:flex;gap:1.25em;animation:tg-show 2.6s ease infinite}
.tg-ico{display:block;width:3em;height:3em;border-radius:50%;box-shadow:0 .25em .5em rgb(0 0 0 / .3)}
.tg-lpc .tg-k2{left:2.2em;top:3.9em}
.tg-at-lpc{left:5.4em;top:5.2em}
.tg-lpc .tg-menu2{left:8.7em;top:.5em}
.tg-hot{box-shadow:0 0 0 .19em rgb(255 255 255 / .9),0 0 0 .38em rgb(60 50 29 / .35)}

/* ---- 使い方のガイド（.tg-guide: トップの #howToModal の中・部屋の上の .tg-root の中で同じ物）。
 *      並べ方は data-layout（tabs｜stack）。幅は箱の幅で決める（@container）: 狭い＝1列（絵が上・文が下）／440px〜＝2列／600px〜＝3列 ---- */
.tg-guide{--k:.8;display:block;container-type:inline-size;margin:0;padding:0;box-sizing:border-box;
  font:400 15px/1.7 "Zen Maru Gothic","Hiragino Maru Gothic ProN","BIZ UDPGothic","Noto Sans JP",sans-serif;letter-spacing:.02em;color:#3C321D;text-align:left;-webkit-text-size-adjust:100%}
.tg-guide *,.tg-guide *::before,.tg-guide *::after{box-sizing:border-box}
.tg-guide :is(h3,h4,p,ol,li,section){margin:0;padding:0;font:inherit;color:inherit;letter-spacing:inherit;border:0;background:none;list-style:none;text-align:inherit}
.tg-guide [hidden]{display:none!important}
.tg-guide .tg-lead{margin:0 0 14px;text-align:center;font-size:14px;color:#6E6553}
.tg-tabs{display:flex;width:max-content;max-width:100%;margin:0 auto 18px;padding:4px;gap:4px;border-radius:999px;background:#F1ECD6;border:1px solid #E4DCC0}
.tg-guide .tg-tab{-webkit-appearance:none;appearance:none;flex:0 1 auto;min-width:0;min-height:40px;margin:0;padding:0 16px;border:0;border-radius:999px;background:none;color:#6E6553;cursor:pointer;
  font:700 14px/1.2 "Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif;letter-spacing:.03em;white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-shadow:none;text-transform:none}
/* 狭い画面（375px の SE など）: 「スマホ・タブレット」が切れないよう詰める。280px 以下はタブの中で折り返す（語の途中では折らない） */
@container (max-width:340px){ .tg-guide .tg-tab{padding:0 10px;font-size:13px;letter-spacing:0} }
@container (max-width:280px){ .tg-guide .tg-tab{flex:1 1 auto;padding:4px 8px;white-space:normal;word-break:keep-all;overflow-wrap:normal;line-height:1.25} }
.tg-guide .tg-tab[aria-selected="true"]{background:#007E43;color:#fff;box-shadow:0 2px 8px rgb(0 126 67 / .28)}
.tg-guide .tg-tab:focus-visible{outline:2.5px solid #005F32;outline-offset:2px}
@media (hover:hover){.tg-guide .tg-tab[aria-selected="false"]:hover{color:#3C321D;background:rgb(255 255 255 / .6)}}
.tg-guide .tg-sec{display:flex;align-items:center;justify-content:center;margin:0 0 12px;padding:4px 0;border-radius:20px;background:#DFEED1;color:#007E43;font-size:14px;font-weight:700;letter-spacing:.06em}
.tg-guide[data-layout="stack"] .tg-panel+.tg-panel{margin-top:24px}
.tg-guide .tg-steps{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.tg-guide .tg-step{display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px 12px 14px;border-radius:18px;background:#FFFDF3;border:1.5px solid #E4DCC0}
.tg-pic{display:flex;justify-content:center;min-width:0}
.tg-txt{min-width:0}
.tg-guide .tg-sh{display:flex;align-items:center;gap:8px;margin:0 0 3px;font-size:16px;font-weight:700;line-height:1.4;color:#3C321D;word-break:auto-phrase}   /* 見出しは語句の切れ目で折る（Chrome。効かない所は今までどおり） */
.tg-no{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#007E43;color:#fff;font-size:13px;font-weight:700;line-height:1;letter-spacing:0}
.tg-guide .tg-sp{font-size:14px;line-height:1.7;color:#4A4030}
@container (min-width:440px){ .tg-guide .tg-steps{grid-template-columns:repeat(2,minmax(0,1fr))} .tg-guide .tg-steps{--k:.66} }
@container (min-width:600px){ .tg-guide .tg-steps{grid-template-columns:repeat(3,minmax(0,1fr))} .tg-guide .tg-steps{--k:.6} }
@container (min-width:660px){ .tg-guide .tg-steps{--k:.68} }

/* ---- 部屋の上に開くガイド（案内の〔くわしい使い方〕）。見た目はトップの「使い方」の箱（.modal-content）と同じ値 ---- */
.tg-root{position:fixed;inset:0;z-index:30000;display:flex;align-items:center;justify-content:center;margin:0;box-sizing:border-box;
  padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  background:rgb(60 50 29 / .45);touch-action:none;overscroll-behavior:contain;-webkit-tap-highlight-color:transparent;animation:tt-fade .18s ease}
.tg-box{position:relative;width:100%;max-width:760px;max-height:85vh;max-height:85dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;
  margin:0;padding:52px 48px 44px;box-sizing:border-box;border-radius:24px;background:#FCF9E8;color:#3C321D;box-shadow:0 8px 32px rgb(60 50 29 / .18);text-align:left;
  font:400 15px/1.7 "Zen Maru Gothic","Hiragino Maru Gothic ProN","BIZ UDPGothic","Noto Sans JP",sans-serif;-webkit-user-select:none;user-select:none}
.tg-box :is(h2,p){margin:0;padding:0;border:0;background:none;letter-spacing:normal}
.tg-root .tg-x{-webkit-appearance:none;appearance:none;position:absolute;top:20px;right:24px;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:50%;background:#fff;color:#3C321D;
  display:flex;align-items:center;justify-content:center;font:400 18px/1 sans-serif;cursor:pointer;touch-action:manipulation}
.tg-root .tg-x::before{content:"";position:absolute;inset:-6px}
.tg-root .tg-x:focus-visible{outline:2.5px solid #005F32;outline-offset:2px}
@media (hover:hover){.tg-root .tg-x:hover{background:#eee}}
.tg-box .tg-title{margin:0 0 28px;padding:0 0 16px;border-bottom:1.5px dashed #c8c0a8;text-align:center;font:700 22px/1.4 "Zen Maru Gothic",sans-serif;color:#3C321D}
.tg-box .tg-note{margin-top:16px;text-align:center;font:400 12px/1.7 "Noto Sans JP",sans-serif;color:#6C6C6C}
.tg-box .tg-ver{margin-top:12px;text-align:right;font-size:11px;color:#c8c0a8}
.tg-box .tg-terms{margin-top:16px;padding-top:14px;border-top:1px solid #D8D1B8;text-align:center;font-size:12.5px;color:#6C6C6C}
.tg-box .tg-terms a{color:#007E43;text-decoration:underline}
@media (max-width:480px){ .tg-box{padding:40px 20px 28px} .tg-box .tg-title{font-size:18px;margin-bottom:20px} }

/* 案内の吹き出しの中の絵の大きさ */
.tt-art .tg-mini{--k:.66}

/* ---- 動きを減らす設定: 動きを全部切る（止めた絵・ぱっと切り替わる） ---- */
@media (prefers-reduced-motion: reduce){
  .tt-root,.tt-root *,.tt-root *::before,.tt-root *::after,.tt-hint *,.tg-root,.tg-mini,.tg-mini *,.tg-guide *{transition:none!important;animation:none!important}
  .tt-hint.tt-still .tt-hint-ring{animation:tt-hide 0s linear 1.5s forwards!important}
}
