@charset "UTF-8";

/* --- 一覧画面専用スタイル --- */

/* グループ見出し（h2）を h1（1.1rem）と同じサイズにする調整 */
h2.group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #212529;
  border-bottom: 2px solid #1c7ed6;
  padding-bottom: 6px;
  margin: 28px auto 16px;
  max-width: 1000px;
}

/* 新規作成セクション */
.create-section {
  max-width: 1000px;
  margin: 0 auto 32px;
  padding: 0 20px;
}
.create-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* 【主要CTA】新しい間取りを作るボタン */
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #228be6, #155cb0);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(28, 126, 214, 0.35);
  transition: all 0.25s ease;
  border: none;
}
.btn-primary-lg:hover {
  background: linear-gradient(135deg, #1c7ed6, #10488a);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(28, 126, 214, 0.45);
}

/* サブ用ボタン（インポート等） */
.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #495057;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1.5px solid #ced4da;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-secondary-lg:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}

/* 再編集セクション */
.edit-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 検索結果件数表示バー */
.result-count-bar {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 12px;
  text-align: right;
}
.result-count-bar strong {
  color: #212529;
}

/* フィルター・ツールバー */
.filter-toolbar {
  margin-bottom: 20px;
}
.filter-card {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #495057;
}
.form-control {
  padding: 6px 10px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}
.form-control:focus {
  border-color: #1c7ed6;
}

/* タイル型グリッド */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* 間取りカード */
.plan-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.card-thumb-wrap {
  width: 100%;
  height: 180px;
  background: #f1f3f5;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f3f5;
}
.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* タイトルと編集ボタンのヘッダーエリア */
.plan-title-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a252c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
/* タイトル横の名称編集ボタン */
.btn-rename {
  background: transparent;
  border: none;
  color: #adb5bd;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.plan-card:hover .btn-rename {
  color: #6c757d;
}
.btn-rename:hover {
  background: #e9ecef;
  color: #1c7ed6 !important;
}

/* スペックリスト（建坪・延床・階数・部屋数） */
.spec-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  margin-bottom: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
}
.spec-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #edf2f7;
}
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-label {
  color: #6c757d;
  width: 40%;
}
.spec-val {
  font-weight: 600;
  color: #212529;
  text-align: right;
}

/* 日付表示 */
.date-info {
  font-size: 0.75rem;
  color: #868e96;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed #e9ecef;
}

/* アクションボタン群 */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

/* 【カード内主要アクション】再編集ボタン */
.btn-edit-action {
  flex: 1;
  background: #1c7ed6;
  color: #ffffff;
  text-align: center;
  padding: 9px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(28, 126, 214, 0.2);
}
.btn-edit-action:hover {
  background: #155cb0;
}

/* エクスポートボタン */
.btn-export {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #ced4da;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.btn-export:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

/* 削除ボタン */
.btn-delete {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #ced4da;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.btn-delete:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

/* データが空の時の表示 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px dashed #ced4da;
  margin-top: 16px;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
}
.page-num {
  padding: 6px 12px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #1c7ed6;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}
.page-num.active {
  background: #1c7ed6;
  color: #fff;
  border-color: #1c7ed6;
}