/* 英語の止まった時計診断（/yarinaoshi/tokei/）。クラス名は tk- で始まる。結果カード（.tkc）は scripts/tokei-card.mjs */
.tk-page main { padding-top: 0; }
.tk { --tk-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif; }
.tk-stage { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(160deg, #182036, #0f1422); color: #f6f1e7; --tk-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif; }
.tk-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px 420px at 50% 16%, rgba(226, 85, 47, .34), transparent 70%), repeating-radial-gradient(circle at 50% 16%, transparent 0 62px, rgba(255, 255, 255, .032) 62px 63px); }
.tk-in { width: min(100% - 32px, 760px); margin-inline: auto; padding: 18px 0 40px; }
.tk-crumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #aab1c4; margin: 0 0 14px; flex-wrap: wrap; }
.tk-crumb a { color: #aab1c4; }
.tk-crumb b { color: #dfe3ee; font-weight: 700; }
.tk-k { font-weight: 800; font-size: 13px; letter-spacing: .16em; color: #ffd166; margin: 0 0 8px; }

/* ── 入口 ── */
.tk-hero { display: grid; gap: 14px; justify-items: center; text-align: center; }
.tk-hero-c { position: relative; width: min(56vw, 230px); }
.tk-clock { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .5)); }
.tk-live .tk-sh { animation: tk-tick 60s steps(60) infinite; }
.tk-live .tk-mh { animation: tk-back 14s cubic-bezier(.6, 0, .4, 1) infinite; }
.tk-live .tk-hh { animation: tk-back-h 14s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes tk-tick { from { transform: rotate(204deg); } to { transform: rotate(564deg); } }
@keyframes tk-back { 0%, 18% { transform: rotate(60deg); } 62%, 100% { transform: rotate(-1380deg); } }
@keyframes tk-back-h { 0%, 18% { transform: rotate(305deg); } 62%, 100% { transform: rotate(185deg); } }
.tk-hero-owl { position: absolute; right: -16%; bottom: -8%; width: 44%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); animation: tk-bob 3.6s ease-in-out infinite; }
@keyframes tk-bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
.tk-hero h1 { font-family: var(--tk-serif); font-weight: 800; font-size: clamp(31px, 9vw, 54px); line-height: 1.3; margin: 0 0 12px; color: #fff; letter-spacing: .02em; }
.tk-hero h1 em, .tk-res-h em, .tk-share-h em { font-style: normal; color: #ffd166; }
.tk-lead { font-size: 15.5px; line-height: 1.8; color: #d9dbe4; margin: 0 auto 14px; max-width: 27em; }
.tk-lead b { color: #fff; }
.tk-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0 0 20px; padding: 0; }
.tk-facts li { border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); border-radius: 99px; padding: 5px 13px; font-size: 13px; font-weight: 700; }
.tk-facts b { color: #ffd166; }
.tk-start { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; width: min(100%, 380px); padding: 0 30px; border: 0; border-radius: 99px; background: #e2552f; color: #fff; font: inherit; font-weight: 900; font-size: 19px; text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 #a8361a, 0 16px 34px rgba(226, 85, 47, .45); transition: transform .1s, box-shadow .1s; animation: tk-pulse 2.4s ease-in-out infinite; }
.tk-start:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 #a8361a, 0 12px 26px rgba(226, 85, 47, .45); }
.tk-start:active { transform: translateY(6px); box-shadow: none; }
.tk-start:disabled { opacity: .6; animation: none; }
.tk-start .ic { width: 24px; height: 24px; }
@keyframes tk-pulse { 50% { box-shadow: 0 6px 0 #a8361a, 0 16px 34px rgba(226, 85, 47, .45), 0 0 0 10px rgba(226, 85, 47, .16); } }
.tk-prev { margin: 16px 0 0; font-size: 13.5px; color: #d9dbe4; }
.tk-prev b { color: #ffd166; }
.tk-prev button { margin-left: 6px; border: 1px solid rgba(255, 255, 255, .34); background: transparent; color: #fff; border-radius: 99px; padding: 5px 13px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tk-note { margin: 14px 0 0; font-size: 12px; color: #9aa2b6; }
.tk-nojs { padding: 20px; text-align: center; }
@media (min-width: 800px) {
  .tk-intro .tk-in { width: min(100% - 48px, 1000px); padding: 26px 0 64px; }
  .tk-hero { grid-template-columns: 340px 1fr; gap: 56px; text-align: left; justify-items: start; align-items: center; }
  .tk-hero-c { width: 320px; }
  .tk-facts { justify-content: flex-start; }
  .tk-lead { margin-inline: 0; }
  .tk-intro::before { background: radial-gradient(620px 480px at 22% 50%, rgba(226, 85, 47, .36), transparent 70%), repeating-radial-gradient(circle at 22% 50%, transparent 0 62px, rgba(255, 255, 255, .032) 62px 63px); }
  .tk-br { display: none; }
}

/* ── 出題 ── */
.tk-quiz { min-height: min(100svh - 60px, 760px); }
.tk-q { padding-top: 16px; }
.tk-q-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tk-q-n { font-weight: 800; font-size: 14px; color: #dfe3ee; }
.tk-q-n b { font-family: var(--tk-serif); font-size: 24px; color: #fff; margin: 0 2px; }
.tk-q-when { font-weight: 800; font-size: 13px; color: #10141f; background: var(--c); border-radius: 99px; padding: 4px 13px; }
.tk-quit { margin-left: auto; border: 0; background: transparent; color: #9aa2b6; font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px 4px; text-decoration: underline; }
.tk-bar { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.tk-bar i { display: block; height: 100%; background: var(--c); border-radius: 9px; transform-origin: left; transition: transform .1s linear; }
.tk-q.hurry .tk-bar i { background: #ff5a5a; }
.tk-track { display: flex; gap: 8px; margin: 12px 0 22px; }
.tk-track-g { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tk-track-g small { font-size: 10.5px; font-weight: 700; color: #9aa2b6; }
.tk-track-g > span { display: flex; gap: 2px; }
.tk-track i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.tk-track i.ok { background: var(--c); }
.tk-track i.no { background: rgba(255, 255, 255, .06); }
.tk-track i.now { background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); animation: tk-blink 1s ease-in-out infinite; }
@keyframes tk-blink { 50% { opacity: .45; } }
.tk-q-ja { margin: 0 0 8px; font-size: 14.5px; color: #c9cede; text-align: center; }
.tk-q-en { margin: 0 0 22px; font-family: var(--en); font-weight: 700; font-size: clamp(22px, 6vw, 32px); line-height: 1.5; text-align: center; color: #fff; text-wrap: balance; }
.tk-blank { display: inline-block; min-width: 3.2em; padding: 0 .35em; margin: 0 .1em; border-bottom: 3px solid var(--c); color: var(--c); border-radius: 6px 6px 0 0; background: rgba(255, 255, 255, .07); }
.tk-blank.ok { color: #7be3a6; border-color: #7be3a6; }
.tk-blank.ng { color: #ffd166; border-color: #ffd166; }
.tk-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tk-ch.long { grid-template-columns: 1fr; }
.tk-ch button { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 14px; border: 2px solid rgba(255, 255, 255, .2); border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; font-family: var(--en); font-weight: 700; font-size: 18.5px; text-align: left; cursor: pointer; transition: transform .08s, background .12s, border-color .12s; }
.tk-ch button i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .16); font: 800 12px/24px var(--en); text-align: center; color: #dfe3ee; }
.tk-ch button:hover:not(:disabled) { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.tk-ch button:active:not(:disabled) { transform: scale(.97); }
.tk-ch button.ok { background: #1d8a4e; border-color: #7be3a6; }
.tk-ch button.ng { background: #a83232; border-color: #ff9a9a; animation: tk-shake .3s; }
.tk-ch button:disabled:not(.ok):not(.ng) { opacity: .45; }
@keyframes tk-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.tk-fb { margin: 16px 0 0; min-height: 3.2em; font-size: 14.5px; line-height: 1.65; color: #e6e9f2; text-align: center; }
.tk-fb b { font-size: 16px; margin-right: 4px; }
.tk-fb b.ok { color: #7be3a6; }
.tk-fb b.ng { color: #ffd166; }

/* ── 判定の演出 ── */
.tk-reveal { min-height: min(100svh - 60px, 760px); display: grid; align-items: center; }
.tk-rv { text-align: center; padding: 30px 0 50px; }
.tk-rv-k { font-family: var(--tk-serif); font-weight: 700; font-size: clamp(17px, 4.8vw, 24px); margin: 0 0 22px; color: #dfe3ee; min-height: 1.6em; }
.tk-rv-c { width: min(64vw, 280px); margin: 0 auto 22px; }
.tk-rvclock .tk-hh, .tk-rvclock .tk-mh, .tk-rvclock .tk-sh { transition: transform .12s linear; }
.tk-rv-l { font-family: var(--tk-serif); font-weight: 800; font-size: clamp(38px, 11vw, 64px); line-height: 1.2; margin: 0; font-variant-numeric: tabular-nums; }
.tk-rv-m { margin: 10px 0 0; font-weight: 800; font-size: 16px; color: #fff; min-height: 1.6em; }
.tk-rv.stop .tk-rv-c { animation: tk-stop .5s cubic-bezier(.3, 1.6, .5, 1); }
.tk-rv.stop .tk-rv-l { animation: tk-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.tk-rv.stop .tk-rv-k { color: #fff; }
.tk-rv.clear .tk-rvclock .tk-sh { animation: tk-tick 4s linear infinite; transition: none; }
.tk-rv.clear .tk-rv-l { animation: tk-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tk-stop { 0% { transform: scale(1.08) rotate(-3deg); } 40% { transform: rotate(2deg); } 100% { transform: none; } }
@keyframes tk-pop { 0% { transform: scale(1.3); } 100% { transform: none; } }

/* ── 結果 ── */
.tk-res-top .tk-in { text-align: center; padding: 30px 0 34px; }
.tk-res-h, .tk-share-h { font-family: var(--tk-serif); font-weight: 800; font-size: clamp(26px, 7.4vw, 42px); line-height: 1.4; margin: 0 0 20px; color: #fff; }
.tk-res-card { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 46px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .16); animation: tk-card .7s cubic-bezier(.2, 1.2, .4, 1) both; }
.tk-res-card img { display: block; width: 100%; height: auto; }
@keyframes tk-card { from { opacity: 0; transform: translateY(24px) rotate(-2deg) scale(.94); } }
.tk-years { margin: 20px auto 0; max-width: 520px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; padding: 14px 16px; }
.tk-years label { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; font-size: 14px; color: #e6e9f2; }
.tk-years label b { color: #ffd166; }
.tk-years select { font: inherit; font-weight: 800; font-size: 16px; border-radius: 12px; border: 0; padding: 9px 12px; background: #fbf7f0; color: #1c2333; }
.tk-years-out { margin: 12px 0 0; font-size: 15.5px; line-height: 1.7; color: #fff; }
.tk-years-out b { font-family: var(--tk-serif); font-size: 25px; color: #ffd166; margin: 0 3px; }
.tk-years-out small { display: block; font-size: 11.5px; color: #9aa2b6; }
.tk-share-lb { margin: 24px 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .14em; color: #ffd166; }
.tk-sharebar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 520px; margin: 0 auto; }
.tk-sharebar > * { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 66px; border: 0; border-radius: 16px; font: inherit; font-weight: 800; font-size: 12.5px; text-decoration: none; cursor: pointer; background: rgba(255, 255, 255, .13); color: #fff; transition: transform .1s; }
.tk-sharebar > *:hover { transform: translateY(-2px); color: #fff; }
.tk-sharebar .tk-sh-x { background: #000; border: 1px solid rgba(255, 255, 255, .3); }
.tk-sharebar .tk-sh-line { background: #06c755; }
.tk-share-msg { margin: 10px 0 0; font-size: 13px; color: #d9dbe4; min-height: 1.6em; }
.tk-res-body { display: grid; gap: 22px; padding: 26px 0 50px; max-width: 800px; }
.tk-res-body h3 { font-size: 19px; font-weight: 900; margin: 0 0 10px; line-height: 1.45; }
.tk-next { background: var(--card); border: 2px solid var(--c); border-radius: 22px; padding: 20px 18px; box-shadow: var(--sh2); }
.tk-next-k { margin: 0 0 4px; font-weight: 800; font-size: 12.5px; letter-spacing: .14em; color: var(--c); }
.tk-next p { margin: 0 0 14px; color: var(--ink2); font-size: 14.5px; line-height: 1.8; }
.tk-next-a { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tk-next-a .btn { width: 100%; }
.tk-next-a .chip { white-space: normal; }
.tk-tl { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px; }
.tk-tl-g { display: grid; gap: 12px; }
.tk-tl-r { display: grid; grid-template-columns: 3.2em 1fr; align-items: start; gap: 6px; }
.tk-tl-r > b { font-size: 13px; color: var(--c); padding-top: 1px; }
.tk-tl-r ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; }
.tk-tl-r li { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: center; }
.tk-tl-r li i { display: block; width: 100%; height: 12px; border-radius: 4px; background: var(--bg2); border: 1px solid var(--line2); }
.tk-tl-r li.ok i { background: var(--c); border-color: var(--c); }
.tk-tl-r li.stop i { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px var(--mark); animation: tk-blink 1.2s ease-in-out infinite; }
.tk-tl-r li small { font-size: 9.5px; color: var(--ink3); white-space: nowrap; letter-spacing: -.04em; }
.tk-tl-r li.stop small { color: var(--ink); font-weight: 800; }
.tk-tl-n { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 12px; color: var(--ink2); }
.tk-tl-n span { display: inline-flex; align-items: center; gap: 6px; }
.tk-tl-n i { width: 14px; height: 10px; border-radius: 3px; background: var(--bg2); border: 1px solid var(--line2); }
.tk-tl-n .ok i { background: var(--brand); border-color: var(--brand); }
.tk-tl-n .stop i { background: var(--ink); border-color: var(--ink); }
.tk-rev h3 small { margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--ink3); }
.tk-rev details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.tk-rev summary { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; cursor: pointer; list-style: none; font-family: var(--en); font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.tk-rev summary::-webkit-details-marker { display: none; }
.tk-rev summary i { flex: none; font-style: normal; font-weight: 900; font-size: 17px; width: 1.2em; text-align: center; }
.tk-rev details.ok summary i { color: var(--ok); }
.tk-rev details.ng summary i { color: var(--ng); }
.tk-rev summary b { color: var(--brand-d); border-bottom: 2px solid currentColor; }
.tk-rev details > div { padding: 0 14px 12px 44px; font-size: 14px; color: var(--ink2); line-height: 1.75; }
.tk-rev details > div p { margin: 0 0 4px; }
.tk-again { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 6px 0 0; }
.tk-res-note { margin: 0; font-size: 12px; color: var(--ink3); text-align: center; }
@media (min-width: 700px) { .tk-next { padding: 26px 28px; } .tk-next-a .btn { width: auto; } .tk-tl { padding: 24px 26px; } .tk-tl-r li small { font-size: 11px; } }

/* ── 仕組みの説明・共有ページ ── */
.tk-sample { max-width: 640px; margin: 0 auto 24px; border-radius: 16px; overflow: hidden; box-shadow: var(--sh2); transform: rotate(-1.2deg); }
.tk-sample .tkc { border-radius: 16px; }
.tk-how { display: grid; gap: 12px; }
.tk-how > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.tk-how b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; margin-bottom: 6px; }
.tk-how b .ic { width: 22px; height: 22px; color: var(--brand); flex: none; }
.tk-how p { margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.8; }
@media (min-width: 800px) { .tk-how { grid-template-columns: repeat(3, 1fr); } }
.tk-share .tk-in { text-align: center; padding-bottom: 50px; }
.tk-share .tk-crumb { justify-content: center; }
.tk-share-card { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 46px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .16); margin-bottom: 26px; }
.tk-share-card .tkc { border-radius: 16px; }
.tk-share-q { font-family: var(--tk-serif); font-weight: 800; font-size: clamp(22px, 6.4vw, 32px); margin: 0 0 16px; color: #fff; }
@media (prefers-reduced-motion: reduce) { .tk-live .tk-mh, .tk-live .tk-hh, .tk-hero-owl, .tk-start { animation: none; } }
