/* debt-solution-simulator/css/style.css */

.debt-simulator-container {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 25px;
  border-radius: 10px;
  max-width: 750px;
  margin: 30px auto;
  /*font-family: "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;*/
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  line-height: 1.7;
  color: #333;
}

.debt-simulator-container h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 1.8em;
  font-weight: 600;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  display: inline-block;
  width: 100%; /* 中央寄せのために追加 */
}

.debt-simulator-container p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.05em;
}

.input-section {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 18px;
}

.input-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #444;
  font-size: 1em;
}

.input-section input[type="number"],
.input-section select {
  width: calc(100% - 24px); /* パディングとボーダーを考慮 */
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box; /* パディングが幅を広げないように */
  font-size: 1em;
  color: #555;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-section input[type="number"]:focus,
.input-section select:focus {
  border-color: #3498db;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
  outline: none;
}

.input-section button {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #3498db; /* 青系 */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.input-section button:hover {
  background-color: #2980b9; /* 少し濃い青 */
  transform: translateY(-2px);
}

.input-section button:active {
  transform: translateY(0);
}

.result-section {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px dashed #dcdcdc;
}

.result-section .initial-message {
  text-align: center;
  color: #888;
  font-style: italic;
  font-size: 1em;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.solution-card {
  background-color: #ecf0f1; /* 明るいグレー */
  border: 1px solid #bdc3c7;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.solution-card h3 {
  color: #2c3e50; /* 濃いグレー */
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
  font-weight: 600;
}

.solution-card p {
  margin-bottom: 10px;
  text-align: left;
  color: #333;
  font-size: 0.95em;
}

.solution-card p strong {
  color: #000;
}

.solution-card .reason-points {
  background-color: #f9f9f9;
  border-left: 4px solid #3498db; /* 青 */
  padding: 15px 20px;
  margin-top: 18px;
  font-size: 0.9em;
  line-height: 1.6;
  color: #555;
  border-radius: 4px;
}

.disclaimer {
  background-color: #fff8e1; /* 淡い黄色 */
  border: 1px solid #ffe0b2;
  padding: 20px;
  margin-top: 35px;
  border-radius: 8px;
  color: #a07d2c; /* 濃い黄色 */
  font-size: 0.85em;
  line-height: 1.6;
  text-align: left; /* 左寄せ */
}

.disclaimer h4 {
  color: #a07d2c;
  margin-top: 0;
  margin-bottom: 12px;
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
}

.disclaimer p {
  text-align: left; /* 左寄せ */
  margin-bottom: 8px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .debt-simulator-container {
    padding: 15px;
    margin: 20px auto;
  }

  .debt-simulator-container h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .input-section input[type="number"],
  .input-section select,
  .input-section button {
    font-size: 0.95em;
    padding: 10px;
  }

  .solution-card h3 {
    font-size: 1.2em;
  }

  .solution-card p,
  .solution-card .reason-points,
  .disclaimer p {
    font-size: 0.85em;
  }

  .disclaimer h4 {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .debt-simulator-container {
    border-radius: 0; /* 小さい画面では角丸をなくす */
    margin: 0;
    padding: 10px;
    box-shadow: none;
  }
}
