/* ==========================================================================
   lifestyle-bot.css - 夫婦の本音＆暮らしAIヒアリング・家づくりカルテUI
   ========================================================================== */

.lifestyle-interview-container {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
}

.lifestyle-header {
  background: linear-gradient(135deg, #091e2f 0%, #064e3b 50%, #0f172a 100%);
  color: #ffffff;
  padding: 2rem 2rem 1.6rem;
  border-bottom: 3px solid #f59e0b;
}

.lifestyle-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.lifestyle-header-title {
  font-size: 1.85rem;
  line-height: 1.35;
  margin: 0 0 0.6rem;
  color: #ffffff;
}

.lifestyle-header-desc {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
}

/* プログレスバー */
.lifestyle-progress-bar-wrap {
  background: #f1f5f9;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lifestyle-progress-track {
  flex: 1;
  height: 10px;
  background: #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.lifestyle-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #0284c7);
  width: 0%;
  transition: width 0.3s ease;
}

.lifestyle-progress-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: #475569;
  min-width: 60px;
  text-align: right;
}

/* フェーズ＆質問コンテンツエリア */
.lifestyle-body {
  padding: 2.2rem 2rem;
  background: #fafaf9;
  min-height: 480px;
}

.lifestyle-step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lifestyle-card-group {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.lifestyle-question-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.lifestyle-question-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.lifestyle-question-hint {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* 建築士の知恵袋・目からウロコTipボックス */
.lifestyle-protip-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #10b981;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

.lifestyle-protip-title {
  font-weight: 800;
  color: #166534;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.lifestyle-protip-text {
  color: #15803d;
  margin: 0;
}

/* LINE共有＆パートナー招待バナー */
.lifestyle-line-invite-bar {
  background: linear-gradient(135deg, #06c755 0%, #05a847 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.9rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.2);
}

.lifestyle-line-btn {
  background: #ffffff;
  color: #06c755;
  border: none;
  font-weight: 800;
  padding: 0.55rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
}

.lifestyle-line-btn:hover {
  background: #f0fdf4;
}

/* オプションボタンのグリッド */
.lifestyle-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.lifestyle-option-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lifestyle-option-btn:hover {
  background: #f0fdf4;
  border-color: #34d399;
  transform: translateY(-2px);
}

.lifestyle-option-btn.selected {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.lifestyle-option-label {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.lifestyle-option-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

/* 自由記入入力 */
.lifestyle-input-text {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-top: 0.8rem;
  box-sizing: border-box;
}

.lifestyle-input-text:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* フッター・ナビボタン */
.lifestyle-footer {
  padding: 1.2rem 2rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lifestyle-btn-back {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.lifestyle-btn-next {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   処方箋・家づくりカルテ（出力画面）
   ========================================================================== */
.lifestyle-carte-wrap {
  background: #ffffff;
  border: 2px solid #10b981;
  border-radius: 14px;
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.lifestyle-carte-header {
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.lifestyle-carte-title {
  font-size: 1.6rem;
  color: #064e3b;
  margin: 0;
  font-weight: 900;
}

/* 融合案・妥協案のハイライトカード */
.lifestyle-fusion-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.8rem;
}

.lifestyle-fusion-badge {
  background: #b45309;
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.lifestyle-fusion-item {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 0.8rem;
}

/* 空間パーツイメージギャラリー */
.lifestyle-parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.lifestyle-part-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.lifestyle-part-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #e2e8f0;
}

.lifestyle-part-content {
  padding: 1rem;
}

.lifestyle-part-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.lifestyle-part-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 640px) {
  .lifestyle-header {
    padding: 1.5rem 1.2rem;
  }
  .lifestyle-header-title {
    font-size: 1.45rem;
  }
  .lifestyle-body {
    padding: 1.4rem 1rem;
  }
  .lifestyle-options-grid {
    grid-template-columns: 1fr;
  }
  .lifestyle-footer {
    padding: 1rem;
  }
}
