.modern-header-title {
  font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #2a3a5a;
  background: linear-gradient(90deg, #5b86e5 0%, #36d1c4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 8px 32px #5b86e544, 0 1px 0 #fff8;
  margin-bottom: 0.5rem !important;
}
.modern-header-lead {
  color: #36d1c4;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px #5b86e544;
  font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
  margin-bottom: 0.5rem;
}
.admin-vote-status-section {
  max-width: 900px;
}
.admin-upload-btn {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
/* --- admin.html専用カスタム --- */
.admin-header-home-btn {
  position: absolute;
  top: 2.2rem;
  right: 2.5rem;
  z-index: 10;
}
.admin-vote-status-section {
  max-width: 900px;
}
.admin-preview-modal-img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px #000a;
  object-fit: contain;
}

/* ソート可能なテーブルヘッダー */
.table th[onclick] {
  user-select: none;
  transition: background-color 0.2s ease;
}

.table th[onclick]:hover {
  background-color: #e9ecef !important;
}

.table th[onclick] span {
  font-size: 0.8em;
  margin-left: 0.25em;
  color: #6c757d;
}

/* 管理アイコン */
.admin-icon-link {
  display: inline-block;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 12px #36d1c422;
  transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
  padding: 0.2em;
}
.admin-icon-link:hover {
  background: #36d1c4;
  box-shadow: 0 4px 24px #36d1c444;
  transform: scale(1.08);
}
.admin-icon-link svg circle {
  transition: fill 0.2s, stroke 0.2s;
}
.admin-icon-link:hover svg circle {
  fill: #36d1c4;
  stroke: #fff;
}
.admin-icon-link svg path, .admin-icon-link svg circle[cx] {
  transition: fill 0.2s;
}
.admin-icon-link:hover svg path, .admin-icon-link:hover svg circle[cx] {
  fill: #fff;
}
/* ---- 今風ニューモーフィズム＆ガラス風ヘッダー ---- */
.modern-header {
  background: linear-gradient(120deg, #f8fafc 0%, #e3e7fa 100%);
  box-shadow: 0 8px 32px 0 #1a237e18, 0 1.5px 6px 0 #1a237e10;
  border-radius: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px) saturate(1.2);
}
.modern-header-title {
  color: #222;
  letter-spacing: 0.06em;
  text-shadow: 0 6px 32px #bfc3c9cc, 0 1px 0 #fff8;
  font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
}
.modern-header-lead {
  color: #4a5a7a;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px #bfc3c966;
  font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
}
.index-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e3e7fa 100%);
    background-attachment: fixed;
    overflow: hidden; /* PC版ではスクロール制限 */
}
.custom-main-area {
    min-height: 70vh;
    background: #f4f6fb;
    padding-top: 2vw;
    padding-bottom: 4vw;
}
.image-col2 {
    background: #f8fafc;
    box-shadow: 0 8px 32px 0 #bfc3c933, 0 1.5px 6px 0 #bfc3c911;
    border-radius: 2.2rem;
    border: none;
    padding-bottom: 0.5rem;
    margin-bottom: 2vw;
    transition: box-shadow 0.2s, transform 0.2s;
}
.image-col2:hover {
    box-shadow: 0 16px 48px 0 #bfc3c955, 0 4px 16px 0 #bfc3c922;
    transform: translateY(-4px) scale(1.02);
}
.image-title2 {
    margin-top: 1.2rem;
    text-align: center;
    font-weight: bold;
    font-size: 2.1rem;
    color: #2a3a5a;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px #bfc3c922;
}
.btn-gradient-primary {
    background: linear-gradient(90deg, #5b86e5 0%, #36d1c4 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px #36d1c433;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-gradient-primary:hover {
    background: linear-gradient(90deg, #36d1c4 0%, #5b86e5 100%);
    color: #fff;
    box-shadow: 0 8px 32px #36d1c444;
    transform: scale(1.04);
}
/* ローディングオーバーレイ */
.loading-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,34,62,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.loading-spinner {
  width: 64px;
  height: 64px;
  border: 7px solid #e3e7fa;
  border-top: 7px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px #000a;
}
/* Voteモーダル横並び7:3 */
.vote-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,34,62,0.92);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.vote-modal-content {
  position: relative;
  width: 80vw;
  max-width: 1200px;
  min-width: 320px;
  min-height: 340px;
  max-height: 90vh;
  background: #fff;
  border-radius: 2.2rem;
  box-shadow: 0 8px 32px #000a;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
.vote-modal-img-wrap {
  flex-basis: 70%;
  background: #222;
  min-width: 0;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#vote-modal-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px #000a;
  background: #fff;
}
.vote-modal-info {
  flex-basis: 30%;
  min-width: 0;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  background: #f6f7fb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vote-modal-title {
  color: #1a237e;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.2rem;
}
.vote-modal-meta {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
/* 投票モーダルボタン余裕・角丸控えめ・下部余白 */
.vote-modal-btns {
  width: 100%;
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  justify-content: space-between;
}
.vote-modal-btns .btn {
  font-size: 1.18rem;
  padding: 0.85em 1.8em;
  border-radius: 0.85em !important;
  min-width: 140px;
  font-weight: 600;
  box-shadow: 0 4px 16px #1a237e22;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
}
.vote-modal-btns .btn-primary, .btn-gradient-primary {
  background: linear-gradient(90deg, #007bff 60%, #00c6ff 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px #007bff33;
}
.vote-modal-btns .btn-primary:hover, .btn-gradient-primary:hover {
  background: linear-gradient(90deg, #0056b3 60%, #00aaff 100%);
  color: #fff;
  box-shadow: 0 8px 32px #007bff44;
}
.vote-modal-btns .btn-outline-secondary {
  background: #fff;
  color: #333;
  border: 2px solid #bbb;
}
.vote-modal-btns .btn-outline-secondary:hover {
  background: #f2f2f2;
  color: #007bff;
  border-color: #007bff;
}
.vote-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1.2rem;
  font-size: 2.5rem;
  color: #222;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.vote-modal-close:hover {
  opacity: 1;
}
/* 画像プレビューモーダル */
.preview-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,34,62,0.92);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.preview-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.preview-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1.2rem;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.preview-modal-close:hover {
  opacity: 1;
}
#preview-modal-img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px #000a;
  background: #fff;
  margin-bottom: 1.2rem;
}
#preview-modal-title {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 2px 12px #000a;
}
.index-desc {
    margin-bottom: 2.5vw;
}
/* index 2カラム大表示用 */
.image-row {
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4vw !important;
    margin-bottom: 2vw;
}
.image-col2 {
    width: 540px;
    max-width: 98vw;
    min-width: 320px;
    margin-bottom: 2vw;
    border-radius: 2.2rem;
    box-shadow: 0 12px 40px 0 rgba(0,0,0,0.18), 0 2px 8px 0 rgba(0,0,0,0.10);
    background: #fff;
    background-clip: padding-box;
    padding: 2.5vw 1vw 2vw 1vw;
}
.image-title2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 2.1rem;
    color: #007bff;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px #007bff22;
}
.image-main2 {
    display: block;
    width: 100%;
    height: 420px;
    max-width: 480px;
    min-width: 260px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 12px 40px #007bff22;
    border: 3px solid #007bff22;
    transition: box-shadow 0.3s, filter 0.3s, border 0.2s;
    margin-left: auto;
    margin-right: auto;
}
.image-main2:hover {
    box-shadow: 0 16px 48px #007bff44, 0 4px 16px #007bff22;
    filter: brightness(1.10) saturate(1.12);
    border-color: #007bff;
}
.image-ratio2 {
    margin-bottom: 0.5rem;
}
/* indexページ用リッチ背景 */
.index-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0e3e8 0%, #bfc3c9 100%);
    background-attachment: fixed;
}
.index-header {
    margin-top: 3vw;
    margin-bottom: 2vw;
}
.index-header h1 {
    text-shadow: 0 4px 24px #000a,0 1px 0 #fff8;
}
.index-header .lead {
    text-shadow: 0 2px 8px #0004;
}
.image-col {
    width: 420px;
    max-width: 98vw;
    min-width: 260px;
    margin-bottom: 2vw;
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 1.5px 6px 0 rgba(0,0,0,0.10);
    background: #fff;
    background-clip: padding-box;
}
.image-main {
    object-fit: cover;
    width: 100%;
    height: 420px;
    max-height: 60vw;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px #007bff22;
    border: 3px solid #007bff22;
    transition: box-shadow 0.3s, filter 0.3s, border 0.2s;
}
.image-main:hover {
    box-shadow: 0 8px 32px #007bff44, 0 2px 8px #007bff22;
    filter: brightness(1.08) saturate(1.1);
    border-color: #007bff;
}
.image-title {
    margin-top: 1.2rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #007bff;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px #007bff22;
}
/* index画像表示用 */
.image-col {
    width: 300px;
    max-width: 90vw;
}
.image-ratio {
    /* 画像枠の追加調整があればここに */
}
.image-main {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: box-shadow 0.3s, filter 0.3s;
}
.image-title {
    margin-top: 0.5rem;
    text-align: center;
    font-weight: bold;
}
body, html {
    height: 100%;
    margin: 0;
    background: #f0f2f5;
    min-height: 100vh;
}
.upload-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
    filter: blur(6px) brightness(0.7);
    z-index: 0;
}
.upload-main-wrap {
    position: relative;
    z-index: 2;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* upload-main: 横幅を少し狭く */
.upload-main {
    display: none;
    animation: fadeIn 0.5s;
    width: 100%;
    max-width: 720px;
    min-width: 320px;
    background: rgba(255,255,255,0.97);
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 1.5px 6px 0 rgba(0,0,0,0.10);
    padding: 32px 18px;
    margin: 32px 0;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.upload-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
/* プレビューを大きく */
.upload-preview-col {
    flex: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 1rem;
    min-width: 0;
    min-height: 220px;
    max-height: 400px;
    padding: 16px 8px 16px 16px;
}

.upload-drop {
    width: 100%;
    height: 320px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px dashed #bbb;
    border-radius: 1rem;
    transition: border 0.2s;
}
.upload-drop.has-preview {
    border: none;
    background: transparent;
}
/* プレビュー画像も大きく */
/* プレビュー画像をさらに大きく中央に */
.upload-preview-img {
    max-width: 95%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s;
}
/* フォーム上下に余白を追加 */
.upload-form-col {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 32px 2px 32px 2px;
}
.upload-form-col form { width: 100%; }
.upload-btn-cancel, .upload-btn-upload {
    min-width: 90px;
    font-size: 1rem;
    padding: 0.5em 0;
}
.upload-btn-cancel {
    background: #fff;
    color: #333;
    border: 2px solid #bbb;
    border-radius: 2rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.upload-btn-cancel:hover {
    background: #f2f2f2;
    color: #007bff;
    border-color: #007bff;
}
.upload-btn-upload {
    background: linear-gradient(90deg, #007bff 60%, #00c6ff 100%);
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    box-shadow: 0 2px 8px #007bff22;
    transition: background 0.2s, box-shadow 0.2s;
}
.upload-btn-upload:hover {
    background: linear-gradient(90deg, #0056b3 60%, #00aaff 100%);
    box-shadow: 0 4px 16px #007bff33;
}
@media (max-width: 700px) {
    .upload-main { max-width: 98vw; padding: 8px 1px; }
    .upload-container { flex-direction: column; gap: 6px; }
    .upload-preview-col, .upload-form-col { width: 100%; max-width: 100%; }
    .upload-preview-img { max-height: 80px; }
}

/* index画像表示の中央寄せ・最大幅制御 */
.index-main-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 2vw;
    padding-right: 2vw;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* PC版での画像コラムサイズ調整 */
.image-col2 {
    background: #f8fafc;
    box-shadow: 0 8px 32px 0 #bfc3c933, 0 1.5px 6px 0 #bfc3c911;
    border-radius: 2.2rem;
    border: none;
    padding-bottom: 0.5rem;
    margin-bottom: 2vw;
    transition: box-shadow 0.2s, transform 0.2s;
    flex: 0 1 calc(50% - 1rem);
    max-width: 500px;
    min-width: 300px;
}

/* ---- フラットデザイン用カスタム ---- */
.custom-header {
    background: #1a237e;
    color: #fff;
    box-shadow: 0 2px 16px #1a237e22;
}
.custom-header-title {
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 12px #0006;
}
.custom-header-lead {
    color: #e3e7fa;
    font-size: 1.3rem;
    text-shadow: 0 1px 4px #0003;
}
.custom-main-area {
    min-height: 70vh;
    background: #f6f7fb;
    padding-top: 2vw;
    padding-bottom: 4vw;
}
.image-col2 {
    background: transparent;
    box-shadow: 0 4px 24px 0 #1a237e18, 0 1.5px 6px 0 #1a237e10;
    border-radius: 2.2rem;
    border: none;
    padding-bottom: 0.5rem;
}
.image-title2 {
    margin-top: 1.2rem;
    text-align: center;
    font-weight: bold;
    font-size: 2.1rem;
    color: #222;
    letter-spacing: 0.04em;
    text-shadow: none;
}

/* ===== モバイル用スタイル ===== */
.mobile-image-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.mobile-image-preview {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.mobile-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mobile-card-info {
    flex: 1;
    margin-left: 1rem;
}

.mobile-card-id {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.mobile-card-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.mobile-card-category {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.mobile-card-votes {
    font-size: 1.2rem;
    font-weight: bold;
    color: #5b86e5;
}

.mobile-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.mobile-action-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-edit-btn {
    background: #e3f2fd;
    color: #1976d2;
}

.mobile-edit-btn:hover {
    background: #bbdefb;
    color: #0d47a1;
}

.mobile-delete-btn {
    background: #ffebee;
    color: #d32f2f;
}

.mobile-delete-btn:hover {
    background: #ffcdd2;
    color: #b71c1c;
}

/* ページネーション（モバイル調整） */
@media (max-width: 768px) {
    /* iOS Safari対応: スクロール時のリサイズ防止 */
    .index-bg {
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* タッチ動作の制御 */
    .mobile-vote-card, .image-col2 {
        touch-action: manipulation;
    }
    
    /* ボタンのタッチ反応改善 */
    .mobile-vote-btn, .btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .pagination {
        font-size: 0.9rem;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
    }
    
    .modern-header-title {
        font-size: 2.2rem;
    }
    
    .admin-header-home-btn {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .custom-main-area {
        padding: 0 1rem;
    }
    
    .admin-vote-status-section {
        max-width: 100%;
    }
    
    /* モバイル編集フォーム */
    .mobile-edit-form {
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .mobile-edit-input {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
        border: 1px solid #ddd;
        border-radius: 0.375rem;
        font-size: 0.9rem;
    }
    
    .mobile-edit-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .mobile-save-btn {
        background: #28a745;
        color: white;
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 0.375rem;
        font-weight: 600;
        flex: 1;
    }
    
    .mobile-cancel-btn {
        background: #6c757d;
        color: white;
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 0.375rem;
        font-weight: 600;
        flex: 1;
    }
}

/* 小型モバイル調整 */
@media (max-width: 480px) {
    .modern-header-title {
        font-size: 1.8rem;
    }
    
    .mobile-image-preview {
        width: 80px;
        height: 60px;
    }
    
    .mobile-card-info {
        margin-left: 0.75rem;
    }
    
    .pagination {
        font-size: 0.8rem;
    }
    
    .page-link {
        padding: 0.375rem 0.5rem;
    }
}

/* ===== index.html モバイル用スタイル ===== */
.mobile-vote-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(91, 134, 229, 0.15);
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 2px solid #f0f8ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-vote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(91, 134, 229, 0.25);
}

.mobile-vote-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.mobile-vote-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.mobile-vote-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #5b86e5 0%, #36d1c4 100%);
    border: none;
    border-radius: 1rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 134, 229, 0.3);
}

.mobile-vote-btn:hover, .mobile-vote-btn:active {
    background: linear-gradient(135deg, #4a75d4 0%, #2bc0b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 134, 229, 0.4);
    color: white;
}

/* モバイル用vs表示 */
.mobile-vs-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.mobile-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    position: relative;
}

.mobile-vs-divider::before {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5b86e5, transparent);
}

.mobile-vs-text {
    background: #5b86e5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 1rem;
    box-shadow: 0 4px 12px rgba(91, 134, 229, 0.3);
}

/* ヘッダーのモバイル調整 */
@media (max-width: 768px) {
    .index-bg {
        overflow: auto !important; /* モバイル版ではスクロール可能に */
    }
    
    .modern-header {
        padding: 2rem 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .modern-header-title {
        font-size: 2.5rem;
    }
    
    .modern-header-lead {
        font-size: 1.1rem;
    }
    
    .custom-main-area {
        min-height: auto !important;
        padding: 1rem;
        padding-bottom: 3rem;
    }
    
    .footer {
        position: relative !important;
        margin-top: 2rem;
        bottom: auto !important;
    }
    
    .footer a, .footer span {
        font-size: 0.85rem !important;
    }
    
    /* モバイルで管理ボタンを調整 */
    .admin-header-home-btn {
        top: 1rem !important;
        right: 1rem !important;
    }
    
    .admin-header-home-btn svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* モバイル版: 画像コンテナを縦並びに */
    #image-container {
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    /* PC版の画像コラムをモバイルでは非表示 */
    .image-col2 {
        display: none !important;
    }
    
    /* モーダルのモバイル調整 */
    .vote-modal-content {
        width: 95vw !important;
        flex-direction: column !important;
        max-height: 90vh !important;
    }
    
    .vote-modal-img-wrap {
        flex-basis: auto !important;
        min-height: 300px !important;
    }
    
    .vote-modal-info {
        flex-basis: auto !important;
        padding: 1.5rem 1rem 1rem 1rem !important;
    }
    
    .vote-modal-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .modern-header-title {
        font-size: 2rem;
    }
    
    .modern-header-lead {
        font-size: 1rem;
    }
    
    .mobile-vote-image {
        height: 220px;
    }
    
    .mobile-vote-title {
        font-size: 1.3rem;
    }
    
    .mobile-vote-btn {
        font-size: 1.1rem;
        padding: 0.875rem;
    }
}
