/* テンプレート編集画面（freetemplate-core 1.11.0、2026-11-04）。サイトと同じくコルクの背景に幅1100pxの白い箱 */
:root { --fe-ink: #222; --fe-muted: #666; --fe-line: #e3ddd3; --fe-soft: #f6f3ee; --fe-accent: #e8541c; --fe-blue: #1f6fb5; --fe-ok: #2f8a4c; --fe-warn: #a35400; --fe-ng: #c62828; }
* { box-sizing: border-box; }
body { margin: 0; background: #c8a872 url(../../../../img/bg_body.jpg) repeat top center; color: var(--fe-ink); font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 15px; line-height: 1.7; }
.fe-box { max-width: 1100px; margin: 0 auto; background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.fe-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--fe-line); }
.fe-head a { color: inherit; text-decoration: none; }
.fe-head__site { font-weight: 900; font-size: 17px; }
.fe-head__back { font-size: 13px; color: var(--fe-blue) !important; }
.fe-preview { background: #fff4d6; color: #7a5200; font-size: 13px; padding: 8px 20px; }
.fe-main { padding: 20px; flex: 1; }
.fe-title { font-size: 21px; margin: 0 0 4px; }
.fe-lead { margin: 0 0 18px; color: var(--fe-muted); font-size: 14px; }
.fe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: start; }
.fe-pv { position: sticky; top: 12px; }
.fe-pv canvas { display: block; width: 100%; height: auto; border: 1px solid var(--fe-line); border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); background: #fff; }
.fe-panel { border: 1px solid var(--fe-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.fe-panel h2 { font-size: 15px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.fe-panel h2 span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fe-ink); color: #fff; font-size: 12px; }
.fe-l { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 4px; }
.fe-panel input[type=text], .fe-panel input[type=url], .fe-panel textarea, .fe-panel select { width: 100%; font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid #cfc8bc; border-radius: 8px; background: #fff; }
.fe-panel input[type=file] { max-width: 100%; font-size: 14px; }
.fe-panel textarea { resize: vertical; min-height: 64px; }
.fe-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fe-row .fe-btn { flex: 1 1 0; }
.fe-sw { display: flex; gap: 8px; flex-wrap: wrap; }
.fe-sw button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; outline: 1px solid #bbb; cursor: pointer; }
.fe-sw button[aria-pressed="true"] { outline: 3px solid var(--fe-ink); }
.fe-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-top: 10px; }
.fe-chk[hidden] { display: none; }
.fe-chk input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.fe-hint { font-size: 12px; color: var(--fe-muted); margin-top: 4px; }
.fe-center { text-align: center; }
.fe-msg { display: none; font-size: 13px; margin-top: 6px; padding: 6px 10px; border-radius: 6px; }
.fe-msg.show { display: block; }
.fe-msg.ok { background: #eaf6ee; color: var(--fe-ok); }
.fe-msg.warn { background: #fff4e5; color: var(--fe-warn); }
.fe-msg.ng { background: #fdecec; color: var(--fe-ng); }
.fe-seg { display: flex; border: 1px solid #cfc8bc; border-radius: 8px; overflow: hidden; }
.fe-seg button { flex: 1 1 0; border: none; background: #fff; padding: 9px 6px; font: inherit; font-size: 13px; cursor: pointer; }
.fe-seg button + button { border-left: 1px solid #cfc8bc; }
.fe-seg button[aria-pressed="true"] { background: var(--fe-ink); color: #fff; }
.fe-dest { font-size: 13px; background: var(--fe-soft); border-radius: 8px; padding: 8px 10px; margin-top: 8px; word-break: break-all; }
.fe-dest b { font-size: 15px; }
.fe-btn { display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.fe-btn--main { width: 100%; background: var(--fe-accent); color: #fff; font-size: 17px; padding: 15px 18px; box-shadow: 0 3px 0 #b33d10; margin-top: 12px; }
.fe-btn--sub { background: var(--fe-soft); color: var(--fe-ink); border: 1px solid var(--fe-line); font-size: 13px; }
.fe-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.fe-btn[hidden] { display: none; }
.fe-link { background: none; border: none; padding: 0; color: var(--fe-blue); text-decoration: underline; font: inherit; cursor: pointer; }
.fe-shop { margin-top: 12px; background: #eef5fb; border: 1px solid #c7dcef; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.fe-shop[hidden] { display: none; }
.fe-ctrl .ft-ad { margin: 28px auto 0; text-align: center; }
.fe-ctrl .ft-ad__label { display: block; font-size: 11px; color: #999; }
.fe-foot { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 16px 20px; border-top: 1px solid var(--fe-line); font-size: 13px; color: var(--fe-muted); }
.fe-foot a { color: inherit; }
dialog#fe-terms { border: none; border-radius: 14px; max-width: 560px; width: calc(100% - 32px); padding: 20px; font-size: 14px; }
dialog#fe-terms::backdrop { background: rgba(0, 0, 0, .45); }
dialog#fe-terms h2 { font-size: 17px; margin-top: 0; }
dialog#fe-terms ul { padding-left: 1.2em; }
.fe-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px); }
.fe-toast.show { opacity: 1; }
@media (max-width: 820px) {
  .fe-grid { grid-template-columns: minmax(0, 1fr); }
  .fe-pv { position: static; }
  .fe-pv canvas { width: auto; max-width: 100%; max-height: 62vh; margin: 0 auto; }
  .fe-main { padding: 16px; }
}
