/* ===== 研修会社比較表ダウンロードページ 追加スタイル ===== */
/* 共通のブランド変数・レイアウトは /whitepaper/style.css を利用 */

/* ----- ワークシート プレビュー画像 ----- */
.cmp-preview-wrap {
    margin-bottom: 20px;
    min-width: 0;
}
.cmp-preview-img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(24, 43, 56, 0.10);
}

/* ----- ダミーフォーム ----- */
.cmp-form { margin-top: 8px; }
.cmp-field { margin-bottom: 12px; }
.cmp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cmp-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 4px;
}
.cmp-req {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}
.cmp-field input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cmp-field input::placeholder { color: #b6c0cd; }
.cmp-field input:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(250, 181, 73, 0.18);
}
.cmp-submit {
    width: 100%;
    margin-top: 4px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-green));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.05s;
}
.cmp-submit:hover { opacity: 0.92; }
.cmp-submit:active { transform: translateY(1px); }
.cmp-submit:disabled { opacity: 0.6; cursor: default; }
.cmp-form-msg {
    margin-top: 10px;
    padding: 10px 12px;
    background: #ecfccb;
    color: #365314;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
}
.cmp-form-msg-error {
    background: #fee2e2;
    color: #b91c1c;
}

/* ----- ワークシート内容 ----- */
.cmp-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 40px 56px;
}
.cmp-block { margin-bottom: 44px; }
.cmp-block:last-child { margin-bottom: 0; }
.cmp-h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
    padding-left: 12px;
    border-left: 4px solid var(--brand-gold);
    margin-bottom: 8px;
}
.cmp-lead {
    font-size: 13px;
    color: var(--brand-mid);
    line-height: 1.7;
    margin-bottom: 16px;
}
.cmp-empty {
    font-size: 14px;
    color: var(--brand-mid);
    padding: 24px;
    background: var(--brand-ivory);
    border-radius: 8px;
    text-align: center;
}
.cmp-source-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
    line-height: 1.6;
}

/* ----- 比較表 ----- */
.cmp-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 720px;
    background: #fff;
}
.cmp-table thead th {
    background: var(--brand-dark);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    white-space: nowrap;
}
.cmp-table tbody td {
    padding: 14px;
    border-top: 1px solid #eef2f6;
    vertical-align: top;
    color: #334155;
    line-height: 1.6;
}
.cmp-table tbody tr:nth-child(even) td { background: #fafbfc; }
.cmp-col-co { width: 200px; }
.cmp-col-fee { width: 220px; }
.cmp-col-hist { width: 90px; text-align: center !important; }
.cmp-co-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--brand-dark);
}
.cmp-co-cell:hover .cmp-co-name { color: var(--brand-green); text-decoration: underline; }
.cmp-co-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
    padding: 3px;
    flex-shrink: 0;
}
.cmp-co-name { font-weight: 700; font-size: 13px; }
.cmp-hist-num { font-size: 20px; font-weight: 700; color: var(--brand-green); }
.cmp-hist-unit { font-size: 12px; color: var(--brand-mid); margin-left: 2px; }

/* ----- 評価リスト ----- */
.cmp-eval-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 720px;
    background: #fff;
}
.cmp-eval-table thead th {
    background: var(--brand-mid);
    color: #fff;
    font-weight: 600;
    padding: 12px 10px;
    text-align: center;
    white-space: nowrap;
}
.cmp-eval-table thead th.cmp-eval-co { text-align: left; }
.cmp-eval-table tbody td {
    padding: 12px 10px;
    border-top: 1px solid #eef2f6;
    text-align: center;
}
.cmp-eval-table tbody tr:nth-child(even) td { background: #fafbfc; }
.cmp-eval-co {
    text-align: left !important;
    font-weight: 700;
    color: var(--brand-dark);
    white-space: nowrap;
}
.cmp-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 20px;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}
.cmp-star { transition: color 0.1s, transform 0.05s; }
.cmp-star:hover { transform: scale(1.15); }
.cmp-star.is-on { color: var(--brand-gold); }

/* ----- メモ ----- */
.cmp-memo {
    width: 100%;
    min-height: 140px;
    padding: 14px 16px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.8;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    resize: vertical;
    /* 罫線ノート風 */
    background-image: linear-gradient(#eef2f6 1px, transparent 1px);
    background-size: 100% 2.0em;
    background-position: 0 1.05em;
    line-height: 2.0em;
}
.cmp-memo::placeholder { color: #b6c0cd; }
.cmp-memo:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(250, 181, 73, 0.18);
}

/* ----- レスポンシブ ----- */
@media (max-width: 900px) {
    .cmp-content { padding: 28px 20px 40px; }
    .cmp-h2 { font-size: 18px; }
    .cmp-block { margin-bottom: 32px; }
}
