@charset "UTF-8";
@font-face {
    font-family: NotoR;
    src: url(fonts/NotoSansJP-Regular.otf);
}
@font-face {
    font-family: Fred;
    src: url(fonts/FrederickatheGreat-Regular.ttf);
}

*,
*:before,
*:after {
    box-sizing: inherit;
}
html {
    box-sizing: border-box;
    font-size: 17px;
    font-family: NotoR;
    color: rgb(0, 0, 0);
    overflow-x: hidden;
}
body {
    -webkit-text-size-adjust: 100%;
    margin: 0 auto;
}
body, p, img, ul, h1, h2, h3, h4, h5, h6 {
    padding: 0;
    margin: 0;
}
img {
    vertical-align: bottom;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
    display: block;
    color: #000;
}
input[type="text"], input[type="password"], input[type="tel"], input[type="email"], textarea {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width:98%;
}
/* p{
    display: inline;
} */
table {
    border-collapse: collapse;
}
th, td {
    border: 1px solid #fff;
}

/* ▼ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #02a2b5;
    /* box-shadow: 0 5px 5px rgb(144, 143, 143); */
    z-index: 999;
}
h1 {
    margin: 0 auto;
    text-align: center;
    padding-top: .2rem;
    font-size: 2.9rem;
    line-height: 1;
    font-family: Fred;
    letter-spacing: normal;
    color: #fff;
}
.store_name {
    display: flex;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 2.5rem;
    color: #000;
}
/* ▲ヘッダー */

.wrap {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* ▼メニュー */
.side_menu {
    width: 250px;
    height: 100%;
}
.side_menu_bg {
    padding-top: 70px;
    position: fixed;
    top: 0px;
    width: 250px;
    height: 100%;
    background-color: #02a2b5;
    z-index: 900;
}
#nav_tab {
    display: none;
}
/* .menu_list {
    margin-top: 20px;
} */
.menu_btn {
    position: relative;
    width: 100%;
    margin: 0px auto;
    padding: 0 10px;
    height: 3.5rem;
    font-size: 1.1rem;
    line-height: 3.6rem;
    text-align: center;
    color: #000;
    border-bottom: #fff 1px solid;
}
li:nth-of-type(1){
    border-top: #fff 1px solid;
}
.menu_btn:hover {
    background-color: #fff;
}
.menu_btn.active {
    background-color: #fff;
}
/* ▲メニュー */

/* ▼メイン */
.main {
    width: calc(85% - 160px);
    margin: 0 auto;
    padding-top: 90px;
}
.top.main {
    width: calc(95% - 250px);
}

dl {
    width: 100%;
    margin: 0 auto;
    margin-left: 50%;
    transform: translateX(-50%);
}
dt {
    font-size: 1.4rem;
}
dd {
    margin-bottom: 30px;
}

.error {
    color: #ff0000;
}


/* ログイン画面 */
.main.login {
    position: relative;
    width: 50%;
    max-width: 620px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color:#02a2b5;
    z-index: 90;
}
.main.login input {
    width: 80%;
    max-width: 340px;
    background-color: #fff;
}
.main.login dd {
    margin: 0 0 20px 0;
}


/* My Page */
.main.my_page > p {
    font-size: 1.8rem;
}
.main.my_page form {
    width: 100%;
    padding: 1.8rem;
    margin: 0.8rem 0 0;
    border: 1px #aaa solid;
    border-radius: 0.3rem 0.3rem 0 0;
}
.main.my_page form span {
    font-weight: bold;
}
.main.my_page > div {
    
    
}
.main.my_page > div a {
    position: relative;
    display: block;
    padding: 1.1rem 1.8rem;
    border: 1px #aaa solid;
    border-top: none;
}
.main.my_page > div a::after {
    content: "＞";
    position: absolute;
    top: 50%;
    right: 1.5rem;
    font-size: 1.2rem;
    transform: translateY(-50%);
}
.main.my_page > div a:nth-last-child(1) {
    border-radius: 0 0 0.3rem 0.3rem;
}


/* ▼index.php */
form#form_index {
    display: block;
    margin: 20px 0 10px;
    text-align: right;
}
.form.input {
    margin-bottom: 10px;
}
.information {
    margin-left: 0px;
}
.information h3 {
    font-weight: 100;
}
.information > div {
    max-height: 5.0rem;
    min-height: 2.0rem;
    border: 1px #aaa solid;
    border-radius: .3rem;
    overflow-y: scroll;
}
.information > div p {
    margin: .1rem .3rem;
    border-bottom: #aaa 1px dotted;
}


/* ▼フォーム */
form{
    width: fit-content;
    margin: .8rem 0;
}
form p {
    width: fit-content;
    margin: 0;
}
.form_title {
    margin: 1.1rem 0 0;
}
form span {
    font-size: .9rem;
    line-height: 1;
}

input[type="text"], input[type="password"], input[type="tel"], input[type="email"], textarea, select {
    margin-bottom: .1rem;
    width: 16.0rem;
    height: 2.2rem;
    border: #000 solid 2px;
    border-radius: 5px;
    font-size: 1.0rem;
}
textarea {
    width: 30.0rem;
    height: 10rem;
}

.required {
    margin: 0 .2rem;
    padding: .1rem .2rem;
    font-size: .8rem;
    line-height: 1;
    color: #fff;
    background-color: #ff0000;
    border-radius: .2rem;
}

/* form#form_index input ,form#form_index #store_list {
    width: 150px;
} */
#store_list {
    position: relative;
}
#store_list::before {
    content: '<>';
    position: absolute;
    /* font: 17px "Consolas", monospace; */
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-color: #000;
}
.form_control:focus {
    outline: 0;
    border-color: #ca82f8;
}  
.login_form {
    width: 100%;
    text-align: center;
}
/* ▲フォーム */


/* ▼ボタン */
button {
    cursor: pointer;
    border: 0px solid #000;
}
.button {
    display: inline;
    margin: 10px 10px;
    padding: 0 0.7rem;
    background-color: #006b1d;
    border-radius: 1.9rem;
    border: none;
    font-size: 2.0rem;
    font-style: initial;
    line-height: 2.7rem;
    color: #fff;
}
.button_s {
    padding: 0.4rem 0.5rem;
    margin: 0 auto;
    background-color: #0075d5;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    line-height: 1.0rem;
    color: #fff;
}
.enter_btn {
    display: inline-block;
    padding: 0.6rem 1.0rem 0.6rem;
    background-color: #0075d5;
    border-radius: 1.3rem;
    font-size: 1.4rem;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
}
.return_btn {
    padding: 0.4rem 1.0rem;
    background-color: #fff;
    color: #0075d5;
    border: 0.2rem #0075d5 solid;
}
.enter_btn.return_btn.delete_btn {
    color: #d23d3d;
    border: 0.2rem #d23d3d solid;
}
.logout_btn {
    position: absolute;
    top: 0;
    right: 0;
}
.button_escape {
    height: 50px;
    width: 50px;
    text-align: center;
    padding-left: .2rem;
    background-color: rgb(254, 146, 146);
    border-radius: 0 0 0 0px;
    font-size: 20px;
    line-height: 3.2rem;
    font-weight: bold;
    color: #222222;
}
.button_escape:hover {
    background-color: rgb(255, 237, 237);
}
.button:hover, .button_m:hover, .button_s:hover, .enter_btn:hover {
    background-color: rgb(215, 214, 214);
}
.btn_flex {
    display: flex;
    justify-content: left;
    margin: 10px 0 10px 0;
}
.btn_in_form {
    margin-left: auto;
    margin-right: auto;
}
/* ▲ボタン */

/* ▼テーブル */
table {
    width: 100%;
    margin-bottom: 10px;
}
.table, .stock_history_table, .product_list_table {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    /* max-width: 800px; */
}
.stock_history_table {
    margin-top: 30px;
}
.table .title {
    margin: 30px 0 8px;
    font-size: 3.0rem;
}
table th {
    padding: 0.7rem 0.1rem;
    background-color: #02a2b5;
    color: #fff;
}
table td {
    padding: 0.5rem 0.3rem;
    text-align: left;
    background-color: rgb(226, 226, 226);
}
table tr:nth-child(2n) td{
    background-color: rgb(194, 194, 194);
}

table tr:first-child th:last-child{
	border-radius:0 7px 0 0; 
}
table tr:first-child th:first-child{
	border-radius:7px 0 0 0; 
}
table tr:last-child td:last-child{
	border-radius:0 0 7px 0; 
}
table tr:last-child td:first-child{
	border-radius:0 0 0 7px; 
}

.flex_bet {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#stock {
    margin-top: 50px;
}
#top {
    display: flex;
    justify-content: left;
    align-items: center;
    padding-left: 20px;
}

#main-menu {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

#stock_history {
    position: relative;
}

.total_ch {
    display: flex;
    justify-content: left;
    align-items: center;
}


/* TOP */
.total_text {
    font-size: 1.4rem;
}
.total_text span {
    font-size: 1.8rem;
}

/* Footer */
footer {
    text-align:right; 
    padding:30px 10px 20px 0;
}
footer p {
    display: inline-block;
    padding: 2px 10px;
}
footer p:nth-of-type(2) {
    border-left: #000 solid 1px;
}
footer p:nth-last-of-type(1) {
    margin-top: 8px;
    color: #222222;
}
footer p a {
    text-decoration: underline;
}

@media screen and (max-width:1300px) {
    html {
        /* font-size: 14px; */
    }
    /* ▼サイドメニュー */
    .side_menu {
        width: 200px;
    }
    .side_menu_bg {
        width: 200px;
    }
    .top.main {
        width: calc(95% - 200px);
    }
}

@media screen and (max-width:1000px) {
    html {
        font-size: 16px;
    }
    /* ▼サイドメニュー */
    .side_menu {
        width: 160px;
    }
    .side_menu_bg {
        width: 150px;
    }
    .top.main {
        width: calc(95% - 160px);
    }
}

@media screen and (max-width:800px) {
    html {
        font-size: 15px;
    }
    /* ▼サイドメニュー */
    .side_menu {
        width: 120px;
    }
    .side_menu_bg {
        width: 120px;
    }
    .top.main {
        width: calc(95% - 120px);
    }
}

@media screen and (max-width:700px) {
    html {
        font-size: 14px;
    }
    /* ▼サイドメニュー */
    
    .main {
        width: calc(90% - 50px);
    }
    .top.main {
        width: 97%;
        padding-top: 80px;
    }
    .wrap {
        display: block;
        width: 100%;
        margin: 0 auto;
    }

    /* ログイン画面 */
    .main.login {
        width: 77%;
    }
    .main.login input {
        width: 75%;
    }

    /* My Page */
    .main.my_page form {
        padding: 1.3rem;
    }
    

    /* ▼メニュー */
    .side_menu {
        
    }
    .side_menu_bg {
        padding-top: 0px;
        position: fixed;
        top: 70px;
        left: -70px;
        width: 0%;
        padding: 0;
        z-index: 999;
        transition: .3s all ease-in;
    }
    .menu_list {
        padding: 0;
        height: calc(100% - 70px);
        background-color: #02a2b5;
        overflow-y: scroll;
    }
    li.menu_btn {
        position: relative;
        width: 100%;
        height: 50px;
        margin: 0px auto;
        padding: 0 1%;
        font-size: 1.2rem;
        line-height: 50px;
        text-align: center;
        color: #000;
    }
    /* li:nth-of-type(1){
        border-top: none;
    } */

    li.menu_btn a {
        display: block;
    }
    .menu_btn:hover {
        background-color: #fff;
    }
    .menu_btn.active {
        background-color: #fff;
    }

    #nav_tab {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
    }
    #nav_tab:checked + label + .side_menu_bg {
        left: 0;
        width: calc(100% - 40px);
        transition: .3s all ease-in;
    }
    .side_menu_bg::after {
        content: "";
        position: fixed;
        top: 70px;
        left: 0px;
        width: 100%;
        height: 200vh;
        z-index: -10;
        background-color: rgba(20, 20, 20, .7);
        visibility: hidden;
        transition: .3s all ease-in;
        
    }
    #nav_tab:checked + label + .side_menu_bg::after {
        visibility: visible;
        transition: .3s all ease-in;
    }
    #nav_btn {
        position: relative;
    }
    .btn_bar {
        position: fixed;
        top: 70px;
        left: 0;
        margin-right: 30px;
        z-index: 9999;
        height: 70px;
        width: 30px;
        background-color: #b956e6;
        box-shadow: 1px 1px 2px rgba(0,0,0,.3);
        border-radius: 0 5px 5px 0;
        transition: .3s all ease-in;
    }
    .btn_bar::before{
        content: "";
        position: absolute;
        left: 18px;
        top: 16px;
        width: 3px;
        height: 20px;
        background-color: #fff;
        transform: rotate(-20deg);
        transition: .3s all ease-in;
    }
    .btn_bar::after{
        content: "";
        position: absolute;
        left: 18px;
        top: 34px;
        width: 3px;
        height: 20px;
        background-color: #fff;
        transform: rotate(20deg);
        transition: .3s all ease-in;
    }
    #nav_tab:checked + label .btn_bar {
        left: calc(100% - 40px);
        /* width: 40px; */
        transition: .3s all ease-in;
    }
    #nav_tab:checked + label .btn_bar::before {
        transform: rotate(20deg);
        transition: .3s all ease-in;
    }
    #nav_tab:checked + label .btn_bar::after {
        transform: rotate(-20deg);
        transition: .3s all ease-in;
    }
    /* ▲メニュー */


    /* ▼フォーム */
    .top.main form {
        width: 60%;
    }
    form{
        width: 100%;
        margin: .8rem 0;
    }
    form p {
        width: 100%;
        margin: 0 0 0.9rem;
    }
    form span {
        font-size: .9rem;
        line-height: 1;
    }
    input[type="text"], input[type="password"], input[type="tel"], input[type="email"], textarea, select {
        width: 100%;
        border: #000 solid 1px;
        border-radius: 4px;
    }

    .information {
        margin-left: 50px;
    }

    footer {
        margin-bottom: 50px;
    }
}

@media screen and (max-width:470px) {
    html {
        font-size: 13px;
    }

    /* ログイン画面 */
    .main.login {
        width: 80%;
    }
    .main.login input {
        width: 87%;
    }
}

@media (max-aspect-ratio: 3/2) {
    .main.login {
        transform: translate(0, 20%);
    }
}