:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#23344f;background:#f7f9fd}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:1px solid #e6ebf3;padding:18px max(22px,calc((100vw - 1220px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:8px;color:#456995}.brand span{font-size:12px;color:#8390a3;margin-left:7px}.pill{background:#eef4ff;border-radius:100px;color:#5578a7;padding:8px 12px;font-size:12px}main{max-width:1220px;margin:auto;padding:35px 20px 65px}.intro{text-align:center;margin-bottom:32px}.eyebrow{letter-spacing:.23em;font-size:12px;color:#6484b3;font-weight:800}h1{font-size:clamp(25px,4vw,42px);margin:10px 0}.intro>p:last-child{color:#77869a}.layout{display:grid;grid-template-columns:420px 1fr;gap:24px;align-items:start}.panel{background:white;border:1px solid #e5eaf2;border-radius:18px;padding:25px;box-shadow:0 12px 32px #2944650a}h2{font-size:18px;margin:0 0 22px}label{font-size:13px;font-weight:700;display:block;margin:15px 0;color:#425470}input:not([type=color]),select{display:block;width:100%;border:1px solid #d8e1ed;background:#fff;border-radius:9px;padding:12px;margin-top:7px;color:#23344f;font:inherit;font-weight:400}input[type=file]{font-size:12px}input[type=color]{display:block;margin-top:8px;width:100%;height:42px;padding:3px;border:1px solid #d8e1ed;border-radius:9px;background:white}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.tabs,.actions{display:flex;gap:8px}.tabs{margin-bottom:18px}.tabs button{font-size:12px;flex:1;padding:11px 7px}.tabs button.active{background:#e7effc;color:#3d6297;border:1px solid #bfd0eb}button{cursor:pointer;background:#587bb0;color:white;border:1px solid #587bb0;border-radius:10px;padding:12px 15px;font:inherit;font-weight:700}button:hover{filter:brightness(.95)}button.secondary{background:white;color:#5677a8;border-color:#cad8eb}.actions button{flex:1}.hint{color:#8290a2;font-size:12px;line-height:1.7}hr{border:0;border-top:1px solid #edf0f5;margin:24px 0}.previewhead{display:flex;justify-content:space-between;align-items:center}.previewhead span{font-size:12px;color:#8b9ab0}canvas{display:block;width:100%;height:auto;aspect-ratio:1;background:#edf3fa;border-radius:13px;box-shadow:0 4px 25px #1d345217}footer{text-align:center;color:#97a3b3;font-size:12px;padding:20px}@media(max-width:850px){.layout{grid-template-columns:1fr}.panel{padding:18px}.brand span{display:none}main{padding:20px 14px 40px}}@media(max-width:400px){.pill{display:none}}

/* 個別アップロード・貼り付け UI */
.image-source{border:1px solid #e1e9f4;border-radius:13px;padding:14px;margin:15px 0;background:#fbfdff}.image-source h3{font-size:14px;margin:0 0 10px;color:#2c4365}.source-options{display:flex;gap:15px;flex-wrap:wrap}.source-options label{display:flex;align-items:center;gap:5px;margin:4px 0;font-size:12px;cursor:pointer}.source-options input{accent-color:#587bb0}.paste-zone{border:2px dashed #a7bde0;border-radius:10px;padding:17px 10px;margin:12px 0 8px;text-align:center;line-height:1.7;color:#466895;background:#f0f5fc;cursor:text}.paste-zone:focus{outline:3px solid #7b9dd0;outline-offset:2px}.paste-button{width:100%;font-size:12px}.image-source .hint{margin-bottom:0}[hidden]{display:none!important}

/* ==========================================
   SNchan - Site Mockup Studio
   Layout Update v3
========================================== */

/* ヘッダーをスクロール時も上部に固定 */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
}

/* PC版：左右を50%ずつに変更 */
@media (min-width: 851px) {
  main {
    max-width: 1500px;
  }

  .layout {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .layout > .panel {
    width: 100%;
    min-width: 0;
  }
}

/* 画像の選択肢を2列に配置 */
.source-options {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

/* 選択肢の途中改行を防止 */
.source-options label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 0;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.source-options input[type="radio"] {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #587bb0;
}

/* 画像設定エリア */
.image-source {
  padding: 18px;
}

.image-source h3 {
  margin-bottom: 12px;
}

/* スマホ・タブレットでは縦並び */
@media (max-width: 850px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .source-options label {
    font-size: 12px;
  }
}

/* 極端に狭い画面でのはみ出し防止 */
@media (max-width: 380px) {
  .source-options {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   SNchan 公式サイトリンクボタン
===================================== */

header .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 18px;
  border-radius: 100px;

  background: #eef4ff;
  color: #5578a7;

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;

  border: 1px solid #dce7f7;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* マウスを重ねたとき */
header .pill:hover {
  background: #587bb0;
  color: #ffffff;

  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88,123,176,0.2);
}

/* クリックしたとき */
header .pill:active {
  transform: translateY(0);
}

/* キーボード操作時 */
header .pill:focus-visible {
  outline: 3px solid #91b5ed;
  outline-offset: 3px;
}
