/* 上書き */
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-2 {
    margin: 10px;
}

#chatgpt-edit {
    line-height: 150%;
}

#diagnostic-highlight {
    line-height: 150%;
}

@media (min-width: 768px) {
    .navbar-expand-md .navbar-nav {
        align-items: center;
        gap: .2rem;
    }
}

.nav-tabs {
    display: flex; /* 横並び */
    justify-content: space-between; /* 均等配置 */
    gap: 10px; /* 項目間の間隔を調整 */
    padding: 0;
    margin: 0;
}

.nav-item {
    flex: 1; /* 等分幅 */
    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;
}

.white-space-pre-wrap {
    white-space: pre-wrap;
}

/* 診断*/
.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;
}

.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;
    margin-right: 2rem;
    margin-left: 2rem;
}

#guide-wrap {
    display: table-cell;
    width: 500px;
}

#menu-wrap {
    display: table;
    border-collapse: separate;
    border-spacing: 4px 0;
    padding: 0 6px;
}

.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);
}

.mini-header {
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* カーソルを重ねる要素 */
.tooltip {
  position: relative; /* ツールチップの位置の基準に */
  cursor: pointer; /* カーソルを当てたときにポインターに */
}

/* ツールチップのテキスト */
.tooltip-text {
  opacity: 0; /* はじめは隠しておく */
  visibility: hidden; /* はじめは隠しておく */
  position: absolute; /* 絶対配置 */
  left: 50%; /* 親に対して中央配置 */
  transform: translateX(-50%); /* 親に対して中央配置 */
  bottom: -30px; /* 親要素下からの位置 */
  display: inline-block;
  padding: 5px; /* 余白 */
  white-space: nowrap; /* テキストを折り返さない */
  font-size: 0.8rem; /* フォントサイズ */
  line-height: 1.3; /* 行間 */
  background: #333; /* 背景色 */
  color: #fff; /* 文字色 */
  border-radius: 3px; /* 角丸 */
  transition: 0.3s ease-in; /* アニメーション */
}

/* ホバー時にツールチップの非表示を解除 */
.tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}