/* match/public/css/match.css — 協力ひろばだけの見た目
   2026-10-02追加。

   土台は本体（デジレボ）の public/css/style.css を借りています。
   ここに足すのは、**style.css に無い部品だけ**です。

   **管理システムの admin.css は読み込みません。**
   別のサービスですので、片方を直したときに、もう片方が崩れるのを避けるためです。
   （2026-10-02：はじめ admin.css を読み込んでいて、このサービスには置いていないため
     読めず、画面の飾りが外れていました。） */

/* ログイン・ご登録の画面の見出し（本体の .auth-card の中で使う） */
.auth-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
/* ご登録の画面は、欄が多いので広くします。
   本体の .auth-card は width: 380px の決め打ちですので、max-width では効きません。 */
.auth-wide {
  width: 760px;
  max-width: 100%;
}
/* 広い札のときは、上に寄せて余白を取ります。
   まんなかに寄せたままだと、背の高い札の**上のほうが画面の外に出て、読めなくなります**。 */
.auth-page:has(.auth-wide) {
  align-items: flex-start;
  padding: 32px 16px;
}

/* 箇条書きの飾りを外す（入力の誤りを並べるところ） */
ul.mz-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.mz-plain > li + li {
  margin-top: 10px;
}

/* 左のメニュー：項目が少ないので、本体と同じ大きさのままにします */
.sidebar .brand {
  font-size: 14px;
}

/* 縦に積む入力（ご登録・自社の登録内容） */
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}
/* 見出しの字と「必須」の印を、ひとつの横並びに（2026-10-11追加）。
   .stack label は縦並びですので、印をそのまま入れると**横いっぱいの赤い帯**になります。 */
.stack label > .lbl {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stack label input[type='text'],
.stack label input[type='email'],
.stack label input[type='password'],
.stack label select,
.stack label textarea {
  font-weight: 400;
}
/* ラジオは、字と同じ行に並べます */
.stack label:has(> input[type='radio']) {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.section-title {
  margin: 18px 0 2px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--border, #d8dee9);
  padding-bottom: 4px;
}

/* 選ぶものを、横に折り返して並べる（得意な工事・動ける範囲） */
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
/* **.stack label より強く書きます。**上の .stack label が「縦に積む」ですので、
   同じ強さだと、四角と字が上下に離れてしまいます（2026-10-02に実際にそうなりました）。 */
.inline-check,
.stack label.inline-check {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  white-space: nowrap;
}

/* 探すときの絞り込み */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* 会社の札を、横に並べる */
.card-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

/* 1社の詳しいところ：見出しと中身を2列に */
.kv {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 6px 14px;
  margin: 0;
}
.kv dt {
  font-weight: 600;
  color: var(--muted-text, #5b6676);
}
.kv dd {
  margin: 0;
}

/* ひとこと（改行をそのまま出す） */
.pre-wrap {
  white-space: pre-wrap;
}

/* 表が広いときは、表だけ横に動かす（画面ごと横に動かさない） */
.table-wrap {
  overflow-x: auto;
}
.nowrap {
  white-space: nowrap;
}

/* 同じ行に置く、小さなボタンの並び（運営の「載せる」「お断り」） */
.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px 4px 0;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}

.mt-16 {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .kv {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .kv dd {
    margin-bottom: 8px;
  }
}

/* 見積のやり取りへの引き渡し（第3段。2026-10-02追加） */
.steps {
  margin: 0;
  padding-left: 1.4em;
}
.steps > li + li {
  margin-top: 12px;
}
.keyid {
  font-size: 20px;
  margin: 4px 0 10px;
}
code {
  background: var(--color-surface-muted, #eef2f7);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  word-break: break-all;
}

/* まとまった工事の件数（第5段。2026-10-03追加） */
.deals {
  margin: 6px 0 0;
  font-size: 13.5px;
}
.done-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #d8dee9);
}
.done-box p {
  margin: 0 0 6px;
}

/* ── ログインの画面のロゴと、デジレボのご案内（2026-10-11追加）──
   ご指示「協力ひろばに、デジレボのロゴを追加」「ログイン画面にデジレボの広告が出るように」。
   本体の .auth-card は width: 380px の決め打ちですので、横に並べるときは
   包みのほう（.auth-with-promo）で並べ方を決めます。 */
.auth-logo {
  margin: 0 0 14px;
  text-align: center;
}
.auth-logo img {
  height: 30px;
  width: auto;
}
.auth-with-promo {
  display: flex;
  flex-direction: row-reverse; /* ご案内を右、ログインを左に */
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 32px 16px;
}
/* ── 入り口のご案内（2026-10-19に作り直しました）────────────────
   ご指摘「見た目で興味がわきません」。
   それまでは、ここがデジレボの宣伝で、**入ろうとしている「ひろば」の話が
   ありません**でした。いまは、ひろばそのもののご案内です。 */
.auth-promo {
  width: 520px;
  max-width: 100%;
  padding: 30px 30px 26px;
  border-radius: 16px;
  color: #fff;
  position: relative;
  background:
    radial-gradient(900px 300px at 110% -10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(140deg, #123a6b 0%, #1b4f8a 45%, #2176bd 100%);
  box-shadow: 0 14px 34px rgba(10, 35, 70, .28);
}

/* 「ずっと無料」の丸 */
.hiroba-free {
  position: absolute; top: -14px; right: 18px;
  width: 78px; height: 78px; border-radius: 50%;
  background: #ffd34d; color: #4a3200;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 15px; font-weight: 800; line-height: 1.25;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  transform: rotate(-8deg);
}

.hiroba-eyebrow {
  margin: 0 0 6px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; opacity: .85;
}
.hiroba-title {
  margin: 0 0 10px; font-size: 25px; font-weight: 800; line-height: 1.5;
  padding-right: 72px;
}
.hiroba-lead { margin: 0 0 16px; font-size: 14px; line-height: 1.85; opacity: .95; }

.hiroba-art { display: block; width: 100%; height: auto; margin: 4px 0 18px; }

/* 3つの歩み */
.hiroba-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.hiroba-step { display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,.12); border-radius: 10px; padding: 11px 14px; }
.hiroba-step-icon { flex: 0 0 auto; width: 26px; height: 26px; color: #ffd34d; }
.hiroba-step-icon svg { width: 26px; height: 26px; display: block; }
.hiroba-step-body { display: block; font-size: 13.5px; line-height: 1.7; }
.hiroba-step-body strong { display: block; font-size: 15px; font-weight: 800; }

.hiroba-points { margin: 0; padding-left: 1.15em; font-size: 13.5px; line-height: 1.8; }
.hiroba-points li + li { margin-top: 7px; }

.auth-promo-foot {
  margin: 18px 0 0; padding-top: 14px; font-size: 12.5px; line-height: 1.8;
  border-top: 1px solid rgba(255,255,255,.28); opacity: .92;
}
.auth-promo-foot a { color: #fff; text-decoration: underline; white-space: nowrap; }

/* 狭い画面（スマートフォン）では、ログインを先に、ご案内をその下に */
@media (max-width: 860px) {
  .auth-with-promo {
    flex-direction: column;
    align-items: center;
  }
  .auth-promo {
    width: 380px;
    padding: 26px 20px 22px;
  }
  .hiroba-title { font-size: 21px; padding-right: 60px; }
  .hiroba-free { width: 66px; height: 66px; font-size: 13px; right: 12px; }
}

/* 「建設業の方」の小さな札（2026-10-19。ご指示「建設業以外でもアクセスできるように」）。
   必須の赤い札とちがい、**その業種の方だけの欄**だと分かるようにします。 */
.tag-optional {
  display: inline-block; margin-left: 8px;
  background: #e7f0fa; color: #1b4f9c;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; vertical-align: middle;
}
/* 名簿の、業種の札 */
.badge-industry { background: #1b4f9c; color: #fff; }

/* ══ 協力会社を探す（2026-10-19に作り直しました）══════════════════
   ご指示「タイミーを参考にして魅力ある画面にしてください」。
   タイミーの作りから、次の3つをいただきました。
     ・札のいちばん上に**絵**（ひと目で何か分かる）
     ・下の行の**右に、いちばん知りたいことを大きく**（向こうは金額、こちらは手の空き）
     ・黄色い**マーカー**と、**吹き出しの札**で、目を引く
   絵は、こちらで描いたものです（match/lib/art.js）。 */

/* ── 上の帯 ── */
.find-hero {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(135deg, #103a6b 0%, #1b4f8a 55%, #2176bd 100%);
  color: #fff; border-radius: 16px; padding: 24px 26px; margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(10, 35, 70, .22);
}
.find-hero-body { flex: 1 1 380px; min-width: 0; }
.find-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; opacity: .85; }
.find-title { margin: 0 0 8px; font-size: 27px; font-weight: 800; line-height: 1.45; }
/* 黄色いマーカー（タイミーの、あの線です） */
.find-title mark {
  background: linear-gradient(transparent 58%, #ffd34d 58%);
  color: inherit; padding: 0 2px;
}
.find-lead { margin: 0 0 16px; font-size: 13.5px; line-height: 1.8; opacity: .95; }
.find-cta { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-big {
  display: inline-block; background: #ffd34d; color: #3d2a00;
  font-size: 16px; font-weight: 800; text-decoration: none;
  padding: 13px 30px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.btn-big:hover { background: #ffdd73; }
.find-cta-note { font-size: 12.5px; opacity: .9; }

/* 吹き出しの札 */
.find-bubbles { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 0 1 230px; }
.find-bubbles li {
  position: relative; background: #fff; color: #17304a;
  border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600;
}
.find-bubbles li::after {
  content: ''; position: absolute; left: -6px; top: 50%; margin-top: -6px;
  border: 6px solid transparent; border-right-color: #fff;
}
.find-bubbles strong { color: #1b4f8a; }

.find-filters { margin-bottom: 12px; }
.find-count { margin: 0 0 14px; font-size: 14px; color: #41506a; }
.find-count > strong { font-size: 20px; color: #17304a; }
.find-count-free { margin-left: 12px; font-size: 13px; color: #1f7a46; }
.find-count-free strong { font-size: 15px; }

/* ── 会社の札 ── */
.co-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.co-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #dbe3ee; border-radius: 14px;
  text-decoration: none; color: inherit;
  box-shadow: 0 4px 14px rgba(16, 48, 92, .06);
  transition: transform .14s ease, box-shadow .14s ease;
}
.co-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(16, 48, 92, .14); }

/* 絵のところ（写真のかわり）。業種ごとに色を変えます */
.co-head {
  position: relative; height: 108px;
  display: flex; align-items: center; justify-content: center;
}
.co-head .co-art { width: 56px; height: 56px; fill: #fff; opacity: .95; }
.co-industry {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(0,0,0,.35); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.co-now {
  position: absolute; right: 10px; top: 10px;
  background: #ffd34d; color: #3d2a00;
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}
.co-tone-a { background: linear-gradient(135deg, #1b4f8a, #2d7fc4); }
.co-tone-b { background: linear-gradient(135deg, #8a5a1f, #c08a34); }
.co-tone-c { background: linear-gradient(135deg, #4a4f5c, #7d8493); }
.co-tone-d { background: linear-gradient(135deg, #1f6b53, #2f9b76); }
.co-tone-e { background: linear-gradient(135deg, #7a3b6a, #a95d95); }
.co-tone-f { background: linear-gradient(135deg, #2b4a8a, #4d74c4); }
.co-tone-g { background: linear-gradient(135deg, #1f7a46, #35a862); }
.co-tone-h { background: linear-gradient(135deg, #8a3b3b, #c05f5f); }
.co-tone-i { background: linear-gradient(135deg, #3d5166, #6b8198); }

.co-body { display: block; padding: 14px 16px 6px; flex: 1 1 auto; }
.co-name { display: block; font-size: 16px; font-weight: 800; color: #17304a; line-height: 1.5; }
.co-card:hover .co-name { text-decoration: underline; }
.co-place { display: block; margin-top: 3px; font-size: 12.5px; color: #6b7a8d; }
.co-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.co-chips .chip {
  background: #eef3fa; color: #2b4a70; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 6px;
}
.co-chips .chip-more { background: #f2f4f7; color: #6b7a8d; }
.co-deals { display: block; margin-top: 9px; font-size: 12px; color: #1f7a46; font-weight: 600; }

/* いちばん下の行。**右が大きい**のが、タイミーの作りです */
.co-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 10px 16px 14px; margin-top: auto;
}
.co-area { font-size: 11.5px; color: #6b7a8d; line-height: 1.6; }
.co-area strong { color: #41506a; font-size: 12.5px; }
.co-open { font-size: 15px; font-weight: 800; color: #8a94a6; white-space: nowrap; text-align: right; }
.co-open.is-free { color: #1f7a46; }

@media (max-width: 700px) {
  .find-title { font-size: 22px; }
  .find-bubbles { flex: 1 1 100%; grid-template-columns: 1fr; }
  .find-bubbles li::after { display: none; }
}
