/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg: #f5efe5;
  --surface: #fffaf2;
  --surface-soft: rgba(255, 250, 242, .76);
  --text: #24170f;
  --muted: #6f6258;
  --line: #dfd1bf;
  --accent: #c68a2b;
  --accent-strong: #8c5a12;
  --shadow: 0 14px 34px rgba(55, 34, 18, .10);
  --radius-lg: 24px;
  --radius-md: 18px;

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
}


/* ============================================================
   Global defaults
   ============================================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(220, 181, 116, .18), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}


/* ============================================================
   Page shell / header
   ============================================================ */
.site {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.topbar {
  display: flex;
  justify-content: center;
  padding: 4px 0 20px;
}

.logo-link {
  display: block;
}

.logo {
  display: block;
  width: min(260px, 68vw);
  height: auto;
}


/* ============================================================
   Page introduction / notices
   ============================================================ */
.intro {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.intro-icon {
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: var(--fs-12);
  font-weight: 800;
  letter-spacing: .1em;
}

.intro h1 {
  margin: 0;
  font-size: var(--fs-32);
  line-height: 1.3;
}

.intro-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--fs-16);
  line-height: 1.9;
  text-align: left;
}

.candidate-shops-inline {
  color: var(--accent-strong);
  font-weight: 800;
}

.notice {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #dfbf82;
  border-radius: 14px;
  background: #fff5df;
  text-align: left;
}

.notice strong {
  color: var(--accent-strong);
  font-size: var(--fs-16);
}

.notice span {
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.65;
}

.notice .notice-legacy {
  margin-top: 6px;
  color: #c21873;
  font-weight: 500;
  text-shadow:
    0 0 6px rgba(255, 44, 149, .45),
    0 0 14px rgba(255, 44, 149, .22);
}



.candidate-shops-banner {
  display: block;
  width: min(260px, 58%);
  margin: 12px auto 0;
  opacity: .90;
  transition: opacity .15s ease, transform .15s ease;
}

.candidate-shops-banner:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.candidate-shops-banner:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.candidate-shops-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   Application form
   ============================================================ */

/* ============================================================
   Adventurer application form
   ============================================================ */
.application-form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}


/* Form sections / headings */
.form-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(55, 34, 18, .06);
}

.section-heading {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 24px;
}

.step {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #f0dfc1;
  color: var(--accent-strong);
  font-size: var(--fs-14);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: var(--fs-24);
  line-height: 1.35;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.6;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: block;
  margin-top: 18px;
}

.field-grid .field {
  margin-top: 0;
}


.label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-14);
  font-weight: 800;
  line-height: 1.5;
}

em {
  margin-left: 4px;
  color: #a34b2f;
  font-size: var(--fs-12);
  font-style: normal;
  font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid #d4c4af;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-size: var(--fs-16);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="text"],
input[type="email"],
input[type="url"],
select {
  min-height: 48px;
  padding: 10px 12px;
}

textarea {
  min-height: 140px;
  padding: 12px;
  resize: vertical;
  line-height: 1.7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 138, 43, .14);
}

.help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-12);
  line-height: 1.5;
}

.counter {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--fs-12);
  text-align: right;
}

fieldset.field {
  min-width: 0;
  padding: 0;
  border: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}


/* Social / review activity fields */
.media-list {
  display: grid;
  gap: 14px;
}

.media-item {
  display: grid;
  gap: 8px;
}

.media-check {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.4;
}

.media-url-input {
  width: 100%;
}

.media-item.is-disabled .media-url-input {
  cursor: not-allowed;
  background: #eee8df;
  color: var(--muted);
  opacity: .62;
  box-shadow: none;
}

.media-item.is-active .media-url-input {
  background: #fff;
  opacity: 1;
}

.media-item--none {
  padding-top: 2px;
}

.check-grid label,
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text);
  font-size: var(--fs-14);
  line-height: 1.55;
}

.check-grid label {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.check-row {
  margin-top: 18px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-strong);
}


/* Confirmation note / submit action */
.submit-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7f0e6;
  color: var(--muted);
  font-size: var(--fs-12);
  line-height: 1.7;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #bd8125, #905b11);
  color: #fff;
  cursor: pointer;
  font-size: var(--fs-16);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(110, 68, 15, .22);
}

.submit-button:hover {
  filter: brightness(1.05);
}

.submit-button span {
  font-size: var(--fs-24);
  line-height: 1;
}


/* Navigation / footer */
.back-link {
  display: block;
  margin: 26px auto 0;
  color: var(--accent-strong);
  font-size: var(--fs-14);
  font-weight: 800;
  text-align: center;
}

footer {
  margin-top: 44px;
  padding: 26px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-12);
  text-align: center;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}


/* ============================================================
   Responsive layout: mobile
   ============================================================ */
@media (max-width: 600px) {
  .site {
    width: min(100% - 24px, 820px);
    padding-top: 12px;
  }

  .intro {
    padding: 24px 18px;
  }

  .intro h1 {
    font-size: var(--fs-24);
  }

  .form-section {
    padding: 22px 18px;
  }

  .field-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .field-grid--name {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .step {
    width: 42px;
    height: 42px;
  }

  .section-heading h2 {
    font-size: var(--fs-20);
  }
}
