/* ============================================================
   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,
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;
}

.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;
}

.adventurer-note {
  position: relative;
  margin-top: 14px;
  padding: 18px 20px 18px 54px;
  border: 2px solid #e08a12;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #fff3bd 0%, #ffd978 58%, #ffc95a 100%);
  text-align: left;
  box-shadow:
    0 8px 20px rgba(199, 105, 8, .20),
    inset 0 1px 0 rgba(255, 255, 255, .72);
}

.adventurer-note::before {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 20px;
  color: #e46d00;
  font-size: var(--fs-24);
  line-height: 1;
  text-shadow:
    0 0 8px rgba(255, 255, 255, .78),
    0 2px 5px rgba(122, 51, 0, .18);
  transform: translateY(-50%);
}

.adventurer-note strong {
  display: block;
  color: #783800;
  font-size: var(--fs-16);
  font-weight: 900;
  line-height: 1.7;
}



/* ============================================================
   Official-store display sample
   ============================================================ */
.sample-section {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #e0b96f;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 246, 219, .96), rgba(255, 232, 171, .88)),
    var(--surface);
  box-shadow: 0 8px 24px rgba(121, 72, 12, .09);
}

.sample-copy {
  text-align: center;
}

.sample-kicker,
.sample-modal-kicker {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: var(--fs-12);
  font-weight: 900;
  letter-spacing: .1em;
}

.sample-copy h2,
.sample-modal-header h2 {
  margin: 0;
  font-size: var(--fs-24);
  line-height: 1.4;
}

.sample-copy p:not(.sample-kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.7;
}

.sample-preview {
  display: block;
  width: min(460px, 100%);
  margin: 18px auto 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #d08a20;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(108, 58, 8, .16);
  transition: transform .18s ease, box-shadow .18s ease;
}

.sample-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(108, 58, 8, .22);
}

.sample-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.sample-preview-label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f7b83e, #db8416);
  color: #fff;
  font-size: var(--fs-16);
  font-weight: 900;
}

.sample-preview-label span {
  font-size: var(--fs-24);
  line-height: 1;
}


/* Enlarged sample image modal */
.sample-modal[hidden] {
  display: none;
}

.sample-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sample-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 17, 8, .76);
  backdrop-filter: blur(3px);
}

.sample-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid #d8b471;
  border-radius: 18px;
  background: #fffaf2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.sample-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 14px;
}

.sample-modal-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #d6c4aa;
  border-radius: 50%;
  background: #fff;
  color: #4f2c0b;
  cursor: pointer;
  font-size: var(--fs-24);
  line-height: 1;
}

.sample-modal-notice {
  display: grid;
  gap: 4px;
  margin: 0 22px 16px;
  padding: 14px 16px;
  border: 2px solid #ef9d20;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0b3, #ffd36c);
  color: #6f3500;
}

.sample-modal-notice strong {
  font-size: var(--fs-16);
  font-weight: 900;
}

.sample-modal-notice span {
  font-size: var(--fs-14);
  line-height: 1.6;
}

.sample-modal-image-wrap {
  padding: 0 22px 22px;
}

.sample-modal-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dfd1bf;
  border-radius: 12px;
  background: #fff;
}

body.modal-open {
  overflow: hidden;
}


/* ============================================================
   Official-store preregistration form
   ============================================================ */
.official-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;
}

.section-heading + .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"],
input[type="tel"],
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"],
input[type="tel"] {
  min-height: 48px;
  padding: 10px 12px;
}

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

input: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;
}

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

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

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

.choice:has(input:checked) {
  border-color: #c99a50;
  background: #fff3d9;
}

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

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


/* 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;
  text-decoration: none;
  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;
  }

  .sample-section {
    padding: 20px 16px;
  }

  .sample-copy h2,
  .sample-modal-header h2 {
    font-size: var(--fs-20);
  }

  .sample-modal {
    padding: 10px;
  }

  .sample-modal-panel {
    max-height: calc(100vh - 20px);
  }

  .sample-modal-header {
    padding: 16px 14px 12px;
  }

  .sample-modal-notice {
    margin: 0 14px 14px;
  }

  .sample-modal-image-wrap {
    padding: 0 14px 14px;
  }

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

  .choice-grid {
    grid-template-columns: 1fr;
  }

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

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

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