/* トップ（/）。クラスは kt-。色は site.css の変数（明るい配色 10/16. めくり板だけは暗いまま）。外部読み込み・インライン style なし（CSP） */
.kt-hero, .kt-day, .kt-b, .kt-can, .kt-use, .kt-pack, .kt-news { --panel: #fff; --panel-lo: #fbf6f2; --soft: #eee6e0; --grid: #8c7a72; margin: 0 0 28px; font-variant-numeric: tabular-nums; }
.kt-hero { margin-bottom: 18px; }
.top .brand, .top .topnav { min-height: 44px; }
.top .topnav { display: inline-flex; align-items: center; }
.kt-hero h1 { margin: 4px 0 8px; font-size: clamp(1.3rem, 5.4vw, 2.05rem); line-height: 1.35; }
.kt-hero .lead { margin: 0; font-size: 1rem; line-height: 1.75; }
.kt-day h2, .kt-can h2, .kt-use h2, .kt-pack h2, .kt-news h2 { margin: 0 0 8px; font-size: 1.15rem; }
.kt-day h3, .kt-b h3 { margin: 0; font-size: 1rem; }
.kt-day p, .kt-b p, .kt-can p, .kt-pack p { margin: 0; }
.kt-day ul, .kt-day ol, .kt-b ul, .kt-b ol, .kt-use ol, .kt-news ul { margin: 0; padding: 0; list-style: none; }
.kt-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.kt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--grid); border-radius: 12px; color: var(--amber); font-weight: 700; font-size: 14px; text-decoration: none; text-align: center; background: transparent; cursor: pointer; font-family: inherit; }
.kt-btn:hover, .kt-main:hover { background: rgba(255, 178, 56, .2); }
.kt-btn.pri { background: var(--amber-fill); border-color: var(--amber-fill); color: var(--on-amber); }
.kt-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }
@media (max-width: 639px) { .kt-links .kt-btn { flex: 1 1 100%; } }
.kt-day a:focus-visible, .kt-b a:focus-visible, .kt-b button:focus-visible, .kt-can a:focus-visible, .kt-pack a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

/* 開催 */
.kt-packline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 12px !important; color: var(--muted); font-size: 13px; }
.kt-packline .kt-btn { min-height: 44px; padding: 0 14px; font-size: 13px; }
.kt-day .kt-links { margin-bottom: 14px; }
.kt-slot { margin: 0 0 12px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--panel), var(--panel-lo)); }
.kt-slot h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 4px; }
.kt-slot h3 small { color: var(--muted); font-size: 12px; font-weight: 500; }
.kt-slot.is-now { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.kt-now { padding: 0 9px; border-radius: 99px; background: var(--amber-fill); color: var(--on-amber); font-size: 11.5px; font-weight: 800; line-height: 1.7; }
.kt-cup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--soft); }
.kt-slot h3 + .kt-cups .kt-cup:first-child { border-top: 0; }
.kt-cup-t { flex: 1 1 210px; min-width: 0; }
.kt-cup-l { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.kt-cup-l b { font-weight: 800; }
.kt-cup-l span:not(.grade) { color: var(--muted); font-size: 13px; }
.kt-cupname { margin-top: 2px !important; color: var(--muted); font-size: 12px; line-height: 1.5; }
.kt-main { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--grid); border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* B 答え合わせボード */
.kt-b { --fw: clamp(16px, calc((100vw - 56px) / 16), 46px); position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.kt-b h2 { border: 0; padding: 0; margin: 0 0 6px; font-size: clamp(20px, 3.2vw, 28px); line-height: 1.35; }
.kt-eyebrow { margin: 0 0 4px !important; color: var(--amber); font-size: 12px; letter-spacing: .14em; }
.kt-lede { color: var(--muted); font-size: 13px; }
.kt-b.is-flip #kt-b-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.kt-flip { display: flex; flex-wrap: wrap; gap: calc(var(--fw) * .22) 22px; width: calc(var(--fw) * 16); max-width: 100%; padding: clamp(10px, 1.6vw, 18px); background: #1f1a1c; border: 1px solid #3a3236; border-radius: 16px; box-shadow: inset 0 2px 14px rgba(0, 0, 0, .55), 0 10px 24px rgba(31, 26, 28, .22); margin-bottom: 10px; box-sizing: content-box; }
.kt-grp, .kt-ncells { display: flex; flex-wrap: wrap; gap: calc(var(--fw) * .07); }
.kt-fc { position: relative; display: block; flex: none; width: var(--fw); height: calc(var(--fw) * 1.4); perspective: calc(var(--fw) * 7); font-size: calc(var(--fw) * .8); line-height: calc(var(--fw) * 1.4); font-weight: 800; text-align: center; color: #f6f1ec; }
.kt-fc.dt { color: #ffb238; }
.kt-fc::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1.5px, calc(var(--fw) * .035)); margin-top: calc(var(--fw) * -.0175); background: #161213; z-index: 4; }
.kt-fh { position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden; }
.kt-fh.t, .kt-ff { border-radius: calc(var(--fw) * .12) calc(var(--fw) * .12) 0 0; background: linear-gradient(#3a3236, #2b2427); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09); }
.kt-fh.b, .kt-fb { border-radius: 0 0 calc(var(--fw) * .12) calc(var(--fw) * .12); background: #2b2427; }
.kt-fh.t { top: 0; }
.kt-fh.b { top: 50%; }
.kt-fh i, .kt-ff i, .kt-fb i { position: absolute; left: 0; width: 100%; height: 200%; display: block; font-style: normal; }
.kt-fh.t i, .kt-ff i { top: 0; }
.kt-fh.b i, .kt-fb i { top: -100%; }
.kt-flap { position: absolute; left: 0; top: 0; width: 100%; height: 50%; transform-origin: 50% 100%; transform-style: preserve-3d; z-index: 3; }
.kt-ff, .kt-fb { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kt-fb { transform: rotateX(180deg); }
.kt-stats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px !important; }
@media (max-width: 899px) { .kt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .kt-stats { gap: 10px; } }
.kt-stat { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; background: var(--panel); }
.kt-st-label { font-size: 13px; font-weight: 800; line-height: 1.4; min-height: 2.8em; }
.kt-st-num { --fw: 46px; display: flex; align-items: flex-end; gap: calc(var(--fw) * .07); font-size: calc(var(--fw) * .8); font-weight: 800; line-height: 1.2; }
.kt-ncells { flex-wrap: nowrap; }
.kt-b.is-js .kt-b-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.kt-st-den { margin-left: 6px; padding-bottom: 3px; color: var(--muted); font-size: 26px; font-weight: 700; line-height: 1; }
@media (max-width: 639px) { .kt-st-num { --fw: 34px; } .kt-st-den { font-size: 20px; margin-left: 3px; } .kt-st-label { font-size: 12.5px; } .kt-stat { padding: 12px 12px 10px; } }
.kt-st-sub { font-size: 13px; font-weight: 700; color: var(--amber); min-height: 1.4em; }
.kt-st-basis { margin-top: auto; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.kt-tape { margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.kt-tape-bar { display: flex; align-items: stretch; min-height: 48px; }
.kt-tape-label { display: flex; align-items: center; flex: none; padding: 0 14px; background: var(--sunk); border-right: 1px solid var(--line); color: var(--amber); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.kt-tape-view { display: none; position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 18px, #000 calc(100% - 28px), rgba(0, 0, 0, 0)); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 18px, #000 calc(100% - 28px), rgba(0, 0, 0, 0)); }
.kt-b.is-js .kt-tape[data-mode="flow"] .kt-tape-view { display: block; }
.kt-tape-track { display: flex; width: max-content; animation: kt-tape var(--dur, 150s) linear infinite; will-change: transform; }
.kt-tape-set { display: flex; flex: none; }
.kt-tape-set .kt-tp { padding-left: 16px; }
@keyframes kt-tape { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.kt-tape:hover .kt-tape-track, .kt-tape:focus-within .kt-tape-track, .kt-b.is-hold .kt-tape-track, .kt-b.is-off .kt-tape-track { animation-play-state: paused; }
.kt-tape-toggle { flex: none; margin-left: auto; min-height: 48px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: var(--sunk); color: var(--text); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.kt-tape-toggle:hover { color: var(--amber); }
.kt-tape[data-mode="flow"] .kt-tape-toggle { margin-left: 0; }
.kt-tp { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding-right: 34px; color: var(--text); text-decoration: none; white-space: nowrap; font-size: 14px; }
.kt-tp b { font-weight: 800; }
.kt-tp i { color: var(--amber); font-weight: 800; font-style: normal; }
.kt-tp u { padding: 1px 9px; border: 1px solid var(--grid); border-radius: 99px; font-size: 12.5px; font-weight: 800; text-decoration: none; }
.kt-tp u.p1 { background: var(--amber-fill); border-color: var(--amber-fill); color: var(--on-amber); }
.kt-tape-panel { background: var(--panel-lo); padding: 12px 16px 14px; }
.kt-tape-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 30px; margin-top: 8px !important; }
.kt-tape-list li { border-bottom: 1px solid var(--soft); }
.kt-tape-list .kt-tp { min-height: 44px; padding: 4px 0; flex-wrap: wrap; gap: 2px 8px; white-space: normal; }
.kt-tape-more { margin-top: 12px; min-height: 44px; padding: 0 18px; border: 1px solid var(--grid); border-radius: 10px; background: transparent; color: var(--amber); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.kt-tape-more[hidden], .kt-tape-toggle[hidden] { display: none; }
.kt-b.is-js .kt-tape[data-mode="flow"] .kt-tape-panel { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.kt-b.is-js .kt-tape[data-mode="flow"] .kt-tape-panel:focus-within { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; padding: 12px 16px 14px; }
@media (max-width: 639px) { .kt-tape-bar, .kt-tape-toggle, .kt-tp { min-height: 44px; } .kt-tape-bar { flex-wrap: wrap; } .kt-tape-label { flex: 1 1 100%; min-height: 40px; border-right: 0; border-bottom: 1px solid var(--line); } .kt-tape-view { flex: 1 1 120px; min-height: 44px; } .kt-tape-toggle { padding: 0 12px; font-size: 12px; } .kt-tape-list { grid-template-columns: minmax(0, 1fr); } }
.kt-sr-list { margin-top: 8px !important; }
.kt-sr { display: flex; align-items: center; gap: 8px 14px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--soft); color: var(--text); text-decoration: none; }
a.kt-sr:hover .kt-sr-name { color: var(--amber); }
.kt-sr-name { flex: none; width: 6.5em; font-weight: 800; font-size: 14px; }
.kt-dots { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.kt-dots i { display: block; width: 12px; height: 12px; border: 1.5px solid var(--grid); border-radius: 50%; }
.kt-dots i.on { background: var(--red); border-color: var(--red); }
.kt-sr b { flex: none; font-size: 15px; }
.kt-b.is-js .kt-slotbox:not(.is-lit) .kt-dots i.on { opacity: .18; transform: scale(.5); }
.kt-b.is-js .kt-dots i.on { transition: opacity .3s ease, transform .3s cubic-bezier(.3, .8, .3, 1); transition-delay: calc(var(--d, 0) * 1ms); }
@media (max-width: 639px) { .kt-sr { flex-wrap: wrap; } .kt-sr-name { width: auto; } .kt-dots { order: 3; flex: 1 1 100%; } .kt-sr b { margin-left: auto; } }

/* できること・使い方・パック・お知らせ */
.kt-stat, .kt-card, .kt-pack, .kt-slot { box-shadow: 0 1px 2px rgba(31, 26, 28, .06); }
.kt-cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 12px 0 0 !important; padding: 0; list-style: none; }
@media (min-width: 640px) { .kt-cards { grid-template-columns: 1fr 1fr; } }
.kt-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
a.kt-card { display: block; color: inherit; text-decoration: none; }
.kt-card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.kt-card h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.kt-card p { color: var(--muted); }
.kt-card.soon h3::before { background: transparent; border: 2px solid var(--muted); }
.kt-steps { counter-reset: kt; }
.kt-steps li { position: relative; display: flex; flex-wrap: wrap; gap: 0 12px; padding: 8px 0 8px 40px; border-bottom: 1px solid var(--soft); }
.kt-steps li::before { counter-increment: kt; content: counter(kt); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; text-align: center; line-height: 28px; }
.kt-steps b { color: var(--amber); }
.kt-pack { padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.kt-pack p { color: var(--text); }
.kt-news li { display: flex; flex-wrap: wrap; gap: 0 14px; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.kt-news .when { flex: none; min-width: 6.5em; color: var(--amber); font-weight: 700; }
.kt-news .what { flex: 1 1 14em; min-width: 0; }

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .kt-b *, .kt-b *::before, .kt-b *::after, .kt-day * { animation: none !important; transition: none !important; }
  .kt-tape-view { display: none !important; }
  .kt-b.is-js .kt-slotbox:not(.is-lit) .kt-dots i.on { opacity: 1; transform: none; }
}
