:root {
  --text: #1f2933;
  --muted: #52606d;
  --border: #d9e2ec;
  --bg: #ffffff;
  --panel: #f5f7fa;
  --primary: #2f6fdb;
  --primary-text: #ffffff;
  --error: #b42318;
  --error-bg: #fef3f2;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  line-height: 1.7;
}

.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--border); padding: 20px 0; }
header.site .brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
header.site .brand small { font-weight: 400; color: var(--muted); margin-left: .5em; }

main { padding: 32px 0 48px; }
h1 { font-size: 1.6rem; margin: 0 0 .5em; line-height: 1.4; }
h2 { font-size: 1.2rem; margin: 2em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--border); }
p.lead { color: var(--muted); margin-top: 0; }
.note { background: var(--panel); border-left: 4px solid var(--primary); padding: 10px 14px; margin: 1em 0; }

ol.steps { padding-left: 1.4em; }
ol.steps li { margin: .4em 0; }

form .field { margin: 1.1em 0; }
form label { display: block; font-weight: 600; margin-bottom: .3em; }
form label .req { color: var(--error); font-weight: 400; font-size: .9em; margin-left: .4em; }
form .hint { color: var(--muted); font-size: .92em; margin: .2em 0 .4em; }
form input[type="text"], form input[type="email"], form textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
}
form input:focus, form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
form textarea { min-height: 7em; resize: vertical; }
form .consent { display: flex; align-items: flex-start; gap: .6em; font-weight: 400; }
form .consent input { margin-top: .4em; }
.field-error { color: var(--error); font-size: .92em; margin: .3em 0 0; min-height: 1.2em; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.preview { font-size: .92em; margin: .3em 0 0; }
.preview .host { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.preview.ok { color: var(--ok); }
.form-message { padding: 10px 14px; border-radius: 6px; margin: 1em 0; display: none; }
.form-message.error { display: block; background: var(--error-bg); color: var(--error); }

/* ハニーポット: 画面に出さないが display:none は使わない */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block; font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 8px;
  border: 1px solid var(--primary); background: var(--primary); color: var(--primary-text);
  text-decoration: none; cursor: pointer;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--primary); }
.btn small { display: block; font-weight: 400; font-size: .8em; opacity: .9; }

.download-box { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin: 1em 0; }
.download-box .status { color: var(--muted); font-size: .92em; }

table.plugins { width: 100%; border-collapse: collapse; font-size: .95em; }
table.plugins th, table.plugins td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.plugins th { color: var(--muted); font-weight: 600; }
table.plugins td.role { color: var(--muted); white-space: nowrap; }
details summary { cursor: pointer; color: var(--primary); }

footer.site { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); font-size: .9em; }
footer.site a { color: inherit; }

.ok-banner { background: var(--ok-bg); border-left: 4px solid var(--ok); padding: 12px 16px; margin: 0 0 1.5em; }
code { font-family: ui-monospace, Consolas, monospace; background: var(--panel); padding: 0 .3em; border-radius: 3px; }
