/* 適職診断の見た目。すべて .tks の内側だけに効かせる */
body.tks-body{
  --bg:#0c1024; --panel:#161a36; --panel2:#1f2447; --line:#2f3566;
  --text:#eef0ff; --muted:#a4a9d6; --gold:#e8c66a; --gold2:#f6e3a6;
  --up:#f0a35e; --down:#6ea8ff; --dim:#3a4078;
  }
.tks *{box-sizing:border-box}
body.tks-body{margin:0;background:radial-gradient(1100px 560px at 50% -8%,#2a2f68 0%,var(--bg) 62%);color:var(--text);
  font-family:"Hiragino Sans","Yu Gothic UI","Meiryo",system-ui,sans-serif;line-height:1.75;-webkit-text-size-adjust:100%}
.tks{max-width:600px;margin:0 auto;padding:20px 16px 80px}
.tks .proto{font-size:12px;color:var(--bg);background:var(--gold);display:inline-block;padding:1px 10px;border-radius:99px;font-weight:700}
.tks .hero{text-align:center;padding:14px 0 6px}
.tks .hero svg{width:92px;height:92px}
.tks h1{font-size:30px;margin:6px 0 0;letter-spacing:.14em}
.tks h1 small{font-size:12px;color:var(--muted);font-weight:400;margin-left:6px;letter-spacing:0}
.tks .tag{font-size:19px;font-weight:700;color:var(--gold2);margin:10px 0 6px;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:.06em}
.tks .lead{color:var(--muted);font-size:14px;margin:0 0 6px}
.tks .badges{display:flex;gap:8px;justify-content:center;margin:10px 0 2px}
.tks .badges span{border:1px solid var(--gold);color:var(--gold2);border-radius:99px;padding:2px 12px;font-size:13px;font-weight:700}
.tks .jobhead{font-size:20px;font-weight:700;margin:0 0 8px}
.tks .jobhead em{font-style:normal;color:var(--gold2)}
.tks .two{display:flex;gap:8px;margin-top:12px}
.tks .two>div{flex:1;background:var(--panel2);border-radius:12px;padding:10px 12px;font-size:13px}
.tks .two b{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-bottom:2px}
.tks .roles{display:flex;gap:8px;margin:14px 0 4px}
.tks .role{flex:1;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:10px 6px;text-align:center;font-size:12px;color:var(--muted)}
.tks .role b{display:block;color:var(--gold2);font-size:14px;margin-bottom:2px}
.tks .card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px 16px;margin:14px 0}
.tks .card h2{font-size:17px;margin:0 0 10px;color:var(--gold2)}
.tks .note{font-size:12px;color:var(--muted)}
.tks .row{display:flex;gap:8px;flex-wrap:wrap;align-items:stretch}
.tks select,.tks button{font:inherit;color:var(--text)}
.tks select{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:10px 8px;flex:1;min-width:84px}
.tks .btn{background:var(--gold);color:#1b1730;border:0;border-radius:12px;padding:12px 18px;font-weight:700;cursor:pointer;width:100%;margin-top:12px}
.tks .chip{display:inline-block;background:var(--panel2);border:1px solid var(--line);border-radius:99px;padding:2px 10px;font-size:12px;margin:3px 4px 0 0;color:var(--text)}
.tks .chip b{color:var(--gold2);font-weight:600}
.tks .opt{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:10px 8px;cursor:pointer;flex:1;min-width:64px;text-align:center;font-size:14px}
.tks .opt:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}
.tks .opt.on{border-color:var(--gold);background:#2c2a4f;color:var(--gold2)}
.tks .opt.skip{flex:0 0 auto;min-width:0;font-size:12px;color:var(--muted);border-style:dashed;display:flex;align-items:center;padding:6px 10px}
.tks .guide{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px}
.tks .guide svg{width:34px;height:34px;flex:0 0 34px}
.tks .guide div{background:var(--panel2);border-radius:4px 14px 14px 14px;padding:8px 12px;font-size:13px;color:var(--muted)}
.tks .guide b{color:var(--gold2);font-weight:600}
.tks .big{font-size:22px;font-weight:700;margin:4px 0 6px}
.tks .big em{font-style:normal;color:var(--gold2)}
.tks .score{display:flex;align-items:baseline;gap:8px;margin:2px 0 8px}
.tks .score .n{font-size:44px;font-weight:800;color:var(--gold);line-height:1}
.tks .score .u{font-size:13px;color:var(--muted)}
.tks .why{font-size:13px;color:var(--muted);margin-top:8px}
.tks .hidden{display:none}
.tks svg{max-width:100%;height:auto;display:block}
.tks .mx{display:grid;grid-template-columns:minmax(0,1fr) repeat(6,36px);font-size:11px;align-items:center;margin-top:10px}
.tks .mx>div{padding:5px 0;text-align:center;border-bottom:1px solid #232853}
.tks .mx .h{color:var(--muted);font-size:10px}
.tks .mx .nm{text-align:left;padding-left:2px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tks .mx .nm small{color:var(--muted);margin-left:4px}
.tks .mx .top{background:rgba(232,198,106,.10)}
.tks .mx .h.top{color:var(--gold2);font-weight:700}
.tks .dot{display:inline-block;width:14px;height:14px;border-radius:50%;border:1.5px solid var(--dim)}
.tks .dot.on{background:var(--gold);border-color:var(--gold);box-shadow:0 0 8px rgba(232,198,106,.6)}
.tks .mx .sum{font-weight:700;font-size:13px;border-bottom:0;padding-top:8px}
.tks .mx .sum.top{color:var(--gold)}
.tks .split{border:1px dashed var(--line);border-radius:12px;padding:10px 12px;margin-top:14px;font-size:13px}
.tks .split b{color:var(--gold2)}
.tks .legend{font-size:12px;color:var(--muted);display:flex;gap:14px;flex-wrap:wrap;margin-top:6px}
.tks .legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:-1px}
.tks .term{border-left:3px solid var(--gold);padding:2px 0 2px 12px;margin:16px 0}
.tks .term h3{margin:0;font-size:14px;color:var(--muted);font-weight:400}
.tks .term p{margin:4px 0 0;font-size:14px}
.tks .term p b:first-child{font-size:17px;color:var(--gold2)}
.tks .meter{font-size:13px;color:var(--muted);margin-top:4px}
.tks .meter b{color:var(--gold2)}
.tks .fp{width:46px;height:46px;margin:0 auto 2px}
.tks ul{margin:6px 0 0;padding-left:20px}
.tks label.ck{display:flex;gap:8px;align-items:flex-start;font-size:14px;margin-top:10px}
.tks .line{background:#06c755;color:#fff}
.tks .human{background:linear-gradient(160deg,#2a2550,#181c3a);border-color:#5a5390}
.tks .foot{font-size:11px;color:var(--muted);margin-top:24px}
.tks .pet{width:170px;margin:0 auto}
.tks .pet svg{width:100%}
.tks .pet .body{animation:tks-float 4s ease-in-out infinite;transform-origin:70px 70px}
.tks .pet.pop svg{animation:tks-pop .7s cubic-bezier(.2,1.6,.4,1)}
.tks .seed .glow{animation:tks-pulse 2.4s ease-in-out infinite;transform-origin:70px 70px}
@keyframes tks-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes tks-pop{0%{transform:scale(.2);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes tks-pulse{0%,100%{transform:scale(.85);opacity:.6}50%{transform:scale(1.1);opacity:1}}
@media (prefers-reduced-motion:reduce){.tks .pet .body,.tks .pet.pop svg,.tks .seed .glow{animation:none}}
.tks .stages{display:flex;gap:4px;margin:6px 0 14px}
.tks .stages div{flex:1;text-align:center;font-size:11px;color:var(--muted);border-top:3px solid var(--dim);padding-top:4px}
.tks .stages div.on{color:var(--gold2);border-color:var(--gold)}
.tks .zoo{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tks .zoo div{text-align:center;font-size:12px;color:var(--muted)}
.tks .zoo b{display:block;color:var(--text);font-size:13px}
.tks .deck{grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}
.tks .say{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:21px;font-weight:700;line-height:1.65;margin:2px 0 8px}
.tks .starname{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}
.tks .starname em{display:block;font-style:normal;font-size:30px;font-weight:700;color:var(--gold2);line-height:1.3;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:.08em}
.tks .route{background:var(--panel2);border-radius:12px;padding:12px;margin-top:12px;font-size:14px}
.tks .route b{display:block;color:var(--gold2);margin-bottom:4px}
.tks .route.own{border:1.5px solid var(--gold);background:#2c2a4f}
.tks .route.own b{font-size:18px}
.tks .route ul{margin:4px 0 8px}
.tks .adtag{display:inline-block;border:1px solid var(--muted);color:var(--muted);border-radius:4px;font-size:11px;padding:0 6px;margin-right:6px}
.tks .btn.ghost{background:transparent;border:1px solid var(--gold);color:var(--gold2);font-weight:600;margin-top:8px}
.tks .jobs{display:flex;flex-wrap:wrap;gap:6px}
.tks .jobs span{background:#2c2a4f;border:1px solid var(--gold);color:var(--gold2);border-radius:10px;padding:5px 11px;font-size:14px;font-weight:600}
.tks .jobs.sub span{background:var(--panel2);border-color:var(--line);color:var(--text);font-weight:400;font-size:13px}
.tks .starname .grp{display:inline-block;border:1px solid;border-radius:99px;padding:0 10px;font-size:12px;font-weight:700;margin:6px 0 0}
.tks .starname>div{margin-top:2px}
.tks details{margin-top:14px;border-top:1px dashed var(--line);padding-top:8px}
.tks summary{cursor:pointer;color:var(--muted);font-size:13px}
.tks details[open]>summary{color:var(--gold2);margin-bottom:6px}
.tks .term details{border-top:0;margin-top:4px;padding-top:0}
.tks input.txt{font:inherit;color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:10px 8px;flex:1;min-width:0}
.tks #nameAsk label{display:inline-block;font-size:14px;margin:6px 10px 0 0}
.tks #nameAsk input{width:64px;font:inherit;color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:6px}
.tks .dot.near{width:9px;height:9px;background:rgba(232,198,106,.3);border-color:rgba(232,198,106,.55)}
.tks .starname em small{font-size:15px;color:var(--muted);margin:0 5px;letter-spacing:0}
.tks .starname em.btw{font-size:24px}
.tks .polbox{background:var(--panel2);border-radius:12px;padding:10px 12px;margin-top:14px;font-size:14px}
.tks .polbox b{color:var(--gold2);margin-right:8px;font-size:16px}
.tks .mx .h i{display:block;width:8px;height:8px;border-radius:50%;margin:0 auto 4px}

/* ---- 本番で足したもの ---- */
body.tks-body{min-height:100vh}
.tks{display:block}
.tks a{color:var(--gold2)}
.tks a.btn{display:block;text-align:center;text-decoration:none;color:#1b1730}
.tks a.btn.ghost{color:var(--gold2)}
.tks button.btn{font-size:16px;line-height:1.5}
.tks .hero h1{color:var(--text);font-weight:700;line-height:1.4}
.tks #mycard{margin:6px auto 4px}
.tks .hakenbox{border:1.5px solid var(--gold);background:#2c2a4f;border-radius:12px;padding:12px;margin-top:14px;font-size:14px}
.tks .hakenbox>b{display:block;color:var(--gold2);font-size:16px;margin-bottom:8px}
.tks .tks-haken{border:1px solid var(--gold);border-radius:12px;padding:12px 12px 0;margin:0 0 14px}
.tks .tks-haken>b{display:block;color:var(--gold2);margin-bottom:10px}
.tks .tks-form input[type=number]{display:block;width:100%;margin-top:4px;font:inherit;font-size:16px;color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:10px}
.tks .hero .sub{margin:4px 0 0;font-size:15px;font-weight:700;color:var(--gold2);letter-spacing:.08em}
/* 登録フォーム（Contact Form 7） */
/* 親テーマが .wpcf7-form に付ける薄い灰色の背景と余白を消す（白い文字が読めなくなるため） */
.tks .wpcf7-form{background:transparent;padding:0}
.tks .tks-f{margin:0 0 14px;font-size:14px}
.tks .tks-f label{display:block}
.tks .tks-lbl{display:block;margin-bottom:4px}
.tks .tks-req{font-size:11px;color:#1b1730;background:var(--gold);border-radius:99px;padding:0 8px;margin-left:8px;font-weight:700}
.tks .tks-form input[type=text],.tks .tks-form input[type=email],.tks .tks-form input[type=tel],.tks .tks-form select,.tks .tks-form textarea{
  display:block;width:100%;margin-top:4px;font:inherit;font-size:16px;color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:10px}
.tks .tks-form .wpcf7-list-item{display:block;margin:6px 0 0}
.tks .tks-form .wpcf7-list-item label{display:flex;gap:8px;align-items:flex-start}
.tks .tks-form input[type=checkbox]{width:18px;height:18px;margin-top:3px;flex:0 0 18px}
.tks .tks-form input[type=submit]{width:100%;background:var(--gold);color:#1b1730;border:0;border-radius:12px;padding:14px 18px;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.tks .tks-form input[type=submit]:disabled{opacity:.5;cursor:not-allowed}
.tks .tks-form .wpcf7-not-valid-tip{color:#ffb4a8;font-size:13px;margin-top:4px}
.tks .tks-form .wpcf7-response-output{border:1px solid var(--line);border-radius:10px;padding:10px;margin:12px 0 0;font-size:14px;color:var(--text)}
