/* ヒントで いう プリントメーカー（2026-10-22）。画面の形は もじを よむ／ぶんを よむ にそろえる */
.hm-app{max-width:1180px;margin:0 auto;padding:28px 20px 48px}
.hm-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px 24px;margin-bottom:18px}
.hm-heading .maker-title{margin:0 0 4px}.hm-heading p{margin:0;color:var(--site-muted);font-size:14px}
.hm-heading-actions{display:flex;align-items:center;gap:20px;margin-left:auto}.hm-heading-actions button{width:auto}.hm-heading-actions .kago-add{margin-top:0}
.hm-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}
.hm-panel{position:sticky;top:12px;padding:16px;background:#fff;border:1px solid var(--site-border);border-radius:14px;max-height:calc(100vh - 24px);overflow:auto}
.hm-label{display:block;margin:16px 0 6px;font-size:14px;font-weight:700;color:#51667e}
.hm-label:first-child{margin-top:0}
.hm-why{margin:10px 0 0;padding:8px 10px;border-radius:8px;background:#F3F7F4;color:#3d4a43;font-size:13px;line-height:1.6}
.hm-panel .maker-mode-buttons{display:flex;gap:6px;margin:0}
.hm-panel .maker-mode-buttons button{flex:1;min-width:0;min-height:66px;padding:8px 2px;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}
.hm-panel .maker-mode-buttons button[aria-pressed="true"]{border:2px solid #2E9D5B;padding:7px 1px;background:#edf7f0;color:#2E9D5B}
.hm-panel .maker-mode-buttons .mode-symbol{width:30px;height:30px}
.hm-panel .maker-mode-buttons small{font-size:10.5px;white-space:nowrap}
.hm-picked{margin:0 0 8px;font-size:14px;font-weight:700;color:#243246}
.hm-groups{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-bottom:8px}
.hm-groups-label{font-size:12px;color:#617187;margin-right:2px;width:100%}
.hm-groups button,#hm-random{min-height:32px;padding:0 11px;border:1px solid #c5d1e0;border-radius:999px;background:#fff;font:inherit;font-size:13px;color:#243246;cursor:pointer}
.hm-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}
.hm-choice{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px;border:1px solid #dbe2ed;border-radius:8px;background:#fff;font:inherit;font-size:10.5px;color:#243246;cursor:pointer;min-width:0}
.hm-choice img{width:100%;aspect-ratio:1;object-fit:contain}
.hm-choice span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.hm-choice[aria-pressed="true"]{border:2px solid #2E9D5B;background:#edf7f0;padding:3px 1px}
#hm-reshuffle,#hm-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}
#hm-eval-print{border-color:#2E9D5B;color:#1F6E40;font-weight:700}
#hm-reshuffle[hidden],#hm-eval-print[hidden]{display:none}
#hm-message{font-size:13px;color:#8A3B1B}
.hm-preview{min-width:0}.hm-wrap{width:min(100%,210mm);margin:0 auto 24px}
/* 紙面 A4たて */
.hm-paper{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:12mm 13mm 17mm;display:flex;flex-direction:column;font-family:"BIZ UDGothic",sans-serif}
.hm-paper-heading{flex:none;height:14mm;display:block;background:none;border:0;padding:0;margin:0;max-width:none}
.hm-paper-heading h2{font-family:inherit;font-weight:700;text-align:center;font-size:18pt;line-height:1.45;margin:0}
.hm-pic{display:block;object-fit:contain}
.hm-hints{list-style:none;margin:0;padding:0;font-size:10.5pt;line-height:1.45;color:#3a4652}
.hm-hints li::before{content:"・"}
/* ヒントカード：1つの絵を横1列に（ヒント3つ → 1つ → 絵だけ）。点線で切る */
.hm-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}
.hm-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2mm;padding:2mm 3mm;border-right:0.3mm dashed #b9c3cf;border-bottom:0.3mm dashed #b9c3cf;min-height:0;overflow:hidden}
.hm-card .hm-pic{width:30mm;height:30mm}
.hm-card .hm-pic-big{width:42mm;height:42mm}
.hm-card .hm-hints{align-self:stretch;padding-left:2mm}
/* くらべる：2つずつ並べる（1まいに2くみ） */
.hm-pairs{flex:1;display:flex;flex-direction:column;justify-content:space-evenly}
.hm-pair{display:grid;grid-template-columns:1fr 1fr;gap:10mm;border-bottom:0.3mm dashed #d6dde6;padding-bottom:6mm}
.hm-pair:last-child{border-bottom:0}
.hm-side{display:flex;flex-direction:column;align-items:center;gap:3mm}
.hm-side .hm-pic{width:62mm;height:62mm}
.hm-side .hm-hints{font-size:12pt}
/* たしかめ：4つ並べる（絵だけ） */
.hm-check{flex:1;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:6mm;padding:4mm 0 6mm}
.hm-check-cell{display:flex;align-items:center;justify-content:center;border:0.3mm solid #e0e5ec;border-radius:3mm}
.hm-check-cell .hm-pic{width:78mm;height:78mm}
.hm-empty{margin:30mm 0 0;text-align:center;color:#738091;font-size:12pt}
.hm-paper-footer{display:block;background:transparent;border:0;padding:0;margin:0;max-width:none;width:auto;height:auto;position:absolute;bottom:7mm;left:0;right:0;text-align:center;font-size:8pt;color:#9aa2a9}
.hm-paper-footer .footer-url{margin-left:.3em;font-family:"Zen Kaku Gothic New",system-ui,sans-serif;font-size:.875em;letter-spacing:.03em}
/* 評価用紙 */
.hm-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}
.hm-eval[hidden]{display:none}
.hm-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}
.hm-eval-title small{font-size:12px;font-weight:400;color:#5d6b7c;white-space:pre}
.hm-eval table{width:100%;border-collapse:collapse;font-size:13px}
.hm-eval th{font-size:11px;font-weight:500;color:#6b7785;text-align:left;padding:4px 6px;border-bottom:1px solid #c3cbd4}
.hm-eval td{padding:6px;border-bottom:1px solid #e1e6ec}
.hm-eval td.hm-eval-name{font-weight:700;white-space:nowrap}
.hm-eval td.hm-check-box{text-align:center;font-size:17px;color:#6b7785}

@media(max-width:860px){.hm-layout{grid-template-columns:1fr}.hm-panel{position:static;max-height:none}}
@media(max-width:600px){.hm-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,.hm-heading,.hm-panel,noscript{display:none!important}
 .hm-app,.hm-layout,.hm-preview,#hm-sheets{display:block;max-width:none;width:210mm;margin:0;padding:0}
 .hm-wrap{width:210mm!important;height:297mm!important;margin:0!important}
 .hm-paper{transform:none!important;box-shadow:none!important;break-inside:avoid;page-break-inside:avoid}
 body:not(.hm-print-eval) .hm-eval{display:none!important}
 body.hm-print-eval #hm-sheets{display:none!important}
 body.hm-print-eval .hm-eval{display:block!important;max-width:none;width:210mm;margin:0;padding:14mm;border:0}
}
.hm-cat{grid-column:1/-1;margin:8px 0 0;font-size:12px;font-weight:700;color:#617187}
.hm-age-note{margin:-2px 0 6px;font-size:12px;color:#617187}
