body { font-family: 'Helvetica Neue', Arial, 'Hirino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif; background-color: #ECEEF3; color: #2D3748; margin: 0; padding: 0; padding-top: 64px; padding-bottom: 48px; }
.main-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #800000; border-top: 1px solid rgba(255,255,255,0.15); height: 48px; display: flex; align-items: center; }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; text-align: center; width: 100%; }
.main-footer p { margin: 0; font-size: 12px; color: rgba(255,255,255,0.6); }
.main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #800000; border-bottom: 1px solid rgba(255,255,255,0.15); }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 10px 5px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-cta-btn { background: #B8973E; color: #fff; border: none; padding: 10px 22px; border-radius: 2px; font-size: 14px; font-weight: 700; cursor: pointer; letter-spacing: 0.05em; line-height: 1.4; transition: background 0.2s, transform 0.2s; }
.nav-cta-btn:hover { background: #9A7B2F; transform: translateY(-1px); }
.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: inline; } .nav-logo img { height: 32px; } .nav-cta-btn { font-size: 12px; padding: 8px 14px; } body { padding-top: 56px; padding-bottom: 36px; } }
.no-chrome { padding-top: 0 !important; padding-bottom: 0 !important; }
.main { max-width: 1100px; margin: 20px auto; padding: 0; box-sizing: border-box; }
.title-bar { background: linear-gradient(135deg, #1B2A4A, #2D4A6B); color: white; text-align: center; padding: 20px 10px; font-size: 40px; font-weight: bold; border-radius: 0; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); margin-bottom: 30px; letter-spacing: 10px; border-bottom: 4px solid #B8973E;}
.card { margin-bottom: 20px; }
.description { background-color: #DDE3EE; padding: 10px 20px 10px 24px; font-size: 20px; line-height: 1.9; border-left: 5px solid #1B2A4A;}
.setumei { margin: 0; padding: 0; }
.input-form { border: 1px solid #666; border-radius: 10px; overflow: hidden; }
.input-group-header { font-size: 24px; color: #000; font-weight: bold; padding: 10px 20px; text-align: left; }
.input-group:nth-of-type(1) .input-group-header { background-color: #1B2A4A; color: #fff; }
.input-group:nth-of-type(2) .input-group-header { background-color: #2E4D3A; color: #fff; }
.input-group:nth-of-type(3) .input-group-header { background-color: #3D2B5E; color: #fff; }
.input-group:nth-of-type(4) .input-group-header { background-color: #1C4A4A; color: #fff; }
.input-group-body { display: flex; align-items: center; background-color: #fff; padding: 10px 0; }
.icon-cell { display: flex; align-items: center; justify-content: center; flex-basis: 120px; flex-shrink: 0; padding: 20px;}
.icon-cell i { font-size: 6rem; }
.input-group:nth-of-type(1) .icon-cell i { color: #2D5A8E; }
.input-group:nth-of-type(2) .icon-cell i { color: #276749; }
.input-group:nth-of-type(3) .icon-cell i { color: #553C9A; }
.input-group:nth-of-type(4) .icon-cell i { color: #2C7A7B; }
.input-cell { padding: 15px; text-align: center; display: flex; align-items: center; justify-content: center; flex-basis: 180px; flex-shrink: 0; }
.description-cell { text-align: left; font-size: 20px; color: #333; padding: 15px 20px; flex-grow: 1; line-height: 1.6; }
.description-cell span{font-size: 16px;}
.input { width: 100%; max-width: 120px; height: 50px; font-size: 20px; text-align: center; border: 2px solid #2D5A8E; border-radius: 2px; box-sizing: border-box; transition: all 0.3s; }
.input:focus { border-color: #1B2A4A; box-shadow: 0 0 8px rgba(27, 42, 74, 0.4); outline: none; }
.button-area { text-align: center; margin-top: 30px; }
.submitbtn, .clearbtn { padding: 12px 20px; border: none; border-radius: 3px; font-size: 22px; font-weight: bold; cursor: pointer; transition: all 0.3s; width: 100%; max-width: 300px; margin: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); letter-spacing: 0.08em; }
.submitbtn { background-color: #800000; color: #fff; border-radius: 10px;}
.submitbtn:hover { background-color: #162239; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(27,42,74,0.35); }
.clearbtn { background-color: #4A5568; color: #fff; }
.clearbtn:hover { background-color: #2D3748; }
.result-card { margin-top: 30px; border: 6px solid #1B2A4A; border-top: 10px solid #800000; background: #fff; padding: 20px; border-radius: 0;}
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid #666; border-radius: 0; overflow: hidden; }
.result-grid-header { background-color: #2E4D3A; color: white; padding: 15px; text-align: center; font-weight: bold; border-bottom: 1px solid #666; font-size: 28px;}
.result-grid-header:first-child { border-right: 1px solid #666; }
.result-grid-cell { height: 120px; padding: 15px; text-align: center; display: flex; align-items: center; justify-content: center; }
.result-grid-cell:nth-child(3) { border-right: 1px solid #666; }
.total-result-grid { display: grid; grid-template-columns: 180px 1fr; margin-top: 20px; border: 1px solid #666; border-radius: 0; overflow: hidden; }
.total-result-header { background-color: #1B2A4A; color: white; padding: 15px; text-align: center; font-weight: bold; border-bottom: 1px solid #666; font-size: 28px;}
.total-result-header:first-child { border-right: 1px solid #666; }
.total-result-cell { padding: 20px; display: flex; align-items: center; justify-content: center; }
.total-result-cell:nth-child(3) { border-right: 1px solid #666; }
.comment-cell { flex-direction: column; align-items: flex-start; justify-content: center; gap: 15px; }
.comment-item { line-height: 1.6; font-size: 20px;}
.error-message { color: #D32F2F; text-align: center; font-weight: bold; }
.total-rank-title { text-align: center; color: #1B2A4A; }
.total-result-container-sp { border: 1px solid #666; border-radius: 0; overflow: hidden; margin-top: 20px; }
.total-result-header-sp { background-color: #1B2A4A; color: white; padding: 15px; text-align: center; font-weight: bold; }
.total-result-cell-sp { padding: 15px; border-top: 1px solid #666; min-height: 150px; display: flex; justify-content: center; align-items: center; flex-direction: column; }
.total-result-cell-sp.comment-cell { align-items: flex-start; gap: 15px; }
.total-result-cell-sp .comment-item { width: 100%; text-align: left; line-height: 1.6;}
.levelA, .levelB, .levelC, .levelD, .levelE, .levelX { font-size: 3.5rem; font-weight: bold; }
.levelA { color: #276749; }
.levelB { color: #2B6CB0; }
.levelC { color: #B8973E; }
.levelD { color: #C05621; }
.levelE { color: #9B2C2C; }
.levelX { color: #718096; }
.chui { background-color: #fcfcfc; border: 1px solid #ccc; border-left: 4px solid #888; border-radius: 0; padding: 20px 20px; margin: 20px auto 20px auto; font-size: 12px; color: #666; line-height: 1.6; max-width: 820px; }
#page-top { position: fixed; right: 20px; bottom: 20px; background-color: #1B2A4A; color: #fff; width: 50px; height: 50px; border-radius: 50%; text-align: center; line-height: 50px; font-size: 1.5rem; font-weight: bold; text-decoration: none; box-shadow: 0 2px 8px rgba(27,42,74,0.4); display: none; z-index: 1001; transition: background-color 0.3s, transform 0.3s; }
#page-top:hover { background-color: #B8973E; transform: translateY(-2px); }
@media (max-width: 768px) {
    .main { padding: 0 10px; margin-top: 10px; }
    .title-bar { font-size: 1.4rem; padding: 8px 10px; border-radius: 0; letter-spacing: normal; margin: 0 24px 0px; }
    .description { font-size: 11px; padding: 3px 5px 3px 5px; line-height: 1.7; }
    .input-group { border-bottom: none; border: 1px solid #999; border-radius: 0; margin-bottom: 0px; }
    .input-group-header { font-size: 1rem; padding: 8px 12px; border-radius: 0; }
    .input-group-header .step-num { font-size: 1.8rem; font-weight: bold; margin-right: 6px; vertical-align: middle; line-height: 1; }
    .input-group-body { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0; }
    .icon-cell { order: 1; padding: 10px 8px; flex-basis: 64px; flex-shrink: 0; align-self: center; }
    .icon-cell i { font-size: 2.4rem; }
    .input-cell { order: 2; flex-basis: auto; flex: 1; width: auto; padding: 10px 12px; border: none; display: flex; justify-content: center; align-items: center; }
    .input-cell .input { width: 100%; max-width: 140px; }
    .description-cell { order: 3; flex-basis: 100%; width: 100%; font-size: 13px; padding: 8px 12px 12px 12px; border-left: none; border-top: 1px solid #eee; line-height: 1.5; }
    .description-cell span { font-size: unset; }
    .result-card { padding: 15px; }
    .result-grid { grid-template-columns: 1fr 1fr; }
    .result-grid-header { padding: 10px 5px; font-size: 0.9rem;}
    .result-grid-cell { padding: 15px 5px; }
    .levelA, .levelB, .levelC, .levelD, .levelE, .levelX { font-size: 3.2rem; }
    .submitbtn, .clearbtn { max-width: 100%; margin: 8px 0; }
    .button-area { display: flex; flex-direction: column; }
    #page-top { width: 40px; height: 40px; line-height: 40px; font-size: 1.2rem; right: 15px; bottom: 15px; }
    .main-footer { height: auto; }
    .footer-container { padding: 6px 10px; }
    .main-footer p { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}