@charset "UTF-8";
/*
Theme Name: 埼玉県健康づくり事業団 デジタル保健室テーマ
Theme URI: https://www.saitama-kenkou.or.jp/
Description: 埼玉県健康づくり事業団向け 予防医療・デジタル保健室統合テーマ
Version: 2.5.0
Author: 埼玉県健康づくり事業団
*/

* {
    box-sizing: border-box;
}

/* 医療・福祉向けユニバーサルデザインフォント設定 */
body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", "Yu Gothic", sans-serif;
    background-color: #f1f5f9;
    margin: 0;
    padding: 0;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

#digital-hoken-section {
    width: 100%;
    padding: 40px 10px;
}

.hoken-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    background: #ffffff;
    padding: 45px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
    border: 2px solid #7dd3fc;
}

/* ヘッダー全体を美しく中央揃え */
.hoken-header {
    text-align: center;
    margin-bottom: 35px;
}

.hoken-badge {
    display: inline-block;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.hoken-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.hoken-header p {
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 750px;
    text-align: center;
}

.hoken-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ffffff;
    color: #0284c7;
    border: 2px solid #0284c7;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.98rem;
    transition: all 0.25s ease;
}

.tab-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.hoken-form {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #bae6fd;
    border-radius: 14px;
    font-size: 1.05rem;
    color: #0f172a;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

textarea:focus {
    border-color: #0284c7;
}

#hoken-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
}

#hoken-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

#hoken-loading {
    text-align: center;
    padding: 35px 10px;
}

#hoken-loading i {
    font-size: 2.8rem;
    color: #0284c7;
    margin-bottom: 14px;
}

#hoken-loading p {
    color: #0284c7;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
}

#hoken-result-box {
    margin-top: 35px;
    background: #f8fafc;
    border: 2px solid #38bdf8;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.result-box-header {
    border-bottom: 2px solid #bae6fd;
    padding-bottom: 14px;
    margin-bottom: 22px;
}

#hoken-summary-badge {
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1rem;
    display: inline-block;
}

/* AIアドバイス本文のテキスト設定 */
#hoken-result-text {
    color: #1e293b;
    line-height: 1.95;
    font-size: 1.05rem;
    white-space: pre-wrap;
    margin-bottom: 28px;
    text-align: left;
}

/* 職種見出し（<strong>）のデザイン強化 */
#hoken-result-text strong {
    color: #0369a1;
    font-weight: 700;
    font-size: 1.18rem;
    display: block;
    margin-top: 24px;
    margin-bottom: 8px;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 4px;
}

.memo-trigger-box {
    text-align: center;
    background: #e0f2fe;
    padding: 22px 18px;
    border-radius: 14px;
    border: 1px dashed #0284c7;
    margin-bottom: 20px;
}

.memo-trigger-box p {
    font-size: 0.92rem;
    color: #0369a1;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.memo-trigger-box button {
    background: #0f766e;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.reset-btn-box {
    text-align: center;
    margin-top: 25px;
    border-top: 1px dashed #bae6fd;
    padding-top: 22px;
}

#hoken-reset-btn {
    background: #ffffff;
    color: #0284c7;
    border: 2px solid #0284c7;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

#hoken-reset-btn:hover {
    background: #0284c7;
    color: #ffffff;
}

#doctor-memo-box {
    margin-top: 25px;
    background: #ffffff;
    border: 2px solid #0f766e;
    border-radius: 14px;
    padding: 24px;
}

#doctor-memo-box h4 {
    color: #0f766e;
    font-size: 1.1rem;
    margin-top: 0;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 10px;
}

#doctor-memo-content {
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.8;
    white-space: pre-wrap;
    text-align: left;
}

.memo-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 12px;
    margin-bottom: 0;
}

.hoken-disclaimer {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}

.hoken-disclaimer p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .hoken-container {
        padding: 30px 20px;
        border-radius: 18px;
    }
    .memo-trigger-box button, #hoken-reset-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hoken-tabs {
        flex-direction: column;
        gap: 8px;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}