/* --- シミュレーションページ専用 --- */

/* 導入文 */
.yws-lp-catch-copy {
  font-size: 1.08em;
  font-weight: 700;
}

.yws-lp-sub-copy {
  margin: 0;
  line-height: 1.85;
}

.yws-lp-city-num {
  font-weight: 800;
}

.lp-highlight-primary {
  color: #556b2f;
}

.lp-highlight-secondary {
  color: #3d4f5f;
  font-weight: 600;
}

/* フォーム直上ステップ */
.yws-simulation-form-steps {
  margin: 0 0 1.25em;
}

.yws-simulation-form-step {
  font-size: .9em;
  padding: 2px;
}

.yws-simulation-form-step:last-child {
  margin-bottom: 0;
}

.yws-step {
  display: inline-block;
  line-height: 1.8;
  margin-right: 0.75em;
  padding: 0 0.75em;
  border-radius: 4px;
  background: #556b2f;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: baseline;
}

.yws-simulation-page .yws-filter-submit--simulation {
  min-height: 52px;
  padding: 0 1.75em;
  font-size: 1.05em;
}

/* 検索事例カード */
.yws-simulation-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0.5em;
}

.yws-simulation-preset-card {
  position: relative;
  display: block;
  padding: 1.15em 1.2em 2.65em;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none!important;
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.yws-simulation-preset-card.has-badge .yws-simulation-preset-card__inner {
  padding-right: 0;
}

.yws-simulation-preset-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5em 0.85em;
  align-items: start;
}

.yws-simulation-preset-card__badge {
  display: inline-block;
  justify-self: end;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.yws-simulation-preset-card__badge.is-popular {
  background: #fdf3d7;
  color: #9a7618;
  border: 1px solid #e8d49a;
}

.yws-simulation-preset-card__badge.is-investment {
  background: #eef3e6;
  color: #465a27;
  border: 1px solid #c5d4a8;
}

.yws-simulation-preset-card__badge.is-living {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.yws-simulation-preset-card__badge.is-regional {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.yws-simulation-preset-card__apply {
  position: absolute;
  right: 1.15em;
  bottom: 0.9em;
  font-size: 0.92em;
  font-weight: 700;
  color: #556b2f;
  line-height: 1.4;
  opacity: .5;
}

.yws-simulation-preset-card:hover .yws-simulation-preset-card__apply {
  text-decoration: underline;
  opacity: 1;
}

.yws-simulation-preset-card:hover {
  border-color: #cfd8e3;
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
  background-color: #f6f7f8;
}

.yws-simulation-preset-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 1em 1.15em;
}

.yws-simulation-preset-card__icon {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
}

.yws-simulation-preset-card__icon img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.yws-simulation-preset-card__body {
  flex: 1;
  min-width: 0;
}

.yws-simulation-preset-card__title {
  display: flex;
  align-items: flex-start;
  gap: 0.45em;
  margin: 0 !important;
  font-size: 1.08em;
  line-height: 1.5;
  font-weight: 700;
  border: none !important;
}

.yws-simulation-preset-card__search-icon {
  flex: 0 0 auto;
  margin-top: 0.15em;
  color: #556b2f;
}

.yws-simulation-preset-card__summary {
  margin: 0;
  font-size: .9em;
  color: #444;
}

/* ランキングスライダー（トップと共通） */
.yws-simulation-rankings .yws-top-rankings-slider {
  margin-top: 0.25em;
}

/* プレビュー表 */
.yws-simulation-preview-table-wrap {
  overflow-x: auto;
  margin-top: 0.5em;
}

.yws-simulation-preview-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92em;
}

.yws-simulation-preview-table th,
.yws-simulation-preview-table td {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

.yws-simulation-preview-table thead th {
  background: #f7f7f7;
  font-weight: 700;
  white-space: nowrap;
}

.yws-simulation-preview-table tbody th {
  font-weight: 700;
  background: #fff;
}

.yws-simulation-preview-table tbody tr:nth-child(even) td,
.yws-simulation-preview-table tbody tr:nth-child(even) th[scope="row"] {
  background: #fafbfc;
}

/* 指標・スコア解説 */
.yws-simulation-related-guides__group + .yws-simulation-related-guides__group {
  margin-top: 1.5em;
}

.yws-simulation-related-guides__group h3 {
  margin: 0 0 0.5em;
  font-size: 1.02em;
}

@media (max-width: 960px) {
  .yws-simulation-preset-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .yws-simulation-preset-card__head {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.45em;
  }

  .yws-simulation-preset-card__badge {
    justify-self: auto;
  }

  .yws-simulation-preset-card__icon {
    flex-basis: 100px;
    width: 100px;
    height: 100px;
  }

  .yws-simulation-preset-card__icon img {
    width: 100px;
    height: 100px;
  }
}
