/* フリマミッケ：2026-11-16 見た目の作り直し（社内の指摘による）
   方針：検索サービスらしく「検索欄がいちばん上」。白地・線は最小限・角丸は小さく・影なし。
   色の強いボタンは「一括検索」など本当に押してほしいものだけ。文字は小さくしすぎない（本文15px・補足13px以上）。
   index.html の <style> と mikke.css の上に重ねて読み込む（いちばん最後）。 */
:root {
  --bg:#ffffff; --card:#fff; --ink:#222; --sub:#5f5f5f; --muted:#8a8a8a;
  --line:#e5e5e5; --line-input:#cfcfcf; --main:#d4473a; --main-hover:#b93a2f;
  --tint:#fdf3f1; --surface:#f6f6f6;
}
html { -webkit-text-size-adjust:100%; }
body { background:var(--bg); color:var(--ink); font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Meiryo",sans-serif; font-size:15px; line-height:1.75; letter-spacing:.01em; }
.wrap { max-width:1080px; padding:0 24px 40px; }

/* ---- ヘッダー：ロゴと、自分の保存したもの（控えめな文字ボタン） ---- */
.top { min-height:0; padding:14px 0; border-bottom:1px solid var(--line); gap:12px; }
.mikke-mark { width:40px; height:40px; }
.brand-name { font-size:24px; letter-spacing:-.03em; }
.brand-caption { font-size:11px; margin-top:2px; letter-spacing:.04em; color:var(--muted); }
.top-btns { gap:4px; }
.cmp-open, .acc-btn { background:none; border:0; box-shadow:none; color:var(--ink); font-size:14px; font-weight:600; padding:8px 12px; border-radius:6px; }
.cmp-open:hover, .acc-btn:hover { background:var(--surface); border:0; }
.cmp-count { background:var(--surface); color:var(--sub); font-size:12px; font-weight:700; border-radius:10px; padding:0 7px; }
a.home-btn.home-btn { border-radius:6px; font-size:13px; box-shadow:none; }

/* ---- 検索（ページのいちばん上） ---- */
.search { margin:28px 0 0; padding:0; border:0; background:none; box-shadow:none; }
.catch { margin:0; font-size:26px; line-height:1.4; font-weight:800; letter-spacing:-.01em; color:var(--ink); }
.catch span { color:var(--main); }
.catch-sub { margin:4px 0 16px; font-size:15px; color:var(--sub); font-weight:500; }
.search .qrow { display:flex; gap:0; margin:0; padding:0; background:#fff; border:2px solid var(--main); border-radius:10px; box-shadow:none; overflow:hidden; }
.search .qrow input { flex:1; min-width:0; border:0; border-radius:0; padding:14px 16px; font-size:17px; background:#fff; box-shadow:none; }
.search .qrow input:focus { outline:none; box-shadow:none; }
.search .qrow:focus-within { box-shadow:0 0 0 3px #d4473a26; }
.search .qrow button.primary { flex:none; border:0; border-radius:0; box-shadow:none; margin:0; padding:0 30px; font-size:16px; font-weight:700; background:var(--main); }
.search .qrow button.primary:hover { background:var(--main-hover); }

.fh { display:inline-flex; align-items:center; gap:4px; font-size:14px; font-weight:700; color:var(--ink); }
.fh label { font:inherit; color:inherit; }
.qm { width:20px; height:20px; padding:0; border-radius:50%; border:1px solid var(--line-input); background:#fff; color:var(--sub); font-size:12px; font-weight:700; line-height:1; cursor:pointer; box-shadow:none; flex:none; }
.qm:hover, .qm.on { border-color:var(--main); color:var(--main); background:#fff; }
.tip { margin:8px 0 4px; padding:10px 14px; background:var(--surface); border-radius:8px; font-size:14px; line-height:1.75; color:var(--ink); font-weight:400; }
.tip[hidden] { display:none; }

.srow { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; margin-top:16px; }
.search .sites { display:flex; flex-wrap:wrap; gap:6px 8px; margin:0; }
.search .sites label, .search .sites label.on, .search .sites label:not(.link-chip).on { display:inline-flex; align-items:center; gap:6px; margin:0; padding:6px 12px; border:1px solid var(--line-input); border-radius:6px; background:#fff; box-shadow:none; font-size:14px; font-weight:600; color:var(--ink); cursor:pointer; }
.search .sites label.on { border-color:#9a9a9a; }
.search .sites input[type=checkbox] { width:16px; height:16px; margin:0; accent-color:var(--main); }
.search .sites label:not(.link-chip) input { accent-color:var(--main); }
.search .sites label::after { content:""; display:block; width:8px; height:8px; border-radius:50%; background:var(--c); flex:none; }

/* 条件を絞る（最初は閉じておく。開いたときも枠は1つだけ） */
.filters { margin-top:14px; padding:0; border:0; border-radius:0; background:none; font-size:15px; }
.search .sites, .filters .sites { padding-top:0; border-top:0; }
.filters > summary { display:inline-flex; align-items:center; gap:8px; list-style:none; cursor:pointer; font-size:14px; font-weight:700; color:var(--ink); padding:6px 0; }
.filters > summary::-webkit-details-marker { display:none; }
.filters > summary::before { content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin:0 4px -1px 2px; transition:transform .15s; }
.filters[open] > summary::before { transform:rotate(225deg); margin-bottom:-6px; }
.filters > summary:hover { color:var(--main); }
.f-count { font-size:12px; font-weight:700; color:var(--main); background:var(--tint); border-radius:10px; padding:1px 8px; }
.f-count:empty { display:none; }
.filters-in { margin-top:8px; padding:18px 20px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.fgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px 24px; align-items:end; }
.fl { display:flex; flex-direction:column; gap:6px; }
.fin { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:14px; }
.filters-in input[type=number], .filters-in input[type=text], .filters-in select { height:38px; padding:0 10px; border:1px solid var(--line-input); border-radius:6px; background:#fff; font-size:15px; color:var(--ink); box-shadow:none; }
.filters-in input[type=number] { width:96px; }
.filters-in input[type=text] { width:120px; }
.filters-in select { max-width:100%; }
.fchk { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; height:38px; cursor:pointer; }
.fchk input { width:18px; height:18px; accent-color:var(--main); }
.fblock { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:8px; }
.fblock .tip { margin:0; }
.base-info { font-size:14px; }
.base-info:empty { display:none; }
.filters .sites { display:flex; flex-wrap:wrap; gap:6px 8px; margin:0; }
.filters .sites label, .filters .sites label.on, .filters .sites label.link-chip.on { display:inline-flex; align-items:center; gap:6px; margin:0; padding:6px 12px; border:1px solid var(--line-input); border-radius:6px; background:#fff; box-shadow:none; font-size:14px; font-weight:600; }
.filters .sites label::after { display:none; }
.filters .sites input { accent-color:var(--main); width:16px; height:16px; margin:0; }

/* 設定の案内・最近の検索：1行の文字だけ */
.search .bm-guide, .search .bm-guide.ready { display:block; margin-top:12px; padding:0; background:none; border:0; border-radius:0; font-size:14px; line-height:1.8; color:var(--sub); }
.search .bm-guide .link-s { margin-left:10px; }
.search .bm-guide .bm-old { margin:4px 0 0; font-size:14px; color:var(--main); font-weight:600; }
.link-s { font-size:14px; font-weight:600; color:var(--main); text-decoration:underline; text-underline-offset:3px; background:none; border:0; padding:0; cursor:pointer; }
.link-s:hover { color:var(--main-hover); }
.hist { margin-top:12px; font-size:14px; color:var(--sub); display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }
.hist:empty { display:none; }
.hist button, .hist-saved button { border:1px solid var(--line); background:#fff; border-radius:6px; padding:3px 10px; font-size:13px; font-weight:500; color:var(--ink); box-shadow:none; }
.hist button:hover, .hist-saved button:hover { border-color:#9a9a9a; background:#fff; }
.hist-saved { width:100%; display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }

/* はじめての方へ：カードにせず1行で */
.intro { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; margin:28px 0 0; padding:14px 0; border:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); border-radius:0; background:none; box-shadow:none; }
.intro[hidden] { display:none; }
.intro-t { font-size:14px; font-weight:800; color:var(--ink); }
.intro-steps { display:flex; flex-wrap:wrap; gap:4px 6px; margin:0; padding:0; list-style:none; counter-reset:st; }
.intro-steps li { counter-increment:st; display:flex; align-items:center; }
.intro-steps li + li::before { content:"›"; color:var(--muted); margin:0 6px 0 2px; }
.intro-steps button { display:inline-flex; align-items:center; gap:6px; border:0; background:none; padding:2px 0; font-size:14px; font-weight:500; color:var(--ink); cursor:pointer; box-shadow:none; }
.intro-steps button::before { content:counter(st); width:20px; height:20px; border-radius:50%; background:var(--surface); color:var(--sub); font-size:12px; font-weight:700; display:grid; place-items:center; }
.intro-steps button:hover { color:var(--main); text-decoration:underline; text-underline-offset:3px; }
.intro-more { margin-left:auto; border:0; background:none; padding:0; font-size:14px; font-weight:700; color:var(--main); text-decoration:underline; text-underline-offset:3px; cursor:pointer; box-shadow:none; }
.intro-x { width:28px; height:28px; padding:0; border:0; border-radius:50%; background:none; color:var(--muted); font-size:14px; cursor:pointer; box-shadow:none; }
.intro-x:hover { background:var(--surface); color:var(--ink); }

/* ---- 検索結果：枠で囲わず、線で区切る ---- */
#result { scroll-margin-top:12px; }
.bar { margin:36px 0 8px; padding-bottom:12px; border-bottom:2px solid var(--ink); gap:12px; }
.bar h2 { font-size:22px; font-weight:800; }
.save-cond { border:1px solid var(--line-input); background:#fff; color:var(--ink); border-radius:6px; padding:6px 12px; font-size:14px; font-weight:600; box-shadow:none; }
.save-cond:hover { border-color:#9a9a9a; background:#fff; }
.tabs { border:1px solid var(--line-input); border-radius:8px; padding:2px; background:#fff; box-shadow:none; }
.tabs button { border-radius:6px; font-size:14px; padding:5px 14px; box-shadow:none; }
.tabs button.on { background:var(--ink); color:#fff; box-shadow:none; }
.bulk { margin:16px 0 0; padding:0; border:0; background:none; box-shadow:none; }
.bulk .btn-set.big { background:#fff; color:var(--ink); border:1px solid var(--line-input); box-shadow:none; font-size:14px; padding:8px 16px; border-radius:6px; }
.bulk .btn-set.big:hover { border-color:#9a9a9a; background:#fff; }
.imp-note { margin:14px 0 0; padding:10px 14px; background:var(--surface); border-radius:8px; font-size:14px; color:var(--ink); }
.imp-note .link-s { margin-left:6px; }

.sec, .sec:not(.sec-all) { margin:0; padding:20px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; box-shadow:none; }
.sec-h { gap:10px; align-items:center; }
.sec:not(.sec-all) .sec-h b, .sec-h b { display:inline-flex; align-items:center; gap:8px; padding:0; border-radius:0; background:none; color:var(--ink); font-size:18px; font-weight:800; }
.sec:not(.sec-all) .sec-h b::before, .sec-h b::before { display:block; content:""; width:12px; height:12px; border-radius:3px; background:var(--c); }
.sec.sec-all .sec-h b::before { display:none; }
.sec-h .hint, .sec-h .cnt { background:none; border:0; padding:0; font-size:13px; font-weight:500; color:var(--sub); }
.sec-h .go, .go { margin-left:auto; background:#fff; color:var(--ink); border:1px solid var(--line-input); border-radius:6px; box-shadow:none; padding:7px 14px; font-size:14px; font-weight:600; }
.go:hover { background:#fff; border-color:#9a9a9a; color:var(--ink); }
.msg { font-size:14px; color:var(--sub); }
.imp-wrap, .imp-wrap.imp-short { margin-top:10px; padding:0; border:0; background:none; border-radius:0; }
.imp-line { margin:0; font-size:14px; color:var(--sub); }
.wait-big { margin-top:10px; padding:14px 16px; border:0; border-radius:8px; background:#fff8e6; }
.btn-imp { background:var(--main); border-radius:6px; box-shadow:none; font-size:14px; }
.btn-set { border-radius:6px; box-shadow:none; }
.it { border-radius:8px; border-color:var(--line); }
.it:hover { box-shadow:0 2px 8px #0000001a; }
.it .pr { color:var(--ink); font-weight:800; }
.linkbox { margin-top:24px; padding:20px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; background:none; }
.linkbox h3 { font-size:17px; font-weight:800; }
.linkbox p { font-size:14px; color:var(--sub); }
.link-item { border-radius:6px; border-color:var(--line-input); }
.link-item b { color:var(--ink); }
.note { margin-top:24px; font-size:13px; line-height:1.8; color:var(--sub); }
.diff-line { border-radius:8px; }

/* ---- ポップアップ・その他 ---- */
.md { border-radius:12px; border:0; box-shadow:0 12px 40px #0003; }
.md h3 { font-size:20px; }
.md .lead { font-size:14px; line-height:1.8; color:var(--sub); }
.help-tabs button { border-radius:6px; }
.help-tabs button.on { background:var(--ink); border-color:var(--ink); }
.help-nav button { border-radius:8px; }
.help-nav button.primary { background:var(--main); border-color:var(--main); }
.help-fab-open { background:#fff; color:var(--ink); border:1px solid var(--line-input); box-shadow:0 2px 10px #00000024; padding:7px 14px 7px 8px; }
.help-fab-open:hover { background:#fff; border-color:#9a9a9a; }
.help-fab-open .q { background:var(--ink); color:#fff; width:22px; height:22px; font-size:13px; }
.footer { margin-top:48px; }

@media (max-width:760px) {
  .wrap { padding:0 16px 32px; }
  .top { flex-wrap:wrap; }
  .search { margin-top:18px; }
  .catch { font-size:21px; }
  .catch-sub { font-size:14px; margin-bottom:12px; }
  .search .qrow input { font-size:16px; padding:12px; }
  .search .qrow button.primary { padding:0 16px; font-size:15px; }
  .srow { gap:8px; }
  .filters-in { padding:14px; }
  .fgrid { grid-template-columns:1fr; gap:12px; }
  .intro { gap:8px 12px; }
  .intro-steps { width:100%; order:3; }
  .intro-more { margin-left:0; }
  .intro-x { margin-left:auto; }
  .bar { flex-wrap:wrap; }
  .bar h2 { font-size:19px; }
  .sec-h { flex-wrap:wrap; }
}

/* 2026-11-16 追い込み：価格欄の折り返し・まとめて開くの絵を控えめに・サイトの区切りを詰める */
.fgrid { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); }
.filters-in input[type=number] { width:88px; }
.fl .fin { flex-wrap:nowrap; }
.bulk-top { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; }
.bulk .bf-tabs i { background:#fff; color:var(--ink); border:1px solid var(--line); border-top:3px solid var(--c); border-radius:4px 4px 0 0; font-size:11px; font-weight:600; }
.bulk .bf-arrow { color:var(--muted); }
.bulk .bf-key { background:none; border:0; color:var(--sub); font-size:13px; font-weight:500; padding:0; }
.bulk .bf-key.ok { color:var(--ink); font-weight:700; }
.sec, .sec:not(.sec-all) { padding:16px 0; }
.sec > .sec-h { margin-bottom:0; }
.sec > :not(.sec-h) { margin-top:12px; }
.note .link-s { margin-left:8px; font-size:13px; }
.filters > summary::before { transition:none; }
body:has(#result[style*="block"]) .intro { display:none; }   /* 検索したら「はじめての方へ」は出さない（結果を上に） */

/* ポップアップの中も、太字・点線・丸い枠を減らす */
body { font-weight:400; }
.md .lead, .md p { font-weight:400; }
.md details { margin-top:12px; padding:10px 14px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:14px; }
.md details summary { font-weight:700; }
.cmp-empty { border:0; border-radius:8px; background:var(--surface); font-weight:400; font-size:14px; color:var(--sub); }
.cmp-head button, #helpClose, #savedClose { border-radius:6px; box-shadow:none; }
.cmp-tools .cmp-add, #cmpAddBtn { border-radius:6px; box-shadow:none; }
.cmp-group, .cmp-row { border-radius:8px; box-shadow:none; }

@media (max-width:760px) {
  .brand-caption { display:none; }
  .mikke-mark { width:34px; height:34px; }
  .brand-name { font-size:21px; }
  .top { padding:10px 0; }
  .top-btns { width:100%; justify-content:space-between; gap:0; }
  .cmp-open, .acc-btn { font-size:13px; padding:6px 6px; }
  .sec-h .hint { order:3; width:100%; }
  .sec-h .go { font-size:13px; padding:6px 10px; }
  .bulk-fig { display:none; }
}

/* 結果の中：押してほしいのは「まとめて開く」だけ色付き。サイトごとの取り込みボタンは白、差分のお知らせは枠なしの1行 */
.bulk .btn-set.big { background:var(--main); color:#fff; border-color:var(--main); }
.bulk .btn-set.big:hover { background:var(--main-hover); border-color:var(--main-hover); }
.btn-imp, .imp-go .btn-imp { background:#fff; color:var(--main); border:1px solid var(--main); box-shadow:none; font-weight:700; padding:7px 14px; }
.btn-imp:hover { background:var(--tint); color:var(--main); filter:none; }
.imp-or { font-size:13px; color:var(--sub); font-weight:400; }
.diff-line { margin:0 0 10px; padding:0; background:none; border:0; font-size:13px; font-weight:500; color:var(--sub); }
.it .ph { background:var(--surface); }
.it .tt { font-size:13px; font-weight:400; line-height:1.55; color:var(--ink); }
.it .pr { font-size:16px; }
.it .shp { font-size:12px; font-weight:500; }
.it .star { box-shadow:none; }
.seen-tag { border-radius:4px; }
.md button, .md .btn-set { box-shadow:none; border-radius:8px; }

/* 2026-11-16 案1-B：淡いピンクの帯（画面の端から端まで）＋写真＋しるし3つ。検索欄は写真の左（スマホは写真の下） */
.top { border-bottom:0; }
.search { margin-top:0; }
.s-band { position:relative; isolation:isolate; padding:36px 0 26px; }
.s-band::before { content:""; position:absolute; top:0; bottom:0; left:calc(50% - 50vw); right:calc(50% - 50vw); background:#fdf0ec; z-index:-1; }
.s-head { display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:36px; align-items:center; }
.s-text .catch { font-size:32px; }
.s-text .catch span { position:relative; }
.s-text .catch span::after { content:""; position:absolute; right:-26px; top:-10px; width:24px; height:24px; background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.6 8.4L23 12l-8.4 2.6L12 23l-2.6-8.4L1 12l8.4-2.6z' fill='%23f6b93b'/%3E%3C/svg%3E"); }
.s-text .catch-sub { font-size:16px; color:#5a4a46; margin-bottom:12px; }
.s-badges { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; padding:0; list-style:none; }
.s-badges li { display:inline-flex; align-items:center; gap:6px; background:#fff; border-radius:999px; padding:4px 12px 4px 6px; font-size:13px; font-weight:700; color:#3a2e2b; box-shadow:0 1px 0 #f0d6cf; }
.s-badges li i { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:12px; background:var(--main); color:#fff; }
.s-photo { margin:0; height:240px; border-radius:12px; overflow:hidden; box-shadow:0 10px 30px #b4503a22; }
.s-photo img { width:100%; height:100%; object-fit:cover; object-position:60% 55%; display:block; }
.s-band .srow { margin-top:20px; }
.s-band .tip { background:#fff; }
.s-band .sites label { background:#fff; }
.s-band + .filters { margin-top:16px; }
@media (max-width:900px) { .s-head { grid-template-columns:minmax(0,1fr) 300px; gap:24px; } .s-photo { height:200px; } }
@media (max-width:760px) {
  .s-band { padding:16px 0 18px; }
  .s-head { grid-template-columns:1fr; gap:14px; }
  .s-photo { height:110px; order:-1; border-radius:10px; }
  .s-text .catch { font-size:21px; }
  .s-text .catch span::after { width:16px; height:16px; right:-17px; top:-6px; }
  .s-text .catch-sub { font-size:14px; }
  .s-badges { gap:6px; margin-bottom:12px; }
  .s-badges li { font-size:12px; padding:3px 10px 3px 5px; }
  .s-badges li i { width:19px; height:19px; font-size:11px; }
}

/* 検索結果の並べ替え・新着値下げだけ（サイト別・全サイトまとめての両方） */
.view-bar { display:flex; align-items:center; flex-wrap:wrap; gap:10px 24px; margin:16px 0 4px; padding:10px 14px; background:var(--surface); border-radius:8px; }
.vb-sort { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; }
.vb-sort select { height:36px; padding:0 10px; border:1px solid var(--line-input); border-radius:6px; background:#fff; font-size:14px; color:var(--ink); }
.vb-diff { display:flex; align-items:center; gap:6px; font-size:14px; font-weight:600; cursor:pointer; }
.vb-diff input { width:18px; height:18px; accent-color:var(--main); }
.vb-diff.off { color:var(--muted); cursor:default; }
@media (max-width:760px) { .view-bar { gap:8px 16px; } .vb-sort select { max-width:220px; } }
.links .go, .links a.go { margin-left:0; } .sec-all .links { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-start; }
