/* ベース設定 */
.countdown_main {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #374750;
    min-height: 100vh;
    color: #263238;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    min-width: 100vw;
}
.min-w-screen{
    width: 100vw;
}

/* コンテナ */
.countdown_main .container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}



/* メインエリア */
.countdown_main .timer-main {
    background: #374750;
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 8px 32px rgba(0, 96, 100, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid #435c68;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* タイマー表示 */
.countdown_main .timer-display {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown_main .timer-circle {
    position: relative;
    width: 240px;
    height: 240px;
}

.countdown_main .progress-ring {
    transform: rotate(-90deg);
    width: 240px;
    height: 240px;
}

.countdown_main .progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.countdown_main .progress-ring__background {
    stroke: #e1f5fe;
}

.countdown_main .progress-ring__progress {
    stroke: #0277bd;
    stroke-linecap: round;
    stroke-dasharray: 678.58;
    stroke-dashoffset: 678.58; /* 完了状態 */
}

.countdown_main .timer-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.countdown_main .time-text {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: #52c1f3;
    line-height: 1;
}

.countdown_main .time-label {
    display: block;
    font-size: 0.875rem;
    color: #0277bd;
    font-weight: 500;
    margin-top: 4px;
}

/* ステータス表示 */
.countdown_main .timer-status {
    width: 100%;
    text-align: center;
    height: 48px;
}

.countdown_main .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
}

.countdown_main .status-indicator.completed {
    background: #42565f;
    color: #8fd1f0;
}

.countdown_main .status-indicator i {
    font-size: 1rem;
}

/* アクションセクション */
.countdown_main .action-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.countdown_main .action-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    background-color: #CCC;
    color: #FFF;
    cursor: default;
}

.countdown_main .action-button.active {
    background: linear-gradient(135deg, #0288d1 0%, #0277bd 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(2, 119, 189, 0.3);
    cursor: pointer;
}

.countdown_main .action-button.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(2, 119, 189, 0.35);
}

.countdown_main .action-button.active:active {
    transform: translateY(0);
}

.countdown_main .action-button.disabled {
    background: #f5f5f5;
    color: #b0bec5;
    cursor: not-allowed;
    box-shadow: none;
}

.countdown_main .action-button i {
    font-size: 1.2rem;
}

/* セカンダリアクション */
.countdown_main .secondary-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.countdown_main .secondary-button {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #406c7f;
    border-radius: 10px;
    background:rgb(55 71 80);
    color: #a9b6bc;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.countdown_main .secondary-button:hover {
    border-color: #5c97b1;
    background:rgb(55 71 80);
}

.countdown_main .secondary-button i {
    font-size: 1rem;
}



/* モバイル対応 */
@media (max-width: 480px) {
    .countdown_main .container {
        padding: 16px;
        gap: 16px;
    }

    .countdown_main .timer-title {
        font-size: 1.6rem;
    }

    .countdown_main .timer-title i {
        font-size: 1.4rem;
    }

    .countdown_main .timer-main {
        padding: 32px 16px;
        gap: 24px;
        border-radius: 16px;
    }

    .countdown_main .timer-circle {
        width: 200px;
        height: 200px;
    }

    .countdown_main .progress-ring {
        width: 200px;
        height: 200px;
    }

    .countdown_main .progress-ring__circle {
        r: 92px;
        cx: 100px;
        cy: 100px;
    }

    .countdown_main .progress-ring__progress {
        stroke-dasharray: 578.05;
        stroke-dashoffset: 578.05;
    }

    .countdown_main .time-text {
        font-size: 2rem;
    }

    .countdown_main .action-button {
        font-size: 1rem;
        padding: 14px 20px;
        min-height: 52px;
    }

    .countdown_main .secondary-button {
        font-size: 0.85rem;
        padding: 10px 12px;
        min-height: 44px;
    }

    .countdown_main .secondary-actions {
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .countdown_main .timer-circle {
        width: 180px;
        height: 180px;
    }

    .countdown_main .progress-ring {
        width: 180px;
        height: 180px;
    }

    .countdown_main .progress-ring__circle {
        r: 82px;
        cx: 90px;
        cy: 90px;
    }

    .countdown_main .progress-ring__progress {
        stroke-dasharray: 515.22;
        stroke-dashoffset: 515.22;
    }

    .countdown_main .time-text {
        font-size: 1.8rem;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .countdown_main  {
        background: linear-gradient(135deg, #263238 0%, #37474f 50%, #455a64 100%);
    }

    .countdown_main .timer-title {
        color: #4fc3f7;
    }

    .countdown_main .timer-main {
        background: rgba(55, 71, 79, 0.9);
        color: #e1f5fe;
        border-color: rgba(79, 195, 247, 0.2);
    }

    .countdown_main .time-text {
        color: #4fc3f7;
    }

    .countdown_main .time-label {
        color: #81d4fa;
    }

    .countdown_main .status-indicator.completed {
        background: rgba(69, 90, 100, 0.8);
        color: #81d4fa;
    }

    .countdown_main .secondary-button {
        background: rgba(55, 71, 79, 0.8);
        color: #b0bec5;
        border-color: rgba(79, 195, 247, 0.3);
    }

    .countdown_main .secondary-button:hover {
        background: rgba(69, 90, 100, 0.9);
        color: #e1f5fe;
        border-color: rgba(79, 195, 247, 0.5);
    }

    .countdown_main .footer-text {
        color: rgba(79, 195, 247, 0.7);
    }
}
