@charset "UTF-8";

/* =========================================
 * Reset & Variables (Pop & Casual)
 * ========================================= */

body {
  margin: 0; padding: 0;
  font-family: "Rounded Mplus 1c", "Hiragino Maru Gothic ProN", "Varela Round", sans-serif;
  background-color: #fff9e6; /* Soft yellow */
  color: #4a4a4a;
  line-height: 1.6;
}
:root {
  --primary: #ef476f; /* Pink */
  --secondary: #ffd166; /* Yellow */
  --accent: #118ab2; /* Blue */
  --bg-main: #fff9e6;
  --card-bg: #ffffff;
  --border: #333;
}

/* =========================================
 * Header
 * ========================================= */
.pop-header {
  background: var(--card-bg);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid var(--border);
}
.logo { font-size: 24px; font-weight: 900; color: var(--primary); text-shadow: 2px 2px 0 var(--secondary); letter-spacing: 2px; }

/* =========================================
 * Layout & Wizard Wrap
 * ========================================= */
.pop-wrapper { max-width: 800px; margin: 0 auto; padding-bottom: 50px; }

.wizard-wrap {
  padding: 30px 20px;
  text-align: center;
}

.variant { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.variant__btn { background: #fff; border: 3px solid var(--border); border-radius: 30px; padding: 10px 20px; font-size: 14px; font-weight: 900; cursor: pointer; color: var(--border); box-shadow: 0 4px 0 var(--border); transition: 0.1s; }
.variant__btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--border); }
.variant__btn.is-active { background: var(--secondary); }

.progress { display: flex; justify-content: space-between; background: #fff; padding: 15px; border-radius: 40px; border: 3px solid var(--border); box-shadow: 0 6px 0 var(--border); }
.progress__step { flex: 1; text-align: center; font-size: 11px; font-weight: bold; color: #999; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.progress__step span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #eee; border-radius: 50%; border: 2px solid #ccc; font-size: 14px; }
.progress__step.is-active { color: var(--primary); }
.progress__step.is-active span { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 3px 0 rgba(0,0,0,0.2); }

/* =========================================
 * Main Form (Bubble)
 * ========================================= */
.main-content { padding: 0 20px; }

.form-bubble {
  background: var(--card-bg);
  border: 4px solid var(--border);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 8px 0 var(--border);
  margin-bottom: 50px;
}

.step { display: none; animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.step.is-active { display: block; }
@keyframes bounceIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: none; } }

.step__title { font-size: 24px; color: var(--accent); margin-bottom: 30px; text-align: center; border-bottom: 4px dashed var(--secondary); padding-bottom: 15px; }

/* Fields */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
/* min-width:0 が無いと入力欄の固有幅が列の下限として残る。幅指定は本体 rirekisy.jp と同じ */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }

.field label { font-size: 14px; font-weight: 900; color: var(--primary); }
.field input, .field select, .field textarea {
  background: #fff; border: 3px solid var(--border); padding: 12px; border-radius: 15px; font-size: 16px; font-family: inherit; color: var(--border); font-weight: bold; transition: 0.2s; box-shadow: inset 0 3px 0 rgba(0,0,0,0.05);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fdfae3; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(17,138,178,0.2); }

/* Buttons */
.btn, .ai-btn, .photo__btn, .addrow, .edu-autocalc-btn {
  background: #fff; border: 3px solid var(--border); color: var(--border); padding: 12px 20px; border-radius: 20px; cursor: pointer; font-weight: 900; font-size: 14px; text-align: center; box-shadow: 0 4px 0 var(--border); transition: 0.1s;
}
.btn:active, .ai-btn:active, .photo__btn:active, .addrow:active, .edu-autocalc-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--border); }
.addrow { background: var(--secondary); width: 100%; display: block; margin-top: 10px; }
.ai-btn { background: #e2f1f8; color: var(--accent); border-color: var(--accent); box-shadow: 0 4px 0 var(--accent); }

.subhead--toggle { background: var(--secondary); color: var(--border); font-weight: 900; text-align: center; margin-top: 20px; cursor: pointer; padding: 15px; border-radius: 20px; border: 3px solid var(--border); box-shadow: 0 4px 0 var(--border); }
.subhead--toggle:active { transform: translateY(4px); box-shadow: 0 0 0 var(--border); }
.collapse { display: none; padding-top: 25px; }

/* Dynamic Rows */
.items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.item { background: #fff; padding: 25px; border-radius: 20px; position: relative; border: 3px dashed var(--border); }
.item__del { position: absolute; top: -10px; right: -10px; background: var(--primary); border: 3px solid var(--border); color: #fff; font-size: 12px; font-weight: 900; padding: 8px 12px; border-radius: 20px; cursor: pointer; box-shadow: 0 3px 0 var(--border); }

/* Baito specific */

.days { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.day { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 3px solid var(--border); color: var(--border); cursor: pointer; font-weight: 900; box-shadow: 0 3px 0 var(--border); }
.day:active { transform: translateY(3px); box-shadow: 0 0 0 var(--border); }
.day.is-on { background: var(--primary); color: #fff; }

/* Navigation */
.nav { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 40px; }
.nav__btns { display: flex; gap: 15px; width: 100%; justify-content: center; }
.btn--prev { background: #eee; flex: 1; }
.btn--prev.is-hidden { display: none; }
.btn--next { background: var(--accent); color: #fff; flex: 2; font-size: 18px; border-color: var(--border); }
.btn--preview { background: var(--primary); color: #fff; flex: 2; font-size: 18px; border-color: var(--border); }
.saved { color: var(--primary); font-weight: 900; font-size: 14px; display: none; }

/* Preview */
.preview-bubble { text-align: center; }
.preview-bubble h2 { color: var(--border); font-size: 24px; margin-bottom: 20px; }
.paper { background: #fff; width: 100%; aspect-ratio: 1/1.414; border: 4px solid var(--border); border-radius: 20px; box-shadow: 0 8px 0 var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; font-weight: bold; }
.data-clear__btn { background: none; border: none; color: var(--primary); font-weight: 900; text-decoration: underline; margin-top: 30px; cursor: pointer; }

/* Legal Link */
.legal-link { color: var(--accent); font-weight: 900; text-decoration: underline; }

/* =========================================
 * Modals
 * ========================================= */

.authm, .pmodal, .modal, .edu-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.authm__backdrop, .pmodal__backdrop, .modal__backdrop { position: absolute; inset: 0; background: rgba(255,249,230,0.9); }
.authm__box, .pmodal__box, .modal__box, .edu-modal__box { background: #fff; border: 4px solid var(--border); border-radius: 30px; padding: 40px; width: 90%; max-width: 450px; box-shadow: 0 10px 0 var(--border); position: relative; }
.authm__x, .pmodal__x, .modal__close, .edu-modal__x { position: absolute; top: -15px; right: -15px; background: var(--primary); color: #fff; border: 3px solid var(--border); width: 40px; height: 40px; border-radius: 50%; font-size: 20px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 var(--border); }

#authSubmit { width: 100%; background: var(--accent); color: #fff; padding: 15px; border: 3px solid var(--border); border-radius: 20px; font-weight: 900; margin-top: 20px; cursor: pointer; font-size: 16px; box-shadow: 0 4px 0 var(--border); }
#authSubmit:active { transform: translateY(4px); box-shadow: 0 0 0 var(--border); }
#authMsg { color: var(--primary); font-size: 14px; font-weight: 900; margin: 10px 0; }
#authMsg.is-ok { color: var(--accent); }
.authbar a { color: var(--accent); font-weight: 900; text-decoration: none; }

/* SEO Content */
.seo-content { margin-top: 40px; padding: 30px; background: #fff; border-radius: 20px; border: 3px solid var(--border); box-shadow: 0 8px 30px rgba(236,72,153,0.08); text-align: left; }
.seo-content h2 { font-size: 20px; color: var(--primary); font-weight: 800; text-align: center; margin-bottom: 30px; background: #fff5f7; padding: 15px; border-radius: 20px; border: 2px dashed var(--border); }
.seo-content h3 { font-size: 16px; color: #4a5568; margin-top: 30px; margin-bottom: 15px; font-weight: 700; display: inline-block; background: var(--bg-main); padding: 8px 16px; border-radius: 20px; border: 2px solid var(--border); }
.seo-content p { color: #4a5568; margin-bottom: 20px; line-height: 1.8; font-size: 14px; font-weight: 500; }
.seo-content dl { margin-top: 30px; background: #fff; border: 2px dashed var(--border); padding: 25px; border-radius: 16px; }
.seo-content dt { font-weight: 900; color: var(--primary); margin-bottom: 8px; margin-top: 15px; font-size: 15px; }
.seo-content dt::before { content: "Q. "; color: var(--accent); }
.seo-content dd { margin-bottom: 20px; margin-left: 0; font-weight: 600; color: #4a5568; line-height: 1.8; font-size: 14px; }

/* =========================================
 * §3 共通スイープ修正（01基準 → Pop & Casualテーマへ翻案）
 * 構造・機能は共通、配色は06のトークン（--primary:ピンク / --secondary:黄 / --accent:青 / --border:#333）に差替。
 * ポップ調＝丸pill・下方向ハード影(0 4px 0)・900・押下でtranslateY。すべてCSSのみ・インラインstyle不追加。
 * ※削除ボタン(.item__del)は箱の外側配置＝重なりなしのため §3-8 は対象外。
 * ========================================= */

/* §3-1 AI志望動機モーダル(#modal)はエンジンが .is-open で開く（hidden属性は外さない）。 */

/* §3-3 モーダル内ボタン — UA既定を解消。副＝白pill+影、主＝青塗り、破壊的＝赤。
 * ※.data-clear__btn / .item__del は既にテーマ化済のため対象外。 */
.pm-btn,
#pmCropRetry, #pmCropConfirm,
.modal__foot button,
.edu-modal__apply, .edu-modal__cancel,
#mpLogout {
  background: #fff;
  border: 3px solid var(--border);
  color: var(--border);
  padding: 12px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  font-family: inherit;
  box-shadow: 0 4px 0 var(--border);
  transition: transform .1s, box-shadow .1s;
}
.pm-btn:active,
#pmCropRetry:active,
.modal__foot button[data-close]:active,
.edu-modal__cancel:active,
#mpLogout:active { transform: translateY(4px); box-shadow: 0 0 0 var(--border); }

/* 一次ボタン（青塗り・白字）＝主要アクション。06の #authSubmit / .btn--next と同調。 */
.pm-btn--prim,
#pmCropConfirm,
#modalAction,
.edu-modal__apply {
  background: var(--accent);
  border: 3px solid var(--border);
  color: #fff;
}

/* 破壊的アクション（退会）＝赤で明示 */
#mpDelete {
  background: #e63946;
  border: 3px solid var(--border);
  color: #fff;
  padding: 12px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  font-family: inherit;
  box-shadow: 0 4px 0 var(--border);
  transition: transform .1s, box-shadow .1s;
}
#mpDelete:active { transform: translateY(4px); box-shadow: 0 0 0 var(--border); }

/* 汎用モーダルのヘッダー ×（閉じる）＝枠なしの控えめクローズ */
.modal__head button[data-close] {
  background: none;
  border: none;
  color: var(--border);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

/* §3-2 学歴自動計算モーダルの select/number 整形＋レイアウト整頓（06のフィールド体裁に合わせる） */
.edu-modal__box h3 { font-size: 20px; color: var(--accent); margin-bottom: 18px; text-align: center; }
.edu-modal__box > label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 900; color: var(--primary); }

.edu-modal__box select,
.edu-modal__box input[type="number"] {
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 15px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  font-weight: bold;
  color: var(--border);
  box-shadow: inset 0 3px 0 rgba(0,0,0,0.05);
}

.edu-modal__box select:focus,
.edu-modal__box input[type="number"]:focus {
  outline: none;
  background: #fdfae3;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(17,138,178,0.2);
}

.edu-sub-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: bold; color: var(--border); }

.edu-sub-row input[type="number"] { width: 84px; }
.edu-sub-hint { color: #999; font-size: 12px; }

/* §3-9 「自動計算」ボタンが直下の学歴入力枠と密着していたので余白を確保 */
.edu-autocalc-btn { display: inline-block; margin-bottom: 20px; }

/* §3-6 ヘッダーのログイン/新規登録リンク（本番は auth.js が状態で上書き） */
.authbar { display: flex; gap: 12px; align-items: center; }
.authbar__btn { background: var(--secondary); border: 2px solid var(--border); color: var(--border); padding: 7px 16px; border-radius: 20px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 900; box-shadow: 0 3px 0 var(--border); }
.authbar__btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--border); }

/* §3-4/§3-5 認証モーダルの中身（本物文言・06の配色）＋作成/スキップ同幅 */
.authm__title { font-size: 20px; font-weight: 900; color: var(--primary); text-align: center; margin: 0 0 8px; }
.authm__lead { font-size: 12.5px; color: #4a5568; text-align: center; margin: 0 0 20px; line-height: 1.7; font-weight: 500; }
.authm__box .field { margin-bottom: 14px; }
.authm__box .field label { display: block; font-size: 13px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.authm__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.6; color: #4a5568; font-weight: 500; margin: 8px 0 16px; }

.authm__consent a { color: var(--accent); font-weight: 900; }
.authm__optin { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4a5568; font-weight: 900; margin: 10px 0 4px; cursor: pointer; }
.authm__optin-desc { font-size: 13px; color: var(--primary); font-weight: 900; line-height: 1.6; text-align: center; margin: 2px 0 8px; }
.authm__note { font-size: 11px; color: #4a5568; font-weight: 500; line-height: 1.7; margin: 0 0 16px; }
.authm__forgot { text-align: right; font-size: 12px; margin: -6px 0 14px; }
.authm__forgot a { color: var(--accent); font-weight: 900; text-decoration: none; }
.authm__forgot a:hover { text-decoration: underline; }
.authm__forgot-lead { font-size: 12px; color: #4a5568; font-weight: 500; line-height: 1.7; margin: 0 0 16px; }
.authm__switch { text-align: center; font-size: 12.5px; color: #4a5568; font-weight: 500; margin-top: 20px; line-height: 1.9; }
.authm__switch a { color: var(--accent); font-weight: 900; text-decoration: none; }
.authm__switch a:hover { text-decoration: underline; }
/* 送信＝全幅の主ボタン／スキップ＝同じ全幅の副ボタン（box-sizing:border-boxで幅一致） */
.authm__skip { display: block; width: 100%; margin-top: 12px; background: #fff; border: 3px solid var(--border); color: var(--border); padding: 14px; border-radius: 20px; font-size: 15px; font-weight: 900; cursor: pointer; font-family: inherit; box-shadow: 0 4px 0 var(--border); }
.authm__skip:active { transform: translateY(4px); box-shadow: 0 0 0 var(--border); }

/* §3-10 プログレス完了ステップ ＝ 青（保留グレー→完了ブルー→現在ピンク の階層。バッジ丸も塗り分け） */
.progress__step.is-done { color: var(--accent); }
.progress__step.is-done span { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =========================================
 * フッター — ピンク帯（ロゴと同じ --primary）。本番 footer.php の構成を踏襲。ポップ調の太黒枠を上辺に。
 * ========================================= */
.sfoot { background: var(--primary); color: #fff; margin-top: 50px; padding: 36px 20px; border-top: 4px solid var(--border); }
.sfoot__wrap { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sfoot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.sfoot__links a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 900; opacity: 0.95; }
.sfoot__links a:hover { opacity: 1; text-decoration: underline; }
.sfoot__copy { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: bold; }

/* mpModal本物化: mpm__* (Rirekisy parity) */

.mpm__logout{background:none;border:0;color:#4a5568;text-decoration:underline;cursor:pointer;font-size:13px;font-family:inherit;}
.mpm__email{font-size:12.5px;color:#4a5568;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.mpm__item{border:1px solid var(--border);border-radius:10px;padding:12px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}

.mpm__type{display:inline-block;font-weight:700;font-size:11.5px;color:var(--primary);border:1px solid var(--primary);border-radius:999px;padding:1px 9px;margin-bottom:4px;}
.mpm__fmt{font-weight:700;color:#4a5568;font-size:13.5px;}
.mpm__date{font-size:12px;color:#4a5568;margin-top:2px;}
.mpm__btn{display:inline-block;padding:8px 14px;border-radius:9px;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer;font-family:inherit;border:1px solid var(--border);background:var(--card-bg);color:#4a5568;transition:border-color .15s,filter .15s;}
.mpm__btn:hover{border-color:var(--primary);}
.mpm__btn--dl{background:var(--accent);color:#fff;border-color:var(--accent);}
.mpm__btn--edit{background:var(--primary);color:#fff;border-color:var(--primary);}
.mpm__btn--dl:hover{filter:brightness(1.03);}
.mpm__empty{font-size:13.5px;color:#4a5568;line-height:1.8;}
.mpm__empty a{color:var(--primary);font-weight:700;}

.mpm__new{display:inline-block;font-size:13px;color:var(--primary);font-weight:700;text-decoration:none;}

.mpm__foot{margin-top:20px;padding-top:14px;border-top:1px solid var(--border);text-align:right;}
.mpm__delete{background:none;border:0;color:#4a5568;font-size:12px;cursor:pointer;font-family:inherit;text-decoration:underline;padding:0;}
.mpm__delete:hover{color:#d05a5a;}
.mpm__delete:disabled{opacity:.6;cursor:default;}

/* AI生成モーダルのボタン間隔（閉じる/生成する）を確保 */
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* =========================================
 * 証明写真モーダル（レイアウト）
 * 本体 rirekisy.jp と同一のクラス契約。囲み（.pm-choose/.pm-canvas-wrap/
 * .pm-actions/.pm-preview/.pm-compare）ごとに並びを決める。これが無いと
 * canvas と同じ行にボタンが流れ込み、「選び直す」が写真の右へ回り込む。
 * ========================================= */
.pm-sec[hidden] { display: none; }
.pmodal__box { max-height: calc(100vh - 36px); overflow-y: auto; }
.pmodal__title { font-size: 17px; font-weight: 800; color: #333; text-align: center; margin: 0 0 4px; }
.pmodal__lead { font-size: 12px; color: #666; text-align: center; line-height: 1.7; margin: 0 0 16px; }

.pm-choose { display: flex; flex-direction: column; gap: 10px; }

.pm-canvas-wrap { display: flex; justify-content: center; margin: 4px 0 14px; }
#pmCanvas { width: 270px; height: 360px; max-width: 100%; touch-action: none; cursor: grab; }

.pm-actions { display: flex; gap: 10px; margin-top: 4px; }
.pm-actions .pm-btn { flex: 1; width: auto; }
.pm-actions--col { flex-direction: column; }
.pm-actions--col .pm-btn { width: 100%; }

.pm-preview { display: flex; justify-content: center; margin-bottom: 14px; }
.pm-preview img { width: 180px; height: 240px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }

.pm-gender { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; font-size: 13px; color: #333; }
.pm-gender__label { font-weight: 700; font-size: 12px; color: #666; }
.pm-gender label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

.pm-note { font-size: 11px; color: #666; line-height: 1.7; margin: 12px 0 0; text-align: left; }

.pm-loading { text-align: center; padding: 30px 0; color: #666; font-size: 13px; line-height: 1.8; }
.pm-spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 16px; animation: pmspin .9s linear infinite; }
@keyframes pmspin { to { transform: rotate(360deg); } }

.pm-compare { display: flex; gap: 12px; margin-bottom: 16px; }
.pm-compare .pm-pick { flex: 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; background: #fff; border: 3px solid var(--border); border-radius: 12px; cursor: pointer; font-family: inherit; }
.pm-compare .pm-pick img { width: 100%; max-width: none; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; display: block; }
.pm-compare .pm-pick span { font-size: 12.5px; font-weight: 700; color: #333; }
.pm-compare .pm-pick.is-active { border-color: var(--primary); }

.pm-btn--ai { background:var(--accent);color:#fff;border-color:var(--accent); }
.pm-btn--ghost { background: none; border: none; color: #666; text-decoration: underline; font-size: 12.5px; padding: 6px; box-shadow: none; }

/* ×ボタンをボックス外（top/right がマイナス）に置く意匠のため、縦スクロールは
 * .pmodal__box ではなくモーダル全体で受ける。ボックス側で overflow を持つと
 * 外に出た×がはみ出し扱いになり、横スクロールバーが出てしまう。 */
.pmodal { align-items: flex-start; overflow-y: auto; padding: 40px 24px; }
.pmodal__backdrop { position: fixed; }
.pmodal__box { margin: auto; max-height: none; overflow-y: visible; }

/* 狭い画面でも canvas(270x360) を縮めない。photo.js はドラッグ量を canvas の
 * 実ピクセルとして扱うため、CSSで縮小すると操作量と表示がずれ、3:4も崩れる。
 * そこでキャンバスではなくモーダル側の幅・余白で270pxを確保する。 */
@media (max-width: 460px) {
  .pmodal__box { width: calc(100% - 16px); padding-left: 14px; padding-right: 14px; }
}
