/* 写真投票ページ */
.vote-intro{margin:25px 0 20px;color:#505a61;font-size:14px;line-height:1.9}
.vote-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.vote-card{position:relative;display:block;min-width:0;padding:0;border:1px solid #d5dde0;background:#e7ecef;cursor:pointer;text-align:left;overflow:hidden}
.vote-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .2s}
.vote-card:hover img{transform:scale(1.04)}
.vote-card:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.vote-viewer[hidden]{display:none}
.vote-viewer{position:fixed;z-index:150;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(12,17,22,.96);color:#fff;padding:12px 48px 10px}
body.vote-viewer-open{overflow:hidden}
.vote-viewer-content{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0}
.vote-viewer-image-wrap{display:flex;align-items:center;justify-content:center;min-height:0;flex:1;width:100%}
.vote-viewer-image-wrap img{display:block;width:100%;height:100%;object-fit:contain}
.vote-viewer-info{width:100%;display:flex;align-items:center;justify-content:center;gap:14px;padding:8px 0 0;text-align:center;flex-shrink:0}
.vote-viewer-info h2{font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;font-size:13px;font-weight:400;letter-spacing:.04em;line-height:1.5;margin:0;color:#b5bec4;min-width:0;overflow-wrap:anywhere;max-height:4.5em;overflow:auto}
.vote-submit{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:32px;padding:5px 14px;background:var(--cyan);color:#10242d;text-decoration:none;font-size:13px;font-weight:500;line-height:1.5;white-space:nowrap}
.vote-submit:hover{background:#6ce3e8}
.vote-submit[aria-disabled=true]{background:#69747a;color:#d5dadd;cursor:not-allowed;pointer-events:none}
.vote-close,.vote-prev,.vote-next{position:absolute;border:0;background:rgba(245,248,250,.12);color:#fff;cursor:pointer;line-height:1}
.vote-close{right:18px;top:16px;padding:4px 15px;font-size:38px}
.vote-prev,.vote-next{top:45%;padding:15px 12px;font-size:47px}
.vote-prev{left:12px}.vote-next{right:12px}
.vote-close:hover,.vote-prev:hover,.vote-next:hover{background:rgba(245,248,250,.26)}
@media(max-width:700px){.vote-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.vote-viewer{padding:60px 13px 26px}.vote-prev,.vote-next{top:38%;padding:8px;font-size:42px;background:rgba(20,27,33,.55)}.vote-prev{left:0}.vote-next{right:0}.vote-close{right:8px;top:8px}}

/* rev003: 写真の縦横比を維持し、縦長・横長を同一ギャラリーに収める */
.vote-card{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}
.vote-card img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;background:#dfe6ea}
.vote-viewer-image-wrap{overflow:hidden}
.vote-viewer-image-wrap img{max-height:100%;max-width:100%;object-fit:contain}
.vote-viewer{height:100vh;height:100dvh;min-height:0}
@media(max-width:700px){.vote-viewer{padding:44px 8px max(8px,env(safe-area-inset-bottom))}.vote-viewer-info{gap:10px;padding:8px 0 0}.vote-viewer-info h2{font-size:12px}.vote-submit{min-height:36px;padding:5px 12px}}

/* 拡大画像の読み込み状態 */
.vote-viewer-image-wrap{position:relative}
.vote-viewer-image-wrap.is-pending img{visibility:hidden}
.vote-load-status[hidden]{display:none}
.vote-load-status{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#b5bec4;font-size:12px;letter-spacing:.06em;pointer-events:none}
.vote-load-status.is-loading::before{content:"";width:26px;height:26px;border:2px solid rgba(255,255,255,.18);border-top-color:var(--cyan);border-radius:50%;animation:vote-loading .8s linear infinite}
@keyframes vote-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.vote-load-status.is-loading::before{animation:none}}
