* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  background: #f5f5f5;
  color: #222;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Yu Gothic",
    YuGothic,
    Arial,
    sans-serif;
}

button,
input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.service-name {
  margin-bottom: 12px;
  color: #555;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
}

.card {
  padding: 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 4px 18px
    rgba(0, 0, 0, 0.08);
}

.question-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  border-radius: 12px;
  object-fit: contain;
}

.question-text {
  margin: 0 0 24px;
  color: #222;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.7;
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.choice-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.choice-button {
  width: 100%;
  padding: 16px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.choice-button.selected {
  border-color: #222;
  background: #f1f1f1;
  font-weight: bold;
}

.text-answer {
  width: 100%;
  margin-bottom: 20px;
  padding: 16px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  color: #222;
  font-size: 16px;
}

.text-answer:focus {
  border-color: #222;
  outline: none;
}

.submit-button,
.retry-button,
.close-button,
.redirect-button {
  display: block;
  width: 100%;
  padding: 17px;
  background: #222;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deadline {
  margin-top: 28px;
  color: #777;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.message {
  min-height: 20px;
  margin-top: 12px;
  color: #c00;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.result-heading {
  margin: 0 0 24px;
  padding: 0;
  color: #222;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.result-message {
  margin: 0 0 28px;
  padding: 0;
  color: #222;
  font-size: 17px;
  line-height: 1.9;
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.result-images {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.result-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.information-title {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.5;
  text-align: center;
}

.center-message {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.8;
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.publication-date {
  margin-bottom: 24px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.close-guide {
  display: none;
  margin-top: 16px;
  color: #777;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

.loading {
  padding: 40px 20px;
  text-align: center;
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .question-text {
    font-size: 19px;
  }

  .result-heading {
    font-size: 25px;
  }
}