@charset "UTF-8";
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans JP', sans-serif; background-color: #f3f4f6; color: #333; font-size: 15px; line-height: 1.6; padding-bottom: 70px; }
.hdr-logo-area{padding-top: 13px;}
.hdr-bg { position: fixed; top: 0; width: 100%; height: 60px; background: #fff; border-bottom: 2px solid #800000; z-index: 990; }
.hdr { position: fixed; top: 0; width: 100%; height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; z-index: 1000; }
.hdr-logo { width: 180px; }
.hdr-center { font-size: 16px; color: #1565C0; flex: 1; text-align: center; font-weight: bold; }
.hdr-menu { font-size: 2.5rem; color: #1565C0; cursor: pointer; z-index: 1100; position: relative; }
.sp-menu-overlay { position: fixed; top: 60px; right: 0; width: 100%; max-width: 300px; height: calc(100vh - 60px); background: #fff; transform: translateX(100%); transition: 0.3s; z-index: 995; box-shadow: -2px 0 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; visibility: hidden; }
.sp-menu-overlay.active { transform: translateX(0); visibility: visible; }
.sp-menu-overlay a, .usage-modal-btn { display: block; padding: 20px; border-bottom: 1px solid #eee; color: #1565C0; text-decoration: none; cursor: pointer; font-weight: bold; }
.main { max-width: 1000px; margin: 80px auto 20px; padding: 0 20px; }
.pdf-header-title { text-align: center; margin-bottom: 15px; border-bottom: 3px double #1565C0; padding-bottom: 5px; display: none; }
.pdf-header-title h1 { font-size: 26px; color: #1565C0; }
.compact-card { background: #fff; border-radius: 8px; padding: 18px; margin-bottom: 12px; border: 1px solid #ddd; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.info-header { border-bottom: 2px solid #1565C0; margin-bottom: 10px; padding-bottom: 6px; display: flex; justify-content: space-between; align-items: flex-end; }
.info-header h2 { font-size: 22px; color: #1565C0; }
.ans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 25px; }
.ans-item { display: flex; border-bottom: 1px solid #eee; padding: 6px 0; align-items: flex-start; }
.ans-full { grid-column: span 2; flex-direction: column; }
.ans-label { width: 180px; font-weight: bold; color: #003366; font-size: 12px; flex-shrink: 0; background: #a1bfff; padding: 2px 6px; }
.ans-full .ans-label { width: 100%; margin-bottom: 4px; }
.ans-val { color: #000; word-break: break-all; font-size: 12px; padding-left: 8px; }
.ans-full .ans-val { padding-left: 0; }
.sec-title { font-size: 20px; color: #fff; border-left: 6px solid #1565C0; padding:5px 10px; margin-bottom: 15px; background-color: #003366;}
.sec-title-sub { font-size: 12px; font-weight: normal; margin-left: 12px; opacity: 0.8; }
.diag-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: center; padding-left: 40px; }
.diag-img-box { display: flex; align-items: center; }
.diag-img-box img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; margin-left: 0; }
.score-rank { display: flex; align-items: stretch; background: #fff; border-radius: 8px; margin-bottom: 10px; border: 1px solid #eee; overflow: hidden; }
.score-rank-lbl { writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 0.2em; background: #a1bfff; color: #003366; font-size: 13px; font-weight: bold; padding: 8px 12px; display: flex; align-items: center; justify-content: center; }
.score-rank .val { flex: 1; display: flex; align-items: center; justify-content: center; }
.s-box, .r-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lbl { font-size: 14px; color: #fff; margin-bottom: 2px; font-weight: bold;}
.val { font-size: 38px; font-weight: 900; color: #000; }
.rank-c { color: #e53e3e; }
.chart-wrap { height: 340px; width: 100%; position: relative; }
.eval-row { display: flex; gap: 15px; align-items: stretch; margin-top: 15px; }
.eval-row .score-rank { flex-shrink: 0; width: 120px; align-items: stretch; justify-content: flex-start; margin-bottom: 0; }
.eval-row .eval-box { flex: 1; margin-top: 0; }
.eval-box { background: #f0f7ff; padding: 15px; border-radius: 6px; font-size: 17px; border-left: 5px solid #1565C0; margin-top: 15px; }
.res-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.res-table th { background: #a1bfff; color: #003366; padding: 10px; border: 1px solid #ddd; font-size: 14px; white-space: nowrap; width: 80px; }
.res-table td { text-align: center; padding: 5px 30px; border: 1px solid #ddd; font-size: 28px; font-weight: bold; }
.res-table td.res-comment { font-size: 14px; font-weight: normal; text-align: left; vertical-align: middle; padding: 10px 15px; }
.res-note { font-size: 12px; color: #666; margin-top: 8px; }
.shoiken-desc { font-size: 18px; color: #333; line-height: 1.8; padding: 10px 5px; background: #fff0f3; }
.res-table th.th-vert { writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 0.2em; width: 6em; padding: 6px 4px; }
.comment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 15px; }
.cmt strong { display: block; margin-bottom: 4px; }
.btn-dl { background: #2b6cb0; color: #fff; padding: 10px 100px; border: none; border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 1.6rem; display: block; margin: 0 auto; }
.bottom-action-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; margin-top: 40px; }
.cta-box { background: #f9e3f7; border: 2px solid #c34ab9; border-radius: 12px; padding: 28px 40px; width: 100%; max-width: 100%; text-align: center; margin-top: 40px;}
.cta-box-title { font-size: 22px; font-weight: bold; color: #333; margin-bottom: 22px; }
.cta-flow { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 18px; }
.cta-flow-item { font-size: 18px; color: #444; padding: 4px 0; }
.cta-flow-arrow { font-size: 16px; color: #8bc34a; line-height: 1; }
.btn-cta-orange { display: inline-block; background: linear-gradient(0deg, #b30000, #ff3333); color: #fff; text-decoration: none; border-radius: 25px; font-weight: bold; padding: 16px 50px; font-size: 1.2rem; }
.btn-cta-orange:hover { opacity: 0.9; }
.feedback-card { flex: 2; margin-bottom: 0; border: none; box-shadow: none; padding: 0; background: transparent; }
.feedback-title { margin-bottom: 10px; font-size: 18px; }
.feedback-success { background: #e8f5e9; color: #2e7d32; padding: 15px; border-radius: 5px; margin-bottom: 15px; font-weight: bold; border: 1px solid #c8e6c9; }
.pdf-btn-wrap { flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding-top: 20px;}
.feedback-flex-row { display: flex; gap: 15px; margin-bottom: 15px; align-items: stretch; }
.feedback-textarea { flex: 1; height: 100px; padding: 15px; border: 1px solid #ddd; border-radius: 8px; resize: none; font-size: 16px; }
.btn-gray { background: #718096; color: #fff; border: none; padding: 0 40px; border-radius: 8px; font-weight: bold; cursor: pointer; display: flex; align-items: center; }
.btn-gold { background: linear-gradient(0deg, #fbbf24, #d97706); color: #fff; text-decoration: none; border-radius: 20px; font-weight: bold; width: 100%; text-align: center; display: flex; align-items: center; justify-content: center; height: 60px; font-size: 1.1rem; margin-top: 16px; }
.footer { position: fixed; bottom: 0; width: 100%; background: #1b2a4a; color: #fff; padding: 15px; text-align: center; font-size: 13px; z-index: 1000; border-top: 2px solid #800000; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: 0.3s; }
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-window { background: #fff; width: 90%; max-width: 600px; max-height: 85vh; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.modal-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
.modal-body { padding: 20px; overflow-y: auto; line-height: 1.7; }
.modal-footer { padding: 15px; border-top: 1px solid #eee; text-align: center; }
.btn-modal-close { background: #1565C0; color: #fff; border: none; padding: 10px 40px; border-radius: 6px; cursor: pointer; font-weight: bold; }

@media print { .no-print { display: none !important; } .pdf-header-title { display: block; } .main { margin: 0; padding: 0; max-width: 100%; } body { background: #fff; padding-bottom: 0; } .compact-card { box-shadow: none; border: 1px solid #eee; } .shoiken-desc { font-size: 13px; } }
/* --- PDF生成時（html2pdf pdf-modeクラス） --- */
.pdf-mode .shoiken-desc { font-size: 16px !important; height: 300px !important; overflow: hidden; }/* PDF生成モード（html2pdf用） */
#pdf-area.pdf-mode { font-size: 10px; line-height: 1.3; }
.pdf-mode ~ * , #pdf-area.pdf-mode { box-sizing: border-box; }
#pdf-area.pdf-mode .pdf-header-title { display: block; margin-bottom: 15px; padding-bottom: 3px; }
#pdf-area.pdf-mode .pdf-header-title h1 { font-size: 20px; }
#pdf-area.pdf-mode .compact-card { padding: 5px 10px; margin-bottom: 4px; }
#pdf-area.pdf-mode .info-header { margin-bottom: 4px; padding-bottom: 3px; }
#pdf-area.pdf-mode .info-header h2 { font-size: 13px; }
#pdf-area.pdf-mode .ans-grid { gap: 2px 12px; }
#pdf-area.pdf-mode .ans-item { padding: 1px 0; }
#pdf-area.pdf-mode .ans-label { font-size: 9px; width: 110px; }
#pdf-area.pdf-mode .ans-val { font-size: 9px; }
#pdf-area.pdf-mode .ans-full { padding: 0px; }
#pdf-area.pdf-mode .sec-title { font-size: 12px; margin-bottom: 5px; }
#pdf-area.pdf-mode .sec-title-sub { font-size: 9px;}
#pdf-area.pdf-mode .diag-split { gap: 8px; grid-template-columns: 1.2fr 1fr; }
#pdf-area.pdf-mode .diag-img-box img { max-height: 300px; width: 100%; object-fit: contain !important; height: auto; margin-left: 0; }
#pdf-area.pdf-mode .score-rank { padding: 4px; margin-bottom: 0; }
#pdf-area.pdf-mode .eval-row { gap: 6px; margin-top: 4px; flex-direction: row; align-items: stretch; }
#pdf-area.pdf-mode .eval-row .score-rank { width: 70px; flex-direction: column; }
#pdf-area.pdf-mode .eval-row .score-rank .score-rank-lbl { writing-mode: vertical-rl; letter-spacing: 0.2em; padding: 8px 6px; font-size: 11px; }
#pdf-area.pdf-mode .eval-row .score-rank .val { font-size: 20px; padding: 4px; }
#pdf-area.pdf-mode .val { font-size: 20px; }
#pdf-area.pdf-mode .chart-wrap { height: 280px; }
#pdf-area.pdf-mode .eval-box { font-size: 14px; padding: 6px; margin-top: 0;line-height: 1.8;}
#pdf-area.pdf-mode .res-table th { padding: 4px; font-size: 10px; }
#pdf-area.pdf-mode .res-table td { font-size: 16px; padding: 4px 20px; }
#pdf-area.pdf-mode .res-table td.res-comment { font-size: 14px; padding: 4px 6px; line-height: 1.8; height:160px;}
/* スマホCSSによるgridレイアウトをPDFではtableに戻す */
#pdf-area.pdf-mode .res-table { display: table; width: 100%; border-collapse: collapse; margin-bottom: 8px; border: none; border-radius: 0; overflow: visible; grid-template-columns: none; }
#pdf-area.pdf-mode .res-table tbody { display: table-row-group; }
#pdf-area.pdf-mode .res-table tr { display: table-row; }
#pdf-area.pdf-mode .res-table th,
#pdf-area.pdf-mode .res-table td { display: table-cell; width: auto; border: 1px solid #ddd; grid-column: auto; grid-row: auto; }
#pdf-area.pdf-mode .comment-grid { gap: 6px; font-size: 10px; }
.pdf-only-footer { display: none; }
#pdf-area.pdf-mode .pdf-only-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #ccc; margin-top: 10px; padding-top: 6px; padding-right: 8px; font-size: 10px; color: #666; }
@media (max-width: 768px) {
    /* Body */
    body { font-size: 14px; padding-bottom: 60px; }

    /* Header */
    .hdr-center { display: none; }
    .hdr-logo { width: 130px; }
    .hdr { padding: 0 12px; }

    /* Main */
    .main { padding: 0 10px; margin-top: 70px; }
    .compact-card { padding: 12px 10px; margin-bottom: 10px; }

    /* Info header */
    .info-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .info-header h2 { font-size: 16px; }
    .info-meta { font-size: 12px; }

    /* Answer grid */
    .ans-grid { grid-template-columns: 1fr; gap: 4px 0; }
    .ans-full { grid-column: span 1; }
    .ans-label { width: 112px; font-size: 11px; }
    .ans-val { font-size: 12px; }

    /* Section title */
    .sec-title { font-size: 14px; padding: 5px 8px; }
    .sec-title-sub { font-size: 11px; margin-left: 6px; }

    /* Results table
       Row1: 名刺獲得\nランク(ラベル左) | D(値右)
       Row1: 名刺ラベル | 名刺D ‖ 商談ラベル | 商談D
       Row2: 総合評価ラベル(3列分) | 総合D
       Row3: コメント(全幅)
    */
    .res-table { display: grid; grid-template-columns: 1fr 52px 1fr 52px; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; margin-bottom: 15px; }
    .res-table tbody, .res-table tr { display: contents; }
    /* 全th・td の既存borderをリセット、thのwidth固定を解除 */
    .res-table th, .res-table td { border: none; width: 100%; }
    /* 名刺獲得ランク ラベル (col1, row1) */
    .res-table tr:nth-child(1) > th:nth-child(1) { grid-column: 1; grid-row: 1; background: #a1bfff; color: #003366; font-size: 13px; font-weight: bold; padding: 10px 8px; text-align: left; white-space: normal; border-bottom: 1px solid #ddd; border-right: 1px solid #ddd; display: flex; align-items: center; justify-content: flex-start; }
    /* 名刺ランク値 (col2, row1) */
    .res-table tr:nth-child(1) > td:nth-child(2) { grid-column: 2; grid-row: 1; font-size: 32px; font-weight: bold; text-align: center; padding: 6px 4px; background: #fff; border-right: 1px solid #8899cc; border-bottom: 1px solid #ddd; display: flex; align-items: center; justify-content: center; }
    /* 商談獲得ランク ラベル (col3, row1) */
    .res-table tr:nth-child(2) > th:nth-child(1) { grid-column: 3; grid-row: 1; background: #a1bfff; color: #003366; font-size: 13px; font-weight: bold; padding: 10px 8px; text-align: left; white-space: normal; border-bottom: 1px solid #ddd; border-right: 1px solid #ddd; display: flex; align-items: center; justify-content: flex-start; }
    /* 商談ランク値 (col4, row1) */
    .res-table tr:nth-child(2) > td:nth-child(2) { grid-column: 4; grid-row: 1; font-size: 32px; font-weight: bold; text-align: center; padding: 6px 4px; background: #fff; border-bottom: 1px solid #ddd; display: flex; align-items: center; justify-content: center; }
    /* 総合評価 ラベル (col1-2, row2) */
    .res-table tr:nth-child(1) > th.th-vert { grid-column: 1 / 3; grid-row: 2; writing-mode: horizontal-tb; letter-spacing: 0; width: auto; background: #a1bfff; color: #003366; font-size: 13px; font-weight: bold; padding: 10px 8px; text-align: center; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; border-top: 1px solid #ddd; display: flex; align-items: center; justify-content: center; margin-top: 24px; }
    /* 総合評価値 (col3-4, row2) */
    .res-table tr:nth-child(1) > td:nth-child(4) { grid-column: 3 / 5; grid-row: 2; font-size: 32px; font-weight: bold; text-align: center; padding: 6px 4px; background: #fff; border-bottom: 1px solid #ddd; border-top: 1px solid #ddd; display: flex; align-items: center; justify-content: center; margin-top: 24px; }
    /* コメント (全幅, row3) */
    .res-table tr:nth-child(1) > td.res-comment { grid-column: 1 / -1; grid-row: 3; font-size: 13px; font-weight: normal; text-align: left; padding: 12px; background: #fff; }
    /* ランク値spanの背景をリセット */
    .res-table td span { background: transparent !important; }
    .res-note { font-size: 11px; }

    /* Diag split */
    .diag-split { grid-template-columns: 1fr; padding-left: 0; gap: 12px; }
    .diag-img-box img { max-height: 220px; }
    .chart-wrap { height: 260px; }

    /* Eval row */
    .eval-row { flex-direction: column; gap: 8px; margin-top: 10px; }
    .eval-row .score-rank { width: 100%; flex-direction: row; align-items: center; margin-bottom: 0; }
    .eval-row .score-rank .score-rank-lbl { writing-mode: horizontal-tb; letter-spacing: 0; padding: 10px 14px; font-size: 14px; }
    .eval-row .score-rank .val { font-size: 28px; padding: 10px; }
    .eval-row .eval-box { margin-top: 0; font-size: 13px; padding: 10px; }

    /* General val size */
    .val { font-size: 28px; }

    /* Eval box */
    .eval-box { font-size: 14px; padding: 10px 12px; }

    /* Comment grid */
    .comment-grid { grid-template-columns: 1fr; gap: 10px; }

    /* Shoiken desc */
    .shoiken-desc { font-size: 14px; padding: 8px; }

    /* Bottom actions */
    .bottom-action-row { margin-top: 24px; gap: 10px; }
    .btn-dl { padding: 12px 0; font-size: 1.2rem; width: 90%; }

    /* CTA box */
    .cta-box { padding: 18px 14px; }
    .cta-box-title { font-size: 16px; margin-bottom: 14px; }
    .cta-flow-item { font-size: 14px; }
    .btn-cta-orange { padding: 14px 16px; font-size: 1rem; display: block; width: 100%; text-align: center; }

    /* Feedback */
    .feedback-flex-row { flex-direction: column; gap: 8px; }
    .btn-gray { padding: 15px; justify-content: center; width: 100%; }
    .feedback-textarea { height: 80px; font-size: 15px; }

    /* Modal */
    .modal-window { width: 95%; max-height: 90vh; }
    .modal-body { padding: 14px; font-size: 13px; }

    /* Footer text */
    .footer { padding: 10px; font-size: 12px; }
}