:root {
  --bg: #faf7f4; --card: #ffffff; --ink: #2b2622; --muted: #8a8178;
  --rose: #c98a8a; --rose-d: #b06f6f; --line: #e9e1d9;
  --ok: #3a8a5f; --warn: #c0772a; --err: #c0392b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif; line-height: 1.6; }
header { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
h1 { font-size: 18px; margin: 0; }
h1 span { font-size: 11px; color: var(--rose-d); border: 1px solid var(--rose); border-radius: 99px; padding: 1px 8px; margin-left: 6px; }
.status { font-size: 13px; color: var(--muted); }
.status.ok { color: var(--ok); } .status.warn { color: var(--warn); } .status.err { color: var(--err); }

main { display: grid; grid-template-columns: 1fr 400px; gap: 20px; padding: 20px; max-width: 1140px; margin: 0 auto; align-items: start; }
@media (max-width: 900px) { main { grid-template-columns: 1fr; } }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { background: #f3ece6; color: var(--ink); border: 1px solid var(--line); padding: 5px 10px; font-size: 12px; font-weight: 500; border-radius: 99px; }
.chip:hover { background: #e8ddd3; }
.search form { display: flex; gap: 8px; margin-bottom: 14px; }
#keyword { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff; }
#sort { border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font-size: 13px; background: #fff; }
button { cursor: pointer; border: none; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.search button[type=submit] { background: var(--rose); color: #fff; }
.search button[type=submit]:hover { background: var(--rose-d); }
.more { text-align: center; margin-top: 12px; }
/* 検索ツールバー（人気提案・量産・キープを1行に集約） */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.tb-batch { display: inline-flex; align-items: center; gap: 4px; }
.tb-batch input { width: 42px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 8px; }
.keepwrap { display: inline-flex; align-items: center; gap: 6px; }
/* 控えめ小ボタン（ツールバー用） */
.ghost.sm { padding: 6px 10px; font-size: 12px; font-weight: 500; }
/* チップの「もっと」開閉 */
.chip-extra { display: none; }
.chips.expanded .chip-extra { display: inline-block; }
.chip-more { background: transparent; color: var(--rose-d); border: 1px dashed var(--rose); padding: 5px 10px; font-size: 12px; font-weight: 500; border-radius: 99px; }
.chip-more:hover { background: #f7ecec; }

.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 6px; }
.card .body { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name { font-size: 12px; line-height: 1.4; max-height: 3.4em; overflow: hidden; }
.card .price { font-weight: 700; color: var(--rose-d); font-size: 14px; }
.card .price small { color: var(--muted); font-weight: 400; font-size: 10px; }
.card .rate { font-size: 11px; font-weight: 700; color: var(--ok); background: #eef6f0; border: 1px solid #d6ebdd; border-radius: 6px; padding: 4px 6px; text-align: center; }
.card { position: relative; }
.keepbtn { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; padding: 0; font-size: 15px; line-height: 1; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.95); filter: grayscale(.5); opacity: .9; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.keepbtn:hover { opacity: 1; filter: none; transform: scale(1.08); }
.keepbtn.on { filter: none; opacity: 1; border-color: #e0b400; background: #fff3cd; box-shadow: 0 0 0 2px #ffe39a; }
.keepview-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--rose-d); background: #fff7e6; border: 1px solid #ffe39a; border-radius: 8px; padding: 8px 12px; }
/* 作業の流れ（番号付き見出し） */
.flow-step { color: var(--rose-d); font-weight: 700; margin: 0 0 10px; }
.flow-step.sm { font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
/* 上級：折りたたみセクション */
.advanced > summary { cursor: pointer; font-size: 12px; color: var(--muted); font-weight: 500; list-style: none; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before { content: '▸ '; }
.advanced[open] > summary::before { content: '▾ '; }
.card .body button { background: var(--rose); color: #fff; padding: 7px; font-size: 12px; font-weight: 600; }
.card .body button:hover { background: var(--rose-d); }
.card .noaff { font-size: 10px; color: var(--warn); }

.compose { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: sticky; top: 58px; max-height: calc(100vh - 74px); overflow-y: auto; }
.compose h2 { font-size: 15px; margin: 0 0 10px; }
.compose h3 { font-size: 13px; margin: 16px 0 8px; color: var(--muted); }
.chosen { font-size: 12px; color: var(--muted); background: #f7f1ec; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.tmplrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.tmplrow select { flex: 1; font-size: 12px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 14px; font-family: inherit; resize: vertical; }
.meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; margin: 8px 0; }
.meta .ok { color: var(--muted); } .meta .over { color: var(--err); font-weight: 700; }
.meta select { font-size: 12px; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line); }
.imgtoggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.linkbox { font-size: 12px; color: var(--muted); word-break: break-all; margin-bottom: 10px; }
.linkbox code { background: #f3ece6; padding: 1px 5px; border-radius: 5px; }

.copyrow, .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.copyrow { margin-bottom: 12px; }
.primary { background: var(--rose); color: #fff; flex: 1; }
.primary:hover:not(:disabled) { background: var(--rose-d); }
.primary:disabled { background: #d8cdc4; cursor: not-allowed; }
.ghost { background: #f3ece6; color: var(--ink); }
.ghost:hover { background: #e8ddd3; }
.mini { background: #f3ece6; color: var(--ink); padding: 2px 8px; font-size: 11px; border-radius: 6px; }
.genrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ai { background: #f7ecec; color: var(--rose-d); border: 1px solid var(--rose); flex: 1; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.ai:hover:not(:disabled) { background: #f0dede; }
.ai:disabled { opacity: .6; cursor: wait; }

.tokenbox { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.tokenbox .actions { margin-bottom: 8px; }
#manualTok summary { font-size: 11px; color: var(--muted); cursor: pointer; }
.manualrow { display: flex; gap: 6px; margin-top: 8px; }
.manualrow input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; }

/* 2段ツリー（v1.1 勝ち型：本文にリンクを入れず②返信へ） */
.treebox { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fdfbf9; margin-bottom: 12px; }
.treeguide { font-size: 12px; color: var(--rose-d); background: #fbf3f3; border: 1px solid #f0dada; border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; line-height: 1.6; }
.treestep { margin-bottom: 12px; }
.treehd { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.treenum { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--rose); color: #fff; font-size: 12px; flex: none; }
.replyprev { margin-bottom: 6px; }
.subrow { margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ① 公式画像サムネ（最大3枚・クリックで開いて保存） */
.imgsave { margin-top: 8px; }
.imgsave-h { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.imgstrip { display: flex; gap: 8px; flex-wrap: wrap; }
.imgstrip-empty { font-size: 11px; color: var(--muted); }
.imgthumb { display: block; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.imgthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgthumb:hover { border-color: var(--rose); }

/* 左バー：使い方（3ステップ） */
.howto { margin: 14px 0 4px; padding: 12px; background: #fbf3f3; border: 1px solid #f0dada; border-radius: 10px; }
.howto-h { font-size: 12px; font-weight: 700; color: var(--rose-d); margin-bottom: 8px; }
.howto-list { margin: 0; padding-left: 18px; font-size: 12px; color: var(--ink); line-height: 1.6; }
.howto-list li { margin-bottom: 5px; }
.demolink { background: none; border: 0; color: var(--rose-d); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; margin-left: 6px; }
.demo-chip { border-color: #e8b3b3; background: #fdf3f3; color: var(--rose-d); font-weight: 700; margin-top: 8px; }
.demobanner { background: linear-gradient(135deg, #fef0e9, #fbeef3); border: 1px dashed #e8b3b3; border-radius: 12px; padding: 11px 13px; font-size: 13px; color: #6a5b52; line-height: 1.7; margin-bottom: 10px; }
.demobanner b { color: var(--rose-d); }
.demobanner a { color: var(--rose-d); font-weight: 700; }
.howto-note { margin: 8px 0 0; padding: 7px 9px; background: #fff; border: 1px dashed #ecc9c9; border-radius: 8px; font-size: 11.5px; color: #6a5b52; line-height: 1.55; }
.howto-note b { color: var(--rose-d); }
.howto-more { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--rose-d); }

.result { font-size: 13px; margin-top: 10px; min-height: 1em; }
.result.ok { color: var(--ok); } .result.err { color: var(--err); }
.note { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.note.warn { color: var(--warn); }
.empty { color: var(--muted); font-size: 13px; padding: 12px 0; }

.drafts { border-top: 1px solid var(--line); margin-top: 14px; }
.draftlist { display: flex; flex-direction: column; gap: 6px; }
.draft { display: flex; align-items: center; gap: 8px; background: #f7f1ec; border-radius: 8px; padding: 6px 8px; }
.draft .dimg { width: 34px; height: 34px; flex: none; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.draft .dimg.noimg { display: flex; align-items: center; justify-content: center; font-size: 16px; }
.draft .dmain { flex: 1; min-width: 0; overflow: hidden; }
.draft .dname { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft .dtext { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft .dact { display: flex; gap: 4px; flex: none; }

/* ===== ツイリア式シェル（サイドメニュー＋ダッシュボード＋3ステップ） ===== */
.app { display: grid; grid-template-columns: 208px 1fr; min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: #f7ecec; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.brand b { font-size: 14px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.navi { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 13px; color: var(--ink); text-decoration: none; }
.navi .ni { width: 18px; text-align: center; }
.navi:hover { background: #f3ece6; }
.navi.active { background: #f7ecec; color: var(--rose-d); font-weight: 600; }
.madeby { margin-top: auto; font-size: 11px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); }
.content { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: flex-end; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.setupbanner { background: #fff6e5; border: 1px solid #f0d089; border-radius: 10px; padding: 12px 14px; margin: 16px 20px 0; font-size: 13px; }
.steps { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #f7ecec; color: var(--rose-d); border-radius: 10px; padding: 10px 14px; margin: 16px 20px 0; font-size: 12px; }
.steps-title { font-weight: 700; }
.steps .step { color: var(--rose-d); }
.content main { padding-top: 16px; }
.tagrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.tagchk { display: flex; align-items: center; gap: 4px; cursor: pointer; color: var(--ink); }
.tagnote { color: var(--warn); font-size: 11px; }
.nav-mobile { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .brand { padding: 4px 8px; }
  .sidenav { flex-direction: row; flex-wrap: wrap; }
  .nav-desktop { display: none; }
  /* スマホのナビは"押せるボタン(ピル)"に。非アクティブも白ピル＋枠線で明確にタップ可能に */
  .nav-mobile { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; width: 100%; }
  .nav-mobile .navi { flex: 1 1 0; min-width: 84px; justify-content: center; background: #fff; border: 1px solid #ecd8cf; border-radius: 99px; padding: 11px 10px; font-size: 13px; font-weight: 700; color: var(--rose-d); box-shadow: 0 1px 3px rgba(139,106,90,.06); }
  .nav-mobile .navi.active { background: var(--rose); color: #fff; border-color: var(--rose); box-shadow: 0 3px 9px rgba(176,111,111,.28); }
  .nav-mobile .navi .ni { width: auto; }
  .madeby { display: none; }
  .compose { position: static; max-height: none; overflow: visible; }
}

/* ===== 今日の弾（リサーチ機能）===== */
.ammobox { background: #fff7ef; border: 1px solid #f0ddc8; border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; }
.ammohd { font-size: 13px; margin-bottom: 8px; }
.ammohd small { color: #8a8178; margin-left: 6px; font-size: 11px; }
.ammobar { display: flex; flex-wrap: wrap; gap: 6px; }
.ammo-chip.active { background: #c98a8a; color: #fff; border-color: #c98a8a; }
.orsearch { font-size: 11px; color: #8a8178; margin: 8px 0 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.badge { font-size: 10px; padding: 2px 7px; border-radius: 99px; border: 1px solid transparent; }
.badge.hot { background: #ffe9e3; color: #b3543e; border-color: #f2c4b8; font-weight: 700; }
.badge.sale { background: #fff3cd; color: #8a6d1a; border-color: #efdfa8; }
.badge.solid { background: #e8f1fb; color: #3d6a99; border-color: #c9ddf1; }
.badge.sub { background: #f1f1f1; color: #777; }

/* ===== 安全ガードレール ===== */
.guardbox { margin: 10px 0; padding: 10px 12px; background: #f4f8f4; border: 1px solid #dbe8db; border-radius: 12px; }
.guardbox .note.guard { white-space: pre-line; margin: 0 0 8px; }
.guardbox .note.guard.warn { color: #b3543e; font-weight: 600; }
.guardbox .note.guard:empty { display: none; }
.guardhint { display: block; margin-top: 6px; color: #8a8178; font-size: 11px; }

/* ===== v2.1 デザインポリッシュ（パレット維持・やわらかく・シンプル） ===== */
/* 丸ゴシック系を優先（iPhone/Macはヒラギノ丸ゴ、他は既存フォールバック） */
body {
  font-family: "Hiragino Maru Gothic ProN", "BIZ UDGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
/* カード: 角丸を深く・ほんのり浮かせる・タップで沈む */
.card { border-radius: 16px; box-shadow: 0 2px 10px rgba(139, 106, 90, .07); border-color: #f0e8e0; transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(139, 106, 90, .12); }
.card .body button { border-radius: 99px; padding: 9px; }
/* 主要ボタンは丸く・押しやすく */
.primary, .search button[type=submit], .ai { border-radius: 99px; }
button:active { transform: scale(.97); }
/* 今日の弾を主役に（あたたかいグラデ＋大きめチップ） */
.ammobox { background: linear-gradient(135deg, #fff7ef, #fdeee7); border-color: #f2ddc9; border-radius: 16px; padding: 14px 14px 12px; }
.ammohd { font-size: 14px; font-weight: 700; }
.ammohd small { display: block; margin: 4px 0 0; font-weight: 400; line-height: 1.5; }
.ammobar { gap: 8px; }
.ammo-chip { background: #fff; border: 1px solid #eadfd3; box-shadow: 0 1px 4px rgba(139, 106, 90, .08); padding: 9px 14px; font-size: 13px; border-radius: 99px; }
.ammo-chip:hover { background: #fbf3f3; border-color: var(--rose); }
.ammo-chip.active { box-shadow: 0 2px 8px rgba(176, 111, 111, .35); }
/* 見出しまわりに余白と補助コピー */
.flow-step { font-size: 15px; }
.compose { border-radius: 16px; box-shadow: 0 2px 10px rgba(139, 106, 90, .06); }
/* コピー完了状態（ボタンが一瞬✅になる） */
button.copied { background: var(--ok) !important; color: #fff !important; }
/* 次の一歩ガイド（コピー後に出るやさしい道しるべ） */
.nextstep { font-size: 12px; color: var(--rose-d); background: #fbf3f3; border: 1px dashed var(--rose); border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; line-height: 1.6; }
.nextstep:empty { display: none; }
/* 空状態: 最初の一歩ガイド */
.firststep { grid-column: 1 / -1; text-align: center; padding: 28px 16px; color: var(--muted); font-size: 13px; line-height: 2; background: #fdfaf7; border: 1px dashed var(--line); border-radius: 16px; }
.firststep b { color: var(--rose-d); }
.firststep .fs-icon { font-size: 26px; display: block; margin-bottom: 4px; }
/* ガードレールに見出し */
.guardbox { border-radius: 16px; }
/* モバイル: 指で押しやすく・余白しっかり */
@media (max-width: 900px) {
  .chip, .chip-more { padding: 8px 13px; font-size: 13px; }
  .ammo-chip { padding: 11px 16px; font-size: 14px; }
  .card .body button { padding: 11px; font-size: 13px; }
  .primary, .ghost { padding: 12px 16px; }
  main { padding: 14px; gap: 16px; }
  textarea { font-size: 16px; } /* iOSの自動ズーム防止 */
  #keyword { font-size: 16px; }
  /* スマホ: 検索フォームを折り返し、キーワードを1行目・並び順/検索/✕を2行目に（ボタン見切れ防止） */
  /* Gridで確定レイアウト: 1行目=キーワード全幅 / 2行目=並び順|検索|✕（名前付きで明示配置） */
  .search form {
    display: grid;
    grid-template-columns: 1fr auto 42px;
    grid-template-areas: "kw kw kw" "sort go clear";
    gap: 8px;
  }
  #keyword { grid-area: kw; }
  #sort { grid-area: sort; min-width: 0; }
  .search button[type=submit] { grid-area: go; }
  #clearSearch { grid-area: clear; padding: 10px 0; }
}

/* ===== 🚩 ゼロイチ・ロードマップ ===== */
.journey { background: linear-gradient(135deg, #fbf3f3, #fdeee7); border: 1px solid #f0dada; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.journey:empty { display: none; }
.j-head { font-size: 14px; margin-bottom: 10px; }
.j-head small { color: var(--muted); margin-left: 4px; }
.j-track { display: flex; align-items: center; margin: 0 0 10px; }
.j-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #e0cfc4; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.j-dot.on { background: var(--ok); border-color: var(--ok); }
.j-dot.now { border-color: var(--rose); box-shadow: 0 0 0 3px #f7ecec; }
.j-line { flex: 1; height: 2px; background: #ecdfd6; }
.j-next { font-size: 13px; color: var(--ink); line-height: 1.6; }
.j-cta { display: inline-block; margin-left: 8px; background: var(--rose); color: #fff; text-decoration: none; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.j-cta:hover { background: var(--rose-d); }
@media (max-width: 900px) { .j-dot { width: 26px; height: 26px; } }

/* ===== v2.2 修正＋リッチボタン ===== */
/* 🐛修正: ロードマップはグリッド2カラムの全幅に（検索欄が右列に押し込まれるのを防ぐ） */
main > .journey { grid-column: 1 / -1; }

/* ボタンをリッチに（パレット維持・軽量CSSのみ） */
.primary, .search button[type=submit], .card .body button, .j-cta {
  background: linear-gradient(180deg, #d49898, #bd7a7a);
  box-shadow: 0 2px 6px rgba(176, 111, 111, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s ease, filter .15s ease;
}
.primary:hover:not(:disabled), .search button[type=submit]:hover, .card .body button:hover, .j-cta:hover {
  background: linear-gradient(180deg, #d49898, #b06f6f);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(176, 111, 111, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.primary:active, .search button[type=submit]:active, .card .body button:active { transform: translateY(0) scale(.98); box-shadow: 0 1px 3px rgba(176, 111, 111, .3); }
.ghost { transition: transform .15s cubic-bezier(.34, 1.56, .64, 1), background .15s ease; }
.ghost:hover { transform: translateY(-1px); }
button:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
/* ねらい目チップにも指ざわりを */
.ammo-chip { transition: transform .15s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.ammo-chip:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(139, 106, 90, .15); }
.ammo-chip:active { transform: scale(.97); }

/* ===== v2.3 型チップ＋スマホの画面ブレ対策 ===== */
.stylechips { margin-bottom: 8px; }
.stylechips .stylechip.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.stylechips.expanded .chip-extra { display: inline-block; }

/* 📱 画面ブレ対策①: 横はみ出しを根絶（横スクロールの揺れ＝ブレの最多原因） */
html, body { max-width: 100%; overflow-x: hidden; }
.content, main, .compose, .search { min-width: 0; max-width: 100%; }
.results { overflow: hidden; }
code, .linkbox, .replyprev { overflow-wrap: anywhere; }
/* 📱 画面ブレ対策②: タッチ端末ではhover浮き上がりを無効化（タップのたびにガタつくため） */
@media (hover: none) {
  .card:hover, .primary:hover:not(:disabled), .ghost:hover, .ammo-chip:hover,
  .search button[type=submit]:hover, .card .body button:hover, .j-cta:hover { transform: none; }
  .card:hover { box-shadow: 0 2px 10px rgba(139, 106, 90, .07); }
}
/* 📱 画面ブレ対策③: タップハイライトと誤ダブルタップズームを抑制 */
button, .chip, .navi { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
