/* 動画編集CAMP 群馬校 体験会 申し込みフォーム
   色と書体は公式サイトと告知リールに合わせている(赤・黄・白・黒 / Noto Sans JP / 数字は Anton)。
   絵の中心は「編集ソフトのタイムライン」。日時・料金をクリップとして並べている。 */

@font-face {
  font-family: "Anton";
  src: url("/fonts/Anton-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --red: #f94142;
  --yellow: #ffde68;
  --paper: #fffffb;
  --ink: #111111;
  --mute: #5a5a55;
  --track: #f0efe6;
  --error: #b3191a;
  --jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --num: "Anton", "Noto Sans JP", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt";
}

/* 日本語の折り返し。文節の切れ目(<wbr>)でだけ折る */
h1, h2, h3, p, li, dt, dd, label, legend {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

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

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- 頭 ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 14px;
}
.top img { width: 164px; }
.top span {
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  padding: 6px 9px 7px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
}

/* ---------- 告知(ポスター) ---------- */
.poster { container-type: inline-size; padding-bottom: 36px; }

.poster h1 {
  margin: 10px 0 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.poster h1 .lead {
  display: block;
  font-size: 22px;
  font-size: clamp(20px, 6.2cqi, 34px);
  letter-spacing: 0;
  margin-bottom: 0.35em;
}
.poster h1 .big {
  display: block;
  font-size: 23vw;
  font-size: 23.6cqi;
}

/* タイムライン */
.tl {
  position: relative;
  margin-top: 26px;
  margin-top: 7cqi;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.tl-ruler {
  height: 20px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 20%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4%) 0 100% / 100% 7px no-repeat;
  border-bottom: 1px solid var(--ink);
}
.tl-tracks {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: grid;
  gap: 6px;
}
.track {
  display: flex;
  background: var(--track);
  height: 76px;
  height: 20.5cqi;
}
.clip {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  height: 100%;
  padding: 0 0.42em 0 0.36em;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  font-size: 46px;
  font-size: 12.6cqi;
}
.track:nth-child(1) .clip { margin-left: 0; background: var(--ink); color: var(--paper); }
.track:nth-child(2) .clip { margin-left: 14cqi; background: var(--red); color: var(--ink); }
.track:nth-child(3) .clip { margin-left: 28cqi; flex: 1; background: var(--yellow); color: var(--ink); font-size: 11cqi; }

.num {
  font-family: var(--num);
  font-weight: 400;
  font-feature-settings: normal;
  letter-spacing: 0.01em;
  font-size: 1.16em;
  transform: translateY(0.02em);
}
.dow {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.56em;
}
.tilde { font-size: 0.8em; margin-left: -0.12em; }

.tl-wave {
  height: 34px;
  height: 9cqi;
  margin-bottom: 6px;
  background-color: var(--track);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='40' viewBox='0 0 100 40'%3E%3Cg fill='%23111111'%3E%3Crect x='1' y='16' width='3' height='8'/%3E%3Crect x='6' y='11' width='3' height='18'/%3E%3Crect x='11' y='5' width='3' height='30'/%3E%3Crect x='16' y='9' width='3' height='22'/%3E%3Crect x='21' y='14' width='3' height='12'/%3E%3Crect x='26' y='7' width='3' height='26'/%3E%3Crect x='31' y='2' width='3' height='36'/%3E%3Crect x='36' y='10' width='3' height='20'/%3E%3Crect x='41' y='15' width='3' height='10'/%3E%3Crect x='46' y='12' width='3' height='16'/%3E%3Crect x='51' y='6' width='3' height='28'/%3E%3Crect x='56' y='3' width='3' height='34'/%3E%3Crect x='61' y='11' width='3' height='18'/%3E%3Crect x='66' y='16' width='3' height='8'/%3E%3Crect x='71' y='13' width='3' height='14'/%3E%3Crect x='76' y='8' width='3' height='24'/%3E%3Crect x='81' y='4' width='3' height='32'/%3E%3Crect x='86' y='9' width='3' height='22'/%3E%3Crect x='91' y='14' width='3' height='12'/%3E%3Crect x='96' y='17' width='3' height='6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 100%;
}

/* 再生ヘッド */
.tl-head {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--red);
  transform: translateX(86cqi);
  pointer-events: none;
}
.tl-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: -7px;
  width: 17px;
  height: 20px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

@media (prefers-reduced-motion: no-preference) {
  .tl-head { animation: scrub 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .clip { animation: cut-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .track:nth-child(1) .clip { animation-delay: 0.2s; }
  .track:nth-child(2) .clip { animation-delay: 0.38s; }
  .track:nth-child(3) .clip { animation-delay: 0.56s; }
}
@keyframes scrub {
  from { transform: translateX(0); }
  to { transform: translateX(86cqi); }
}
@keyframes cut-in {
  from { clip-path: inset(0 100% 0 0 round 8px); }
  to { clip-path: inset(0 0 0 0 round 8px); }
}

.venue {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: baseline;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
}
.venue dt {
  font-size: 13px;
  font-weight: 900;
  padding: 3px 8px 4px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  line-height: 1.2;
}
.venue dd { margin: 0; }
.venue small { display: block; font-size: 14px; font-weight: 500; color: var(--mute); }

/* ---------- フォーム ---------- */
.apply {
  border-top: 3px solid var(--ink);
  padding: 30px 0 48px;
}
.apply h2 {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.3;
}
.apply .note {
  margin: 0 0 26px;
  font-size: 15px;
  color: var(--mute);
  max-width: 34em;
}

.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label,
.field > legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}
.must,
.opt {
  font-size: 12px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 3px;
}
.must { font-weight: 900; background: var(--yellow); color: var(--ink); }
.opt { font-weight: 500; color: var(--mute); border: 1px solid #b9b8ae; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #767670; }

.field input:focus-visible,
.field textarea:focus-visible,
.send:focus-visible,
.foot a:focus-visible,
.back:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--yellow);
}

.choices { display: grid; gap: 8px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #ffffff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.choice input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
}
.choice input:checked { background: radial-gradient(var(--ink) 0 45%, #ffffff 50%); }
.choice:has(input:checked) { background: var(--yellow); }
.choice:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--yellow);
}
.choice input:focus-visible { outline: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-turnstile:empty { display: none; }
.cf-turnstile { margin-bottom: 16px; }

.send {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.3;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s, color 0.15s;
}
.send:hover { background: var(--red); color: var(--ink); }
.send:disabled { opacity: 0.55; cursor: progress; }

.form-status { margin: 14px 0 0; font-weight: 700; font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ink); }

.privacy {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--mute);
  max-width: 34em;
}

/* ---------- 足元 ---------- */
.foot {
  border-top: 1px solid #d8d7cd;
  padding: 8px 0 28px;
  font-size: 14px;
}
.foot a,
.back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---------- 送信後のページ ---------- */
.done { padding: 34px 0 56px; }
.done h1 {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(30px, 8.4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.done .mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
}
.done p { margin: 0 0 12px; max-width: 34em; }
.done .back { margin-top: 14px; }

/* ---------- 広い画面 ---------- */
@media (min-width: 960px) {
  .wrap { padding: 0 40px; }
  .top { padding: 28px 0 20px; }
  .top img { width: 200px; }
  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 72px;
    align-items: start;
  }
  .poster { position: sticky; top: 24px; padding-bottom: 56px; }
  .poster h1 .big { font-size: 22cqi; }
  .tl { margin-top: 5cqi; }
  .track { height: 15cqi; }
  .clip { font-size: 9.4cqi; }
  .track:nth-child(3) .clip { font-size: 8.2cqi; }
  .tl-wave { height: 6cqi; }
  .apply {
    border-top: 0;
    margin-top: 10px;
    padding: 30px 32px 40px;
    border: 3px solid var(--ink);
    border-radius: 18px;
    background: #ffffff;
  }
  .apply { margin-bottom: 56px; }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field textarea,
  .choice { background: var(--paper); }
  .choice:has(input:checked) { background: var(--yellow); }
}
