/* ========================
   Navi 改善要望共有システム CSS
   ======================== */

/* リセット & 基本 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========================
   ログイン画面
   ======================== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
}

.login-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.login-header {
    background: #1e3a5f;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.8;
}

.login-form {
    padding: 30px;
}

.login-footer {
    padding: 0 30px 25px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* ========================
   フォーム部品
   ======================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.required { color: #ef4444; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.checkbox-label:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.checkbox-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 4px;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.form-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ========================
   ボタン
   ======================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: #2563eb;
    color: #fff;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}
.btn-secondary:hover { background: #d1d5db; }

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-block { display: block; width: 100%; }

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ========================
   アラート
   ======================== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-demo {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* ========================
   アプリレイアウト
   ======================== */
.app-wrapper {
    min-height: 100vh;
}

.app-header {
    background: #1e3a5f;
    color: #fff;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 700;
}

.header-left h1 a { color: #fff; }
.header-left h1 a:hover { text-decoration: none; }

.header-subtitle {
    font-size: 13px;
    opacity: 0.7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    font-size: 13px;
    opacity: 0.9;
}

/* ========================
   メインコンテンツ
   ======================== */
.main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px;
}

.main-content-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.content-header h2 {
    font-size: 22px;
    color: #1e3a5f;
}

.badge {
    font-size: 14px;
    font-weight: 500;
    background: #e5e7eb;
    color: #4b5563;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
}

/* ========================
   フィルターバー
   ======================== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.filter-group { flex: 1; min-width: 150px; }

.input-search, .input-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.input-search:focus, .input-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ========================
   要望カード
   ======================== */
.request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s;
    position: relative;
    cursor: pointer;
}

.request-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.request-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    min-width: 100px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    position: relative;
    z-index: 2;
}

.vote-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.vote-btn {
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    width: 100%;
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.vote-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.vote-btn.voted {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.vote-icon { font-size: 20px; line-height: 1; }
.vote-label { font-size: 10px; font-weight: 600; color: #6b7280; }
.vote-btn.voted .vote-label { color: rgba(255,255,255,0.9); }
.vote-count { font-size: 16px; font-weight: 800; color: #1e3a5f; }
.vote-btn.voted .vote-count { color: #fff; }

.request-body {
    flex: 1;
    padding: 16px 20px;
}

.request-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.category-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
}

.request-office {
    color: #6b7280;
    font-weight: 500;
}

.request-date {
    color: #9ca3af;
}

.request-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 6px;
}

.request-title a {
    color: #1e3a5f;
    text-decoration: none;
}

.request-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.request-card:hover .request-title a {
    color: #2563eb;
    text-decoration: underline;
}

.request-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
}

.empty-state {
    padding: 60px;
    text-align: center;
    color: #9ca3af;
    background: #fff;
    border-radius: 10px;
}

/* ========================
   詳細画面
   ======================== */
.detail-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.detail-header {
    padding: 24px 30px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.5;
}

.detail-vote-section {
    padding: 20px 30px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.vote-form-detail {
    display: flex;
    align-items: center;
}

.vote-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 2px solid #d1d5db;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s;
    color: #374151;
}

.vote-btn-detail:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.vote-btn-detail.voted {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.vote-btn-detail.voted:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

.vote-icon-detail { font-size: 22px; }
.vote-label-detail { font-size: 15px; }
.vote-count-detail { font-size: 13px; opacity: 0.8; margin-left: 4px; }

.detail-body {
    padding: 24px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-body h3,
.detail-attachments h3,
.detail-voters h3 {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}

.detail-description {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.9;
}

.detail-attachments {
    padding: 24px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.attachment-icon { font-size: 22px; }

.attachment-info { display: flex; flex-direction: column; }

.attachment-name {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

.attachment-name:hover { text-decoration: underline; }

.attachment-size {
    font-size: 12px;
    color: #9ca3af;
}

.detail-voters {
    padding: 24px 30px;
}

.voter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.voter-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ========================
   ファイルアップロード
   ======================== */
.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    background: #fafafa;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    pointer-events: none;
}

.file-upload-icon { font-size: 32px; }

.file-hint {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
}

.file-preview-list {
    margin-top: 12px;
    text-align: left;
}

.file-preview-item {
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    margin-top: 6px;
}

/* ========================
   ページネーション
   ======================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    transition: all 0.2s;
}

.page-link:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
    text-decoration: none;
}

.page-link.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* ========================
   開発者コメント トグル & ドロワー
   ======================== */
.request-dev-toggle {
    display: flex;
    align-items: center;
    padding: 0 6px;
    border-left: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f9fafb 0%, #f0f4f8 100%);
    position: relative;
    z-index: 2;
}

.dev-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 10px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 50px;
    position: relative;
}

.dev-toggle-btn:hover {
    background: #fff;
    border-color: #d1d5db;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dev-toggle-btn.active {
    background: #eff6ff;
    border-color: #93c5fd;
}

.dev-toggle-icon {
    font-size: 20px;
    line-height: 1;
}

.dev-toggle-count {
    font-size: 11px;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 10px;
    padding: 0 6px;
    line-height: 18px;
}

.dev-toggle-btn.active .dev-toggle-count {
    background: #2563eb;
    color: #fff;
}

.dev-toggle-arrow {
    font-size: 8px;
    color: #9ca3af;
    line-height: 1;
    transition: color 0.2s;
}

.dev-toggle-btn.active .dev-toggle-arrow {
    color: #2563eb;
}

.dev-drawer {
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-top: none;
    border-radius: 0 0 10px 10px;
    margin-top: -5px;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
    position: relative;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease;
}

.dev-drawer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 0;
}

.dev-drawer-inner {
    padding: 20px 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dev-drawer-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0ecf7;
}

.dev-drawer-comment {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #2563eb;
    border-radius: 4px 8px 8px 4px;
    padding: 14px 18px;
}

.dev-drawer-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dev-drawer-author {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a5f;
}

.dev-drawer-date {
    font-size: 11px;
    color: #9ca3af;
}

.dev-drawer-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
}

.dev-drawer-more {
    text-align: right;
    padding-top: 4px;
}

.dev-drawer-more a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.15s;
}

.dev-drawer-more a:hover {
    background: #eff6ff;
    text-decoration: none;
}

/* ========================
   ステータスバッジ
   ======================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.status-none {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.status-none::before { content: '●'; font-size: 8px; color: #9ca3af; }

.status-review {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-review::before { content: '●'; font-size: 8px; color: #f59e0b; }

.status-planned {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.status-planned::before { content: '●'; font-size: 8px; color: #3b82f6; }

.status-working {
    background: #fef0e7;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.status-working::before { content: '●'; font-size: 8px; color: #f97316; }

.status-done {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.status-done::before { content: '✓'; font-size: 10px; color: #059669; }

.schedule-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 3px 12px;
}

.schedule-label {
    font-weight: 600;
    color: #6b7280;
}

.schedule-date {
    color: #1e3a5f;
    font-weight: 700;
}

/* ========================
   詳細画面ステータスバー
   ======================== */
.detail-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e5e7eb;
}

/* ========================
   開発コメントセクション（詳細画面）
   ======================== */
.dev-comment-section {
    padding: 28px 30px;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f8faff 0%, #fff 60px);
}

.dev-comment-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-comment-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

.dev-comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
    position: relative;
}

.dev-comment-list::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dbeafe;
}

.dev-comment-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    margin-left: 30px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.dev-comment-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dev-comment-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #2563eb;
    border-radius: 50%;
}

.dev-comment-item::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 25px;
    width: 9px;
    height: 2px;
    background: #dbeafe;
}

.dev-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dev-comment-author {
    font-size: 13px;
    font-weight: 700;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dev-comment-author::before {
    content: '🛠';
    font-size: 12px;
}

.dev-comment-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.dev-comment-body {
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
}

.dev-comment-empty {
    color: #9ca3af;
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
}

/* コメント投稿フォーム */
.dev-comment-form-wrap {
    margin-top: 24px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dev-comment-form-wrap h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dev-comment-form-wrap h4::before {
    content: '✏️';
    font-size: 14px;
}

.dev-comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dev-form-row {
    display: flex;
    gap: 14px;
}

.dev-form-group {
    flex: 1;
}

.dev-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.dev-form-group select,
.dev-form-group input[type="date"],
.dev-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.dev-form-group select:focus,
.dev-form-group input[type="date"]:focus,
.dev-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.dev-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.dev-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

/* ========================
   レスポンシブ
   ======================== */
@media (max-width: 640px) {
    .app-header {
        flex-direction: column;
        height: auto;
        padding: 12px 16px;
        gap: 8px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-group { width: 100%; }

    .request-card { flex-direction: column; }

    .request-dev-toggle {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding: 8px 16px;
        justify-content: center;
    }

    .dev-toggle-btn { flex-direction: row; gap: 6px; }

    .dev-form-row { flex-direction: column; }

    .dev-comment-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .request-vote {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        min-width: unset;
        padding: 10px 16px;
    }

    .vote-btn {
        flex-direction: row;
        width: auto;
        padding: 6px 14px;
        gap: 6px;
    }

    .detail-header,
    .detail-vote-section,
    .detail-body,
    .detail-attachments,
    .detail-voters {
        padding-left: 16px;
        padding-right: 16px;
    }

    .detail-title { font-size: 18px; }

    .vote-btn-detail { padding: 10px 20px; font-size: 14px; }
}
