/* 問い合わせAIフォーム - スタイルシート */

:root {
    --primary-color: #4a6bff;
    --primary-hover: #3a5bef;
    --secondary-color: #6c757d;
    --secondary-hover: #5a6268;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --radius: 10px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
}

.main-content {
    min-height: calc(100vh - 240px);
    padding: 30px 0;
}

/* ヘッダー */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), #6e8eff);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.site-tagline {
    margin: 5px 0 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* フォームコンテナ */
.form-container {
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.page-title {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.lead {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

/* フォーム要素 */
.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 107, 255, 0.25);
}

.user-category-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ボタン */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* チャット */
.chat-container {
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: #fcfcfc;
}

.chat-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 18px;
    max-width: 85%;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-message {
    background-color: #e7f3ff;
    margin-left: auto;
    border-bottom-right-radius: 5px;
    color: #333;
}

.ai-message {
    background-color: #f5f5f5;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    color: #333;
}

.chat-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* ローディング */
.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* フッター */
.site-footer {
    background-color: #2d3748;
    color: #cbd5e0;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-link {
    color: #cbd5e0;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .form-container {
        padding: 25px;
    }
    
    .user-category-options {
        grid-template-columns: 1fr;
    }
    
    .chat-message {
        max-width: 90%;
    }
} 