/* css reset */
@charset "utf-8";
html, body, div, span, iframe,
h1, h2, h3, h4, h5, h6, p, img, a,
ol, ul, li,
form, label,
table, tbody, tfoot, thead, tr, th, td,
article,footer, header, menu, nav, section {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
  text-decoration: none;
  vertical-align: baseline;
}

/* 共通CSS */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

html {
    min-height: 100%;
    position: relative;
}

.wrapper {
    padding: 80px 0;
    margin-bottom: 80px;
}

    .wrapper-title {
        margin-bottom: 30px;
        border-bottom: 1px solid #a2aab0;
    }

    .wrapper-title h3{
        font-size: 25px;
        color: #3e3e3b;
    }

    .wrapper-title p {
        font-size: 13px;
        color: #a2aab0;
    }

a:hover,
.btn:hover {
    opacity: 0.6;
    cursor: pointer;
}
/* newsのformの削除ボタンによる表崩れを治す。 */
td form {
    display: inline; /* フォームをインラインにする */
}
    
.btn {
    padding: 10px 30px;
    font-size: 15px;
    border: none;
    margin: 5px 0;
    border-radius: 5px;
}
    
.btn-submit {
    background-color: #00B3AA;
    border: 1px solid #00B3AA;
    color: #fff;
}
    
.btn-green {
    background-color: #20c977;
    border: 1px solid #20c977;
    color: #fff;
    padding: 5px 10px;
    font-size: 15px;
}
    
.btn-red {
    border: 1px solid #d84950;
    color: red;
    padding: 5px 10px;
    font-size: 15px;
}
    
.btn-blue {
    background-color: #4a80d6;
    border: 1px solid #4a80d6;
    color: #fff;
    padding: 10px 15px;
    font-size: 15px;
}
    
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
    
input,
textarea {
    width: 100%;
    border: 1px solid #ebeced;
    border-radius: 5px;
}
    
    input {
        height: 25px;
    }
    
    textarea {
        height: 300px;
    }
/* login */
.login-wrapper {
    text-align: center;
    padding: 80px 0 ;
}
    .login-wrapper-title {
        margin-bottom: 30px;
    }

    .login-wrapper-title h3{
        font-size: 25px;
        color: #3e3e3b;
    }

    .login-wrapper-title p {
        font-size: 13px;
        color: #a2aab0;
    }

.login {
    padding: 50px 0; 
    width: 50%;
    margin: 0 auto;
    background-color: #ebeced;
}
    .login-form {
        width: 70%;
        margin: 0 auto;
    }

    .login-form input {
        border: none;
        width: 100%;
        height: 25px;
    }

    .login-form p {
        text-align: left;
    }

/* dashboard.html */
/* header */
header {
    width: 100%;
    height: 60px;
    background-color: #ebeced;
    position: fixed;
    z-index: 1;
}

.header-logo h1{
    float:left;
    padding-right: 15px;
    font-size: 18px;
}

.header-logo a {
    color: #00B3AA;
    line-height: 60px;
}

    .menu-icon {
        display: none;
    }

    .menu-right {
        float:right;
        line-height: 60px;
    }

    .menu-right a {
        color: #00B3AA;
    }

    .menu-right a:hover {
        color: #a2aab0;
    }

/* boxs */
.boxs {
        display: flex;
    }

    .box {
        display: inline-block;
        width: 20%;
        height: 200px;
        border:1px solid #ebeced;
        margin: 0 5px;
        text-align: center;
        color: #3e3e3b;
        box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.29);
        }
    .box:hover {
        color: #00B3AA;
    }
    .icon{
        font-size: 80px;
        height: 130px;
        line-height: 130px;
    }
    .box p {
        font-size: 20px;
        font-weight: bold;
    }

/* footer */
footer {
    height: 80px;
    background-color: #00B3AA;
    text-align: right;
    bottom: 0;
    position: absolute;
    width: 100%;

}

    footer p {
        line-height: 80px;
        color: #fff;
        font-size: 12px;
    }

/* create_news */
.edit-form {
    width: 80%;
    margin: 0 auto;
}
    
    .edit-form input,
    .edit-form textarea{
        width: 100%;
        border: 1px solid #a2aab0;
    }
    
    .edit-form button{
        float:right;
    }
    
    .edit-form textarea {
        height: 300px;
    }

/* news.php */
.list table{
    border-collapse: collapse;
    margin: 20px 0;
    width: 100%;
}

    .list th,
.list td {
    border: 1px solid #a2aab0;
    padding: 10px; /* パディングを少し減らして、見た目を整える */
    word-break: break-word; /* 長い単語を折り返す */
    max-width: 300px; /* セルの最大幅を設定 */
    overflow: hidden; /* 内容が溢れないように */
    /* text-overflow: ellipsis; 内容が溢れた場合に省略記号を表示 */
     overflow-x: auto;
}

    .list th {
        background-color: #ebeced;
    }

    /* users.php */
.serch {
    text-align: right;
    width: 100%;
}
.serch input {
    width: 30%;
    padding: 4px;
}

.serch button {
    padding: 5px 10px;
}

/*paging*/
.paging {
    margin: 0 0 10px;
    padding: 10px 10px 5px;
    text-align: right;
}

.paging li {
    display: inline;
    margin: 0 1px;
}

.paging a,
.paging span {
    color: #00B3AA;
    padding: 5px 8px;
}

.paging span {
    background-color: #00B3AA;
    border-radius: 5px;
    color: #fff;
}

/* products */
.edit-form .imgform {
    border: none;
}