/* この2ページだけを調整。共通style.cssは写しのまま。 */
.mihon-page{font-size:17px;padding-bottom:0}
.mihon-page .site-head{background:var(--paper)}
.mihon-page a:focus-visible,.mihon-page button:focus-visible{outline:3px solid var(--ink);outline-offset:5px}
.mihon-page nav a,.mihon-page .foot-nav a{display:inline-flex;align-items:center;min-height:44px}
.mihon-page main{padding-top:var(--head-h)}
.mihon-page .intro-hero{background:var(--sky);padding:64px 0 54px;border-radius:0 0 60px 0}
.intro-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:44px;align-items:center}
.intro-hero h1{font-family:"Zen Old Mincho",serif;font-size:clamp(32px,4.6vw,64px);line-height:1.4;margin:16px 0 24px}
.intro-hero .audience{font-weight:900;font-size:18px}
.intro-hero figure img{max-height:230px;width:auto;margin:auto}
.intro-hero figcaption{font-size:16px;font-weight:900;text-align:center;margin-top:16px}
.mihon-page .sample-section{padding:70px 0;background:var(--pale)}
.mihon-page h2{font-size:clamp(30px,3.8vw,50px);line-height:1.45;margin-bottom:24px}
.sample-note{font-weight:700;margin:0 0 8px}
.sample-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0}
.mihon-page button{font:inherit;min-height:48px;min-width:100px;padding:8px 18px;border:2px solid var(--ink);border-radius:30px;background:var(--sky);color:var(--ink);font-weight:700;cursor:pointer;box-shadow:0 3px 0 var(--ink)}
.mihon-page button:hover{background:var(--mist)}
.mihon-page button:disabled{cursor:default;background:var(--pale);color:var(--sub);box-shadow:none;border-color:var(--mist)}
/* 件数は紙の見本と同じ、言葉を小さく・数字を大きく。 */
.sample-day{font-size:16px;color:var(--sub);margin-top:24px}
.sample-counts{display:flex;flex-wrap:wrap;align-items:flex-end;gap:20px 28px;padding:12px 0 28px}
.count{display:flex;flex-direction:column;gap:4px;white-space:nowrap}
.count-total{margin-right:36px}
.count-label{font-size:16px;font-weight:500}
.count-value{font-size:16px;line-height:1.3}
.count-value b{font-size:28px;font-weight:900;margin-right:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.demo-table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.45;text-align:left}
.demo-table th{font-size:16px;padding:12px 6px;border-bottom:2px solid var(--mist);white-space:nowrap}
.demo-table td{padding:10px 6px;height:68px;border-bottom:1px solid var(--mist);background:var(--paper)}
.demo-row{transition:opacity .17s,transform .17s}
.demo-row button{font-size:16px;min-width:100px;padding:6px 10px;white-space:nowrap}
.cell-kind,.cell-days,.cell-flag{white-space:nowrap}
.mark{display:inline-block;box-sizing:border-box;min-width:112px;width:112px;padding:3px 6px;border-radius:20px;font-weight:900;text-align:center;white-space:nowrap;font-size:16px}
.mark-late{background:#fae5df;color:#8b2718}
.mark-near{background:#fff0b8;color:#654b00}
.mark-notice{background:#dff1e5;color:#185b33}
.mark-done{background:transparent;color:var(--sub)}
.is-done td{color:var(--sub);opacity:1}
.ledger-extra{display:block;font-size:16px;white-space:normal;margin-top:6px}
.demo-row.leaving{opacity:0;transform:translateY(-8px)}
.sample-result{font-size:17px;line-height:1.65;background:var(--sky);padding:16px 20px;margin:0 0 18px;border-radius:12px;overflow-wrap:anywhere}
.sample-result:empty{display:none}
.sample-footnote{margin-top:28px}
.empty{padding:32px 16px;font-size:20px}
@media(max-width:767px){
 .demo-table,.demo-table tbody{display:block}
 .demo-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .demo-table .demo-row{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:12px 10px;background:var(--paper);border:1px solid var(--mist);border-radius:16px;margin:0 0 16px;padding:18px}
 .demo-table td{display:block;height:auto;min-width:0;padding:0;border:0;background:transparent}
 .cell-flag{grid-column:1;grid-row:1}
 .cell-kind{grid-column:2;grid-row:1;font-size:18px;font-weight:900;white-space:normal;align-self:center}
 .cell-days{grid-column:3;grid-row:1;align-self:center;font-size:16px;text-align:right}
 .cell-due{grid-column:1/-1;grid-row:2;font-size:16px}
 .cell-due:before{content:'期限 ';}
 .demo-table .cell-customer,.demo-table .cell-property,.demo-table .cell-number,.demo-table .cell-staff{display:inline;font-size:16px}
 .cell-customer{grid-column:1/-1;grid-row:3}
 .cell-property,.cell-number,.cell-staff{grid-column:1/-1}
 .cell-action{grid-column:1/-1}
 .cell-action button{width:100%;height:48px}
 .count-total{margin-right:24px}
}
.mihon-page .explanation{padding:72px 0}
.explanation article{display:grid;grid-template-columns:64px minmax(0,1fr);gap:28px;padding:36px 0;border-top:1px solid var(--mist)}
.explanation .step-number{font-family:"Zen Old Mincho",serif;color:var(--sub);font-size:44px;line-height:1.2}
.explanation h3{font-size:26px;line-height:1.5;margin-bottom:14px}
.explanation p{max-width:40em}
.closing{padding:48px 0;background:var(--sky);border-radius:48px 0 0 0}
.closing p{max-width:40em}
.mihon-page .sec-soudan{padding:70px 0}
.mihon-page .soudan-box{gap:32px}
.mihon-page .soudan-box .btn::after{display:none;animation:none}
.mihon-page .soudan-box img{width:160px;max-width:100%}
.soudan-still{width:160px;max-width:30%;flex:none}
.mihon-page .soudan-box .btn{background:var(--sky);animation:none;margin:24px 0 16px;font-size:18px;padding:12px 24px}
.mihon-page .soudan-box .btn:hover{background:var(--mist)}
.contact-links{display:flex;flex-wrap:wrap;gap:6px 24px;overflow-wrap:anywhere}
.contact-links a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;font-size:17px}
.mihon-page .site-foot p{font-size:16px}

@media(max-width:1100px){.mihon-page .head-row{padding-inline:16px}.mihon-page nav{gap:14px}}
@media(max-width:760px){.mihon-page .wrap{width:calc(100% - 32px)}.intro-layout{grid-template-columns:1fr;gap:24px}.intro-hero figure{display:flex;gap:18px;align-items:center}.intro-hero figure img{height:120px;width:auto;margin:0}.intro-hero figcaption{text-align:left}.mihon-page .intro-hero{padding:36px 0}.mihon-page .sample-section,.mihon-page .explanation{padding:44px 0}.explanation article{grid-template-columns:40px minmax(0,1fr);gap:14px}.explanation .step-number{font-size:32px}.explanation h3{font-size:23px}.mihon-page .soudan-box{display:block}.soudan-still{height:120px;width:auto;max-width:100%;margin-bottom:20px}.mihon-page .soudan-box .btn{width:100%}.sample-tools button{flex:1}.mihon-page nav{gap:8px}.mihon-page .logo{font-size:24px}}
@media(prefers-reduced-motion:reduce){.mihon-page .demo-row{transition:none}.mihon-page *{scroll-behavior:auto;animation:none!important}}
@media(max-width:760px){.mihon-page nav a:not(.nav-cta){display:none}.mihon-page .soudan-box img{width:auto;height:120px;max-width:100%}.mihon-page .nav-cta{font-size:16px}}

.intro-hero figcaption{position:relative;background:var(--paper);border:2px solid var(--ink);border-radius:24px;padding:14px 18px;line-height:1.6}
.intro-hero figcaption:before{content:"";position:absolute;left:28px;top:-10px;width:16px;height:16px;background:var(--paper);border-left:2px solid var(--ink);border-top:2px solid var(--ink);transform:rotate(45deg)}
@media(max-width:760px){.intro-hero figure img{height:110px;max-height:none;max-width:none;flex:none}.intro-hero figure{gap:20px}.intro-hero figcaption{margin-top:0;font-size:16px}.intro-hero figcaption:before{left:-10px;top:calc(50% - 8px);transform:rotate(-45deg)}}

.demo-table .cell-details{display:none}
@media(max-width:767px){
 .demo-table .cell-customer,.demo-table .cell-property,.demo-table .cell-number,.demo-table .cell-staff{display:none}
 .demo-table .cell-details{display:block;grid-column:1/-1;grid-row:3;font-size:16px;overflow-wrap:anywhere}
 .demo-table .cell-action{grid-row:4}
}
/* 狭い横画面でも表を枠内に収め、長いナンバー・日付は折り返す。 */
@media(min-width:900px){
 .demo-table{table-layout:fixed}
 .demo-table th:first-child{width:124px}
 .demo-table th:last-child{width:112px}
 .demo-table td{overflow-wrap:anywhere}
 .demo-table:has(.cell-number) th:nth-child(5){width:116px}
 .demo-table:has(.cell-number) th:nth-child(7){width:80px}
 .demo-table:has(.cell-number) th:nth-child(8){width:56px}
 .demo-table:not(:has(.cell-number)) th:nth-child(4){width:116px}
 .demo-table:not(:has(.cell-number)) th:nth-child(6){width:80px}
 .demo-table:not(:has(.cell-number)) th:nth-child(7){width:56px}
}


/* 採点1回目・監査の指定に合わせた調整。共通style.cssは変更しない。 */
.title-marker,.sample-prompt span{background:linear-gradient(transparent 64%,var(--yama) 64%)}
.catch-nowrap{white-space:nowrap}
.sample-prompt{font-size:22px;font-weight:900;margin:0 0 16px}
.mihon-page [data-done],.mihon-page .soudan-box .btn{background:#f2b632;color:var(--ink)}
.mihon-page [data-done]:hover,.mihon-page .soudan-box .btn:hover{background:var(--yama2)}
.mihon-page [data-done]:disabled{background:var(--pale);color:var(--sub)}
.sample-tools button{background:#fff}
.sample-tools button:hover{background:var(--paper)}
.sample-counts{align-items:flex-start;gap:20px 28px;padding:12px 0 24px}
.count-total{background:#fff;border-radius:16px;padding:10px 20px;margin:0 12px 0 0}
.count-value b{font-size:44px;display:inline-block;border-radius:8px}
.count-total .count-value b{font-size:56px}
.count-flash{animation:count-flash .6s}
@keyframes count-flash{0%,85%{background:#f2b632}100%{background:transparent}}
.sample-toast{position:fixed;z-index:80;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:min(640px,calc(100% - 32px));border-radius:16px;padding:12px 18px;background:var(--ink);color:#fff;font-size:16px;line-height:1.5;box-shadow:0 4px 16px #141d3333;pointer-events:none;visibility:hidden;margin:0}
.sample-toast.show{visibility:visible}
.intro-hero figure{position:relative;display:flex;align-items:flex-start;justify-content:flex-end;gap:16px}
.intro-hero figure img{margin:0;height:230px;max-width:none}
.intro-hero figcaption{position:absolute;right:85%;top:0;margin:0;width:max-content;text-align:left;font-size:16px;z-index:1}
.intro-hero figcaption:before{left:auto;right:-10px;top:36px;transform:rotate(135deg)}
.intro-layout{grid-template-columns:minmax(0,1fr) 380px;gap:32px}
.demo-table .cell-notice{font-size:16px;white-space:nowrap}
@media(min-width:768px) and (max-width:1100px){
 .mihon-page .head-row{padding-inline:16px}
 .intro-layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px}
 .intro-hero figure img{height:190px}
 .intro-hero figcaption{font-size:16px;padding:10px;right:55%;top:0}
 .sample-counts{flex-wrap:nowrap;gap:12px}
 .count{white-space:normal;flex:1}
 .count-total{margin-right:28px;padding:8px 12px;flex:none}
 .count-label{font-size:16px}
}
@media(min-width:768px) and (max-width:899px){
 .demo-table{table-layout:fixed}
 .demo-table .cell-number,.demo-table .head-number,.demo-table .cell-staff,.demo-table .head-staff,.demo-table:not(:has(.cell-number)) .cell-property,.demo-table:not(:has(.cell-number)) .head-property{display:none}
 .demo-table th,.demo-table td{padding:10px 4px;overflow-wrap:anywhere;white-space:normal}
 .demo-table .head-flag{width:120px}.demo-table .head-action{width:108px}
 .demo-table .head-kind{width:100px}.demo-table .head-days{width:70px}
 .demo-row button{min-width:100px;padding:6px 8px}
}
@media(min-width:900px){.demo-table:has(.cell-notice) .head-notice{width:116px}}
@media(max-width:767px){
 .mihon-page .head-row{padding-inline:16px}
 .intro-layout{grid-template-columns:1fr;gap:16px}
 .intro-hero figure{justify-content:flex-start;align-items:center;gap:12px}
 .intro-hero figure img{height:110px}
 .intro-hero figcaption{position:relative;right:auto;top:auto;width:auto;padding:10px;font-size:16px}
 .intro-hero figcaption:before{left:-10px;right:auto;top:calc(50% - 8px);transform:rotate(-45deg)}
 .mihon-page .intro-hero{padding:24px 0}
 .intro-hero h1{margin:12px 0 16px}
 .sample-counts{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px 18px}
 .count-total{flex-basis:100%;margin:0 0 24px;padding:8px 16px}
 .count-value b{font-size:36px}.count-total .count-value b{font-size:56px}
 .count{min-width:0;white-space:normal}
 .count-label{font-size:16px}
 .sample-prompt{font-size:20px}
 .mihon-page .closing h2{font-size:27px}
 .demo-table .cell-notice{display:none}
 .sample-day{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.count-flash{animation:none}.sample-toast.show{visibility:visible}}

/* 吹き出しと画像が文章の列に重ならない幅を確保。 */
@media(min-width:1101px){.intro-layout{grid-template-columns:minmax(0,1fr) 440px}.intro-hero figure img{height:190px}.intro-hero figcaption{right:190px}}
@media(min-width:768px) and (max-width:1100px){.intro-hero figure img{height:120px}.intro-hero figcaption{right:130px;width:180px}.intro-hero figcaption .catch-nowrap{white-space:normal}}

/* 吹き出しと画像が文章の列に重ならない幅を確保。 */
@media(min-width:1101px){.intro-layout{grid-template-columns:minmax(0,1fr) 440px}.intro-hero figure img{height:190px}.intro-hero figcaption{right:190px}}
@media(min-width:768px) and (max-width:1100px){.intro-hero figure img{height:120px}.intro-hero figcaption{right:130px;width:180px}.intro-hero figcaption .catch-nowrap{white-space:normal}}

.mihon-page [data-done]{font-weight:900}
@media(min-width:768px) and (max-width:1100px){.intro-layout{grid-template-columns:minmax(0,1fr) 350px}.intro-hero figure img{height:110px}.intro-hero figcaption{right:120px;width:224px}.intro-hero figcaption .catch-nowrap{white-space:nowrap}}

/* 2026-10-07 マイキー: 表の幅(768px以上)では、あと何日・期限・種類を折らない */

/* 採点2回目対応。列幅はpadding込み。左右6pxで列間12px。 */
.mobile-break{display:none}.catch-nowrap,.detail-part,.count-label{white-space:nowrap}
.sample-counts{display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px 28px}.count-breakdown{display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px 28px;min-width:0;flex:1;padding-top:10px}.count-breakdown .count{flex:0 0 auto;white-space:nowrap}.count-total{flex:0 0 auto;margin:0;padding:10px 20px}
.mihon-page .sample-section>.wrap{width:calc(100% - 32px);max-width:1200px}
.demo-table th,.demo-table td{padding-inline:6px;box-sizing:border-box}
.ledger-table .is-future [data-done]{background:#fff}.ledger-table .is-future [data-done]:hover{background:var(--paper)}
@media(min-width:768px){
.demo-table{table-layout:fixed}.demo-table .head-flag{width:124px}.demo-table .head-action{width:112px}.demo-table .head-kind{width:116px}.demo-table .head-due{width:150px}.demo-table .head-days{width:100px}.demo-table .head-staff{width:76px}.demo-table .head-customer{width:100px}.demo-table .head-property{width:80px}.demo-table .head-number{width:160px}.demo-table:not(:has(.cell-number)) .head-property{width:120px}.demo-table .cell-staff{white-space:nowrap}.demo-table.ledger-table .head-notice{width:112px}.ledger-table .cell-notice{white-space:nowrap}
}
@media(min-width:1024px) and (max-width:1199px){.ledger-table .head-property,.ledger-table .cell-property,.ledger-table .head-number,.ledger-table .cell-number,.ledger-table .head-staff,.ledger-table .cell-staff{display:none}}
@media(min-width:768px) and (max-width:899px){.demo-table:not(.ledger-table) .head-property,.demo-table:not(.ledger-table) .cell-property{display:none}}
@media(min-width:768px) and (max-width:1099px){.intro-layout{grid-template-columns:minmax(0,1fr) 350px}.intro-hero figure img{height:150px;max-height:none;flex:none}.intro-hero figcaption{right:150px;width:224px;box-sizing:border-box;padding:10px}.intro-hero figcaption .catch-nowrap{white-space:nowrap}}
@media(max-width:1023px){
.ledger-table,.ledger-table tbody{display:block}.ledger-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.demo-table.ledger-table .demo-row{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:12px;background:var(--paper);border:1px solid var(--mist);border-radius:16px;margin:0 0 16px;padding:18px}
.demo-table.ledger-table td{display:block;height:auto;min-width:0;padding:0;border:0;background:transparent;width:auto;overflow-wrap:normal}
.ledger-table .cell-flag{grid-column:1;grid-row:1}.ledger-table .cell-kind{grid-column:2;grid-row:1;white-space:normal;font-weight:900}.ledger-table .cell-days{grid-column:3;grid-row:1;text-align:right}.ledger-table .cell-due{grid-column:1/-1;grid-row:2}.ledger-table .cell-due:before{content:'期限 '}
.demo-table.ledger-table .cell-customer,.demo-table.ledger-table .cell-property,.demo-table.ledger-table .cell-number,.demo-table.ledger-table .cell-staff,.demo-table.ledger-table .cell-notice{display:none}.demo-table.ledger-table .cell-details{display:block;grid-column:1/-1;grid-row:3;overflow-wrap:normal}.ledger-table .cell-action{grid-column:1/-1;grid-row:4}.ledger-table .cell-action button{width:100%;height:48px}
}
@media(max-width:767px){.mobile-break{display:block}.mihon-page .intro-hero{padding-bottom:24px}.mihon-page .sample-section{padding-top:24px}.sample-counts{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:start;padding-bottom:16px}.count-total{box-sizing:border-box;width:120px;padding:8px 12px;margin:0;white-space:nowrap}.count-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px;padding-top:8px}.count-breakdown .count{min-width:0}.count-breakdown .count:last-child{grid-column:1/-1}.count-value b{font-size:44px}.count-total .count-value b{font-size:56px}.demo-table .demo-row{column-gap:12px}.demo-table td{padding-inline:0}.demo-table .cell-details{overflow-wrap:normal}.explanation h2{font-size:26px}}

@media(min-width:768px){.demo-table .cell-days,.demo-table .cell-due,.demo-table .cell-kind,.demo-table .head-days{white-space:nowrap}}

/* 採点3回目の1〜5・小さな所。計算と共通style.cssは変更しない。 */
.date-nowrap{display:inline-block;white-space:nowrap;overflow-wrap:normal}
.ledger-extra-label{display:block;white-space:nowrap}
.detail-notice{display:block;white-space:nowrap}
.sample-prompt.ledger-prompt{font-size:20px;font-weight:900;background:none}
.count-month{padding-top:10px}
@media(min-width:1024px){.demo-table .head-due{width:200px}}
@media(min-width:768px) and (max-width:1023px){
 .demo-table.ledger-table .cell-action{text-align:right;min-height:48px}
 .ledger-table .cell-action button{width:200px}
 .ledger-table .action-done{display:none}
 .intro-layout{grid-template-columns:minmax(0,1fr) 400px}
 .intro-hero figcaption{width:250px;white-space:nowrap}
}
@media(max-width:767px){
 .count{gap:16px}
 [data-mihon="kuruma"] .sample-counts{grid-template-columns:120px minmax(0,1fr);row-gap:24px}
 [data-mihon="kuruma"] .count-breakdown{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:0}
 [data-mihon="kuruma"] .count-breakdown .count:last-child{grid-column:auto}
 [data-mihon="kuruma"] .count-breakdown .count-value b{font-size:32px}
 [data-mihon="kuruma"] .count-month{grid-column:2;grid-row:1;padding-top:8px}
 [data-mihon="kuruma"] .count-month .count-label{white-space:normal}
}

/* 2026-10-07 マイキー: iPad縦(768〜1023px)で題が3行に割れないように */
@media(min-width:768px) and (max-width:1023px){.intro-hero h1{font-size:32px;word-break:keep-all;overflow-wrap:normal}}

/* 2026-10-07 マイキー(採点4回目の1・2): 車の「今月の車検」を内訳のすぐ右へ・iPad縦で題を割らない */
@media(min-width:768px){
 [data-mihon="kuruma"] .sample-counts{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start}
 [data-mihon="kuruma"] .count-breakdown{flex:0 0 auto;width:auto}
 [data-mihon="kuruma"] .count-month{flex:0 0 auto;margin-left:48px;width:auto}
}
@media(min-width:768px) and (max-width:1023px){
 .intro-layout{grid-template-columns:minmax(0,1fr) 380px}
 .intro-hero h1{font-size:30px;white-space:nowrap}
 .intro-hero h1 .title-marker{display:table;white-space:nowrap}
}
