/* IchigoCocktail: イチゴBASICマガジン（白い紙に黒い文字。昔のパソコン雑誌の誌面風） */
body.mg-open { overflow: hidden; }
.mg { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #e9e7e1; color: #111; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; }
.mg[hidden] { display: none; }
.mg button { font: inherit; color: #111; cursor: pointer; }
.mg-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #fff; border-bottom: 2px solid #111; font-size: 13px; }
.mg-bar > button, .mg-nav button { background: #fff; border: 1.5px solid #111; border-radius: 0; padding: 4px 10px; font-weight: 700; }
.mg-bar > button:hover, .mg-nav button:hover:not(:disabled) { background: #111; color: #fff; }
.mg-nav button:disabled { opacity: .3; cursor: default; }
.mg-name { font-weight: 900; letter-spacing: .04em; }
.mg-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mg-where { min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.mg-scroll { flex: 1 1 auto; overflow: auto; padding: 22px 14px 40px; }
.mg-sheet { max-width: 1080px; margin: 0 auto; background: #fff; box-shadow: 0 1px 0 #c9c5bb, 0 10px 30px rgba(0, 0, 0, .12); padding: 34px 40px 18px; }
.mg :focus-visible { outline: 2px solid #e2364a; outline-offset: 2px; }

/* ---- 記事（本文は明朝、見出しは枠囲み、写真はブラウン管） ---- */
.mg-cols { column-count: 2; column-gap: 30px; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; font-size: 14px; line-height: 1.85; }
.mg-cols p { margin: 0; text-indent: 1em; text-align: justify; }
.mg-title { break-inside: avoid; margin-bottom: 16px; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-machine { margin: 0 0 14px; text-align: center !important; text-indent: 0 !important; font-weight: 900; font-size: 15px; letter-spacing: .08em; }
.mg-tbox { display: flex; align-items: center; gap: 10px; border: 2.5px solid #111; box-shadow: 4px 4px 0 #111; padding: 8px 12px; min-height: 96px; }
.mg-tbox-ill { flex: 0 0 104px; }
.mg-tbox-ill svg { display: block; width: 100%; height: auto; }
.mg-tbox h2 { flex: 1 1 auto; margin: 0; text-align: center; font-size: 34px; line-height: 1.15; font-weight: 900; letter-spacing: .06em; }
.mg-sub { margin: 10px 0 0; font-weight: 700; font-size: 13px; text-indent: 0 !important; text-align: center !important; }
.mg-by { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; text-indent: 0 !important; font-size: 15px; font-weight: 700; letter-spacing: .2em; }
.mg-by::before, .mg-by::after { content: ""; flex: 1 1 auto; border-top: 1.5px solid #111; }
.mg-kind { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 0; text-indent: 0 !important; font-size: 11px; }
.mg-memline { display: flex; align-items: center; gap: 6px; margin: 0; text-indent: 0 !important; font: 700 11px/1.4 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-kind span:only-child { margin-left: auto; }
.mg-h { clear: both; break-after: avoid; break-inside: avoid; margin: 1.2em 0 .6em; padding: 3px 0; border: 1.5px solid #111; text-align: center; font: 900 14px/1.5 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; letter-spacing: .3em; }
.mg-shot { break-inside: avoid; margin: 0 0 14px; }
.mg-crt { position: relative; display: block; width: 100%; border: 0; cursor: pointer; background: #111; border-radius: 22px; padding: 14px 18px; }
.mg-play { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: #e2364a; color: #fff; font: 900 14px/1 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; padding: 7px 14px; border-radius: 999px; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.mg-crt:hover .mg-play, .mg-crt:focus-visible .mg-play { opacity: 1; }
@media (hover: none) { .mg-play { opacity: .9; } }
.mg-crt img { display: block; width: 100%; image-rendering: pixelated; border-radius: 10px; }
.mg figcaption { font: 700 11px/1.5 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; margin-top: 4px; }
.mg-vars { float: right; width: 56%; margin: 4px 0 8px 12px; }
.mg-vars table, .mg-keys { border-collapse: collapse; width: 100%; font-size: 12px; line-height: 1.45; }
.mg-vars th, .mg-vars td, .mg-keys th, .mg-keys td { border: 1px solid #111; padding: 3px 6px; text-align: left; vertical-align: top; }
.mg-vars th { width: 2.2em; text-align: center; font-family: "IchigoJam Font", monospace; }
.mg-vars .mg-v { width: 3.5em; text-align: right; font-family: "IchigoJam Font", monospace; }
.mg-vars figcaption, .mg-list figcaption { margin: 0 0 3px; }
.mg-keys { width: auto; margin: 4px 0 8px; }
.mg-keys th { padding: 4px 10px; }
.mg-keys kbd { display: inline-block; min-width: 2.2em; padding: 1px 6px; border: 1.5px solid #111; border-radius: 4px; box-shadow: 0 2px 0 #111; font: 700 12px/1.4 sans-serif; text-align: center; }
.mg-cols p.mg-line { text-indent: 0; font-size: 13px; line-height: 1.65; margin-bottom: 3px; }
.mg-line b { font: 400 12px/1 "IchigoJam Font", monospace; margin-right: .6em; }
.mg-list { clear: both; margin: 18px 0 6px; }
.mg-list figcaption { display: flex; justify-content: space-between; align-items: baseline; letter-spacing: .2em; }
.mg-list .mg-bytes { letter-spacing: 0; font-weight: 700; }
.mg-list pre { margin: 0; padding: 8px 10px; border-top: 1.5px solid #111; border-bottom: 1.5px solid #111; font: 11px/1.55 "IchigoJam Font", monospace; white-space: pre-wrap; word-break: break-all; color: #222; }
.mg-empty { color: #777; text-indent: 0 !important; }

/* 記事を書く */
.mg-edit-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 18px; padding-top: 10px; border-top: 1px dashed #111; font-size: 13px; }
.mg-edit-bar button { background: #e2364a; color: #fff !important; border: 0; padding: 6px 14px; font-weight: 700; }
.mg-edit-bar label { display: flex; gap: 6px; align-items: center; }
.mg-ed { outline: 1px dashed #e2364a; outline-offset: 2px; min-height: 1.8em; white-space: pre-wrap; }
.mg-ed:focus { outline: 2px solid #e2364a; background: #fff6f7; }
.mg-ed:empty::before, [data-var]:empty::before { content: attr(data-ph); color: #b3b3b3; }
div.mg-ed { text-indent: 1em; text-align: justify; }
[data-var] { outline: 1px dashed #e2364a; }

/* ページの下：OF コーナー（1 行）とページ番号 */
.mg-foot { display: flex; align-items: flex-end; gap: 18px; margin-top: 22px; padding-top: 6px; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
.mg-foot.odd { flex-direction: row; }
.mg-foot:not(.odd) { flex-direction: row-reverse; }
.mg-of { flex: 1 1 auto; font-size: 11.5px; line-height: 1.5; }
.mg-pno { font: 900 26px/1 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }

/* ---- 表紙 ---- */
.mg-cover { cursor: pointer; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; display: flex; flex-direction: column; gap: 8px; }
.mg-cv-head { display: flex; gap: 14px; align-items: stretch; }
.mg-cv-logo { flex: 1 1 auto; }
.mg-cv-logo h1 { margin: 0; line-height: 0; }
.mg-cv-logo h1 img { display: block; width: 100%; max-width: 640px; height: auto; mix-blend-mode: multiply; }
.mg-cv-side { flex: 0 0 170px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 6px; }
.mg-cv-price { grid-column: 1 / 3; text-align: right; font-weight: 700; font-size: 13px; }
.mg-cv-price b { font-size: 22px; margin-left: 4px; }
.mg-cv-month { display: grid; place-items: center; align-content: center; background: #ffd23d; border: 2.5px solid #111; font-size: 52px; font-weight: 900; line-height: 1; }
.mg-cv-month small { font-size: 11px; letter-spacing: .1em; }
.mg-cv-mascot { display: grid; place-items: center; background: #111; border: 2.5px solid #111; }
.mg-cv-ichigo { width: 78%; height: auto; }
.mg-cv-band { margin: 0; background: #e2364a; color: #fff; border: 2.5px solid #111; text-align: center; font-size: 30px; font-weight: 900; padding: 4px 10px; letter-spacing: .04em; }
.mg-cv-names { display: flex; flex-wrap: wrap; gap: 4px; }
.mg-cv-names span { background: #2a4fd6; color: #fff; padding: 1px 8px; font-size: 13px; font-weight: 700; }
.mg-cv-names span:nth-child(3n+2) { background: #1d9a50; }
.mg-cv-names span:nth-child(3n) { background: #111; }
.mg-cv-mid { border: 2.5px solid #111; padding: 6px 12px; background: #f4ef6a; }
/* 「ソフト○本一挙掲載」の帯・特集の枠・命令の枠はすき間なくつなげる（境目の線は 1 本） */
.mg-cv-band + .mg-cv-mid, .mg-cv-mid + .mg-cv-prog { margin-top: -8px; border-top: 0; }
.mg-cv-feat { margin: 0; font-size: 16px; font-weight: 900; }
.mg-cv-feat em { font-style: normal; background: #111; color: #f4ef6a; font-size: 12px; padding: 2px 8px; margin-right: 10px; vertical-align: middle; }
.mg-cv-feat2 { margin: 2px 0 0; font-size: 13px; font-weight: 700; }
.mg-cv-shots { position: absolute; top: 22px; right: 22px; width: calc((56% - 28px) * 2 / 3 + 14px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; z-index: 1; }
.mg-cv-shot:nth-child(5) { grid-column: 2; grid-row: 3; }
.mg-cv-shot:nth-child(6) { grid-column: 1; grid-row: 3; }
.mg-cv-shot { border: 6px solid #ffd23d; background: #000; box-shadow: 4px 5px 0 rgba(0, 0, 0, .55); }
.mg-cv-shot img { display: block; width: 100%; image-rendering: pixelated; }
.mg-cv-foot { margin: 0; text-align: right; font-weight: 900; font-size: 13px; }

/* ---- 目次 ---- */
.mg-toc-head { margin: 0 0 16px; font-size: 54px; font-weight: 900; font-style: italic; letter-spacing: .04em; border-bottom: 7px solid #111; line-height: 1.1; }
.mg-toc-head small { font-size: 16px; font-style: normal; margin-left: 14px; letter-spacing: .3em; }
.mg-toc-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; }
.mg-toc-box h3 { margin: 0 0 8px; font-size: 14px; font-weight: 900; background: #111; color: #fff; padding: 3px 10px; }
.mg-toc-box ol, .mg-toc-box ul { list-style: none; margin: 0; padding: 0; }
.mg-toc-box ol button { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 7px 2px; background: none; border: 0; border-bottom: 1px solid #111; text-align: left; }
.mg-toc-box ol button:hover { background: #fff1f3; }
.mg-toc-no { font-weight: 900; font-size: 18px; min-width: 2em; font-variant-numeric: tabular-nums; }
.mg-toc-kind { font-size: 11px; font-weight: 700; border: 1.5px solid #111; padding: 0 6px; white-space: nowrap; }
.mg-toc-title { font-weight: 900; font-size: 16px; }
.mg-toc-dots { flex: 1 1 auto; border-bottom: 2px dotted #111; transform: translateY(-4px); min-width: 20px; }
.mg-toc-by { font-size: 12px; white-space: nowrap; }
.mg-toc-side li { padding: 7px 0; border-bottom: 1px solid #111; font-size: 14px; font-weight: 700; }
.mg-toc-side li b { display: inline-block; font-size: 11px; background: #e2364a; color: #fff; padding: 0 6px; margin-right: 8px; }
.mg-toc-side li span { display: block; font-weight: 400; font-size: 12px; color: #555; margin-left: 3.6em; }
.mg-toc-note { font-size: 12px; line-height: 1.7; margin: 14px 0 0; padding: 8px 10px; border: 1.5px dashed #111; }

@media (max-width: 760px) {
	.mg-sheet { padding: 20px 16px 12px; }
	.mg-cols { column-count: 1; }
	.mg-cv-band { font-size: 18px; } .mg-cv-side { flex-basis: 110px; }
	.mg-toc-cols { grid-template-columns: 1fr; }
	.mg-toc-head { font-size: 38px; }
	.mg-name, .mg-tocbtn { display: none; }
}

/* 1KB に収まるか（記事のハンコと目次の札） */
.mg-tbox { position: relative; }
.mg-mem { flex: 0 0 auto; font-size: 11px; font-weight: 900; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.mg-mem.ok { background: #e2364a; color: #fff; }
.mg-mem.ram { background: #ffd23d; color: #111; border: 1.5px solid #111; }
.mg-toc-note2 { font-size: 12px; margin: 8px 0 0; }

/* 表紙の下：背景にプログラム、手前に増えた命令（白い太字に赤いふち） */
.mg-cv-prog { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: #050805; border: 2.5px solid #111; min-height: 780px; }
.mg-cv-prog pre { position: absolute; inset: -6px -40px 0 -6px; margin: 0; font: 15px/1.5 "IchigoJam Font", monospace; color: #3bd84a; opacity: .78; white-space: pre; overflow: hidden; text-shadow: 0 0 4px rgba(59, 216, 74, .5); }
.mg-cv-prog ul { position: relative; list-style: none; margin: 0; padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 2px; }
.mg-cv-prog li { font: italic 900 108px/1.04 "Arial Black", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; letter-spacing: .01em; color: #fff; -webkit-text-stroke: 14px #e2364a; paint-order: stroke fill; transform: skewX(-6deg); filter: drop-shadow(3px 4px 0 #7a0f1e); }
@media (max-width: 760px) {
	.mg-cv-prog { min-height: 600px; }
	.mg-cv-prog ul { padding: 14px 12px; }
	.mg-cv-prog li { font-size: 40px; -webkit-text-stroke-width: 7px; }
	.mg-cv-shots { top: 12px; left: 10px; right: 10px; width: auto; grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.mg-cv-shot:nth-child(n) { grid-column: auto; grid-row: auto; }
	.mg-cv-shot { border-width: 3px; }
}

/* 誌面のまま遊ぶ：本体の画面を写真の場所に置く */
.mg-live { cursor: default; display: block; padding: 10px; }
.mg .screen-wrap.in-mag { overflow: hidden; padding: 0; box-shadow: none; border-radius: 10px; width: 100%; background: #000; }
.mg .screen-wrap.in-mag .focus-hint { font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-live-note { font-weight: 400; color: #e2364a; }
/* 1KB の札：タイトル枠の右上の線の上に */
.mg-tbox .mg-memline { position: absolute; top: -11px; right: 12px; background: #fff; padding: 0 6px; }

/* 《写真2》以降：段の半分の幅で、本文を回り込ませる */
.mg-shot2 { width: 52%; margin: 4px 0 8px; break-inside: avoid; }
.mg-shot2.r { float: right; margin-left: 12px; }
.mg-shot2.l { float: left; margin-right: 12px; }
.mg-crt.sm { border-radius: 12px; padding: 7px 9px; cursor: default; }
.mg-crt.sm img { border-radius: 5px; }
.mg-shot2 figcaption .mg-ed { display: inline-block; min-width: 6em; }
.mg-shot-tools { display: inline-flex; gap: 2px; margin-left: 6px; }
.mg-shot-tools button { border: 1px solid #111; background: #fff; font-size: 11px; line-height: 1; padding: 2px 5px; }
.mg-snap { display: block; margin: 6px auto 0; background: #e2364a; color: #fff !important; border: 0; border-radius: 999px; padding: 6px 16px; font: 900 13px/1.3 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-snap.done { background: #1d9a50; }
.mg-shot-tools { flex-wrap: wrap; align-items: center; }
.mg-shot-tools select { font: inherit; font-size: 11px; border: 1px solid #111; background: #fff; padding: 1px 2px; }
/* 写真のある見出しは、見出しと写真が別の段に分かれないようにまとめる */
.mg-sec { display: flow-root; break-inside: avoid; }

/* 読みもの：画面写真は普通の枠で（ブラウン管にしない） */
.mg-ui { border: 1.5px solid #111; line-height: 0; }
.mg-ui img { display: block; width: 100%; }
.mg-cv-feat span { font-size: 13px; font-weight: 700; margin-left: 16px; }
.mg-toc-soon { display: flex; align-items: baseline; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #111; color: #777; }
.mg-toc-soon .mg-toc-dots { border-bottom-color: #bbb; }
.mg-crt.still { cursor: default; }
.mg-toc-feat { margin-top: 4px; padding: 6px 2px 2px; font-weight: 900; font-size: 14px; color: #e2364a; border-bottom: 2px solid #e2364a; }
.mg-toc-feat.sub { margin-top: 14px; color: #111; border-bottom-color: #111; }
.mg-toc-box li.mg-toc-feat + li button { padding-top: 9px; }
.mg-tbox h2.long { font-size: 26px; letter-spacing: .02em; }

/* ---- 広告ページ（画像は各サイトのもの） ---- */
.mg-ad { position: relative; overflow: hidden; font-family: "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: #333; }
.mg-ad a { color: inherit; }
.mg-ad mark { background: linear-gradient(transparent 62%, #8fdde8 62%); color: inherit; }
.mg-ad-tag { position: absolute; top: 10px; left: 12px; margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; border: 2px solid currentColor; padding: 2px 12px; background: rgba(255,255,255,.88); color: #333; z-index: 2; }
.mg-sheet.bleed { padding: 0; overflow: hidden; }

/* ---- PCN こどもプログラマーフェア（裏表紙） ---- */
.mg-ad-pcn {
	background-color: #fbe3a0;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190'%3E%3Cg fill='%23fff' fill-opacity='.55' font-family='sans-serif' font-size='22' font-weight='700'%3E%3Ctext x='10' y='34'%3E%23%3C/text%3E%3Ctext x='105' y='40'%3E%25%3C/text%3E%3Ctext x='55' y='92'%3E%26amp;%3C/text%3E%3Ctext x='150' y='110'%3E%2B%3C/text%3E%3Ctext x='14' y='150'%3E( )%3C/text%3E%3Ctext x='110' y='172'%3E%5E%3C/text%3E%3Ctext x='160' y='30'%3E*%3C/text%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(#fde9a6, #f7d397);
}
.mg-pf-banner { display: block; background: #f6c9c0; }
.mg-pf-banner img { display: block; width: 100%; height: auto; min-height: 120px; }
.mg-pf-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; padding: 34px 44px 10px; }
.mg-pf-lead { text-align: center; }
.mg-pf-lead h2 { margin: 0 0 18px; font-size: 27px; line-height: 1.75; letter-spacing: .08em; font-weight: 900; color: #333; }
.mg-pf-lead p { margin: 0; font-size: 14.5px; line-height: 2; letter-spacing: .06em; font-weight: 700; }
.mg-pf-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.mg-pf-photos img { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; min-height: 90px; }
.mg-pf-photos img:first-child { grid-row: 1 / 3; }
/* 赤白しましまと水色の、ゆがんだ枠のカード */
.mg-pf-card { position: relative; margin: 26px 46px 8px; padding: 14px; }
.mg-pf-card::before, .mg-pf-card::after { content: ""; position: absolute; inset: 0; }
.mg-pf-card::before { background: #4fb7c1; clip-path: polygon(14% 0, 3% 18%, 0 82%, 9% 100%, 88% 100%, 100% 72%, 99% 12%, 93% 3%); transform: rotate(-1.2deg); }
.mg-pf-card::after { background: repeating-linear-gradient(-45deg, #cc4a40 0 12px, #fff 12px 22px); clip-path: polygon(13% 1%, 2% 19%, 1% 80%, 10% 99%, 87% 98%, 99% 71%, 98% 13%, 92% 4%); transform: rotate(.8deg); }
.mg-pf-card-in { position: relative; z-index: 1; background: #fff; clip-path: polygon(12% 2%, 4% 20%, 3% 79%, 11% 97%, 86% 96%, 97% 70%, 96% 14%, 91% 5%); padding: 36px 13% 34px; }
.mg-pf-card h3 { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 14px; font-size: 22px; letter-spacing: .12em; font-weight: 900; }
.mg-pf-card h3::before, .mg-pf-card h3::after { content: ""; width: 70px; border-top: 3px solid #333; }
.mg-pf-card dl { display: grid; grid-template-columns: 6.5em 1fr; margin: 0; border-top: 1.5px solid #333; font-size: 14px; line-height: 1.6; letter-spacing: .05em; }
.mg-pf-card dt, .mg-pf-card dd { margin: 0; padding: 10px 0; border-bottom: 1.5px solid #333; }
.mg-pf-card dd { font-weight: 700; }
.mg-pf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 18px 20px 24px; font-weight: 700; font-size: 13px; }
.mg-pf-foot img { height: 30px; width: auto; }

/* ---- コプリ ---- */
.mg-ad-copuri { background: #fff; border: 1px solid #ddd; }
.mg-kp-bar { display: flex; justify-content: flex-end; padding: 12px 22px; background: #339a4e; color: #fff; font-weight: 900; font-size: 14px; }
.mg-kp-bar a { text-decoration: none; }
.mg-kp-hero { display: grid; justify-items: center; padding: 10px 16px 0; background: #fcc436; }
.mg-kp-hero h2 { margin: 0; line-height: 0; }
.mg-kp-hero h2 img { display: block; width: 100%; max-width: 560px; height: auto; }
.mg-kp-kun { display: block; width: 100px; height: 100px; margin-top: 4px; image-rendering: pixelated; }
.mg-kp-main { padding: 26px 48px 10px; text-align: center; }
.mg-kp-logo { display: block; width: 230px; max-width: 70%; height: auto; margin: 0 auto 10px; }
.mg-kp-sub { margin: 0 0 20px; font-size: 22px; letter-spacing: .06em; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; font-weight: 400; color: #222; }
.mg-kp-cols { display: grid; grid-template-columns: 1fr 230px; gap: 26px; align-items: center; text-align: left; }
.mg-kp-text { margin: 0 0 16px; font: 400 14px/1.9 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: #333; }
.mg-kp-text b { color: #2e9a48; }
.mg-kp-photos2 { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.mg-kp-photo .mg-kp-photos2 img { width: 44%; border-width: 6px; }
.mg-kp-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 12px solid #fcc436; background: #fcc436; }
.mg-kp-course { border: 3px solid #339a4e; border-radius: 12px; padding: 12px 18px; }
.mg-kp-course h3 { margin: 0 0 6px; color: #339a4e; font-size: 18px; font-weight: 900; }
.mg-kp-course dl { display: grid; grid-template-columns: 3em 1fr; gap: 3px 10px; margin: 0; font-size: 14px; font-weight: 700; }
.mg-kp-course dt { color: #f2622c; }
.mg-kp-course dd { margin: 0; }
.mg-kp-pre { margin: 28px 0 0; font-size: 18px; font-weight: 400; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-kp-h { margin: 2px 0 14px; color: #339a4e; font-size: 36px; font-weight: 900; letter-spacing: .04em; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-kp-teachers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; }
.mg-kp-teachers h4 { margin: 0 0 8px; font-size: 17px; font-weight: 900; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-kp-teachers p { margin: 0; font: 400 13px/1.85 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-kp-foot { margin: 22px 0 0; padding: 12px 16px; background: #339a4e; color: #fff; text-align: center; font-weight: 700; font-size: 13px; }
@media (max-width: 760px) {
		.mg-pf-body { grid-template-columns: 1fr; padding: 22px 16px 6px; }
	.mg-pf-lead h2 { font-size: 19px; }
	.mg-pf-lead p { font-size: 13px; }
	.mg-pf-card { margin: 18px 8px 6px; padding: 8px; }
	.mg-pf-card-in { padding: 28px 9% 26px; }
	.mg-pf-card dl { grid-template-columns: 4.5em 1fr; font-size: 13px; }
	.mg-kp-sub { font-size: 16px; }
	.mg-kp-cols, .mg-kp-teachers { grid-template-columns: 1fr; }
	.mg-kp-photo { width: 200px; margin: 0 auto; }
	.mg-kp-h { font-size: 28px; }
}

/* 奥付 */
.mg-colophon { min-height: 640px; display: flex; align-items: flex-end; justify-content: flex-end; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
.mg-col-box { width: 420px; max-width: 100%; border-top: 2px solid #111; border-bottom: 2px solid #111; padding: 14px 4px; }
.mg-col-box h2 { margin: 0; font: 900 24px/1.3 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; letter-spacing: .08em; }
.mg-col-issue { margin: 2px 0 10px; font-size: 13px; }
.mg-col-box dl { display: grid; grid-template-columns: 6em 1fr; gap: 3px 10px; margin: 0 0 12px; padding: 8px 0; border-top: 1px solid #111; border-bottom: 1px solid #111; font-size: 13px; }
.mg-col-box dt { font-weight: 700; }
.mg-col-box dd { margin: 0; }
.mg-col-note { margin: 0 0 8px; font-size: 11.5px; line-height: 1.7; }
.mg-col-copy { margin: 10px 0 0; font-size: 12px; text-align: right; }
.mg-col-thanks { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid #111; font-size: 12px; line-height: 1.75; }
.mg-col-thanks b { font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; font-weight: 900; font-size: 12px; }
.mg-col-thanks p { margin: 4px 0 0; }
.mg-col-thanks .mg-col-small { font-size: 10.5px; color: #555; }

/* ---- 特集・読みものの体裁（投稿プログラムとは変える） ---- */
.mg-rtitle { column-span: all; margin: 0 0 18px; padding: 0 0 12px; border-bottom: 3px solid #111; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-rlabel { margin: 0 0 8px; text-indent: 0 !important; display: inline-block; background: #111; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .12em; padding: 3px 12px; }
.mg-feat .mg-rlabel { background: #e2364a; }
.mg-rtitle h2 { margin: 0; font-size: 44px; line-height: 1.15; font-weight: 900; letter-spacing: .01em; }
.mg-feat .mg-rtitle h2 { font-style: italic; }
.mg-rsub { margin: 8px 0 0; text-indent: 0 !important; font-size: 17px; font-weight: 700; color: #444; }
.mg-feat .mg-rsub { color: #e2364a; }
.mg-rby { margin: 6px 0 0; text-indent: 0 !important; text-align: right !important; font-size: 12px; font-weight: 700; }
.mg-read .mg-h { border: 0; border-left: 7px solid #111; padding: 1px 0 1px 10px; text-align: left; letter-spacing: .06em; font-size: 16px; }
.mg-feat .mg-h { border-left-color: #e2364a; border-bottom: 1.5px solid #e2364a; }
.mg-read .mg-shot { margin-top: 2px; }
@media (max-width: 760px) { .mg-rtitle h2 { font-size: 30px; } }
/* 段の幅いっぱいの写真（アップの写真など） */
.mg-shot2.w { float: none; width: 100%; margin: 6px 0 10px; }
.mg-cols p.mg-pt { text-indent: 0; margin-top: 4px; }
.mg-pt b { font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; font-weight: 900; margin-right: .4em; }
.mg-feat .mg-pt b { color: #e2364a; }

/* ---- 広告募集 ---- */
.mg-ad-wanted { background: #fff; color: #111; aspect-ratio: 10 / 13; display: flex; flex-direction: column; } /* コプリの広告と同じくらいの高さ */
.mg-wt { flex: 1; display: flex; flex-direction: column; padding: 90px 56px 60px; text-align: center; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.mg-wt-kicker { align-self: center; display: inline-block; margin: 0 0 14px; padding: 4px 16px; background: #e2364a; color: #fff; font-weight: 900; font-size: 15px; letter-spacing: .2em; }
.mg-wt h2 { margin: 0 0 26px; font-size: 46px; font-weight: 900; line-height: 1.25; letter-spacing: .04em; }
.mg-wt-frame { flex: 1; display: grid; place-items: center; min-height: 280px; margin: 0 auto 36px; width: 100%; max-width: 760px; box-sizing: border-box; border: 4px dashed #bbb; background: repeating-linear-gradient(-45deg, #fafafa 0 14px, #f1f1f1 14px 28px); color: #888; font-weight: 700; font-size: 18px; }
.mg-wt-info { display: grid; grid-template-columns: 5em 1fr; gap: 10px 16px; max-width: 760px; margin: 0 auto 22px; text-align: left; font-size: 15px; line-height: 1.7; }
.mg-wt-info dt { font-weight: 900; color: #e2364a; }
.mg-wt-info dd { margin: 0; }
.mg-wt-contact { margin: 0; font-weight: 900; font-size: 17px; }
.mg-toc-ad { display: block; width: 100%; margin-top: 20px; padding: 34px 20px; border: 3px dashed #c4c4c4; background: #f3f3f3; text-align: center; cursor: pointer; color: #666; }
.mg-toc-ad b { display: block; font-size: 30px; font-weight: 900; color: #777; letter-spacing: .04em; }
.mg-toc-ad span { display: block; margin-top: 8px; font-size: 14px; }
.mg-toc-ad:hover { background: #ececec; }
@media (max-width: 760px) { .mg-ad-wanted { aspect-ratio: auto; min-height: 1900px; } .mg-wt { padding: 50px 18px 30px; } .mg-wt h2 { font-size: 30px; } .mg-wt-frame { min-height: 180px; } }
@media (max-width: 760px) { .mg-toc-ad { padding: 20px 12px; } .mg-toc-ad b { font-size: 20px; } }

/* 目次と奥付：ページ全体を表紙と同じくらいの高さにして、中身の下の残りを全部、広告募集の場所にする */
.mg-fill { display: flex; flex-direction: column; min-height: 1216px; }
.mg-fill > .mg-toc-ad { flex: 1; margin-top: 36px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .mg-fill { min-height: 1000px; } }

/* 機種：IchigoJam 用（実機でも動く）／ IchigoCocktail 用 */
.mg-machine.ij { color: #1d6fb8; }
.mg-mach { display: inline-block; margin-left: 4px; padding: 0 4px; font: 900 10px/1.5 "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: #fff; border-radius: 2px; vertical-align: 2px; }
.mg-mach.ij { background: #1d6fb8; }
.mg-mach.ic { background: #c2185b; }
