:root{
  --bg:#fff7fb;
  --panel:#ffffff;
  --ink:#2f2430;
  --muted:#806d7b;
  --line:#efd6e4;
  --pink:#ff72b7;
  --purple:#8b75ff;
  --blue:#55c7ff;
  --shadow:0 18px 44px rgba(55,29,54,.14);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 10% 10%,rgba(255,120,184,.20),transparent 26%),
    radial-gradient(circle at 86% 4%,rgba(139,117,255,.16),transparent 26%),
    var(--bg);
}
button,input{font:inherit}
button{cursor:pointer}
a{color:inherit}
.app{max-width:1440px;margin:0 auto}
.hero{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:18px;
  padding:22px;
}
.hero>div:first-child{
  flex:1;
  padding:22px 24px;
  border-radius:28px;
  background:
    radial-gradient(circle at top right, rgba(139,117,255,.16), transparent 38%),
    radial-gradient(circle at left bottom, rgba(255,120,184,.12), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(245,247,255,.88));
  border:1px solid rgba(190,176,214,.45);
  box-shadow:0 18px 40px rgba(111,86,140,.10);
}
.brand{
  display:inline-flex;
  margin-bottom:10px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(228,176,203,.7);
  color:#b05c87;
  font-size:12px;
  font-weight:900;
}
.hero h1{margin:0;font-size:clamp(28px,4vw,44px);line-height:1.1}
.hero h1 span{
  display:inline-flex;
  vertical-align:middle;
  margin-left:8px;
  padding:7px 11px;
  border-radius:999px;
  background:#fff;
  color:#8b75ff;
  border:1px solid rgba(139,117,255,.2);
  font-size:13px;
}

/* =========================================================
   Pro v021: premium logo title image
   - 既存のテキスト見出しを透過PNGロゴへ置換
   ========================================================= */
.hero-logo-title{
  margin:0;
  line-height:0;
}
.hero-logo-title img{
  display:block;
  width:min(100%, 760px);
  max-height:210px;
  object-fit:contain;
  object-position:left center;
  filter:drop-shadow(0 12px 22px rgba(139,117,255,.18));
}
.visually-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
.hero p{margin:12px 0 0;color:var(--muted);line-height:1.7}
.hero-nav{
  display:grid;
  gap:10px;
  align-content:start;
  min-width:160px;
}
.hero-nav a{
  display:block;
  text-decoration:none;
  padding:13px 14px;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 10px 24px rgba(81,60,109,.08);
  font-weight:900;
  text-align:center;
}
.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 430px;
  gap:18px;
  padding:0 22px 24px;
  align-items:start;
}
.preview-card,.panel{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(239,214,228,.95);
  border-radius:24px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
}
.preview-card{padding:18px}
.preview-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.preview-head strong{display:block;font-size:18px}
.preview-head small{display:block;color:var(--muted);margin-top:3px}
.mode-pill{
  border-radius:999px;
  padding:8px 11px;
  color:#fff;
  font-weight:1000;
  background:linear-gradient(135deg,var(--pink),var(--purple));
}
.stage-wrap{
  width:min(72vh,100%);
  max-width:650px;
  aspect-ratio:1/1;
  margin:0 auto;
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 22px 54px rgba(44,27,48,.2);
  touch-action:none;
}
#previewCanvas{display:block;width:100%;height:100%;background:#fff;touch-action:none}
.hint,.subnote{font-size:12px;color:var(--muted);line-height:1.6}
.hint{text-align:center;margin-top:12px}
.panel{
  position:sticky;
  top:12px;
  max-height:calc(100vh - 24px);
  overflow:auto;
  padding:14px;
}
.notice{
  padding:13px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(247,244,255,.9));
  border:1px solid rgba(139,117,255,.18);
}
.notice strong{display:block;color:#6b55c9}
.notice p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.6}
.block{
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.block:last-child{border-bottom:0}
.block h2{margin:0 0 10px;font-size:15px}
.block input[type="file"]{
  width:100%;
  padding:10px;
  border:1px dashed #e7b6d2;
  border-radius:14px;
  background:#fff7fb;
  font-size:13px;
}
label{display:grid;gap:6px;margin:10px 0;color:#5e4d5b;font-size:13px;font-weight:850}
input[type="range"]{width:100%}
.check{display:flex;align-items:center;gap:8px}
.mini-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.mini-actions button{
  border:1px solid var(--line);
  background:#fff;
  color:#5f4d61;
  border-radius:13px;
  padding:9px 10px;
  font-size:13px;
  font-weight:900;
}
.mini-actions .danger{color:#b43058}
.selected-info{
  min-height:38px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:10px;
  color:#6e5869;
  font-size:13px;
  line-height:1.4;
  font-weight:800;
}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.card,.chip{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:10px;
  box-shadow:0 6px 16px rgba(60,35,60,.05);
}
.card{text-align:left;min-height:66px}
.card strong{display:block;font-size:13px}
.card small{display:block;color:var(--muted);font-size:11px;line-height:1.35;margin-top:3px}
.card.active{outline:3px solid rgba(255,120,184,.32);border-color:#ff9dca}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{font-weight:900;color:#5d4a58}
.chip.active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--pink),var(--purple));
}
.primary{
  width:100%;
  border:0;
  color:#fff;
  font-weight:1000;
  border-radius:16px;
  padding:13px 15px;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  box-shadow:0 14px 28px rgba(139,117,255,.24);
}

.object-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.object-actions button,.layer-item{
  border:1px solid var(--line);
  background:#fff;
  color:#5f4d61;
  border-radius:13px;
  padding:10px;
  font-size:13px;
  font-weight:900;
}
.object-actions .danger{color:#b43058}

.status{min-height:20px;margin:9px 0 0;font-size:12px;color:#7a5f72;line-height:1.45}
.action-status,.extra-status{border:1px solid var(--line);border-radius:13px;background:#fff;padding:9px 10px}
.status.ok{color:#2f8060;font-weight:800}
.status.error{color:#b43058;font-weight:800}

.secondary-primary{
  width:100%;
  border:0;
  color:#fff;
  font-weight:1000;
  border-radius:16px;
  padding:13px 15px;
  margin-top:10px;
  background:linear-gradient(135deg,var(--blue),var(--purple));
  box-shadow:0 14px 28px rgba(85,199,255,.20);
}
.qr-share-box{
  margin-top:12px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  text-align:center;
}
.qr-share-box img{
  width:180px;
  height:180px;
  max-width:82%;
  background:#fff;
  border:1px solid #eee;
  border-radius:14px;
  padding:8px;
}
.qr-share-box strong{
  display:block;
  margin-bottom:8px;
  color:#5f4d61;
}
.qr-share-box p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.qr-share-box a{
  color:#6b55c9;
  font-weight:900;
  word-break:break-all;
}


.auth-panel{
  margin-top:14px;
  border:1px solid rgba(255,120,184,.42);
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,247,252,.96));
  border-radius:22px;
  padding:15px;
  box-shadow:0 16px 38px rgba(255,120,184,.12);
}
.auth-panel strong{
  display:block;
  color:#5f4d61;
  font-size:16px;
  margin-bottom:4px;
}
.auth-panel p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:13px;
}
.auth-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin-top:12px;
}
.auth-form input{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 13px;
  font-size:16px;
  font-weight:900;
  background:#fff;
  color:#4f4350;
}
.auth-form button{
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:1000;
  color:#fff;
  background:linear-gradient(135deg,var(--pink),var(--purple));
}
.auth-status{
  margin-top:10px !important;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  padding:9px 10px;
}
.locked-control{
  opacity:.48;
  filter:grayscale(.15);
}
button:disabled,input:disabled{
  cursor:not-allowed;
  opacity:.52;
}
.canvas-wrap.auth-locked{
  position:relative;
}
.canvas-wrap.auth-locked::after{
  content:"支援キー認証後に編集できます";
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  background:rgba(42,34,46,.78);
  color:#fff;
  border-radius:999px;
  padding:8px 13px;
  font-size:12px;
  font-weight:900;
  pointer-events:none;
  white-space:nowrap;
}

@media (max-width:980px){
  .hero{flex-direction:column;padding:14px}
  .layout{grid-template-columns:1fr;padding:0 12px 24px}
  .stage-wrap{width:100%}
  .panel{position:static;max-height:none}
}
@media (max-width:560px){
  .cards{grid-template-columns:1fr}
  .hero-nav{grid-template-columns:1fr 1fr}
}


@media (max-width:560px){
  .object-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:560px){
  .auth-form{grid-template-columns:1fr}
  .auth-form button{width:100%}
}


.card.locked-control,
.chip.locked-control,
.file-btn.locked-control,
.mini-actions.locked-control,
.object-actions.locked-control{
  opacity:.42;
  filter:grayscale(.55);
}
.card.locked-control,
.chip.locked-control{
  pointer-events:none;
}
.file-btn.locked-control{
  pointer-events:none;
}


textarea,
select{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  padding:10px 11px;
  font:inherit;
  font-size:13px;
}
textarea{
  resize:vertical;
  min-height:64px;
  line-height:1.6;
}
.text-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:8px;
}
.text-grid label{
  margin:0;
}
.text-status{
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  padding:9px 10px;
}


.text-grid select{
  min-height:40px;
}
@media (max-width: 520px){
  .text-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   Pro v019: smartphone sticky preview + mobile UX controls
   - スマホだけプレビューを少し拡大
   - スマホだけ操作セクションをアコーディオン化
   - スマホだけ選択中オブジェクトのサイズバーを表示
   - PCレイアウトには影響させない
   ========================================================= */
.mobile-scale-control{
  display:none;
}
.mobile-accordion-toggle{
  all:unset;
  display:block;
  box-sizing:border-box;
  width:100%;
  margin:0 0 10px;
  color:var(--ink);
  font-size:15px;
  font-weight:900;
  line-height:1.35;
  cursor:default;
}
.mobile-accordion-icon{
  display:none;
}
.mobile-accordion-body{
  display:block;
}

@media (max-width: 560px){
  .layout{
    display:block;
    padding:0 10px 24px;
  }

  .preview-card{
    position:sticky;
    top:0;
    z-index:80;
    display:grid;
    grid-template-columns:minmax(0,1fr) min(48vw,190px);
    gap:10px;
    align-items:center;
    margin:0 -2px 12px;
    padding:10px;
    border-radius:0 0 22px 22px;
    background:rgba(255,255,255,.96);
    box-shadow:0 14px 34px rgba(55,29,54,.20);
    backdrop-filter:blur(14px);
  }

  .preview-head{
    min-width:0;
    margin:0;
    display:block;
  }

  .preview-head strong{
    font-size:14px;
    line-height:1.25;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .preview-head small{
    font-size:11px;
    line-height:1.35;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .mode-pill{
    display:inline-flex;
    margin-top:6px;
    padding:5px 8px;
    font-size:10px;
  }

  .stage-wrap{
    width:min(48vw,190px);
    max-width:190px;
    min-width:150px;
    margin:0;
    border-radius:18px;
    box-shadow:0 12px 26px rgba(44,27,48,.18);
  }

  .preview-card .hint{
    display:none;
  }

  .panel{
    position:static;
    max-height:none;
    overflow:visible;
    padding:12px;
  }

  .mobile-scale-control{
    display:block;
    margin:10px 0 10px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:16px;
    background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(247,244,255,.92));
  }

  .mobile-scale-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
    color:#5f4d61;
    font-size:13px;
  }

  #mobileScaleValue{
    display:inline-flex;
    min-width:54px;
    justify-content:center;
    padding:4px 8px;
    border-radius:999px;
    background:#fff;
    border:1px solid var(--line);
    color:#8b75ff;
    font-weight:1000;
  }

  .mobile-scale-control input[type=range]{
    width:100%;
  }

  .mobile-scale-control p{
    margin:7px 0 0;
    color:var(--muted);
    font-size:11px;
    line-height:1.55;
  }

  .mobile-scale-control.is-disabled{
    opacity:.55;
    filter:grayscale(.2);
  }

  .mobile-accordion-toggle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    width:100%;
    min-height:46px;
    margin:0;
    padding:12px 13px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 18px rgba(60,35,60,.05);
    cursor:pointer;
  }

  .mobile-accordion-icon{
    display:inline-flex;
    flex:0 0 auto;
    width:28px;
    height:28px;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    color:#fff;
    background:linear-gradient(135deg,var(--pink),var(--purple));
    font-size:18px;
    line-height:1;
  }

  .block.mobile-accordion-ready{
    padding:8px 0;
    border-bottom:0;
  }

  .block.mobile-accordion-ready .mobile-accordion-body{
    display:none;
    padding:12px 0 6px;
  }

  .block.mobile-accordion-open .mobile-accordion-body{
    display:block;
  }
}

/* Pro v018: mobile scale controls placed in sections 1/2/3 */
.mobile-scale-control-inline{
  margin-top:10px;
}
@media (min-width: 761px){
  .mobile-scale-control-inline{
    display:none !important;
  }
}


/* =========================================================
   Pro v021: text live update + terms accordion disclaimer block
   ========================================================= */
.text-live-note{
  margin-top:8px;
  padding:9px 10px;
  border:1px solid rgba(139,117,255,.18);
  border-radius:13px;
  background:rgba(247,244,255,.72);
  color:#6b55c9;
  font-weight:800;
}
.terms-box{
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,247,252,.92));
  color:#5f4d61;
  font-size:12px;
  line-height:1.72;
}
.terms-box p,
.terms-box ul{
  margin:0;
}
.terms-box h3{
  margin:6px 0 0;
  font-size:13px;
  color:#6b55c9;
}
.terms-box ul{
  padding-left:1.25em;
}
.terms-box li{
  margin:4px 0;
}
.terms-lead,
.terms-foot{
  font-weight:800;
}
@media (max-width: 560px){
  .terms-box{
    padding:12px;
    font-size:11px;
    line-height:1.7;
  }
}


/* =========================================================
   Pro v021: terms/disclaimer accordion
   - 利用上の注意・免責事項を常時表示から開閉式へ変更
   ========================================================= */
.terms-accordion{
  border:0;
}
.terms-accordion > summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 18px rgba(60,35,60,.05);
  color:var(--ink);
  font-size:15px;
  font-weight:900;
  line-height:1.35;
  cursor:pointer;
}
.terms-accordion > summary::-webkit-details-marker{
  display:none;
}
.terms-accordion > summary::after{
  content:"＋";
  display:inline-flex;
  flex:0 0 auto;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  font-size:18px;
  line-height:1;
}
.terms-accordion[open] > summary::after{
  content:"－";
}
.terms-accordion .terms-box{
  margin-top:10px;
}


@media (max-width:980px){
  .hero-logo-title img{
    width:min(100%, 680px);
    max-height:170px;
  }
}
@media (max-width:560px){
  .hero-logo-title img{
    width:100%;
    max-height:132px;
    object-position:center center;
  }
  .hero>div:first-child{
    padding:16px 16px 14px;
  }
  .hero p{
    margin-top:8px;
    font-size:13px;
    line-height:1.55;
  }
}


/* =========================================================
   Pro v022: logo title balance + cleaner hero/panel
   - ロゴは縦長感を抑え、少し横へ広げて特別感を維持
   - 説明文/操作のコツ/Pro MVP表記を削除した状態に合わせる
   ========================================================= */
.hero>div:first-child{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero-logo-title{
  max-width:980px;
  overflow:visible;
}
.hero-logo-title img{
  width:min(100%, 860px);
  max-height:165px;
  transform:scaleX(1.12);
  transform-origin:left center;
  object-fit:contain;
}
.preview-head{
  align-items:flex-start;
}
@media (max-width:980px){
  .hero-logo-title img{
    width:min(100%, 760px);
    max-height:148px;
    transform:scaleX(1.08);
  }
}
@media (max-width:560px){
  .hero-logo-title{
    max-width:100%;
  }
  .hero-logo-title img{
    width:100%;
    max-height:112px;
    transform:scaleX(1.04);
    object-position:center center;
  }
}


/* =========================================================
   Pro v023: hero balance refinement
   - PC: ロゴを中央寄せにして、横長バナーとして見せる
   - PC: brandの横伸びを防ぎ、右ナビとの一体感を調整
   - SP: ロゴが大きすぎず、固定プレビュー導線を邪魔しない
   ========================================================= */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 132px;
  align-items:stretch;
  gap:16px;
  padding:18px 22px 14px;
}
.hero>div:first-child{
  position:relative;
  min-height:172px;
  padding:18px 24px 20px;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.hero>div:first-child::before{
  content:"";
  position:absolute;
  inset:auto 5% 14px 5%;
  height:68px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(255,114,183,.10), rgba(139,117,255,.13), rgba(85,199,255,.10));
  filter:blur(18px);
  pointer-events:none;
}
.brand{
  position:absolute;
  top:16px;
  left:22px;
  z-index:2;
  width:auto;
  max-width:max-content;
  align-self:flex-start;
  margin:0;
  padding:5px 10px;
  background:rgba(255,255,255,.72);
  border-color:rgba(228,176,203,.55);
  box-shadow:0 8px 20px rgba(81,60,109,.06);
}
.hero-logo-title{
  width:min(82%, 780px);
  max-width:780px;
  margin:24px auto 0;
  text-align:center;
  z-index:1;
}
.hero-logo-title img{
  width:100%;
  height:156px;
  max-height:none;
  object-fit:fill;
  object-position:center center;
  transform:none;
  filter:drop-shadow(0 14px 24px rgba(139,117,255,.18));
}
.hero-nav{
  min-width:0;
  width:132px;
  gap:10px;
  align-content:center;
}
.hero-nav a{
  padding:12px 10px;
  border-radius:16px;
  background:rgba(255,255,255,.86);
  box-shadow:0 10px 22px rgba(81,60,109,.07);
}
@media (max-width:980px){
  .hero{
    display:flex;
    flex-direction:column;
    padding:14px;
    gap:10px;
  }
  .hero>div:first-child{
    min-height:150px;
    padding:16px 18px 16px;
  }
  .brand{
    position:static;
    margin:0 0 8px;
    align-self:flex-start;
  }
  .hero-logo-title{
    width:min(94%, 720px);
    max-width:720px;
    margin:0 auto;
  }
  .hero-logo-title img{
    width:100%;
    height:132px;
    object-fit:fill;
  }
  .hero-nav{
    width:100%;
    grid-template-columns:1fr 1fr;
    align-content:stretch;
  }
}
@media (max-width:560px){
  .hero{
    padding:10px 10px 8px;
    gap:8px;
  }
  .hero>div:first-child{
    min-height:auto;
    padding:12px 12px 10px;
    border-radius:22px;
  }
  .brand{
    font-size:11px;
    padding:4px 9px;
    margin-bottom:6px;
  }
  .hero-logo-title{
    width:100%;
    max-width:390px;
  }
  .hero-logo-title img{
    width:100%;
    height:86px;
    object-fit:fill;
  }
  .hero-nav a{
    padding:10px 10px;
    border-radius:14px;
    font-size:13px;
  }
}


/* =========================================================
   Pro v024: title-only hero + SEO/social refresh
   - タイトル枠（カード）を撤去し、ロゴ単体を主役化
   - PC/SPともに上部バランスを調整
   - OGP/Xカードを使う前提で、タイトル視認性を優先
   ========================================================= */
.hero{
  display:grid;
  gap:10px;
  padding:18px 22px 8px;
}
.hero-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.hero > div:first-child,
.hero::before,
.hero::after{
  all:unset;
}
.brand{
  position:static;
  display:inline-flex;
  margin:0;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(228,176,203,.72);
  box-shadow:0 8px 20px rgba(81,60,109,.06);
  color:#b05c87;
  font-size:12px;
  font-weight:900;
}
.hero-logo-title{
  width:100%;
  margin:0 auto;
  text-align:center;
  line-height:0;
}
.hero-logo-title img{
  display:inline-block;
  width:min(100%, 760px);
  height:auto;
  max-height:148px;
  object-fit:contain;
  object-position:center center;
  transform:scaleX(1.08);
  transform-origin:center center;
  filter:drop-shadow(0 14px 24px rgba(139,117,255,.16));
}
.hero-nav{
  display:grid;
  grid-template-columns:repeat(2,auto);
  gap:10px;
  width:auto;
  min-width:0;
  align-content:center;
}
.hero-nav a{
  display:block;
  min-width:118px;
  padding:12px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  box-shadow:0 10px 22px rgba(81,60,109,.07);
  text-decoration:none;
  font-weight:900;
  text-align:center;
}
@media (max-width:980px){
  .hero{
    padding:14px 14px 8px;
    gap:10px;
  }
  .hero-topline{
    flex-wrap:wrap;
  }
  .hero-logo-title img{
    width:min(100%, 660px);
    max-height:126px;
    transform:scaleX(1.06);
  }
}
@media (max-width:560px){
  .hero{
    padding:10px 10px 6px;
    gap:8px;
  }
  .hero-topline{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  .brand{
    font-size:11px;
    padding:4px 9px;
  }
  .hero-logo-title{
    text-align:center;
  }
  .hero-logo-title img{
    width:min(100%, 390px);
    max-height:92px;
    transform:scaleX(1.03);
  }
  .hero-nav{
    width:100%;
    grid-template-columns:1fr 1fr;
  }
  .hero-nav a{
    min-width:0;
    padding:10px 10px;
    border-radius:14px;
    font-size:13px;
  }
}


/* =========================================================
   Pro v025: title-first header balance
   - 無料版/トップを主役ボタンから補助リンクへ変更
   - ロゴを中央の主役に戻す
   - タイトル枠なし、SEO/OGP構造はv024を維持
   ========================================================= */
.hero{
  display:grid;
  grid-template-areas:
    "brand nav"
    "logo logo";
  grid-template-columns:auto auto;
  align-items:center;
  justify-content:space-between;
  row-gap:4px;
  column-gap:16px;
  padding:12px 22px 8px;
}
.hero-topline{
  display:contents;
}
.brand{
  grid-area:brand;
  position:static;
  display:inline-flex;
  width:auto;
  max-width:max-content;
  margin:0;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(228,176,203,.60);
  box-shadow:none;
  color:#b05c87;
  font-size:11px;
  font-weight:900;
}
.hero-nav{
  grid-area:nav;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:0;
  width:auto;
  min-width:0;
}
.hero-nav a{
  display:inline-flex;
  align-items:center;
  min-width:0;
  padding:4px 10px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#7a5f72;
  text-decoration:none;
  font-size:12px;
  font-weight:900;
  line-height:1.4;
}
.hero-nav a + a{
  border-left:1px solid rgba(128,109,123,.28);
}
.hero-nav a:hover{
  color:#8b75ff;
  text-decoration:underline;
  text-underline-offset:3px;
}
.hero-logo-title{
  grid-area:logo;
  width:100%;
  margin:0 auto;
  padding:0;
  text-align:center;
  line-height:0;
}
.hero-logo-title img{
  display:inline-block;
  width:min(72vw, 680px);
  height:auto;
  max-height:122px;
  object-fit:contain;
  object-position:center center;
  transform:scaleX(1.06);
  transform-origin:center center;
  filter:drop-shadow(0 12px 22px rgba(139,117,255,.15));
}
@media (max-width:980px){
  .hero{
    grid-template-areas:
      "brand nav"
      "logo logo";
    grid-template-columns:auto auto;
    padding:10px 14px 6px;
    row-gap:5px;
  }
  .hero-logo-title img{
    width:min(82vw, 620px);
    max-height:112px;
    transform:scaleX(1.04);
  }
}
@media (max-width:560px){
  .hero{
    grid-template-areas:
      "brand"
      "nav"
      "logo";
    grid-template-columns:1fr;
    justify-content:center;
    padding:8px 10px 6px;
    gap:5px;
  }
  .brand{
    justify-self:start;
    font-size:10px;
    padding:3px 8px;
  }
  .hero-nav{
    justify-self:end;
  }
  .hero-nav a{
    padding:3px 8px;
    font-size:11px;
  }
  .hero-logo-title img{
    width:min(94vw, 390px);
    max-height:82px;
    transform:scaleX(1.02);
  }
}


/* =========================================================
   Pro v026: new wide transparent title logo
   - 新しい横長・低背ロゴ画像を前提にヘッダーを再調整
   - 余白を削り、タイトルだけが自然に主役になる構成
   ========================================================= */
.hero{
  grid-template-areas:
    "brand nav"
    "logo logo";
  row-gap:2px;
  padding:10px 22px 4px;
}
.hero-logo-title{
  width:100%;
  margin:0 auto;
}
.hero-logo-title img{
  width:min(90vw, 1120px);
  height:auto;
  max-height:138px;
  object-fit:contain;
  object-position:center center;
  transform:none;
  filter:drop-shadow(0 10px 18px rgba(139,117,255,.13));
}
.brand{
  opacity:.86;
}
.hero-nav a{
  opacity:.82;
}
.hero-nav a:hover{
  opacity:1;
}
@media (max-width:980px){
  .hero{
    padding:9px 14px 4px;
    row-gap:3px;
  }
  .hero-logo-title img{
    width:min(94vw, 900px);
    max-height:112px;
  }
}
@media (max-width:560px){
  .hero{
    padding:8px 10px 4px;
    gap:4px;
  }
  .hero-logo-title img{
    width:100%;
    max-height:76px;
  }
}


/* =========================================================
   Pro v027: logo lifted upward + slightly larger
   - PCでロゴを最上部側へ寄せ、上余白の違和感を解消
   - 無料版 / トップ / ブランドは補助ナビとして上端に薄く配置
   - スマホでは視認性優先で自然な縦積みを維持
   ========================================================= */
.hero{
  position:relative;
  display:block;
  padding:8px 22px 2px;
  min-height:156px;
}
.hero-topline{
  position:absolute;
  top:6px;
  left:22px;
  right:22px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  z-index:2;
  pointer-events:none;
}
.hero-topline > *{
  pointer-events:auto;
}
.brand{
  opacity:.84;
  padding:4px 9px;
  font-size:11px;
}
.hero-nav{
  justify-content:flex-end;
  gap:0;
}
.hero-nav a{
  padding:3px 9px;
  font-size:11px;
  opacity:.78;
}
.hero-logo-title{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  width:100%;
  margin:0;
  padding-top:0;
}
.hero-logo-title img{
  width:min(96vw, 1180px);
  max-height:150px;
  margin-top:-2px;
  filter:drop-shadow(0 10px 18px rgba(139,117,255,.12));
}
@media (max-width:980px){
  .hero{
    padding:8px 14px 2px;
    min-height:136px;
  }
  .hero-topline{
    left:14px;
    right:14px;
    top:5px;
  }
  .hero-logo-title img{
    width:min(97vw, 960px);
    max-height:124px;
  }
}
@media (max-width:560px){
  .hero{
    display:grid;
    grid-template-areas:
      "brand nav"
      "logo logo";
    grid-template-columns:auto auto;
    align-items:start;
    row-gap:4px;
    column-gap:10px;
    padding:6px 10px 2px;
    min-height:auto;
  }
  .hero-topline{
    position:static;
    display:contents;
    pointer-events:auto;
  }
  .brand{
    grid-area:brand;
    justify-self:start;
    font-size:10px;
    padding:3px 8px;
  }
  .hero-nav{
    grid-area:nav;
    justify-self:end;
  }
  .hero-nav a{
    padding:3px 8px;
    font-size:11px;
  }
  .hero-logo-title{
    grid-area:logo;
  }
  .hero-logo-title img{
    width:min(100%, 430px);
    max-height:88px;
    margin-top:0;
  }
}


/* =========================================================
   Pro v028: nav buttons slightly larger / more visible
   - 無料版 / トップ を少しだけ強調
   - タイトルの主役感は維持
   ========================================================= */
.hero-nav{
  gap:8px;
}
.hero-nav a{
  padding:6px 14px;
  min-width:72px;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  border-radius:999px;
  border:1px solid rgba(210,168,190,.72);
  background:rgba(255,255,255,.78);
  color:#8b5876;
  box-shadow:0 2px 8px rgba(182,144,170,.10);
  opacity:.94;
}
.hero-nav a:hover{
  background:rgba(255,255,255,.92);
  border-color:rgba(206,154,181,.9);
  color:#7d4d69;
  box-shadow:0 3px 10px rgba(182,144,170,.14);
}
@media (max-width:980px){
  .hero-nav{
    gap:6px;
  }
  .hero-nav a{
    padding:5px 12px;
    min-width:66px;
    font-size:12px;
  }
}
@media (max-width:560px){
  .hero-nav{
    gap:6px;
  }
  .hero-nav a{
    padding:4px 10px;
    min-width:58px;
    font-size:11px;
    border-radius:999px;
  }
}


/* =========================================================
   Pro v029: PC/スマホ共通アコーディオン + 免責控えめ化
   - 各操作セクションをPCでも俯瞰しやすい開閉式へ
   - 利用上の注意・免責事項は主要操作と同格に見せず、補助情報として控えめに
   ========================================================= */

/* PCでもアコーディオン表示 */
.mobile-accordion-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:44px;
  margin:0;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.92);
  box-shadow:0 6px 16px rgba(60,35,60,.04);
  color:var(--ink);
  font-size:15px;
  font-weight:900;
  line-height:1.35;
  cursor:pointer;
}
.mobile-accordion-icon{
  display:inline-flex;
  flex:0 0 auto;
  width:26px;
  height:26px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  font-size:17px;
  line-height:1;
}
.block.mobile-accordion-ready{
  padding:8px 0;
  border-bottom:0;
}
.block.mobile-accordion-ready .mobile-accordion-body{
  display:none;
  padding:12px 0 6px;
}
.block.mobile-accordion-open .mobile-accordion-body{
  display:block;
}

/* 免責事項は補助情報レイヤへ落とす */
.terms-block{
  margin-top:8px;
  padding:6px 0 0;
  border-bottom:0;
}
.terms-accordion > summary{
  min-height:auto;
  padding:8px 10px;
  border:1px dashed rgba(128,109,123,.24);
  border-radius:13px;
  background:rgba(255,255,255,.56);
  box-shadow:none;
  color:rgba(95,77,91,.78);
  font-size:12px;
  font-weight:800;
}
.terms-accordion > summary::after{
  width:22px;
  height:22px;
  background:rgba(139,117,255,.70);
  font-size:14px;
}
.terms-accordion .terms-box{
  margin-top:8px;
  padding:11px;
  border-style:dashed;
  background:rgba(255,255,255,.64);
  color:rgba(95,77,91,.86);
  font-size:11px;
  line-height:1.68;
}
.terms-box h3{
  font-size:12px;
}
.terms-lead,
.terms-foot{
  font-weight:700;
}

@media (max-width:560px){
  .mobile-accordion-toggle{
    min-height:46px;
    padding:12px 13px;
  }
  .terms-accordion > summary{
    padding:8px 10px;
    font-size:12px;
  }
}


/* =========================================================
   Pro v030: support key purchase guide
   - 認証欄の中で、押し売り感を出さずに購入導線を補足
   ========================================================= */
.support-key-guide{
  margin-top:8px !important;
  padding:8px 10px;
  border:1px solid rgba(139,117,255,.18);
  border-radius:13px;
  background:rgba(247,244,255,.72);
  color:#6b55c9 !important;
  font-size:12px !important;
  font-weight:800;
}
.support-key-guide a{
  color:#6b55c9;
  text-decoration:underline;
  text-underline-offset:3px;
  font-weight:1000;
}


/* =========================================================
   Pro v031: plan group accordions + title illustration adjust
   - 企画を中項目アコーディオン化
   - 文字イラストをスライダー調整。PCのみドラッグ移動ON/OFF
   ========================================================= */
.plan-groups{
  display:grid;
  gap:9px;
}
.plan-group{
  border:1px solid rgba(239,214,228,.95);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,247,252,.72));
  overflow:hidden;
  box-shadow:0 8px 20px rgba(60,35,60,.04);
}
.plan-group-toggle{
  width:100%;
  border:0;
  background:transparent;
  color:#5f4d61;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px;
  text-align:left;
  font-weight:1000;
}
.plan-group-title{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.plan-group-count{
  min-width:26px;
  height:22px;
  padding:0 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,114,183,.12);
  color:#b05c87;
  border:1px solid rgba(255,114,183,.18);
  font-size:11px;
  font-weight:1000;
}
.plan-group-icon{
  flex:0 0 auto;
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  font-size:17px;
  line-height:1;
}
.plan-group-body{
  display:none;
  padding:0 10px 10px;
}
.plan-group.open .plan-group-body{
  display:block;
}
.plan-group .cards{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.title-adjust-panel{
  display:grid;
  gap:12px;
}
.range-row{
  padding:11px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.range-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  color:#5f4d61;
}
.range-head strong{
  font-size:13px;
}
.range-head span{
  min-width:58px;
  padding:4px 8px;
  border-radius:999px;
  background:#fff7fb;
  border:1px solid rgba(255,114,183,.18);
  color:#b05c87;
  text-align:center;
  font-size:12px;
  font-weight:1000;
}
.title-adjust-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:0;
}
.title-adjust-actions button{
  width:100%;
}
.pc-only-toggle.is-active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--blue),var(--purple));
}
.title-adjust-status{
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  padding:9px 10px;
  margin-top:0;
}
.stage-wrap.title-drag-mode{
  outline:3px solid rgba(85,199,255,.32);
  outline-offset:4px;
}
.stage-wrap.title-drag-mode #previewCanvas{
  cursor:grab;
}
.stage-wrap.title-dragging #previewCanvas{
  cursor:grabbing;
}
@media (max-width:560px){
  .plan-group .cards{
    grid-template-columns:1fr;
  }
  .title-adjust-actions{
    grid-template-columns:1fr;
  }
  .pc-only-toggle{
    display:none !important;
  }
}


/* =========================================================
   Pro v032: compact UI refinements
   - 「4. 選択中オブジェクト」パネルを廃止し、主要操作をキャンバス内上部へ集約
   - 「5. 企画」を大セクション＋中項目アコーディオンの枠構造へ整理
   - 「8. 文字イラスト調整」を1つの枠にまとめて間延びを抑止
   ========================================================= */
.stage-wrap{
  position:relative;
}
.canvas-object-toolbar{
  position:absolute;
  z-index:6;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:999px;
  background:rgba(255,255,255,.78);
  box-shadow:0 12px 28px rgba(44,27,48,.16);
  backdrop-filter:blur(12px);
}
.canvas-object-toolbar button{
  min-width:74px;
  border:1px solid rgba(239,214,228,.96);
  border-radius:999px;
  padding:8px 11px;
  background:rgba(255,255,255,.96);
  color:#5f4d61;
  font-size:12px;
  font-weight:1000;
  box-shadow:0 5px 12px rgba(60,35,60,.05);
}
.canvas-object-toolbar .danger{
  color:#b43058;
}
.canvas-object-toolbar button:disabled{
  opacity:.42;
  cursor:not-allowed;
}
.plan-block{
  padding-left:6px;
  padding-right:0;
}
.plan-block>h2{
  padding-left:2px;
}
.plan-accordion-shell{
  margin-left:6px;
  padding:10px;
  border:1px solid rgba(239,214,228,.95);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,247,252,.64));
}
.plan-groups{
  gap:10px;
}
.plan-group{
  margin-left:4px;
  border-radius:17px;
  background:#fff;
}
.plan-group-toggle{
  padding:10px 11px 10px 13px;
}
.plan-group-body{
  padding:0 9px 9px 15px;
}
.plan-group .cards{
  gap:7px;
}
.title-adjust-panel{
  gap:9px;
  padding:12px;
  border:1px solid rgba(239,214,228,.95);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,247,252,.72));
}
.title-adjust-panel .range-row{
  padding:2px 0 6px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.title-adjust-panel .range-row + .range-row{
  border-top:1px dashed rgba(239,214,228,.95);
  padding-top:9px;
}
.title-adjust-panel .range-head{
  margin-bottom:5px;
}
.title-adjust-panel .title-adjust-actions{
  margin-top:2px;
}
.title-adjust-panel .subnote{
  margin:0;
}
.title-adjust-panel .title-adjust-status{
  margin-top:0;
  padding:7px 9px;
  background:rgba(255,255,255,.72);
}
@media (max-width:560px){
  .canvas-object-toolbar{
    top:8px;
    gap:5px;
    padding:6px;
    max-width:calc(100% - 16px);
  }
  .canvas-object-toolbar button{
    min-width:62px;
    padding:7px 9px;
    font-size:11px;
  }
  .plan-block{
    padding-left:2px;
  }
  .plan-accordion-shell{
    margin-left:3px;
    padding:8px;
  }
  .plan-group{
    margin-left:2px;
  }
  .plan-group-body{
    padding-left:10px;
  }
}


/* =========================================================
   Pro v033: compact UI refinements
   - 追加画像の未使用ボタン削除後の余白調整
   - キャンバス操作ボタンをキャンバス直上へ配置
   - 企画カード内にデザインセット●を統合
   ========================================================= */
.preview-toolbar-row{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 auto 8px;
  width:min(72vh,100%);
  max-width:650px;
}
.canvas-object-toolbar{
  position:static !important;
  transform:none !important;
  z-index:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:7px 10px;
  border:1px solid rgba(239,214,228,.96);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  box-shadow:0 8px 18px rgba(44,27,48,.10);
  backdrop-filter:blur(10px);
}
.stage-wrap{
  position:relative;
}
.plan-accordion-shell{
  margin-left:8px;
  padding:11px;
}
.plan-group{
  margin-left:6px;
}
.plan-group-body{
  padding:0 9px 10px 16px;
}
.plan-card-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.plan-card{
  min-height:auto;
  padding:9px;
  display:grid;
  gap:8px;
  align-content:start;
}
.plan-card-main{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  padding:0;
  font:inherit;
  cursor:pointer;
}
.plan-card-main strong{
  display:block;
  font-size:13px;
  line-height:1.35;
}
.set-dot-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-height:18px;
  align-items:center;
}
.set-dot{
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(255,114,183,.34);
  background:#fff7fb;
  padding:0;
  box-shadow:0 2px 6px rgba(60,35,60,.06);
}
.set-dot.active{
  background:linear-gradient(135deg,var(--pink),var(--purple));
  border-color:transparent;
  box-shadow:0 0 0 3px rgba(255,114,183,.20);
}
.set-dot-empty{
  color:var(--muted);
  font-size:11px;
}
.title-adjust-panel{
  padding:11px;
  gap:8px;
}
.title-adjust-panel .range-row{
  padding:0 0 7px;
}
.title-adjust-panel .range-row + .range-row{
  padding-top:7px;
}
.title-adjust-panel input[type="range"]{
  margin:0;
}
@media (max-width:560px){
  .preview-toolbar-row{
    width:100%;
    margin-bottom:7px;
  }
  .canvas-object-toolbar{
    gap:6px;
    padding:6px 8px;
    max-width:100%;
  }
  .canvas-object-toolbar button{
    min-width:62px;
    padding:7px 9px;
    font-size:11px;
  }
  .plan-card-grid{
    grid-template-columns:1fr;
  }
  .plan-accordion-shell{
    margin-left:3px;
    padding:8px;
  }
  .plan-group{
    margin-left:2px;
  }
  .plan-group-body{
    padding-left:10px;
  }
}


/* =========================================================
   Pro v034: larger design dots / mobile canvas fit / toolbar fit
   - 企画カード内のデザイン●を押しやすくし、design_set色に連動
   - スマホのキャンバス表示を拡大し、中央寄せを強化
   - キャンバス直上ボタンのはみ出しを抑止
   ========================================================= */
.preview-toolbar-row{
  width:min(78vh,100%);
  max-width:720px;
  padding:0 2px;
}
.canvas-object-toolbar{
  width:100%;
  max-width:420px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:7px;
}
.canvas-object-toolbar button{
  min-width:0;
  width:100%;
  padding:9px 10px;
  text-align:center;
  white-space:nowrap;
}
.stage-wrap{
  width:min(78vh,100%);
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}
.preview-card{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.preview-card .preview-head,
.preview-card .hint{
  width:100%;
}
.plan-card{
  gap:9px;
  padding:10px;
}
.plan-card-main strong{
  font-size:14px;
}
.set-dot-row{
  gap:9px;
  min-height:36px;
  align-items:center;
}
.set-dot{
  width:30px;
  height:30px;
  border:2px solid rgba(255,255,255,.92);
  background:linear-gradient(135deg,var(--dot-color,#ff72b7),var(--dot-sub-color,#8b75ff));
  box-shadow:0 4px 10px rgba(60,35,60,.13);
  position:relative;
  transform:translateZ(0);
}
.set-dot::after{
  content:"";
  position:absolute;
  inset:5px;
  border-radius:inherit;
  background:rgba(255,255,255,.33);
  opacity:.55;
}
.set-dot.active{
  background:linear-gradient(135deg,var(--dot-color,#ff72b7),var(--dot-sub-color,#8b75ff));
  border-color:#fff;
  box-shadow:0 0 0 4px rgba(255,114,183,.22),0 6px 14px rgba(60,35,60,.18);
}
.set-dot.active::before{
  content:"";
  position:absolute;
  inset:-6px;
  border:2px solid var(--dot-color,#ff72b7);
  border-radius:inherit;
  opacity:.42;
}
.plan-group-toggle,
.plan-card-main,
.set-dot{
  -webkit-tap-highlight-color:transparent;
}
@media (max-width:980px){
  .preview-card{
    align-items:center;
  }
  .preview-toolbar-row,
  .stage-wrap{
    width:min(100%, calc(100vw - 20px));
    max-width:none;
  }
}
@media (max-width:560px){
  .preview-card{
    padding:10px 8px 12px;
    margin-left:auto;
    margin-right:auto;
  }
  .preview-toolbar-row{
    width:100%;
    max-width:calc(100vw - 20px);
    margin:0 auto 8px;
    padding:0;
  }
  .canvas-object-toolbar{
    width:100%;
    max-width:none;
    gap:6px;
    padding:6px;
  }
  .canvas-object-toolbar button{
    min-width:0;
    padding:8px 6px;
    font-size:12px;
  }
  .stage-wrap{
    width:calc(100vw - 20px);
    max-width:100%;
    margin-left:auto;
    margin-right:auto;
    border-radius:20px;
  }
  .plan-card{
    padding:11px;
  }
  .set-dot-row{
    gap:11px;
    min-height:42px;
  }
  .set-dot{
    width:36px;
    height:36px;
  }
  .set-dot::after{
    inset:7px;
  }
}


/* =========================================================
   Pro v036: smartphone-only canvas balance tune
   - PC表示はv034のまま維持
   - スマホだけキャンバスをさらに小さくし、操作パネル操作性を優先
   - キャンバス直上ボタンをキャンバス幅に合わせて中央配置
   ========================================================= */
@media (max-width:560px){
  .preview-card{
    width:100%;
    padding:10px 10px 12px;
    align-items:center;
  }
  .preview-toolbar-row{
    width:calc(100vw - 76px);
    max-width:calc(100vw - 76px);
    margin:0 auto 8px;
    padding:0;
  }
  .canvas-object-toolbar{
    width:100%;
    max-width:100%;
    gap:6px;
    padding:6px;
  }
  .canvas-object-toolbar button{
    min-width:0;
    width:100%;
    padding:8px 5px;
    font-size:12px;
    line-height:1.15;
  }
  .stage-wrap{
    width:calc(100vw - 76px);
    max-width:calc(100vw - 76px);
    margin-left:auto;
    margin-right:auto;
    border-radius:20px;
  }
}


/* =========================================================
   Pro v037: smartphone preview compact tune
   - PC表示はv036のまま維持
   - スマホだけキャンバスをさらに小さくして、下の操作パネル領域を広げる
   - キャンバス直上ボタンを薄く・小さくし、上下余白を圧縮
   ========================================================= */
@media (max-width:560px){
  .preview-card{
    padding:8px 8px 10px;
  }
  .preview-head{
    margin-bottom:6px;
  }
  .preview-head strong{
    font-size:15px;
  }
  .preview-head small{
    font-size:11px;
    margin-top:1px;
  }
  .preview-toolbar-row{
    width:calc(100vw - 120px);
    max-width:calc(100vw - 120px);
    margin:0 auto 3px;
    padding:0;
  }
  .canvas-object-toolbar{
    width:100%;
    max-width:100%;
    gap:4px;
    padding:3px;
    border-radius:999px;
  }
  .canvas-object-toolbar button{
    min-width:0;
    width:100%;
    min-height:28px;
    padding:5px 3px;
    font-size:11px;
    line-height:1.05;
    border-radius:999px;
  }
  .stage-wrap{
    width:calc(100vw - 120px);
    max-width:calc(100vw - 120px);
    margin-left:auto;
    margin-right:auto;
    border-radius:18px;
  }
  .hint{
    margin-top:7px;
    font-size:11px;
    line-height:1.45;
  }
  .panel{
    padding:10px;
  }
}

@media (max-width:390px){
  .preview-toolbar-row,
  .stage-wrap{
    width:calc(100vw - 132px);
    max-width:calc(100vw - 132px);
  }
  .canvas-object-toolbar button{
    font-size:10.5px;
    padding:5px 2px;
  }
}

/* =========================================================
   Pro v038: ちょい装飾 + 文字イラスト調整を企画内へ統合
   ========================================================= */
.title-adjust-compact{
  margin:12px 8px 0;
  padding:10px 11px;
  border:1px solid rgba(239,214,228,.95);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,247,252,.72));
  display:grid;
  gap:8px;
}
.title-adjust-compact-head{
  font-size:12px;
  font-weight:1000;
  color:#7b5d72;
  letter-spacing:.02em;
}
 .title-adjust-compact .range-row{
  padding:0;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 50px;
  align-items:center;
  gap:8px;
}
.title-adjust-compact .range-row + .range-row{
  border-top:0 !important;
  padding-top:0;
}
.title-adjust-compact .range-head{
  display:contents;
}
.title-adjust-compact .range-head strong{
  font-size:12px;
  color:#6f5a67;
  white-space:nowrap;
}
.title-adjust-compact .range-head span{
  grid-column:3;
  justify-self:end;
  min-width:42px;
  padding:3px 7px;
  border:1px solid rgba(239,214,228,.95);
  border-radius:999px;
  background:rgba(255,247,252,.8);
  color:#b35887;
  font-size:11px;
  font-weight:900;
  text-align:center;
}
.title-adjust-compact input[type="range"]{
  grid-column:2;
  grid-row:1;
  width:100%;
  margin:0;
}
.decoration-block .subnote{
  margin:0 0 10px;
}
.choi-decoration-grid{
  display:grid;
  gap:11px;
}
.choi-decoration-group{
  padding:10px;
  border:1px solid rgba(239,214,228,.95);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,247,252,.62));
}
.choi-decoration-group-title{
  margin:0 0 8px;
  font-size:12px;
  font-weight:1000;
  color:#6f5a67;
}
.choi-decoration-items{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.choi-decoration-btn{
  min-width:0;
  padding:7px 5px 6px;
  border:1px solid rgba(239,214,228,.95);
  border-radius:15px;
  background:#fff;
  color:#5f4d61;
  font-size:11px;
  font-weight:1000;
  display:grid;
  gap:4px;
  justify-items:center;
  align-items:center;
  box-shadow:0 5px 12px rgba(60,35,60,.05);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.choi-decoration-btn img{
  width:100%;
  max-width:58px;
  aspect-ratio:1/1;
  object-fit:contain;
  display:block;
}
.choi-decoration-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(60,35,60,.09);
}
.choi-decoration-btn:active{
  transform:translateY(0);
}
.decoration-status{
  margin-top:10px;
}
@media (max-width:560px){
  .title-adjust-compact{
    margin:10px 3px 0;
    padding:9px 10px;
    gap:7px;
  }
  .title-adjust-compact .range-row{
    grid-template-columns:46px minmax(0,1fr) 46px;
    gap:6px;
  }
  .title-adjust-compact .range-head strong{
    font-size:11px;
  }
  .title-adjust-compact .range-head span{
    min-width:38px;
    padding:3px 6px;
    font-size:10.5px;
  }
  .title-adjust-compact-head{
    font-size:11px;
  }
  .choi-decoration-group{
    padding:9px;
  }
  .choi-decoration-items{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  .choi-decoration-btn{
    padding:7px 4px 6px;
  }
  .choi-decoration-btn img{
    max-width:56px;
  }
}
