/* ============================
   ▼ 投票フォーム（carp_vote）
   ============================ */

/* 2列グリッド（スマホもPCも常に2列） */
.carp-vote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

/* フォームボックス（縮まない問題を完全解決） */
.carp-vote-box {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 8px;
    box-sizing: border-box;
}

/* ラベル・セレクト・ボタン（2列用：小さめ） */
.carp-vote-label,
.carp-vote-select,
.carp-vote-button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(10px, 1.8vw, 14px);
}

/* ラベル */
.carp-vote-label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

/* セレクト（iPhone対策：強制縮小） */
.carp-vote-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 6px;
    margin-bottom: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* option の改行防止 */
.carp-vote-select option {
    white-space: nowrap;
}

/* ボタン */
.carp-vote-button {
    display: block;
    width: 100%;
    padding: 6px;
    background: #d70000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.carp-vote-button:hover {
    background: #b00000;
}

/* 投票後メッセージ */
.carp-vote-message {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    background: #fffef5;
    border-radius: 8px;
    font-size: clamp(10px, 1.8vw, 14px);
    text-align: center;
    color: #333;
}


/* ============================
   ▼ 1列フォーム専用（文字を大きく）
   ============================ */

.carp-vote-single .carp-vote-label,
.carp-vote-single .carp-vote-select,
.carp-vote-single .carp-vote-button {
    font-size: clamp(14px, 2.8vw, 20px);
}


/* ============================
   ▼ ベストナイン（order）
   ============================ */

.carp-order-card {
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 6px;
    background: #fff;
}

.carp-order-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.carp-order-pos {
    width: 70px;
    text-align: left;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.carp-order-name {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: #222;
    line-height: 1.2;
}

/* 背景色 */
.carp-order-card.infield { background: #fff7cc; }
.carp-order-card.catcher { background: #e8f5ff; }
.carp-order-card.outfield { background: #eaffea; }
.carp-order-card.pitcher { background: #ffe6f0; }

/* 結果ボタン */
.carp-result-button {
    display: inline-block;
    padding: 10px 16px;
    background: #d70000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
}

.carp-result-button:hover {
    background: #b00000;
}

.carp-bestnine-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.carp-bestnine-card {
    padding: 12px 16px;
    border-radius: 8px;
}

.carp-bestnine-pos {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 15px;
}

.carp-bestnine-name {
    font-size: 17px;
    line-height: 1.4;
}