@charset "utf-8";
/* コラム記事ページ（column/*.html）の雑誌ふう。css/column.css の上に重ねる。
   2026-11-18 モック docs/column-drafts/mockup/deco-mag.css＋b-first-lesson-mag-v3.html の調整を本番化。
   木の床の上に、開いた誌面を 1 枚だけ置く。箱やカードは作らず、余白・細い罫線・文字の大小で組む。 */
:root {
    --mg-paper: #fffdf8;
    --mg-ink: #2d2926;
    --mg-muted: #6f6258;
    --mg-rule: #e6d9c8;
    --mg-pink: #f29bab;
    --mg-pink-strong: #c4566f;
    --mg-pink-soft: #fde8ec;
    --mg-teal: #a2d9ce;
    --mg-yellow: #f5d76e;
    --mg-en: "Cormorant Garamond", "Times New Roman", serif;
    --mg-sheet-max: 1160px;
    --mg-spine-w: 112px;
}

main.mg { overflow-x: clip; padding: 40px 0 8px; }
.mg .mg-en { font-family: var(--mg-en); font-style: italic; font-weight: 500; letter-spacing: .04em; }
.mg-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 読書の進み具合バー */
.mg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.mg-progress span { display: block; height: 100%; background: var(--mg-pink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .12s linear; }
@media (prefers-reduced-motion: reduce) { .mg-progress span { transition: none; } }

/* ---------- 誌面 1 枚 ---------- */
.mg-sheet {
    position: relative;
    display: grid; grid-template-columns: var(--mg-spine-w) minmax(0, 1fr);
    max-width: var(--mg-sheet-max); margin: 0 auto 48px; box-sizing: border-box;
    background: var(--mg-paper);
    box-shadow: 0 1px 2px rgba(90, 60, 30, .08), 0 14px 36px rgba(90, 60, 30, .07);
}
.mg-spine {
    display: flex; flex-direction: column; align-items: center; gap: 28px;
    padding: 48px 0; border-right: 1px solid var(--mg-rule);
}
.mg-spine-ja { writing-mode: vertical-rl; font-size: 13px; letter-spacing: .32em; color: var(--mg-pink-strong); font-weight: 700; }
.mg-spine-en {
    writing-mode: vertical-rl; font-family: var(--mg-en); font-weight: 500;
    font-size: 68px; line-height: 1; letter-spacing: .14em; color: var(--mg-ink); white-space: nowrap;
}
.mg-body { padding: 24px 72px 32px 48px; min-width: 0; }
.mg-crumb { padding-top: 0; }

/* 写真の空き枠は雑誌らしく四角に */
.mg .cm-slot { border-radius: 0; border-width: 1.5px; }
.mg .mg-cutout { border-radius: 50%; border: 6px solid var(--mg-paper); box-shadow: 0 0 0 1.5px #e6c9cf; font-size: 11px; padding: 4px; aspect-ratio: 1 / 1; }

/* ---------- トップ ---------- */
.mg-hero { padding-top: 20px; }
.mg-hero-photo { position: relative; }
.mg-cover { aspect-ratio: 16 / 9; font-size: 15px; }
.mg-hero-cutout { position: absolute; left: -36px; bottom: -48px; width: 150px; }
.mg-sticker {
    position: absolute; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 112px; height: 112px; border-radius: 50%; box-sizing: border-box;
    font-size: 15px; font-weight: 700; line-height: 1.35; text-align: center; color: var(--mg-ink);
    transform: rotate(-9deg); box-shadow: 0 3px 8px rgba(90, 60, 30, .14);
}
.mg-sticker small { font-family: var(--mg-en); font-style: italic; font-weight: 500; font-size: 17px; line-height: 1; margin-bottom: 2px; }
.mg-sticker--yellow { background: var(--mg-yellow); }
.mg-sticker--pink { background: var(--mg-pink); }
.mg-hero-sticker { top: -26px; right: -28px; }

.mg-hero-text { margin: 72px 0 0; max-width: 860px; }
.mg-issue, .mg-np-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px !important; color: var(--mg-muted); }
.mg-issue .mg-en, .mg-np-label .mg-en { font-size: 22px; color: var(--mg-pink-strong); }
.mg-no { font-family: var(--mg-en); font-weight: 600; font-size: 15px; letter-spacing: .24em; color: var(--mg-ink); }
.mg-issue-ja { font-size: 13px; letter-spacing: .12em; border-left: 1px solid var(--mg-rule); padding-left: 12px; }
.mg-issue-ja b { color: var(--mg-pink-strong); }
.mg-title { font-size: 40px; font-weight: 700; line-height: 1.5; margin: 0 0 22px; word-break: auto-phrase; text-wrap: balance; letter-spacing: .02em; }
.mg-byline { font-size: 14px; color: var(--mg-muted); line-height: 1.8; }
.mg-byline .mg-en { font-size: 16px; margin-right: 4px; }
.mg-byline strong { color: var(--mg-ink); }
.mg-dates { display: block; font-size: 13px; }
.mg-pr-note { margin-top: 6px !important; }

/* ---------- 章（雑誌の段） ---------- */
.mg-turn {
    display: flex; align-items: center; gap: 18px;
    margin: 104px 0 36px !important;
    font-family: var(--mg-en); font-size: 15px; letter-spacing: .3em; color: var(--mg-muted);
}
.mg-turn::before, .mg-turn::after { content: ""; flex: 1; height: 1px; background: var(--mg-rule); }
.mg-chapter { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; line-height: 1; }
.mg-dot {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
    background: var(--mg-pink-soft); color: var(--mg-pink-strong);
    display: inline-flex; align-items: center; justify-content: center;
}
.mg-dot svg { width: 15px; height: 15px; }
.mg-chapter--teal .mg-dot { background: #e3f4f0; color: #0F4C3A; }
.mg-chapter i { font-family: var(--mg-en); font-size: 21px; color: var(--mg-pink-strong); font-weight: 500; }
.mg-chapter b { font-family: var(--mg-en); font-weight: 600; font-size: 48px; letter-spacing: .2em; color: var(--mg-ink); }
.mg-row h2 { font-size: 25px; font-weight: 700; line-height: 1.55; margin: 14px 0 36px; max-width: 760px; word-break: auto-phrase; text-wrap: balance; }

.mg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.mg-row--rev .mg-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.mg-row--rev .mg-split > :first-child { order: 2; }
.mg-text { font-size: 16px; line-height: 2.05; }
.mg-text p + p { margin-top: 1.1em; }

/* 写真 2 枚並び（右側を少し下げてずらす）＋小さな番号 */
.mg-pair { position: relative; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mg-pair .cm-slot { aspect-ratio: 3 / 4; font-size: 12px; }
.mg-ph--low { margin-top: 44px; }
.mg-num { display: block; font-family: var(--mg-en); font-weight: 600; font-size: 14px; letter-spacing: .2em; color: var(--mg-muted); margin-bottom: 6px; }
.mg-pair--single { grid-template-columns: 1fr; }
.mg-pair--single .cm-slot { aspect-ratio: 4 / 3; }
.mg-pair-sticker { top: 4px; left: -30px; width: 96px; height: 96px; font-size: 14px; transform: rotate(8deg); }
.mg-pair-cutout { position: absolute; right: -22px; bottom: -40px; width: 116px; }
.mg .mg-pair .mg-cutout { aspect-ratio: 1 / 1; font-size: 11px; }

/* ナビゲーター（マダム・スピン）：吹き出し＋丸い顔 */
.mg-nav { text-align: center; padding-top: 4px; }
.mg-bubble {
    position: relative; text-align: left;
    border: 1.5px solid var(--mg-ink); border-radius: 28px;
    padding: 16px 20px; font-size: 15px; line-height: 1.85; background: var(--mg-paper);
}
.mg-bubble::after {
    content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px;
    background: var(--mg-paper); border-right: 1.5px solid var(--mg-ink); border-bottom: 1.5px solid var(--mg-ink);
    transform: translateX(-50%) rotate(45deg);
}
.mg .mg-face { width: 96px; height: 96px; margin: 22px auto 10px; box-shadow: none; border: 0; }
.mg-nav-name { font-size: 15px; line-height: 1.5; }
.mg-nav-name .mg-en { display: block; font-size: 15px; color: var(--mg-pink-strong); }
.mg-nav-bio { font-size: 13px; color: var(--mg-muted); line-height: 1.7; margin-top: 4px !important; }

/* 広告：雑誌の「買いものメモ」ふう（罫線だけ） */
.mg-shop { margin-top: 72px; border-top: 2px solid var(--mg-ink); border-bottom: 1px solid var(--mg-ink); padding: 18px 0 24px; font-size: 15px; line-height: 1.85; }
.mg-shop-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px !important; }
.mg-shop-head .mg-en { font-size: 24px; }
.mg-shop-head .pr-label { margin: 0; background: #fff; border: 1px solid #b9a48f; color: #5a3428; }
.mg-shop-item { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 28px; align-items: start; }
.mg-shop-photo { aspect-ratio: 1 / 1; font-size: 12px; }
.mg-shop-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px !important; }
.mg-shop-line .mg-num { margin: 0; flex: 0 0 auto; }
.mg-leader { flex: 1 1 24px; border-bottom: 1px dotted #b9a48f; transform: translateY(-4px); }
.mg-shop-link { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--mg-pink-strong); }

/* 次の一歩 */
.mg-map { margin: 0; text-align: center; }
.mg-map img { width: 100%; max-width: 240px; height: auto; }
.mg-info { list-style: none; margin: 20px 0 !important; padding: 0; font-size: 15px; }
.mg-info li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dotted var(--mg-rule); line-height: 1.6; }
.mg-info li:last-child { border-bottom: 1px dotted var(--mg-rule); }
.mg-info svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--mg-pink-strong); }
.mg-btn { margin-top: 24px; }

/* この記事を書いた人 */
.mg-writer {
    display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center;
    margin-top: 104px; padding-top: 48px; border-top: 1px solid var(--mg-rule);
    font-size: 15px; line-height: 1.85;
}
.mg-writer-face { text-align: center; }
.mg-bubble--small { font-size: 14px; }
.mg-writer h2 { font-size: 13px; color: #0F4C3A; letter-spacing: .1em; margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; }
.mg-writer h2 .mg-en { font-size: 22px; color: var(--mg-pink-strong); letter-spacing: .04em; }
.mg-writer strong { display: block; font-size: 20px; margin-bottom: 4px; }
.mg-writer-note { display: inline-block; margin-top: 8px; }

/* ページ番号（ノンブル） */
.mg-folio {
    display: flex; align-items: baseline; gap: 16px;
    margin-top: 72px !important; padding-top: 14px; border-top: 1px solid var(--mg-rule);
    font-size: 11px; letter-spacing: .14em; color: var(--mg-muted);
}
.mg-folio span { font-family: var(--mg-en); font-size: 16px; font-weight: 600; letter-spacing: .12em; color: var(--mg-ink); }
.mg-folio em { font-style: normal; color: var(--mg-muted); font-weight: 500; }

/* ---------- 次回予告（NEXT PAGE） ---------- */
.mg-nextpage .mg-body { padding-top: 48px; }
.mg-np { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-top: 28px; }
.mg-np-photo { position: relative; }
.mg-np-cover { aspect-ratio: 4 / 3; font-size: 14px; }
.mg-np-sticker { top: -24px; left: -28px; transform: rotate(-7deg); }
.mg-np-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #0F4C3A; border-bottom: 2px solid var(--mg-teal); padding-bottom: 2px; margin-bottom: 14px !important; }
.mg-np-title { font-size: 32px; font-weight: 700; line-height: 1.45; word-break: auto-phrase; text-wrap: balance; margin-bottom: 18px !important; }
.mg-np-title span { display: block; font-size: 19px; font-weight: 600; color: var(--mg-muted); margin-top: 6px; }
.mg-np-tease { font-size: 17px; line-height: 1.9; padding-left: 16px; border-left: 3px solid var(--mg-pink); margin-bottom: 14px !important; }
.mg-np-sub { font-size: 15px; color: var(--mg-muted); line-height: 1.85; }
.mg-np-turn {
    display: inline-flex; align-items: center; gap: 12px; margin: 28px 0 12px;
    min-height: 48px; font-size: 22px; font-weight: 700; color: var(--mg-pink-strong); text-decoration: none;
    border-bottom: 2px solid var(--mg-pink-strong);
}
.mg-np-turn span { font-family: var(--mg-en); font-size: 30px; transition: transform .2s ease; }
.mg-np-turn:hover span { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .mg-np-turn span { transition: none; } .mg-np-turn:hover span { transform: none; } }

/* 右下の紙のめくれ（控えめ） */
.mg-curl {
    position: absolute; right: 0; bottom: 0; width: 44px; height: 44px;
    background: linear-gradient(to top left, var(--floor-base, #f6efe4) 50%, #ece0cd 50%, #f7efe3 100%);
    box-shadow: -3px -3px 6px rgba(90, 60, 30, .08);
}

/* ---------- 床の上（一覧へ・教室を探す） ---------- */
.mg-after { padding: 8px 0 64px; }
.mg-after-in { max-width: 880px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.mg-after-list { text-align: center; margin-bottom: 48px !important; }
.mg-after-list a { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; color: var(--mg-ink); font-weight: 700; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--mg-ink); padding-bottom: 4px; }
.mg-after-list .mg-en { font-size: 20px; color: var(--mg-pink-strong); font-weight: 500; }
.mg-find { border-top: 1px solid rgba(160, 120, 80, .3); padding-top: 40px; text-align: center; }
.mg-find h2 { font-size: 24px; margin: 0 0 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mg-find h2 .mg-en { font-size: 20px; color: var(--mg-pink-strong); font-weight: 500; }
.mg-find p { color: var(--mg-muted); margin-bottom: 24px !important; font-size: 15px; }
.mg-prefs { justify-content: center; }

/* ---------- タブレット ---------- */
@media (max-width: 1000px) {
    .mg-sheet { margin-left: 16px; margin-right: 16px; }
    .mg-body { padding: 24px 40px 32px 32px; }
    .mg-split, .mg-row--rev .mg-split { gap: 36px; }
}

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
    main.mg { padding-top: 20px; }
    .mg-sheet { grid-template-columns: minmax(0, 1fr); margin: 0 10px 32px; }
    /* 縦の英字タイトル → 誌面の上の帯に（英字は横・日本語は小さく縦のまま） */
    .mg-spine {
        flex-direction: column; align-items: flex-start; gap: 6px;
        padding: 16px 16px 12px; border-right: 0; border-bottom: 1px solid var(--mg-rule);
    }
    .mg-spine-en { writing-mode: horizontal-tb; font-size: 38px; letter-spacing: .1em; }
    .mg-spine-ja { writing-mode: horizontal-tb; font-size: 12px; letter-spacing: .2em; }
    .mg-shop-line { flex-wrap: wrap; gap: 2px 10px; }
    .mg-leader { display: none; }
    .mg-body { padding: 16px 16px 24px; }
    .mg-cover { aspect-ratio: 4 / 3; }
    .mg-hero-sticker { top: -14px; right: -6px; width: 84px; height: 84px; font-size: 12px; }
    .mg-sticker small { font-size: 14px; }
    .mg-hero-cutout { left: -6px; bottom: -32px; width: 96px; border-width: 4px; }
    .mg-hero-text { margin-top: 48px; }
    .mg-title { font-size: 26px; }
    .mg-turn { margin: 72px 0 24px !important; }
    .mg-chapter b { font-size: 32px; letter-spacing: .14em; }
    .mg-chapter i { font-size: 18px; }
    .mg-row h2 { font-size: 21px; margin-bottom: 24px; }
    .mg-split, .mg-row--rev .mg-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .mg-row--rev .mg-split > :first-child { order: 0; }
    .mg-pair { gap: 10px; }
    .mg-ph--low { margin-top: 28px; }
    .mg-pair-sticker { left: -8px; top: 0; width: 76px; height: 76px; font-size: 12px; }
    .mg-pair-cutout { right: -6px; bottom: -28px; width: 84px; border-width: 4px; }
    .mg-nav { max-width: 340px; margin: 0 auto; }
    .mg-shop { margin-top: 48px; }
    .mg-shop-item { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
    .mg-map img { max-width: 160px; }
    .mg-writer { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 72px; padding-top: 36px; }
    .mg-writer > div:last-child { text-align: center; }
    .mg-writer h2 { justify-content: center; }
    .mg-folio { margin-top: 48px !important; flex-wrap: wrap; gap: 4px 12px; }
    .mg-nextpage .mg-body { padding-top: 20px; }
    .mg-np { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 16px; }
    .mg-np-sticker { top: -14px; left: -6px; width: 84px; height: 84px; font-size: 12px; }
    .mg-np-title { font-size: 25px; }
    .mg-np-title span { font-size: 17px; }
    .mg-np-turn { font-size: 20px; }
    .mg-after-in { padding: 0 16px; }
}

/* ---------- 2026-11-18 v3 の調整（モックの <style> から） ---------- */
/* ヒーローは写真を切らずに横長のまま。シール＝左上、丸い写真＝右下（対角） */
.mg .cm-slot.cm-photo { border-radius: 0; }
.mg-hero .mg-cover { aspect-ratio: 1600 / 685; }
.mg-hero-sticker { top: -26px; left: -28px; right: auto; transform: rotate(-9deg); }
.mg-hero-cutout { left: auto; right: -30px; bottom: -52px; width: 150px; }
.mg-hero-cutout img { object-position: 50% 70%; }
.mg .mg-cutout.cm-photo { border: 6px solid var(--mg-paper) !important; border-radius: 50%; }
.mg .mg-cutout.cm-slot:not(.cm-photo) { border: 6px solid var(--mg-paper); box-shadow: 0 0 0 1px #e6d9c8; }
.mg-lead { font-size: 17px; line-height: 2; margin: 0 0 22px !important; max-width: 760px; }
.mg-text ul.mg-list { margin: 1.1em 0; padding-left: 1.4em; list-style: disc; }
.mg-text ul.mg-list li { margin: .2em 0; }
.mg-text a:not(.cm-btn) { color: var(--mg-pink-strong); text-decoration: underline; text-underline-offset: 3px; }
.mg-text p strong { background: linear-gradient(transparent 62%, #fde3e8 62%); }
.mg-text .mg-btn { margin: 10px 0 26px; }
.mg-row h2 .ib, .mg-title .ib { display: inline-block; }
.mg-sign { text-align: right; font-weight: 700; letter-spacing: .06em; }
.mg-np-cover.cm-photo img { object-position: 50% 60%; }
.mg-credit { margin: 40px 0 0 !important; font-size: 12px; color: var(--mg-muted); text-align: right; }
.mg-row h2, .mg-title, .mg-np-title { word-break: auto-phrase; }
/* 次回が未公開のとき（リンクにしない） */
.mg-np-soon { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 18px; font-weight: 700; color: var(--mg-muted); border-bottom: 1px dashed var(--mg-muted); padding-bottom: 2px; }
.mg-np-soon .mg-en { font-size: 22px; color: var(--mg-pink-strong); }
@media (max-width: 768px) {
    .mg-hero-sticker { top: -14px; left: -6px; right: auto; }
    .mg .mg-hero-cutout { left: auto; right: -6px; bottom: -40px; width: 88px; border-width: 4px !important; }
    .mg-hero-text { margin-top: 56px; }
    .mg-lead { font-size: 16px; }
    .mg-credit { text-align: left; }
}

/* マダム・スピンの全身（水彩・背景透明） */
.mg-chara { display: block; height: auto; pointer-events: none; }
.mg-chara img { display: block; width: 100%; height: auto; }
.mg-chara--writer { width: 150px; margin: 18px auto 0; }
.mg-cta { display: flex; align-items: flex-end; gap: 12px; margin: 10px 0 26px; }
.mg-text .mg-cta .mg-btn { margin: 0 0 14px; }
.mg-chara--cheer { width: 92px; }
.mg-point { display: flex; align-items: flex-start; gap: 16px; }
.mg-point .mg-list { flex: 1 1 auto; min-width: 0; }
.mg-chara--point { order: 2; flex: 0 0 auto; width: 110px; margin-top: -8px; }
.mg-chara--np { position: absolute; right: -24px; bottom: -36px; width: 120px; filter: drop-shadow(0 4px 10px rgba(80,40,60,.12)); }
@media (max-width: 768px) {
    .mg-chara--writer { width: 120px; }
    .mg-chara--cheer { width: 76px; }
    .mg-point { display: block; }
    .mg-chara--point { float: right; width: 64px; margin: 0 0 4px 8px; }
    .mg-point::after { content: ""; display: block; clear: both; }
    .mg-chara--np { right: -4px; bottom: -28px; width: 92px; }
}

/* 写真の下の小さな説明 */
.mg-figcap { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--mg-muted); }
.mg-figcap a { margin-left: .5em; color: var(--mg-pink-strong); white-space: nowrap; }
#shopping-note { scroll-margin-top: 80px; }
