/* ============================================================
   LPメーカー — エグゼクティブ・スタジオ（墨 × 真鍮）
   ============================================================ */
:root {
  --bg: #0b0c0f;
  --panel: #131418;
  --panel-2: #17181d;
  --line: #23252c;
  --line-soft: #1c1e24;
  --text: #eae8e1;
  --dim: #8e919c;
  --faint: #5d606b;
  --brass: #c5a572;
  --brass-bright: #d9bd8b;
  --brass-deep: #a8854f;
  --brass-soft: rgba(197, 165, 114, 0.14);
  --font-ui: "Zen Kaku Gothic New", sans-serif;
  --font-display: "Shippori Mincho B1", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* hidden属性は表示プロパティ指定（.guideのdisplay:flex等）より常に優先する */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--font-ui);
  background:
    radial-gradient(1100px 540px at 90% -12%, rgba(197, 165, 114, 0.05), transparent 60%),
    radial-gradient(800px 460px at -8% 112%, rgba(197, 165, 114, 0.03), transparent 60%),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- ヘッダー ---------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 15, 0.88);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.brand { display: flex; align-items: center; gap: 15px; }

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--brass);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(197, 165, 114, 0.45);
  border-radius: 4px;
  background: transparent;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-text p {
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.22em;
  margin-top: 3px;
}

.header-actions { display: flex; align-items: center; gap: 9px; }

.save-status {
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.14em;
  margin-right: 6px;
  transition: color 0.3s;
}
.save-status.saved { color: var(--brass); }

/* ---------- ボタン ---------- */
.btn {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 9px 17px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn:hover { border-color: #3a3d47; background: var(--panel-2); }

.btn.primary {
  background: linear-gradient(170deg, var(--brass-bright), var(--brass-deep));
  border-color: transparent;
  color: #17120a;
  box-shadow: 0 2px 14px rgba(197, 165, 114, 0.22);
}
.btn.primary:hover { box-shadow: 0 4px 20px rgba(197, 165, 114, 0.38); filter: brightness(1.04); }

.btn.secondary {
  border-color: rgba(197, 165, 114, 0.5);
  color: var(--brass);
  background: transparent;
}
.btn.secondary:hover { background: var(--brass-soft); border-color: var(--brass); }

.btn.ghost { background: transparent; border-color: transparent; color: var(--dim); }
.btn.ghost:hover { color: var(--text); background: var(--panel); border-color: var(--line); }

/* ---------- レイアウト ---------- */
.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* ---------- 左：エディタ ---------- */
.editor {
  width: 404px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 20px 18px 90px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.panel.open { border-color: var(--line); }

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
}
.panel-title:hover { background: rgba(255, 255, 255, 0.015); }

.panel-no {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--brass);
  letter-spacing: 0.18em;
  padding: 0;
  border: none;
}
.panel-no::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: rgba(197, 165, 114, 0.45);
  vertical-align: middle;
  margin-left: 10px;
}

.panel-title .opt {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 2px;
}

.panel-toggle { margin-left: auto; position: relative; width: 11px; height: 11px; opacity: 0.7; }
.panel-toggle::before, .panel-toggle::after {
  content: "";
  position: absolute;
  background: var(--dim);
  transition: transform 0.25s;
}
.panel-toggle::before { width: 11px; height: 1.5px; top: 5px; }
.panel-toggle::after { width: 1.5px; height: 11px; left: 5px; }
.panel.open .panel-toggle::after { transform: scaleY(0); }

.panel-body {
  display: none;
  padding: 6px 18px 20px;
  border-top: 1px solid var(--line-soft);
}
.panel.open .panel-body { display: block; padding-top: 16px; }

/* ---------- フォーム ---------- */
.field { display: block; margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 7px;
}
.field-label em {
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

input[type="text"], input[type="url"], input[type="password"], textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}
input::placeholder, textarea::placeholder { color: #4d5059; }

select {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238e919c' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* テンプレート選択 */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.template-card { cursor: pointer; display: block; }
.template-card input { display: none; }

.template-thumb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 10px;
  border-radius: 5px;
  border: 1px solid var(--line);
  transition: border-color 0.18s, box-shadow 0.18s;
  height: 66px;
}
.template-thumb i { display: block; border-radius: 2px; }

.thumb-trust { background: #ffffff; }
.thumb-trust i:nth-child(1) { height: 14px; width: 75%; background: #1d2941; }
.thumb-trust i:nth-child(2) { height: 7px; width: 55%; background: #dfe4ee; }
.thumb-trust i:nth-child(3) { height: 12px; width: 42%; background: #e8762c; border-radius: 3px; }

.thumb-feminine { background: #fdeef0; }
.thumb-feminine i:nth-child(1) { height: 14px; width: 70%; background: #e9b9c2; border-radius: 7px; }
.thumb-feminine i:nth-child(2) { height: 7px; width: 52%; background: #f6dade; border-radius: 4px; }
.thumb-feminine i:nth-child(3) { height: 12px; width: 44%; background: #e2879a; border-radius: 12px; }

.thumb-bold { background: #0e0f13; border-color: #2a2d36; }
.thumb-bold i:nth-child(1) { height: 14px; width: 80%; background: #3a3f50; }
.thumb-bold i:nth-child(2) { height: 8px; width: 60%; background: linear-gradient(transparent 40%, #f9731699 40%); }
.thumb-bold i:nth-child(3) { height: 12px; width: 46%; background: #f97316; border-radius: 3px; }

.thumb-casual { background: #fff8e0; }
.thumb-casual i:nth-child(1) { height: 14px; width: 72%; background: #f4c93f; border-radius: 7px; }
.thumb-casual i:nth-child(2) { height: 8px; width: 56%; background: #ffffff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.thumb-casual i:nth-child(3) { height: 12px; width: 44%; background: #f0a13d; border-radius: 12px; }

.thumb-pop { background: #ffffff; }
.thumb-pop i:nth-child(1) { height: 14px; width: 70%; background: #e23b3b; }
.thumb-pop i:nth-child(2) { height: 7px; width: 50%; background: #ffd23f; }
.thumb-pop i:nth-child(3) { height: 12px; width: 42%; background: #e23b3b; border: 1.5px solid #1f232b; border-radius: 4px; box-shadow: 2px 2px 0 #1f232b; }

.thumb-creative { background: linear-gradient(135deg, #f3eeff, #ffeef8); }
.thumb-creative i:nth-child(1) { height: 14px; width: 70%; background: linear-gradient(90deg, #8b5cf6, #ec6cb9); border-radius: 7px; }
.thumb-creative i:nth-child(2) { height: 7px; width: 52%; background: #e4dcf7; border-radius: 4px; }
.thumb-creative i:nth-child(3) { height: 12px; width: 44%; background: linear-gradient(90deg, #a78bfa, #f0a6d8); border-radius: 12px; }

.thumb-colorful { background: #ffffff; }
.thumb-colorful i:nth-child(1) { height: 14px; width: 72%; background: #25303e; }
.thumb-colorful i:nth-child(2) { height: 8px; width: 56%; background: linear-gradient(90deg, #e85b88 0 33%, #3fae6a 33% 66%, #f2b705 66% 100%); border-radius: 4px; }
.thumb-colorful i:nth-child(3) { height: 12px; width: 42%; background: #3fae6a; border-radius: 12px; }

.thumb-sharp { background: #0f1014; border-color: #2a2d36; }
.thumb-sharp i:nth-child(1) { height: 14px; width: 78%; background: linear-gradient(90deg, #e6ebf2, #8a97a8); }
.thumb-sharp i:nth-child(2) { height: 7px; width: 48%; background: #2c313b; }
.thumb-sharp i:nth-child(3) { height: 12px; width: 44%; background: linear-gradient(90deg, #c4cdd9, #6f7d8f); border-radius: 12px; }

.template-card input:checked + .template-thumb {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}

.template-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.08em;
}
.template-card input:checked ~ .template-name { color: var(--brass-bright); }
.template-desc {
  display: block;
  font-size: 10px;
  color: var(--dim);
  margin-top: 2px;
  line-height: 1.5;
}

/* カラー入力 */
.color-input-wrap { display: flex; align-items: center; gap: 10px; }
input[type="color"] {
  width: 44px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  padding: 3px;
}
#accent-code { font-size: 12px; color: var(--dim); letter-spacing: 0.08em; }

/* 画像コントロール */
.img-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.img-thumb {
  width: 76px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.img-thumb.sm { width: 40px; height: 40px; border-radius: 50%; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type="file"] { display: none; }
.btn.sm { font-size: 11px; padding: 6px 11px; }
.row-imgline { display: flex; align-items: center; gap: 8px; }

/* 参考LP取り込み */
.ref-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ref-thumbs img {
  width: 64px;
  height: 88px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: border-color 0.15s, transform 0.15s;
}
.ref-thumbs img:hover { border-color: var(--brass); transform: translateY(-2px); }

.hint {
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--faint);
  margin-top: 7px;
  letter-spacing: 0.03em;
}
.ai-status { color: var(--dim); }
.ai-status.err { color: #d98a7a; }
.ai-status.ok { color: var(--brass); }

.btn.wide { width: 100%; padding: 11px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--line); background: var(--panel); box-shadow: none; filter: none; }
.btn.primary:disabled:hover { background: linear-gradient(170deg, var(--brass-bright), var(--brass-deep)); }

.ai-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
}
.ai-divider::before, .ai-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.ai-divider span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--brass);
}

/* 参考拡大表示 */
.ref-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
  cursor: zoom-out;
}
.ref-lightbox img {
  max-width: min(860px, 92vw);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* セクション構成（並べ替え） */
.order-list { display: flex; flex-direction: column; gap: 6px; }
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--panel-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.order-row.is-hidden { opacity: 0.45; }
.order-row.is-hidden .order-name { text-decoration: line-through; }
.order-actions { display: flex; gap: 5px; }
.order-actions button {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.order-actions button:hover:not(:disabled) { color: var(--brass); border-color: rgba(197, 165, 114, 0.5); }
.order-actions button:disabled { opacity: 0.3; cursor: default; }

/* 初回ガイド */
.guide {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.guide-card {
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 38px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.guide-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin-bottom: 12px;
}
.guide-card h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.guide-card ol { margin: 0 0 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.guide-card li { font-size: 13.5px; line-height: 1.8; color: var(--dim); }
.guide-card li b { color: var(--text); }
.guide-sub { font-size: 11.5px; color: var(--faint); line-height: 1.8; margin-bottom: 20px; }

/* 可変リスト */
.list-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }

.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--panel-2);
}
.list-row .row-inputs { display: flex; flex-direction: column; gap: 6px; }
.row-pair { display: grid; grid-template-columns: 96px 1fr; gap: 6px; }

.row-del {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--faint);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  margin-top: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.row-del:hover { color: #d98a7a; border-color: #d98a7a44; }

.add-row {
  width: 100%;
  font-size: 11.5px;
  padding: 9px;
  background: transparent;
  border-style: dashed;
  border-color: var(--line);
  color: var(--dim);
  letter-spacing: 0.1em;
}
.add-row:hover { color: var(--brass); border-color: rgba(197, 165, 114, 0.5); background: transparent; }

/* チェック（トグル） */
.check-field {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-bottom: 13px;
  user-select: none;
}
.check-field input[type="checkbox"] {
  appearance: none;
  width: 34px;
  height: 19px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.check-field input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--faint);
  transition: transform 0.2s, background 0.2s;
}
.check-field input[type="checkbox"]:checked {
  background: var(--brass);
  border-color: var(--brass);
}
.check-field input[type="checkbox"]:checked::after {
  transform: translateX(15px);
  background: #17120a;
}
.check-field:has(input:checked) { color: var(--text); }

/* ---------- 右：プレビュー ---------- */
.preview-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.preview-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--faint);
}

.device-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.device-toggle button {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 19px;
  background: transparent;
  border: none;
  color: var(--dim);
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.18s, color 0.18s;
}
.device-toggle button.active {
  background: var(--brass);
  color: #17120a;
}

.preview-stage {
  flex: 1;
  min-height: 0;
  padding: 24px;
  display: flex;
  justify-content: center;
  background-image: radial-gradient(rgba(234, 232, 225, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

#preview {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: max-width 0.35s ease;
}
.preview-stage.sp #preview { max-width: 390px; }

/* ---------- トースト ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 16px);
  background: var(--text);
  color: #15161a;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 26px;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 99;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- レスポンシブ（編集画面自体） ---------- */
@media (max-width: 900px) {
  body { overflow: auto; }
  .workspace { flex-direction: column; }
  .editor { width: 100%; border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .preview-area { min-height: 80vh; }
  .app-header { flex-wrap: wrap; }
  .header-actions { flex-wrap: wrap; }
}

/* ============================================================
   テンプレートストア
   ============================================================ */
body.store-open { overflow: hidden; }

.store {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    radial-gradient(1100px 540px at 90% -12%, rgba(197, 165, 114, 0.06), transparent 60%),
    var(--bg);
  overflow-y: auto;
  padding: 28px clamp(16px, 4vw, 48px) 48px;
}

.store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1380px;
  margin: 0 auto 26px;
}
.store-brand { display: flex; align-items: flex-start; gap: 14px; }
.store-brand .brand-mark { flex-shrink: 0; }
.store-brand h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.store-brand p { font-size: 12.5px; color: var(--dim); line-height: 1.8; max-width: 560px; }
.store-actions { display: flex; gap: 10px; }

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 316px);
  justify-content: center;
  gap: 22px;
  max-width: 1380px;
  margin: 0 auto;
}

.store-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.store-card:hover, .store-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  outline: none;
}

.store-thumb {
  height: 398px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.store-thumb iframe {
  width: 1280px;
  height: 1620px;
  border: 0;
  transform: scale(0.2461); /* 314.6 / 1280 */
  transform-origin: 0 0;
  pointer-events: none;
}
.store-thumb::after { /* クリックがiframeに吸われないように覆う */
  content: "";
  position: absolute;
  inset: 0;
}

.store-meta {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.store-meta b { font-size: 14.5px; letter-spacing: 0.04em; }
.store-meta span { font-size: 11px; color: var(--faint); letter-spacing: 0.03em; }
.store-meta .store-use { margin-top: 10px; }

.store-note {
  max-width: 1380px;
  margin: 26px auto 0;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.03em;
}

/* ---------- 内容ベタ貼りモーダル ---------- */
.content-card { max-width: 580px; width: 100%; }
.content-card textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.75;
  padding: 12px 14px;
  resize: vertical;
  min-height: 200px;
}
.content-card textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
  outline: none;
}
.content-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
