/* もじを よむ プリントメーカー（2026-10-22）。ヘッダー・見出し・ボタン・背景は paired-sites / site-theme の共通部品。
   画面の形は ぶんを よむ プリントメーカー（sentence-reading-maker.css）にそろえる */
.mr-app{max-width:1180px;margin:0 auto;padding:28px 20px 48px}
.mr-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px 24px;margin-bottom:18px}
.mr-heading .maker-title{margin:0 0 4px}.mr-heading p{margin:0;color:var(--site-muted);font-size:14px}
.mr-heading-actions{display:flex;align-items:center;gap:20px;margin-left:auto}.mr-heading-actions button{width:auto}.mr-heading-actions .kago-add{margin-top:0}
.mr-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}
.mr-panel{position:sticky;top:12px;padding:16px;background:#fff;border:1px solid var(--site-border);border-radius:14px}
.mr-stage-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.mr-stage-head label{font-size:14px;font-weight:700;color:#51667e}.mr-stage-head output{font-size:15px;font-weight:700;color:#1F6E40}
.mr-track{padding-top:6px}
.mr-single .mr-track{display:none}
.mr-why{margin:10px 0 0;padding:8px 10px;border-radius:8px;background:#F3F7F4;color:#3d4a43;font-size:13px;line-height:1.6}
.mr-label{display:block;margin:16px 0 6px;font-size:14px;font-weight:700;color:#51667e}
.mr-inputs{display:flex;gap:8px}
.mr-input{flex:1;min-width:0;height:54px;box-sizing:border-box;border:1px solid #c5d1e0;border-radius:8px;background:#fff;text-align:center;font-family:"BIZ UDGothic",sans-serif;font-size:28px;color:#243246}
.mr-input:placeholder-shown{background:#fffbe6;border:2px dashed #e0c25a}
.mr-rows{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:10px}
.mr-rows-label{font-size:12px;color:#617187;margin-right:2px}
.mr-rows button{width:34px;height:34px;border:1px solid #c5d1e0;border-radius:999px;background:#fff;font:inherit;font-size:15px;color:#243246;cursor:pointer}
.mr-rows button:hover{border-color:#2E9D5B}
.mr-panel .maker-mode-buttons{display:flex;gap:8px;margin:0}
.mr-panel .maker-mode-buttons button{flex:1;min-width:0;min-height:70px;padding:8px 3px;border:1px solid #c5d1e0;border-radius:8px;background:#fff;color:inherit;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.mr-panel .maker-mode-buttons button[aria-pressed="true"]{border:2px solid #2E9D5B;padding:7px 2px;background:#edf7f0;color:#2E9D5B}
.mr-panel .maker-mode-buttons .mode-symbol{width:32px;height:32px}
.mr-panel .maker-mode-buttons small{font-size:11px;white-space:nowrap}
.mr-kufuu-note{margin:8px 0 0;font-size:12px;color:#617187;line-height:1.6}
#mr-reshuffle,#mr-eval-print{width:100%;min-height:40px;padding:0 14px;margin-top:12px;border:1px solid #c5d1e0;border-radius:999px;background:#fff;font:inherit;font-size:14px;color:var(--site-ink);cursor:pointer}
#mr-reshuffle{margin-top:16px}
#mr-eval-print{border-color:#2E9D5B;color:#1F6E40;font-weight:700}
#mr-eval-print[hidden]{display:none}
.mr-spec{font-size:13px;color:var(--site-muted)}#mr-message{font-size:13px;color:#8A3B1B}
.mr-preview{min-width:0}.mr-wrap{width:min(100%,210mm);margin:0 auto 24px}
/* 紙面 A4たて */
.mr-paper{--mr-font:"BIZ UDGothic",sans-serif;position:relative;transform-origin:top left;background:#fff;color:#222;box-shadow:0 8px 24px rgba(60,48,30,.1);overflow:hidden;box-sizing:border-box;width:210mm;height:297mm;padding:13mm 14mm 18mm;display:flex;flex-direction:column;font-family:"BIZ UDGothic",sans-serif}
.mr-kyokasho .mr-paper{--mr-font:"MR Kyokasho","BIZ UDGothic",sans-serif}
.mr-paper-heading{flex:none;height:16mm;display:block;background:none;border:0;padding:0;margin:0;max-width:none}
.mr-paper-heading h2{font-family:var(--mr-font);font-weight:400;font-synthesis:none;text-align:center;font-size:20pt;line-height:1.45;margin:0}
.mr-row{flex:1;display:grid;grid-template-columns:repeat(var(--n,4),1fr);align-items:start;border-top:0.3mm dashed #d6dde6;padding-top:5mm}
.mr-row:first-of-type{border-top:0}
.mr-cell{display:flex;flex-direction:column;align-items:center;gap:2mm}
.mr-letter{font-family:var(--mr-font);font-weight:400;font-synthesis:none;font-size:72pt;line-height:1;color:#222}
.mr-level-2 .mr-letter{font-size:80pt;margin-top:4mm}
.mr-cue{display:flex;flex-direction:column;align-items:center}
.mr-pic{width:30mm;height:30mm;object-fit:contain}
.mr-pic-small{width:15mm;height:15mm;opacity:.45}
.mr-say{margin:0;font-size:12pt;color:#7a8592;white-space:nowrap}
.mr-word{margin:0;font-size:11pt;line-height:1.5;color:#7a8592;white-space:nowrap}
.mr-adult{flex:none;margin:0 0 2mm;font-size:9.5pt;color:#7a8592;text-align:center}
.mr-empty{margin:30mm 0 0;text-align:center;color:#738091;font-size:12pt}
.mr-paper-footer{display:block;background:transparent;border:0;padding:0;margin:0;max-width:none;width:auto;height:auto;position:absolute;bottom:8mm;left:0;right:0;text-align:center;font-size:8pt;color:#9aa2a9}
.mr-paper-footer .footer-url{margin-left:.3em;font-family:"Zen Kaku Gothic New",system-ui,sans-serif;font-size:.875em;letter-spacing:.03em}
/* 評価用紙（画面では見本として下に出す。印刷は「評価用紙を印刷する」のときだけ） */
.mr-eval{max-width:210mm;margin:0 auto 24px;padding:20px 26px;box-sizing:border-box;background:#fff;border:1px solid var(--site-border);color:#33404f;font-family:"BIZ UDGothic",sans-serif}
.mr-eval[hidden]{display:none}
.mr-eval-title{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0 0 10px;padding-bottom:6px;border-bottom:2px solid #33404f;font-size:16px}
.mr-eval-title small{font-size:12px;font-weight:400;color:#5d6b7c;white-space:pre}
.mr-eval table{width:100%;border-collapse:collapse;font-size:13px}
.mr-eval th{font-size:11px;font-weight:500;color:#6b7785;text-align:left;padding:4px 6px;border-bottom:1px solid #c3cbd4}
.mr-eval td{padding:6px;border-bottom:1px solid #e1e6ec}
.mr-eval td.mr-eval-char{width:3em;font-size:18px;font-weight:700}
.mr-eval td.mr-check{width:5.5em;text-align:center;font-size:17px;color:#6b7785}

@media(max-width:860px){.mr-layout{grid-template-columns:1fr}.mr-panel{position:static}}
@media(max-width:600px){.mr-app{padding:18px 12px 32px}}
@page{size:A4 portrait;margin:0}
@media print{
 html,body{margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .pair-header,.pair-footer,.mr-heading,.mr-panel,noscript{display:none!important}
 .mr-app,.mr-layout,.mr-preview,#mr-sheets{display:block;max-width:none;width:210mm;margin:0;padding:0}
 .mr-wrap{width:210mm!important;height:297mm!important;margin:0!important}
 .mr-paper{transform:none!important;box-shadow:none!important;break-inside:avoid;page-break-inside:avoid}
 body:not(.mr-print-eval) .mr-eval{display:none!important}
 body.mr-print-eval #mr-sheets{display:none!important}
 body.mr-print-eval .mr-eval{display:block!important;max-width:none;width:210mm;margin:0;padding:14mm;border:0}
}
/* もじカード（切って使う文字チップ。1つの字を横1列に：たっぷり → すこし → 字だけ。2026-10-22） */
#mr-reshuffle[hidden]{display:none}
.mr-cards{flex:1;display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr;border-left:0.3mm dashed #b9c3cf;border-top:0.3mm dashed #b9c3cf;margin-bottom:2mm}
.mr-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2mm;border-right:0.3mm dashed #b9c3cf;border-bottom:0.3mm dashed #b9c3cf;min-height:0;overflow:hidden}
.mr-card .mr-letter{font-size:66pt}
.mr-card.mr-level-2 .mr-letter{font-size:80pt;margin-top:0}
.mr-card .mr-pic{width:24mm;height:24mm}
.mr-card .mr-pic-small{width:13mm;height:13mm}
.mr-card .mr-word{font-size:10pt;line-height:1.35}
/* 見本が横にはみ出さないように（2026-10-22。1列のとき、列の幅を中身に合わせて広げない） */
@media(max-width:860px){.mr-layout{grid-template-columns:minmax(0,1fr)}.mr-preview,.mr-panel{min-width:0}}
@media(max-width:700px){.mr-wrap{max-width:calc((100svh - 290px) * .707);margin-inline:auto}}
