.mod-survey-container { max-width: 960px; margin: 40px auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #333; background: #fafafa; border-radius: 12px; box-sizing: border-box; }
.mod-survey-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 30px; }
.mod-survey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
@media (max-width: 768px) { .mod-survey-grid { grid-template-columns: 1fr; } }
.mod-survey-card { background: #fff; border: 1px solid #e1e1e1; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.mod-survey-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.mod-survey-img-wrapper { position: relative; width: 100%; padding-top: 130%; background: #eee; }
.mod-survey-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.mod-survey-bar-bg { height: 6px; background: #eeeeee; width: 100%; }
.mod-survey-bar-fill { height: 100%; background: #634ec2; width: 0%; transition: width 0.6s ease; }
.mod-survey-content { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.mod-survey-novel-title { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.mod-survey-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.mod-survey-percent { font-weight: 700; color: #634ec2; }
.mod-survey-vote-btn { background: #333; color: #fff; border: none; padding: 8px 14px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; font-weight: 600; }
.mod-survey-vote-btn:disabled { background: #ccc; color: #666; cursor: not-allowed; }
.mod-survey-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid #e1e1e1; font-size: 0.85rem; color: #666; }
.mod-survey-status-dot { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; margin-right: 6px; }

/* 左右2カラムレイアウト（PC用） */
.mod-comment-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e1e1e1; box-sizing: border-box; }
@media (max-width: 768px) { .mod-comment-wrapper { grid-template-columns: 1fr; } }

.mod-comment-post, .mod-comment-view {
    writing-mode: horizontal-tb !important;
    min-width: 0;
    flex: 1 1 auto;
}
.mod-comment-post h3 {
    writing-mode: horizontal-tb !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}
.mod-comment-form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    writing-mode: horizontal-tb !important;
}
.mod-comment-form select, .mod-comment-form textarea, .mod-comment-form button {
    writing-mode: horizontal-tb !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.mod-comment-form select { margin-bottom: 12px; padding: 10px; border-radius: 6px; border: 1px solid #ccc; background: #fff; color: #333; height: auto; }
.mod-comment-form textarea { margin-bottom: 12px; padding: 10px; border-radius: 6px; border: 1px solid #ccc; background: #fff; color: #333; resize: vertical; }
.mod-comment-form button { background: #634ec2; color: #fff; border: none; padding: 12px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: background 0.2s; text-align: center; }
.mod-comment-form button:hover { background: #513eb0; }

/* タブ部分：スクロールバーを排除し、3等分均等配置にする */
.mod-comment-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 12px;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 8px;
    overflow: hidden !important;
}
.mod-tab-btn {
    background: none;
    border: none;
    padding: 6px 4px !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transition: all 0.2s;
    text-align: center;
    width: 100% !important;
}
@media (max-width: 480px) {
    .mod-tab-btn { font-size: 0.7rem !important; }
}
.mod-tab-btn.is-active { background: #634ec2; color: #fff; }
.mod-comment-list { max-height: 300px; overflow-y: auto; }
.mod-comment-item { background: #fff; border: 1px solid #e1e1e1; padding: 12px; border-radius: 8px; margin-bottom: 10px; display: none; }
.mod-survey-no-data { text-align: center; color: #999; font-size: 0.85rem; padding: 20px; display: none; }
