@charset "UTF-8";

/* 
base style
*/
body {
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo";
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

/*
title
*/
.header {
    margin: 5px auto;
    width: 800px;
    height: 60px;
    position: relative;
}
.title {
    width: 60%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.title > h1 {
    font-size: 40px;
    margin: 0;
}
.title > img {
    margin: 10px;
}
.reset_button {
    margin: 0 auto;
    width: 15%;
    height: 40px;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 90%;
    transform: translate(-50%, -50%);
}
@media screen and (max-width:800px) {
    .header {
        width: 370px;
        height: 40px;
    }
    .title {
        height: 35px;
        
    }
    .title > h1 {
        font-size: 18px;

    }
    .title > img {
        margin: 5px;
        width: 30px;
        height: 30px;
    }
    .reset_button {
        font-size: 12px;
        height: 25px;
    }
    
}


/*
table
*/
section {
    margin: 10px auto 10px;
}
table {
    background-color: #fff;
    margin: 0 auto;
    border: solid 2px #333;
    border-collapse: separate;
}

th {
    width: 240px;
    border: solid 1px #333;
    border-collapse: separate;
}
td {
    width: 160px;
    height: 40px;
    padding: 0;
    border: solid 1px #333;
    border-collapse: separate;
}
.score-caption {
    width: 220px;
}

@media screen and (max-width:800px) {
    table {
        font-size: 11px;
    }
    th {
        width: 120px;
    }
    td {
        width: 70px;
        height: 30px;
    }
    .score-caption {
        width: 100px;
    }
}


/* table overall style */

.column-heading {
    font-size: 17px;
    font-weight: bold;
}
.total {
    font-size: 17px;
    font-weight: bold;
}
.upper {
    background-color: rgb(255, 230, 230);
}
.upper.total {
    background-color: rgb(255, 200, 200);
}
.lower {
    background-color: rgb(230, 230, 255);
}
.lower.total {
    background-color: rgb(200, 200, 255);
}
.grand.total {
    font-size: 20px;
    height: 50px;
    border-top: 5px double #333;
    background-color: rgb(255, 255, 200);
}
#upper-total, #lower-total {
    border-top: 3px double #333;
}
@media screen and (max-width:800px) {
    .column-heading {
        font-size: 11px;
    }
    .total {
        font-size: 12px;
        height: 30px;
    }
    .grand.total {
        font-size: 14px;
    }
}


/* row  */
.row-index-box {
    display: flex;
    justify-content: center;
    align-items: center;
}
.row-index-box > p {
    width: 65px;
    margin: 0;
}
@media screen and (max-width:800px) {
    .row-index-box > img {
        width: 15px;
        height: 15px;
    }
}


/* 
score
*/
.score-box {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.score {
    margin: 0;
    padding: 0;
    width: 50px;
    height: 25px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #565656;
    border-radius: 5%;
}
.button {
    margin: 0px;
    padding: 0;
    width: 25px;
    height: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}
/* score by checkbox YB */
.score-box-YB {
    height: 60px;
    margin: 0 auto;
    position: relative;
}
.checkbox-container {
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.checkbox {
    width: 17px;
    height: 17px;
}
.score.YB {
    width: 60px;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media screen and (max-width:800px) {
    .score-box {
        gap: 2px;
    }
    .score {
        width: 30px;
        height: 20px;
        font-size: 11px;
    }
    .button {
        width: 15px;
        height: 18px;
        font-size: 11px;
    }
    .score-box-YB {
        height: 50px;
    }
    .checkbox-container {
        gap: 1px;
    }
    .checkbox {
        width: 12px;
        height: 12px;
    }
    .score.YB {
        width: 40px;
    }
}