/* マス目・原稿用紙プリント（手本の字：教科書体がない端末は Klee One、英語は Andika） */
@import url('https://fonts.googleapis.com/css2?family=Andika&family=Klee+One:wght@600&display=swap');
.ms-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (max-width: 760px) { .ms-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ms-type { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; align-items: center; text-align: left; padding: 8px 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--sh-sm); transition: transform .1s; }
.ms-type:hover { transform: translate(-1px, -1px); }
.ms-type.on { background: var(--yellow); color: #1d2433; }
.ms-ti { grid-row: 1 / 3; width: 40px; height: 40px; }
.ms-type b { font-size: 14.5px; line-height: 1.25; }
.ms-type small { font-size: 11.5px; color: var(--ink2); line-height: 1.3; }
.ms-type.on small { color: #3b4357; }
.ms-wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .ms-wrap { grid-template-columns: minmax(0, 1fr); } }
.ms-side { display: grid; gap: 12px; min-width: 0; }
.ms-card { display: grid; gap: 10px; padding: 14px; }
.ms-h { font-size: 15.5px; margin: 0; }
.ms-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-sw { display: inline-flex; align-items: center; gap: 5px; border: 2px solid var(--line-soft); border-radius: 99px; padding: 3px 10px 3px 4px; background: var(--card); font-size: 13px; font-weight: 700; }
.ms-sw span { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid var(--line); }
.ms-sw.on { border-color: var(--line); box-shadow: var(--sh-sm); background: var(--bg2); }
.ms-pvcol { position: sticky; top: 74px; min-width: 0; display: grid; gap: 8px; }
@media (max-width: 960px) { .ms-pvcol { position: static; } }
.ms-tb { margin-bottom: 0; }
.ms-info { color: var(--ink2); font-weight: 700; }
.ms-pv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: repeating-linear-gradient(45deg, var(--bg2), var(--bg2) 10px, var(--bg) 10px, var(--bg) 20px); }
.ms-sheet { position: relative; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .2); line-height: 0; }
.ms-sheet:first-child { grid-column: 1 / -1; }
.ms-sheet::after { content: attr(data-n); position: absolute; right: 6px; top: 6px; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 99px; background: #1d2433; color: #fff; font-weight: 800; }
.ms-svg { width: 100%; height: auto; display: block; }
.ms-pg { width: 210mm; height: 296mm; overflow: hidden; }
.ms-pg.land { width: 297mm; height: 209mm; }
.ms-pg svg { display: block; }

/* 長いページで「なめらかスクロール」中に押すとボタンの位置がずれるため、このアプリのページだけ即時スクロールにする */
html { scroll-behavior: auto; }
