/* お問い合わせ（/contact/）専用。トップ（home.css）・セミナーページ v4（seminar-v4.css）と同じ色・ヘッダー・ボタン・申込欄の作り。
   style.css は読まない。申込欄の指定は seminar-v4.css から写した（v4 を /seminar/ に移すときに、このページが巻き込まれないように別ファイルにした） */

:root {
  --blue: #0057a4;       /* 見出し・罫線・リンク */
  --blue-soft: #edf3fa;  /* 研修の欄の見出し・送信後の表示 */
  --gray: #f6f6f6;       /* 項目名 */
  --orange: #fe7c00;     /* 送信のボタンだけに使う */
  --orange-soft: #ffa957;
  --ink: #111111;
  --muted: #555555;
  --line: #d5dadf;
  --white: #ffffff;
  --err: #b42318;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
}
main { flex: 1; }
a { color: var(--blue); }
a:hover { text-decoration: none; }
p { margin: 0; }
p + p { margin-top: 12px; }
h1, h2 { margin: 0; font-weight: 700; }
.wrap { width: calc(100% - 48px); max-width: 950px; margin-inline: auto; }
.nb { display: inline-block; }
main [id] { scroll-margin-top: 72px; }

/* ---------- ヘッダー（v4 と同じ） ---------- */
.hd {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-top: 4px solid var(--blue);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: calc(100% - 48px); max-width: 1120px; height: 56px; margin-inline: auto;
}
.hd-brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--blue); text-decoration: none; }
.hd-brand-name { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; }
.hd-brand-sub { font-size: 12px; color: var(--muted); }
.hd-nav { display: flex; align-items: center; gap: 20px; }
.hd-nav a { color: var(--ink); font-size: 14px; text-decoration: none; }
.hd-nav a:hover { color: var(--blue); text-decoration: underline; }
.hd-nav .hd-contact {
  padding: 6px 14px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  color: var(--blue);
  font-weight: 700;
}
.hd-nav .hd-contact:hover, .hd-nav .hd-contact[aria-current] { background: var(--blue); color: var(--white); text-decoration: none; }

/* ---------- パンくず ---------- */
.crumb { border-bottom: 1px solid var(--line); }
.crumb ol { display: flex; flex-wrap: wrap; margin-block: 0; padding: 12px 0; list-style: none; font-size: 13px; line-height: 1.5; }
.crumb li + li::before { content: "＞"; margin: 0 8px; color: var(--muted); }
.crumb li[aria-current] { color: var(--muted); }

/* ---------- 見出し ---------- */
.sec { padding: 40px 0 56px; }
.page-title {
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--blue);
  color: var(--blue);
  font-size: 26px;
  line-height: 1.5;
}
.sec-lead { margin: -8px 0 24px; }

/* ---------- ボタン（角はほぼ四角・影なし） ---------- */
.btn-apply {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 280px; max-width: 100%; min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent; border-radius: 2px;
  background: var(--orange);
  color: var(--ink);
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
.btn-apply:hover { background: var(--orange-soft); color: var(--ink); }
.btn-apply:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- 入力欄（表組み：左に項目名、右に入力欄。v4 の申込欄と同じ） ---------- */
.apply-box { max-width: 760px; }
.form-pending { margin: 0; padding: 32px 16px; background: var(--gray); text-align: center; color: var(--muted); }
.req-mark { margin-left: 2px; color: var(--err); font-weight: 700; }
.apply-form { border-top: 1px solid var(--line); }
.frow {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  margin: 0; padding: 0; min-width: 0;
  border: 0; border-bottom: 1px solid var(--line);
}
legend.frow-label { float: left; width: 100%; }   /* fieldset の legend も表の左列に並べるため */
.frow-label {
  display: block;
  padding: 16px;
  background: var(--gray);
  font-size: 15px; font-weight: 700; line-height: 1.6;
}
.frow-body { padding: 16px; min-width: 0; }
.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form textarea {
  display: block; width: 100%; min-height: 48px;
  padding: 12px;
  border: 1px solid #8c959f; border-radius: 2px;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.5;
}
.apply-form textarea { min-height: 136px; resize: vertical; }
.apply-form input:focus, .apply-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.apply-form [aria-invalid="true"] { border-color: var(--err); background-color: #fdf3f2; }
.field-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.field-hint-top { margin: 0 0 4px; }
.field-error { margin: 6px 0 0; font-size: 14px; color: var(--err); font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 0 28px; }
.choices-col { flex-direction: column; }
.choices-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1.5; cursor: pointer; }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 研修の相談のときだけ出す欄のまとまり */
.form-group-head {
  margin: 0; padding: 10px 16px;
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 15px; font-weight: 700; line-height: 1.6;
}
.form-group-head span { margin-left: 8px; color: var(--muted); font-size: 14px; font-weight: 400; }

.form-submit { padding-top: 28px; text-align: center; }
.form-consent { margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.btn-submit:disabled { background: #d9d9d9; color: var(--muted); cursor: wait; }
.form-message { margin: 0 0 16px; padding: 12px 16px; font-size: 15px; font-weight: 700; text-align: left; line-height: 1.7; }
.form-message-error { background: #fdf3f2; color: var(--err); border: 1px solid #f0c4bf; }
.apply-done { padding: 28px 20px; background: var(--blue-soft); }
.apply-done p { margin: 0; }
.apply-done p + p { margin-top: 8px; }
.apply-done-title { margin-bottom: 8px !important; font-size: 19px; font-weight: 700; color: var(--blue); }
.mail-alt { max-width: 760px; margin-top: 28px !important; font-size: 14px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }

/* ---------- フッター ---------- */
.ft { padding: 20px 0; background: var(--blue); color: var(--white); font-size: 13px; }
.ft .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.ft a { color: var(--white); }

/* ---------- タブレット ---------- */
@media (max-width: 960px) {
  .hd-nav .hd-wide { display: none; }
}

/* ---------- スマホ（767px以下で1列） ---------- */
@media (max-width: 767px) {
  .wrap, .hd-in { width: calc(100% - 32px); }
  .hd-in { height: 52px; }
  .hd-brand-name { font-size: 20px; }
  .hd-brand-sub { display: none; }
  .hd-nav { gap: 14px; }
  .hd-nav .hd-contact { padding: 4px 10px; font-size: 13px; }
  main [id] { scroll-margin-top: 68px; }
  .sec { padding: 28px 0 40px; }
  .page-title { margin-bottom: 20px; font-size: 23px; }
  .sec-lead { margin: -4px 0 20px; }
  .btn-apply { width: 100%; max-width: 343px; }
  .frow { grid-template-columns: 1fr; }
  .frow-label { padding: 10px 12px; }
  .frow-body { padding: 12px 0 16px; }
  .choices:not(.choices-col) { flex-direction: column; }
  .choices-grid { grid-template-columns: 1fr; }
  .form-group-head { padding: 10px 12px; }
  .form-group-head span { display: block; margin-left: 0; }
  .form-submit .btn-apply { max-width: none; }
}
