.page-apply-own { background: #fff; }
.page-apply-own .site-footer { display: none; }
.page-apply-own .site-header.is-solid { border-bottom: 1px solid #eee; }

.apply-stage {
  --apply-q: #000;
  --apply-a: #000;
  --apply-btn: #0142ac;
  --apply-bg: #fff;
  position: relative;
  min-height: calc(100vh - 120px);
  background: var(--apply-bg);
  color: var(--apply-q);
  padding: 28px 20px 80px;
}
.apply-progress {
  position: sticky;
  top: 0;
  height: 4px;
  background: #e8e8e8;
  margin: -28px -20px 20px;
  z-index: 2;
}
.apply-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--apply-btn);
  transition: width .25s ease;
}
.apply-back {
  border: 0;
  background: none;
  color: var(--apply-btn);
  font: inherit;
  cursor: pointer;
  padding: 0 0 16px;
}
.apply-back:focus-visible { outline: 2px solid var(--apply-btn); outline-offset: 3px; }
.apply-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.apply-screen { animation: apply-in .28s ease; }
.apply-screen.is-out { animation: apply-out .18s ease forwards; }
@keyframes apply-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes apply-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-12px); }
}
.apply-title {
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
  white-space: pre-line;
}
.apply-num {
  display: inline-block;
  margin-right: 10px;
  color: var(--apply-btn);
  font-size: 0.55em;
  vertical-align: super;
  font-family: system-ui, sans-serif;
}
.apply-req { color: var(--apply-btn); font-size: 0.7em; }
.apply-desc {
  color: #333;
  margin: 0 0 24px;
  font-size: 16px;
}
.apply-choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.apply-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  color: var(--apply-a);
  font: inherit;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
}
.apply-choice:hover, .apply-choice:focus-visible, .apply-choice.is-selected {
  border-color: var(--apply-btn);
  box-shadow: 0 0 0 2px rgba(1, 66, 172, .18);
  outline: none;
}
.apply-key {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-family: system-ui, sans-serif;
}
.apply-pics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.apply-pic {
  display: grid;
  gap: 8px;
  padding: 0 0 10px;
  overflow: hidden;
}
.apply-pic img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  background: #f0f0f0;
  display: block;
}
.apply-pic .apply-pic-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.apply-input, .apply-ok {
  font: inherit;
}
.apply-input {
  width: min(100%, 420px);
  border: 0;
  border-bottom: 2px solid var(--apply-btn);
  background: transparent;
  color: var(--apply-a);
  font-size: clamp(22px, 4vw, 32px);
  padding: 8px 0;
  text-align: center;
}
.apply-input:focus { outline: none; }
.apply-legal {
  text-align: left;
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 15px;
  line-height: 1.45;
}
.apply-legal label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.apply-legal input { margin-top: 4px; }
.apply-ok {
  margin-top: 22px;
  background: var(--apply-btn);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 22px;
  cursor: pointer;
  font-size: 16px;
}
.apply-ok:disabled { opacity: .55; cursor: wait; }
.apply-ok:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.apply-hint { margin: 10px 0 0; color: #555; font-size: 13px; }
.apply-error { color: #b00020; margin: 10px 0 0; }
.apply-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-thanks img { width: min(100%, 280px); margin: 16px auto; display: block; }
.apply-thanks p { white-space: pre-line; font-size: 18px; }

@media (max-width: 600px) {
  .apply-stage { padding: 20px 14px 64px; }
  .apply-pics { grid-template-columns: 1fr 1fr; }
}
