.ai-advice-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 2em;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.ai-advice-form {
  text-align: center;
}

.ai-advice-form input[type="file"],
.ai-advice-form input[type="submit"] {
  display: block;
  margin: 1em auto;
  padding: 0.8em 1.2em;
  font-size: 1em;
  border-radius: 8px;
  border: none;
  background: linear-gradient(to right, #4a90e2, #007aff);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.ai-advice-form input[type="submit"]:hover {
  background: linear-gradient(to right, #007aff, #4a90e2);
}

.ai-advice-preview {
  margin-top: 2em;
  text-align: center;
}

.uploaded-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#ai-comment-display {
  all: unset; /* ← すべてのデフォルトスタイルをリセット */
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  white-space: pre-wrap;
  font-size: 1em;
  line-height: 1.6;
  margin: 0 auto;
  display: block;
  max-width: 800px;
  text-align: center;
}

.ai-advice-page {
  background: url('https://binarykenkyujo.com/wp-content/uploads/2025/06/93ee3b3125c8b587a42f954c419672fa.jpg') no-repeat center center fixed;
  background-size: cover;
}

.diagnosis-button {
  display: block;
  margin: 1em auto;
  padding: 0.8em 1.2em;
  font-size: 1em;
  border-radius: 8px;
  border: none;
  background: linear-gradient(to right, #4a90e2, #007aff);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 #005f99, 0 6px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  top: 0;
}

.diagnosis-button:hover {
  background: linear-gradient(to right, #007aff, #4a90e2);
}

.diagnosis-button:active {
  top: 2px;
  box-shadow: 0 2px 0 #005f99, 0 3px 6px rgba(0, 0, 0, 0.2);
}

.ai-diagnosis-status {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
  text-align: center;
  font-size: 1.1em;
  font-weight: 500;
  margin-top: 1.5em;
}

.c-pageTitle {
  width: 100%;
  display: block;
  text-align: center !important;
}

.ai-advice-page .c-pageTitle__inner {
  display: inline-block;
  margin: 0 auto;
  color: #aee6ff;
  font-weight: bold;
  font-size: 2rem;
  text-shadow:
    0 0 5px rgba(0, 170, 255, 0.8),
    0 0 10px rgba(0, 170, 255, 0.6),
    0 0 20px rgba(0, 170, 255, 0.4);
}

@media screen and (max-width: 768px) {
  .ai-advice-form {
    width: 90%;
    padding: 1em;
    box-sizing: border-box;
  }

  .diagnosis-button,
  .ai-advice-form input[type="submit"],
  .ai-advice-form input[type="file"] {
    width: 100%;
    font-size: 1em;
    padding: 1em;
    box-sizing: border-box;
  }

  .ai-diagnosis-status,
  #ticket-zero-warning,
  #ai-comment-display {
    font-size: 1em;
    text-align: center;
    padding: 1em;
  }

  .uploaded-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
  }

  .c-pageTitle__inner {
    font-size: 1.5rem;
  }
}
