/**
 * フロントエンド用スタイル
 *
 * @package Kaigo_Soudan_AI_Core
 */

/* AI相談フォーム */
.kaigo-ai-consultation {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kaigo-consultation-header {
    text-align: center;
    margin-bottom: 30px;
}

.kaigo-consultation-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.kaigo-consultation-header p {
    color: #7f8c8d;
}

.kaigo-consultation-form {
    margin-top: 30px;
}

.kaigo-consultation-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s;
}

.kaigo-consultation-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.kaigo-form-submit {
    text-align: center;
    margin-top: 20px;
}

.kaigo-consultation-notice {
    margin-top: 20px;
    text-align: center;
}

/* AI回答結果 */
.kaigo-consultation-result {
    margin-bottom: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.kaigo-consultation-result h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
}

.kaigo-ai-response {
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

/* 関連施設・求人 */
.kaigo-related-offices,
.kaigo-related-jobs {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
}

.kaigo-related-offices h5,
.kaigo-related-jobs h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
}

.kaigo-related-offices ul,
.kaigo-related-jobs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kaigo-related-offices li,
.kaigo-related-jobs li {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.kaigo-related-offices li:last-child,
.kaigo-related-jobs li:last-child {
    border-bottom: none;
}

.kaigo-related-offices a,
.kaigo-related-jobs a {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    text-decoration: none;
}

.kaigo-related-offices a:hover,
.kaigo-related-jobs a:hover {
    text-decoration: underline;
}

.kaigo-office-location,
.kaigo-job-type {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.kaigo-consultation-again {
    text-align: center;
    margin-top: 30px;
}

/* 掲載申請フォーム */
.kaigo-submission-form {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kaigo-submission-form h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.kaigo-submission-form h3:first-of-type {
    margin-top: 0;
}

.kaigo-form-row {
    margin-bottom: 25px;
}

.kaigo-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.kaigo-form-row .required {
    color: #e74c3c;
}

.kaigo-form-row input[type="text"],
.kaigo-form-row input[type="email"],
.kaigo-form-row input[type="url"],
.kaigo-form-row input[type="tel"],
.kaigo-form-row input[type="number"],
.kaigo-form-row input[type="date"],
.kaigo-form-row select,
.kaigo-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.kaigo-form-row input:focus,
.kaigo-form-row select:focus,
.kaigo-form-row textarea:focus {
    outline: none;
    border-color: #3498db;
}

.kaigo-form-row .description {
    margin-top: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

/* 申請完了メッセージ */
.kaigo-submission-success {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
}

.kaigo-submission-success h3 {
    color: #155724;
    margin-top: 0;
}

.kaigo-submission-success p {
    color: #155724;
    font-size: 16px;
    line-height: 1.6;
}

/* エラーメッセージ */
.kaigo-submission-errors {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.kaigo-submission-errors ul {
    margin: 0;
    padding-left: 20px;
}

.kaigo-submission-errors li {
    color: #721c24;
    margin-bottom: 5px;
}

/* 広告 */
.kaigo-ad {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.kaigo-ad-label {
    display: inline-block;
    padding: 4px 8px;
    background: #3498db;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* おすすめ施設広告 */
.kaigo-featured-office-ad h4,
.kaigo-featured-job-ad h4 {
    margin: 10px 0;
}

.kaigo-featured-office-ad a,
.kaigo-featured-job-ad a {
    color: #2c3e50;
    text-decoration: none;
}

.kaigo-featured-office-ad a:hover,
.kaigo-featured-job-ad a:hover {
    color: #3498db;
}

.kaigo-ad-location,
.kaigo-ad-job-type,
.kaigo-ad-salary {
    margin: 8px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.kaigo-ad-features {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
}

.kaigo-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ボタン */
.button {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.button:hover {
    background: #2980b9;
    color: #fff;
}

.button-primary {
    background: #3498db;
}

.button-primary:hover {
    background: #2980b9;
}

.button-secondary {
    background: #95a5a6;
}

.button-secondary:hover {
    background: #7f8c8d;
}

/* 施設一覧 */
.kaigo-office-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.kaigo-office-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.kaigo-office-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kaigo-office-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.kaigo-office-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.kaigo-office-card h3 a:hover {
    color: #3498db;
}

.kaigo-office-meta {
    margin: 15px 0;
    font-size: 14px;
    color: #7f8c8d;
}

.kaigo-office-meta-item {
    display: block;
    margin: 5px 0;
}

/* 求人一覧 */
.kaigo-job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.kaigo-job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.kaigo-job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kaigo-job-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.kaigo-job-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.kaigo-job-card h3 a:hover {
    color: #3498db;
}

.kaigo-job-meta {
    margin: 15px 0;
    font-size: 14px;
    color: #7f8c8d;
}

.kaigo-job-meta-item {
    display: block;
    margin: 5px 0;
}

.kaigo-job-salary {
    font-weight: 600;
    color: #27ae60;
    font-size: 16px;
}

/* 検索フォーム */
.kaigo-search-form {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.kaigo-search-form .kaigo-form-row {
    margin-bottom: 15px;
}

.kaigo-search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .kaigo-ai-consultation,
    .kaigo-submission-form {
        padding: 20px;
    }

    .kaigo-office-list,
    .kaigo-job-list {
        grid-template-columns: 1fr;
    }

    .kaigo-search-form-grid {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

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

.kaigo-consultation-result {
    animation: fadeIn 0.5s ease;
}

/* アクセシビリティ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* プリント用スタイル */
@media print {
    .kaigo-consultation-form,
    .kaigo-consultation-again,
    .kaigo-ad {
        display: none;
    }
}
