@charset "UTF-8";

/* ===========================================================
   第7回名古屋ハロウィンラリー 加盟店舗申込フォーム
   配色は halloweenrally.com の実測値に準拠
   =========================================================== */

:root {
  --teal:        #00B0AD;
  --teal-dark:   #008C8A;
  --yellow:      #FFFD96;
  --pink:        #EE35AE;
  --blue:        #1376FF;

  --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: 0.85rem;
  line-height: 1.6;
  text-align: center;
  padding: 10px 16px;
}

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--yellow);
  border-bottom: 4px solid var(--ink);
  padding: 36px 0 40px;
  text-align: center;
}
/* 締切バッジとボタンが横に並ばないよう、各要素を1行ずつ積む */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: 260px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
  mix-blend-mode: multiply; /* ロゴ画像の白地を淡黄の面に溶かす */
}
.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;
  letter-spacing: .02em;
}
.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(--ink);
  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(--teal);
}
.h2 + .h2 { margin-top: 36px; }

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

.lead { margin: 0; }
.lead__closing { display: block; text-align: right; }

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

.link {
  color: var(--teal-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}
.link:hover { color: var(--pink); }
.link--inv { color: var(--yellow); }
.link--inv:hover { color: var(--pink); }

/* ---------- 概要リスト ---------- */
.overview {
  margin: 0 0 24px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.overview dt {
  font-weight: 700;
  color: var(--teal-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--compact li { margin-bottom: .2em; }
.list::marker, .list li::marker { color: var(--teal); }

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

/* ---------- 規約 ---------- */
.terms {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
/* 見出しが折り返しても開閉ラベルが帯からはみ出さないよう flex で並べる */
.terms__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--teal);
  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; }

.fieldset {
  margin-inline: 0;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

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

legend.label { padding-inline: 6px; margin-left: -6px; }

.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(--pink); 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 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(--teal);
  box-shadow: 0 0 0 3px rgba(0, 176, 173, .18);
}
.input:disabled { background: var(--bg-soft); }
.textarea { resize: vertical; min-height: 96px; }

/* チェック・ラジオ（タップしやすい面で囲う） */
.check, .radio {
  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, .radio:hover { border-color: var(--teal); }
.check:has(:checked), .radio:has(:checked) {
  border-color: var(--teal);
  background: rgba(0, 176, 173, .07);
}
.check input, .radio input {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
  cursor: pointer;
}

.sub {
  margin: 4px 0 8px;
  padding-left: 14px;
  border-left: 4px solid var(--teal);
}

.note-box {
  margin: 8px 0 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
  font-size: .82rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.sub .note-box { border-left: 0; border-radius: var(--radius); }

.agree {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
}
.agree .check { background: #fff; }

/* 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(--teal);
  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(--teal-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(--pink);
  box-shadow: 0 3px 0 var(--ink);
}
.btn--submit:hover { background: #D42C9A; }
.btn--submit:disabled {
  background: var(--ink-mute);
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------- 完了画面 ---------- */
.thanks {
  padding: 56px 0 72px;
  background: var(--yellow);
  min-height: 70vh;
}
.thanks__inner { text-align: center; }
.thanks__logo {
  width: 220px;
  margin: 0 auto 12px;
  display: block;
  mix-blend-mode: multiply;
}
.thanks__title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
}
.thanks__contact {
  margin: 28px auto;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  font-size: .9rem;
  text-align: left;
  max-width: 420px;
}
.thanks__contact p { margin: 0 0 .4em; }

/* ---------- フッター ---------- */
.footer {
  padding: 40px 0 32px;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
}
.footer__title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yellow);
}
.footer__lead { color: #CFCFCF; font-size: .85rem; }
.footer__contact {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #444;
  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 #444;
  font-size: .8rem;
  color: #AAAAAA;
}

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

  /* 概要は横並びの定義リストに */
  .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 { display: none; }
  .terms__body { max-height: none; overflow: visible; }
  body { font-size: 11pt; }
}
