/* 登録前のお試し（static/try_preview.js）。トップと記事で共用 */
.tp-out[hidden] { display: none; }
.tp-result { margin-top: 14px; padding: 16px 18px; border: 1px solid #c7d2fe; border-radius: 12px; background: #f5f7ff; text-align: left; color: #1a202c; }
.tp-label { font-size: 12px; font-weight: 700; color: #4f46e5; margin-bottom: 6px; }
.tp-title { font-size: 17px; font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.tp-scenes { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14.5px; line-height: 1.65; }
.tp-scenes li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #dbe1f5; margin: 0; }
.tp-scenes li:last-child { border-bottom: 0; }
.tp-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #4f46e5; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.tp-line { flex: 1; min-width: 0; }
.tp-make { display: block; width: 100%; border: 0; border-radius: 10px; background: #4f46e5; color: #fff; font-weight: 800; font-size: 15.5px; padding: 14px 16px; cursor: pointer; font-family: inherit; }
.tp-make:hover { background: #4338ca; }
.tp-make-sub { font-size: 12px; color: #64748b; margin-top: 7px; line-height: 1.6; text-align: center; }
.tp-error { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 14px; line-height: 1.6; }
.tp-error + .tp-make { margin-top: 10px; }

/* 記事内の体験枠 */
.try-widget { scroll-margin-top: 80px; margin: 28px 0; padding: 22px 20px; border: 2px solid #4f46e5; border-radius: 16px; background: #ffffff; }
.try-widget .tw-head { font-size: 18px; font-weight: 800; line-height: 1.5; margin-bottom: 6px; color: #1a202c; }
.try-widget .tw-sub { font-size: 13.5px; color: #64748b; line-height: 1.7; margin-bottom: 12px; }
.try-widget .tp-input { width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; font-size: 16px; font-family: inherit; line-height: 1.5; }
.try-widget .tp-input:focus { outline: 2px solid #a5b4fc; border-color: #4f46e5; }
.try-widget .tw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.try-widget .tp-chip { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; color: #334155; cursor: pointer; font-family: inherit; }
.try-widget .tp-chip:hover { border-color: #a5b4fc; color: #4f46e5; }
.try-widget .tp-go { display: block; width: 100%; border: 0; border-radius: 10px; background: #111827; color: #fff; font-weight: 800; font-size: 15.5px; padding: 14px 16px; cursor: pointer; font-family: inherit; }
.try-widget .tp-go:disabled { opacity: .7; cursor: wait; }
.try-widget .tw-note { font-size: 12px; color: #94a3b8; margin-top: 8px; text-align: center; }

/* 2026-10-17: 押した直後の進捗パネル（約42秒の待ちで離脱しないよう、何をしているか・あと何秒かを出す） */
.tp-progress { margin-top: 14px; padding: 16px 18px; border: 1px solid #c7d2fe; border-radius: 12px; background: #f5f7ff; text-align: left; color: #1a202c; }
.tp-pg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-pg-title { font-weight: 800; font-size: 15.5px; }
.tp-pg-time { margin-left: auto; font-size: 12.5px; color: #4f46e5; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #c7d2fe; border-top-color: #4f46e5; animation: tp-spin .8s linear infinite; flex: none; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
.tp-pg-bar { height: 8px; border-radius: 999px; background: #e0e7ff; overflow: hidden; margin: 12px 0; }
.tp-pg-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6366f1, #4f46e5); border-radius: 999px; transition: width .5s linear; }
.tp-pg-steps { list-style: none; margin: 0 0 10px; padding: 0; font-size: 13.5px; line-height: 1.6; }
.tp-pg-steps li { position: relative; padding: 3px 0 3px 24px; margin: 0; color: #94a3b8; }
.tp-pg-steps li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #cbd5e1; box-sizing: border-box; }
.tp-pg-steps li.is-done { color: #475569; }
.tp-pg-steps li.is-done::before { content: "✓"; border: 0; top: 3px; left: 3px; width: auto; height: auto; color: #16a34a; font-weight: 800; font-size: 13px; }
.tp-pg-steps li.is-now { color: #1e1b4b; font-weight: 700; }
.tp-pg-steps li.is-now::before { border-color: #4f46e5; background: #4f46e5; animation: tp-pulse 1.2s ease-in-out infinite; }
@keyframes tp-pulse { 50% { opacity: .35; } }
.tp-pg-theme { font-size: 13px; color: #334155; margin-bottom: 8px; word-break: break-all; }
.tp-pg-style { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #334155; margin: 0 0 10px; }
.tp-pg-style img { width: 36px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.tp-pg-note { font-size: 12px; color: #64748b; line-height: 1.6; }
/* できた台本はシーンを1つずつ順に出す */
.tp-reveal { opacity: 0; animation: tp-in .35s ease-out forwards; }
@keyframes tp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .tp-reveal { opacity: 1; animation: none; }
    .tp-spin, .tp-pg-steps li.is-now::before { animation: none; }
}
