/* 頭身チェック style.css — 色は hotyoga の 4 値だけ（墨 #2A2420・紙 #FFFFFF・黄 #FFD349・淡いグレー #BAB4AC）
   WordPress のページに直接入るので（0.2.0〜）、全部の規則をツールの外枠 #tc-root の中だけに効かせる。
   セレクタの頭の #tc-root#tc-root#tc-root（同じ id を 3 つ重ねる）は、テーマの「#content #main h2」のような id 2 つまでの規則より強くするため。 */
@font-face { font-family: 'Zen Maru Gothic'; font-weight: 500; font-display: swap; src: url('fonts/zen-maru-gothic-500.woff') format('woff'); }
@font-face { font-family: 'Zen Maru Gothic'; font-weight: 700; font-display: swap; src: url('fonts/zen-maru-gothic-700.woff') format('woff'); }
@font-face { font-family: 'Zen Maru Gothic'; font-weight: 900; font-display: swap; src: url('fonts/zen-maru-gothic-900.woff') format('woff'); }

/* ---------------------------------------------------------------- テーマの見た目を打ち消す（ツールの中の HTML の要素だけ。SVG の中には当てない）
   all: revert で、テーマが要素に当てた背景・枠・余白・文字の大きさなどをブラウザの既定に戻してから、下の規則で組み直す。
   箱の大きさと余白（margin・padding・width・height・border・box-sizing ほか）は全部 !important にしてある。
   テーマの「.post input { padding: 10px !important }」（hotyoga の追加 CSS）のような !important の規則には、
   !important を付けない規則はどれだけ強くても負けるため（裁定書 25-2）。#tc-root を 3 つ重ねた強さなので、!important どうしでもツールが勝つ */
#tc-root#tc-root#tc-root :is(div, section, p, h1, h2, span, a, button, input, label, ol, ul, li, figure, figcaption, img, canvas, i) {
  all: revert; box-sizing: border-box !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important; stop-color: var(--ink); flood-color: var(--ink);
}
#tc-root#tc-root#tc-root { all: revert; display: block; position: relative; isolation: isolate; z-index: 0; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; float: none;
  box-sizing: border-box !important; font-size: 16px; font-weight: 400; font-style: normal; line-height: normal; letter-spacing: normal; word-spacing: normal;
  text-align: left; text-indent: 0; text-transform: none; text-shadow: none; white-space: normal; }
#tc-root#tc-root#tc-root img, #tc-root#tc-root#tc-root canvas { max-width: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; background: none; }
#tc-root#tc-root#tc-root svg { max-width: none !important; }
#tc-root#tc-root#tc-root button { -webkit-appearance: none; appearance: none; text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none; min-height: 0 !important; min-width: 0 !important; }
#tc-root#tc-root#tc-root input { -webkit-appearance: none; appearance: none; box-shadow: none; min-height: 0 !important; }
#tc-root#tc-root#tc-root a { box-shadow: none; border: 0 !important; background: none; }
#tc-root#tc-root#tc-root a::before, #tc-root#tc-root#tc-root a::after, #tc-root#tc-root#tc-root h2::before, #tc-root#tc-root#tc-root h2::after, #tc-root#tc-root#tc-root li::before, #tc-root#tc-root#tc-root li::after, #tc-root#tc-root#tc-root button::before, #tc-root#tc-root#tc-root button::after { content: none; }

#tc-root#tc-root#tc-root {
  --ink: #2A2420; --paper: #FFFFFF; --yellow: #FFD349; --pale: #BAB4AC;
  --disp: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}
#tc-root#tc-root#tc-root * { box-sizing: border-box !important; margin: 0 !important; padding: 0 !important; stop-color: var(--ink); flood-color: var(--ink); }
#tc-root#tc-root#tc-root { background: var(--paper); color: var(--ink); fill: var(--ink); font-family: var(--body); -webkit-text-size-adjust: 100%; }

#tc-root#tc-root#tc-root button, #tc-root#tc-root#tc-root input { font: inherit; color: var(--ink); background: none; border: 0 !important; }
#tc-root#tc-root#tc-root a { color: var(--ink); }
#tc-root#tc-root#tc-root [hidden] { display: none !important; }
#tc-root#tc-root#tc-root .tc-vh { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- 画面（1 画面＝幅 100%・最大 480・高さ 600） */
#tc-root#tc-root#tc-root .tc-page { width: 100% !important; }
#tc-root#tc-root#tc-root .tc-scr { position: relative; width: 100% !important; max-width: 480px !important; height: 600px; margin: 0 auto !important; overflow: hidden; background: var(--paper); color: var(--ink); }
#tc-root#tc-root#tc-root .tc-role { position: absolute; }
#tc-root#tc-root#tc-root .tc-full { left: 16px; right: 16px; }
#tc-root#tc-root#tc-root .tc-t { position: absolute; white-space: nowrap; line-height: 1; }
#tc-root#tc-root#tc-root .tc-cx { left: 50%; transform: translateX(-50%); }
#tc-root#tc-root#tc-root .tc-disp { font-family: var(--disp); }
#tc-root#tc-root#tc-root .tc-num { font-family: var(--disp); font-weight: 900; color: var(--ink); line-height: 1; white-space: nowrap; }

/* 主ボタン（墨のピル） */
#tc-root#tc-root#tc-root .tc-btn { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 999px !important; background: var(--ink); color: var(--paper);
  font-family: var(--disp); font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#tc-root#tc-root#tc-root .tc-btn:active:not(.tc-off) { transform: translateY(2px) scale(.98); }
#tc-root#tc-root#tc-root .tc-btn.tc-off { background: var(--pale); color: var(--ink); cursor: default; }
#tc-root#tc-root#tc-root .tc-btn.tc-line { background: var(--paper); color: var(--ink); border: 2px solid var(--ink) !important; }
@media (hover: hover) { #tc-root#tc-root#tc-root .tc-btn:not(.tc-off):hover { text-decoration: underline; text-underline-offset: 3px; } }
#tc-root#tc-root#tc-root .tc-btn:focus-visible, #tc-root#tc-root#tc-root .tc-lnk:focus-visible, #tc-root#tc-root#tc-root .tc-opt:focus-visible, #tc-root#tc-root#tc-root .tc-choice:focus-visible, #tc-root#tc-root#tc-root .tc-knob:focus-visible, #tc-root#tc-root#tc-root .tc-stamp-hit:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* 副リンク（テキストリンク） */
#tc-root#tc-root#tc-root .tc-lnk { position: absolute; display: flex; align-items: center; font-size: 14px; line-height: 1; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; }
#tc-root#tc-root#tc-root .tc-note { position: absolute; font-size: 13px; line-height: 1.4; color: var(--ink); }
#tc-root#tc-root#tc-root .tc-chip { position: absolute; font-size: 12px; line-height: 1; padding: 3px 6px !important; background: var(--paper); border: 1px solid var(--ink) !important; color: var(--ink); font-weight: 700; white-space: nowrap; }
#tc-root#tc-root#tc-root .tc-chip.tc-dash { border-style: dashed !important; }
#tc-root#tc-root#tc-root .tc-tagkari { position: absolute; font-size: 12px; line-height: 1; padding: 4px 6px !important; background: var(--paper); border: 1.5px dashed var(--ink) !important; color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------- 文字の折り返し（裁定書 23-2 の ①）
   字の大きさはどの幅でも同じ。入らない幅では 2 行に折り返し、増えた高さの分だけ下の部品をずらす（app.js の reflow）。
   単語の途中で折り返さない（keep-all・読点と空白でだけ折り返す。数字と単位の間は &nbsp;） */
#tc-root#tc-root#tc-root .tc-ln { position: relative; display: block; line-height: 1.4; margin-top: -0.2em !important; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
#tc-root#tc-root#tc-root .tc-ln + .tc-ln.tc-sub { margin-top: 1.4px !important; }
#tc-root#tc-root#tc-root .tc-scr .tc-note { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }


/* ---------------------------------------------------------------- 左上の「← もどる」（入口以外の全部の画面・裁定書 26-3。当たり 88×44） */
#tc-root#tc-root#tc-root .tc-back { position: absolute; left: 4px; top: 0; z-index: 3; width: 88px !important; height: 44px !important; display: flex; align-items: center; padding-left: 12px !important;
  font-size: 14px; line-height: 1; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#tc-root#tc-root#tc-root .tc-back:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* ---------------------------------------------------------------- 入口の見本と測る画面（同じ枠・同じ 3 本の線・裁定書 26-2・27-2）
   枠は x16・幅は中身の幅・高さは幅と同じで 328 まで。写真（と見本）は上下 40px の余白（淡いグレー）の内側に全体を入れる */
#tc-root#tc-root#tc-root .tc-frame { position: absolute; left: 16px; right: 16px; height: 328px !important; }
#tc-root#tc-root#tc-root .tc-frame .tc-clip { position: absolute; inset: 0; overflow: hidden; background: var(--pale); }
#tc-root#tc-root#tc-root .tc-frame .tc-area { position: absolute; left: 0; background: var(--paper); }
#tc-root#tc-root#tc-root .tc-frame .tc-clip img { position: absolute; left: 0; top: 0; max-width: none !important; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }
#tc-root#tc-root#tc-root .tc-frame .tc-edge { position: absolute; inset: 0; border: 1px solid var(--ink) !important; pointer-events: none; }
#tc-root#tc-root#tc-root .tc-frame svg.tc-over { position: absolute; left: 0; top: 0; width: 100% !important; height: 100% !important; overflow: hidden; pointer-events: none; }
#tc-root#tc-root#tc-root .tc-frame .tc-chip { right: 6px; pointer-events: none; }
/* 線そのものをつかむ帯（上下 14px）。線と、つまみだけが指で動く（枠のほかの場所ではページを送れる） */
#tc-root#tc-root#tc-root .tc-hit { position: absolute; left: 0; right: 0; height: 28px !important; margin-top: -14px !important; touch-action: none; cursor: ns-resize; z-index: 1; -webkit-tap-highlight-color: transparent; }
#tc-root#tc-root#tc-root .tc-knob { position: absolute; left: 0; z-index: 2; width: 44px !important; height: 44px !important; margin-top: -22px !important; display: flex; align-items: center; justify-content: center; cursor: ns-resize; touch-action: none; -webkit-tap-highlight-color: transparent; }
#tc-root#tc-root#tc-root .tc-knob i { display: block; width: 28px !important; height: 28px !important; border-radius: 50% !important; background: var(--ink); position: relative; transition: transform .08s; }
#tc-root#tc-root#tc-root .tc-knob i::before, #tc-root#tc-root#tc-root .tc-knob i::after { content: ''; position: absolute; left: 8px; right: 8px; height: 2px !important; border-radius: 1px !important; background: var(--paper); }
#tc-root#tc-root#tc-root .tc-knob i::before { top: 10px; } #tc-root#tc-root#tc-root .tc-knob i::after { top: 16px; }
#tc-root#tc-root#tc-root .tc-knob.tc-hold i { transform: scale(1.143); }
#tc-root#tc-root#tc-root .tc-instr { font-size: 14px; line-height: 1.3; margin-top: 0 !important; }
#tc-root#tc-root#tc-root .tc-nw { white-space: nowrap; }
#tc-root#tc-root#tc-root.tc-narrow .tc-br-wide { display: none; }
#tc-root#tc-root#tc-root .tc-err-line { font-weight: 700; }
#tc-root#tc-root#tc-root .tc-guide ol { list-style: none; }
#tc-root#tc-root#tc-root .tc-guide li { position: relative; padding-left: 21px !important; font-size: 13px; line-height: 18px; word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
#tc-root#tc-root#tc-root .tc-guide li .tc-n { position: absolute; left: 0; top: 0; }
#tc-root#tc-root#tc-root .tc-guide { position: absolute; }

/* ---------------------------------------------------------------- S3 */
#tc-root#tc-root#tc-root .tc-photo-frame { position: absolute; top: 0; }
#tc-root#tc-root#tc-root .tc-photo-frame canvas { display: block; width: 100% !important; height: 100% !important; }
#tc-root#tc-root#tc-root .tc-tape { position: absolute; left: 0; top: 0; overflow: visible; }
#tc-root#tc-root#tc-root #tc-s3-a .tc-grow .tc-tape { clip-path: inset(100% 0 0 0); }
#tc-root#tc-root#tc-root #tc-s3-a .tc-grow.tc-go .tc-tape { clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.2,.7,.3,1); }
#tc-root#tc-root#tc-root #tc-s3-a .tc-numblock.tc-hide { opacity: 0; }
#tc-root#tc-root#tc-root #tc-s3-a .tc-numblock.tc-show { opacity: 1; transition: opacity .4s ease-out; }

/* ---------------------------------------------------------------- S7 */
#tc-root#tc-root#tc-root .tc-s7 { position: relative; width: 100% !important; max-width: 480px !important; margin: 0 auto !important; padding: 30px 16px 40px !important; background: var(--paper); }
#tc-root#tc-root#tc-root .tc-s7 h2 { font-family: var(--disp); font-size: 20px; font-weight: 700; line-height: 1; margin-bottom: 26px !important; }
#tc-root#tc-root#tc-root .tc-s7 ul { list-style: none; }
#tc-root#tc-root#tc-root .tc-s7 li { display: flex; align-items: center; height: 56px !important; border-bottom: 1px solid var(--ink) !important; }
#tc-root#tc-root#tc-root .tc-s7 li a { font-size: 15px; line-height: 1; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px !important; }
#tc-root#tc-root#tc-root .tc-s7 .tc-pr { margin-left: 12px !important; font-size: 12px; font-weight: 700; line-height: 1; border: 1px solid var(--ink) !important; padding: 2px 4px !important; }

/* ---------------------------------------------------------------- 姿勢の例（0.3.1・結果の画面の下。元の S4 の 2 体をそのまま使う）
   見出しと文は S7 の「次に読む」と同じ書体と大きさ。幅は S7 と同じ（最大 480・中央・左右 16） */
/* 下の余白 24（0.3.4・裁定書 28-1 の 1）: 札の下 → 「次に読む」の見出しを、結果の画面 → 姿勢の見出しと同じくらい離して区切りに見せる */
#tc-root#tc-root#tc-root .tc-posture { position: relative; width: 100% !important; max-width: 480px !important; margin: 0 auto !important; padding: 30px 16px 24px !important; background: var(--paper); }
#tc-root#tc-root#tc-root .tc-posture h2 { font-family: var(--disp); font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 12px !important; word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
#tc-root#tc-root#tc-root .tc-posture .tc-posture-lead { font-size: 15px; line-height: 1.5; margin-bottom: 20px !important; word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }

/* ---------------------------------------------------------------- 姿勢の例の 2 体（同じ大きさ・同じ足元の線で 2 体を並べる。狭い幅では 2 体とも同じ比で縮む） */
#tc-root#tc-root#tc-root .tc-pair { display: flex; justify-content: center; gap: 12px; }
#tc-root#tc-root#tc-root .tc-pose { margin: 0 !important; width: calc((100% - 12px) / 2) !important; max-width: 150px !important; }
#tc-root#tc-root#tc-root .tc-pose .tc-aya { position: relative; width: 100% !important; aspect-ratio: 150 / 290; }
/* 札は 13px のまま。列より長いときだけ「背すじを／伸ばしたとき」で 2 行に折る（<wbr> の位置だけで折れる・0.3.4・裁定書 28-1 の 2） */
#tc-root#tc-root#tc-root .tc-pose figcaption { margin-top: 10px !important; font-size: 13px; line-height: 1.35; text-align: center; white-space: normal; word-break: keep-all; overflow-wrap: normal; line-break: strict; }
#tc-root#tc-root#tc-root .tc-aya svg { display: block; width: 100% !important; height: 100% !important; overflow: visible; }

/* ---------------------------------------------------------------- S5
   0.3.1: プレビューは S5 の画面の横幅いっぱい（スマホでは親カラムの横幅いっぱい）。
   0.3.2（2026-10-05 屋嘉比さんの裁定）: PC ではほかの画面と同じ最大 480 で中央（「← もどる」の位置もそろう） */
#tc-root#tc-root#tc-root #tc-s5 .tc-prev { transform: none; outline-offset: -1px; }
/* 「大きさ」「写真」の切り替えの ✓。入らない幅だけ外す（字の大きさは変えない・選んだほうは墨の地に白い字・0.3.2） */
#tc-root#tc-root#tc-root .tc-seg .tc-opt span { white-space: nowrap; }
#tc-root#tc-root#tc-root .tc-seg.tc-tight .tc-chk { display: none; }
#tc-root#tc-root#tc-root .tc-prev { position: absolute; left: 50%; transform: translateX(-50%); overflow: hidden; outline: 1px solid var(--ink); background: var(--paper); }
#tc-root#tc-root#tc-root .tc-prev img { display: block; width: 100% !important; height: 100% !important; }
#tc-root#tc-root#tc-root .tc-prev canvas { position: absolute; left: 0; top: 0; width: 100% !important; height: 100% !important; }
/* スタンプをつかむところ（押してそのまま動かす・26-4）。押している間はプレビューがスタンプのまわりで大きくなる */
#tc-root#tc-root#tc-root .tc-stamp-hit { position: absolute; border-radius: 50% !important; touch-action: none; cursor: grab; z-index: 1; -webkit-tap-highlight-color: transparent; }
#tc-root#tc-root#tc-root .tc-stamp-hit.tc-hold { cursor: grabbing; }
#tc-root#tc-root#tc-root .tc-prev .tc-wait { position: absolute; inset: 0; background: var(--pale); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink); }
#tc-root#tc-root#tc-root .tc-row-l { position: absolute; left: 0; font-size: 14px; font-weight: 700; line-height: 1; }
#tc-root#tc-root#tc-root .tc-seg { position: absolute; display: flex; border: 2px solid var(--ink) !important; border-radius: 999px !important; overflow: hidden; height: 36px !important; }
#tc-root#tc-root#tc-root .tc-seg .tc-opt { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--paper); cursor: pointer; -webkit-tap-highlight-color: transparent; }
#tc-root#tc-root#tc-root .tc-seg .tc-opt span { pointer-events: none; }
#tc-root#tc-root#tc-root .tc-seg .tc-opt.tc-on { background: var(--ink); color: var(--paper); }
#tc-root#tc-root#tc-root .tc-seg.tc-off { border-color: var(--pale) !important; }
#tc-root#tc-root#tc-root .tc-seg.tc-off .tc-opt { color: var(--ink); background: var(--pale); cursor: default; }
#tc-root#tc-root#tc-root .tc-choices { position: absolute; left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#tc-root#tc-root#tc-root .tc-choice { position: relative; width: 48px !important; height: 48px !important; border-radius: 50% !important; background: var(--paper); border: 1.5px solid var(--ink) !important; display: flex; align-items: center; justify-content: center; cursor: pointer; }
#tc-root#tc-root#tc-root .tc-choice.tc-on { border: 3px solid var(--ink) !important; }
#tc-root#tc-root#tc-root .tc-choice.tc-on::after { content: '✓'; position: absolute; right: -4px; top: -4px; width: 18px !important; height: 18px !important; border-radius: 50% !important; background: var(--ink); color: var(--paper); font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
#tc-root#tc-root#tc-root .tc-choice.tc-off { background: var(--pale); border-color: var(--pale) !important; cursor: default; }
#tc-root#tc-root#tc-root .tc-choice .tc-none { font-size: 13px; font-weight: 700; color: var(--ink); }
#tc-root#tc-root#tc-root .tc-choice canvas { position: absolute; left: 50%; top: 50%; width: 48px !important; height: 48px !important; transform: translate(-50%, -50%); pointer-events: none; }

/* ---------------------------------------------------------------- S6 */
#tc-root#tc-root#tc-root #tc-s6 .tc-prev { outline: 1px solid var(--ink); }
#tc-root#tc-root#tc-root #tc-s6 a.tc-save { display: block; width: 100% !important; height: 100% !important; -webkit-touch-callout: default; }