/* === 連動プルダウン（form-select-4） === */

/* 複数パターンのため縦並びに上書き */
.demo-container {
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
}

/* パターン共通 */
.fs4-pattern {
  max-width: 520px;
  margin-bottom: 32px;
}
.fs4-pattern:last-of-type {
  margin-bottom: 0;
}
.fs4-pattern-label {
  font-size: 12px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

/* セレクトの並び */
.fs4-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fs4-select {
  min-width: 160px;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  border: 1.5px solid #D0D7E0;
  border-radius: 8px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fs4-select:focus {
  border-color: #2B7FE8;
  box-shadow: 0 0 0 3px rgba(43, 127, 232, 0.12);
}
.fs4-select:disabled {
  background: #F4F6F9;
  color: #9AA5B4;
  cursor: not-allowed;
}

/* 決定ボタン */
.fs4-submit-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #2B7FE8;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.fs4-submit-btn:hover {
  background: #1a6fd1;
}

/* 結果エリア */
.fs4-result {
  margin-top: 14px;
}
.fs4-result.has-value {
  padding: 12px 16px;
  border: 1.5px solid #D0D7E0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}
.fs4-result.has-error {
  font-size: 13px;
  color: #E65100;
  padding: 4px 0;
}

/* リセットボタン */
.demo-controls {
  margin-top: 12px;
}
.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}
.reset-btn:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}

/* AI用プロンプトの複数ブロック */
.prompt-block {
  margin-bottom: 20px;
}
.prompt-block:last-child {
  margin-bottom: 0;
}
.prompt-block-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.04em;
}

/* スマホ対応 */
@media (max-width: 480px) {
  .fs4-select {
    min-width: 0;
    flex: 1 1 100%;
  }
  .fs4-submit-btn {
    width: 100%;
  }
}
