@charset "utf-8";

/*====================
    カスタムコード
====================*/
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

@import url("./_inc.css");

@import url("../reset.css");

@import url("./_select2.css");

img,
svg {
    pointer-events: none;
    vertical-align: top;
    width: 100%;
    height: auto;
}

@media (min-width: 769px) {
    .sp {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .pc {
        display: none !important;
    }
}

/*====================
    全体
====================*/
:root {
    --font-oswald: "Oswald", sans-serif;
}

html {
    font-size: calc(100vw / 1440 * 10);
}

@media (max-width: 768px) {
    html {
        font-size: calc(100vw / 390 * 10);
    }
}

body {
    overflow-x: hidden;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #192532;
    max-width: 100vw;
    background: #f4f6f9;
}

.wrapper {
    max-width: 100vw;
}

/*====================
    共通部分
====================*/
/*---------- SP用ヘッダー ----------*/
.adminHeader {
    position: sticky;
    z-index: 99999;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 6rem;
    padding: 0 1.2rem;
    background: #fff;
    border-bottom: solid 0.1rem #EBEBEB;
}

.adminHeader_logo {
    width: auto;
    height: 4rem;
    padding: 0.6rem 0;
}

.adminHeader_logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.adminHeader_username {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #565D64;
    margin-left: auto;
}

.adminHeader_menuBtn {
    width: 3.6rem;
}

/*---------- サイドバー ----------*/
.main-sidebar {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: inherit;
    min-height: 100vh;
    position: fixed;
    z-index: 1038;
    top: 0;
    bottom: 0;
    width: 19.2rem;
    background-color: #464a53;
}

@media (max-width: 768px) {
    .main-sidebar {
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
        bottom: unset;
        width: 100%;
        height: auto;
        min-height: auto;
        box-shadow: none !important;
    }

    .sidebar-open .main-sidebar {
        transform: translateY(6rem);
    }
}

.main-sidebar_logo {
    box-sizing: border-box;
    display: block;
    font-size: 1.25rem;
    line-height: 1.5;
    padding: 0.8125rem 0.5rem;
    white-space: nowrap;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 7.2rem;
    padding: 2.2rem 0;
}

.main-sidebar_logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-sidebar .sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: calc(100vh - 7.2rem);
    overflow-y: auto;
    padding: 1.6rem;
}

@media (max-width: 768px) {
    .main-sidebar .sidebar {
        flex-direction: row-reverse;
        min-height: auto;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .sidebar_top {
        flex-basis: 50%;
        padding-left: 2.5rem;
        border-left: solid 0.1rem #565d64;
    }
}

.sidebar_bottom {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.4rem 0 0;
    border-top: solid 0.1rem #565d64;
}

@media (max-width: 768px) {
    .sidebar_bottom {
        flex-basis: 50%;
        padding-right: 2.5rem;
        border: none;
    }
}

.sidebar_bottom--item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
}

.sidebar_bottom--item_icon {
    flex-basis: 1.6rem;
}

.sidebar_bottom--item_text {
    font-size: 1.4rem;
    line-height: 1.8;
}

/*----- オーバーレイ -----*/
#sidebar-overlay {
    transition: opacity 0.3s;
    pointer-events: none;
    opacity: 0;
    display: none;
    position: fixed;
    z-index: 1037;
    top: 6rem;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    #sidebar-overlay {
        display: block;
    }

    .sidebar-open #sidebar-overlay {
        pointer-events: all;
        opacity: 1;
    }
}

/*----- コンテンツ部分 -----*/
.content-wrapper {
    min-height: 100vh;
    margin-left: 19.2rem;
    padding: 1.5rem 4.8rem 4.8rem;
}

@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0;
        padding: 1.6rem 0;
    }
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 1.4rem 0;
}

@media (max-width: 768px) {
    .content-header {
        padding: 0 1.2rem 1.6rem;
    }
}

.content-header h1 {
    font-weight: bold;
    font-size: 2.4rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .content-header h1 {
        font-size: 2rem;
        line-height: 1.5;
    }
}

.content-header_hasBtn {
    display: flex;
    gap: 1.6rem;
    justify-content: flex-start;
    align-items: center;
}

.content-header_hasBtn--btns {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
    align-items: center;
}

/* ユーザー名 */
.content-header_user {
    font-size: 1.4rem;
    line-height: 1.8;
    white-space: nowrap;
    color: #565d64;
    padding: 0.4rem 1.2rem;
}

@media (max-width: 768px) {
    .content-header_user {
        display: none;
    }
}

.content-wrapper>.content {
    padding: 0;
}

.container-fluid {
    padding: 0;
}

.contentBox {
    padding: 22px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
}

.contentBox_head {
    font-weight: bold;
    font-size: 1.8rem;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.contentBox_body:not(:first-child) {
    margin-top: 10px;
}

.contentBox_column {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
}

.contentBox_column .contentBox {
    width: calc((100% - 1.6rem) / 2);
}

/*----- 表：セカンダリー -----*/
.tableSecondary {
    width: 100%;
    border: solid 1px #ccc;
    background: #fff;
}

.tableSecondary thead {
    background: rgb(245, 247, 249);
}

.tableSecondary thead tr>* {
    text-align: center;
    padding: 0.5em 1em;
    border-bottom: solid 2px #ccc;
}

.tableSecondary thead tr>*:not(:first-child) {
    border-left: solid 1px #ccc;
}

.tableSecondary tbody tr>* {
    padding: 0.5em 1em;
    border-bottom: solid 1px #ccc;
}

.tableSecondary tbody tr>*:not(:first-child) {
    border-left: solid 1px #ccc;
}

/*----- ボタン：1つ目 -----*/
.btn-primary {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: center;
    color: #000;
    padding: 0.4rem 0.8rem;
    background: #fcd232;
    border-radius: 100em;
    border: solid 1px #fcd232;
}

.btn-primary:hover {
    color: #fff;
    background: #000;
    border: solid 1px #000;
}

/*----- ボタン：2つ目 -----*/
.btn-secondary {
    display: table;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: #000;
    min-width: 10em;
    margin: 0 auto;
    padding: 0.5em 2em;
    background: #ffff;
    border-radius: 100em;
    border: solid 1px #000;
}

.btn-secondary:hover {
    color: #fff;
    background: #000;
    border: solid 1px #000;
}

/*====================
    コンポーネント
====================*/
/*----- フォーム -----*/
.form-control,
.c-selectbox2-container--default .c-selectbox2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.4rem 0.8rem;
    font-size: 16px;
    line-height: 1.8;
    background: #fff;
    border: solid 0.1rem #E0E1E3;
    border-radius: 0.4rem;
}

/*-- テキストエリア --*/
textarea.form-control {
    resize: vertical;
    height: 24rem;
}

/*-- マルチセレクト --*/
.c-selectbox2-container--default .c-selectbox2-selection--multiple {
    font-size: 1.4rem;
}

.c-selectbox2-container .c-selectbox2-selection--multiple .c-selectbox2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

/*-- トグルボタン --*/
.form-toggle {
    position: relative;
    display: block;
    font-size: 4rem;
    width: 1em;
    height: calc(1em / 40 * 24);
}

.form-toggle_input {
    display: none;
}

.form-toggle_label {
    cursor: pointer;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: #D9D9D9;
    border-radius: 100em;
    transition: 0.4s;
}

.form-toggle_label:after {
    content: "";
    position: absolute;
    left: calc(1em / 40 * 3);
    top: calc(1em / 40 * 3);
    z-index: 2;
    width: calc(1em / 40 * 18);
    height: calc(1em / 40 * 18);
    border-radius: 100%;
    background: #fff;
    transition: 0.4s;
}

.form-toggle_input:checked+.form-toggle_label {
    background-color: #FCD232;
}

.form-toggle_input:checked+.form-toggle_label:after {
    left: calc(1em / 40 * 19);
}

/*-- チェックボックス --*/
input[type='checkbox'].form-checkbox {
    -webkit-appearance: checkbox;
}

/*----- エラー出力 -----*/
.errors {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 1.6rem 0;
    padding: 0 1.2rem;
}

.errors_item {
    font-size: 1.4rem;
    line-height: 1.5;
    text-align: center;
    color: #D60000;
}
