/* TL-NET お問い合わせ。外のフォント・画像・スクリプトは使わない（CSP は default-src 'none'・style-src 'self'） */
:root {
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --accent: #1f5f9e;
  --accent-ink: #ffffff;
  --notice-bg: #fff7e0;
  --notice-line: #e5b400;
  --error: #b42318;
  --bg: #f5f7fa;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  font-weight: 600;
}
.brand { color: var(--accent); margin-right: 4px; }
.page {
  max-width: 760px;
  margin: 24px auto;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
h1 { font-size: 1.4rem; margin: 0 0 16px; }
.notice {
  background: var(--notice-bg);
  border-left: 4px solid var(--notice-line);
  padding: 10px 12px;
}
.guide { border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; margin: 16px 0; }
.guide p { margin: 8px 0; }
.who { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 8px; }
.who dt { color: var(--muted); }
.who dd { margin: 0; overflow-wrap: anywhere; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 16px 0; padding: 8px 12px; }
legend { font-weight: 600; padding: 0 4px; }
.choice { display: block; padding: 2px 0; }
.choice.is-disabled { color: var(--muted); }
.field { display: block; margin: 16px 0; }
.field > span:first-child { display: block; font-weight: 600; margin-bottom: 4px; }
input[type="text"], textarea {
  width: 100%;
  font: inherit;
  padding: 8px;
  border: 1px solid #9aa5b1;
  border-radius: 4px;
}
textarea { resize: vertical; }
input[readonly], textarea[readonly] { background: #eef2f6; }
.has-error input, .has-error textarea, fieldset.has-error { border-color: var(--error); }
.error { color: var(--error); display: block; margin: 4px 0 0; }
button, .button-link {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 4px;
  padding: 10px 24px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button:focus-visible, .button-link:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #7cc4fa;
  outline-offset: 2px;
}
.receipt { font-size: 1.2rem; }
.receipt strong { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.05em; }
.small { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 480px) {
  .page { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
  .who { grid-template-columns: 1fr; }
}

/* アカウントの追加・削除の欄（2026-11-23）。JS を使わない（CSP）ので、:has が使えるブラウザでは
   選んだものに合う欄だけを見せ、使えないブラウザでは全部を見せる（サーバーが種類と追加／削除で確かめる） */
.account-section .choices { margin: 8px 0; }
.account-section fieldset.choices { border: 0; padding: 0; }
.account-section fieldset.choices.has-error { border-left: 3px solid var(--error); padding-left: 8px; }
.account-section .has-error { border-left: 3px solid var(--error); padding-left: 8px; }
@supports selector(:has(a)) {
  form.inquiry:not(:has(input[name="kind"][value="account"]:checked)) .account-section { display: none; }
  .account-section:has(input[name="acct_action"][value="add"]:checked) .account-remove { display: none; }
  .account-section:has(input[name="acct_action"][value="remove"]:checked) .account-add { display: none; }
  .account-section:not(:has(input[name="acct_action"]:checked)) .account-add,
  .account-section:not(:has(input[name="acct_action"]:checked)) .account-remove { display: none; }
}
