@charset "UTF-8";

/*
 * 配色
 * イメージカラー #0075a9 を基準に、暗い側・淡い側を機械的に作っています。
 * 色を変えたいときは --accent と --accent-dark の2つを差し替えれば
 * ヘッダ・見出し・ボタン・フォーカス枠のすべてに反映されます。
 */
:root {
  --ink: #202830;          /* 本文 */
  --muted: #5a6672;        /* 補足文 */
  --paper: #eef3f7;        /* ページ背景（イメージカラーのごく淡い色） */
  --surface: #ffffff;      /* 本文エリアの背景 */
  --line: #d4dae0;         /* 区切り線 */

  --accent: #0075a9;       /* イメージカラー */
  --accent-dark: #005b84;  /* ホバー・ヘッダ下の境界 */

  --danger: #9d2f26;       /* エラー */
  --danger-soft: #fbeeec;

  --field-border: #7d8892; /* 入力欄の枠（3:1以上を確保） */
  --field-bg: #fdfeff;     /* 入力欄の背景 */

  --radius: 4px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダ / フッタ ---------- */
.site-head {
  background: var(--accent);
  color: #fff;
  border-bottom: 4px solid var(--accent-dark);
  padding: 14px 0;
}
.site-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
}

main.wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  padding: 32px 24px 44px;
  margin-bottom: 32px;
}

.site-foot {
  color: var(--muted);
  font-size: .85rem;
  padding-bottom: 32px;
  text-align: center;
}
.site-foot p { margin: 0; }

/* ---------- 見出し ---------- */
h1 {
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
}
.lead { margin: 0 0 28px; }
.note {
  margin: 6px 0 0;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- 通知 ---------- */
.alert {
  background: var(--danger-soft);
  border-left: 4px solid var(--danger);
  color: var(--danger);
  padding: 12px 16px;
  margin: 0 0 24px;
}

/* ---------- フォーム ---------- */
.field {
  margin: 0 0 24px;
  padding: 0;
  border: none;
}
fieldset.field { min-width: 0; }
.field > label,
.field legend {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 6px;
  padding: 0;
}
.req {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.6;
  padding: 0 8px;
  border-radius: 2px;
  vertical-align: 2px;
  margin-left: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.6;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 20px 4px 0;
  font-weight: 400;
  cursor: pointer;
}
.choice input { width: 20px; height: 20px; accent-color: var(--accent); }

.field input:focus-visible,
.field textarea:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.field.has-err input,
.field.has-err textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.err {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: .88rem;
  font-weight: 700;
}

/* 変更申し込み以外では隠す欄 */
.is-hidden { display: none; }

/* ハニーポット（人間には見せない） */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- ボタン ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-dark); }
.btn-sub {
  background: #fff;
  color: var(--ink);
  border-color: var(--field-border);
}
.btn-sub:hover { background: var(--paper); }
.btn[aria-disabled="true"] { opacity: .55; cursor: progress; }

/* ---------- 確認画面 ---------- */
.confirm {
  margin: 0;
  border-top: 1px solid var(--line);
}
.confirm dt {
  font-weight: 700;
  font-size: .9rem;
  color: var(--muted);
  padding: 14px 0 0;
}
.confirm dd {
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  word-break: break-all;
}

/* ---------- 画面幅が狭いとき ---------- */
@media (max-width: 540px) {
  body { font-size: 16px; }
  main.wrap { padding: 24px 16px 36px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
