.omatomeloan-simulator {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.omatomeloan-section {
  background: #f8fdf9;
  border: 2px solid #a8d5ba;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.omatomeloan-section-title {
  font-size: 20px;
  font-weight: bold;
  color: #2d7a4f;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #7bc8a4;
}

.omatomeloan-input-group {
  background: white;
  border: 1px solid #c8e6d5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.omatomeloan-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.omatomeloan-input-field {
  flex: 1;
  min-width: 150px;
}

.omatomeloan-input-field label {
  display: block;
  font-size: 13px;
  color: #2d7a4f;
  margin-bottom: 4px;
  font-weight: 600;
}

.omatomeloan-input-field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #c8e6d5;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.omatomeloan-input-field input:focus {
  outline: none;
  border-color: #5fb383;
}

.omatomeloan-input-field input::placeholder {
  color: #b0b0b0;
  opacity: 0.6;
}

.omatomeloan-btn-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffebee;
  color: #c62828;
  border: none;
  border-radius: 4px;
  padding: 2px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.omatomeloan-btn-remove:hover {
  background: #ffcdd2;
}

.omatomeloan-btn-add {
  background: #e8f5e9;
  color: #2d7a4f;
  border: 2px dashed #a8d5ba;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
}

.omatomeloan-btn-add:hover {
  background: #c8e6d5;
  border-color: #7bc8a4;
}

.omatomeloan-summary {
  background: #e8f5e9;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.omatomeloan-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
}

.omatomeloan-summary-label {
  color: #2d7a4f;
  font-weight: 600;
}

.omatomeloan-summary-value {
  color: #1b5e20;
  font-weight: bold;
  font-size: 16px;
}

.omatomeloan-slider-container {
  margin-bottom: 16px;
}

.omatomeloan-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #2d7a4f;
  font-weight: 600;
}

.omatomeloan-slider-value {
  font-size: 18px;
  color: #1b5e20;
  font-weight: bold;
}

.omatomeloan-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #a8d5ba, #7bc8a4);
  outline: none;
  -webkit-appearance: none;
}

.omatomeloan-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2d7a4f;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.omatomeloan-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2d7a4f;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.omatomeloan-hint {
  font-size: 12px;
  color: #558b6e;
  margin-top: 4px;
  font-style: italic;
}

.omatomeloan-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.omatomeloan-btn-reset {
  flex: 1;
  background: white;
  color: #2d7a4f;
  border: 2px solid #a8d5ba;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.omatomeloan-btn-reset:hover {
  background: #e8f5e9;
  border-color: #7bc8a4;
}

.omatomeloan-btn-simulate {
  flex: 2;
  background: linear-gradient(135deg, #5fb383, #2d7a4f);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(45, 122, 79, 0.3);
}

.omatomeloan-btn-simulate:hover {
  background: linear-gradient(135deg, #4a9970, #1b5e20);
  box-shadow: 0 6px 8px rgba(45, 122, 79, 0.4);
  transform: translateY(-2px);
}

.omatomeloan-results {
  display: none;
}

.omatomeloan-results.show {
  display: block;
}

.omatomeloan-result-card {
  background: white;
  border: 2px solid #c8e6d5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}

.omatomeloan-result-card.recommended {
  border-color: #5fb383;
  box-shadow: 0 4px 12px rgba(95, 179, 131, 0.2);
}

.omatomeloan-result-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  color: #4e342e;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.omatomeloan-result-title {
  font-size: 18px;
  font-weight: bold;
  color: #2d7a4f;
  margin-bottom: 16px;
}

.omatomeloan-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.omatomeloan-result-item {
  background: #f8fdf9;
  padding: 12px;
  border-radius: 8px;
}

.omatomeloan-result-label {
  font-size: 13px;
  color: #558b6e;
  margin-bottom: 4px;
}

.omatomeloan-result-value {
  font-size: 20px;
  font-weight: bold;
  color: #1b5e20;
}

.omatomeloan-result-diff {
  font-size: 13px;
  margin-top: 4px;
  font-weight: 600;
}

.omatomeloan-result-diff.positive {
  color: #c62828;
}

.omatomeloan-result-diff.negative {
  color: #2d7a4f;
  font-weight: 700; /* 太字にして強調 */
}

/* おすすめカード内の削減表示をさらに強調 */
.omatomeloan-result-card.recommended .omatomeloan-result-diff.negative {
  color: #1b5e20;
  font-weight: 800;
  font-size: 14px; /* 少し大きく */
}

.omatomeloan-warning {
  background: #fff3e0;
  border: 2px solid #ffb74d;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  color: #e65100;
  font-size: 14px;
  font-weight: 600;
}

.omatomeloan-warning::before {
  content: "?? ";
}

.omatomeloan-disclaimer {
  background: #fff9e6;
  border-left: 4px solid #ffb300;
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 20px;
  color: #856404;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .omatomeloan-input-row {
    flex-direction: column;
  }
  
  .omatomeloan-result-grid {
    grid-template-columns: 1fr;
  }
  
  .omatomeloan-btn-group {
    flex-direction: column;
  }
}
</style>