.totonoeru-shindan-wrap * {
  box-sizing: border-box;
}

.totonoeru-shindan-wrap {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #333;
  padding: 32px 16px;
}

.totonoeru-shindan-wrap h1 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #2c2c2c;
}

.totonoeru-shindan-wrap .subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 32px;
}

.totonoeru-shindan-wrap .section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.totonoeru-shindan-wrap .section-title {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: #6b8f71;
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.totonoeru-shindan-wrap .section-title.joho    { background: #7a9cbf; }
.totonoeru-shindan-wrap .section-title.hataraki { background: #bf9a7a; }
.totonoeru-shindan-wrap .section-title.kokoro  { background: #a07abf; }
.totonoeru-shindan-wrap .section-title.kodo    { background: #7abf9a; }

.totonoeru-shindan-wrap .question {
  margin-bottom: 20px;
}

.totonoeru-shindan-wrap .question:last-child {
  margin-bottom: 0;
}

.totonoeru-shindan-wrap .question-text {
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.totonoeru-shindan-wrap .options {
  display: flex;
  gap: 8px;
}

.totonoeru-shindan-wrap .option {
  flex: 1;
}

.totonoeru-shindan-wrap .option input[type="radio"] {
  display: none;
}

.totonoeru-shindan-wrap .option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.72rem;
  color: #666;
  text-align: center;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.totonoeru-shindan-wrap .option label .score {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.totonoeru-shindan-wrap .option input[type="radio"]:checked + label {
  background: #e8f0e9;
  border-color: #6b8f71;
  color: #3a5f40;
}

.totonoeru-shindan-wrap .option input[type="radio"]:checked + label .score {
  color: #3a5f40;
}

.totonoeru-shindan-wrap .joho   .option input[type="radio"]:checked + label { background: #e0ecf5; border-color: #7a9cbf; color: #2a5a80; }
.totonoeru-shindan-wrap .joho   .option input[type="radio"]:checked + label .score { color: #2a5a80; }

.totonoeru-shindan-wrap .hataraki .option input[type="radio"]:checked + label { background: #f5ede0; border-color: #bf9a7a; color: #7a4a20; }
.totonoeru-shindan-wrap .hataraki .option input[type="radio"]:checked + label .score { color: #7a4a20; }

.totonoeru-shindan-wrap .kokoro .option input[type="radio"]:checked + label { background: #f0e0f5; border-color: #a07abf; color: #5a2a7a; }
.totonoeru-shindan-wrap .kokoro .option input[type="radio"]:checked + label .score { color: #5a2a7a; }

.totonoeru-shindan-wrap .kodo   .option input[type="radio"]:checked + label { background: #e0f5ea; border-color: #7abf9a; color: #2a7a4a; }
.totonoeru-shindan-wrap .kodo   .option input[type="radio"]:checked + label .score { color: #2a7a4a; }

.totonoeru-shindan-wrap .option label:hover {
  background: #f5f5f5;
}

.totonoeru-shindan-wrap .scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #aaa;
  margin-top: 2px;
  padding: 0 2px;
}

@media (max-width: 480px) {
  .totonoeru-shindan-wrap .option label {
    font-size: 0.65rem;
    padding: 6px 2px;
  }
  .totonoeru-shindan-wrap .option label .score {
    font-size: 1rem;
  }
}

.totonoeru-shindan-wrap .submit-area {
  text-align: center;
  margin: 8px 0 32px;
}

.totonoeru-shindan-wrap .btn-result {
  background: #4a7a52;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

.totonoeru-shindan-wrap .btn-result:hover {
  background: #3a6040;
}

.totonoeru-shindan-wrap .error-msg {
  color: #c0392b;
  font-size: 0.9rem;
  margin-top: 12px;
}

.totonoeru-shindan-wrap .result-area {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: none;
}

.totonoeru-shindan-wrap .result-area h2 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #2c2c2c;
}

.totonoeru-shindan-wrap .result-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.totonoeru-shindan-wrap .result-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  border-radius: 16px;
  padding: 3px 14px;
  min-width: 64px;
  text-align: center;
}

.totonoeru-shindan-wrap .result-label.joho    { background: #7a9cbf; }
.totonoeru-shindan-wrap .result-label.hataraki { background: #bf9a7a; }
.totonoeru-shindan-wrap .result-label.kokoro  { background: #a07abf; }
.totonoeru-shindan-wrap .result-label.kodo    { background: #7abf9a; }

.totonoeru-shindan-wrap .result-bar-wrap {
  flex: 1;
  background: #eee;
  border-radius: 8px;
  height: 18px;
  overflow: hidden;
}

.totonoeru-shindan-wrap .result-bar {
  height: 100%;
  border-radius: 8px;
  transition: width 0.4s ease;
}

.totonoeru-shindan-wrap .result-bar.joho    { background: #7a9cbf; }
.totonoeru-shindan-wrap .result-bar.hataraki { background: #bf9a7a; }
.totonoeru-shindan-wrap .result-bar.kokoro  { background: #a07abf; }
.totonoeru-shindan-wrap .result-bar.kodo    { background: #7abf9a; }

.totonoeru-shindan-wrap .result-score {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  min-width: 40px;
  text-align: right;
}

.totonoeru-shindan-wrap .result-summary {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  background: #f5f3ee;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.totonoeru-shindan-wrap .high-items-section {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f9f7f3;
  border-radius: 8px;
}

.totonoeru-shindan-wrap .high-items-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #666;
  margin-bottom: 8px;
}

.totonoeru-shindan-wrap .high-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.totonoeru-shindan-wrap .high-items-list li {
  font-size: 0.88rem;
  color: #444;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.totonoeru-shindan-wrap .high-items-list li:last-child {
  border-bottom: none;
}

.totonoeru-shindan-wrap .free-text-section {
  margin-top: 24px;
}

.totonoeru-shindan-wrap .free-text-label {
  display: block;
  font-size: 0.95rem;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 10px;
  line-height: 1.5;
}

.totonoeru-shindan-wrap .free-text-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  color: #333;
  background: #fafafa;
  outline: none;
  transition: border-color 0.15s;
}

.totonoeru-shindan-wrap .free-text-input:focus {
  border-color: #6b8f71;
  background: #fff;
}

.totonoeru-shindan-wrap .ai-btn-area {
  text-align: center;
  margin-top: 16px;
}

.totonoeru-shindan-wrap .btn-ai {
  background: #4a5a8a;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 40px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

.totonoeru-shindan-wrap .btn-ai:hover {
  background: #3a4a7a;
}

.totonoeru-shindan-wrap .btn-ai:disabled {
  background: #999;
  cursor: not-allowed;
}

.totonoeru-shindan-wrap .ai-limit-msg {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #c0392b;
  text-align: center;
  display: none;
}

.totonoeru-shindan-wrap .ai-comment-area {
  margin-top: 24px;
  padding: 16px;
  background: #f0f4ff;
  border-radius: 8px;
  border-left: 3px solid #4a5a8a;
  display: none;
}

.totonoeru-shindan-wrap .ai-comment-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #4a5a8a;
  margin-bottom: 8px;
}

.totonoeru-shindan-wrap .ai-comment-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
}

.totonoeru-shindan-wrap .consult-area {
  margin-top: 28px;
  padding: 20px 20px 24px;
  background: #fdf8f0;
  border-radius: 12px;
  border: 1px solid #e8dfc8;
  display: none;
}

.totonoeru-shindan-wrap .consult-text {
  font-size: 0.93rem;
  line-height: 1.85;
  color: #444;
  margin: 0 0 20px;
}

.totonoeru-shindan-wrap .consult-btn-area {
  text-align: center;
}

.totonoeru-shindan-wrap .btn-consult {
  display: inline-block;
  background: #b07a3a;
  color: #fff;
  text-decoration: none;
  border-radius: 24px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.15s;
}

.totonoeru-shindan-wrap .btn-consult:hover {
  background: #8f5e20;
  color: #fff;
}

.totonoeru-shindan-wrap .consult-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #888;
}
