/* FSI ブランドカラー：紺 #1a2845 / ゴールド #c9a961 / 白 #ffffff */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Meiryo", sans-serif;
  background: #f5f5f7;
  color: #1a2845;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.hero {
  background: linear-gradient(135deg, #1a2845 0%, #2a3855 100%);
  color: #fff;
  padding: 32px 24px 28px;
  text-align: center;
  border-bottom: 4px solid #c9a961;
}

.brand {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #c9a961;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 14px;
  margin: 0;
  opacity: 0.92;
  line-height: 1.7;
}

main {
  padding: 16px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(26, 40, 69, 0.06);
}

.qlabel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1a2845;
  margin-bottom: 6px;
}

.qnum {
  display: inline-block;
  background: #1a2845;
  color: #c9a961;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  min-width: 32px;
  text-align: center;
}

.qhint {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s ease;
}

.radio-group label:active {
  background: #f3f4f6;
}

.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #c9a961;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  margin: 0;
}

.radio-group input[type="radio"]:checked {
  background: #c9a961;
}

.radio-group input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.radio-group label:has(input:checked) {
  background: #fff8e8;
  border-color: #c9a961;
}

.sublabel {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  margin: 14px 0 6px 0;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #f9fafb;
  color: #1a2845;
  resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #c9a961;
  background: #fff;
}

.conditional {
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.conditional.visible {
  max-height: 300px;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #1a2845 0%, #2a3855 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(26, 40, 69, 0.25);
  transition: all 0.15s ease;
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(26, 40, 69, 0.25);
}

.submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.footnote {
  text-align: center;
  font-size: 11.5px;
  color: #9ca3af;
  margin: 18px 0 0 0;
  line-height: 1.6;
}

.success-screen,
.error-screen {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: 12px;
  margin: 24px 16px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #c9a961;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin: 0 auto 24px;
}

.error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin: 0 auto 24px;
}

.success-screen h2,
.error-screen h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1a2845;
}

.success-screen p,
.error-screen p {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 24px;
  line-height: 1.7;
}

.close-btn {
  padding: 14px 32px;
  background: #1a2845;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.close-btn:active {
  opacity: 0.85;
}

@media (max-width: 360px) {
  .hero h1 { font-size: 20px; }
  .lead { font-size: 13px; }
  .qlabel { font-size: 15px; }
  .radio-group label { font-size: 14px; padding: 12px 14px; }
}
