/* ツール工場 共通スタイル — 全ツール共通。ツール固有の見た目は各ページの <style> で足す。 */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1c1c1a;
  --muted: #6b6b66;
  --line: #e3e3de;
  --accent: #b8860b; /* deep yellow 系 */
  --accent-ink: #7a5a06;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; }
header.site { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
header.site .brand { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 13px; margin-left: 16px; }
h1 { font-size: 28px; line-height: 1.35; margin: 28px 0 8px; }
.lede { color: var(--muted); margin: 0 0 24px; }
h2 { font-size: 19px; margin: 36px 0 12px; }
p { margin: 0 0 12px; }

/* ツール本体パネル */
.tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.privacy-note { font-size: 13px; color: var(--accent-ink); background: #fdf6e0; border: 1px solid #efe3b3; border-radius: 8px; padding: 8px 12px; margin-bottom: 16px; }

/* ドロップゾーン (dropzone.js が生成) */
.dropzone {
  border: 2px dashed #c9c9c2;
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: #fffdf4; color: var(--ink); }
.dropzone .dz-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.file-list { list-style: none; margin: 16px 0 0; padding: 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: 14px; background: #fff; }
.file-list .fmeta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.file-list button.remove { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }

/* ボタン・入力 */
.btn {
  display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
label.field { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; background: #fff; color: var(--ink);
}
.result-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }

/* 広告スロット (承認後に中身が入る。操作エリアには置かない) */
.ad-slot { margin: 28px 0; min-height: 0; }
.ad-slot:empty { display: none; }

/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; background: var(--surface); }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin-top: 8px; color: var(--ink); }

/* ハブの一覧 */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.tool-card .t { font-weight: 700; margin-bottom: 4px; }
.tool-card .d { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; font-size: 11px; color: var(--accent-ink); border: 1px solid #efe3b3; background: #fdf6e0; border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }

footer.site { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer.site a { color: var(--muted); margin-right: 16px; }

/* トースト (common.js) */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
