/* 2026-11-17 サイト全体の見た目と動線の直し（batch1117.py が全ページに読み込む。style.css などの元ファイルは書き換えない）
   文字は 16・14・12px の3段階、余白は 8px 刻み（8・16・24・40）、橙のボタンは1画面に1つまで */

/* ---- 料金ページのキー入力の案内（ヘッダーから外した分） */
.b17key{margin:8px 0 16px;font-size:14px;color:var(--sub)}
.b17key a{font-weight:700;white-space:nowrap}

/* ---- 結果の直下の購入ボタンの帯（cro1113.css を読まないページでも同じ形に） */
.cro-price{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--soft);font-size:14px;line-height:1.75;color:var(--ink)}
#out:empty+.cro-price{display:none}
.cro-price[hidden]{display:none}

/* ---- スマホのフッター：リンクの行の高さを44pxに（余分な上下の余白を取る） */
@media(max-width:760px){footer .wrap a{padding:0;min-height:44px;display:flex;align-items:center}}

/*[tool]*/
/* ---- ツールの上部：印は1行、要点と「こんな方に」は折りたたみ */
.b17row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 16px}
.b17row .badges,.b17row .safe2{display:contents}
.b17row .badge,.b17more .badge{margin:0;font-size:12px;line-height:1.5;padding:4px 10px;white-space:nowrap}
.b17row .safe2 li,.b17more .safe2 li{font-size:12px;line-height:1.5;padding:3px 10px;margin:0}
.b17info{margin:0 0 16px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.b17info>summary{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;margin:0;padding:0 16px;cursor:pointer;font-size:14px;font-weight:700;color:var(--ink);text-align:left}
.b17info>summary>span{flex:1;text-align:left}
.b17info[open]>summary{border-bottom:1px solid var(--line)}
.b17in{padding:16px}
.b17in .tzpt{margin:0 0 16px;font-size:14px}
.b17in .tzpt ul{margin:8px 0 0}
.b17in .who{display:grid;gap:8px;margin:0 0 16px;font-size:14px}
.b17in .who span,.b17in .who span:nth-of-type(n+2){display:block}
.b17in .who>.spfold,.b17in .who>.spfold[hidden]{display:grid;gap:8px}
.b17in .who .cro-whob{display:none}
.b17more{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.b17more .badges,.b17more .safe2{display:contents}
@media(max-width:760px){
  .b17row{margin-bottom:8px}
  .b17row .badge{white-space:normal}
  .b17more .safe2{display:contents!important}
}
/* 第1画面に主ボタン（見本で見る）があるページは、ファイル選択のボタンを副の色に（橙は1画面に1つ） */
.tool-main:has(.kmfv .btn:not(.sub)) .tzdrop .tzdrop-btn{background:var(--card);color:var(--accent);border:2px solid var(--accent);box-shadow:none}
/* 印の高さをそろえる（リンクの印だけ背が高くならないように） */
.b17row .badge,.b17more .badge,.b17row .safe2 li,.b17more .safe2 li{display:inline-flex;align-items:center;min-height:28px;box-sizing:border-box;padding:2px 10px;margin:0}
.b17row a.badge.rev,.b17more a.badge.rev{min-height:28px;padding:2px 10px;margin:0}
/* 橙は「この画面で次に押す1つ」だけ：結果の中の保存ボタンと「次にやること」は青系に、購入ボタンだけ橙 */
.tool-main #out .btn:not(.sub):not(.cro-buy1){background:var(--accent);color:var(--accent-ink);box-shadow:none}
.tool-main .nextrow a.btn:not(.sub){background:var(--soft);color:var(--accent);box-shadow:none}
.tool-main .vpill i,.tool-side .vplay{background:var(--navy,#0f1c3f)}
/* 結果の下に購入ボタンの帯があるページは、料金の1行を重ねて出さない（HTMLには残す） */
.tool-main:has(#cro-buy:not([hidden])) .p42lim.f6line{display:none}
/* 結果の下に購入ボタンの帯があるページでは、下の上限の箱の24時間パスは枠だけの色に（橙の塗りは1つ） */
.tool-main:has(#cro-buy:not([hidden])) .lblcard .lc-b{background:var(--card);color:var(--cta,#c2410c);border:2px solid var(--cta,#c2410c);box-shadow:none}
.tool-main:has(#cro-buy:not([hidden])) .lblcard .lc-b *{color:inherit}
/* 結果のまわりの箱どうしの間隔を16pxに */
.tool-main .cro-price,.tool-main .tzshare,.tool-main .lblcard{margin-top:16px;margin-bottom:16px}
/* ツールの下の解説文は、読みやすい幅（760px）に */
main.vg>p,main.vg>ul,main.vg>ol,main.vg>.formula,main.vg>h3{max-width:760px}
/* 見出しだけにたたむ部品（cro1113.css を読まないページ用の控え） */
.spfh{cursor:pointer;position:relative;padding-right:28px}
.spfh::after{content:"＋";position:absolute;right:4px;top:0;color:var(--accent)}
.spfh[aria-expanded="true"]::after{content:"－"}
.spfold[hidden]{display:none}
.kmfv>.btn,.kmfv>.m12-chip{margin-top:0;margin-bottom:0}
@media(max-width:760px){
  /* スマホ：録画の切り抜きの見本画像（ぼやける）は出さず、入力欄を上げる。給与明細などの鮮明な見本はそのまま */
  .tool-main img.cro-fvimg[src*="assets/demo/"]{display:none}
}
/* 表の右端の灰色の帯（横送り用の影）は、収まっている表にも出て切れて見えるので出さない */
.result table:not(.fit),.result .scroll,.formula .scroll{background:none}
@media(max-width:760px){
  /* 印は2段までに：鍵の絵を外し、間を詰める */
  .b17row{gap:6px}
  .b17row .safe2 li svg{display:none}
  .b17row .badge,.b17row .safe2 li,.b17row a.badge.rev{padding:2px 8px}
  /* 折りたたみの見出しが2行になるとき、2行目を「＋」の下に回り込ませない */
  .tool-main details:not(.b17info):not(.passkey):not(.tz-det):not(.cinq)>summary,.tzcb-faq details>summary,main>details.qa>summary,.cp-fold>summary{margin-left:1.4em;text-indent:-1.4em}
  .tool-main details>summary>*,.tzcb-faq details>summary>*,.cp-fold>summary>*{text-indent:0}
  .tool-main details>summary::before,.tzcb-faq details>summary::before,main>details.qa>summary::before,.cp-fold>summary::before{text-indent:0}
  /* 「使い方」の箱にも開閉の印を出す・印の高さを見出しにそろえる */
  #how .side-h.spfh::after{content:"＋";display:block;position:absolute;right:4px;top:50%;transform:translateY(-50%);color:var(--accent)}
  #how .side-h.spfh[aria-expanded="true"]::after{content:"－"}
  .samecat b.spfh::after,.tzreq-h.spfh::after{top:50%;transform:translateY(-50%)}
  /* 長い注意書きの切り詰めは、行の切れ目で3行に */
  #tooltop .cro-clamp{max-height:calc(8px + 1.7em*3)}
}
/*[/tool]*/

/*[top]*/
/* ---- トップ：第1画面の橙ボタンは主1つ＋副2つ */
.t2hero .t2hero-in{padding-top:40px;padding-bottom:32px}
.ct-go{grid-template-columns:1fr 1fr;gap:8px}
.ct-go .ct-b:first-child{grid-column:1/-1}
.ct-go .ct-b:nth-child(n+2){min-height:56px;padding:8px 12px 8px 8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.45);box-shadow:none;color:#fff}
.ct-go .ct-b:nth-child(n+2):hover{background:rgba(255,255,255,.16)}
.ct-go .ct-b:nth-child(n+2) b{font-size:14px}
.ct-go .ct-b:nth-child(n+2) small{font-size:12px}
.ct-go .ct-b:nth-child(n+2) img{width:32px;height:40px}
@media(max-width:760px){
  .t2hero .t2hero-in{padding-top:24px;padding-bottom:24px}
  .ct-go .ct-b:nth-child(n+2){padding:8px;gap:8px}
  .ct-go .ct-b:nth-child(n+2) small{display:none}
}
/* ---- トップ：下の階層へ回した区画（見出しだけ見せて、押すと開く。HTMLには全文を残す） */
.b17f:not(.b17sp):not(.b17open)>:not(h2):not(.check-h):not(.tzreq-h):not(.sec-h):not(.b17w),
.b17f:not(.b17sp):not(.b17open)>.check-h>:not(h2),
.b17f:not(.b17sp):not(.b17open)>.tzreq-h>:not(h2),
.b17f:not(.b17sp):not(.b17open)>.sec-h>:not(h2),
.b17f:not(.b17sp):not(.b17open)>.b17w>:not(h2){display:none!important}
.t2top .b17f:not(.b17sp):not(.b17open){max-width:none!important;width:auto;margin:8px 0!important;padding:0 16px!important;border:1px solid var(--line);border-radius:10px;background:var(--card)!important;box-shadow:none!important;clip-path:none!important}
.b17f:not(.b17sp):not(.b17open) .check-h,.b17f:not(.b17sp):not(.b17open) .tzreq-h,.b17f:not(.b17sp):not(.b17open) .sec-h,.b17f:not(.b17sp):not(.b17open) .b17w{display:block;margin:0;padding:0;border:0;background:none;text-align:left}
.b17f:not(.b17sp) h2{cursor:pointer;position:relative;padding-right:32px}
.t2top .b17f:not(.b17sp):not(.b17open) h2{display:flex;align-items:center;min-height:48px;margin:0;padding:0 32px 0 0;border:0;background:none;font-size:16px;line-height:1.5;text-align:left;color:var(--ink)}
.b17f:not(.b17sp) h2::after{content:"＋";display:block;position:absolute;right:0;top:50%;transform:translateY(-50%);color:var(--accent);font-weight:400;font-size:16px}
.b17f:not(.b17sp).b17open h2::after{content:"－"}
.b17f h2:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:760px){
  .b17f.b17sp:not(.b17open)>:not(h2):not(.sec-h),
  .b17f.b17sp:not(.b17open)>.sec-h>:not(h2){display:none!important}
  .t2top .b17f.b17sp:not(.b17open){margin:8px 0!important;padding:0 16px!important;border:1px solid var(--line);border-radius:10px;background:var(--card)!important;box-shadow:none!important;clip-path:none!important}
  .b17f.b17sp:not(.b17open) .sec-h{display:block;margin:0;padding:0;text-align:left}
  .b17f.b17sp h2{cursor:pointer;position:relative;padding-right:32px}
  .t2top .b17f.b17sp:not(.b17open) h2{display:flex;align-items:center;min-height:48px;margin:0;padding:0 32px 0 0;border:0;background:none;font-size:16px;line-height:1.5;text-align:left;color:var(--ink)}
  .b17f.b17sp h2::after{content:"＋";display:block;position:absolute;right:0;top:50%;transform:translateY(-50%);color:var(--accent);font-weight:400;font-size:16px}
  .b17f.b17sp.b17open h2::after{content:"－"}
}
/* ---- トップ：区画の間の余白を一定の刻みに */
.t2top .tools-sec,.t2top .who-sec,.t2top .faq-sec{margin-top:40px}
.t2top .tools-sec{padding-top:24px;padding-bottom:24px}
.t2top .who-sec.vband:not(.b17f),.t2top .who-sec.vband.b17open{padding:24px 0}
.t2top .pro-band,.t2top .t2custom{padding:16px 24px}
.t2top .pro-band{margin-top:24px}
.t2top .t11main{margin-top:16px;padding:16px 0 8px}
.t2top .t11img{aspect-ratio:36/14}
.t2top .maker{padding:16px 24px}
.t2top .final{margin-top:40px;padding:24px 0}
.t2top .final .mc{margin:8px 0}
.t2top .p42top{margin-bottom:24px}
@media(min-width:861px){
  .t2top .faq-sec{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;align-items:start}
  .t2top .faq-sec>:first-child{grid-column:1/-1}
  .t2top .faq-sec>details{margin:0;max-width:none;width:auto}
}
@media(max-width:760px){
  /* 3本のカード：横に送る1段に（次のカードが少し見える幅） */
  .t2top .t11cards{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -16px;padding:0 16px 8px;scroll-padding-left:16px}
  .t2top .t11cards::-webkit-scrollbar{display:none}
  .t2top .t11cards>.t11c{flex:0 0 84%;scroll-snap-align:start;box-sizing:border-box}
  /* 第1画面の検索：入力欄とボタンを1行に */
  .t2hero .ct-search{display:flex;gap:8px;align-items:stretch}
  .t2hero .ct-search .hsearch{flex:1;min-width:0}
  .t2hero .ct-search #hgo{flex:none;width:auto;margin:0;padding:0 16px;white-space:nowrap;font-size:14px}
  /* 3本のカード：見本の画像は左に小さく */
  .t2top .t11c{display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:16px;row-gap:0;padding:16px}
  .t2top .t11c .t11img{grid-column:1;grid-row:1/span 3;align-self:start;aspect-ratio:1/1}
  .t2top .t11c>em,.t2top .t11c>b,.t2top .t11c>span{grid-column:2}
  .t2top .t11c>.t11fp,.t2top .t11c>i{grid-column:1/-1}
  .t2top .t11c>.t11fp{margin-top:8px}
  .t2top .t11c>i{margin-top:0}
  .t2top .t11ind{gap:8px;margin:8px 0 0}
  .t2top .t11ind>div{padding:8px 16px;display:flex;flex-wrap:wrap;align-items:center;column-gap:16px}
  .t2top .t11ind b{width:100%;margin:0}
  .t2top .faq-sec details.qa{margin:8px 0}
  /* 分類と季節のリンク：縦に積まず、横に送る1行に */
  .t2top .t2cats,.t2top .t2season{flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;margin:16px -16px 0;padding:0 16px}
  .t2top .t2cats::-webkit-scrollbar,.t2top .t2season::-webkit-scrollbar{display:none}
  .t2top .t2cats a,.t2top .t2season a{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:22px;background:var(--card);white-space:nowrap;font-size:14px;font-weight:400}
  .t2top .t2season b{flex:none;font-size:12px;white-space:nowrap}
  .t2top .pro-band,.t2top .t2custom,.t2top .maker{padding:16px}
  .t2top .pro-band{margin-top:24px}
  .t2top .tools-sec{padding-top:24px;padding-bottom:24px}
}
/* おすすめの4枚は1段に（3枚＋1枚で余らせない） */
@media(min-width:1000px){.t2top .tgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* 第1画面の「ツールを探す」：文字を上下の中央に */
.t2hero .ct-search #hgo{display:inline-flex;align-items:center;justify-content:center;height:auto;line-height:1.4;margin:0}
@media(max-width:760px){
  /* 横に送る行は、右端をうすくして続きがあることを示す */
  .t2top .t2cats,.t2top .t2season{-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent)}
}
/*[/top]*/

/*[guide]*/
/* ---- 解説ガイドの記事：本文の幅は760px、「結論と根拠」の箱の上の空白をなくす */
main.guide{max-width:792px}
main.guide>.page-h>.wrap{max-width:792px}
main.guide .tzcb>.tzcb-h{margin-top:0}
/* 表の四隅のにじみ（横送り用の影）は、記事では出さない */
main.guide .scroll{background:none}
@media(max-width:760px){
  main.guide .page-h h1{font-size:20px;line-height:1.5;word-break:auto-phrase;text-wrap:balance}
  main.guide .vph .wrap>i.ic{display:none}
}
/*[/guide]*/
/* ---- 料金ページ：よくある質問の箱を、上の「くわしく見る」と同じ幅・同じ左端に */
.cp-fold~details.qa{max-width:none;margin:8px 0}
