
@media screen and (max-width: 1235px) {
    #sidemenu,
    #logout {
        display: none;
    }
    #login,
    #answer {
        width: auto;
    }
    #nav-title {
        display: none;
    }
}
@media screen and (min-width: 1236px) {
    #menu {
        display: none;
    }
}
main {
    /*display: grid;*/
    display: flex;
}
#nav-title {
    font-weight: bold;
    color: #666666;
}
#sidemenu {
    width: 100px;
    padding-top: 80px;
    /*
    grid-row: 1/2;
    grid-column: 1/2;*/
    background-color: #3e4967;
    min-height: 700px;

}
#sidemenu .nav-item {
    width: 100px;
    height: 100px;
    text-align: center;
    vertical-align: middle;
}
#sidemenu .nav-item.selected-item {
    background-color: #6e778d;
}
#sidemenu a {
    display: block;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: .8rem;
    padding-top: 23px;
}
#sidemenu a:hover {
    color: #ffffff;
    background-color: #6e778d;
    text-decoration: none;
}
#sidemenu i {
    font-size: 2rem;
    display: block;
    margin-bottom:.3rem;
}

#menu i {
    font-size: 1.5rem;
    margin-left: .3rem;
    display: block;
    float: left;
    margin-right: .5rem;
    width: 30px;
    text-align: center;
}
#menu .str {
    display: block;
    /*padding-top: .4rem;*/
}
#menu a {
    padding: 1rem 5rem 1rem 2rem;
}
#container {
    padding-top: 80px;
    overflow: visible;
    flex: 1;
}
.page {
    max-width: 1120px;
    /*max-width: 100%;*/
}
#login {
    max-width: 1120px;
    width: 100%;
}
#result,
#total,
#questionnaire,
#school,
#user {
    width: 1120px;
}
.login-card {
    margin: 100px auto;
    width: 360px;
    text-align: left;
}

nav {
    border-bottom: 1px solid #CCC;
}

/* 年月日入力テキストボックス */
.startDatetimeYmd,
.endDatetimeYmd {
    width: 120px;
}

/* 時分入力テキストボックス */
.startDatetimeHm,
.endDatetimeHm {
    width: 70px;
}

/* 計算問題のプルダウン */
.calcAnswerTextbox {
    display: none;
}
.calcAnswerOuter {
    display: flex;
    align-items: center;
}
.calcAnswerPulldown {
    width: auto;
}

/* エラー表示ボックス */
.errorBoard {
    padding-left: 2rem;
}

/* ラジオボタンやチェックボックスのラベルの2行目以降の水平位置を1行目と合わせる */
.check-indent {
    text-indent: -1rem;
    padding-left: 2rem;
}

/* 計算結果の解答欄 */
.calc-input-box {
    width: 10rem;
}

/* チェックボックスやラジオボタンの親のlabelに指定するためのクリック不可用クラス */
.pointerEvents-none {
    pointer-events: none;
}

/* セルの背景色 */
.bg-pink {
    background-color: #ff89bf
}
.bg-gray {
    background-color: #adb5bd
}
.bg-lightblue {
    background-color: #8ab7ce
}
.bg-green {
    background-color: #96cb8e
}
.bg-yellow {
    background-color: #f7ef81
}
.bg-orange {
    background-color: #ff9b42
}
.bg-red {
    background-color: #ff6b6b
}

/* トップ */
#answer .no-data {
    font-size: 1.75rem;
}
#answer .title {
    font-size: .75rem;
    color: #666666;
}
#answer .notice {
    font-size: .75rem;
    color: #ff0000;
    padding-left: 1rem;
}
#answer .term {
    font-size: .75rem;
    margin-top: .5rem;
}

/* ユーザー管理 一覧 */
#user .search-form .school_code {
    width: 130px;
}
#user .search-form .position {
    width: 100px;
}
#user .search-form .school_year {
    width: 60px;
}
#user .search-form .class {
    width: 130px;
}
#user .list th {
    white-space: nowrap;
}
#user .list th.position {
    width: 80px;
}
#user .list th.buttons {
    width: 160px;
}

/* ユーザー管理 編集 */
#user-edit .school_year {
    width: 60px;
}
#user-edit .class {
    width: 130px;
}

/* アンケート管理 一覧 */
#questionnaire .search-form .school_code {
    width: 130px;
}
#questionnaire .search-form .name {
    width: 200px;
}
#questionnaire .list th {
    white-space: nowrap;
}
#questionnaire .list th.buttons {
    width: 240px;
}

/* アンケート管理 編集 */
.question .card-header,
.question-calc .card-header {
    background: #ffffff;
}
.section-textbox {
    width: 1000px;
}
.question_content {
    width: 800px;
}
.choice_content {
    width: 680px;
}
.choice_classification {
    width: 150px;
}
.choice_weight {
    width: 100px;
}
.btn-delete {
    float: left;
    margin: 8px 8px 8px 0;
}

/* ルビの入力方法ダイアログ */
.rubyManualButton {
    flex-grow: 1;
    text-align: right;
}
.ruby-manual p {
    font-size: .8rem;
}
.ruby-manual table {
    border-collapse: collapse;
    width: 100%;
}
.ruby-manual th,
.ruby-manual td {
    width: 50%;
    border: 1px solid #999999;
    padding: .5rem;
    font-size: .8rem;
}
.ruby-manual th {
    background-color: #dddddd;
}

/* アンケート結果 一覧 */
#result .search-form .questionnaire-ids {
    width: 100%;
}
/*
#result .search-form .position {
    width: 100px;
}
#result .search-form .school_year {
    width: 60px;
}
#result .search-form .class {
    width: 130px;
}
#result .search-form .login_id {
    width: 130px;
}
#result .search-form .start-datetime {
    width: 130px;
}
#result .search-form .end-datetime {
    width: 130px;
}
*/
#result .search-form .answers {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
}
#result .list th {
    white-space: nowrap;
}
#result .list th.position {
    width: 80px;
}


/* 集計・分析 */
#total .search-form .questionnaire-ids {
    width: 100%;
}
#total .chart {
    width: 100%;
    height: 300px;
}
#total .total-condition {
    vertical-align: top;
}
#total .total-print {
    margin-bottom: -30px;
}
#total .total-detail-header {
    text-align: center;
}
#total .total-detail-col {
    margin-left: .5rem;
    margin-right: .5rem;
}
#total .total-tabs {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
#total .total-total-card {
    margin-top: 1rem;
}
#total .total-total-schoolyear {
    padding: 0 1rem 0 1rem;
}
#total .total-total-class {
    padding: .5rem 1rem 1rem 1rem;
}
#total .total-badge {
    padding: .2rem .7rem;
    margin-right: .5rem;
}
#total .total-total-table {
    margin-top: .5rem;
    border-collapse: collapse;
    width: 100%;
}
#total .total-total-table th {
    font-weight: normal;
    padding: .3rem;
    border-bottom: solid 2px #666666;
}
#total .total-total-table td {
    padding: .3rem;
    border-top: solid 1px #666666;
}
#total .total-total-table td:nth-child(2),
#total .total-total-table td:nth-child(3),
#total .total-total-table td:nth-child(4),
#total .total-total-table td:nth-child(5),
#total .total-total-table td:nth-child(6),
#total .total-total-table td.calc-col {
    text-align: center;
}

/* 日別集計タブ */
#total #tab-by-day .total-total-table th:nth-child(1) {
    width: 150px;
}
#total #tab-by-day .total-total-table th:nth-child(2) {
    width: 100px;
    text-align: center;
}
#total #tab-by-day .total-total-table th:nth-child(3) {
    width: 70px;
    text-align: center;
}
#total #tab-by-day .total-total-table th:nth-child(4) {
    width: 100px;
    text-align: center;
}
#total #tab-by-day .total-total-table th:nth-child(5) {
    width: 100px;
    text-align: center;
}
#total #tab-by-day .total-total-table th:nth-child(6) {
    width: 50px;
    text-align: center;
}
#total #tab-by-day .total-total-table th.calc-col {
    width: 80px;
    text-align: center;
}

/* クラス生徒別集計タブ */
#total #tab-by-class .total-total-table th:nth-child(2) {
    width: 70px;
    text-align: center;
}
#total #tab-by-class .total-total-table th:nth-child(3) {
    width: 100px;
    text-align: center;
}
#total #tab-by-class .total-total-table th:nth-child(4) {
    width: 100px;
    text-align: center;
}
#total #tab-by-class .total-total-table th:nth-child(5) {
    width: 50px;
    text-align: center;
}
#total #tab-by-class .total-total-table th:nth-child(6) {
    width: 200px;
    text-align: center;
}
#total #tab-by-class .total-total-table th.calc-col {
    width: 80px;
    text-align: center;
}
#total #tab-by-class .total-total-table .correlationCoefficient {
    width: 120px;
    text-align: center;
}
#total #tab-by-class .total-total-schoolyear:nth-child(n + 2) {
    border-top: 1px dashed rgba(0,0,0,.125);
    padding-top: 1rem;
}

/* 学年クラス別集計タブ */
#total #tab-by-schoolyear .total-total-table th:nth-child(2) {
    width: 100px;
    text-align: center;
}
#total #tab-by-schoolyear .total-total-table th:nth-child(3) {
    width: 100px;
    text-align: center;
}
#total #tab-by-schoolyear .total-total-table th:nth-child(4) {
    width: 50px;
    text-align: center;
}
#total #tab-by-schoolyear .total-total-table th:nth-child(5) {
    width: 200px;
    text-align: center;
}
#total #tab-by-schoolyear .total-total-table th.calc-col {
    width: 80px;
    text-align: center;
}
#total #tab-by-schoolyear .total-total-schoolyear:nth-child(n + 2) {
    border-top: 1px dashed rgba(0,0,0,.125);
}

/* ヒートマップ */
#total .heatmap {
    text-align: center;
}

/* スピナー */
#spinnerModal .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: .15rem;
}