/* アースタックス税理士法人 コーポレートサイト（www.earth-tax.com）の
   配色・書体・見出し表現に合わせたスタイル */
:root {
  --text: #333333;          /* 本文 */
  --muted: #777777;         /* 補足 */
  --accent: #067aca;        /* リンク・見出しライン */
  --accent-dark: #0560a2;
  --navy: #0f3474;          /* 見出し・ボタン */
  --logo-navy: #003082;     /* ロゴ濃紺 */
  --page-bg: #f7f9fb;       /* サイトのフッター背景と同色 */
  --card: #ffffff;
  --border: #dfe4ea;
  --danger: #c8102e;
  --ok: #217346;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Helvetica, Arial, メイリオ, Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent); }

/* ── ヘッダー ───────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--logo-navy);
}
.site-header .inr {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 20px 16px;
}
.site-header .tagline {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--muted);
}
.site-header .logo { display: block; width: 190px; }
.site-header .logo img { display: block; width: 190px; height: auto; }

/* ── パンくずリスト ─────────────────────── */
.breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── ページ本体 ─────────────────────────── */
.wrap { max-width: 1000px; margin: 0 auto; padding: 32px 20px 56px; }
.form-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}
.lead { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; }

/* ── 資料一覧 ───────────────────────────── */
ul.materials { list-style: none; margin: 0; padding: 0; }
ul.materials li {
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
ul.materials li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  border-left: 4px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
ul.materials li a:hover {
  background: #f2f7fc;
  border-left-color: var(--accent);
}
.tag {
  flex: none;
  min-width: 46px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  color: #fff;
}
.pdf { background: var(--danger); }
.xlsx { background: var(--ok); }
.name { flex: 1; font-weight: 700; }
.name small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; margin-top: 2px; }
.dl { color: var(--accent); font-size: 13px; flex: none; white-space: nowrap; }

/* ── フォーム ───────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 32px;
}
.target {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #eef4fa;
  border: 1px solid #cfe0ef;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.target .name small { color: var(--muted); font-weight: 400; margin: 0 0 2px; }
.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req, .opt {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  margin-left: 8px;
  vertical-align: 2px;
  letter-spacing: 0.04em;
}
.req { background: var(--danger); color: #fff; }
.opt { background: #e9ecf0; color: #555; }
input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #c4cbd4;
  border-radius: 2px;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 122, 202, 0.15);
}
.row { display: flex; gap: 16px; }
.row .field { flex: 1; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.error { color: var(--danger); font-size: 13px; margin-top: 4px; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--danger); background: #fffafa; }

/* スパム対策のハニーポット項目。利用者には見えないが、DOM上には存在する */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.agree {
  background: var(--page-bg);
  border: 1px solid var(--border);
  padding: 16px 18px;
  margin: 28px 0 24px;
}
.agree p { margin: 0 0 10px; font-size: 14px; }
.agree label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }
.agree .field { margin: 0; }
.agree input[type="checkbox"] { width: 18px; height: 18px; }

.actions { text-align: center; }
button.submit, a.submit {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  padding: 14px 64px;
  cursor: pointer;
  transition: background 0.15s;
}
button.submit:hover, a.submit:hover { background: var(--accent); }
button.submit:disabled { background: #9aa5b1; cursor: not-allowed; }
.back { display: inline-block; margin-top: 24px; font-size: 14px; }
.form-error {
  display: none;
  background: #fdecef;
  border: 1px solid #f3c2cb;
  color: var(--danger);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ── 完了画面 ───────────────────────────── */
.done { text-align: center; padding: 24px 8px; }
.done .check {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 30px;
  line-height: 60px;
}
.done h2 { margin-bottom: 14px; }
.done p { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.done .manual { margin-top: 26px; }

/* ── フッター ───────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.site-footer .inr { max-width: 1000px; margin: 0 auto; padding: 28px 20px; }
.site-footer .company { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.site-footer .address { font-size: 13px; color: var(--muted); margin: 0 0 12px; font-style: normal; }
.site-footer .links { font-size: 13px; margin: 0 0 16px; }
.site-footer .copyright {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 640px) {
  .wrap { padding: 24px 16px 40px; }
  .row { display: block; }
  button.submit, a.submit { width: 100%; padding: 14px 0; }
  .card { padding: 20px 18px; }
  ul.materials li a { flex-wrap: wrap; }
  .dl { width: 100%; text-align: right; }
}
