/* ==========================================================================
   AI業務改善コンシェルジュ - 専用CSS
   ========================================================================== */

/* ステップインジケーター */
.concierge-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 50px;
    max-width: 600px;
}
.concierge-steps .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}
.concierge-steps .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    z-index: 1;
}
.concierge-steps .step-item.active .step-circle {
    background: var(--main-color);
    color: #fff;
}
.concierge-steps .step-item.completed .step-circle {
    background: var(--main-color);
    color: #fff;
}
.concierge-steps .step-label {
    font-size: 1.2rem;
    margin-top: 8px;
    color: #999;
    text-align: center;
    transition: color 0.3s ease;
}
.concierge-steps .step-item.active .step-label,
.concierge-steps .step-item.completed .step-label {
    color: var(--main-color);
    font-weight: bold;
}
.concierge-steps .step-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 -10px;
    margin-bottom: 24px;
    transition: background 0.3s ease;
}
.concierge-steps .step-line.active {
    background: var(--main-color);
}

/* コンテンツパネル */
.concierge-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}
.concierge-panel h2 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}
.concierge-panel .step-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.5rem;
}
.step-content {
    display: none;
}
.step-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

/* Step 1: 職種選択ボタン */
.job-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.job-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 90px;
}
.job-btn:hover {
    border-color: var(--main-color);
    background: var(--main-bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 28, 33, 0.15);
}
.job-btn.selected {
    border-color: var(--main-color);
    background: var(--main-bg-color);
    box-shadow: 0 2px 8px rgba(184, 28, 33, 0.2);
}
.job-btn .job-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}
.job-btn .job-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

/* その他入力 */
.custom-job-input {
    margin-top: 20px;
    text-align: center;
}
.custom-job-input input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.6rem;
    outline: none;
    transition: border-color 0.2s;
}
.custom-job-input input:focus {
    border-color: var(--main-color);
}
.custom-job-input .custom-job-submit {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 30px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.custom-job-input .custom-job-submit:hover {
    background: var(--main-color-dark);
}
.custom-job-input .custom-job-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Step 2: タスクタグ選択 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    min-height: 50px;
}
.task-tag {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    background: #fff;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
    user-select: none;
    animation: tagAppear 0.3s ease forwards;
    opacity: 0;
}
.task-tag:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}
.task-tag.selected {
    border-color: var(--main-color);
    background: var(--main-color);
    color: #fff;
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tag-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}
.tag-loading .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--main-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* カスタムタグ入力 */
.custom-tag-input {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}
.custom-tag-row {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.custom-tag-row input {
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.4rem;
    outline: none;
    width: 220px;
    transition: border-color 0.2s;
}
.custom-tag-row input:focus {
    border-color: var(--main-color);
}
.custom-tag-row button {
    padding: 8px 18px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.custom-tag-row button:hover {
    background: var(--main-color-dark);
}
.custom-tag-row button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.next-btn {
    display: block;
    margin: 30px auto 0;
    padding: 14px 50px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.next-btn:hover {
    background: var(--main-color-dark);
    transform: translateY(-1px);
}
.next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Step 3: ボトルネック入力 */
.bottleneck-area {
    max-width: 600px;
    margin: 0 auto;
}
.bottleneck-area textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1.8;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.bottleneck-area textarea:focus {
    border-color: var(--main-color);
}
.bottleneck-area .optional-label {
    display: inline-block;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 12px;
}
.diagnose-btn {
    display: block;
    margin: 30px auto 0;
    padding: 16px 60px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.1em;
}
.diagnose-btn:hover {
    background: var(--main-color-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(184, 28, 33, 0.3);
}

/* Step 4: 診断結果 */
.loading-analysis {
    text-align: center;
    padding: 40px 20px;
}
.loading-analysis .progress-bar-container {
    max-width: 500px;
    margin: 20px auto;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.loading-analysis .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color), #e74c3c);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}
.loading-analysis .loading-message {
    font-size: 1.6rem;
    color: #555;
    margin-top: 15px;
    min-height: 2.4rem;
}
.loading-analysis .loading-icon {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 15px;
    animation: pulse 1.5s ease infinite;
}

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

/* 診断結果カード */
.result-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease;
}
.result-card .result-header {
    background: linear-gradient(135deg, var(--main-color), #c0392b);
    color: #fff;
    padding: 25px 30px;
}
.result-card .result-header h3 {
    color: #fff;
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.4;
}
.result-card .result-body {
    padding: 30px;
}
.result-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.result-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.result-section h4 {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 10px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.result-section p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}
ul.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.result-list li {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #444;
    padding: 6px 0 6px 20px;
    position: relative;
}
ul.result-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border-radius: 50%;
}

/* CTA */
.result-cta {
    text-align: center;
    margin-top: 40px;
}
.result-cta .cta-main-btn {
    display: inline-block;
    padding: 18px 50px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}
.result-cta .cta-main-btn:hover {
    background: var(--main-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 28, 33, 0.3);
    color: #fff;
    text-decoration: none;
}
.result-cta .retry-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 30px;
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
}
.result-cta .retry-btn:hover {
    border-color: #999;
    color: #333;
}

/* ヒーローセクション */
.concierge-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.concierge-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(184, 28, 33, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(184, 28, 33, 0.1) 0%, transparent 50%);
}
.concierge-hero .container {
    position: relative;
    z-index: 1;
}
.concierge-hero h1 {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #fff;
}
.concierge-hero .hero-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}
.concierge-hero .hero-badge {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 選択中のサマリー表示 */
.selection-summary {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: #666;
    text-align: center;
}
.selection-summary strong {
    color: var(--main-color);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .job-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .job-btn {
        padding: 15px 8px;
        min-height: 75px;
    }
    .job-btn .job-icon {
        font-size: 2rem;
    }
    .concierge-hero h1 {
        font-size: 2.4rem;
    }
    .result-card .result-header {
        padding: 20px;
    }
    .result-card .result-body {
        padding: 20px;
    }
    .concierge-steps .step-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .job-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .concierge-hero {
        padding: 60px 0 40px;
    }
    .concierge-hero h1 {
        font-size: 2rem;
    }
    .tag-container {
        gap: 8px;
    }
    .task-tag {
        padding: 8px 14px;
        font-size: 1.3rem;
    }
    .result-cta .cta-main-btn {
        padding: 15px 30px;
        font-size: 1.6rem;
    }
}
