/* ルーレットツール専用スタイル */

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* 設定セクション */
.settings-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.input-group label {
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.input-group textarea {
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.input-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-count {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* ルーレットセクション */
.roulette-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    border: 4px solid #374151;
    background: conic-gradient(
        #ef4444 0deg 72deg,
        #f97316 72deg 144deg,
        #eab308 144deg 216deg,
        #22c55e 216deg 288deg,
        #3b82f6 288deg 360deg
    );
    transition: transform 0.1s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* スピニングアニメーションは削除（JavaScriptで直接制御） */

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: #374151;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.center-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pointer {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 30px solid #dc2626;
    transform: translateY(-50%);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* セグメント表示 */
.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

/* コントロール */
.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.start-btn, .reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.start-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.start-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.start-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.reset-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

/* 結果表示 */
.result-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-left: 4px solid #22c55e;
}

.result-card {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.result-title {
    font-size: 2rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 1.5rem;
}

.result-item {
    font-size: 2.5rem;
    font-weight: bold;
    color: #22c55e;
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid #22c55e;
    word-break: break-word;
}


/* 使い方説明セクション */
.usage-section {
    margin: 3rem 0;
}

.usage-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
}

.usage-steps {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.25rem 0;
}

.step-content p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.feature-list, .use-cases {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.feature-list h4, .use-cases h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

.feature-list ul, .use-cases ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.feature-list li, .use-cases li {
    color: #6b7280;
    line-height: 1.5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .subtitle {
        font-size: 1rem;
    }
    
    .settings-section, .roulette-section, .result-section {
        padding: 1.5rem;
    }
    
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    .wheel-segment {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .center-circle {
        width: 50px;
        height: 50px;
    }
    
    .center-circle::after {
        width: 16px;
        height: 16px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .start-btn, .reset-btn {
        min-width: 200px;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
    
    .result-item {
        font-size: 2rem;
        padding: 1rem;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .usage-card {
        padding: 1.5rem;
    }
}