/**
 * 診断コンテンツ用CSS
 * 読み込み: <link rel="stylesheet" href="/css/shindan.css">
 * プレフィックス: sd- （既存CSSと被らないように）
 */

/* ================================
   診断ボックス（全体コンテナ）
================================ */
.sd-box {
  background: #fff8e6;
  border: 2px solid #f0ad4e;
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0;
}

/* ================================
   質問文
================================ */
.sd-question {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

/* ================================
   選択ボタン群
================================ */
.sd-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sd-btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.sd-btn:hover {
  border-color: #336699;
  background: #f5f9ff;
}

.sd-btn.active {
  border-color: #336699;
  background: #336699;
  color: #fff;
}

.sd-btn strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.sd-btn span {
  font-size: 12px;
  color: #666;
}

.sd-btn.active span {
  color: rgba(255, 255, 255, 0.8);
}

/* ================================
   結果セクション
================================ */
.sd-result {
  animation: sdFadeIn 0.3s ease;
}

.sd-result[hidden] {
  display: none;
}

@keyframes sdFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   結果ボックス
================================ */
.sd-result-box {
  background: #f0f7ff;
  border: 2px solid #336699;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.sd-result-box.neutral {
  background: #f9f9f9;
  border-color: #ddd;
}

/* ================================
   判定結果
================================ */
.sd-verdict {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.sd-verdict strong {
  font-size: 18px;
  line-height: 1.4;
}

.sd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.sd-icon.go {
  background: #5cb85c;
  color: #fff;
}

.sd-icon.wait {
  background: #f0ad4e;
  color: #fff;
}

.sd-icon.alt {
  background: #336699;
  color: #fff;
}

.sd-reason {
  font-size: 14px;
  margin: 10px 0 0;
  padding-left: 48px;
}

/* ================================
   入力フィールド
================================ */
.sd-input {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: #fff;
  border-radius: 5px;
}

.sd-input label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

.sd-input input {
  width: 80px;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 5px;
}

.sd-input input:focus {
  outline: none;
  border-color: #336699;
}

/* ================================
   ハイライト表示
================================ */
.sd-highlight {
  background: #dff0d8;
  border: 1px solid #5cb85c;
  border-radius: 5px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
}

.sd-highlight-label {
  color: #3c763d;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

.sd-highlight-value {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* ================================
   CTAボタン
================================ */
.sd-cta {
  display: inline-block;
  padding: 15px 30px;
  background: #d9534f;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.sd-cta:hover {
  background: #c9302c;
  text-decoration: none;
  color: #fff;
}

.sd-reset {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
}

.sd-reset:hover {
  background: #f5f5f5;
}

.sd-reset[hidden] {
  display: none;
}

/* ================================
   警告ボックス
================================ */
.sd-warning {
  background: #fcf8e3;
  border: 1px solid #faebcc;
  border-left: 4px solid #f0ad4e;
  padding: 15px;
  margin: 20px 0;
  font-size: 13px;
}

.sd-warning strong {
  color: #8a6d3b;
}

.sd-warning p {
  margin: 0;
}

/* ================================
   情報ボックス
================================ */
.sd-info {
  background: #d9edf7;
  border: 1px solid #bce8f1;
  border-left: 4px solid #5bc0de;
  padding: 15px;
  margin: 20px 0;
  font-size: 13px;
}

.sd-info p {
  margin: 0;
}

/* ================================
   レスポンシブ
================================ */
@media (max-width: 600px) {
  .sd-box {
    padding: 15px;
  }

  .sd-btn {
    padding: 12px 15px;
  }

  .sd-btn strong {
    font-size: 14px;
  }

  .sd-verdict strong {
    font-size: 16px;
  }

  .sd-reason {
    padding-left: 0;
    margin-top: 10px;
  }

  .sd-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}