/* パスワード強度チェッカー専用スタイル */

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

/* 入力セクション */
.input-section {
    margin-bottom: 3rem;
}

.input-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    flex: 1;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    background: #f9fafb;
    transition: all 0.3s ease;
}

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

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.toggle-password-btn:hover {
    color: #3b82f6;
    background: #f3f4f6;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.input-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.clear-btn, .check-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn {
    background: white;
    color: #6b7280;
}

.clear-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

.check-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
}

.check-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* 強度表示セクション */
.strength-section {
    margin-bottom: 3rem;
}

.strength-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.strength-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.strength-score {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
}

.strength-meter {
    background: #f1f5f9;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.strength-bar {
    height: 100%;
    border-radius: 6px;
    transition: all 0.5s ease;
    width: 0%;
}

.strength-label {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 8px;
}

.strength-label.very-weak { background: #fef2f2; color: #dc2626; }
.strength-label.weak { background: #fff7ed; color: #ea580c; }
.strength-label.fair { background: #fefce8; color: #ca8a04; }
.strength-label.good { background: #f0fdf4; color: #16a34a; }
.strength-label.excellent { background: #ecfdf5; color: #059669; }

/* 詳細分析カード */
.analysis-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.analysis-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.analysis-grid {
    display: grid;
    gap: 1rem;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.analysis-item:hover {
    background: #f1f5f9;
}

.analysis-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.analysis-check.passed {
    border-left-color: #10b981;
}

.analysis-check.failed {
    border-left-color: #ef4444;
}

.check-icon {
    font-size: 1.25rem;
    min-width: 24px;
}

.check-text {
    font-weight: 500;
    color: #374151;
}

.check-value {
    font-weight: 600;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

/* 改善ヒントカード */
.hints-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
}

.hints-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.hints-icon {
    width: 24px;
    height: 24px;
    stroke: #3b82f6;
}

.hints-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hint-item {
    margin: 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    color: #374151;
    line-height: 1.5;
}

/* おすすめパスワードセクション */
.recommendations-section {
    margin-bottom: 3rem;
}

.recommendations-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.recommendations-description {
    color: #6b7280;
    margin: 0;
}

.regenerate-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.regenerate-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.regenerate-icon {
    width: 18px;
    height: 18px;
}

.passwords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.password-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.password-text {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    word-break: break-all;
    flex: 1;
    margin-right: 1rem;
}

.password-actions {
    display: flex;
    gap: 0.5rem;
}

.copy-password-btn, .use-password-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-password-btn {
    background: #e5e7eb;
    color: #6b7280;
}

.copy-password-btn:hover {
    background: #3b82f6;
    color: white;
}

.copy-password-btn.copied {
    background: #10b981;
    color: white;
}

.use-password-btn {
    background: #ddd6fe;
    color: #7c3aed;
}

.use-password-btn:hover {
    background: #7c3aed;
    color: white;
}

.copy-icon, .use-icon {
    width: 16px;
    height: 16px;
}

/* 関連ツール誘導セクション */
.related-tool-section {
    margin-bottom: 3rem;
}

.related-tool-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    text-align: center;
}

.related-tool-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.related-tool-icon {
    width: 24px;
    height: 24px;
    stroke: #3b82f6;
}

.related-tool-description {
    color: #6b7280;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.related-tool-actions {
    display: flex;
    justify-content: center;
}

.related-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.related-tool-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.external-link-icon {
    width: 20px;
    height: 20px;
}

/* 使い方説明セクション */
.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, #2563eb);
    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;
    }
    
    .input-card, .strength-card, .analysis-card, .hints-card, .recommendations-card {
        padding: 1.5rem;
    }
    
    .strength-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .strength-score {
        font-size: 1.5rem;
    }
    
    .recommendations-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .passwords-grid {
        grid-template-columns: 1fr;
    }
    
    .password-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .password-text {
        margin-right: 0;
        text-align: center;
    }
    
    .password-actions {
        justify-content: center;
    }
    
    .input-actions {
        flex-direction: column;
    }
    
    .analysis-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .usage-card {
        padding: 1.5rem;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.strength-section {
    animation: fadeIn 0.5s ease-out;
}

.analysis-item, .password-item {
    animation: fadeIn 0.3s ease-out;
}

/* プログレスバーのアニメーション */
.strength-bar {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}