/* KISSFORM 管理画面とトップページ */
:root {
  --ink: #17142B;
  --paper: #FFFFFF;
  --wash: #F6F4FB;
  --kiss: #DB2455;
  --kiss-soft: #FFE6EC;
  --line: #E4E0EE;
  --mute: #6F6A86;
  --ok: #14855A;
  --form-accent: var(--kiss);
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Bricolage Grotesque", var(--jp);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--jp); font-size: 16px; line-height: 1.75; color: var(--ink); background: var(--wash); min-height: 100vh; display: flex; flex-direction: column; }
body.home { background: var(--paper); }
body.no-scroll { overflow: hidden; }
body > main { flex: 1; width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--kiss) 45%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

.h2 { font-size: 28px; line-height: 1.35; font-weight: 900; letter-spacing: .01em; }
.h3 { font-size: 18px; line-height: 1.5; font-weight: 700; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.red { color: #C4183C !important; }
.nowrap { white-space: nowrap; }

/* ---- ボタン ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 99px; border: 1.5px solid var(--kiss); background: var(--kiss); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.5; text-decoration: none; cursor: pointer; transition: transform .1s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(.93); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { padding: 6px 16px; font-size: 14px; }
.btn.big { padding: 15px 32px; font-size: 17px; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #C9C4DA; }
.btn.ghost:hover { filter: none; background: rgba(23, 20, 43, .05); }
.btn.ghost.red { border-color: #E9B5C0; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--mute); font-size: 14px; }
.linklike:hover { color: var(--ink); }

/* ---- ヘッダー / フッター ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 22px/1 var(--latin); letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo circle { fill: var(--kiss); stroke: none; }
.logo path { stroke: #fff; stroke-width: 3.4; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 24px); font-size: 14px; font-weight: 500; }
.top nav a:not(.btn) { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.top nav form { display: flex; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; padding: 32px 16px; font-size: 13px; color: var(--mute); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 11px 20px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- 汎用レイアウト ---- */
.narrow { max-width: 440px; margin: 0 auto; padding: clamp(24px, 6vh, 64px) 20px 64px; }
.narrow.center { text-align: center; }
.narrow > * + * { margin-top: 16px; }
.narrow > .panel { margin-top: 24px; }
.page { max-width: 960px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head.sub { margin: 48px 0 12px; align-items: center; }
.crumb { font-size: 13px; color: var(--mute); text-decoration: none; }
.crumb:hover { text-decoration: underline; }
.prose { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.prose h2 { font-size: 18px; margin-top: 32px; }
.prose p, .prose ul { margin-top: 10px; }
.prose ul { list-style: disc; padding-left: 1.4em; }

/* ---- フォーム部品 ---- */
.stack { display: grid; gap: 14px; }
.stack label, .settings .sub { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.stack small { font-weight: 400; color: var(--mute); font-size: 13px; }
.stack input, .settings input[type=text], .settings input[type=url], .settings textarea, .copy-row input, .share textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #D9D5E6; border-radius: 12px; background: #fff; font-size: 16px; font-weight: 400; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.stack input:focus, .settings input:focus, .settings textarea:focus, .copy-row input:focus, .share textarea:focus { border-color: var(--kiss); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kiss) 16%, transparent); }
.field-err { margin-top: -6px; color: #C4183C; font-size: 14px; font-weight: 500; }
.fine { font-size: 13px; color: var(--mute); }
.narrow .switch { font-size: 14px; color: var(--mute); text-align: center; margin-top: 24px; }
.panel { background: #fff; border-radius: 20px; padding: 24px; }
.panel.danger { background: transparent; border: 1.5px dashed #E9B5C0; }
.panel .btn { justify-self: start; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; font-size: 14px; }

.switch-row { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.switch-row input { position: absolute; opacity: 0; }
.sw { flex: none; width: 36px; height: 22px; border-radius: 99px; background: #C9C4DA; position: relative; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch-row input:checked + .sw { background: var(--ok); }
.switch-row input:checked + .sw::after { transform: translateX(14px); }
.switch-row input:focus-visible + .sw { outline: 3px solid color-mix(in srgb, var(--kiss) 45%, transparent); outline-offset: 2px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(23, 20, 43, .07); }
.tabs a { padding: 4px 18px; border-radius: 99px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--mute); }
.tabs a.on { background: #fff; color: var(--ink); }
.tabs b { font-weight: 700; color: var(--kiss); margin-left: 2px; }

/* ---- ダッシュボード ---- */
.empty { background: #fff; border-radius: 24px; padding: 56px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty .copy-row { width: min(100%, 460px); }
.form-list { background: #fff; border-radius: 20px; }
.form-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px 20px; padding: 6px 12px 6px 8px; }
.form-list li + li { border-top: 1px solid var(--line); }
.form-row { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 12px; text-decoration: none; min-width: 0; }
.form-row:hover .form-title { text-decoration: underline; text-underline-offset: 4px; }
.form-title { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { flex: none; padding: 1px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--wash); color: var(--mute); }
.pill.published { background: #DDF3E8; color: #0C6845; }
.pill.closed { background: #EFE9D6; color: #6E5A12; }
.form-count { font-size: 14px; text-decoration: none; color: var(--mute); white-space: nowrap; }
.form-count b { color: var(--ink); font-size: 16px; }
.form-count:hover { color: var(--ink); }
.form-date { font-size: 13px; white-space: nowrap; }
.menu { position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--wash); }
.menu summary svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.menu-items { position: absolute; right: 0; top: 40px; z-index: 10; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px -8px rgba(23, 20, 43, .25); }
.menu-items a, .menu-items button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 14px; text-decoration: none; cursor: pointer; }
.menu-items a:hover, .menu-items button:hover { background: var(--wash); }
@media (max-width: 640px) {
  .form-list li { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 12px; }
  .form-row { grid-column: 1; padding-bottom: 4px; }
  .menu { grid-column: 2; grid-row: 1; }
  .form-count { grid-column: 1; padding-left: 12px; }
  .form-date { display: none; }
}

.dialog { border: 0; border-radius: 24px; padding: 28px; width: min(600px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 24px 64px -12px rgba(23, 20, 43, .4); }
.dialog::backdrop { background: rgba(23, 20, 43, .45); }
.dialog form > * + * { margin-top: 12px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tpl { display: grid; gap: 2px; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, transform .1s; }
.tpl b { font-size: 16px; }
.tpl span { font-size: 13px; color: var(--mute); }
.tpl:hover { border-color: var(--ink); }
.tpl:active { transform: scale(.98); }

/* ---- 回答 ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 20px; }
.stats div { padding: 18px 24px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 13px; color: var(--mute); font-weight: 500; }
.stats dd { font: 800 32px/1.2 var(--latin); font-variant-numeric: tabular-nums; }
.summary { margin-top: 48px; }
.summary > .h3 { margin-bottom: 12px; }
.sum { background: #fff; border-radius: 20px; padding: 20px 24px; margin-bottom: 12px; }
.sum header { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 12px; }
.sum h3 { font-size: 16px; font-weight: 700; }
.sum header span { font-size: 13px; white-space: nowrap; }
.avg { margin-bottom: 10px; }
.avg b { font: 800 26px/1 var(--latin); }
.bars li { display: grid; grid-template-columns: minmax(80px, 30%) 1fr 76px; gap: 12px; align-items: center; padding: 4px 0; font-size: 14px; }
.bars.compact li { grid-template-columns: 28px 1fr 76px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 99px; background: var(--wash); overflow: hidden; }
.bar-track i { display: block; height: 100%; min-width: 2px; border-radius: 99px; background: var(--form-accent); }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-val small { display: inline-block; width: 40px; font-weight: 400; color: var(--mute); }
.texts li { padding: 8px 0; font-size: 15px; overflow-wrap: anywhere; }
.texts li + li { border-top: 1px solid var(--line); }
.table-wrap { background: #fff; border-radius: 20px; overflow-x: auto; margin-bottom: 8px; }
.rtable { border-collapse: collapse; width: 100%; font-size: 14px; }
.rtable th, .rtable td { padding: 11px 16px; text-align: left; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.rtable th { font-size: 13px; color: var(--mute); font-weight: 500; border-bottom: 1px solid var(--line); }
.rtable tbody tr { cursor: pointer; }
.rtable tbody tr + tr td { border-top: 1px solid var(--line); }
.rtable tbody tr:hover, .rtable tbody tr:focus-visible { background: var(--wash); }
.pager { display: flex; justify-content: center; gap: 20px; margin-top: 20px; font-size: 14px; }
.dialog.response header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.dialog.response dt { font-size: 13px; color: var(--mute); font-weight: 500; margin-top: 14px; }
.dialog.response dd { overflow-wrap: anywhere; }
.dialog.response form { margin-top: 24px; }

/* ================= トップページ ================= */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(24px, 6vh, 72px) clamp(16px, 4vw, 40px) clamp(48px, 9vh, 104px); }
.hero h1 { font-size: clamp(34px, 4.1vw, 62px); line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
.hero h1 span { display: inline-block; white-space: nowrap; }
.lead { margin-top: 24px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.9; max-width: 30em; }
.hero-start { margin-top: 32px; display: grid; gap: 12px; justify-items: start; }
.hero-start .mute { font-size: 13px; }
.demo-frame { background: #fff; border: 2px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--kiss); overflow: hidden; }
.demo-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 2px solid var(--ink); background: var(--kiss-soft); }
.demo-chrome i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.demo-chrome span { margin-left: 10px; font: 700 12px/1 var(--latin); letter-spacing: .01em; }
.demo-body { position: relative; min-height: 480px; padding: 44px clamp(20px, 3vw, 40px) 32px; }
.demo-body .kf.is-steps .kf-progress { position: absolute; }
.demo-body .kf-head { margin-bottom: 28px; }
.demo-body .kf-head h1 { font-size: 15px; color: var(--mute); font-weight: 700; letter-spacing: 0; }
.demo-body .kf.is-steps:not(.at-first) .kf-head { display: block; }
.demo-body .kf-done { padding-top: 40px; }
.demo-note { margin-top: 26px; font-size: 13px; color: var(--mute); text-align: center; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .demo-frame { box-shadow: 6px 6px 0 var(--kiss); }
  .demo-body { min-height: 420px; }
}

.band { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 8vh, 88px) clamp(16px, 4vw, 40px); border-top: 2px solid var(--ink); }
.band h2 { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.35; font-weight: 900; max-width: 22em; word-break: auto-phrase; text-wrap: balance; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 40px; }
.points h3 { font-size: 19px; font-weight: 700; }
.points p { margin-top: 8px; color: #47425E; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }
.tpl-band .mute { margin-top: 8px; }
.tpl-band .tpl-grid { margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tpl-band .tpl { padding: 20px; border-width: 2px; border-color: var(--ink); border-radius: 16px; }
.tpl-band .tpl:hover { background: var(--kiss-soft); }
.price { background: var(--kiss-soft); max-width: none; border-bottom: 2px solid var(--ink); text-align: center; display: grid; justify-items: center; gap: 20px; }
.price > p { max-width: 34em; }
.price-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0; }
.price-row p { display: grid; gap: 2px; min-width: 200px; padding: 18px 22px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; text-align: left; }
.price-row p.main { box-shadow: 6px 6px 0 var(--ink); }
.price-row b { font: 800 15px/1.4 var(--latin); }
.price-row span { font: 800 30px/1.2 var(--latin); }
.price-row span small { font: 500 14px var(--jp); color: var(--mute); }
.price-row > p > small { font-size: 13px; color: var(--mute); }
.price-more { font-size: 14px; font-weight: 700; text-underline-offset: 4px; }

/* 撃退 LP */
.hero-kicker { display: inline-block; margin-bottom: 18px; padding: 4px 14px 4px 12px; border: 2px solid var(--kiss); border-radius: 8px; color: var(--kiss); font-size: 14px; font-weight: 900; letter-spacing: .04em; transform: rotate(-2deg); }
.band-lead { margin-top: 16px; max-width: 40em; color: #47425E; }
.inbox-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: 40px; }
.inbox { margin: 0; border: 2px solid var(--ink); border-radius: 20px; background: #fff; overflow: hidden; align-self: start; }
.inbox figcaption { padding: 12px 18px; border-bottom: 2px solid var(--ink); font-weight: 900; font-size: 15px; }
.inbox.before figcaption { background: var(--wash); color: var(--mute); }
.inbox.after { box-shadow: 8px 8px 0 var(--kiss); }
.inbox.after figcaption { background: var(--kiss); color: #fff; }
.inbox ul { padding: 4px 0; }
.inbox li { display: grid; min-width: 0; padding: 10px 18px; border-top: 1px solid var(--line); line-height: 1.5; max-height: 80px; overflow: hidden; }
.inbox li:first-child { border-top: 0; }
.inbox li b { font-size: 13px; }
.inbox li span { font-size: 14px; color: #47425E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-tabs { display: flex; gap: 18px; padding: 10px 18px 0; font-size: 13px; font-weight: 700; color: var(--mute); border-bottom: 1px solid var(--line); }
.inbox-tabs span { padding-bottom: 8px; }
.inbox-tabs .on { color: var(--ink); border-bottom: 2px solid var(--ink); }
.inbox-tabs b { font-family: var(--latin); margin-left: 2px; }
.inbox-quiet { padding: 10px 18px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--mute); }
.inbox.after.go li.is-sales { animation: kf-file .45s ease-in forwards; animation-delay: calc(.3s + var(--i) * .22s); }
@keyframes kf-file {
  0% { background: var(--kiss-soft); }
  40% { background: var(--kiss-soft); transform: translateX(0); opacity: 1; max-height: 80px; }
  100% { transform: translateX(40%); opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; }
}
@media (max-width: 760px) { .inbox-compare { grid-template-columns: minmax(0, 1fr); } }
.net-band { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.net-copy p { margin-top: 16px; max-width: 36em; color: #47425E; }
.net-copy p.small { font-size: 14px; color: var(--mute); }
.net-figure { display: grid; place-items: center; }
.net-figure svg { width: min(100%, 280px); }
.net-lines path { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 5; }
.net-dots circle { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.net-core { fill: var(--kiss); stroke: var(--ink); stroke-width: 2.5; }
.net-check { stroke: #fff; stroke-width: 4; }
.net-count { display: grid; justify-items: center; gap: 6px; text-align: center; }
.net-count b { font: 800 clamp(56px, 8vw, 104px)/1 var(--latin); color: var(--kiss); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.net-count span { font-weight: 700; }
@media (max-width: 760px) { .net-band { grid-template-columns: 1fr; } }
.kit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); margin-top: 32px; }
.kit > div { padding: 20px 0; border-top: 1.5px solid var(--line); }
.kit dt { font-size: 18px; font-weight: 900; }
.kit dd { margin: 6px 0 0; color: #47425E; }
@media (max-width: 760px) { .kit { grid-template-columns: 1fr; } }
.faq { margin-top: 28px; max-width: 46em; }
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 800 22px/1 var(--latin); color: var(--kiss); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: #47425E; }

/* ================= ビルダー ================= */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px clamp(10px, 2vw, 20px); background: rgba(246, 244, 251, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.bar-back:hover { background: rgba(23, 20, 43, .07); }
.bar-back svg { width: 20px; height: 20px; }
.bar-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; max-width: 28vw; }
.bar .tabs { margin: 0 auto; flex: none; }
.save-state { font-size: 13px; color: var(--mute); white-space: nowrap; }
.save-state.error { color: #C4183C; font-weight: 700; cursor: pointer; text-decoration: underline; }
.btn.status-published::before, .btn.status-closed::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7CF0B8; }
.btn.status-closed::before { background: #FFD66B; }
.btn.status-published, .btn.status-closed { background: var(--ink); border-color: var(--ink); }
.only-narrow { display: none !important; }
.guest-note { margin: 0; padding: 8px 16px; background: var(--kiss-soft); font-size: 13px; text-align: center; }
.guest-note a { font-weight: 700; }

.builder { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; flex: 1; }
.canvas { padding: 32px clamp(12px, 3vw, 40px) 120px; max-width: 800px; width: 100%; margin: 0 auto; }
.sheet, .q { background: #fff; border-radius: 20px; }
.sheet { padding: 32px 36px 24px; margin-bottom: 12px; border-top: 6px solid var(--form-accent); }
.canvas textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; overflow: hidden; background: transparent; padding: 0; }
.canvas textarea::placeholder, .canvas input::placeholder { color: #B4AFC6; }
.b-title { font-size: 30px; line-height: 1.35; font-weight: 900; }
.b-desc { margin-top: 8px; color: var(--mute); }

.q { position: relative; display: flex; margin-bottom: 12px; border: 1.5px solid transparent; transition: border-color .15s, box-shadow .15s; }
.q:hover { border-color: var(--line); }
.q.active { border-color: var(--ink); box-shadow: 0 10px 28px -14px rgba(23, 20, 43, .35); }
.q.dragging { opacity: .35; }
.q.drop-before::before, .q.drop-after::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--kiss); }
.q.drop-before::before { top: -9px; }
.q.drop-after::after { bottom: -9px; }
.q-drag { flex: none; width: 32px; display: grid; place-items: center; border: 0; background: none; color: #C9C4DA; cursor: grab; border-radius: 18px 0 0 18px; touch-action: none; }
.q-drag svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.q:hover .q-drag, .q.active .q-drag { color: var(--mute); }
.q-drag:active { cursor: grabbing; }
.q-main { flex: 1; min-width: 0; padding: 22px 28px 18px 4px; }
.q-head { display: flex; align-items: baseline; gap: 6px; }
.q-num { flex: none; min-width: 1.5em; font-weight: 700; font-size: 19px; color: var(--form-accent); font-variant-numeric: tabular-nums; }
.q-label { font-size: 19px; line-height: 1.5; font-weight: 700; }
.q.is-section .q-label { font-size: 23px; }
.q-req { display: none; flex: none; padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--form-accent) 10%, #fff); color: var(--form-accent); font-size: 12px; font-weight: 700; }
.q.is-required .q-req { display: inline-block; }
.q-desc { margin-top: 4px; font-size: 15px; color: var(--mute); display: none !important; }
.q.active .q-desc, .q.has-desc .q-desc { display: block !important; }
.q:not(.is-section) .q-desc, .q:not(.is-section) .q-body { padding-left: calc(1.5em * 19 / 16 + 6px); }
.q.is-section .q-desc, .q.is-section .q-head { padding-left: 4px; }
.q-body { margin-top: 14px; }
.q-body:empty { display: none; }
.q-ph, .q-fake { display: block; width: 100%; padding: 11px 14px; border: 1.5px dashed #D9D5E6; border-radius: 12px; background: #FBFAFE; color: var(--mute); outline: 0; }
.q-ph:focus { border-style: solid; border-color: var(--ink); background: #fff; color: var(--ink); }
.q-ph.tall { padding-bottom: 56px; }
.q-fake { max-width: 240px; }
.q-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.q-yesno span { padding: 11px 16px; border: 1.5px solid #D9D5E6; border-radius: 12px; }
.q-stars { display: flex; gap: 6px; }
.q-stars svg { display: block; width: 34px; height: 34px; stroke: #B4AFC6; stroke-width: 1.5; }
.q-scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.q-scale span { display: grid; place-items: center; height: 42px; border: 1.5px solid #D9D5E6; border-radius: 10px; font-weight: 700; font-size: 14px; }
.q-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.q-ends input { width: 48%; border: 0; border-bottom: 1.5px dashed #D9D5E6; outline: 0; padding: 4px 0; font-size: 13px; background: none; }
.q-ends input:last-child { text-align: right; }
.q-ends input:focus { border-bottom: 1.5px solid var(--ink); }
.q-opt-line { display: none; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--mute); }
.q.active .q-opt-line { display: flex; }
.q-opt-line select, .q-cond select, .q-type { padding: 5px 30px 5px 12px; border: 1.5px solid #D9D5E6; border-radius: 10px; background: #fff 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' fill='none' stroke='%236F6A86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; -webkit-appearance: none; font-size: 14px; cursor: pointer; }

.opts { display: grid; gap: 6px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 3px 6px 3px 14px; border: 1.5px solid #D9D5E6; border-radius: 12px; background: #fff; }
.opt:focus-within { border-color: var(--ink); }
.opt .mark { flex: none; width: 18px; height: 18px; border: 1.5px solid #B4AFC6; border-radius: 50%; }
.opts.multi .mark { border-radius: 5px; }
.opts.select .mark { border: 0; width: auto; height: auto; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.opt input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 7px 0; background: none; }
.opt-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: #B4AFC6; cursor: pointer; }
.opt-x svg { width: 16px; height: 16px; }
.opt-x:hover:not(:disabled) { background: var(--wash); color: var(--ink); }
.opt-x:disabled { visibility: hidden; }
.opt-add { justify-self: start; padding: 7px 14px; border: 0; background: none; color: var(--mute); font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 10px; }
.opt-add:hover { background: var(--wash); color: var(--ink); }

.q-tools { display: none; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin: 18px 0 0; padding: 12px 0 0 4px; border-top: 1px solid var(--line); }
.q.active .q-tools { display: flex; }
.q-tools .grow { flex: 1; }
.q-tool { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--mute); cursor: pointer; }
.q-tool svg { width: 19px; height: 19px; }
.q-tool:hover:not(:disabled) { background: var(--wash); color: var(--ink); }
.q-tool.red:hover { background: #FDECEF; }
.q-tool:disabled { opacity: .3; cursor: default; }

.add-wrap { position: relative; margin-top: 16px; }
.add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; border: 2px dashed #C9C4DA; border-radius: 20px; background: none; font-weight: 700; color: var(--mute); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.add-btn svg { width: 18px; height: 18px; stroke-width: 2.4; }
.add-btn:hover, .add-btn[aria-expanded=true] { border-color: var(--ink); color: var(--ink); background: #fff; }
.palette { position: absolute; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; padding: 10px; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 0 20px 48px -16px rgba(23, 20, 43, .45); }
.palette button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 14px; font-weight: 500; cursor: pointer; }
.palette button:hover, .palette button:focus-visible { background: var(--kiss-soft); }
.palette i { flex: none; display: grid; place-items: center; width: 36px; height: 30px; border-radius: 8px; background: var(--wash); font: 700 12px/1 var(--latin); font-style: normal; }
.palette button:hover i { background: #fff; }
.kbd-help { margin-top: 24px; font-size: 12px; color: var(--mute); text-align: center; }
.kbd-help kbd { display: inline-block; padding: 0 6px; border: 1px solid #C9C4DA; border-radius: 5px; background: #fff; font: 500 11px/1.7 ui-sans-serif, system-ui, sans-serif; }
@media (hover: none) { .kbd-help { display: none; } }

.settings { position: sticky; top: 57px; height: calc(100vh - 57px); overflow-y: auto; padding: 24px 22px 40px; background: #fff; border-left: 1px solid var(--line); display: grid; gap: 26px; align-content: start; }
.settings-head { display: flex; justify-content: space-between; align-items: center; }
.settings fieldset { display: grid; gap: 8px; }
.settings legend { font-size: 13px; font-weight: 700; color: var(--mute); margin-bottom: 8px; }
.settings input[type=text], .settings input[type=url], .settings textarea { font-size: 15px; padding: 9px 12px; }
.settings textarea { resize: vertical; }
.settings .sub { font-weight: 500; font-size: 13px; color: var(--mute); margin-top: 4px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; padding: 10px 12px; border: 1.5px solid #D9D5E6; border-radius: 12px; cursor: pointer; line-height: 1.45; }
.seg b { font-size: 15px; }
.seg small { font-size: 12px; color: var(--mute); }
.seg input:checked + span { border-color: var(--ink); background: var(--wash); box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--kiss) 45%, transparent); outline-offset: 2px; }
.seg.small { gap: 4px; }
.seg.small span { padding: 5px 16px; font-size: 14px; font-weight: 700; border-radius: 99px; text-align: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button, .swatches .custom { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; position: relative; }
.swatches .on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ink); }
.swatches .custom { background: var(--c, conic-gradient(#E5305F, #D9A300, #14855A, #0E7FBF, #7A3FD1, #E5305F)); overflow: visible; }
.swatches .custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.settings-danger { padding-top: 8px; border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .only-narrow { display: inline-flex !important; }
  .settings { position: fixed; inset: auto 0 0 0; top: auto; z-index: 40; height: auto; max-height: 82vh; border-left: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(23, 20, 43, .3); transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .settings.open { transform: none; }
  .bar-title, .save-state:not(.error) { display: none; }
  .bar .tabs { margin: 0 auto 0 0; }
}
@media (max-width: 560px) {
  .bar { gap: 6px; }
  .bar .tabs a { padding: 4px 12px; }
  .bar .btn.small { padding: 6px 12px; }
  .sheet { padding: 24px 20px 18px; }
  .b-title { font-size: 24px; }
  .q-main { padding: 18px 16px 14px 0; }
  .q-drag { width: 26px; }
}

/* 共有 */
.share { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(23, 20, 43, .45); }
.share-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; background: #fff; border-radius: 24px; display: grid; gap: 12px; box-shadow: 0 24px 64px -12px rgba(23, 20, 43, .4); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.share-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.share-x:hover { background: var(--wash); }
.share-x svg { width: 20px; height: 20px; }
.share-open { font-size: 14px; font-weight: 700; justify-self: start; }
.share details { font-size: 14px; }
.share summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.share details textarea { margin: 8px 0; font: 13px/1.6 ui-monospace, Menlo, monospace; resize: none; }
.share-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }

/* プレビュー */
.preview { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; background: var(--ink); }
.preview-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.preview-bar .seg span { border-color: rgba(255, 255, 255, .3); color: #fff; }
.preview-bar .seg input:checked + span { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.preview-stage { flex: 1; display: grid; place-items: stretch; padding: 0 16px 16px; min-height: 0; }
.preview-stage iframe { width: 100%; height: 100%; border: 0; border-radius: 16px; background: #fff; justify-self: center; transition: width .3s cubic-bezier(.2, .8, .2, 1); }
.preview.mobile iframe { width: min(390px, 100%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
}

/* ---- 迷惑フォーム営業撃退 ---- */
.folders { display: flex; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.folders a { padding: 8px 2px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--mute); }
.folders a:hover { color: var(--ink); }
.folders a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.folders b { font: 700 13px/1 var(--latin); margin-left: 4px; font-variant-numeric: tabular-nums; }
.folder-note { font-size: 14px; color: var(--mute); max-width: 44em; }
.folder-note + section .page-head.sub { margin-top: 24px; }
.dialog.response footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.dialog.response footer form { margin-top: 0; }
.dialog.response footer p { margin-top: 6px; }
.form-count small { display: block; font-size: 12px; font-weight: 500; color: var(--mute); }
.set-help { font-size: 13px; line-height: 1.6; color: var(--mute); }
.b-consent { margin-top: 16px; padding: 16px 20px; border-radius: 16px; border: 1.5px dashed #C9C4DA; display: grid; gap: 6px; font-size: 14px; }
.b-consent b { font-size: 12px; color: var(--form-accent, var(--kiss)); }
.b-consent p { display: flex; gap: 10px; align-items: flex-start; }
.b-consent .box { flex: none; width: 18px; height: 18px; margin-top: 3px; border: 1.5px solid #C9C4DA; border-radius: 5px; background: #fff; }
.b-consent small { color: var(--mute); }
.steps-3 { counter-reset: step; list-style: none; padding: 0; }
.steps-3 > li { counter-increment: step; }
.steps-3 h3::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 15px/1 var(--latin); }
.band-note { margin-top: 32px; font-size: 14px; color: var(--mute); max-width: 46em; }

/* ---- 対応状況 ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips a { padding: 4px 14px; border-radius: 99px; background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--mute); }
.chips a:hover { color: var(--ink); }
.chips a[aria-current] { background: var(--ink); color: #fff; }
.chips b { font: 700 12px/1 var(--latin); margin-left: 2px; }
.st { display: inline-block; padding: 1px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.st-new.st { background: #FDE7EC; color: #B01540; }
.st-doing.st { background: #FFF1CC; color: #7A5600; }
.st-done.st { background: #E3F4EC; color: #0F6B47; }
.has-note { margin-left: 8px; font-size: 11px; color: var(--mute); }
.none { padding: 24px 0; }
.dialog.response .track { margin-top: 20px; padding: 16px; border-radius: 16px; background: var(--wash); display: grid; gap: 10px; justify-items: start; }
.dialog.response .track > * { margin-top: 0; }
.dialog.response .track textarea { width: 100%; font-size: 14px; padding: 8px 12px; resize: vertical; }
.form-count small.todo { color: #B01540; font-weight: 700; }

/* ---- 設定パネルのまとまり ---- */
.set-group { border-top: 1px solid var(--line); padding-top: 18px; }
.set-group summary { cursor: pointer; font-size: 15px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.set-group summary::-webkit-details-marker { display: none; }
.set-group summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.set-group[open] summary::after { transform: rotate(-135deg); }
.set-group fieldset { margin-top: 22px; }
.set-more { display: grid; gap: 8px; margin-top: 4px; }
.set-more[hidden] { display: none; }
.settings input[type=datetime-local], .settings input[type=number] { font-size: 15px; padding: 9px 12px; width: 100%; }

/* ---- 表示条件 ---- */
.q-cond { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--mute); }
.q-cond select { max-width: 100%; font-size: 13px; padding: 5px 28px 5px 10px; }
.q-condtag { flex: none; align-self: center; padding: 1px 8px; border-radius: 99px; background: rgba(23, 20, 43, .07); font-size: 11px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.dialog.response .track textarea { border: 1.5px solid #D9D5E6; border-radius: 10px; background: #fff; font-family: inherit; }

/* ---- 申請・報告・確認 ---- */
.stack textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #D9D5E6; border-radius: 12px; background: #fff; font: 400 16px/1.6 inherit; font-family: inherit; outline: 0; resize: vertical; }
.stack textarea:focus { border-color: var(--kiss); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kiss) 16%, transparent); }
.stack fieldset { border: 0; padding: 0; margin: 0; }
.stack legend { margin-bottom: 4px; }
.stack label.radio { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.stack label.radio input { width: auto; }
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 20px; padding: 12px 18px; border-radius: 16px; background: #FFF4D6; color: #5C4A06; font-size: 14px; }
.verify-bar form { margin-left: auto; }
.verify-bar button { font-weight: 700; color: inherit; text-decoration: underline; }
.pill.blocked { background: #FBE2E7; color: #A3132F; }

/* ---- 管理画面 ---- */
.admin-sec { margin-top: 40px; }
.admin-sec h2 { margin-bottom: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--wash); }
.admin-table th { font-size: 12px; color: var(--mute); font-weight: 700; border-top: 0; }
.admin-table .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-table .actions form { display: inline; }
.admin-table pre { white-space: pre-wrap; font: inherit; margin: 0; max-width: 46ch; }
.admin-table details summary { cursor: pointer; color: var(--mute); }
.admin-sub { margin: 24px 0 10px; }
.admin-find { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-find input { flex: 1 1 220px; max-width: 360px; }
.notice-warn { padding: 10px 12px; border-left: 3px solid var(--danger, #c33); background: var(--bg-soft, rgba(200,50,50,.06)); margin: 0 0 12px; }

/* ---- プラン・料金 ---- */
.plan-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 20px; padding: 12px 18px; border-radius: 16px; background: #fff; font-size: 14px; }
.plan-bar .meter { flex: 1 1 120px; max-width: 220px; height: 8px; border-radius: 99px; background: var(--wash); overflow: hidden; }
.plan-bar .meter i { display: block; height: 100%; border-radius: inherit; background: var(--kiss); }
.plan-bar .meter i.warn { background: #D98A00; }
.plan-bar a { margin-left: auto; font-weight: 700; }
.plan-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.ok-note { padding: 10px 14px; border-radius: 12px; background: #DDF3E8; color: #0C6845; font-size: 14px; }
.upsell { margin: 0 0 16px; padding: 12px 18px; border-radius: 16px; background: #FFF4D6; color: #5C4A06; font-size: 14px; }
.upsell a { font-weight: 700; color: inherit; }
.listed { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 99px; background: #FFF4D6; color: #7A5B00; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pricing-head { max-width: 640px; margin: 16px auto 32px; text-align: center; }
.pricing-head p { margin-top: 12px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.plan-card { background: #fff; border-radius: 20px; padding: 24px; border: 2px solid transparent; }
.plan-card.main { border-color: var(--kiss); }
.plan-card .plan-price { margin: 8px 0; }
.plan-card .plan-price b { font-size: 34px; font-family: "Bricolage Grotesque", sans-serif; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan-table th, .plan-table td { padding: 12px 16px; border-top: 1px solid var(--wash); text-align: center; }
.plan-table tbody th { text-align: left; font-weight: 500; }
.plan-table thead th { border-top: 0; }
.pricing-cta { text-align: center; margin: 32px 0 12px; }
.fine.center { text-align: center; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.legal-table th, .legal-table td { padding: 12px 8px; border-top: 1px solid #E4E0EE; text-align: left; vertical-align: top; }
.legal-table th { width: 32%; font-weight: 700; }

/* ---- 撃退実績・迷惑営業リスト・まとめて報告 ---- */
.shield { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 14px; }
.shield svg { flex: none; width: 30px; height: 30px; color: #FF8FAB; stroke-width: 2; }
.shield b { font: 800 22px/1 var(--latin); margin: 0 2px; font-variant-numeric: tabular-nums; }
.shield .mute { color: #B9B3D1; }
.shield a { color: #fff; font-weight: 700; }
.shield p { flex: 1; }
.shield-link { flex: none; font-size: 13px; text-underline-offset: 3px; }
.sender-list { display: grid; }
.sender-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sender-list li > span { display: grid; min-width: 0; }
.sender-list b { overflow-wrap: anywhere; }
.sender-list small { font-size: 12px; }
.sender-trusted summary { cursor: pointer; font-size: 14px; color: var(--mute); }
.sender-trusted .fine { margin: 6px 0; }
.bulk-bar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 10px 14px 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; }
.bulk-bar b { font-family: var(--latin); font-size: 16px; }
.btn.red-fill { background: #C4183C; border-color: #C4183C; }
.rtable .pick { width: 44px; padding-right: 0; cursor: default; }
.rtable .pick input { width: 18px; height: 18px; accent-color: var(--kiss); cursor: pointer; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.listed.soft { background: var(--kiss-soft); color: #A3123A; }
.others-note { padding: 10px 14px; border-radius: 12px; background: var(--kiss-soft); color: #7D0F2E; font-size: 14px; }
.b-warn { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: #FFF4D6; color: #5C4A06; font-size: 13px; display: block !important; }
.b-warn[hidden] { display: none !important; }
.b-guard { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 99px; background: color-mix(in srgb, var(--form-accent, var(--kiss)) 9%, #fff); color: var(--mute); font-size: 12px; font-weight: 700; }

/* ================= 撃退ガイド（記事） ================= */
body.paper { background: var(--paper); }
.art-index { max-width: 880px; margin: 0 auto; padding: clamp(32px, 7vh, 72px) clamp(16px, 4vw, 40px) 80px; }
.art-index-head h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.3; font-weight: 900; word-break: auto-phrase; }
.art-list { list-style: none; margin-top: 48px; border-top: 2px solid var(--ink); }
.art-list li { border-bottom: 1.5px solid var(--line); }
.art-list a { display: block; padding: 24px 0; text-decoration: none; }
.art-list h2 { font-size: 21px; line-height: 1.5; font-weight: 900; word-break: auto-phrase; text-wrap: balance; }
.art-list a:hover h2 { color: var(--kiss); }
.art-list p { margin-top: 6px; color: #47425E; font-size: 15px; }
.art { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vh, 64px) clamp(16px, 4vw, 32px) 80px; }
.art-head h1 { margin: 10px 0 12px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.35; font-weight: 900; word-break: auto-phrase; text-wrap: balance; }
.art-body { margin-top: 32px; font-size: 17px; line-height: 2; }
.art-body > * + * { margin-top: 1.2em; }
.art-body h2 { margin-top: 2.4em; padding-top: 1.2em; border-top: 2px solid var(--ink); font-size: 24px; line-height: 1.45; font-weight: 900; word-break: auto-phrase; }
.art-body h3 { margin-top: 1.8em; font-size: 19px; font-weight: 900; }
.art-body ul, .art-body ol { padding-left: 1.4em; }
.art-body ul { list-style: disc; }
.art-body li + li { margin-top: .4em; }
.art-body a { color: var(--kiss); font-weight: 700; text-underline-offset: 3px; }
.art-body strong { background: linear-gradient(transparent 62%, var(--kiss-soft) 62%); }
.art-body .lede { font-size: 19px; line-height: 1.9; color: #2E2A45; }
.art-body .note { padding: 16px 20px; border-radius: 14px; background: var(--wash); font-size: 15px; line-height: 1.8; }
.art-body .steps { list-style: none; padding: 0; counter-reset: s; }
.art-body .steps > li { counter-increment: s; position: relative; padding-left: 48px; }
.art-body .steps > li + li { margin-top: 1em; }
.art-body .steps > li::before { content: counter(s); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 15px/1 var(--latin); }
.art-body .mock { margin: 1.6em 0; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 6px 6px 0 var(--kiss); font-size: 15px; line-height: 1.7; }
.art-body .mock b { display: block; font-size: 12px; color: var(--mute); }
.art-body .mock pre { margin: 6px 0 0; white-space: pre-wrap; font: inherit; }
.art-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.art-body th, .art-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.art-body th { font-weight: 700; white-space: nowrap; }
.art-cta { margin-top: 56px; padding: clamp(24px, 4vw, 40px); border: 2px solid var(--ink); border-radius: 24px; background: var(--kiss-soft); text-align: center; display: grid; justify-items: center; gap: 14px; }
.art-cta h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; line-height: 1.4; word-break: auto-phrase; }
.art-cta p { max-width: 32em; font-size: 15px; }
.art-more { margin-top: 48px; }
.art-more ul { margin-top: 12px; }
.art-more li { padding: 10px 0; border-top: 1px solid var(--line); }
.art-more a { font-weight: 700; text-decoration: none; }
.art-more a:hover { color: var(--kiss); text-decoration: underline; }
.kit dt a { text-decoration: none; }
.kit dt a:hover { color: var(--kiss); text-decoration: underline; text-underline-offset: 4px; }
.kit-more { margin-top: 24px; font-weight: 700; }
.kit-more a { color: var(--kiss); text-underline-offset: 4px; }
.settings input.bad { border-color: #C4183C; }
.chat-set .sub + .sub { margin-top: 10px; } .chat-set .btn { margin-top: 10px; }
.set-help.warn-text { color: #8A5A00; }

/* ================= テンプレートの公開ページ ================= */
.tpl-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 40px; }
.tpl-pages a { display: grid; gap: 4px; height: 100%; padding: 20px 22px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; text-decoration: none; transition: background .15s; }
.tpl-pages a:hover { background: var(--kiss-soft); }
.tpl-pages h2 { font-size: 19px; font-weight: 900; }
.tpl-pages p { font-size: 14px; color: #47425E; }
.tpl-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; max-width: 1240px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) clamp(16px, 4vw, 40px) 48px; }
.tpl-page h1 { margin-top: 10px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.3; font-weight: 900; word-break: auto-phrase; }
.tpl-page-copy .h3 { margin-top: 40px; }
.tpl-points { margin-top: 10px; list-style: disc; padding-left: 1.3em; color: #47425E; }
.tpl-points li + li { margin-top: 4px; }
.tpl-qs { margin-top: 10px; padding-left: 1.6em; }
.tpl-qs li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tpl-qs span { margin-left: 10px; font-size: 13px; }
.tpl-page .fine { margin-top: 12px; }
.tpl-page .hero-demo { position: sticky; top: 16px; }
@media (max-width: 860px) { .tpl-page { grid-template-columns: minmax(0, 1fr); } .tpl-page .hero-demo { position: static; } }
.tpl-others { max-width: 1240px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 64px; border-top: 2px solid var(--ink); }
.tpl-others ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.tpl-others a { font-weight: 700; text-underline-offset: 4px; }
.import-box { margin: 16px 0 8px; }
.import-box summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.import-box textarea { display: block; width: 100%; margin: 10px 0; padding: 12px 14px; border: 1.5px solid #D9D5E6; border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.7; resize: vertical; }
.import-box textarea:focus { border-color: var(--kiss); outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--kiss) 16%, transparent); }
.import-box .fine { margin-top: 8px; }
.import-band { margin-top: 56px; padding-top: 32px; border-top: 2px solid var(--ink); }
.import-band .import-box { max-width: 640px; }
.reply-hist { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.reply-hist article { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--wash); font-size: 14px; }
.reply-box { margin-top: 20px; }
.reply-box summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.reply-box form { margin-top: 10px; }
.reply-box input, .reply-box textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #D9D5E6; border-radius: 12px; background: #fff; font-size: 15px; }
.reply-box .btn { justify-self: start; }
.points h3 a { text-decoration: none; } .points h3 a:hover { color: var(--kiss); text-decoration: underline; text-underline-offset: 4px; }
.plan-table td { white-space: nowrap; } @media (max-width: 520px) { .plan-table th, .plan-table td { padding-left: 8px; padding-right: 8px; font-size: 13px; } .plan-table tbody th { min-width: 9em; } }
.first-steps { display: grid; gap: 10px; margin: 4px 0; padding: 14px 16px 14px 36px; border-radius: 16px; background: var(--wash); font-size: 14px; }
.first-steps li { padding-left: 4px; }
.first-steps li::marker { font: 800 14px var(--latin); color: var(--kiss); }
.first-steps b { display: block; }
.first-steps span { display: block; color: var(--mute); font-size: 13px; line-height: 1.6; }
.first-steps .btn { margin-top: 6px; }
.first-links { display: flex; gap: 20px; justify-content: center; font-size: 14px; font-weight: 700; }
.first-links a { text-underline-offset: 4px; }
.r-search { margin-left: auto; }
.r-search input { width: min(260px, 52vw); padding: 7px 14px; border: 1.5px solid #D9D5E6; border-radius: 99px; background: #fff; font-size: 14px; }
.r-search input:focus { outline: 0; border-color: var(--kiss); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kiss) 16%, transparent); }
.search-note { margin: -4px 0 12px; }
.r-nav { display: inline-flex; gap: 16px; align-items: center; } .r-nav [data-step] { text-decoration: none; font-weight: 700; color: var(--ink); }
.r-nav [data-step]:disabled { color: #C9C4DA; cursor: default; }
.shield { flex-wrap: wrap; }
.shield-top { flex-basis: 100%; margin-left: 44px; font-size: 13px; }
.shield-top summary { cursor: pointer; color: #B9B3D1; }
.shield-top ol { margin-top: 8px; padding-left: 1.4em; display: grid; gap: 4px; max-width: 320px; list-style: decimal; }
.shield-top li span { overflow-wrap: anywhere; }
.shield-top li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shield-top li::marker { color: #B9B3D1; }
.shield-top li b { flex: none; font: 700 13px var(--latin); }
@media (max-width: 520px) { .shield-top { margin-left: 0; } }
.pre-check { display: grid; gap: 6px; margin: 0; padding: 12px 16px 12px 32px; border-radius: 14px; background: #FFF4D6; color: #5C4A06; font-size: 13px; line-height: 1.6; list-style: disc; }
.bulk-add summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.bulk-add textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1.5px solid #D9D5E6; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 12px 0 8px; }
.kpi > div { padding: 14px 16px; border-radius: 14px; background: #fff; }
.kpi > div.main { background: var(--ink); color: #fff; }
.kpi dt { font-size: 12px; color: var(--mute); }
.kpi .main dt { color: #B9B3D1; }
.kpi dd { margin: 4px 0 0; font: 800 26px/1.2 var(--latin); font-variant-numeric: tabular-nums; }
.kpi dd small { font: 500 13px var(--jp); color: var(--mute); }
@media (max-width: 420px) { .bar { gap: 4px; padding-left: 6px; padding-right: 6px; } .bar .tabs a { padding: 4px 9px; } .bar .btn.small { padding: 6px 9px; font-size: 13px; } .bar-back { width: 30px; } }
@media (max-width: 370px) { .bar .btn.small { padding: 6px 7px; font-size: 12px; } .bar .tabs a { padding: 4px 7px; font-size: 13px; } }
@media (max-width: 520px) { .shield-link { flex-basis: 100%; margin-left: 44px; max-width: calc(100% - 44px); } .plan-pick .btn { white-space: normal; text-align: center; } .bar .btn.small { white-space: nowrap; } }
.sender-trusted textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1.5px solid #D9D5E6; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.src-chip { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 10px; border-radius: 99px; background: #fff; } .src-chip b { font-family: var(--latin); margin-left: 4px; }
@media (max-width: 340px) { .bar { gap: 2px; padding-left: 4px; padding-right: 4px; } .bar-back { width: 26px; } .bar .tabs { padding: 3px; } .bar .tabs a { padding: 3px 6px; font-size: 12px; } .bar .btn.small { padding: 5px 6px; font-size: 12px; } }
.opts { grid-template-columns: minmax(0, 1fr); } .opt { min-width: 0; } .opt input { width: 100%; }
.spam-empty { margin: 8px 0 0; }

/* ---- 広告（AdSense・PR 枠） ---- */
.ad-unit { margin: 40px auto 0; max-width: 760px; }
.ad-label { display: inline-block; font-size: 11px; letter-spacing: .08em; color: var(--mute); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-bottom: 4px; }
.pr-slot { margin: 12px 0; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; font-size: 14px; }
.pr-slot a { font-weight: 500; }
.free-list { margin: 0; padding-left: 1.2em; }
.free-list li + li { margin-top: 6px; }
.pr-profile { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pr-profile .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.pr-form { display: grid; gap: 8px; margin: 0 0 14px; max-width: 640px; }
.pr-needs { display: flex; flex-wrap: wrap; gap: 4px 14px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pr-needs label { font-weight: 400; font-size: 14px; }

/* 管理画面: タブ・対応待ち・カード */
.admin-tabs { display: flex; gap: 4px; margin: 8px 0 4px; border-bottom: 1.5px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.admin-tabs a { flex: none; padding: 10px 14px; font-weight: 700; font-size: 15px; color: var(--mute); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--kiss); }
.admin-tabs .badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--kiss); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.admin-alert { display: block; margin: 20px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--kiss-soft); color: var(--ink); text-decoration: none; }
.admin-alert:hover { text-decoration: underline; }
.admin-empty { padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--mute); text-align: center; }
.admin-help { margin: 0 0 12px; font-size: 14px; color: var(--mute); }
.admin-help summary { cursor: pointer; width: fit-content; }
.admin-help p { margin: 6px 0 0; max-width: 72ch; }
.admin-cards { display: grid; gap: 12px; }
.admin-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.admin-card header { margin-bottom: 4px; }
.admin-card p { margin: 0 0 8px; }
.admin-card pre { white-space: pre-wrap; font: inherit; font-size: 14px; margin: 0 0 12px; padding: 10px 12px; background: var(--wash); border-radius: 10px; }
.admin-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-add { margin: 0 0 16px; }
.admin-add > summary { list-style: none; display: inline-block; cursor: pointer; }
.admin-add > summary::-webkit-details-marker { display: none; }
.admin-add[open] > summary { margin-bottom: 12px; }
.admin-add .pr-form, .pr-edit-row .pr-form { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; max-width: 760px; }
.pr-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.pr-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
@media (min-width: 720px) { .pr-grid { grid-template-columns: 2fr 2fr 1fr; } }
.pr-code { display: grid; gap: 4px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.pr-code textarea { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 400; }
.pr-edit-row td { border-top: 0 !important; padding-top: 0 !important; }
.pr-edit-row summary { cursor: pointer; color: var(--mute); width: fit-content; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table tr.is-off td { color: var(--mute); }
.admin-table.settings th { width: 180px; font-size: 14px; color: var(--ink); }
.pill.on { background: #DDF3E8; color: #0C6845; }
.pill.off { background: var(--wash); color: var(--mute); }
.btn.danger { color: #A3132F; }
