@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
    --container-width: 1000px;
    --container-margin-top: 5.5rem;
    --container-margin-bottom: 4rem;
    --default-color: #000;
    --default-gap: 10px;
}

/* 共通 */
body {
    font-family: "Noto Sans JP", sans-serif !important;
    color: var(--default-color);
    font-size: 16px;
}

pre {
    font-family: "Noto Sans JP", sans-serif !important;
}

.container {
    width: var(--container-width);
    margin: var(--container-margin-top) auto var(--container-margin-bottom) auto;
}

.container > *,
.form-container > * {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
}

a,
a:visited {
    color: var(--default-color);
    text-decoration: none;
}

pre {
    white-space: pre-wrap;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.error {
    margin-top: -10px;
    color: red;
}

/* 幅 */
.w-100px {
    width: 100px;
}

.w-200px {
    width: 200px;
}

.w-300px {
    width: 300px;
}

.w-400px {
    width: 400px;
}

.w-500px {
    width: 500px;
}

.w-600px {
    width: 600px;
}

.w-700px {
    width: 700px;
}
.w-800px {
    width: 800px;
}

.w-900px {
    width: 900px;
}

.w-1000px {
    width: 1000px;
}

/* 要素横並び */
.container > div {
    display: flex;
    gap: var(--default-gap);
}

.sbs {
    display: flex;
    gap: var(--default-gap);
}

.sbs-no-gap {
    display: flex;
}

.no-gap {
    gap: 0;
}

.sbs-p1 {
    display: flex;
    gap: var(--default-gap);
    width: 1px;
    flex-grow: 1;
}

.sbs-center {
    display: flex;
    gap: var(--default-gap);
    margin-right: auto;
    margin-left: auto;
}

.sbs-center-fix {
    display: flex;
    gap: var(--default-gap);
    justify-content: center;
}

.sbs-right {
    display: flex;
    gap: var(--default-gap);
    margin-left: auto;
    margin-right: 0;
}

.sbs-center-v-center {
    display: flex;
    gap: var(--default-gap);
    margin-right: auto;
    margin-left: auto;
    align-items: center;
}

.sbs-right-v-center {
    display: flex;
    gap: var(--default-gap);
    margin-left: auto;
    margin-right: 0;
    align-items: center;
}

.sbs-left-v-center {
    display: flex;
    gap: var(--default-gap);
    align-items: center;
}

.p1 {
    width: 1px;
    flex-grow: 1;
}

.p2 {
    width: 1px;
    flex-grow: 2;
}

.p3 {
    width: 1px;
    flex-grow: 3;
}

.p4 {
    width: 1px;
    flex-grow: 4;
}

.clear-sbs {
    display: block !important;
    margin: 0 auto;
}

/* フォーム */
/* input {
    margin-bottom: 10px;
} */

input[type="submit"] {
    cursor: pointer;
}

input,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 5px 0;
}

textarea {
    height: 190px;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
}

.clickable-icon {
    width: 20px;
    z-index: 2;
    right: 2%;
    cursor: pointer;
}

.clickable-icon img {
    display: block;
}

/* ポジション */
.p-relative {
    position: relative;
}

.p-absolute {
    position: absolute;
}

.p-v-center {
    top: 50%;
    transform: translateY(calc(-50% - 5px));
}

.p-h-center {
    left: 50%;
    transform: translateX(-50%);
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    border: solid 1px #aaa;
}

table th,
table td {
    border: solid 1px #aaa;
    padding: 0px 5px;
}

table th {
    background-color: #EAEAEA;
}

/* ヘッダー・フッター */
header,
footer {
    width: 100%;
    padding: 1rem 2rem;
    background-color: #44579e;
    color: #fff;
}

header {
    display: flex;
    position: fixed;
    top: 0rem;
    left: 0rem;
    z-index: 10;
    font-weight: bold;
}

header .header-menu {
    display: flex;
    width: 1px;
    flex-grow: 1;
    text-align: center;
}

header .header-menu > div,
header .header-menu > a {
    display: block;
    width: 1px;
    flex-grow: 1;
    text-align: center;
}

header .header-menu a,
header .header-menu a:visited {
    color: #fff;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
}

/* 見出し */
.page-midashi {
    font-size: 2em;
}

/* vue用 */
.v-table>.v-table__wrapper>table>tbody>tr>td:has(table) {
    padding-top: 16px;
    padding-bottom: 16px;
}

@media only screen and (max-width: 767px) {
    .d-flex,
    [class^="col-"] {
        display: block;
    }

    .d-flex > div,
    [class^="col-"] > div {
        width: 100%;
        margin-bottom: 5px;
    }

    .sp-d-flex,
    .sp-col-2 {
        display: flex;
    }

    .sp-col-2 > div {
        width: calc((100% - 1rem) / 2);
    }

    .table-wrap {
        overflow: scroll;
    }

    .table-wrap table {
        width: var(--container-width);
    }  
}