.v2-leveling-container {
    --v2-lvl-bg: #f8fafc; --v2-lvl-card: #ffffff; --v2-lvl-primary: #3b82f6; --v2-lvl-accent: #ef4444;
    --v2-lvl-premium: #ff4757; --v2-lvl-text: #1e293b; --v2-lvl-sub: #64748b; --v2-lvl-border: #e2e8f0;
    --v2-lvl-gold-grad: linear-gradient(135deg, #d97706 0%, #fcd34d 50%, #d97706 100%);
    --v2-lvl-god-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --v2-lvl-silver-grad: linear-gradient(135deg, #94a3b8 0%, #e2e8f0 50%, #94a3b8 100%);
}

* {
    box-sizing: border-box;
}

.leveling-system-container {
    background: transparent;
    padding: 3px;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* 級選択エリア */
.grade-selector-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
    gap: 15px;
}

.grade-selector-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.grade-selector-btn {
    font-size: 18px;
    font-weight: 800;
    color: var(--v2-lvl-text);
    background: white;
    border: 2px solid var(--v2-lvl-primary);
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.grade-selector-btn:hover {
    background: var(--v2-lvl-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.grade-name {
    color: var(--v2-lvl-primary);
    font-weight: 900;
}

.grade-selector-btn:hover .grade-name {
    color: white;
}

/* モーダル */
.grade-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.grade-modal.show {
    display: flex;
}

.grade-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.grade-modal-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--v2-lvl-text);
    margin-bottom: 20px;
    text-align: center;
}

.grade-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grade-option-btn {
    padding: 15px 20px;
    border: 2px solid var(--v2-lvl-border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: var(--v2-lvl-text);
    transition: all 0.3s ease;
    text-align: center;
}

.grade-option-btn:hover {
    border-color: var(--v2-lvl-primary);
    background: var(--v2-lvl-primary);
    color: white;
    transform: translateX(5px);
}

.grade-option-btn.active {
    border-color: var(--v2-lvl-primary);
    background: var(--v2-lvl-primary);
    color: white;
}

/* インラインスキップ設定（PC用） */
.skip-settings-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: white;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 10px 15px;
}

.skip-label {
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
    animation: blink 5s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.skip-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-lvl-text);
}

.skip-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.skip-update-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
}

.skip-update-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.skip-update-btn.disabled {
    background: #d1d5db;
    color: #ef4444;
    cursor: not-allowed;
}

.skip-update-btn.disabled:hover {
    background: #d1d5db;
    transform: none;
    box-shadow: none;
}

/* スマホ用スキップ設定（デフォルトは非表示） */
.skip-settings-mobile {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: white;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 10px 15px;
    margin-top: 15px;
}

.skip-label-mobile {
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
    animation: blink 5s infinite;
}

.skip-checkbox-label-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-lvl-text);
}

.skip-checkbox-mobile {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.skip-update-btn-mobile {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
}

.skip-update-btn-mobile:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.skip-update-btn-mobile.disabled {
    background: #d1d5db;
    color: #ef4444;
    cursor: not-allowed;
}

.skip-update-btn-mobile.disabled:hover {
    background: #d1d5db;
    transform: none;
    box-shadow: none;
}


/* 表示/非表示ボタン */
.toggle-visibility-btn {
    padding: 10px 20px;
    border: 2px solid var(--v2-lvl-border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: var(--v2-lvl-text);
    transition: all 0.3s ease;
}

.toggle-visibility-btn:hover {
    border-color: var(--v2-lvl-primary);
    background: var(--v2-lvl-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.toggle-visibility-btn.hidden-state {
    background: #10b981;
    border: none;
    font-weight: 900;
    font-size: 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.toggle-visibility-btn.hidden-state .gold-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: white;
}

.toggle-visibility-btn.hidden-state:hover {
    background: #10b981;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.grade-selector.center-mode {
    justify-content: center;
}

/* ローディングオーバーレイ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loading-overlay.show {
    display: flex;
    opacity: 1;
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 10002;
}

.loading-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--v2-lvl-primary);
    margin-bottom: 30px;
    animation: sparkle 1.5s infinite ease-in-out;
}

.loading-image {
    width: 300px;
    height: auto;
    margin-top: 20px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--v2-lvl-sub);
    margin-top: 15px;
    font-weight: 600;
}

@keyframes sparkle {
    0%, 100% {
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.6),
                     0 0 20px rgba(59, 130, 246, 0.4),
                     0 0 30px rgba(59, 130, 246, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8),
                     0 0 40px rgba(59, 130, 246, 0.6),
                     0 0 60px rgba(59, 130, 246, 0.4);
    }
}

/* ページロード時のアニメーション */
.wrapper {
    animation: fadeInSparkle 1s ease-out;
}

@keyframes fadeInSparkle {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* キラッと光る効果 */
.wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 1.5s ease-out;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.wrapper {
    display: grid;
    gap: 15px;
    max-width: 1050px;
    width: 100%;
    margin: 0 auto;
    grid-template-columns: 1fr;
    grid-template-areas: "status" "chart" "todo";
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) {
    .wrapper {
        grid-template-columns: 0.6fr 1fr;
        grid-template-areas: "status chart" "todo chart";
        align-items: start;
    }
    .area-chart {
        height: 100%;
    }

    /* PC/タブレット: レイアウト調整 */
    .grade-selector-top {
        flex-direction: row;
    }

    .grade-selector-left {
        flex-direction: row;
        align-items: center;
    }

    /* PC/タブレット: 非表示ボタンのフォントサイズを大きく */
    .toggle-visibility-btn.hidden-state {
        font-size: 24px;
    }

    .grade-selector-top.center-mode {
        justify-content: center;
    }
}

.card-box {
    background: var(--v2-lvl-card);
    border-radius: 24px;
    border: 1px solid var(--v2-lvl-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);
    padding: 3px;
}

.area-todo.card-box {
    padding-left: 3px;
    padding-right: 3px;
}

.area-status { grid-area: status; }
.area-todo { grid-area: todo; }
.area-chart {
    grid-area: chart;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 550px;
    text-align: center;
    padding: 30px;
}

#title-name {
    font-size: 26px;
    font-weight: 900;
    margin: 15px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    color: var(--v2-lvl-text);
    text-align: center;
}

.rank-gold {
    background: var(--v2-lvl-gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-god {
    background: var(--v2-lvl-god-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 32px !important;
}

.lv-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#lv-badge {
    background: #f1f5f9;
    color: var(--v2-lvl-text);
    font-weight: 900;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 36px;
    flex-shrink: 0;
}

.lv-badge-gold {
    background: var(--v2-lvl-gold-grad) !important;
    color: white !important;
}

.lv-badge-god {
    background: var(--v2-lvl-god-grad) !important;
    color: white !important;
}

.xp-bar {
    width: 100%;
    height: 14px;
    background: #f1f5f9;
    border-radius: 7px;
    overflow: hidden;
    margin-top: 5px;
}

.xp-fill {
    height: 100%;
    background: var(--v2-lvl-primary);
    transition: width 0.8s ease-out;
}

.advice-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
    font-weight: bold;
    margin-top: 15px;
}

.unlock-map {
    margin-top: 4px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roadmap-section {
    border-left: 3px solid var(--v2-lvl-primary);
    padding-left: 3px;
    margin-bottom: 4px;
}

.roadmap-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.roadmap-title {
    font-weight: bold;
    font-size: 16px;
    color: var(--v2-lvl-text);
    display: inline-block;
}

.roadmap-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
}

.roadmap-badge-必須 { background: #10b981; }
.roadmap-badge-premium {
    background: var(--v2-lvl-gold-grad);
    color: black;
    animation: pulse-fade 1.5s infinite ease-in-out;
}
.roadmap-badge-daily { background: #8b5cf6; color: white; }
.roadmap-badge-DAILY { background: #8b5cf6; color: white; }
.roadmap-badge-全プレイ可能 { background: #10b981; color: white; }

.roadmap-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roadmap-items li {
    font-size: 13px;
    color: var(--v2-lvl-text);
    line-height: 1.1;
    padding: 0;
    margin-bottom: 0;
}

.roadmap-items li::before {
    content: none !important;
    display: none !important;
}

.roadmap-items li::marker {
    content: none !important;
    display: none !important;
}

.highlight-quiz {
    color: #ef4444;
    font-size: 15px;
    font-weight: bold;
}

.roadmap-item-cleared .clear-badge {
    display: inline-block;
    background: var(--v2-lvl-accent);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 5px;
}

.roadmap-item-unlock .unlock-text {
    background: var(--v2-lvl-gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    animation: pulse-fade 2s infinite ease-in-out;
}

@keyframes pulse-fade {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.exp-up {
    color: #ef4444;
    font-weight: bold;
    animation: blink-red 1.5s infinite;
}

@keyframes blink-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.gold-blink {
    background: var(--v2-lvl-gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    animation: pulse-fade 1.5s infinite ease-in-out;
}

.chart-box {
    position: relative;
    width: 100%;
    max-width: min(540px, 100vw - 20px);
    margin: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chart-box canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    overflow: visible;
    position: relative;
}

.radar-label {
    position: absolute;
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radar-label:hover {
    background: rgba(59, 130, 246, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.radar-label:active {
    transform: scale(0.98);
}

.radar-tooltip {
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(30, 41, 59, 0.98);
    color: white;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    white-space: pre-line;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px));
    transition: opacity 0.15s ease, transform 0.15s ease;
    max-width: 320px;
    text-align: left;
}

.radar-tooltip.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.radar-tooltip .tooltip-title {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #d97706 0%, #fcd34d 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(217, 119, 6, 0.3);
    padding-bottom: 2px;
    text-align: center;
}

.radar-tooltip .tooltip-content {
    font-size: 14px;
    line-height: 1.3;
    font-weight: bold;
}

.radar-tooltip .tooltip-cap {
    display: block;
    color: #ef4444;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1px;
}

.radar-tooltip .tooltip-note {
    display: block;
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    text-align: left;
}

.radar-tooltip .tooltip-heading {
    display: block;
    text-align: center;
    font-weight: 900;
}

.radar-label-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.radar-label-right-top {
    top: 15%;
    right: 0;
    white-space: normal;
}

.radar-label-right-bottom {
    bottom: 15%;
    right: 0;
}

.radar-label-left-bottom {
    bottom: 15%;
    left: 0;
    white-space: normal;
}

.radar-label-left-top {
    top: 15%;
    left: 0;
    white-space: normal;
    z-index: 1;
}

/* 4角形用の位置 */
.radar-label-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.radar-label-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.radar-label-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .wrapper {
        grid-template-columns: 1fr;
        grid-template-areas: "status" "chart" "todo";
        padding: 10px 5px;
        gap: 15px;
    }
    .card-box {
        padding: 3px;
    }
    #title-name {
        font-size: 22px;
    }
    /* スマホのみチャートを調整 */
    .chart-box {
        max-width: 100%;
        padding: 10px 5px;
    }
    .radar-label {
        font-size: 12px;
        padding: 4px 8px;
    }
    /* スマホ用ツールチップ調整 */
    .radar-tooltip {
        max-width: calc(80vw);
        width: 80%;
        font-size: 13px;
        padding: 10px;
    }
    .radar-tooltip .tooltip-title {
        font-size: 19px;
        text-align: center;
    }
    .radar-tooltip .tooltip-content {
        font-size: 12px;
        font-weight: bold;
    }

    /* スマホ: 級選択エリア */
    .grade-selector-top {
        display: none !important;
    }

    .grade-selector-btn {
        width: 100%;
        justify-content: center;
        font-size: 16px;
    }

    /* スマホ: PC用スキップ設定を非表示 */
    .skip-settings-inline {
        display: none !important;
    }

    .toggle-visibility-btn {
        flex: 0 0 auto;
        min-width: 120px;
    }

    .grade-selector-top.center-mode {
        justify-content: center;
    }

    .grade-selector-top.center-mode .toggle-visibility-btn {
        flex: 0 0 auto;
    }

    /* コンテナの左右paddingを3pxにする */
    .v2-leveling-container {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    /* 枠全体を横幅100%に広げる */
    .skip-settings-mobile {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        padding: 12px 6px !important;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        margin-top: 15px;
    }

    .skip-header-mobile {
        width: 100%;
        text-align: center;
    }

    /* 「スキップ→」の文字も少し大きく */
    .skip-label-mobile {
        display: inline-block;
        margin: 0;
        font-size: 14px !important;
    }

    /* ボタンを1列に並べ、均等に広げるコンテナ */
    .skip-buttons-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        gap: 4px;
        width: 100%;
    }

    /* 各ボタンのラベルコンテナを均等幅(flex: 1)にする */
    .skip-checkbox-label-mobile {
        flex: 1;
        display: flex;
    }

    /* ボタン自体のデザイン調整（文字を大きく、タップ領域を広げる） */
    .skip-checkbox-label-mobile span {
        font-size: 12px !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        width: 100%;
        box-sizing: border-box;
        letter-spacing: -0.5px;
    }
}

/* =============================================================================
   基礎モード用スタイル（V2）
   ============================================================================= */

/* 基礎モード: 棒グラフラベル */
.basic-chart-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 0 40px;
}

.basic-label {
    text-align: center;
    flex: 1;
}

.basic-label-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--v2-lvl-text-primary, #1f2937);
    margin-bottom: 8px;
}

.basic-label-xp {
    font-size: 14px;
    color: var(--v2-lvl-text-secondary, #6b7280);
    font-weight: 600;
}

/* 基礎モード: 棒グラフ色 */
.basic-label-left .basic-label-title {
    color: #3b82f6;
}

.basic-label-right .basic-label-title {
    color: #10b981;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .basic-chart-labels {
        padding: 0 20px;
        margin-top: 15px;
    }
    
    .basic-label-title {
        font-size: 14px;
    }
    
    .basic-label-xp {
        font-size: 12px;
    }
}

/* =============================================================================
   V2 詳細表示モーダル
   ============================================================================= */

.v2-detail-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.v2-detail-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-detail-modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

.v2-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.v2-detail-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
}

.v2-detail-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.v2-detail-modal-close:hover {
    background-color: #f3f4f6;
}

.v2-detail-modal-body {
    padding: 24px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .v2-detail-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .v2-detail-modal-header {
        padding: 16px 20px;
    }
    
    .v2-detail-modal-header h3 {
        font-size: 18px;
    }
    
    .v2-detail-modal-body {
        padding: 20px;
    }
}

/* === スキップ設定のテキストボタン化 === */

/* デフォルトのチェックボックスを非表示 */
.skip-checkbox,
.skip-checkbox-mobile {
    display: none !important;
}

/* ラベルの元の隙間をリセット */
.skip-checkbox-label,
.skip-checkbox-label-mobile {
    gap: 0 !important;
}

/* テキスト部分(span)をボタン風にスタイリング */
.skip-checkbox-label span,
.skip-checkbox-label-mobile span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;        /* OFF時の文字色（グレー） */
    background: #f1f5f9;   /* OFF時の背景色 */
    border: 2px solid #cbd5e1; /* OFF時の枠線 */
    border-radius: 6px;
    padding: 2px 6px;      /* paddingを小さく */
    margin: 2px;           /* marginを小さく */
    transition: all 0.2s ease;
    user-select: none;
    text-align: center;
    cursor: pointer;
}

/* スマホ表示ではさらに文字を少し小さく */
@media (max-width: 768px) {
    .skip-checkbox-label-mobile span {
        font-size: 11px;
    }
}

/* チェックが入った状態（スキップON）のスタイル */
.skip-checkbox:checked + span,
.skip-checkbox-mobile:checked + span {
    background: #ef4444;   /* ON時は赤背景 */
    color: white;          /* ON時は白文字 */
    border-color: #ef4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}
