:root {
  --main: #f07c1e; --main-d: #d0640c; --main-l: #fff3e8;
  --ink: #2b2b2b; --sub: #6b6b6b; --line: #e3e3e3; --bg: #f4f4f1; --card: #fff;
  --ok: #2e9d5b; --warn: #c94040; --blue: #2a73c9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, .btn { font: inherit; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; padding: 8px 14px; display: inline-block; text-align: center; }
.btn:hover { text-decoration: none; }
.btn-main, button.btn-main { background: var(--main); border-color: var(--main); color: #fff; font-weight: 700; }
.btn-main:hover { background: var(--main-d); }
.btn-big { padding: 14px 20px; font-size: 17px; width: 100%; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-danger { color: var(--warn); border-color: #f0c4c4; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; width: 100%; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-weight: 700; margin: 14px 0 4px; font-size: 14px; }
label .req { color: #fff; background: var(--warn); font-size: 11px; padding: 1px 5px; border-radius: 3px; margin-left: 6px; }
label .opt { color: var(--sub); font-weight: 400; font-size: 12px; margin-left: 6px; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 6px 0; }
.check input { width: auto; }
.muted { color: var(--sub); font-size: 13px; }
.hint { color: var(--sub); font-size: 12px; margin: 4px 0 0; }

/* ヘッダー */
.hd { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.hd-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 16px; align-items: center; }
.logo { font-weight: 800; font-size: 22px; color: var(--main); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.logo small { font-size: 12px; color: var(--sub); font-weight: 400; }
.logo:hover { text-decoration: none; }
.logo-mark { background: var(--main); color: #fff; border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 18px; }
.search { flex: 1; display: flex; max-width: 520px; }
.search input { border-radius: 6px 0 0 6px; border-color: var(--main); }
.search button { border-radius: 0 6px 6px 0; background: var(--main); color: #fff; border-color: var(--main); white-space: nowrap; }
.hd-nav { display: flex; gap: 8px; align-items: center; margin-left: auto; white-space: nowrap; }
.hd-nav a.navi { color: var(--ink); font-size: 13px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; position: relative; padding: 0 6px; }
.hd-nav a.navi span:first-child { font-size: 20px; }
.badge { position: absolute; top: -4px; right: 0; background: var(--warn); color: #fff; font-size: 11px; border-radius: 10px; padding: 0 6px; }
.cats { background: var(--main); }
.cats-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; overflow-x: auto; }
.cats a { color: #fff; padding: 9px 14px; white-space: nowrap; font-weight: 700; font-size: 14px; }
.cats a.on { background: rgba(0, 0, 0, .16); }
.cats a:hover { text-decoration: none; background: rgba(0, 0, 0, .1); }
.cats .cats-alert { margin-left: auto; }

/* レイアウト */
main { max-width: 1180px; margin: 0 auto; padding: 16px; min-height: 60vh; }
.cols { display: grid; grid-template-columns: 200px 1fr 220px; gap: 16px; align-items: start; }
.cols2 { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.box + .box { margin-top: 12px; }
.box h2, .box h3 { margin: 0 0 10px; font-size: 16px; }
h1 { font-size: 20px; margin: 0 0 12px; }
.crumb { font-size: 13px; color: var(--sub); margin-bottom: 10px; }

/* サイドの地域 */
.side h3 { font-size: 14px; background: #fafafa; margin: -16px -16px 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.region { margin-bottom: 8px; }
.region b { font-size: 12px; color: var(--sub); display: block; }
.region a { font-size: 13px; margin-right: 8px; display: inline-block; color: var(--ink); }
.region a.on { color: var(--main); font-weight: 700; }
.pref-select { display: none; }

/* 一覧（ジモティー風の行リスト） */
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.list-head h1 { margin: 0; }
.filters { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.filters select { width: auto; padding: 4px 8px; }
.filters label { margin: 0; font-weight: 400; display: flex; gap: 4px; align-items: center; }
.filters input { width: auto; }
.rows { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.row { display: flex; gap: 14px; padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink); position: relative; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #fffaf5; text-decoration: none; }
.thumb { width: 130px; height: 100px; flex: none; border-radius: 6px; overflow: hidden; background: var(--main-l); display: grid; place-items: center; font-size: 44px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1; min-width: 0; }
.row-title { font-weight: 700; color: var(--blue); font-size: 16px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-meta { font-size: 13px; color: var(--sub); display: flex; gap: 10px; flex-wrap: wrap; }
.row-fee { font-weight: 700; color: var(--ink); }
.st { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 3px; color: #fff; display: inline-block; }
.st-募集中 { background: var(--ok); } .st-交渉中 { background: #e0a100; } .st-決定 { background: #999; }
.row.done { opacity: .6; }
.tag { font-size: 12px; border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; background: #fafafa; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 16px 0; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: 4px; }
.pager span { background: var(--main); color: #fff; border-color: var(--main); }
.empty { text-align: center; padding: 40px 16px; color: var(--sub); }

/* 広告 */
.ad:empty { display: none; }
.ad-top { max-width: 1180px; margin: 12px auto 0; padding: 0 16px; }
.ad-box { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: var(--ink); position: relative; }
.ad-box:hover { text-decoration: none; }
.ad-box img { width: 100%; }
.ad-label { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; padding: 0 5px; border-radius: 3px; }
.ad-text { padding: 10px 12px; font-size: 14px; }
.ad-text b { display: block; }
.ad-empty { display: block; border: 2px dashed #d9d0c4; border-radius: 8px; padding: 16px; text-align: center; color: var(--sub); font-size: 13px; background: #fbf8f4; }
.ad-top .ad-empty { padding: 10px; }
.ad-feed { border-bottom: 1px solid var(--line); padding: 10px 12px; background: #fffdf8; }
.side-ads .ad + .ad { margin-top: 12px; }

/* 詳細 */
.gallery-main { aspect-ratio: 4 / 3; background: var(--main-l); border-radius: 8px; overflow: hidden; display: grid; place-items: center; font-size: 120px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #222; }
.gallery-thumbs { display: flex; gap: 6px; margin-top: 6px; }
.gallery-thumbs img { width: 70px; height: 54px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.on { border-color: var(--main); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.spec th { width: 34%; background: #fafafa; font-weight: 700; color: var(--sub); }
.pre { white-space: pre-wrap; margin: 0; }
.fee { font-size: 24px; font-weight: 800; color: var(--warn); }
.cond { background: var(--main-l); border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.cond li { margin: 2px 0; }
.ng { color: var(--warn); font-weight: 700; }
.owner { display: flex; gap: 10px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--main-l); display: grid; place-items: center; font-size: 22px; flex: none; }
.sticky { position: sticky; top: 110px; }

/* やりとり */
.steps { display: flex; gap: 0; margin-bottom: 12px; font-size: 12px; }
.steps div { flex: 1; text-align: center; padding: 6px 2px; background: #eee; color: var(--sub); position: relative; }
.steps div.on { background: var(--main); color: #fff; font-weight: 700; }
.steps div.end { background: #999; color: #fff; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 80%; }
.msg .bubble { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; }
.msg.me .bubble { background: #ffe9d4; border-color: #f7cfa8; }
.msg .who { font-size: 11px; color: var(--sub); margin: 0 4px 2px; }
.msg.me .who { text-align: right; }
.send { display: flex; gap: 8px; margin-top: 10px; }
.send textarea { min-height: 50px; }
.slot { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.prof dt { font-size: 12px; color: var(--sub); }
.prof dd { margin: 0 0 8px; font-weight: 700; }

/* マイページ */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--main); margin-bottom: 12px; overflow-x: auto; }
.tabs a { padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; color: var(--ink); white-space: nowrap; font-size: 14px; }
.tabs a.on { background: var(--main); color: #fff; border-color: var(--main); font-weight: 700; }
.alert-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); gap: 8px; }
.notice { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.notice.unread { background: #fff7ee; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form { max-width: 720px; margin: 0 auto; }
.form .box h2 { border-left: 4px solid var(--main); padding-left: 8px; }
.photo-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-picker .ph { width: 100px; height: 80px; border-radius: 6px; overflow: hidden; position: relative; }
.photo-picker .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-picker .ph button { position: absolute; top: 2px; right: 2px; padding: 0 6px; font-size: 12px; background: rgba(0, 0, 0, .6); color: #fff; border: 0; }
.photo-picker .add { width: 100px; height: 80px; border: 2px dashed #ccc; border-radius: 6px; display: grid; place-items: center; color: var(--sub); cursor: pointer; font-size: 13px; text-align: center; }
.info { background: #eef5ff; border: 1px solid #cfe0f7; border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.warnbox { background: #fff1f1; border: 1px solid #f3c9c9; border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.stats b { display: block; font-size: 24px; color: var(--main); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 6px; text-align: left; }

.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 10px; padding: 20px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 60; max-width: 90vw; }
.toast.err { background: var(--warn); }

.ft { background: #3a3633; color: #ddd; margin-top: 30px; }
.ft-in { max-width: 1180px; margin: 0 auto; padding: 20px 16px; font-size: 13px; }
.ft a { color: #fff; margin-right: 16px; }
.ft p { margin: 8px 0 0; }

@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr; }
  .cols > .side { display: none; }
  .pref-select { display: block; width: auto; }
  .side-ads { display: none; }
  .cols2 { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 640px) {
  .hd-in { flex-wrap: wrap; gap: 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo { font-size: 18px; }
  .thumb { width: 96px; height: 76px; font-size: 32px; }
  .row-title { font-size: 15px; }
  .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cats .cats-alert { margin-left: 0; }
  .msg { max-width: 92%; }
}

/* 運営画面：アクセス・違反 */
.online { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.online b { font-size: 30px; color: var(--ok); }
.online .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 157, 91, .2); }
.stats b.red { color: var(--warn); }
.legend { font-size: 12px; color: var(--sub); display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.sw.pv, .bar .pv { background: #f7b47a; }
.sw.uv, .bar .uv { background: var(--main); }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 180px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.bar .col { flex: 1; width: 100%; position: relative; }
.bar .col span { position: absolute; bottom: 0; border-radius: 3px 3px 0 0; }
.bar .col .pv { left: 10%; right: 10%; }
.bar .col .uv { left: 30%; right: 30%; }
.bar b { font-size: 11px; height: 15px; }
.bar small { font-size: 10px; color: var(--sub); white-space: nowrap; }
.vbadge { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 3px; background: #fde9c8; color: #8a5300; margin-left: 4px; }
.vbadge.hot { background: var(--warn); color: #fff; }
.tbl tr.flag td { background: #fff6ec; }
.tbl tr.banned td { background: #f3f3f3; color: var(--sub); }

/* 地域のインサイト */
.tabs.sub { margin-top: -4px; }
.tabs.sub a { font-size: 13px; padding: 4px 12px; }
.insight { padding: 10px 0; border-top: 1px solid var(--line); }
.insight:first-of-type { border-top: 0; padding-top: 0; }
.insight p { margin: 2px 0 6px; font-size: 12px; }
.chip { display: inline-block; background: #fff4ea; border: 1px solid #f7c99c; border-radius: 999px; padding: 3px 10px; margin: 0 6px 6px 0; font-size: 13px; }
.chip small { color: var(--sub); margin-left: 4px; }
.hbar { display: grid; grid-template-columns: 7em 1fr 5.5em; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.hbar > div { background: #f3f3f3; border-radius: 3px; height: 14px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--main); }
.hbar b { text-align: right; }
.hbar small { color: var(--sub); font-weight: normal; margin-left: 6px; }
.tblwrap { overflow-x: auto; }
.tbl.geo td, .tbl.geo th { text-align: right; white-space: nowrap; }
.tbl.geo td:first-child, .tbl.geo th:first-child { text-align: left; }
.tbl.geo td.vis { position: relative; min-width: 90px; }
.tbl.geo td.vis i { position: absolute; left: 4px; top: 25%; height: 50%; background: #fbd7b5; border-radius: 2px; max-width: calc(100% - 8px); }
.tbl.geo td.vis span { position: relative; }
.tbl.geo td.hi { color: var(--main); font-weight: bold; }
.small { font-size: 12px; }

/* 見本・シェア */
.st-demo { background: #6b7bd6; }
.warnbox.demo { background: #eef0ff; border-color: #c6ccf5; color: #333; margin-bottom: 10px; }
.btn-share { width: 100%; margin-top: 8px; background: #fff; border: 1px solid var(--main); color: var(--main); font-weight: 700; }
.share-card { display: block; width: 100%; max-width: 300px; margin: 8px auto 12px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btns .btn, .share-btns button { width: 100%; }
.share-btns .line { background: #06c755; border-color: #06c755; color: #fff; font-weight: 700; }

/* 協力店・注目掲載 */
.st-pr { background: #e6a700; }
.row.featured { background: #fffaf0; border-left: 3px solid #e6a700; }
.form.wide { max-width: 900px; }
.shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.shop { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: var(--ink); align-items: flex-start; }
a.shop:hover { text-decoration: none; border-color: var(--main); }
.shop img, .shop .shop-ic { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; flex: none; }
.shop .shop-ic { background: var(--main-l); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.shop b { display: block; font-size: 15px; }
.shop p { margin: 6px 0 0; font-size: 13px; }
.shop-cat { font-size: 11px; color: var(--main-d); font-weight: 700; }
.shop-catch { color: #c0392b; font-size: 13px; font-weight: 700; margin: 2px 0; }
.shop.sm { padding: 8px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.shop.sm img, .shop.sm .shop-ic { width: 48px; height: 48px; font-size: 22px; }

.privacy h2 { font-size: 16px; margin: 18px 0 6px; }
.privacy ul { padding-left: 20px; margin: 0; }
.privacy li { margin: 4px 0; }

.vbanner { max-width: 1200px; margin: 0 auto 10px; background: #fff8e1; border: 1px solid #f3d27a; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
