/* 上書き */
body {
    line-height: 1.0;
    margin: 10px;
}

header {
    background-color: rgb(237, 28, 36);
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.8em;
}

.header_logo {
    width: auto;
    height: 25px;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: rgb(237, 28, 36);
    color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.footer_logo {
    height: 40px;
    width: 136px;
}

.container {
    flex: 1;
    width: 60%;
    max-width: 450px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

main {
    margin-top: 60px;
    margin-left: 5px;
    margin-bottom: 250px;
}

canvas {
    margin-bottom: 10px;
}

/* 通常のボタン色 */
.btn-outline-primary,
.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
    color: rgb(237, 28, 36);
    border-color: rgb(237, 28, 36);
}

/* focusされた時の枠線の色 */
.btn-outline-primary:focus,
.btn-outline-primary.focus,
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show>.btn-outline-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 .2rem rgba(237, 28, 36, .5);
}

/* hover時（マウスカーソルを重ねた時）の色（通常より濃いor暗めの色を指定）*/
.btn-outline-primary:hover {
    color: #fff;
    background-color: rgb(237, 28, 36);
    border-color: rgb(237, 28, 36);
}

/* active時の色（hover時と同等かさらに濃いor暗めの色を指定） */
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show>.btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: rgb(177, 22, 16);
    border-color: rgb(177, 22, 16);
}

/* 通常のボタン色 */
.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
    color: #fff;
    background-color: rgb(237, 28, 36);
    border-color: rgb(237, 28, 36);
}

/* focusされた時の枠線の色 */
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show>.btn-primary.dropdown-toggle:focus {
    background-color: rgb(237, 28, 36);
    border-color: rgb(237, 28, 36);
    box-shadow: 0 0 0 .2rem rgba(237, 28, 36, .5);
}

/* hover時（マウスカーソルを重ねた時）の色（通常より濃いor暗めの色を指定）*/
.btn-primary:hover {
    color: #fff;
    background-color: rgb(177, 22, 16);
    border-color: rgb(177, 22, 16);
}

/* active時の色（hover時と同等かさらに濃いor暗めの色を指定） */
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: rgb(177, 22, 16);
    border-color: rgb(177, 22, 16);
}

/* 通常のボタン色 */
.btn-info,
.btn-info.disabled,
.btn-info:disabled {
	color: #fff;
    background-color: rgb(237, 28, 36);
    border-color: rgb(237, 28, 36);
}

/* focusされた時の枠線の色 */
.btn-info:focus,
.btn-info.focus,
.btn-info:not(:disabled):not(.disabled):active:focus,
.btn-info:not(:disabled):not(.disabled).active:focus,
.show>.btn-info.dropdown-toggle:focus {
    border-color: rgb(237, 28, 36);
    background-color: rgb(237, 28, 36);
    box-shadow: 0 0 0 .2rem rgba(237, 28, 36, .5);
}

/* hover時の色 */
.btn-info:hover {
	color: #fff;
    background-color: rgb(177, 22, 16);
    border-color: rgb(177, 22, 16);
}

/* active時の色 */
.btn-info:not(:disabled):not(.disabled):active,
.btn-info:not(:disabled):not(.disabled).active,
.show>.btn-info.dropdown-toggle {
	color: #fff;
    background-color: rgb(177, 22, 16);
    border-color: rgb(177, 22, 16);
}

#input-result-wrap {
    display: block;
}

#input-wrap {
    display: flex;
	justify-content: space-between;
}

#input-2 {
    margin: 10px;
}

#chatgpt-edit {
    line-height: 150%;
}

#diagnostic-highlight {
    line-height: 150%;
}

.mini-header {
    font-weight: bold;
}

.mini-header .mini-header-title {
    vertical-align: middle;
    margin-right: 15px;
}

#result-wrap {
    width: 500px;
    margin-top: 30px;
}

#detailed-result-wrap {
    margin-top: 15px;
}

.half {
    flex: 1; /* 均等幅 */
    max-width: 50%; /* 各半分に配置 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
    padding: 10px;
}

.nav-tabs {
    display: flex; /* 横並び */
    justify-content: space-between; /* 均等配置 */
    gap: 10px; /* 項目間の間隔を調整 */
    padding: 0;
    margin: 0;
}

.nav-item {
    flex: 1; /* 等分幅 */
    text-align: center; /* テキストを中央寄せ */
    white-space: nowrap;
}

.chart {
    padding: 10px;
}

.input-group>.custom-select {
    width: 200px;
}

.input-group>.form-control {
    width: 200px;
}

.analysis-heading-1 {
    font-size: large;
    font-weight: bold;
    margin: 10px 0px 0px 10px;
}

.modal-body {
    line-height: 20px;
}

.modal-body li {
    margin-bottom: 5px;
    line-height: 20px;
}

#input-textarea {
    height: 300px; /* 高さを固定 */
    overflow-y: auto; /* 垂直スクロールを有効にする */
    resize: none; /* 手動でのサイズ変更を禁止 */
    line-height: 23px;
    border: 0.5px solid #929292;
}

.white-space-pre-wrap {
    white-space: pre-wrap;
}

#input-textarea:hover {
    border: 1px solid #575757;
}

#input-textarea:focus {
    border: 1px rgb(242, 49, 0);
}

/* 診断*/
.attr-long-sentence {
    border-bottom: 2px rgb(237, 28, 36) dotted
}

.attr-doubel-negation {
    color: rgb(237, 28, 36);
}

#config-sentence-length {
    width: 80px;
    margin-right: 10px;
}

/* 全体 */
table>tbody>tr>th {
    vertical-align: middle;
    width: 100px;
}

table>tbody>tr>td {
    padding-top: 5px;
    padding-bottom: 5px;
}

table {
    animation: fadein 1.5s ease-out forwards;
}

@keyframes fadein {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

.td-diag-switch {
    width: 70px;
}

.diag-elem {
    width: 50px;
}

.hidden {
    display: none;
}

.display-table {
    display: table;
}

.highlight {
    background-color: gainsboro;
}

.marker {
    background-color: mistyrose;
}

.form-main .dropdown-menu.show {
    width: 455px;
    font-size: small;
}

.bg-japl {
    background-color: rgb(237, 28, 36) !important;
}

.modal-dialog {
    max-width: 700px;
}

#all-wrap {
    clear: left;
}

#guide-wrap {
    display: table-cell;
    width: 500px;
}

#menu-wrap {
    display: table;
    border-collapse: separate;
    border-spacing: 4px 0;
    padding: 0 6px;
}

#general-menu {
    display: table-cell;
}

.menu-item {
    display: table-cell;
    vertical-align: top;
    margin-right: 15px;
}

.menu-item .btn {
    width: 5rem;
}

.menu-item #diagnose-text {
    margin-right: 15px;
}

.change-display-item {
    width: 220px;
}

.chart-wrap {
    margin-bottom: 5px;
}

#system-description-link {
    color: #fff;
    padding: 0;
}

.section-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0px;
}

.section-content {
    font-size: 1.0em;
}

.footer-access {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.footer-access a {
    color: rgb(237, 28, 36);
}