* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a73e8;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #444;
}

/* フォーム */
.form-section {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a73e8;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
}

/* ボタン */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

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

.btn-primary {
  background: #1a73e8;
  color: #fff;
  width: 100%;
}

.btn-primary:hover {
  background: #1557b0;
}

/* フィルター */
.filter-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-section label {
  font-size: 0.85rem;
  color: #666;
}

.filter-btn {
  padding: 5px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  color: #555;
}

.filter-btn.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}

.filter-btn:hover:not(.active) {
  border-color: #1a73e8;
  color: #1a73e8;
}

/* 一覧 */
.list-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border-left: 4px solid #ccc;
  transition: box-shadow 0.2s;
}

.post-card.status-未投稿 {
  border-left-color: #f4a100;
}

.post-card.status-投稿済み {
  border-left-color: #34a853;
  opacity: 0.75;
}

.post-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #1a73e8;
}

.card-date {
  font-size: 0.8rem;
  color: #888;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.status-badge.status-未投稿 {
  background: #fff3e0;
  color: #e65100;
  border-color: #f4a100;
}

.status-badge.status-未投稿:hover {
  background: #f4a100;
  color: #fff;
}

.status-badge.status-投稿済み {
  background: #e6f4ea;
  color: #1e7e34;
  border-color: #34a853;
}

.status-badge.status-投稿済み:hover {
  background: #34a853;
  color: #fff;
}

.card-content {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-delete {
  background: none;
  border: none;
  color: #bbb;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.btn-delete:hover {
  color: #e53935;
  background: #fdecea;
}

.empty-msg {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  padding: 40px 0;
  display: none;
}

.empty-msg.show {
  display: block;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.25rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
