/* =========================================================
   「忍たま乱太郎」キャラクターショー 入場券 追加募集
   色はチラシから：空色の背景・帯の青・ロゴの赤・見出しの黄色
   ※キャラクターに吹き出し・文字をかぶせない／3人セットで使う（監修の注意事項）
   ========================================================= */
:root {
  --sky: #A9DDF5;
  --sky-pale: #E6F5FC;
  --blue: #1B5FB4;
  --blue-dark: #0E3F80;
  --red: #E60012;
  --red-dark: #B5000E;
  --yellow: #FFE33B;
  --orange: #F7A600;
  --cream: #FFFBEA;
  --ink: #1D2633;
  --muted: #4A5566;
  --line: #C9DCEB;
  --white: #FFFFFF;
  --radius: 18px;
  --display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Zen Maru Gothic", sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  /* 空色に白い水玉 */
  background:
    radial-gradient(circle, rgba(255,255,255,.55) 2px, transparent 2.5px) 0 0 / 26px 26px,
    var(--sky);
  overflow-wrap: anywhere;
  word-break: auto-phrase;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 4px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
strong { font-weight: 900; }
.sp-only { display: none; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 8px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 760px; }

/* ---------- ヘッダー ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px;
  background: var(--blue);
}
.topbar__home { display: flex; align-items: center; gap: 12px; }
.topbar__brand { display: block; line-height: 0; }
.topbar__logo { width: auto; height: 28px; padding: 9px 14px; background: var(--white); border-radius: 6px; box-sizing: content-box; }
.topbar__cta {
  font-weight: 900; font-size: .95rem; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: var(--yellow);
  padding: 6px 20px; border-radius: 999px;
}
.topbar__cta:hover { background: var(--white); color: var(--ink); }
.topbar__sub { font-size: .95rem; font-weight: 700; color: var(--white); text-decoration: none; }  /* 30周年記念サイトへ */
.topbar__sub:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 囲み枠（ショーの情報をひとまとめに） ---------- */
.show {
  max-width: 1120px;
  width: calc(100% - 32px);
  margin: 28px auto 40px;
  background: var(--white);
  border: 5px solid var(--blue);
  border-radius: 28px;
  box-shadow: 0 0 0 6px var(--white), 0 12px 30px rgba(14,63,128,.18);
  overflow: hidden;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 26% 42%, var(--cream) 0 55%, transparent 56%),
    linear-gradient(180deg, var(--sky-pale), #CFEBF8);
  padding: 36px 32px 28px;
}
.hero__inner {
  display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 32px;
}
.ribbon { margin: 0 0 14px; }
.ribbon span {
  display: inline-block;
  padding: 6px 22px;
  font-weight: 900; font-size: 1.1rem; letter-spacing: .06em;
  color: var(--white); background: var(--red);
  border-radius: 6px;
  box-shadow: 0 4px 0 var(--red-dark);
}
.hero__title { margin: 0 0 18px; font-weight: normal; line-height: 1; }
.hero__logo { width: 260px; margin-bottom: 10px; }
.hero__title-text {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  white-space: nowrap;
  letter-spacing: .02em;
  color: var(--yellow);
  -webkit-text-stroke: 8px var(--blue-dark);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--blue-dark);
}

/* 日時のかたまり */
.when { display: inline-block; }
.when__date { margin: 0 0 6px; font-weight: 900; line-height: 1.1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.when__year { font-size: 1.2rem; }
.when__md { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.4rem); color: var(--blue-dark); }
.when__md small { font-size: .55em; }
.when__dow {
  display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: 1.15rem;
  align-self: center;
}
.when__times { list-style: none; margin: 0 0 8px; padding: 0; font-weight: 700; }
.when__times li { display: flex; align-items: center; gap: 8px; line-height: 1.9; }
.when__times strong { color: var(--red); }
.when__no, .times__no {
  flex: none;
  font-size: .8rem; font-weight: 900; color: var(--white);
  background: var(--blue); border-radius: 4px; padding: 0 8px; line-height: 1.7;
}
.when__place {
  margin: 0; font-weight: 900; font-size: 1.15rem; line-height: 1.5;
  padding-left: 12px; border-left: 5px solid var(--orange);
}

/* キャラクター3人（公式《レイアウト例》と同じ並び・重なり）
   位置と幅は、レイアウト例で3人を囲んだ範囲（1225×1035）に対する % */
.hero__visual { position: relative; }
.trio { position: relative; aspect-ratio: 1225 / 1035; }
.trio img { position: absolute; }
.trio__rantaro  { left: 28.6%; top: 0;     width: 44.1%; z-index: 1; }
.trio__kirimaru { left: 0;     top: 19.3%; width: 41.9%; z-index: 2; }
.trio__shinbe   { left: 54.7%; top: 39.1%; width: 45.3%; z-index: 3; }
.copyright { margin: 12px 0 0; }
.copyright img { width: 266px; margin-left: auto; }

.hero__cta {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 22px;
}
/* 入場無料の丸囲み（キャラクターから離して置く） */
.free {
  flex: none;
  display: grid; place-content: center; text-align: center;
  width: 96px; height: 96px; margin: 0; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-family: var(--display); font-size: 1.6rem; line-height: 1.05;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--red);
}
.free span { font-family: var(--body); font-weight: 900; font-size: .9rem; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 900; font-size: 1.15rem; text-decoration: none;
  padding: 16px 40px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn--primary { color: var(--white); background: var(--red); box-shadow: 0 6px 0 var(--red-dark); }
.btn--primary::after { content: "▶"; font-size: .75em; }
.btn--primary:hover { color: var(--white); transform: translateY(3px); box-shadow: 0 3px 0 var(--red-dark); }
.btn--wide { width: 100%; max-width: 420px; }

/* ---------- 締切の帯 ---------- */
.deadline {
  background: var(--blue); color: var(--white);
  padding: 14px 20px; text-align: center;
}
.deadline p { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.deadline__status {
  font-weight: 900; font-size: .95rem;
  background: var(--yellow); color: var(--ink);
  padding: 2px 14px; border-radius: 999px;
}
.deadline__text { font-weight: 700; font-size: 1.1rem; }
.deadline__text strong { font-size: 1.45rem; color: var(--yellow); }
.deadline .deadline__note { display: block; margin-top: 4px; font-size: .9rem; font-weight: 700; }

/* ---------- セクション共通 ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 2px dashed var(--line); }
.heading {
  position: relative;
  margin: 0 0 28px; text-align: center;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.4;
  color: var(--blue-dark);
}
.heading::after {
  content: ""; display: block; width: 64px; height: 6px; margin: 12px auto 0;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--red) 0 16px, var(--yellow) 16px 32px);
}
.heading--small { font-size: 1.4rem; }

.intro { text-align: center; }
.intro p:last-child { margin-bottom: 0; }

/* 公演概要 */
.table { margin: 0; border: 3px solid var(--blue); border-radius: var(--radius); overflow: hidden; }
.table__row { display: grid; grid-template-columns: 140px 1fr; }
.table__row + .table__row { border-top: 2px solid var(--line); }
.table dt {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: var(--sky-pale);
  font-weight: 900; color: var(--blue-dark);
}
.table dd { margin: 0; padding: 18px 24px; }
.table dd p:last-child, .table dd ul:last-child { margin-bottom: 0; }
.table__strong { font-weight: 900; font-size: 1.15rem; margin-bottom: .4em; }
.table__note { font-size: .9rem; color: var(--muted); }
.times { list-style: none; margin: 0 0 .5em; padding: 0; }
.times li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.times__end { font-size: .9rem; color: var(--muted); }

.dots { margin: 0; padding-left: 1.3em; }
.dots li + li { margin-top: .35em; }
.dots li::marker { color: var(--orange); }

/* 流れ */
.flow { background: var(--cream); }
.flow__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  counter-reset: flow;
}
.flow__item {
  position: relative;
  padding: 20px 18px; text-align: center;
  background: var(--white); border: 3px solid var(--line); border-radius: var(--radius);
}
.flow__item:not(:last-child)::after {
  /* 次へ進む矢印 */
  content: ""; position: absolute; right: -16px; top: 50%; z-index: 1;
  border: 10px solid transparent; border-left: 12px solid var(--blue);
  transform: translateY(-50%);
}
.flow__item--now { border-color: var(--red); }
.flow__item--goal { border-color: var(--blue); background: var(--sky-pale); }
.flow__date {
  display: inline-block; margin-bottom: 8px;
  font-weight: 900; font-size: .9rem;
  color: var(--white); background: var(--blue); padding: 2px 12px; border-radius: 999px;
}
.flow__item--now .flow__date { background: var(--red); }
.flow__label { margin-bottom: 6px; font-weight: 900; font-size: 1.1rem; line-height: 1.5; }
.flow__desc { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--muted); }

/* 募集要項 */
.guide__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.card {
  padding: 24px 26px;
  background: var(--white); border: 3px solid var(--line); border-radius: var(--radius);
}
.card__title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: 1.25rem; font-weight: 900; color: var(--blue-dark);
}
.card__icon {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-family: var(--display); font-size: 1rem;
}
.card--caution { border-color: #F3C3C3; background: #FFF7F7; }
.card--caution .card__icon { background: var(--red); }
.card--caution .card__title { color: var(--red-dark); }

/* ---------- 応募フォーム ---------- */
.entry { background: var(--sky-pale); }
.steps {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: flex; justify-content: center; gap: 8px;
}
.steps__item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 18px 6px 8px; border-radius: 999px;
  background: var(--white); color: var(--muted); font-weight: 700;
}
.steps__num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--line); color: var(--white); font-weight: 900;
}
.steps__item.is-current { background: var(--blue); color: var(--white); }
.steps__item.is-current .steps__num { background: var(--yellow); color: var(--ink); }

.form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 4px 0 var(--line); }
.form__group { border: 0; margin: 0 0 28px; padding: 0; }
.form__group legend {
  width: 100%; margin-bottom: 18px; padding: 0 0 8px;
  font-weight: 900; font-size: 1.2rem; color: var(--blue-dark);
  border-bottom: 3px solid var(--sky);
}
.field { margin-bottom: 22px; }
.field__label { display: block; margin-bottom: 6px; font-weight: 900; }
.req {
  display: inline-block; margin-left: 6px; padding: 0 8px; vertical-align: 2px;
  font-size: .75rem; line-height: 1.7; border-radius: 4px;
  background: var(--red); color: var(--white);
}
.field__input {
  width: 100%; padding: 13px 16px;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--white); border: 2px solid #9FB4C7; border-radius: 10px;
}
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,95,180,.2); }
.field__input::placeholder { color: #9AA6B4; }
.field--short .field__input { max-width: 240px; }
.field__hint { margin: 6px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* 選択肢（公演回・人数）：押しやすい大きなボタン型 */
.choices { display: grid; gap: 10px; }
.choices--show { grid-template-columns: 1fr 1fr; }
.choices--people { grid-template-columns: repeat(4, 1fr); max-width: 420px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 10px 8px; text-align: center; line-height: 1.4;
  background: var(--white); border: 2px solid #9FB4C7; border-radius: 12px;
  font-weight: 700;
}
.choices--people .choice > span { flex-direction: row; align-items: baseline; gap: 2px; }
.choice__main { font-size: 1.25rem; font-weight: 900; color: var(--blue-dark); }
.choice small { font-size: .82rem; color: var(--muted); }
.choice:hover > span { border-color: var(--blue); }
.choice input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 3px 0 var(--blue-dark); }
.choice input:checked + span .choice__main,
.choice input:checked + span small { color: var(--white); }
.choice input:focus-visible + span { outline: 4px solid var(--orange); outline-offset: 2px; }

.mailnote {
  padding: 14px 18px; border-radius: 12px;
  background: var(--cream); border: 2px solid #F2DE8A;
  font-size: .92rem; line-height: 1.7;
}
.mailnote__title { margin-bottom: 4px; font-weight: 900; }
.mailnote p:last-child { margin: 0; }

.agree { margin: 8px 0 28px; text-align: center; }
.check {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 20px; border-radius: 12px;
  background: var(--sky-pale); font-weight: 700;
}
.check input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.form__actions { text-align: center; }

/* ---------- お問い合わせ ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.contact__item {
  padding: 18px 20px; text-align: center;
  border: 2px solid var(--line); border-radius: var(--radius);
}
.contact__name { margin-bottom: 2px; font-weight: 900; }
.contact__tel { margin-bottom: 0; font-family: var(--display); font-size: 1.6rem; line-height: 1.4; }
.contact__tel a { color: var(--blue-dark); text-decoration: none; }
.contact__time { margin: 0; font-size: .88rem; color: var(--muted); }
.contact__note { margin: 16px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- フッター ---------- */
.footer { background: var(--blue-dark); color: var(--white); }
.footer__inner { max-width: 1000px; margin: 0 auto; padding: 32px 24px 80px; text-align: center; font-size: .92rem; }
.footer a { color: var(--white); }
.footer__copy { margin: 0; opacity: .8; }

/* ---------- タブレット以下 ---------- */
@media (max-width: 860px) {
  .hero { padding: 28px 20px 24px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .hero { background: linear-gradient(180deg, var(--sky-pale), #CFEBF8); }
  .hero__logo { margin-inline: auto; width: 230px; }
  .when { text-align: left; }
  .hero__visual { max-width: 520px; margin: 4px auto 0; width: 100%; }
  .flow__list { grid-template-columns: 1fr 1fr; }
  .flow__item:nth-child(2)::after { display: none; }
}

/* ---------- スマホ ---------- */
@media (max-width: 575px) {
  body { font-size: 1rem; }
  .sp-only { display: inline; }
  .topbar { padding: 8px 12px; }
  .topbar__logo { height: 22px; padding: 7px 10px; }
  /* 横に並べる幅がないので、ロゴの下に小さく置く */
  .topbar__home { flex-direction: column; align-items: flex-start; gap: 3px; }
  .topbar__sub { font-size: .7rem; line-height: 1.2; letter-spacing: .04em; }
  .show { width: auto; margin: 12px 8px 24px; border-width: 4px; border-radius: 20px; box-shadow: 0 8px 20px rgba(14,63,128,.18); }
  .wrap { padding: 0 18px; }
  .section { padding: 40px 0; }
  .ribbon span { font-size: .95rem; padding: 5px 16px; }
  .hero { padding: 24px 14px 22px; }
  .hero__logo { width: 200px; }
  .copyright img { width: 220px; }
  .hero__title-text { font-size: 7.4vw; -webkit-text-stroke-width: 6px; text-shadow: 0 4px 0 var(--blue-dark); }
  .hero__cta { flex-direction: column; gap: 18px; }
  .btn { width: 100%; padding: 15px 20px; }
  /* 1行目：「受付中」＋「応募締切」、2行目：日付 */
  .deadline { padding: 14px 16px 16px; }
  .deadline p { gap: 2px 10px; }
  .deadline__text { display: contents; }
  .deadline__text strong { flex-basis: 100%; font-size: 1.6rem; line-height: 1.4; }
  .deadline .deadline__note { margin-top: 6px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.4); font-size: .85rem; }
  .intro { text-align: left; }
  .intro br { display: none; }
  .table__row { grid-template-columns: 1fr; }
  .table dt { justify-content: flex-start; padding: 8px 16px; }
  .table dd { padding: 14px 16px; }
  .flow__list { grid-template-columns: 1fr; gap: 26px; }
  .flow__item { text-align: left; padding: 16px 18px; }
  .flow__date { margin-bottom: 4px; }
  .flow__label { margin-bottom: 2px; }
  .flow__item:not(:last-child)::after,
  .flow__item:nth-child(2)::after {
    display: block; right: auto; left: 50%; top: auto; bottom: -24px;
    border: 10px solid transparent; border-top: 12px solid var(--blue); border-bottom-width: 0;
    transform: translateX(-50%);
  }
  .guide__grid { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
  .form { padding: 22px 16px; }
  .field--short .field__input { max-width: none; }
  .steps__item { padding: 4px 12px 4px 6px; font-size: .9rem; }
  .check { text-align: left; }
  .contact__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   管理画面（admin）
   ========================================================= */
.admin { background: #F3F6F9; }
.admin__main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }
.admin__head .btn { width: auto; flex: none; }
.admin__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.admin__title { margin: 0; font-size: 1.5rem; line-height: 1.4; color: var(--blue-dark); }
.admin__title small { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); }
.admin__sub { margin: 0; font-size: 1.2rem; color: var(--blue-dark); }
.admin__example { margin: 0 0 10px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.admin .btn { font-size: .95rem; padding: 8px 20px; min-height: 44px; }
.admin .btn--primary::after { content: none; }
.btn--danger { color: var(--white); background: var(--red); box-shadow: 0 4px 0 var(--red-dark); }
.btn--danger:hover { color: var(--white); transform: translateY(2px); box-shadow: 0 2px 0 var(--red-dark); }

/* 受付の状態 */
.status {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px 28px;
  margin-bottom: 24px; padding: 22px 24px;
  background: var(--white); border: 3px solid var(--blue); border-radius: var(--radius);
}
.status--closed { grid-template-columns: auto 1fr; border-color: #B8C2CC; }
.status--closed .admin__example { grid-column: 1 / -1; }
.status__title { margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.status__badge {
  display: inline-block; margin: 0 0 4px; padding: 2px 18px; border-radius: 999px;
  font-weight: 900; font-size: 1.15rem;
}
.status__badge--open { background: var(--yellow); color: var(--ink); }
.status__badge--closed { background: #5B6573; color: var(--white); }
.status__period { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.status__action { max-width: 420px; }
.status--closed .status__action { max-width: 420px; justify-self: end; }
.status__help { margin: 8px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.6; }

.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; grid-column: 1 / -1; grid-row: 2; }
.tally__item { padding: 10px 14px; border-radius: 12px; background: var(--sky-pale); }
.tally__item--total { background: var(--cream); }
.tally dt { font-size: .82rem; font-weight: 700; color: var(--muted); }
.tally dd { margin: 0; font-weight: 700; }
.tally dd strong { font-size: 1.6rem; color: var(--blue-dark); margin-right: 2px; }
.tally dd span { font-size: .85rem; color: var(--muted); margin-left: 4px; }
.tally dd b { color: var(--ink); font-size: 1rem; }

/* 応募一覧 */
.admin__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.admin__bar p { margin: 0 auto 0 0; }
.admin__search { display: flex; gap: 8px; }
.admin__search .field__input { padding: 8px 12px; width: 16em; }
.admin__table-wrap { overflow-x: auto; background: var(--white); border: 2px solid var(--line); border-radius: 12px; }
.admin__table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.6; }
.admin__table th, .admin__table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin__table th { background: var(--blue); color: var(--white); white-space: nowrap; }
.admin__table td:nth-child(-n+4) { white-space: nowrap; }

@media (max-width: 860px) {
  .status, .status--closed { grid-template-columns: 1fr; }
  .tally { grid-row: auto; }
  .status__action, .status--closed .status__action { max-width: none; justify-self: stretch; }
  .status__action .btn { width: 100%; }
}
@media (max-width: 575px) {
  .tally { grid-template-columns: 1fr; }
  .admin__search { width: 100%; }
  .admin__search .field__input { width: auto; flex: 1; }
}

/* =========================================================
   フォームのエラー・受付終了・確認／完了画面
   ========================================================= */
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* フォームに reCAPTCHA の表記を載せているので、右下のバッジは隠す（Google の規定で認められた方法） */
.grecaptcha-badge { visibility: hidden; }
.form__recaptcha { margin: 18px 0 0; font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.6; }

.alert {
  margin: 0 0 24px; padding: 16px 20px;
  background: #FFF0F0; border: 3px solid var(--red); border-radius: 14px;
  color: var(--ink); font-weight: 700;
}
.alert:focus { outline: none; }
.alert__title { margin-bottom: 6px; color: var(--red-dark); font-weight: 900; }
.alert ul { margin: 0; padding-left: 1.3em; }
.alert a { color: var(--red-dark); }
.info {
  margin: 0 0 24px; padding: 14px 20px;
  background: var(--cream); border: 2px solid #F2DE8A; border-radius: 14px; font-weight: 700;
}
.field__error { margin: 6px 0 0; color: var(--red-dark); font-weight: 900; font-size: .92rem; line-height: 1.6; }
.field__error::before { content: "！ "; }
.has-error .field__input { border-color: var(--red); background: #FFF7F7; }
.has-error .choice > span { border-color: var(--red); }
.agree.has-error .check { background: #FFF0F0; box-shadow: 0 0 0 2px var(--red); }
.agree .field__error { text-align: center; }

.steps__item.is-done { color: var(--blue-dark); }
.steps__item.is-done .steps__num { background: var(--sky); color: var(--blue-dark); }

.closed-box {
  padding: 28px 24px; text-align: center;
  background: var(--white); border: 3px solid var(--blue); border-radius: var(--radius);
}
.closed-box__title { margin-bottom: .6em; font-family: var(--display); font-size: 1.4rem; line-height: 1.5; color: var(--blue-dark); }
.closed-box p:last-child { margin-bottom: 0; }
.deadline--closed .deadline__status { background: #5B6573; color: var(--white); }
.deadline--before .deadline__status { background: var(--white); color: var(--blue-dark); }

.btn--ghost { color: var(--blue-dark); background: var(--white); border: 2px solid var(--blue); box-shadow: 0 4px 0 var(--line); }
.btn--ghost:hover { color: var(--blue-dark); background: var(--sky-pale); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* 確認・完了画面（キャラクター・ロゴは使わない） */
body.page-sub { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.page-sub > .sub { flex: 1 0 auto; }
.sub {
  width: calc(100% - 32px); max-width: 860px; margin: 28px auto 40px; padding: 40px 0 48px;
  background: var(--white); border: 5px solid var(--blue); border-radius: 28px;
}
.heading--page { font-size: clamp(1.4rem, 3.4vw, 1.8rem); }
.sub__lead { margin-bottom: 24px; }
.sub__note { margin: -12px 0 28px; font-size: .92rem; color: var(--muted); }
.review { margin: 0 0 28px; border-top: 2px solid var(--line); }
.review div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 14px 4px; border-bottom: 2px solid var(--line); }
.review dt { font-weight: 900; color: var(--blue-dark); }
.review dd { margin: 0; }
.review__email { font-weight: 900; word-break: break-all; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px; }
.confirm-actions .btn { min-width: 200px; }

.receipt {
  margin: 0 0 28px; padding: 22px 24px; text-align: center;
  background: var(--sky-pale); border: 3px solid var(--blue); border-radius: var(--radius);
}
.receipt__label { margin: 0; font-weight: 900; font-size: .9rem; color: var(--blue-dark); }
.receipt__id { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 6vw, 2.4rem); letter-spacing: .04em; white-space: nowrap; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.receipt__detail { margin: 6px 0 0; font-weight: 900; }
.page-sub .mailnote { margin-bottom: 24px; }
.thanks__next { margin-bottom: 32px; }

@media (max-width: 575px) {
  .sub { width: auto; margin: 12px 8px 24px; padding: 28px 0 36px; border-width: 4px; border-radius: 20px; }
  .review div { grid-template-columns: 1fr; gap: 2px; }
  .confirm-actions { flex-direction: column-reverse; }
  .confirm-actions .btn { width: 100%; }
  .steps__item { flex-direction: column; gap: 2px; padding: 6px 12px; border-radius: 14px; }
}

/* 管理画面の追加分 */
.admin__login { max-width: 360px; display: grid; gap: 12px; }
.admin__help { margin: -4px 0 14px; font-size: .85rem; color: var(--muted); }
.status__badge--before { background: var(--sky); color: var(--blue-dark); }
.status--confirm { grid-template-columns: 1fr auto; border-color: var(--red); background: #FFF7F7; }
.status__title--strong { margin-bottom: 8px; font-size: 1.25rem; color: var(--red-dark); }
.status__action--row { display: flex; flex-wrap: wrap; gap: 12px; max-width: none; }
.status--closed .tally { grid-row: auto; }
.admin__table tr.is-dup td { background: #FFF7E0; }
.dup-badge {
  display: inline-block; margin-top: 4px; padding: 0 8px; border-radius: 4px;
  font-size: .75rem; font-weight: 900; white-space: nowrap;
  background: var(--orange); color: var(--white);
}
