:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: #1769aa;
  --accent-border: #72a9dd;
  --accent-soft: #f5faff;
  --text-muted: #59636e;
  --border: #d8dee4;
}
body { margin: 0; background: #f5f7f9; color: #222; }
.container { max-width: 920px; margin: 0 auto; padding: 28px 18px 60px; }
h1 { font-size: 1.8rem; margin: 0 0 18px; }
h2 { font-size: 1.25rem; margin-top: 28px; }
.lead { color: #4a5560; line-height: 1.7; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin: 18px 0; }
label { display: block; font-weight: 650; }
.required { font-size: .75rem; color: #b42318; }
.help, .control-help { font-size: .86rem; color: var(--text-muted); font-weight: 400; line-height: 1.65; }
button, .button-link {
  display: inline-block; border: 0; border-radius: 8px; padding: 13px 22px;
  background: #1f5f9a; color: #fff; font-weight: 700; text-decoration: none; cursor: pointer;
}
button:hover, .button-link:hover { filter: brightness(.96); }
.notice { background: #fff8db; border: 1px solid #eadb8f; border-radius: 8px; padding: 14px; margin: 18px 0; }
.error { border-color: #e3a6a6; background: #fff7f7; }
.warning { border-color: #e7c35f; background: #fffaf0; }
.success { border-color: #9ac5a3; }
.receipt-label { font-size: .85rem; color: var(--text-muted); text-align: center; }
.receipt-no { font-size: 1.8rem; font-weight: 800; text-align: center; letter-spacing: .04em; margin: 4px 0 20px; color: #c74722; }
.receipt-mail-notice { margin: 28px 0 20px; padding: 14px 16px; background: #fff; border-left: 4px solid #c74722; border-radius: 4px; color: #30363d; }
.summary-grid { display: grid; grid-template-columns: minmax(180px,max-content) 1fr; gap: 8px 16px; }
.summary-grid dt { color: var(--text-muted); white-space: nowrap; }
.summary-grid dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.links { margin-top: 24px; }
.compact-form { max-width: 460px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e7ebef; }
th { background: #f3f5f7; }
.button-secondary { background: #fff; color: #1f5f9a; border: 1px solid #1f5f9a; }
.button-secondary:hover { background: #f4f8fc; }

/* 共通ヘッダー／フッター */
.site-band { width: 100%; background: #fff; color: #3f4852; }
.site-band-header { border-bottom: 1px solid #e3e7eb; }
.site-band-footer { border-top: 1px solid #e3e7eb; }
.site-band-inner { box-sizing: border-box; max-width: 920px; margin: 0 auto; padding: 11px 18px; font-size: .88rem; font-weight: 650; letter-spacing: .01em; }

/* 受付トップ：説明より入力コントロールを目立たせる */
.entry-steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 20px 0 16px;
}
.entry-step {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  box-sizing: border-box; padding: 9px 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  font-weight: 700; color: #24313d;
}
.entry-step.is-current { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(23,105,170,.08); }
.entry-step-no {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
}
.entry-form { padding: 0; overflow: hidden; }
.entry-section { padding: 22px 22px 24px; }
.entry-section + .entry-section { border-top: 1px solid #e4e9ee; }
.entry-section-first { background: #fbfdff; }
.entry-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; font-size: 1.08rem; font-weight: 800; }
.entry-section-title > span {
  display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px;
  border-radius: 50%; background: #e8f2fb; color: var(--accent); font-size: .82rem; font-weight: 800;
}
.entry-section-help { margin: 0 0 15px 34px; color: var(--text-muted); font-size: .88rem; }
.control-label { margin: 18px 0 7px; }
.control-label:first-of-type { margin-top: 12px; }

/* Windows 11系の、広くはっきりした入力欄 */
.primary-control,
input[type="text"].primary-control,
input[type="email"].primary-control,
select.primary-control,
textarea.primary-control,
.entry-form select,
.entry-form input[type="text"],
.entry-form input[type="email"],
.entry-form textarea {
  box-sizing: border-box; width: 100%; margin: 0; padding: 12px 14px;
  min-height: 52px; border: 2px solid var(--accent-border); border-radius: 9px;
  background: #fff; color: #202124; font: inherit;
  box-shadow: 0 1px 1px rgba(0,0,0,.025);
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.entry-form select { cursor: pointer; font-weight: 650; }
.entry-form textarea { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92rem; line-height: 1.55; resize: vertical; }
.primary-control:hover,
.entry-form select:hover,
.entry-form input[type="text"]:hover,
.entry-form input[type="email"]:hover,
.entry-form textarea:hover { border-color: #4c95d3; }
.primary-control:focus,
.entry-form select:focus,
.entry-form input[type="text"]:focus,
.entry-form input[type="email"]:focus,
.entry-form textarea:focus {
  border-color: #0067c0; outline: 3px solid rgba(0,103,192,.16); outline-offset: 1px;
}
.entry-section-first .primary-control,
.entry-section-first select {
  min-height: 58px; font-size: 1.03rem; border-color: #438bc9; background: var(--accent-soft);
}
.control-help { margin: 7px 2px 15px; }
.file-control {
  box-sizing: border-box; width: 100%; padding: 9px; min-height: 54px;
  border: 2px solid var(--accent-border); border-radius: 9px; background: #fff; color: #30363d;
}
.file-control:focus { outline: 3px solid rgba(0,103,192,.16); outline-offset: 1px; border-color: #0067c0; }
.file-control::file-selector-button {
  margin-right: 12px; padding: 9px 14px; border: 1px solid #5d99cf; border-radius: 7px;
  background: #eef6fd; color: #174f7e; font: inherit; font-weight: 700; cursor: pointer;
}
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #6b7680; font-size: .84rem; font-weight: 700; }
.or::before, .or::after { content: ""; height: 1px; background: #dce3e9; flex: 1; }
.entry-submit { text-align: center; padding: 0 22px 26px; }
.entry-submit button { min-width: 220px; font-size: 1rem; }

/* 確認画面のサマリー原文は横にはみ出さない */
.summary-raw {
  box-sizing: border-box; max-width: 100%; max-height: 360px; overflow: auto; margin: 0;
  padding: 14px; border: 1px solid #d8dee4; border-radius: 7px; background: #f8fafb;
  white-space: pre; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88rem;
}
.check-heading { margin-bottom: 10px; color: #b45309; font-weight: 800; }
.confirm-submit-card { text-align: center; }
.confirm-back-form { margin-top: 48px; }

@media (max-width: 700px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .entry-steps { grid-template-columns: 1fr; }
  .entry-section { padding: 18px 16px 20px; }
  .entry-section-help { margin-left: 0; }
  .summary-grid { grid-template-columns: 1fr; gap: 2px; }
  .summary-grid dt { white-space: normal; }
  .summary-grid dd { margin-bottom: 9px; }
}


/* コンテスト選択に連動する受付可能ログ形式 */
.entry-step-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}
.entry-step-title { font-weight: 700; }
.entry-step-log { align-items: flex-start; }
.accepted-log-format {
  display: none;
  margin-top: 3px;
  color: #075fa8;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.accepted-log-format.is-visible { display: block; }

@media (max-width: 700px) {
  .accepted-log-format { font-size: .82rem; }
}

/* 受付可能形式は実際のJARL電子ログ入力欄の直下に表示 */
.accepted-log-format-section {
  margin: 5px 0 16px 34px;
  color: #075fa8;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.55;
}
.accepted-log-format-section.is-visible { display: block; }

@media (max-width: 700px) {
  .accepted-log-format-section {
    margin-left: 34px;
    font-size: .9rem;
  }
}


/* バージョン表示 */
.site-band-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.site-version {
  color: #7a838d;
  font-size: .76rem;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .site-band-footer-inner { align-items: flex-start; flex-direction: column; gap: 3px; }
  .site-version { white-space: normal; }
}


/* プライバシーポリシー */
.privacy-policy-link {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #dfe5ea;
  font-size: .9rem;
}
.privacy-page { max-width: 820px; }
.privacy-page > p:first-of-type {
  color: #4a5560;
  margin-bottom: 26px;
}
.privacy-section {
  margin: 0 0 26px;
}
.privacy-section h2 {
  margin: 0 0 9px;
  font-size: 1.18rem;
}
.privacy-section p {
  margin: 0 0 8px;
  line-height: 1.8;
}
.privacy-section ul {
  margin: 8px 0 0 1.25em;
  padding: 0;
}
.privacy-section li {
  margin: 5px 0;
  line-height: 1.65;
}
.privacy-back {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid #dfe5ea;
}


/* プライバシーポリシー：破棄を明確に強調 */
.privacy-destroy {
  color: #c62828;
  font-weight: 800;
}
.privacy-destroy-line {
  color: #c62828;
  font-weight: 800;
}

/* 公開受付ページ上部の関連リンク */
.public-reference-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 1.02rem;
  font-weight: 750;
  text-align: right;
}
.public-reference-links a {
  color: #1769aa;
  text-decoration: none;
}
.public-reference-links a:hover {
  text-decoration: underline;
}
.public-reference-sep {
  color: #8f99a4;
  font-weight: 400;
}
@media (max-width: 600px) {
  .public-reference-links {
    font-size: .96rem;
    justify-content: flex-end;
  }
}
