@charset "UTF-8";

/* ===========================================================
   第7回名古屋ハロウィンラリー 参加申込フォーム
   配色: イベント公式サイトのイメージに合わせたオレンジ×深紫
   （2026-07-17 本人指示で #FFFD96 の黄は廃止。#F05B00 / #3D0A59 / #FF8500 を基調に）
   =========================================================== */

:root {
  --orange:       #F05B00;  /* 主役のオレンジ（ボタン・見出しアクセント） */
  --orange-dark:  #C94A00;  /* 本文中のリンク・小見出し（白地で読める濃さ） */
  --orange-light: #FF8500;  /* ホバー・暗い面の上のアクセント */
  --orange-pale:  #FFF3E8;  /* 強調パネルの下地 */
  --purple:       #3D0A59;  /* 深紫（ヒーロー・フッター・枠線） */
  --pink:         #EE35AE;  /* テスト環境バナー専用（本番デザインでは使わない） */

  --ink:         #111111;
  --ink-soft:    #444444;
  --ink-mute:    #6B6B6B;
  --line:        #DDDDDD;
  --bg:          #FFFFFF;
  --bg-soft:     #F7F7F7;
  --error:       #D02020;

  --wrap:        720px;
  --radius:      12px;
  --pill:        50px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

p { margin: 0 0 1.2em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- テスト環境バナー ---------- */
.test-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  line-height: 1.6;
  text-align: center;
  padding: 10px 16px;
}

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--purple);
  color: #fff;
  border-bottom: 4px solid var(--orange);
  padding: 36px 0 40px;
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  width: 260px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
  /* ロゴ（白地に黒）を白抜きにする:
     invertで黒い絵→白・白地→黒にし、screen合成で黒地だけを深紫に溶かす */
  filter: invert(1);
  mix-blend-mode: screen;
}
.hero__eyebrow { margin: 0 0 4px; font-weight: 700; font-size: 1rem; letter-spacing: .04em; }
.hero__title { margin: 0 0 16px; font-size: 1.75rem; font-weight: 700; line-height: 1.4; }
.hero__date { margin: 0 0 4px; font-weight: 700; font-size: 1rem; }
.hero__deadline {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 16px;
  border-radius: var(--pill);
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}

/* ---------- セクション ---------- */
.section { padding: 40px 20px; }
.section + .section { border-top: 1px solid var(--line); }

.h2 {
  position: relative;
  margin: 0 0 20px;
  padding-left: 14px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
}
.h2::before {
  content: "";
  position: absolute;
  left: 0; top: .25em; bottom: .25em;
  width: 5px;
  border-radius: 3px;
  background: var(--orange);
}

.h3 { margin: 24px 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--orange-dark); }
.h3--form {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px dotted var(--line);
  color: var(--ink);
  font-size: 1.15rem;
}

.note { font-size: .85rem; color: var(--ink-mute); line-height: 1.8; }

.link { color: var(--orange-dark); font-weight: 700; text-underline-offset: 3px; }
.link:hover { color: var(--orange-light); }
/* 深紫の面（フッター）の上のリンク。オレンジは読みづらいので白にする（2026-07-18 本人指摘） */
.link--inv { color: #fff; }
.link--inv:hover { color: rgba(255, 255, 255, .75); }

/* ---------- 概要リスト ---------- */
.overview {
  margin: 0 0 24px;
  padding: 20px;
  border: 2px solid var(--purple);
  border-radius: var(--radius);
}
.overview dt { font-weight: 700; color: var(--orange-dark); font-size: .9rem; }
.overview dd {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.overview dd:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

/* ---------- 箇条書き ---------- */
.list { margin: 0 0 1.2em; padding-left: 1.4em; }
.list li { margin-bottom: .5em; }
.list--num { list-style: decimal; }
.list::marker, .list li::marker { color: var(--orange); }

/* ---------- パネル ---------- */
.panel {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: .95rem;
}
.panel--accent { background: var(--orange-pale); border: 2px solid var(--orange); }

/* ---------- 規約・個人情報（折りたたみ） ---------- */
.terms { border: 2px solid var(--purple); border-radius: var(--radius); overflow: hidden; }
.terms__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.terms__summary::-webkit-details-marker { display: none; }
.terms__summary::after { content: "＋ 開く"; flex: none; font-size: .85rem; white-space: nowrap; }
.terms[open] .terms__summary::after { content: "− 閉じる"; }
.terms__body { padding: 20px; font-size: .9rem; max-height: 420px; overflow-y: auto; }
.terms__body p { margin-bottom: .8em; }
.terms__body .h3:first-child { margin-top: 0; }

/* ===========================================================
   フォーム
   =========================================================== */

.field { margin-bottom: 28px; }

/* 姓・名を横に並べる */
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 1rem; line-height: 1.6; }

.req, .opt {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--pill);
  font-size: .7rem;
  font-weight: 700;
  vertical-align: 2px;
  white-space: nowrap;
}
.req { background: var(--orange); color: #fff; }
.opt { background: var(--bg-soft); color: var(--ink-mute); border: 1px solid var(--line); }

.hint { margin: 4px 0 8px; font-size: .82rem; line-height: 1.8; color: var(--ink-mute); }
.hint--center { text-align: center; }

.input {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px; /* iOSの自動ズーム防止 */
  line-height: 1.6;
  transition: border-color .15s;
}
.input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 91, 0, .18);
}
.input--zip { max-width: 12em; }
.input--count { max-width: 7em; font-size: 1.1rem; font-weight: 700; text-align: center; }

select.input { appearance: none; background-image: none; }

/* チェック（タップしやすい面で囲う） */
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--orange); }
.check:has(:checked) { border-color: var(--orange); background: rgba(240, 91, 0, .07); }
.check input { flex: none; width: 22px; height: 22px; accent-color: var(--orange); cursor: pointer; }

.agree { padding: 20px; border: 2px solid var(--purple); border-radius: var(--radius); background: var(--orange-pale); }
.agree .check { background: #fff; }
.agree .hint { margin-top: -4px; margin-bottom: 16px; }

/* ---------- 参加費表示 ---------- */
.fee {
  margin: 8px 0 28px;
  padding: 18px 20px;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  background: rgba(240, 91, 0, .07);
  text-align: center;
}
.fee--ng { border-color: var(--error); background: #FFF2F2; }
.fee__line { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.fee__note { margin: 4px 0 0; font-size: .85rem; font-weight: 700; color: var(--ink-soft); min-height: 1.6em; }
.fee--ng .fee__note { color: var(--error); }

/* ---------- Turnstile ---------- */
.turnstile-wrap { display: flex; justify-content: center; }

/* honeypot: 視覚・読み上げの双方から外す */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- エラー ---------- */
.err { margin: 6px 0 0; font-size: .82rem; font-weight: 700; color: var(--error); line-height: 1.7; }
.err:empty { display: none; }
.err--form {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 2px solid var(--error);
  border-radius: var(--radius);
  background: #FFF2F2;
}
.input--invalid { border-color: var(--error); }
.input--invalid:focus { box-shadow: 0 0 0 3px rgba(208, 32, 32, .15); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 0;
  border-radius: var(--pill);
  background: var(--orange);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--orange-dark); }
.btn:active { transform: translateY(1px); }
.btn--hero { box-shadow: 0 3px 0 var(--ink); }

.submit-wrap { margin-top: 32px; text-align: center; }
.btn--submit {
  width: 100%;
  max-width: 380px;
  padding: 18px 32px;
  font-size: 1.1rem;
  background: var(--orange);
  box-shadow: 0 3px 0 var(--purple);
}
.btn--submit:hover { background: var(--orange-dark); }
.btn--submit:disabled { background: var(--ink-mute); box-shadow: none; cursor: not-allowed; }

/* ===========================================================
   完了画面（スクリーンショット1枚で当日提示できるようにする）
   =========================================================== */

.thanks { padding: 24px 0 64px; background: var(--purple); min-height: 100vh; }

.ticket {
  margin: 0 auto;
  padding: 24px 20px 28px;
  max-width: 420px;
  border: 3px solid var(--orange);
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .45);
}
.ticket__eyebrow { margin: 0 0 2px; font-size: 1.05rem; font-weight: 700; color: var(--orange-dark); }
.ticket__event { margin: 0 0 16px; font-size: .85rem; font-weight: 700; }

.ticket__label {
  display: inline-block;
  margin: 0;
  padding: 2px 14px;
  border-radius: var(--pill);
  background: var(--purple);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.ticket__number {
  margin: 4px 0 12px;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.ticket__qr {
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  display: block;
  image-rendering: pixelated; /* 拡大しても滲まず、読み取りやすくする */
}

.ticket__detail {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: .9rem;
  text-align: left;
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 4px 8px;
}
.ticket__detail dt { font-weight: 700; color: var(--ink-mute); }
.ticket__detail dd { margin: 0; }

.ticket__guide { margin: 0 0 10px; font-size: .85rem; line-height: 1.8; }
.ticket__save {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--orange-pale);
  border: 2px solid var(--orange);
  font-size: .9rem;
}
.ticket__mail { margin: 0; font-size: .8rem; color: var(--ink-mute); line-height: 1.7; }
.ticket__mail--ng {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--error);
  background: #FFF2F2;
  color: var(--error);
  font-weight: 700;
}

.thanks__after { margin-top: 28px; text-align: center; }
/* 深紫の面の上なので、注記は白系にして読めるようにする */
.thanks__after .note { color: rgba(255, 255, 255, .88); }
.thanks__contact {
  margin: 16px auto 20px;
  padding: 16px 20px;
  max-width: 420px;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  background: #fff;
  font-size: .85rem;
  text-align: left;
}
.thanks__contact p { margin: 0 0 .3em; }

/* ---------- フッター ---------- */
.footer { padding: 40px 0 32px; background: var(--purple); color: #fff; font-size: .9rem; }
.footer__title { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer__lead { color: rgba(255, 255, 255, .8); font-size: .85rem; }
.footer__contact { margin: 24px 0; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius); }
.footer__contact p { margin: 0 0 .3em; }
.footer__label { font-weight: 700; }
.footer__links { margin: 20px 0 24px; }
.footer__copy { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: .8rem; color: rgba(255, 255, 255, .65); }

/* ---------- PC ---------- */
@media (min-width: 768px) {
  .hero { padding: 56px 0 60px; }
  .hero__logo { width: 320px; }
  .hero__title { font-size: 2.25rem; }
  .section { padding: 56px 20px; }
  .h2 { font-size: 1.5rem; }

  .overview {
    display: grid;
    grid-template-columns: 7em 1fr;
    gap: 0 20px;
    padding: 24px 28px;
  }
  .overview dt { padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
  .overview dt:last-of-type, .overview dd:last-child {
    border-bottom: 0; padding-bottom: 0; margin-bottom: 0;
  }
}

/* ---------- 動きを減らす設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- 印刷 ---------- */
@media print {
  .test-banner, .btn, .submit-wrap, .thanks__after { display: none; }
  .terms__body { max-height: none; overflow: visible; }
  .thanks { background: #fff; }
  .ticket { box-shadow: none; }
  body { font-size: 11pt; }
}
