.tkfc {
--pink: #f65c78;
--pink-dark: #dc3158;
--blue: #5aaef4;
--blue-dark: #256ba8;
--yellow: #ffd54a;
--ink: #3b241c;
--cream: #fffaf0;
width: 100%;
max-width: 920px;
margin: 24px auto;
color: var(--ink);
font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
line-height: 1.65;
}
.tkfc *, .tkfc *::before, .tkfc *::after { box-sizing: border-box; }
.tkfc button { font: inherit; }
.tkfc__shell {
overflow: hidden;
border: 4px solid #ff9db0;
border-radius: 28px;
background: linear-gradient(180deg, #fffdf8 0%, #fff5f7 100%);
box-shadow: 0 12px 30px rgba(112, 62, 47, .14);
}
.tkfc__hero {
padding: 24px 22px 18px;
text-align: center;
background:
radial-gradient(circle at 10% 18%, #fff 0 5px, transparent 6px),
radial-gradient(circle at 90% 28%, #fff 0 5px, transparent 6px),
linear-gradient(135deg, #fff2a6, #fff9dd 52%, #dff4ff);
border-bottom: 3px dashed #ffb1be;
}
.tkfc__mascots { font-size: clamp(42px, 8vw, 72px); line-height: 1; }
.tkfc__title { margin: 8px 0 2px; font-size: clamp(25px, 5vw, 42px); line-height: 1.3; }
.tkfc__title strong { color: var(--pink-dark); }
.tkfc__lead { margin: 8px auto 0; font-size: 16px; }
.tkfc__body { padding: clamp(16px, 4vw, 30px); }
.tkfc__start, .tkfc__result { text-align: center; }
.tkfc__start h3, .tkfc__result h3 { margin: 0 0 10px; font-size: clamp(22px, 4vw, 30px); }
.tkfc__start p, .tkfc__result p { margin: 7px 0; }
.tkfc__modes {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin: 20px auto 12px;
max-width: 620px;
}
.tkfc__btn {
min-height: 50px;
padding: 10px 18px;
border: 0;
border-radius: 999px;
cursor: pointer;
font-weight: 800;
transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.tkfc__btn:hover { transform: translateY(-2px); }
.tkfc__btn:focus-visible { outline: 4px solid rgba(58, 142, 217, .35); outline-offset: 3px; }
.tkfc__btn--primary { color: #fff; background: linear-gradient(180deg, #ff708a, var(--pink-dark)); box-shadow: 0 5px 0 #a91f42; }
.tkfc__btn--blue { color: #fff; background: linear-gradient(180deg, #6bc0ff, #318bd3); box-shadow: 0 5px 0 #1e639b; }
.tkfc__btn--soft { color: var(--ink); background: #fff; border: 2px solid #ffc0cb; }
.tkfc__btn--good { color: #165e3d; background: #dcf8e8; border: 2px solid #64c58e; }
.tkfc__btn--again { color: #8d4420; background: #fff0d2; border: 2px solid #f0ae4a; }
.tkfc__btn[disabled] { opacity: .45; cursor: default; transform: none; }
.tkfc__toolbar {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 14px;
}
.tkfc__progress-wrap { flex: 1; min-width: 0; }
.tkfc__progress-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-weight: 800; font-size: 14px; }
.tkfc__progress { height: 13px; overflow: hidden; border-radius: 99px; background: #f2e7df; }
.tkfc__progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .25s ease; }
.tkfc__icon-btn { width: 46px; height: 46px; padding: 0; border: 2px solid #b8ddfb; border-radius: 50%; background: #fff; cursor: pointer; font-size: 22px; }
.tkfc__card {
position: relative;
width: 100%;
padding: 0;
overflow: hidden;
border: 3px solid #ffd1d9;
border-radius: 22px;
background: #fff;
box-shadow: 0 8px 20px rgba(91, 55, 43, .12);
}
.tkfc__card img { display: block; width: 100%; height: auto; aspect-ratio: 20 / 11; object-fit: contain; background: #fff; }
.tkfc__badge { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 5px 12px; border-radius: 99px; color: #fff; background: rgba(59, 36, 28, .82); font-weight: 900; font-size: 14px; }
.tkfc__hint { margin: 12px 0 0; text-align: center; font-weight: 700; color: #6b5148; }
.tkfc__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.tkfc__actions .tkfc__btn { min-width: 180px; }
.tkfc__judgement { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(620px, 100%); }
.tkfc__status { min-height: 1.6em; margin: 10px 0 0; text-align: center; font-weight: 800; color: var(--blue-dark); }
.tkfc__score { margin: 18px auto; font-size: clamp(38px, 8vw, 64px); font-weight: 900; color: var(--pink-dark); line-height: 1.1; }
.tkfc__score small { display: block; margin-top: 8px; font-size: 16px; color: var(--ink); }
.tkfc__result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.tkfc__credit { margin: 20px 0 0; font-size: 13px; color: #846d64; }
.tkfc__loading, .tkfc__error { padding: 30px; text-align: center; border: 3px solid #ffd1d9; border-radius: 22px; background: #fffaf6; }
.tkfc__error { color: #9c2440; }
.tkfc [hidden] { display: none !important; }
@media (max-width: 600px) {
.tkfc { margin: 16px auto; }
.tkfc__shell { border-width: 3px; border-radius: 20px; }
.tkfc__hero { padding: 18px 14px 14px; }
.tkfc__body { padding: 13px; }
.tkfc__modes, .tkfc__judgement { grid-template-columns: 1fr; }
.tkfc__actions .tkfc__btn, .tkfc__result-actions .tkfc__btn { width: 100%; }
.tkfc__card { border-radius: 15px; }
.tkfc__badge { top: 7px; right: 7px; padding: 3px 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
.tkfc *, .tkfc *::before, .tkfc *::after { scroll-behavior: auto !important; transition: none !important; }
}