:root {
  --bg: #f4f0ea;
  --paper: rgba(255, 252, 248, 0.92);
  --paper-strong: rgba(255, 255, 255, 0.95);
  --text: #201813;
  --muted: #6b5d52;
  --brand: #5b4636;
  --accent: #b28762;
  --accent-soft: #efe2d1;
  --line: rgba(91, 70, 54, 0.12);
  --line-strong: rgba(91, 70, 54, 0.22);
  --danger: #b24b43;
  --danger-soft: rgba(178, 75, 67, 0.08);
  --success: #355f45;
  --success-soft: rgba(53, 95, 69, 0.1);
  --shadow: 0 24px 60px rgba(42, 26, 15, 0.08);
  --shadow-soft: 0 14px 28px rgba(42, 26, 15, 0.05);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(223, 207, 187, 0.35), transparent 30%),
    radial-gradient(circle at bottom right, rgba(190, 170, 145, 0.18), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Source Han Sans SC", "PingFang SC", sans-serif;
}

body {
  position: relative;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.38;
  pointer-events: none;
}

.ambient--left {
  top: -4rem;
  left: -4rem;
  background: rgba(210, 186, 159, 0.4);
}

.ambient--right {
  right: -5rem;
  bottom: 16rem;
  background: rgba(175, 159, 137, 0.26);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.hero {
  padding: 18px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.92), rgba(252, 247, 240, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-shell {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.brand-lockup__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-company,
.brand-company-en {
  margin: 0;
  line-height: 1.2;
}

.brand-company {
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}

.brand-company-en {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.brand-note {
  color: rgba(91, 70, 54, 0.72);
  white-space: nowrap;
}

.hero__body {
  display: grid;
  gap: 20px;
}

.eyebrow,
.panel__index,
.summary-card__label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.hero__slogan {
  margin: 12px 0 0;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero__desc {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero__scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.scope-chip,
.meta-pill {
  padding: 9px 13px;
  border: 1px solid rgba(91, 70, 54, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
}

.hero__card {
  padding: 18px;
  border: 1px solid rgba(91, 70, 54, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.hero__card-label {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.hero__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero__value-strip span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(91, 70, 54, 0.06);
  color: var(--brand);
  font-size: 12px;
}

.guide-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.entry-form {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 20px 18px;
  border: 1px solid rgba(91, 70, 54, 0.08);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.panel--summary {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.panel__header {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.panel__header h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.35;
}

.panel__header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

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

.choice-card,
.tag {
  position: relative;
  appearance: none;
  border: 1px solid rgba(91, 70, 54, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.choice-card {
  min-height: 84px;
  padding: 16px 16px 18px;
  line-height: 1.5;
}

.tag {
  padding: 14px 16px;
  border-radius: 999px;
  line-height: 1.4;
}

.choice-card:hover,
.tag:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 70, 54, 0.24);
  box-shadow: 0 16px 26px rgba(52, 34, 20, 0.08);
}

.choice-card.is-active,
.tag.is-active {
  border-color: rgba(91, 70, 54, 0.28);
  background: linear-gradient(180deg, rgba(247, 239, 230, 0.98), rgba(238, 225, 211, 0.96));
  color: var(--brand);
  box-shadow: 0 16px 28px rgba(59, 39, 23, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.choice-card.is-active::after,
.tag.is-active::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 70, 54, 0.08);
}

.choice-card--other,
.tag--other {
  border-style: dashed;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(91, 70, 54, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(91, 70, 54, 0.3);
  box-shadow: 0 0 0 4px rgba(178, 135, 98, 0.12);
}

.field--hidden {
  display: none;
}

.field--full {
  grid-column: 1 / -1;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.field-error {
  min-height: 18px;
  margin: 6px 2px 0;
  color: var(--danger);
  font-size: 12px;
}

.field-error.is-visible {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--danger-soft);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: rgba(178, 75, 67, 0.5);
  box-shadow: 0 0 0 4px rgba(178, 75, 67, 0.1);
}

.upload-card {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed rgba(91, 70, 54, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.upload-card input {
  display: none;
}

.upload-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}

.upload-card__copy,
.upload-card__hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.upload-card__files {
  margin-top: 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.summary-card {
  display: grid;
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid rgba(91, 70, 54, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.96), rgba(246, 238, 228, 0.92));
  box-shadow: var(--shadow);
}

.summary-card h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-list p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.summary-list span {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.summary-list strong {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.submission-state {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.submission-state.is-success {
  border-color: rgba(53, 95, 69, 0.18);
  background: var(--success-soft);
}

.submission-state.is-error {
  border-color: rgba(178, 75, 67, 0.18);
  background: var(--danger-soft);
}

.submission-state__title,
.submission-state__desc {
  margin: 0;
}

.submission-state__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.submission-state__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.submit-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.primary-btn {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #4d3a2e, #3b2c22);
  color: #fbf8f4;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(45, 28, 14, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(45, 28, 14, 0.24);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  width: min(calc(100% - 28px), 520px);
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(33, 24, 18, 0.92);
  color: #fffaf6;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 720px) {
  .shell {
    padding-top: 34px;
  }

  .hero {
    padding: 26px 26px 28px;
  }

  .hero__body {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
  }

  .panel {
    padding: 24px;
  }

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

  .choice-grid,
  .tag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-note {
    white-space: normal;
  }
}
