@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

body {
    font-family: 'Noto Sans JP', sans-serif;
}

html, body {
    scroll-padding-top: 4rem;
}

.disable-copy {
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
}

/* 英語周りのfont-weightが細すぎるので normalで上書き */
p {
    font-weight: normal;
}
strong {
    font-weight: bold;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


.loader,
.loader:before,
.loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: load7 1.8s infinite ease-in-out;
    animation: load7 1.8s infinite ease-in-out;
}

.loader {
    color: green;
    font-size: 10px;
    margin: 80px auto;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.loading {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999999999;
    overflow: hidden;
}

    .loader:before,
    .loader:after {
        content: '';
        position: absolute;
        top: 0;
    }

    .loader:before {
        left: -3.5em;
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    .loader:after {
        left: 3.5em;
    }

@-webkit-keyframes load7 {
    0%, 80%, 100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

@keyframes load7 {
    0%, 80%, 100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

.docs-content table {
    width: 80%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
}

.docs-content th {
    padding: 10px;
    background: var(--custom-docs-table-th-color);
    border: solid 1px #778ca3;
}

.docs-content td {
    padding: 10px;
    border: solid 1px #778ca3;
}

.docs-content .alert-warning {
    background-color: #fff2cd;
    color: #664d03;
    width: 80%;
}

.docs-content .alert-warning p {
    font-size: 12px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.docs-content .alert-info {
    background-color: #f4f7ff;
    color: #525f7f;
    width: 80%;
}

.docs-content .alert-info p {
    font-size: 12px;
    margin-top: 0px;
    margin-bottom: 0px;
}
.docs-content .updated-at p {
    font-size: 12px;
}

.docs-content a {
    text-decoration: underline;
}
.docs-content h1 {
    margin-bottom: 24px;
    margin-top: 30px;
    font-size: 2.625rem;
    font-weight: bold;
}

.docs-content h2 {
    margin-top: 64px;
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: bold;
}
.docs-content h3 {
    margin-top: 40px;
    margin-bottom: 24px;
    font-size: 1.625rem;
    font-weight: bold;
}

.docs-content h4 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.375rem;
    font-weight: bold;
}
.docs-content h5 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: bold;
}
.docs-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 1.125rem;
    font-weight: bold;
}

.docs-content h5 {
    margin-top: 10px;
    font-size: 1.25rem;
}

.docs-content img {
    width: 100%;
    box-shadow: 1px 1px 4px 1px #999;
}

.doc-modal .modal-body h1 {
  font-size: 1.50rem;
  margin-bottom: 20px;
}

.doc-modal .modal-body h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.doc-modal .modal-body h3 {
  font-size: 1.00rem;
  margin-bottom: 10px;
}

.doc-modal .modal-body h4 {
  font-size: 0.95rem;
  margin-bottom: 7px;
}
.doc-modal .modal-body h5 {
  font-size: 0.90rem;
  margin-bottom: 7px;
}
.doc-modal .modal-body h6 {
  font-size: 0.85rem;
  margin-bottom: 7px;
}
.doc-modal .modal-body p {
  font-size: 0.85rem;
}

.doc-modal .modal-body table {
  font-size: 0.85rem;
}

.custom-card {
    background-color: var(--custom-card-bg);
    border: none;
    border-radius: 15px;
}
/* .custom-card-hover {
    background-color: #f4f7ff;
} */

.custom-card .card-body {
    margin: 15px 15px 5px 15px;
}

.custom-card .card-title {
    margin-bottom: 15px;
}

/*
説明用のカード
Usage:
    class="custom-card custom-card-info"
*/

.custom-card-info {
    margin: 0 auto;
}
.custom-card-info h6 {
    font-weight: bold;
    color: #525f7f;
}
.custom-card-info p {
    color: #6c757d;
    font-size: 14px;
}

.custom-card-danger {
    margin: 0 auto;
    background-color: #f8d7da;
}
.custom-card-danger h6 {
    font-weight: bold;
    color: #6c757d;
}
.custom-card-danger p {
    color: #6c757d;
    font-size: 14px;
}

.custom-card-body {
    padding: 20px 20px 20px 20px;
}

.slim-container {
    width: 70%;
}

.super-slim-container {
    width: 50%;
}

.custom-card .custom-table {
    border-radius: 15px;
    border-spacing: 0;
}

.custom-table tr>*{
    padding: 5px 10px;
}

.custom-card .custom-table tr:first-child>*:first-child{
    border-radius: 15px 0 0 0;
}
.custom-card .custom-table tr:first-child>*:last-child{
    border-radius: 0 15px 0 0;
}
.custom-card .custom-table tr:last-child>*:first-child{
    border-radius: 0 0 0 15px;
}
.custom-card .custom-table tr:last-child>*:last-child{
    border-radius: 0 0 15px 0;
}

.custom-card .custom-table tr:last-child>*{
    border: none;
}

.custom-card td {
    /* background-color: var(--custom-card-bg); */
}

.custom-subcard-bg-color {
    background-color: var(--custom-subcard-bg);
}

.mermaid {
    background-color: #282a36 !important;
    padding: 1.5em;
    margin-top: 2.5em;
    margin-bottom: 2.5em;
    border-radius: 15px;
}

.code-success {
    color: #26b050;
}
.code-warning {
    color: #F1FA8C;
}
.code-danger {
    color: #FF5555;
}
.code-comment {
    color: #6272A4;
}
.code-cyan {
    color: #8BE9FD;
}

.diff-inserted {
    color: lightgreen;
}
.diff-deleted {
    color: red;
}
.self-config .diff-modified {
    font-weight: bold;
}

.other-config .diff-modified {
    color: yellow;
    font-weight: bold;
}
.diff-imaginary {
    color: aliceblue;
}
.diff-unchanged {
    opacity: 0.5;
}

.heading-icon {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 39px;
    color: var(--bs-primary-text-emphasis);
}

[data-bs-theme="light"] {
    --custom-card-bg: #f4f7ff;
    --custom-docs-table-th-color: #f4f7ff;
    --custom-subcard-bg: #fff;
    --bs-card-subtitle-color: #525f7f;
    --build-icons-color: #003D3A;
    --build-icon-image: url(icon/spectory-theme-color.ico);
}

[data-bs-theme="dark"] {
    --custom-card-bg: #212529;
    --custom-docs-table-th-color: #212529;
    --custom-subcard-bg: #171E25;
    --bs-body-bg: #171E25;
    --bs-card-title-color: #fff;
    --build-icons-color: #fff;
    --build-icon-image: url(icon/spectory-white.ico);
}

/* 全文表示用 */
.expand {
    width: 500px;
    margin: 0 10px 10px 0;
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: .5s;
}

/* 全文表示用 */
.contenedor input {
    visibility: hidden;
}

/* 全文表示用 */
.contenedor label {
    position: absolute;
    bottom: -1.5em;
    display: block;
    font-size: .9em;
    padding: .20em 10px;
    right: 0;
    z-index:999;
    cursor: pointer;
    text-transform: uppercase;
}

/* 全文表示用 */
.contenedor {
    position: relative;
}

/* 全文表示用 */
.contenedor label:before {
    content: "全文表示";
}

/* 全文表示用 */
.contenedor input:checked + label:before {
    content: "閉じる"
}

/* 全文表示用 */
input[type=checkbox]:checked ~ .expand {
    max-height: 500px;
}

/* 全文表示用 */
input[type=checkbox]:checked ~ .expand:before {
    opacity: 0
}

/* 特殊フォーム（フォームの左にテキストが存在する）背景色 */
.pretext-area {
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #00000054;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}
