@charset "utf-8";

/* ##### score table page ##### */

.sub_score .sub_products_wrap {
    margin-bottom: 30px;
}

#score_main .com_continner {
    max-width: 1100px;
    padding: 40px 40px 60px;
}

.score_sheet {
    max-width: 980px;
    margin: 0 auto;
    color: #111111;
    font-size: 1.4rem;
    line-height: 1.5;
}

.score_sheet_title {
    margin: 0 0 1.6rem;
    font-size: 2.2rem;
    letter-spacing: 0.12em;
    font-weight: bold;
    text-align: left;
}

.score_meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem 2rem;
    margin-bottom: 1.6rem;
    align-items: end;
}

.score_meta_item {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    min-width: 0;
}

.score_meta_label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.score_meta_line {
    flex: 1 1 auto;
    border-bottom: 1px solid #111111;
    min-width: 8rem;
    height: 1.6em;
}

.score_meta_date {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    white-space: nowrap;
}

.score_meta_date .score_meta_line {
    flex: 0 0 4.8rem;
    min-width: 4.8rem;
}

.score_meta_judge .score_meta_line {
    flex: 0 0 16rem;
    min-width: 14rem;
}

.score_table_wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.score_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 2px solid #111111;
    background: #ffffff;
}

.score_table th,
.score_table td {
    border: 1px solid #111111;
    vertical-align: middle;
    text-align: center;
    padding: 0;
}

.score_table .col-label {
    width: 11%;
}

.score_table .col-player {
    width: 17.8%;
}

.score_corner {
    position: relative;
    height: 4.8rem;
    background:
        linear-gradient(
            to top right,
            transparent calc(50% - 0.5px),
            #111111 calc(50% - 0.5px),
            #111111 calc(50% + 0.5px),
            transparent calc(50% + 0.5px)
        );
}

.score_corner_set {
    position: absolute;
    left: 8%;
    bottom: 10%;
    font-size: 1.2rem;
}

.score_corner_name {
    position: absolute;
    right: 8%;
    top: 10%;
    font-size: 1.2rem;
}

.score_name_cell {
    height: 3.2rem;
}

.score_set_label {
    font-size: 1.6rem;
    font-weight: bold;
    height: 7.2rem;
}

.score_score_label {
    font-size: 1.2rem;
    height: 2.4rem;
}

.score_total_label,
.score_team_label {
    font-size: 1.2rem;
    height: 3.2rem;
    font-weight: bold;
    letter-spacing: 0;
    font-feature-settings: normal;
}

.score_team_label {
    white-space: nowrap;
    padding: 0 0.15rem;
    overflow: visible;
    line-height: 1.2;
}

.score_blank_cell {
    height: 2.4rem;
}

.score_total_cell,
.score_team_cell {
    height: 3.2rem;
}

.score_pin_grid {
    width: 100%;
    height: 7.2rem;
    border-collapse: collapse;
    table-layout: fixed;
}

.score_pin_grid td {
    border: none;
    border-right: 1px dotted #666666;
    border-bottom: 1px dotted #666666;
    width: 33.333%;
    height: 33.333%;
    padding: 0 0.2rem 0 0.35rem;
    font-size: 1.15rem;
    text-align: left;
    vertical-align: middle;
    line-height: 1;
}

.score_pin_grid tr:last-child td {
    border-bottom: none;
}

.score_pin_grid td:last-child {
    border-right: none;
}

.score_pin_num {
    display: inline-block;
    min-width: 1.1em;
}

.score_notes {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1.2rem;
    font-size: 1.25rem;
    line-height: 1.7;
}

.score_notes_left {
    flex: 1 1 auto;
    text-align: left;
    margin: 0;
}

.score_notes_right {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    margin: 0;
}

.score_notes_right a {
    color: inherit;
    text-decoration: underline;
}

@media screen and (max-width: 900px) {
    #score_main .com_continner {
        padding: 28px 16px 40px;
    }

    .score_sheet_title {
        font-size: 1.9rem;
    }

    .score_meta {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .score_meta_judge .score_meta_line,
    .score_meta_date .score_meta_line {
        flex: 1 1 auto;
    }

    .score_table {
        min-width: 760px;
    }

    .score_notes {
        flex-direction: column;
        gap: 0.6rem;
    }

    .score_notes_right {
        white-space: normal;
        text-align: left;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 6mm;
    }

    html {
        font-size: 11px !important;
    }

    body.sub_score {
        background: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sub_score #com_overlaymenu,
    .sub_score #header_menu,
    .sub_score header {
        display: none !important;
    }

    .sub_score #sub_topheader {
        height: 64px !important;
    }

    .sub_score #sub_header_logodummy {
        display: block !important;
        width: 50px !important;
        height: 42px !important;
        left: 16px !important;
        top: 11px !important;
    }

    .sub_score #sub_header_menudummy {
        display: none !important;
    }

    .sub_score #product_headerttl {
        font-size: 1.6rem !important;
    }

    .sub_score .sub_products_wrap {
        margin: 0 6px 6px !important;
        border-radius: 0 !important;
        background: #ffffff !important;
    }

    .sub_score footer {
        padding: 4px 16px !important;
        font-size: 1.1rem !important;
    }

    #score_main .com_continner {
        padding: 14px 14px 10px !important;
    }

    .score_sheet {
        max-width: none;
        font-size: 1.35rem;
        line-height: 1.4;
    }

    .score_sheet_title {
        margin: 0 0 1rem;
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .score_meta {
        gap: 0.55rem 1.5rem;
        margin-bottom: 1rem;
    }

    .score_meta_line {
        height: 1.4em;
    }

    .score_table_wrap {
        overflow: visible;
    }

    .score_table {
        border-width: 1.5px;
    }

    .score_table .col-label {
        width: 12%;
    }

    .score_corner {
        height: 3.4rem;
    }

    .score_corner_set,
    .score_corner_name {
        font-size: 1.15rem;
    }

    .score_name_cell {
        height: 2.4rem;
    }

    .score_set_label {
        font-size: 1.45rem;
        height: 5.8rem;
    }

    .score_score_label,
    .score_blank_cell {
        font-size: 1.15rem;
        height: 2rem;
    }

    .score_total_label,
    .score_team_label,
    .score_total_cell,
    .score_team_cell {
        font-size: 1.15rem;
        height: 2.4rem;
        letter-spacing: 0 !important;
        font-feature-settings: normal !important;
        white-space: nowrap;
    }

    .score_pin_grid {
        height: 5.8rem;
    }

    .score_pin_grid td {
        font-size: 1.1rem;
        padding: 0 0.15rem 0 0.3rem;
    }

    .score_notes {
        margin-top: 0.8rem;
        font-size: 1.15rem;
        line-height: 1.5;
        gap: 1rem;
    }

    .score_notes_right a {
        text-decoration: none;
    }
}
