/* 2026-11-29: タダ電の専用試算（/tadaden-hikaku） */
.tm .mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.tm .mode label{display:block;margin:0;cursor:pointer;position:relative}
.tm .mode input{position:absolute;opacity:0;width:1px;height:1px}
.tm .mode span{display:block;height:100%;border:3px solid #5a9a2f;border-radius:16px;background:#fff;color:#3a2a14;font-weight:800;font-size:1.05rem;padding:10px 4px;line-height:1.4;text-align:center}
.tm .mode small{display:block;font-size:.72rem;font-weight:400}
.tm .mode input:checked+span{background:#b9df83;border-width:4px;border-color:#2f6b2a;color:#1f4d1c}
.tm .mode input:focus-visible+span{outline:3px solid #f0c64a;outline-offset:2px}
.tm .card0{background:#fff;border:3px solid #5a9a2f;border-radius:26px;padding:0 16px 16px;overflow:hidden;margin:16px 0}
.tm .band{margin:0 -16px 12px;padding:12px 16px;color:#fff;background:linear-gradient(#a3d04a,#4d8f2d 55%,#2f6b2a);font-size:1.125rem;font-weight:800;text-shadow:0 1px 0 rgba(0,0,0,.25);line-height:1.4}
.tm .f{display:block;margin:0 0 10px;font-weight:800;font-size:.9rem;min-width:0}
.tm .f select,.tm .f input,.tm .mg input{display:block;box-sizing:border-box;width:100%;min-height:48px;border:2px solid #9aa79f;border-radius:10px;background:#fff;font-size:1rem;padding:6px 8px;margin-top:4px;color:#222}
.tm .f select:disabled{background:#e2e2e2}
.tm .g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;align-items:end}
.tm .ym{display:grid;grid-template-columns:3fr 2fr;gap:8px}
.tm .g2 .wide{grid-column:1/-1}
.tm[data-mode-now=old] .only-new,.tm[data-mode-now=new] .only-old{display:none}
.tm .sub{font-weight:800;margin:6px 0 4px}
.tm .hint{font-size:.8125rem;font-weight:400;color:#5f6b64;margin:0 0 8px}
.tm .fill{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
.tm .fillb{display:block;width:100%;min-height:48px;border:0;border-radius:24px;color:#fff;font-weight:800;background:linear-gradient(#a3d04a,#4d8f2d 60%,#2f6b2a);box-shadow:0 4px 0 #1f4d1c;margin:2px 0 14px}
.tm .mg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 6px}
.tm .mg label{display:block;margin:0;font-size:.8125rem;font-weight:700;min-width:0}
.tm .mg input{text-align:right}
.tm .go{display:block;width:100%;border:0;border-radius:34px;color:#fff;font-weight:800;font-size:1.05rem;padding:14px 8px;background:linear-gradient(#ff7a6e,#e53935 55%,#c62828);box-shadow:0 6px 0 #8e1b1b;margin:10px 0 8px}
.tm .err{background:#fff1ef;border:2px solid #e53935;border-radius:12px;padding:10px 12px;color:#8e1b1b;margin:14px 0}
.tm .err p{margin:0}
.tm .g2 .hint{margin:-4px 0 10px}
.tm details.opt{margin:6px 0}
.tm details.opt summary,.tm .an details.pr summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:6px;font-weight:800;color:#2f6b2a;font-size:.9rem}
.tm details.opt summary::before,.tm .an details.pr summary::before,.tm details.mo2 summary::before{content:"▶";font-size:.7rem;margin-right:2px}
.tm details[open]>summary::before{content:"▼"}
.tm .note{background:#fff;border:2px solid #e0a800;border-radius:12px;padding:10px 12px;font-size:.84rem;margin:14px 0}
.tm .note ul{margin:4px 0 0;padding-left:1.2em}
.tm .nw{white-space:nowrap}
.tm .simtag{text-align:center;margin:14px 0 4px}
.tm .simtag span{display:inline-block;background:#2f6b2a;color:#fff;border-radius:20px;padding:4px 16px;font-size:.85rem;font-weight:800}
.tm .backw{text-align:center;margin:18px 0}
.tm a.back{display:inline-block;box-sizing:border-box;min-height:48px;min-width:240px;max-width:100%;border:2px solid #2f6b2a;border-radius:26px;background:#fff;color:#2f6b2a;font-weight:800;padding:10px 24px;line-height:1.6;text-decoration:none}
/* 今の位置 */
.tm .tg{border:2px solid #cfe0c2;border-radius:16px;background:#fff;padding:12px;margin:10px 0}
.tm .tg h3{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:1rem;color:#2f6b2a}
.tm .tg h3 i{font-style:normal;flex:0 0 28px;height:28px;border-radius:50%;background:#2f6b2a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:.95rem}
.tm .tg p{margin:4px 0;font-size:.9rem}
.tm .tg p.pos{font-size:1.2rem;font-weight:800;text-align:center}
.tm .tg p.c{text-align:center}
.tm .nx{background:#fff3e0;border-radius:10px;padding:8px;text-align:center;font-weight:700;margin-top:6px}
.tm .tg p.past{color:#777;font-size:.76rem;text-align:center}
/* 帯（30ヶ月） */
.tm .ov{background:#fff;border:2px solid #cfe0c2;border-radius:14px;padding:8px;margin:10px 0}
.tm .ov .g{display:grid;grid-template-columns:repeat(30,minmax(0,1fr));row-gap:3px;font-size:.68rem;text-align:center;line-height:1.5}
.tm .ov .g span{border-radius:5px;white-space:nowrap;overflow:hidden}
.tm .ov .r1{grid-row:1;grid-column:1 / span 12}.tm .ov .r2{grid-row:2;grid-column:13 / span 12}.tm .ov .r3{grid-row:3;grid-column:19 / span 12}
.tm .ov .b1{background:#cfe6b5}.tm .ov .b2{background:#ffe9a8}.tm .ov .b3{background:#ffcf9e}
.tm .ov .g .m{grid-row:4;border-top:3px solid #999;color:#555}
.tm .ov .g .m1{grid-column:1 / span 12}.tm .ov .g .m2{grid-column:13 / span 6}.tm .ov .g .m3{grid-column:19 / span 12}
.tm .ov .mkr{position:relative;height:14px;color:#1b4fa0}
.tm .ov .mkr i,.tm .ov .mkr b{position:absolute;top:0;font-style:normal;font-size:.7rem;line-height:14px;white-space:nowrap}
.tm .ov .mkr.lb{height:18px}.tm .ov .mkr.lb b{font-size:.76rem;font-weight:800;line-height:18px}
.tm .ov .sc{display:flex;justify-content:space-between;font-size:.66rem;color:#777;border-top:1px solid #ccc}
.tm .ov p{font-size:.76rem;margin:4px 0 0}
/* 3枚のカード */
.tm .k3{display:grid;gap:8px;margin:10px 0}
.tm .kc{background:#fff;border:2px solid #cfd8c4;border-radius:14px;padding:10px;min-width:0;text-align:center}
/* 2026-11-30 3枚の枠は同じ色。カード全体の背景は上の帯と同じ色 */
.tm .kc.b1{background:#cfe6b5}.tm .kc.b2{background:#ffe9a8}.tm .kc.b3{background:#ffcf9e}
.tm .kc.done[class]{background:#eee}.tm .kc .vs>div:not(.win){background:transparent;border:2px solid #7d7a6c}
.tm .kc.done{background:#eee;color:#777}.tm .kc.here{border:3px solid #1b4fa0}
.tm .kc h3{margin:0 0 6px;font-size:.95rem;line-height:1.5}
.tm .kc h3 small{display:block;font-size:.72rem;font-weight:400;color:#555}
.tm .kc .st{display:inline-block;border-radius:10px;padding:0 8px;font-size:.7rem;font-weight:800;color:#fff;background:#1b4fa0;margin-bottom:4px}
.tm .kc.done .st{background:#888}
.tm .vs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tm .vs>div{border:1px solid #dbe3d5;border-radius:12px;padding:8px 4px;text-align:center;min-width:0}
.tm .vs span{display:block;font-size:.76rem;font-weight:700}
.tm .vs b{display:block;font-size:1.1rem;white-space:nowrap}
.tm .vs .win{background:#e6f2d8;border:2px solid #2f6b2a}
.tm .kc .df{margin:6px 0 0;font-weight:900;font-size:1.05rem;line-height:1.5;color:#2f6b2a}
.tm .kc .df b{font-size:1.4rem}.tm .kc .df.o{color:#a84800}.tm .kc.done .df{color:#777}
.tm .kc .nt{font-size:.84rem;color:#5f6b64;margin:6px 0 0}
/* 答え */
.tm .an{border:3px solid #5a9a2f;background:#fff;border-radius:26px;padding:0 16px 12px;overflow:hidden;margin:16px 0;text-align:center}
.tm .an p{margin:4px 0;font-size:.9rem}
.tm .an p.big{font-size:1.3rem;font-weight:900;color:#1f4d1c;line-height:1.5;margin:0}
.tm .an p.big.keep{color:#2f6b2a}
.tm .an details.pr{text-align:left;border-top:1px dashed #cfe0c2;margin-top:8px}
.tm .an details.pr summary{justify-content:center}
.tm .an details.pr ul{font-size:.76rem;color:#555;padding-left:1.2em;margin:0}
.tm .re{font-size:1.125rem;line-height:1.6;color:#8a3c00;font-weight:700;text-align:center}
.tm .red{color:#c62828;font-weight:900}
/* 月ごとの表 */
.tm details.mo2{background:#fff;border:2px solid #2f6b2a;border-radius:14px;margin:14px 0;padding:0 10px}
.tm details.mo2 summary{cursor:pointer;font-weight:800;min-height:48px;display:flex;align-items:center;gap:6px;color:#2f6b2a}
.tm table.yt{width:100%;table-layout:fixed;border-collapse:collapse;background:#fff;font-size:11px;color:#222;margin:8px 0}
.tm table.yt col{width:28%}.tm table.yt col.c-m{width:16%}.tm table.yt.one col{width:30%}.tm table.yt.one col.c-t{width:26%}.tm table.yt.one col.c-k{width:14%}
.tm table.yt th,.tm table.yt td{border:1px solid #9aa79f;padding:4px 2px;text-align:right;vertical-align:middle;line-height:1.45;overflow-wrap:anywhere}
.tm table.yt th{background:#e8f3ec;text-align:center}.tm table.yt td.m{text-align:center}
.tm table.yt td.paid{background:#e2efda}
.tm table.yt td.dup{outline:2px dashed #7a6a3a;outline-offset:-4px}
.tm table.yt tr.ft td{background:#fff2cc;font-weight:700}
.tm table.yt tr:not(.ft) + tr.ft td{border-top:3px solid #333}
.tm .nn{font-size:9.5px;color:#5f6b64}
.tm .up{display:inline-block;background:#a34700;color:#fff;border-radius:4px;font-size:9px;font-weight:700;padding:0 3px;white-space:nowrap}
.tm .c-td,.tm .c-sw{display:inline-block;font-weight:700;font-size:9.5px;white-space:nowrap}.tm .c-td{color:#1f4d1c}.tm .c-sw{color:#a34700}
.tm .dt{display:inline-block;font-size:9.5px;font-weight:800;color:#6b5310;background:#fff2cc;border-radius:4px;padding:0 3px;white-space:nowrap}
/* 切り替え先 */
.tm .cos{display:grid;gap:8px}
.tm .co{background:#fff;border:1px solid #d9e2dc;border-radius:12px;padding:10px 12px;font-size:.85rem;overflow-wrap:anywhere}
.tm .co .pl{border-top:2px dashed #9aa79f;padding-top:8px;font-weight:800;margin:8px 0 4px;line-height:1.7;color:#1f4d1c}.tm .co .vsk{display:block;font-size:.78rem;color:#5f6b64}.tm .co .tip{background:#f0f8e4;border:2px solid #cfe0c2;border-radius:10px;padding:8px 10px;margin:6px 0;font-size:.82rem;line-height:1.6}.tm .an p.big{font-size:1.45rem}.tm .an .cn{color:#1b4fa0}.tm .an p.sm{font-size:.84rem;color:#5f6b64}.tm .an .amt{border-top:2px dashed #9aa79f;margin-top:10px;padding-top:10px}.tm .an p.yen{font-size:1.9rem;font-weight:900;color:#c8590a;line-height:1.4}.tm .an p.yen small{font-size:1rem;color:#3a2a14}.tm .an .nb{display:inline-block}.tm .co.on{border:3px solid #2f6b2a}.tm .co .s{display:block;font-size:1.15rem;font-weight:800;color:#c8590a}
.tm .co button[data-co]{min-height:44px;width:100%;border-radius:22px;border:2px solid #2f6b2a;background:#fff;color:#2f6b2a;font-weight:800;margin-top:6px}
@media (max-width:420px){.tm .hh-wrap{padding-left:10px;padding-right:10px}}
@media (min-width:768px){.tm .mg{grid-template-columns:repeat(6,minmax(0,1fr))}.tm .k3,.tm .cos{grid-template-columns:repeat(3,minmax(0,1fr))}.tm .ov .g{font-size:.8rem}.tm table.yt{font-size:13px}.tm .nn,.tm .c-td,.tm .c-sw,.tm .dt,.tm .up{font-size:11px}}
/* 2026-11-30 表の説明の「他社」を「他社が安い」と同じ色に。比較中の会社は青で示す */
.tm .swn{color:#a34700;font-weight:800}
.tm .co.on{border-color:#1b4fa0}.tm .co button[aria-pressed=true]{background:#1b4fa0;border-color:#1b4fa0;color:#fff}
/* 2026-11-30 ラベルのないカードも、横並びのときは見出しの高さをそろえる */
.tm .kc .st.ph{display:none}@media (min-width:768px){.tm .kc .st.ph{display:inline-block;visibility:hidden}}
/* 2026-11-30 帯の下の料金の説明は、狭い画面で折り返す */
.tm .ov .g span.m{white-space:normal}
/* 2026-11-30 切替え先のカードは、ボタンの位置を下でそろえる（比較中は枠が太い分を引く） */
.tm .co{position:relative;padding-bottom:62px}.tm .co button[data-co]{position:absolute;left:12px;right:12px;bottom:10px;width:auto;margin:0}.tm .co.on button[data-co]{left:10px;right:10px;bottom:8px}
/* 2026-11-30 切替え先の差し引き額と加入条件 */
.tm .co .ded{display:block;font-size:.78rem;color:#5f6b64;line-height:1.6;margin-top:4px}
/* 2026-12-01 差し引くものの切り替え（くわしくの結果画面の緑のボタンと同じ見た目） */
.tm .opts{display:flex;gap:8px;margin:6px 0 6px}
.tm .opts label{flex:1 1 0;min-width:0;margin:0;position:relative;display:flex;cursor:pointer}
.tm .opts input{position:absolute;opacity:0;width:1px;height:1px}
.tm .opts span{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:6px 8px;border:2px solid #8dbe38;border-radius:30px;background:#fff;color:#3a2a14;font-weight:800;font-size:14px;line-height:1.35;text-align:center;box-shadow:0 3px 0 #8dbe38}
.tm .opts span::before{content:"\f111";font-family:"Font Awesome 6 Free";font-weight:400;color:#8dbe38;font-size:15px}
.tm .opts input:checked+span{background:linear-gradient(#5cb04a,#2f8a2a);border-color:#1f6b1c;color:#fff;box-shadow:0 3px 0 #1f6b1c}
.tm .opts input:checked+span::before{content:"\f058";font-weight:900;color:#ffe066}
.tm .opts input:focus-visible+span{outline:3px solid #1b4fa0;outline-offset:2px}
.tm .optnote{font-size:.78rem;color:#5f6b64;margin:4px 0 8px;line-height:1.6}
@media (max-width:480px){.tm .opts{gap:5px}.tm .opts span{font-size:11.5px;gap:4px;padding:5px 3px;min-height:46px}.tm .opts span::before{font-size:13px}}
.tm .opts em{font-style:normal}.tm .opts .inc-br{display:none}
@media (max-width:480px){.tm .opts .inc-br{display:inline}}
/* 2026-12-01 説明アイコンは company-new.css の .fm-btn（デザイン規則の第14章）。タグはプラン名の下に出す */
.tm .co>.fx{display:table;margin:4px 0 2px;font-size:.72rem;line-height:1.6}
.tm .co .tip{display:none}
/* 2026-11-30 3つのボタンの説明（モーダルの中身） */
#benefitModal .bn p{font-size:.875rem;line-height:1.65;color:#222;margin:0 0 8px}
#benefitModal .bn h6{font-size:.95rem;font-weight:800;color:#2f6b2a;margin:14px 0 4px;padding-bottom:3px;border-bottom:1px solid #cfe3bd}
#benefitModal .bn .pay{background:#fff7e6;border-radius:8px;padding:8px 10px}
#benefitModal .bn .pay b{display:block;color:#7a4b00}
/* モーダルを、サイト上部の固定ヘッダーより前に出す（長い説明で見出しと×が隠れないように） */
.fm.modal{z-index:100000}
/* 2026-11-30 答えの会社名を前後の文と同じ大きさにする（company-new.css の .cn が効かないようにする） */
.tm .an .cn{font-size:inherit;line-height:inherit;max-width:none;margin:0;padding:0}
/* 2026-11-30 切替え先の順位と会社名を大きくする。1行に入らない名前は、js で入る大きさまで小さくする */
.tm .co>b:first-child{display:inline-block;white-space:nowrap;font-size:1.35rem;line-height:1.5}
