/* Widget selectors are scoped for embedding in WordPress. */
.tkl-guide-dialog, .tkl-guide-launcher, .tkl-guide-inline-launcher {
  --tkl-ink:#17212b; --tkl-purple:#9de861; --tkl-line:#c1cddb;
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;
  color:var(--tkl-ink); line-height:1.65; letter-spacing:normal;
}
.tkl-guide-dialog *, .tkl-guide-launcher * { box-sizing:border-box; }
.tkl-guide-inline-launcher { display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:10px 20px; border:0; border-radius:32px; background:#9de861; color:#173b23; cursor:pointer; font-size:14px; font-weight:700; }
.tkl-guide-inline-launcher img { display:block; width:32px; height:32px; border-radius:50%; object-fit:cover; }
.tkl-guide-launcher {
  position:fixed; z-index:10000; right:24px; bottom:max(24px,env(safe-area-inset-bottom));
  display:flex; align-items:center; gap:12px; padding:10px 16px 10px 10px;
  background:#fff; border:1px solid #c5d2e0; border-radius:44px; cursor:pointer;
  box-shadow:0 8px 30px #20364d29; text-align:left; transition:transform .18s,box-shadow .18s;
}
.tkl-guide-launcher:hover { transform:translateY(-3px); box-shadow:0 12px 32px #20364d38; }
.tkl-guide-launcher__image { width:60px; height:60px; overflow:hidden; border-radius:50%; border:2px solid #edf5ec; flex-shrink:0; }
.tkl-guide-launcher img { width:100%; height:100%; object-fit:cover; display:block; }
.tkl-guide-launcher strong { display:block; font-size:16px; font-weight:800; }
.tkl-guide-launcher small { display:block; font-size:12px; color:#506176; }
.tkl-guide-launcher__icon { display:grid; place-items:center; background:#9de861; color:#173b23; width:30px; height:30px; border-radius:50%; font-size:20px; }

/* ── トーク画面（2026-11 作り替え）：スクロールは会話の1か所、下に選択肢と入力欄 ── */
.tkl-guide-dialog {
  --tk-chat:#8eaad4; --tk-ink:#1b2432; --tk-muted:#55657c; --tk-line:#cfd8e6; --tk-soft:#f3f6fb;
  --tk-me:#8fe06b; --tk-me-ink:#0e3318; --tk-go:#06c755; --tk-art:#1f6fe5; --tk-buy:#e03a3f;
  position:fixed; inset:auto 24px 24px auto; width:min(420px,calc(100vw - 32px));
  height:min(740px,calc(100dvh - 48px)); max-width:none; max-height:none; margin:0;
  padding:0; border:0; border-radius:24px; background:var(--tk-chat); color:var(--tk-ink);
  box-shadow:0 24px 90px #20364d40; overflow:hidden; font-size:15px; line-height:1.6;
}
.tkl-guide-dialog:not([open]) { display:none; }
.tkl-guide-dialog[open] { animation:tkl-guide-rise .26s cubic-bezier(.2,.8,.2,1); }
.tkl-guide-dialog[open].tkl-guide-closing { animation:tkl-guide-drop .18s ease-in both; }
.tkl-guide-dialog::backdrop { background:#20364d36; animation:tkl-guide-fade .24s ease-out; }
.tkl-guide-dialog.tkl-guide-closing::backdrop { animation:tkl-guide-fade .18s ease-in reverse both; }
.tkl-guide-dialog [hidden] { display:none !important; }
.tkl-guide-dialog :focus-visible { outline:3px solid #1f5fd1; outline-offset:2px; }
.tkl-guide-dialog button, .tkl-guide-dialog input, .tkl-guide-dialog a.tkl-talk-btn {
  font:inherit; color:inherit; margin:0; letter-spacing:normal; text-transform:none; text-shadow:none; box-shadow:none;
  -webkit-appearance:none; appearance:none; width:auto; max-width:none;
}
.tkl-guide-dialog button { cursor:pointer; }
.tkl-guide-dialog p, .tkl-guide-dialog h2, .tkl-guide-dialog h3 { margin:0; padding:0; border:0; background:none; }
.tkl-guide-dialog img { max-width:none; margin:0; padding:0; border:0; box-shadow:none; }
.tkl-guide-dialog .tkl-guide-panel { height:100%; display:flex; flex-direction:column; min-height:0; }
.tkl-guide-dialog .tkl-guide-header { display:flex; align-items:center; gap:10px; padding:10px 12px; flex:none; background:#ffffff38; border-bottom:1px solid #ffffff59; }
.tkl-guide-dialog .tkl-guide-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; display:block; flex:none; background:#fff; }
.tkl-guide-dialog .tkl-guide-header__text { flex:1; min-width:0; }
.tkl-guide-dialog .tkl-guide-header__text h2 { font-size:16px; font-weight:700; line-height:1.2; color:var(--tk-ink); }
.tkl-guide-dialog .tkl-guide-header__text p { font-size:11.5px; line-height:1.3; color:var(--tk-ink); opacity:.8; }
.tkl-guide-dialog .tkl-talk-icon { width:40px; height:40px; min-height:0; padding:0; border-radius:50%; border:0; background:#ffffff8c; color:var(--tk-ink); display:grid; place-items:center; font-size:18px; line-height:1; flex:none; }
.tkl-guide-dialog .tkl-talk-icon:hover { background:#fff; }
.tkl-guide-dialog .tkl-talk-crumbs { display:flex; gap:6px; align-items:center; padding:6px 12px; font-size:12.5px; overflow-x:auto; scrollbar-width:none; white-space:nowrap; background:#ffffff1f; flex:none; }
.tkl-guide-dialog .tkl-talk-crumbs::-webkit-scrollbar { display:none; }
.tkl-guide-dialog .tkl-talk-crumbs:empty { display:none; }
.tkl-guide-dialog .tkl-talk-crumbs button { flex:none; border:0; background:#ffffff99; color:var(--tk-ink); border-radius:999px; padding:3px 10px; min-height:28px; font-size:12.5px; line-height:1.4; }
.tkl-guide-dialog .tkl-talk-crumbs span { opacity:.7; }
.tkl-guide-dialog .tkl-talk-chat { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:14px 0 18px; display:flex; flex-direction:column; gap:12px; position:relative; }
.tkl-guide-dialog .tkl-talk-chat > * { flex:none; }
.tkl-guide-dialog .tkl-talk-row { display:flex; gap:8px; align-items:flex-start; padding:0 12px; }
.tkl-guide-dialog .tkl-talk-row--me { justify-content:flex-end; }
.tkl-guide-dialog .tkl-talk-row > img { width:30px; height:30px; border-radius:50%; flex:none; background:#fff; object-fit:cover; }
.tkl-guide-dialog .tkl-talk-bub { background:#fff; color:var(--tk-ink); border-radius:18px; border-top-left-radius:6px; padding:9px 13px; max-width:82%; box-shadow:0 1px 0 #0000000f; font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
.tkl-guide-dialog .tkl-talk-row--me .tkl-talk-bub { background:var(--tk-me); color:var(--tk-me-ink); border-radius:18px; border-top-right-radius:6px; font-weight:700; }
.tkl-guide-dialog .tkl-talk-bub small { display:block; font-size:12.5px; color:var(--tk-muted); margin-top:2px; }
.tkl-guide-dialog .tkl-talk-list { display:grid; gap:8px; padding:0 12px 0 50px; }
.tkl-guide-dialog .tkl-talk-card { background:#fff; color:var(--tk-ink); border-radius:16px; padding:10px; display:grid; grid-template-columns:76px minmax(0,1fr); gap:8px 10px; box-shadow:0 1px 0 #0000000f; margin:0; }
.tkl-guide-dialog .tkl-talk-card--wide { grid-template-columns:108px minmax(0,1fr); }
.tkl-guide-dialog .tkl-talk-ph { width:76px; height:76px; border-radius:12px; overflow:hidden; background:var(--tk-soft); }
.tkl-guide-dialog .tkl-talk-card--wide .tkl-talk-ph { width:108px; height:72px; }
.tkl-guide-dialog .tkl-talk-ph img { width:100%; height:100%; object-fit:cover; display:block; border-radius:0; }
.tkl-guide-dialog .tkl-talk-card:not(.tkl-talk-card--wide) .tkl-talk-ph img { object-fit:contain; background:#fff; }
.tkl-guide-dialog .tkl-talk-tx { min-width:0; display:flex; flex-direction:column; gap:2px; }
.tkl-guide-dialog .tkl-talk-tag { align-self:flex-start; background:#fdeeee; color:#a31d22; font-size:10.5px; font-weight:700; border-radius:999px; padding:1px 7px; line-height:1.6; }
.tkl-guide-dialog .tkl-talk-tag--best { background:#fff3c4; color:#6b4a00; }
.tkl-guide-dialog .tkl-talk-nm { font-weight:700; font-size:13.5px; line-height:1.4; color:var(--tk-ink); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.tkl-guide-dialog .tkl-talk-why { font-size:12.5px; line-height:1.5; color:var(--tk-muted); overflow-wrap:anywhere; }
.tkl-guide-dialog .tkl-talk-act { grid-column:1/-1; display:flex; gap:6px; }
.tkl-guide-dialog a.tkl-talk-btn { flex:1; min-width:0; display:flex; align-items:center; justify-content:center; min-height:40px; border-radius:999px; border:0; padding:0 12px; font-weight:700; font-size:13px; line-height:1.2; text-decoration:none; text-align:center; white-space:nowrap; }
.tkl-guide-dialog a.tkl-talk-btn--art, .tkl-guide-dialog a.tkl-talk-btn--art:visited { background:var(--tk-art); color:#fff; }
.tkl-guide-dialog a.tkl-talk-btn--buy, .tkl-guide-dialog a.tkl-talk-btn--buy:visited { background:var(--tk-buy); color:#fff; }
.tkl-guide-dialog a.tkl-talk-btn:hover { filter:brightness(1.08); color:#fff; }
.tkl-guide-dialog .tkl-talk-choices { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0 12px 0 50px; }
.tkl-guide-dialog .tkl-talk-choice { min-height:46px; padding:6px 10px; border:0; border-radius:14px; background:#fff; color:var(--tk-ink); font-weight:700; font-size:13.5px; line-height:1.35; text-align:center; box-shadow:0 1px 0 #0000000f; overflow-wrap:anywhere; }
.tkl-guide-dialog .tkl-talk-choice:hover:not(:disabled) { background:#eef4ff; }
.tkl-guide-dialog .tkl-talk-choice--hot { background:#fdeeee; color:#a31d22; }
.tkl-guide-dialog .tkl-talk-choice:disabled { opacity:.55; cursor:default; }
.tkl-guide-dialog .tkl-talk-pr { padding:0 12px 0 50px; font-size:11px; color:#1b2432cc; line-height:1.4; }
.tkl-guide-dialog .tkl-talk-dock { flex:none; background:#fff; color:var(--tk-ink); border-top:1px solid var(--tk-line); padding:8px 0 calc(8px + env(safe-area-inset-bottom,0px)); }
.tkl-guide-dialog .tkl-talk-chips { display:flex; gap:8px; padding:0 12px 8px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.tkl-guide-dialog .tkl-talk-chips::-webkit-scrollbar, .tkl-guide-dialog .tkl-talk-sugg::-webkit-scrollbar { display:none; }
.tkl-guide-dialog .tkl-talk-chip { flex:none; white-space:nowrap; border:1px solid var(--tk-line); background:var(--tk-soft); color:var(--tk-ink); border-radius:999px; min-height:40px; padding:0 14px; font-weight:700; font-size:13.5px; line-height:1.2; display:inline-flex; align-items:center; gap:6px; }
.tkl-guide-dialog .tkl-talk-chip:hover { background:#e6ecf6; }
.tkl-guide-dialog .tkl-talk-chip--hot { border-color:#f3b7b9; background:#fdeeee; color:#a31d22; }
.tkl-guide-dialog .tkl-talk-chip--hot::before { content:""; width:8px; height:8px; border-radius:50%; background:#e5484d; }
.tkl-guide-dialog .tkl-talk-sugg { display:flex; gap:6px; overflow-x:auto; padding:0 12px 8px; scrollbar-width:none; }
.tkl-guide-dialog .tkl-talk-sugg button { flex:none; border:0; background:#eaf7ee; color:#0d4a22; border-radius:999px; min-height:34px; padding:0 12px; font-size:13px; line-height:1.2; white-space:nowrap; max-width:240px; overflow:hidden; text-overflow:ellipsis; }
.tkl-guide-dialog .tkl-talk-say { display:flex; gap:8px; padding:0 12px; margin:0; }
.tkl-guide-dialog .tkl-talk-say input { flex:1; min-width:0; height:46px; border-radius:999px; border:1px solid var(--tk-line); background:var(--tk-soft); color:var(--tk-ink); padding:0 16px; font-size:16px; line-height:1.2; }
.tkl-guide-dialog .tkl-talk-say input::placeholder { color:#7a889c; opacity:1; }
.tkl-guide-dialog .tkl-talk-say button { width:46px; height:46px; min-height:0; padding:0; border-radius:50%; border:0; background:var(--tk-go); color:#06270f; font-size:18px; font-weight:700; line-height:1; flex:none; }
.tkl-guide-dialog .tkl-talk-chips--more { -webkit-mask-image:linear-gradient(to right,#000 82%,transparent); mask-image:linear-gradient(to right,#000 82%,transparent); }
/* マウスで使う画面では、選択肢を折り返して全部見せる */
@media (hover:hover) and (pointer:fine) {
  .tkl-guide-dialog .tkl-talk-chips { flex-wrap:wrap; max-height:148px; overflow-x:hidden; overflow-y:auto; }
  .tkl-guide-dialog .tkl-talk-chips--more { -webkit-mask-image:none; mask-image:none; }
}
@keyframes tkl-guide-rise { from { opacity:0; transform:translateY(50px); } to { opacity:1; transform:translateY(0); } }
@keyframes tkl-guide-drop { to { opacity:0; transform:translateY(50px); } }
@keyframes tkl-guide-fade { from { opacity:0; } to { opacity:1; } }
@media(max-width:600px) {
  .tkl-guide-dialog { inset:auto 0 0; width:100%; height:min(790px,92dvh); border-radius:22px 22px 0 0; }
  .tkl-guide-launcher { right:14px; bottom:max(14px,env(safe-area-inset-bottom)); gap:8px; padding:6px 10px 6px 6px; }
  .tkl-guide-launcher__image { width:48px; height:48px; }
  .tkl-guide-launcher strong { font-size:14px; }
  .tkl-guide-launcher small { font-size:10px; }
  .tkl-guide-launcher__icon { width:26px; height:26px; font-size:18px; }
}
@media(max-height:560px) {
  .tkl-guide-dialog .tkl-guide-header { padding-top:6px; padding-bottom:6px; }
  .tkl-guide-dialog .tkl-guide-avatar { width:28px; height:28px; }
  .tkl-guide-dialog .tkl-guide-header__text p { display:none; }
  .tkl-guide-dialog .tkl-talk-icon { width:34px; height:34px; font-size:15px; }
  .tkl-guide-dialog .tkl-talk-chat { padding-top:8px; padding-bottom:10px; gap:8px; }
  .tkl-guide-dialog .tkl-talk-dock { padding-top:6px; }
  .tkl-guide-dialog .tkl-talk-chips { padding-bottom:6px; }
  .tkl-guide-dialog .tkl-talk-chip { min-height:36px; }
  .tkl-guide-dialog .tkl-talk-say input { height:42px; }
  .tkl-guide-dialog .tkl-talk-say button { width:42px; height:42px; }
}
@media(prefers-reduced-motion:reduce) {
  .tkl-guide-dialog[open], .tkl-guide-dialog[open].tkl-guide-closing, .tkl-guide-dialog::backdrop, .tkl-guide-dialog.tkl-guide-closing::backdrop { animation:none; }
  .tkl-guide-launcher { transition:none; }
}

/* v5.4: compact homepage entry; only the dialog floats after starting. */
.tkl-guide-entry { box-sizing:border-box; max-width:680px; margin:0 auto; padding:20px; border:1px solid #e4d6f2; border-radius:18px; background:#fff; color:#29233a; font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif; letter-spacing:normal; }
.tkl-guide-entry * { box-sizing:border-box; }
.tkl-guide-entry .tkl-guide-entry__summary { display:flex; align-items:center; gap:20px; }
.tkl-guide-entry .tkl-guide-entry__avatar { display:block; flex:0 0 88px; width:88px; height:88px; border-radius:50%; object-fit:cover; margin:0; }
.tkl-guide-entry .tkl-guide-entry__copy { flex:1; min-width:0; }
.tkl-guide-entry .tkl-guide-entry__copy p { margin:0; padding:0; color:#756b85; font-size:14px; line-height:1.8; }
.tkl-guide-entry .tkl-guide-entry__button { display:block; width:100%; margin:18px 0 0; min-height:48px; padding:12px 18px; border:1px solid #7c3aed; border-radius:12px; background:#7c3aed; color:#fff; font:inherit; font-size:15px; line-height:1.5; font-weight:800; letter-spacing:normal; cursor:pointer; box-shadow:none; text-align:center; }
.tkl-guide-entry .tkl-guide-entry__button:hover { background:#6d28d9; border-color:#6d28d9; }
.tkl-guide-entry .tkl-guide-entry__button:focus-visible { outline:3px solid #6a40b8; outline-offset:3px; }
@media(max-width:600px) {
 .tkl-guide-entry { padding:16px; border-radius:16px; }
 .tkl-guide-entry .tkl-guide-entry__summary { gap:14px; }
 .tkl-guide-entry .tkl-guide-entry__avatar { flex-basis:72px; width:72px; height:72px; }
 .tkl-guide-entry .tkl-guide-entry__copy p { font-size:13px; line-height:1.75; }
 .tkl-guide-entry .tkl-guide-entry__button { margin-top:14px; font-size:14px; }
}
@media(max-width:359px) {
 .tkl-guide-entry { padding:14px; }
 .tkl-guide-entry .tkl-guide-entry__summary { gap:10px; }
 .tkl-guide-entry .tkl-guide-entry__avatar { flex-basis:60px; width:60px; height:60px; }
}

/* Desktop: full-width entry with a full-height character beside the copy and CTA. */
@media(min-width:769px) {
 .tkl-guide-entry { display:grid; grid-template-columns:clamp(220px,24%,280px) minmax(0,1fr); grid-template-rows:1fr auto; column-gap:clamp(24px,3vw,40px); row-gap:18px; width:100%; max-width:none; height:clamp(240px,22vw,280px); padding:0; overflow:hidden; }
 .tkl-guide-entry .tkl-guide-entry__summary { display:contents; }
 .tkl-guide-entry .tkl-guide-entry__avatar { grid-column:1; grid-row:1 / 3; width:100%; height:100%; min-height:0; border-radius:0; object-fit:cover; }
 .tkl-guide-entry .tkl-guide-entry__copy { grid-column:2; grid-row:1; align-self:end; padding:28px 32px 0 0; }
 .tkl-guide-entry .tkl-guide-entry__copy p { color:#29233a; font-size:clamp(22px,2.2vw,32px); line-height:1.6; font-weight:800; text-wrap:balance; }
 .tkl-guide-entry .tkl-guide-entry__button { grid-column:2; grid-row:2; align-self:start; width:calc(100% - 32px); min-height:64px; margin:0 32px 28px 0; font-size:clamp(20px,1.9vw,26px); }
}

/* v6: moving talk-box entry with an accessible, locally hosted mascot loop. */
.tkl-guide-entry { position:relative; isolation:isolate; display:grid; grid-template-columns:clamp(280px,28%,460px) minmax(0,1fr); grid-template-rows:1fr auto; column-gap:clamp(20px,3vw,42px); row-gap:14px; width:100%; max-width:none; min-height:250px; height:clamp(250px,23vw,310px); padding:0 clamp(20px,3vw,40px) 0 0; overflow:hidden; border-color:#e7def3; background:linear-gradient(115deg,#fff 0%,#fff 66%,#fbf8ff 100%); box-shadow:0 12px 32px #4d287c0d; }
.tkl-guide-entry .tkl-guide-entry__summary { display:contents; }
.tkl-guide-entry .tkl-guide-entry__video { grid-column:1; grid-row:1 / 3; display:block; width:100%; height:100%; min-height:0; margin:0; border-radius:0; object-fit:cover; background:#fff; }
.tkl-guide-entry .tkl-guide-entry__copy { grid-column:2; grid-row:1; align-self:center; padding:20px 0 0; }
.tkl-guide-entry .tkl-guide-entry__lead { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:clamp(14px,1.8vw,28px); row-gap:0; margin:0 0 10px; color:#29233a; font-size:clamp(26px,2.75vw,39px); font-weight:900; line-height:1.35; letter-spacing:-.035em; }
.tkl-guide-entry .tkl-guide-entry__description { margin:0; color:#756b85; font-size:clamp(19px,1.8vw,25px); line-height:1.65; }
.tkl-guide-entry .tkl-guide-entry__button { position:relative; grid-column:2; grid-row:2; align-self:start; display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:64px; margin:0 0 42px; overflow:hidden; border-radius:14px; background:linear-gradient(100deg,#7026db,#8c45ed); box-shadow:0 8px 18px #7026db2e; font-size:clamp(20px,1.8vw,25px); transition:transform .2s,box-shadow .2s; }
.tkl-guide-entry .tkl-guide-entry__button::after { position:absolute; inset:0 auto 0 -60%; width:38%; content:""; transform:skewX(-20deg); background:linear-gradient(90deg,transparent,#ffffff40,transparent); animation:tkl-talkbox-button-shine 5s ease-in-out infinite; }
.tkl-guide-entry .tkl-guide-entry__button span { font-size:1.2em; transition:transform .2s; }
.tkl-guide-entry .tkl-guide-entry__button:hover { transform:translateY(-2px); box-shadow:0 12px 22px #7026db3d; background:linear-gradient(100deg,#7026db,#8c45ed); border-color:#7026db; }
.tkl-guide-entry .tkl-guide-entry__button:hover span { transform:translateX(4px); }
@keyframes tkl-talkbox-button-shine { 0%,70%,100% { left:-60%; } 88% { left:130%; } }
@media(max-width:768px) {
 .tkl-guide-entry { grid-template-columns:clamp(82px,27vw,116px) minmax(0,1fr); grid-template-rows:auto auto; column-gap:clamp(10px,3vw,16px); row-gap:12px; height:auto; min-height:0; padding:12px; }
 .tkl-guide-entry .tkl-guide-entry__video { grid-column:1; grid-row:1; width:100%; max-width:116px; height:auto; aspect-ratio:1; justify-self:center; align-self:center; object-fit:contain; }
 .tkl-guide-entry .tkl-guide-entry__copy { grid-column:2; grid-row:1; align-self:center; padding:0; text-align:left; }
 .tkl-guide-entry .tkl-guide-entry__lead { display:block; margin-bottom:6px; font-size:clamp(16px,4.6vw,21px); line-height:1.45; }
 .tkl-guide-entry .tkl-guide-entry__lead span { display:block; }
 .tkl-guide-entry .tkl-guide-entry__description { font-size:clamp(13px,3.6vw,16px); line-height:1.6; }
 .tkl-guide-entry .tkl-guide-entry__button { grid-column:1 / -1; grid-row:2; width:100%; min-height:50px; margin:0; font-size:17px; }
}
@media(prefers-reduced-motion:reduce) {
 .tkl-guide-entry .tkl-guide-entry__button::after { animation:none; }
 .tkl-guide-entry .tkl-guide-entry__button,.tkl-guide-entry .tkl-guide-entry__button span { transition:none; }
}
