body {
    padding-top: 5rem;
}

@media (max-width: 992px) {
    .container {
        max-width: initial;
    }
}

img.logo {
    width: 94px;
    height: auto;
}

a.card,
a.card:hover {
    color: #212529;
    text-decoration: none;
}
a.card {
    margin: 8px 0;
}

div.unit-div_card {
    margin: 8px 0;
}

a.underline {
    text-decoration: underline;
}

/*div.question-image img {*/
/*    width: 100%;*/
/*    max-width: 600px;*/
/*}*/
/*div.question-image img {*/
/*    width: 100%;*/
/*    max-width: 400px;*/
/*}*/
.w-85 {
    width: 85% !important;
}

.w-100px {
    width: 100px;
}
.w-150px {
    width: 150px;
}

.bg-success-light {
    background-color: #d3ecd9;
}
.bg-warning-light {
    background-color: #fff3cd;
}
.bg-danger-light {
    background-color: #f8d7da;
}
.bg-navy {
    background-color: #191970;
}
.bg-purple {
    background-color: #8A2BE2;
}
.bg-coral {
    background-color: #ff7f50;
}

.bg-gray-light {
    background-color: #f2f2f2;
}

.bg-yellow {
    background-color: #fff390;
}

.border-2 {
    border-width: 2px !important;
}

div.maxw-800 {
    width: 100%;
    max-width: 800px;
}

div.maxw-1000 {
    width: 100%;
    max-width: 1000px;
}

.max-width-100 {
    max-width: 100%;
}

.overflow {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.font-50 {
    font-size: 50%;
}
.font-80 {
    font-size: 80%;
}
.font-85 {
    font-size: 85%;
}
.font-90 {
    font-size: 90%;
}
.font-95 {
    font-size: 95%;
}

.h1-5 {
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.2;
}

.pos-relative {
    position: relative;
}
div.vertical-center {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.row-eq-height {
    display: flex;
    flex-wrap: wrap;
}

img.img-w {
    max-width: 75%;
}

img.img-w-lg {
    max-width: 100%;
}

img.img-w-sm {
    max-width: 50%;
}

div.for-print img.img-w {
    max-width: 55%;
}

div.for-print img.img-w-lg {
    max-width: 80%;
}

div.for-print img.img-w-sm {
    max-width: 30%;
}

.card-title {
    margin-bottom: 0.25rem;
}

.btn-hover-lg:hover {
    /*background-color: #d9dadb;*/
    background-color: #e8e9eb;
}

.btn-bgcolor-light-red {
    background-color: #fff0f1;
}

.btn-disabled {
    opacity: 0.6;
}

.line-height-narrow {
    line-height: 1.1;
}

del {
    text-decoration: line-through 2px #ff0000;
}

/* navbar */
div.nav-item__todays {
    padding: 0.5rem;
    font-size: 1rem;
}
/* 固定フッター */


/* マイページ */
.future-goal p {
    margin-bottom: 0;
}

.todays-question__check {
    width: 27px;
    height: auto;
}

td.total-progress__td-desc {
    width: 50px;
}
tr#total-progress__tr-triangle {
    height: 8px;
}
tr#total-progress__tr-top-triangle {
    height: 8px;
}
td#total-progress__td-triangle {
    position: relative;
}
td#total-progress__td-top-triangle {
    position: relative;
}
.triangle-down {
    width: 0;
    height: 0;
    border: 6px solid;
    border-color: black transparent transparent transparent;
}
.triangle-down-red {
    width: 0;
    height: 0;
    border: 6px solid;
    border-color: red transparent transparent transparent;
}
#total-progress__triangle-down {
    position: absolute;
    top: 4px;
    z-index: 2;
}
#total-progress__triangle-down-red {
    position: absolute;
    top: 2px;
    z-index: 1;
}
.total-progress__legend-triangle {
    margin-top: 0.6rem;
}

tr.tr-default-none {
    display: none;
}

.calendar__content {
    height: 300px;
}

.mypage-work__content {
    height: 300px;
}

.tips__content {
    height: 180px;
}

a.comp-btn-mypage {
    width: 46px;
    height: 38px;
}

img.img-comp-btn-mypage {
    width: 20px;
    height: 20px;
}

a.cycle-start-btn {
    width: 120px;
}

img.help-btn {
    width: 21px;
    height: 21px;
}
img.help-btn:hover {
    cursor: pointer;
}
img.help-btn-mypage {
    width: 19px;
    height: 19px;
    position: relative;
    top: -1px;
}
img.help-btn-mypage:hover {
    cursor: pointer;
}
img.help-btn-plan-detail {
    width: 19px;
    height: 19px;
    /*position: relative;*/
    /*top: -3px;*/
}
img.help-btn-plan-detail:hover {
    cursor: pointer;
}
img.help-btn-folder-list {
    width: 21px;
    height: 21px;
    position: relative;
    top: -4px;
}
img.help-btn-folder-list:hover {
    cursor: pointer;
}

button.work-reload-btn {
    padding: 0.1rem 0.1rem 0.2rem; /* なぜか上が空くので、下だけpadding大きく取る */
    width: 32px;
    height: 32px;
}

img.img-work-reload-btn {
    width: 20px;
    height: 20px;
}

img.sgi-badge {
    width: 15px;
    height: auto;
}

img[src="/static/sgi/img/hourglass1.png"].sgi-badge,
img[src="/static/sgi/img/hourglass2.png"].sgi-badge,
img[src="/static/sgi/img/hourglass3.png"].sgi-badge,
img[src="/static/sgi/img/hourglass4.png"].sgi-badge,
img[src="/static/sgi/img/hourglass5.png"].sgi-badge,
img[src="/static/sgi/img/hourglass6.png"].sgi-badge {
    width: 10px;
    height: auto;
}

img.sgi-badge-lg {
    width: 30px;
    height: auto;
}

img[src="/static/sgi/img/hourglass1.png"].sgi-badge-lg,
img[src="/static/sgi/img/hourglass2.png"].sgi-badge-lg,
img[src="/static/sgi/img/hourglass3.png"].sgi-badge-lg,
img[src="/static/sgi/img/hourglass4.png"].sgi-badge-lg,
img[src="/static/sgi/img/hourglass5.png"].sgi-badge-lg,
img[src="/static/sgi/img/hourglass6.png"].sgi-badge-lg {
    width: 20px;
    height: auto;
}

/* モーダル本体の指定 + モーダル外側の背景の指定 */
.modal-container{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0, 0, 0, 50%);
	padding: 40px 20px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
    box-sizing: border-box;
}
/* モーダル本体の擬似要素の指定 */
.modal-container:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
/* モーダル本体に「active」クラス付与した時のスタイル */
.modal-container.active{
	opacity: 1;
	visibility: visible;
}
/* モーダル枠の指定 */
.modal-body{
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 500px;
	width: 90%;
}
/* モーダルを閉じるボタンの指定 */
.modal-close-badge{
	position: absolute;
	display: flex;
    align-items: center;
    justify-content: center;
	top: -10px;
	right: -10px;
	width: 30px;
	height: 30px;
	font-size: 30px;
	color: #fff;
	cursor: pointer;
}
/* モーダル内のコンテンツの指定 */
.modal-content{
	background: #fff;
	text-align: left;
	padding: 30px;
}

/* 獲得バッジ一覧のモーダル */
.modal-container-cbadge{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0, 0, 0, 50%);
	padding: 95px 35px 20px 15px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
    box-sizing: border-box;
}
.modal-container-cbadge:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
.modal-container-cbadge.active{
	opacity: 1;
	visibility: visible;
}

.modal-body-cbadge {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 1000px;
	width: 96%;
}

.modal-close-cbadge {
	position: absolute;
	display: flex;
    align-items: center;
    justify-content: center;
	top: -30px;
	right: -30px;
	width: 30px;
	height: 30px;
	font-size: 30px;
	color: #fff;
	cursor: pointer;
}

.modal-content-cbadge {
	background: #fff;
	text-align: left;
	padding: 15px;
}

div.badge-desc {
    width: 100%;
}

div.flex-badge {
    width: 70px;
    font-size: 80%;
    text-align: center;
}

span.badge-gray-circle {
    display: inline-block;
	width: 30px;
	height: 30px;
	border-radius: 50%;
    background: lightgray;
}

div.badge-all-img {
    height: 56px;
    display: flex;
    justify-content: center;
}

/* 問題一覧画面 */
hr.cours-line {
    height: 3px;
    border: none;
}

.division-row {
    padding-top: 4rem;
    margin-top: -4rem;
}

@media (max-width: 576px) {
    .modal {
        width: 95%;
        height: 90%;
        border: 1px solid #000;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        display: none;
    }
}

@media (min-width: 577px) {
    .modal {
        width: 65%;
        height: 80%;
        border: 1px solid #000;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        display: none;
    }
}

.modal div.modal-content-sgi {
    position: absolute;
    top: 10%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, 0%);
    z-index: 10;
    width: 80%;
}

.modal-content-sgi p {
    font-size: 20px;
}

.modal-content-sgi img {
    width: 100%;
    height: auto;
    margin: 30px 0;
}

.modal-close__wrap {
    margin-bottom: 30px;
}

.modal-close {
    background: transparent;
    border-color: transparent;
    text-decoration: underline;
    padding: 0;
    font-size: 20px;
    text-align: center;
    margin: 0 auto;
    cursor: pointer;
    display: block;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: grey;
    opacity: .6;
    display: none;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
}

.overlay.open {
    display: block;
}
.modal.open {
    display: block;
    overflow: auto;
}

img.icon-relevant {
    position: relative;
    top: -1px;
    margin-right: 5px;
}

/* 問題画面 */
.comp-btn {
    width: 25px;
    height: 25px;
}

.nav-tab-commentary {
    margin-left: 0.5rem;
    margin-bottom: -0.25rem;
}

.nav-tabs .nav-link.active.nav-green {  /* 四択の緑cardのとき */
    color: #495057;
    background-color: #d3ecd9;
    border: 1px solid rgba(0,0,0,.125);
}

.nav-tabs .nav-link.active.nav-red {  /* 四択の赤cardのとき */
    color: #495057;
    background-color: #f8d7da;
    border: 1px solid rgba(0,0,0,.125);
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,.125);
}

.nav-tabs .nav-link {
    color: #fff;
    background-color: #6f757b;
    border: 1px solid rgba(0,0,0,.125);
    /*border-color: #dee2e6;*/
}

.hightlight-keyword {
    /*background-color: #8ACB99;*/
    background-color: #ADDBB8;
}

/* 穴埋め */
.btn-fill-blank {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    background-color: #ffffff;
    color: red;
    border: 1px solid #6c757d;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    /*transition: background-color .15s ease-in-out;*/
    margin: 0 5px;
}

.btn-fill-blank:focus {
  outline: none;
}

.btn-fill-blank:hover {
    background-color: #ebedf0;
}

.btn-fill-blank:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.btn-fill-blank-print {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #6c757d;
    border-radius: 0.25rem;
    margin: 0 2px;
    height: 23px;
}

/* Webテキスト穴埋め関連　ここから */
.btn-fill-blank-text {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    background-color: #ffffff;
    color: red;
    border: 1px solid #6c757d;
    padding: 0.1rem 0.1rem 0.15rem 0.1rem;
    border-radius: 0.25rem;
    margin: 0 2px;
}

.btn-fill-blank-text:focus {
  outline: none;
}

.btn-fill-blank-text:hover {
    background-color: #ebedf0;
}

.btn-fill-blank-text:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.btn-fill-blank-img {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #6c757d;
    padding: 0.1rem 0.1rem;
    border-radius: 0.1rem;
    margin: 0;
}

.btn-fill-blank-img:focus {
  outline: none;
}

.btn-fill-blank-img:hover {
    background-color: #ebedf0;
}

.btn-fill-blank-img:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.did-save-check {
    width: 24px;
    height: auto;
}

/* Webテキスト穴埋め関連　ここまで */

.border-bottom-none {
    border-bottom: 0;
}

button.blank__hiding-answer-btn {
    width: 30px;
    height: 20px;
    margin-top: 0.1rem;
}

/* 関連問題画面 */
button.answer-btn {
    width: 50px;
}

.nav-link-padding-sm {
    padding: 0.25rem 0.5rem!important;
}

div.commentary p {
    margin-bottom: 0;
}

.comp-btn-relevant {
    width: 22px;
    height: 22px;
}

img.relevant-qa-icon {
    max-width: 20px !important;
    height: auto;
}

/* 作品集関連 */
.works-container {
    margin-top: 40px;
}

img.works {
    padding: 5px;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

span.under-red {
    border-bottom: solid 2px red;
}

span.under-red-bold {
    border-bottom: solid 4px red;
}

span.under-blue {
    border-bottom: solid 2px blue;
}

span.under-navy {
    border-bottom: solid 4px #191970;
}

span.under-green {
    border-bottom: solid 4px #53a451;
}

p.under-green {
    border-bottom: solid 4px #53a451;
}

span.under-yellow {
    border-bottom: solid 4px #FFC008;
}

span.red-bold {
    color: red;
    font-weight: bold;
}

hr.works-hr {
    margin-top: 0px;
    height: 1px;
    background-color: black;
    border: none;
}

hr.works-hr-mypage {
    margin: 0 0 0.25rem 0;
    height: 1px;
    background-color: black;
    border: none;
}

.word-break-all {
    word-break: break-all;
}

/* キーワード検索のinput */
@media (max-width: 576px) {
    .pc-keyword-search {
        display: none;
    }

    .mb-keyword-search {
        display: block;
    }

    input.keyword {
        width: 70%;
        margin: -0.075rem 0.5rem 0 0.5rem;
        padding: 0.5em; /* input内側の余白 */
        border: solid 1px #ccc;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
    }
}

@media (min-width: 577px) {
    .pc-keyword-search {
        display: block;
    }

    .mb-keyword-search {
        display: none;
    }

    input.keyword {
        width: 200px;
        margin: -0.075rem 0.5rem 0 0.5rem;
        padding: 0.5em; /* input内側の余白 */
        border: solid 1px #ccc;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
    }
}

/* editor */
.form-editor {
    width: 100%;
    padding: 15px;
    margin: 0 auto;
}

.form-editor textarea {
    width: 100%;
    height: 200px;
    margin: 10px 0;
    padding: 0.5em; /* textarea内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-editor textarea.sentence {
    height: 100px;
}

.form-editor textarea.keyword {
    height: 50px;
}

.form-editor label {
    font-family: "sans-serif", "arial";
    color: #4682b4;
    text-align: left;
    font-weight: bold;
    margin: 0;
}

.form-editor button.deco {
    margin: 0 10px;
}

.saved {
    display: none;
}

.history-saved {
    display: none;
}

hr.editor-hr {
    color:darkgray;
    background-color:darkgray;
    border:none;
    width:100%;
    height:4px;
    margin-top: 50px;
}

/* 建築作品エディタ */
.form-editor-aw input {
    width: 60%;
}

.form-editor-aw textarea {
    width: 100%;
    height: 29px;
    margin-top: 10px;
    padding: 1px 2px;
    border: solid 1px #ccc;
}

.form-editor-aw textarea[name="description1"] {
    height: 60px;
}

.form-editor-aw textarea[name="description2"] {
    height: 60px;
}

.form-editor-aw textarea[name="description3"] {
    height: 60px;
}

.form-editor-aw label {
    font-family: "sans-serif", "arial";
    color: #4682b4;
    text-align: left;
    font-weight: bold;
    margin: 0;
}

.form-editor-aw button.deco {
    margin: 0 10px;
}

/* Webテキストエディタ */
.form-editor textarea#id_law_article {
    height: 50px;
}

/* 問題分類エディタ */
.form-folder input {
    margin: 5px;
    padding: 0.1em 0.5em; /* textarea内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-folder input[name="name"] {
    width: 360px;
}

.form-folder input[name="order"] {
    width: 60px;
}

input[type="checkbox"].other-subject {
    position: relative;
    top: -3px;
    margin-right: 2px;
}

div.scroll {
    height: 500px;
    overflow: auto;
}

.indent1 {
    margin-left: 1rem!important;
}

.indent2 {
    margin-left: 2rem!important;
}

.indent3 {
    margin-left: 3rem!important;
}

/* 履歴の開閉 */
.accordion1 .inner {display: none;}
.accordion1 p{cursor: pointer; padding: 10px;}
.accordion1 p.ac1{
    background: #17a2b8;
    color: white;
}
.accordion1 .inner p {
    padding: 10px;
    border-bottom: dashed 1px #17a2b8;
    background: rgba(24, 162, 184, 0.1);
}

/* create_plan */
.form-plan {
    width: 100%;
    padding: 15px;
    margin: 0 auto;
}

.form-plan textarea {
    width: 100%;
    height: 200px;
    margin: 10px 0;
    padding: 0.5em; /* textarea内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-plan input {
    width: 80px;
    margin: 5px;
    padding: 0.1em 0.5em; /* textarea内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-plan input.input-date {
    width: 160px !important;
}

.form-plan textarea#id_future_goal {
    height: 100px;
}

.form-plan select.form-control {
    width: 80px;
    display: inline;
    height: calc(1.75rem + 6px);
    margin: 5px;
}

.form-plan .small {
    width: 64px !important;
    height: calc(1.75rem + 2px) !important;
    margin: 2px 5px !important;
    padding: 0.25rem 0.25rem 0.25rem 0.75rem !important;
}

.unit-num-help {
    margin-top: -0.25rem;
}
.q-num-help {
    margin-top: -0.25rem;
}

.form-management input {
    margin: 5px 0;
    padding: 0.1em 0.5em; /* textinput内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-management input#id_nickname {
    width: 200px;
}

.form-management input#id_occupation {
    width: 95%;
}

.form-management input.integer-field {
    width: 60px;
}

.form-management input#id_textbook_using {
    width: 95%;
}

.form-management label {
    margin-right: 10px;
    font-weight: bold;
    color: #5b5b5b;
}

.form-management ul.errorlist {
    padding: 0;
    margin-bottom: 0.1rem;
    list-style: none;
}

.form-management ul.errorlist li {
    color: red;
}

/*.form-editor .form-control {*/
    /*position: relative;*/
    /*box-sizing: border-box;*/
    /*height: auto;*/
    /*padding: 10px;*/
    /*font-size: 16px;*/
    /*margin-bottom: 10px;*/
/*}*/
/*.form-editor .form-control:focus {*/
    /*z-index: 2;*/
/*}*/

.form-inquiry {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.form-inquiry input[type="text"] {
    width: 800px;
    margin: 10px 0;
    padding: 0.25em 0.5em; /* input内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-inquiry textarea {
    width: 100%;
    height: 200px;
    margin: 10px 0;
    padding: 0.25em 0.5em; /* textarea内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-mock-exam {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.form-address .last-name {
    margin-right: 1rem;
}
.form-address #id_last_name, #id_first_name, #id_zoom_name, #id_address1 {
    width: 180px;
}
.form-address #id_zip_code1 {
    width: 70px;
}
.form-address #id_zip_code2 {
    width: 80px;
}
.form-address #id_tel {
    width: 200px;
}
.form-address input::placeholder {
    color: #a9a9a9;
}

/* 製図問題エディタ（記述） */
.form-editor-drf-desc textarea {
    width: 100%;
    height: 42px;
    margin: 10px 0 0 0;
    padding: 0.5em; /* textarea内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-editor-drf-desc label {
    font-family: "sans-serif", "arial";
    color: #4682b4;
    text-align: left;
    font-weight: bold;
    margin: 0;
}

.form-editor-drf-desc button.deco {
    margin: 0 10px;
}

.form-editor-drf-pq textarea {
    width: 100%;
    height: 200px;
    margin: 10px 0;
    padding: 0.5em; /* textarea内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-editor-drf-pq label {
    font-family: "sans-serif", "arial";
    color: #4682b4;
    text-align: left;
    font-weight: bold;
    margin: 0;
}

.form-editor-drf-pq button.deco {
    margin: 0 10px;
}

.table-address th {
    background-color: rgba(0, 0, 0, 0.05);
    width: 25%;
}

.table-apply-basic-course th {
    background-color: rgba(0, 0, 0, 0.05);
    width: 18%;
}

.table-zoom-name th {
    background-color: rgba(0, 0, 0, 0.05);
    width: 60%;
}

div.translucent {
    opacity: 0.5;
}

/* calendar */
.calendar-title {
    text-align: center;
}

.calendar-title a {
    cursor: pointer;
}

.pointer {
    cursor: pointer;
}

.calendar-table {
    margin: 0 auto;
    table-layout:fixed;
}
.calendar-table .is-today {
    color: red;
}

.calendar-table td, .calendar-table th {
    padding: 0.2rem 0.4rem;
}
.calendar-table td {
    font-size: 0.8rem;
    line-height: 22px;
}

.calendar-table tr.calendar-row {
    height: 60px;
}

@media (max-width: 576px) {
    .calendar-table td .all-num {
        font-size: 1.2rem;
        text-align: center;
        margin-top: 0.25rem !important;
    }
}
@media (min-width: 577px) {
    .calendar-table td .all-num {
        font-size: 1.6rem;
        text-align: center;
        margin-top: 0.25rem !important;
    }
}

@media (max-width: 576px) {
    .calendar-table td .study-time {
        font-size: 0.8rem;
        text-align: center;
    }
}
@media (min-width: 577px) {
    .calendar-table td .study-time {
        font-size: 0.8rem;
        margin: auto 0.3rem;
    }
}

.calendar-table td .td-content {
    margin: 0 auto;
}

.calendar-table td .unit-num {
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    line-height: 18px;
    background: #d3ecd9;
}

.calendar-table td .week-unit-num {
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    line-height: 18px;
    background: #d3ecd9;
}

/*.calendar-table td img.triangle {*/
/*    position: relative;*/
/*    right: 0;*/
/*    bottom: -2px;*/
/*    width: 20px;*/
/*    height: auto;*/
/*}*/

.maru {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    line-height: 20px;
    /*text-align: center;*/
    background: pink;
}

.tweet-color {
    background-color: #4ca0eb;
    color: white !important;
}

/* お知らせ詳細 */
table.table-news td.td-news-date {
    padding: 0.25rem 0.75rem;
}
table.table-news th.th-news-title {
    font-size: 120%;
}

/* フィルタして印刷　filter画面 */
input[type="checkbox"].unit-checkbox {
    position: relative;
    top: -3px;
    margin-right: 2px;
}

input[type="checkbox"].unit-all {
    position: relative;
    top: -2px;
    margin-right: 2px;
}

/* フィルタして印刷　filtered画面 */
input[type="radio"].radio-lead {
    position: relative;
    top: -2px;
    margin-right: 2px;
}

table.print-table td {
    padding-left: 0;
}

table.print-table-pq td {
    padding-bottom: 3rem;
}

/* 問題文のときのwidth */
table.print-table td.q-no {
    width: 65px;
}
table.print-table td.question {
    width: 1045px;
}

/* 解説文のときのwidth */
table.print-table td.q-no-answer {
    width: 80px;
}
table.print-table td.commentary {
    width: 1030px;
}

/* 解説文四択のときのwidth */
table.print-table td.q-no-answer-pq {
    width: 85px;
}
table.print-table td.commentary-pq {
    width: 1025px;
}

/* 模擬テスト */
@media (max-width: 576px) {
    table.mock-exam-result-table {
        max-width: 100%;
    }
}
@media (min-width: 577px) and (max-width: 991px) {
    table.mock-exam-result-table {
        max-width: 80%;
    }
}
@media (min-width: 992px) {
    table.mock-exam-result-table {
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    table.mock-exam-history-table {
        max-width: 100%;
    }
}
@media (min-width: 577px) and (max-width: 991px) {
    table.mock-exam-history-table {
        max-width: 85%;
    }
}
@media (min-width: 992px) {
    table.mock-exam-history-table {
        max-width: 55%;
    }
}

table.mock-exam-history-table th.date th.score th.link {
    width: 20%;
}
table.mock-exam-history-table th.year {
    width: 15%;
}
table.mock-exam-history-table th.subject {
    width: 25%;
}

table.mock-exam-history-table th, table.mock-exam-history-table td {
    padding: 0.5rem;
}

.btn-hover-lg-for-secondary:hover {
    background-color: #e8e9eb;
    color: #6c757d;
}

a.bg-danger-light:hover {
    background-color: #ebcacd;
}

button.bg-danger-light-for-secondary:hover {
    background-color: #ebcacd;
    color: #6c757d;
}

/* 追加厳選問題 */
table.table-additional-pack tr th {
    width: 20%;
}

.additional-pack-desc-title {
    display: inline-block;
    border-bottom: solid 4px darkblue;
}

.additional-pack-desc-apply {
    line-height: 150%;
}

/* Webテキスト */
a.anchor{
    display: block;
    padding-top: 70px;
    margin-top: -70px;
}

.matome-blue {
    background-color: #D9EDF7;
    /*border-color: #BCE8F1;*/
    padding: 15px;
    margin-bottom: 20px;
}

.matome-pink {
    background-color: #ffd4d4;
    padding: 15px;
    margin-bottom: 20px;
    display: inline-block;
}

.bg-blue-light {
    background-color: #c8e3ee;
}

.bg-blue-super-light {
    background-color: #f2f9fc;
}

.bg-pink {
    background-color: #ffd4d4;
}

.bg-orange-light {
    background-color: #f7e3d1;
}

.bg-purple-light {
    background-color: #e5d2db;
}

.bg-gray {
    background-color: #cccccc;
}

.table-bg-gray {
    background-color: #dddddd;
}

.text-blue {
    color: blue;
    font-weight: bolder;
}

.text-green-thin {
    color: #559337;
}

.text-blue-thin {
    color: blue;
}

.text-purple-thin {
    color: purple;
}

.text-gunjo {
    color: #4e67b0;
}

.text-black {
    color: #212529;
}

a.text-black:hover {
    /*color: #0056b3;*/
    /*color: #1f4369;*/
    color: #212529;
}

.border-black {
    padding: 0.75rem;
    border: 2px solid #343a40;
}

.table-bordered.table-webtext {
    border: 1px solid black;
}

.table-bordered.table-webtext.outer-frame-bold {
    border: 2px solid black;
}

.table-bordered.table-webtext > thead > tr > th {
    border:1px solid black;
}
.table-bordered.table-webtext > tbody > tr > td {
    border:1px solid black;
}
.table-bordered.table-webtext > tbody > tr > th {
    border:1px solid black;
}

.table-webtext-100vw {
    width: 100vw;
}

.table-webtext th, .table-webtext td {
    padding: 0.25rem;
}
.table-webtext tbody {
    border: 1px solid black !important;
}

table.no-padding td {
    padding: 0.1rem;
}

table.little-padding th, table.little-padding td {
    padding: 0.5rem;
}

table.table-fixed {
    table-layout: fixed;
}

th.col-thin-header {
    width: 40px;
}

th.col-thin, td.col-thin {
    width: 13%;
}

table#table-temperature-index td.col-thin-header {
    width: 22%;
}

td.one-third {
    width: 33%;
}

.border-left-bold {
    border-left: 2px solid black !important;
}

#id_table_kozo3_2 div.MathJax_Display {
    text-align: center !important;
}
#id_table_kozo3_2 img {
    max-width: 200px !important;
}

#id_table_kozo3_6 {
    max-width: 90%;
}

#id_table_kozo3_6 div.MathJax_Display {
    text-align: center !important;
}

#id_table_kozo4_1 div.MathJax_Display {
    text-align: center !important;
}

#id_table_kozo4_1 td {
    text-align: center;
}

#id_table_kozo4_2 div.MathJax_Display {
    text-align: center !important;
}

#id_table_kozo4_2 td {
    text-align: center;
}

#id_table_kozo5_2 div.MathJax_Display {
    text-align: center !important;
}

#id_table_kozo5_2 td {
    text-align: center;
    vertical-align: middle;
}

#id_table_kozo5_3 td {
    text-align: center;
    vertical-align: middle;
}

#id_table_kozo5_5 div.MathJax_Display {
    text-align: center !important;
}

select.audio-mode {
    width: 140px;
    display: inline;
    height: calc(1.75rem + 2px);
    margin: 5px;
    padding: 0.25rem;
}

select.audio-speed {
    width: 70px;
    display: inline;
    height: calc(1.75rem + 2px);
    margin: 5px;
    padding: 0.25rem;
}

/* テキスト購入 */
input[type="checkbox"].textbook-checkbox {
    position: relative;
    top: -3px;
    margin-right: 2px;
}

.dark-blue-underline {
    border-bottom: solid 4px darkblue;

    /*display: inline-block;*/
    /*border-bottom: solid 4px darkblue;*/
}

/* 法令集　borderなしtable */
.table-noborder td {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

td.no-border-top {
    border-top: 0 !important;
}

td.no-border-bottom {
    border-bottom: 0 !important;
}

td.no-border-left {
    border-left: 0 !important;
}

td.no-border-right {
    border-right: 0 !important;
}

.table-law th, .table-law td {
    padding: 0.25rem;
}

.table-stats-textbook th, .table-stats-textbook td {
    padding: 0.5rem;
}

/* 復習で理解度選択 */
input[type="checkbox"].comp-checkbox {
    position: relative;
    top: 1px;
    margin-right: 2px;
}

/* 学習管理（カレンダー詳細） */
.open-slide-toggle:after,
.open-slide-toggle.active:after {
    margin-left: 5px;
}

.open-slide-toggle.active::after {
    content: "▲";
}

.open-slide-toggle.active#lap-schedule-toggle::before {
    content: "非";
}

.open-slide-toggle::after {
    content: "▼";
}

.open-slide-toggle:hover {
    cursor: pointer;
}

#weekly-message-error {
    display: none;
}

.red-exclamation {
    position: relative;
    top: -2px;
    width: 18px;
    height: auto;
}

.ac-test-card p {
    margin-bottom: 0;
}

/* analysis_sheet */
table.table-analysis-sheet {
    table-layout: fixed;
}
table.table-analysis-sheet th, table.table-analysis-sheet td, table.table-analysis-sheet-update th, table.table-analysis-sheet-update td {
    padding: 0.25rem;
}
table.table-analysis-sheet-update td.td-evaluation, table.table-analysis-sheet-update td.td-goal-evaluation {
    padding: 0.25rem 0;
}
table.table-analysis-sheet th.th-unit-name {
    width: 190px;
    /*width: 17%;*/
}
table.table-analysis-sheet th.th-comprehension {
    width: 134px;
    /*width: 12%;*/
}
table.table-analysis-sheet th.th-allotment {
    width: 67px;
    /*width: 6%;*/
}
table.table-analysis-sheet th.th-evaluation {
    width: 78px;
    /*width: 7%;*/
}
table.table-analysis-sheet th.th-goal-evaluation {
    width: 78px;
    /*width: 7%;*/
}
table.table-analysis-sheet th.th-mock-exam1 {
    width: 78px;
    /*width: 7%;*/
}
table.table-analysis-sheet th.th-mock-exam2 {
    width: 78px;
    /*width: 7%;*/
}
table.table-analysis-sheet th.th-mock-exam3 {
    width: 78px;
    /*width: 7%;*/
}
table.table-analysis-sheet th.th-mock-exam4 {
    width: 78px;
    /*width: 7%;*/
}
table.table-analysis-sheet th.th-memo {
    width: 257px;
    /*width: 23%;*/
}

.form-analysis-sheet {
    width: 100%;
    padding: 15px;
    margin: 0 auto;
}

.form-analysis-sheet input {
    width: 40px;
    margin: 5px;
    padding: 0.1em 0.25em; /* input内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.form-analysis-sheet textarea.memo {
    width: 200px;
    height: 70px;
}

.form-analysis-sheet select.form-control {
    width: 55px;
    display: inline;
    height: calc(1.75rem + 6px);
    margin: 5px;
    padding: 0.25rem;
}

.help-btn-top-minus-margin {
    margin-top: -0.25rem;
}

/* 付箋メモ機能 */
.circle {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
}

.circle-small {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    position: relative;
    top: -1px;
}

.form-memo-tag-name input {
    width: 170px;
    margin: 5px;
    padding: 0.1em 0.25em; /* input内側の余白 */
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

span.memo-radio-label {
    position: relative;
    top: -2px;
    margin-right: 2px;
}

/* 講座動画一覧ページ */
.youtube {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.youtube iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Q&A */
.qa-question:hover {
    cursor: pointer;
}

img.border1 {
    border: 1px solid #aaa;
}

/* 音声ファイル一覧 */
table.audio-table td {
    padding: 0.5rem 0.25rem 0.25rem 0.25rem !important;
}

/* ランキング */
table.ranking-table td.rank {
    width: 60%;
}
table.ranking-table td.q-num {
    width: 40%;
}

table.ranking-table td {
    padding: 0.5rem;
}

.border-warning-bold {
    border: 3px solid #ffc107!important;
}

/* 製図 */
div.drafting-box-bold {
    border: 2px solid #343a40;
}

div.drafting-box {
    padding: 0.25rem;
    border: 1px solid #343a40;
    text-decoration: underline dotted 1px #888888;
}

body.body-drafting {
    padding-top: 3rem!important;
}

.container-drafting {
    width: 100%;
    max-width: 1230px;
    /*padding-right: 15px;*/
    /*padding-left: 15px;*/
    /*margin-right: auto;*/
    /*margin-left: auto;*/
}

/*@media (min-width: 576px) {*/
/*  .container-drafting {*/
/*    max-width: 576px;*/
/*  }*/
/*}*/

/*@media (min-width: 768px) {*/
/*  .container-drafting {*/
/*    max-width: 768px;*/
/*  }*/
/*}*/

/*@media (min-width: 992px) {*/
/*  .container-drafting {*/
/*    max-width: 992px;*/
/*  }*/
/*}*/

/*@media (min-width: 1200px) {*/
/*  .container-drafting {*/
/*    max-width: 1200px;*/
/*  }*/
/*}*/

div.drafting-img-container {
    position: relative;
    width: 1000px;
    height: 713px;
}

div.drafting-img-container-large {
    position: relative;
    width: 1200px;
    height: 856px;
    overflow: scroll;
}

div.drafting-img-container-component {
    position: relative;
    width: 400px;
    height: 270px;
}

img.drafting-img {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 丸囲み文字を表示 */
span.border-circle {
    padding: 0 0.2em;
	position: relative;
}

/* afterで丸枠を生成 */
span.border-circle::after {
	content: '';
	position: absolute;
	display: block;
	top: 47%;
	left: 1px;
	transform: translateY(-50%);
	width: 1.2em;
	height: 1.2em;
	border: 1px solid black;
	border-radius: 50%;
}

button.play {
    height: 40px;
}
