/* ==========================================
   学生プロフィール共有ツール - style.css
   スマホネイティブ風・高操作感・フルレスポンシブ
========================================== */

/* --- カラーテーマ定義 (CSSカスタムプロパティ) --- */
:root {
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --transition-speed: 0.25s;
  --bounce-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* テーマ1: インディゴブルー（誠実・知性） */
[data-theme="blue"] {
  --primary-color: #1a237e; /* RGB(26, 35, 126) */
  --primary-hover: #0d125a;
  --primary-light: rgba(26, 35, 126, 0.12);
  --accent-color: #f59e0b;
  --background-gradient: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-dark: #1a237e;
  --text-muted: #5c6bc0;
  --border-color: #c5cae9;
}

/* テーマ2: サクラピンク */
[data-theme="pink"] {
  --primary-color: #ff758f;
  --primary-hover: #ff4d6d;
  --primary-light: rgba(255, 117, 143, 0.15);
  --accent-color: #f72585;
  --background-gradient: linear-gradient(135deg, #ffe5ec 0%, #ffc2d1 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-dark: #2d0015;
  --text-muted: #805b75;
  --border-color: #f0c3d4;
}

/* テーマ3: ミントグリーン */
[data-theme="green"] {
  --primary-color: #2ec4b6;
  --primary-hover: #0f9f90;
  --primary-light: rgba(46, 196, 182, 0.15);
  --accent-color: #ff9f1c;
  --background-gradient: linear-gradient(135deg, #e6fcf5 0%, #c3fae8 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-dark: #0f2d2a;
  --text-muted: #517a75;
  --border-color: #b3e2dd;
}

/* テーマ4: ミッドナイトブラック */
[data-theme="black"] {
  --primary-color: #334155;
  --primary-hover: #1e293b;
  --primary-light: rgba(51, 65, 85, 0.15);
  --accent-color: #f59e0b;
  --background-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --card-bg: rgba(30, 41, 59, 0.95);
  --text-dark: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #475569;
  --input-bg: #1e293b;
}

/* --- 全般リセット・共通スタイル --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* タップ時のハイライト除去（スマホ最適化） */
}

body {
  font-family: var(--font-family);
  background: var(--background-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* アプリ全体レイアウト */
.app-container {
  width: 100%;
  max-width: 500px; /* スマホ向けに横幅を制限 */
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* ヘッダー */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background: var(--card-bg);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header .logo h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.header-logo-img {
  height: 28px; /* ツールヘッダーに調和するスタイリッシュサイズ */
  width: auto;
  object-fit: contain;
}

/* テーマセレクター */
.theme-selector {
  display: flex;
  gap: 8px;
}

.theme-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-speed) var(--bounce-easing);
}

.theme-dot:active {
  transform: scale(0.85);
}

.theme-dot.active {
  transform: scale(1.2);
  border-color: var(--text-dark);
}

/* メインコンテンツ */
.app-content {
  flex: 1;
}

/* --- カードレイアウト --- */
.card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--bounce-easing), box-shadow 0.3s ease;
}

.card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* --- 編集モードスタイル --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group label .required {
  color: #ff4d6d;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--input-bg, #fff);
  color: var(--text-dark);
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group textarea {
  resize: none;
}

/* 写真アップロードエリア */
.photo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.photo-upload-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* 写真追加ボタン */
.photo-add-btn {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: var(--input-bg, rgba(255, 255, 255, 0.5));
  transition: all var(--transition-speed);
  scroll-snap-align: start;
}

.photo-add-btn:active {
  transform: scale(0.95);
  background: var(--primary-light);
  border-color: var(--primary-color);
}

.photo-add-btn .add-icon {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: bold;
}

.photo-add-btn .add-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* プレビューリスト */
.photo-preview-list {
  display: flex;
  gap: 12px;
}

.preview-item {
  position: relative;
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  animation: slideIn 0.3s var(--bounce-easing);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .btn-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 0.7rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.preview-item .btn-remove:active {
  background: rgba(220, 53, 69, 0.9);
}

.help-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- ボタン類共通 --- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px; /* スマホで押しやすい親指サイズ */
  padding: 12px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) var(--bounce-easing);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 6px 16px var(--primary-light);
}

.btn-primary:active {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--primary-light);
  color: var(--primary-color);
}

.btn-accent {
  background: var(--text-dark);
  color: var(--card-bg);
}

.btn-outline {
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-dark);
}

.btn-icon {
  font-size: 1.15rem;
}

/* アクショングループ（縦並び・スマホで親指タップしやすい） */
.action-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* 読み込みセクションの区切り線 */
.import-container {
  margin-top: 24px;
  text-align: center;
}

.import-divider {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.import-divider::before,
.import-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.import-divider span {
  padding: 0 12px;
}

/* --- モードセクション切り替え --- */
.mode-section {
  display: none;
}

.mode-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* --- 閲覧モードスタイル --- */
.card-view {
  padding: 0; /* スライドショーをカードの上部いっぱいに広げるため */
  overflow: hidden;
}

/* スライドショー */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 320px;
  background: #f1f5f9;
  overflow: hidden;
}

.slides-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
}

.slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* デフォルトアバター (画像がない場合のCSSイラスト) */
.default-avatar-slide {
  width: 100%;
  height: 100%;
  background: var(--primary-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: var(--primary-color);
}

.default-avatar-slide .avatar-circle {
  width: 120px;
  height: 120px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.default-avatar-slide p {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0.7;
}

/* スライドナビ */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: background var(--transition-speed);
}

.slide-nav:active {
  background: rgba(255, 255, 255, 1);
}

.slide-nav.prev {
  left: 12px;
}

.slide-nav.next {
  right: 12px;
}

/* スライドインジケーター */
.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.dot.active {
  background: var(--primary-color);
  width: 18px;
  border-radius: 4px;
}

/* プロフィール詳細表示 */
.profile-details {
  padding: 24px;
}

.profile-header {
  margin-bottom: 20px;
}

.card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: var(--primary-color);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px var(--primary-light);
}

.view-nickname {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

.view-fullname {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.view-divider {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
  opacity: 0.6;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* 自己紹介テキストエリア */
.bio-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: pre-wrap;
  background: var(--primary-light);
  padding: 16px;
  border-radius: 16px;
  margin-top: 4px;
}

/* 閲覧モードのアクションボタン */
.view-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* --- トースト通知（完了ポップアップ） --- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 50px);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s var(--bounce-easing);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --- アニメーション --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- ミニマルなSave/Loadリンク（一番下用） --- */
.minimal-save-load {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.minimal-save-load .divider {
  opacity: 0.4;
  color: var(--text-muted);
}

.btn-text, .btn-text-label {
  background: none;
  border: none;
  color: var(--primary-color);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all var(--transition-speed);
  display: inline-flex;
  align-items: center;
}

.btn-text:active, .btn-text-label:active {
  background: var(--primary-light);
  transform: scale(0.95);
}

.view-save {
  margin-top: 32px;
  margin-bottom: 16px;
}

/* --- 企業専用ウェルカムヘッダー (Enterprise Welcome Header) --- */
.enterprise-welcome-card {
  background: linear-gradient(135deg, #1a237e 0%, #0d125a 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(26, 35, 126, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.3s ease;
}

.enterprise-welcome-card h2 {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.enterprise-welcome-card p {
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* --- 縦スクロール型学生フィード (Vertical Cards Feed) --- */
.profile-cards-feed {
  display: flex;
  flex-direction: column;
  gap: 32px; /* カードとカードの間に十分な余白を設定してひたすらスクロールしやすくする */
  margin-bottom: 24px;
}

.profile-cards-feed .card-view {
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- 公式承認バッジ (Approved Badge) --- */
.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.header-badges .card-badge {
  margin-bottom: 0; /* 並べるためマージンクリア */
}

.approved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #a39363 0%, #7d7045 100%);
  color: #ffffff; /* 白文字でコントラスト */
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 4px 10px rgba(163, 147, 99, 0.3);
  animation: shine 3s infinite ease-in-out;
}

@keyframes shine {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.2) drop-shadow(0 0 4px rgba(255, 215, 0, 0.6)); }
  100% { filter: brightness(1); }
}

/* --- 管理者専用承認メニュー (Admin Action Card) --- */
.admin-action-card {
  background: rgba(245, 158, 11, 0.08);
  border: 2px dashed #f59e0b;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.admin-action-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #d97706;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-action-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

/* --- モーダルダイアログ (Modal Window) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--card-bg);
  width: 90%;
  max-width: 380px;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s var(--bounce-easing);
  text-align: center;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.modal-content input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--input-bg, #fff);
  color: var(--text-dark);
  outline: none;
  margin-bottom: 20px;
}

.modal-content input[type="password"]::placeholder {
  letter-spacing: 0;
  font-size: 0.85rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ==================================================
   💡 上部閲覧タブバー (Upper Tabs Bar)
================================================== */
.view-tabs {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 4px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.tab-btn:active {
  transform: scale(0.96);
}

.tab-btn.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.tab-btn .badge-count {
  background-color: #a39363; /* アンティークゴールド */
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ==================================================
   👍 NICE! キープリストフィード (Keep List Feed)
================================================== */
.keep-list-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease;
  margin-bottom: 24px;
}

/* 各学生のキープ行 */
.keep-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  animation: slideIn 0.25s var(--bounce-easing);
}

.keep-student-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.keep-avatar {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 6px rgba(26, 35, 126, 0.05);
}

.keep-name-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-color);
}

.keep-name-box p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.keep-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.keep-actions .btn-offer {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(26, 35, 126, 0.2);
  transition: transform var(--transition-speed);
}

.keep-actions .btn-offer:active {
  transform: scale(0.95);
}

.keep-actions .btn-delete {
  background: transparent;
  color: #ff4d6d;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  transition: transform var(--transition-speed);
}

.keep-actions .btn-delete:active {
  transform: scale(0.85);
}

/* 空の状態 */
.keep-empty {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.keep-empty .empty-icon {
  font-size: 2.6rem;
  opacity: 0.5;
}
