:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.2);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.45);
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;

  /* ★ 最奥背景を黒に（集計ページと同じ思想） */
  background: #020617;
  background-color: #020617;

  color: var(--text-main);
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}

.app-shell {
  width: 100%;
  max-width: 560px;
}

.card {
  background: linear-gradient(135deg, #020617, #020617 35%, #0b1120);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 18px 18px 22px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -120px;
  opacity: 0.18;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.4), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(129, 140, 248, 0.4), transparent 55%);
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 48px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.brand-text-main {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.brand-text-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.lang-select-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  padding: 3px 8px 3px 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  max-width: 48%;
  justify-content: space-between;
}

.lang-select-wrap span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 12px;
  padding: 3px 4px;
  outline: none;
  cursor: pointer;
  max-width: 70%;
}

main {
  margin-top: 8px;
}

h1 {
  font-size: 18px;
  margin: 0;
  margin-bottom: 4px;
}

.tsc-image-01,
.tsc-image-02,
.tsc-image-03 {
  margin: 8px 0 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #020617;
}

.tsc-image-01 img,
.tsc-image-02 img,
.tsc-image-03 img {
  display: block;
  width: 100%;
  height: auto;
}

.subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.notice {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.notice--mb10 {
  margin-bottom: 10px;
}

.notice-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.9);
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.question {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.8), #020617);
  border-radius: var(--radius-lg);
  padding: 12px 12px 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.question-title {
  font-size: 13px;
  font-weight: 600;
}

.badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
  white-space: nowrap;
}

.helper {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.45;
}

.helper--mt8 {
  margin-top: 8px;
}

.field {
  position: relative;
  margin-top: 4px;
}

input[type="text"] {
  width: 100%;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 13px;
}

input[type="text"]::placeholder {
  color: #6b7280;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid transparent;
  font-size: 12px;
  color: var(--text-main);
}

.option-label input {
  accent-color: var(--accent);
}

.option-label:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.95);
}

.option-code {
  font-size: 11px;
  color: var(--accent);
  min-width: 20px;
}

.submit-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

button[type="submit"] {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  background: radial-gradient(circle at top left, #38bdf8, #4f46e5);
  color: #0b1120;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.7);
}

button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.6);
}

button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.error {
  color: var(--danger);
  font-size: 11px;
  margin-top: 2px;
}

.form-error {
  text-align: center;
}

.success-box {
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.5);
  background: radial-gradient(circle at top left, rgba(22, 163, 74, 0.35), #022c22);
  font-size: 11px;
  color: #bbf7d0;
}

footer {
  margin-top: 10px;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
}

.link-card {
  margin: 10px 0 16px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.8), #020617);
}

.link-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.65);
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
}

.link-btn:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(2, 6, 23, 0.8);
}

@media (min-width: 640px) {
  .card {
    padding: 20px 22px 24px;
  }
}
