@charset "UTF-8";
/* 管理画面スタイルシート */
/* 全体スタイル、ボタン、flexスタイル */

@import url('../../../assets/css/imports/basic.css');
@import url('imports/content.css');

/* 基本スタイル */

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
  font-size: 0.95em;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
}
#container {
  width: 100%;
  margin: 0 auto;
}
header {
  width: 100%;
  height: 50px;
  }
.header_wrap {
  max-width: 850px;
  margin: 0 auto;
}
#content {
  clear: both;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  margin-top: 30px;
  padding: 0 10px;
}
main {
  width: 80%;
  min-height: calc(100vh - 50px - 28px - 55px);  /* height - header -footer -70px隱ｿ謨ｴ */
  margin: 0 auto;
  float: right;
  padding-bottom: 30px;
}
aside {
  width: 20%;
  padding-left: 20px;
  float: left;
  margin-top: -10px
}

footer {
  clear: both;
  width: 100%;
}
.footer_wrap {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

@media screen and (max-width: 850px) {
  main {
    width: 100%;
    float: none;
  }
  aside {
    display: none;
  }
  
}

/* adminファイル 共通 */
h2 {
  border-left: 20px solid #007bff;
  padding-left: 10px;
  margin-bottom: 10px;
  font-size: 1.2em;
}
h3 {
  font-size: 1.2em;
  border-left: 15px solid #333;
  padding-left: 7px;
  margin: 10px 0;
}
h2 small {
  font-size: 0.8em;
  font-weight: normal;
}
article {
  margin-bottom: 30px;
}

/*input style 共通 */
input {
  font-size: 16px;
  width: 100%;
  padding: 9px;
  margin-bottom: 10px;
  border: 1px solid #333;
  border-radius: 4px;
  box-sizing: border-box;
}
input:focus {
  outline: none;
  border-color: #007bff;
}
textarea {
  font-size: 16px;
  width: 100%;
  padding: 9px;
  margin-bottom: 10px;
  border: 1px solid #333;
  border-radius: 4px;
  box-sizing: border-box;
}
textarea:focus {
  outline: none;
  border-color: #007bff;
}


/*button style 共/*
button[type="submit"] {
  background-color: #007bff;
  color: white;
}
button[type="submit"]:hover {
  background-color: #0056b3;
}
*/

.th_button {  /*table のボタン位置*/
  text-align: center;
  width: 80px;
  min-width: 80px;
  padding: 8px 1px;
}
@media screen and (max-width: 600px) {
.th_button { width: 50px;}
};

button.button_yellow,
button.button_blue,
button.button_red,
button.button_green,
a.button_blue,
a.button_red,
a.button_gray {
  display: inline-block;
  font-size: 0.85em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  max-width: 150px;
  height: auto;
  text-align: center;
}
.button_gray {
  width: 75px;
  margin-bottom: 5px;
  background-color: gray;
  color: white;
  text-align: center;
  border-radius: 3px;
}
.button_gray:hover {
  background-color: rgb(97, 97, 97);
  color: white;
}
.button_blue {
  width: 75px;
  margin-bottom: 5px;
  background-color: #007bff;
  color: white;
  text-align: center;
  border-radius: 3px;
}
.button_blue:hover {
  background-color: #014792;
  color: white;
}
.button_red {
  width: 75px;
  margin-bottom: 5px;
  background-color: red;
  color: white;
  text-align: center;
  border-radius: 3px;
}
.button_red:hover {
  background-color: #a94442;
  color: white;
}
.button_green {
  width: 75px;
  background-color: green;
  color: white;
  text-align: center;
  border-radius: 3px;
}
.button_green:hover {
  background-color: rgb(0, 102, 0);
  color: white;
}

button {
  font-size: 16px;
  padding: 1px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #0056b3;
}

h2.admin_top {
  float: left;
  margin-right: 10px;
}
a.admin_top {
  width: 100px;
  padding: 5px 0px;
  float: left;
  margin-right: 5px;
  text-align: center;
}

.btn_create {
  padding: 10px;
  width: 150px;
}


/* list.php、pages-list.php ボタン */
.editDele {
  display: flex;
  flex-direction: column;
  margin-right: 4px;
}
.editDele_page {
  display: flex;
  align-items: center;
}
.button_green {
  height: 53px;
  margin-top: -5px;
  align-content: center;
}

/* flex */
.flex {
  display: flex;
}
.flex_between {  /* 左右橋位置 */
  display: flex;
  justify-content: space-between;
}
.flex_center {  /* 左右中央 */
  display: flex;
  justify-content: center;
}
.fex_aitens-center {  /* 上下中央 */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flex_end {  /* 右端 */
  display: flex;
  justify-content: flex-end;
}


/*


@media screen and (max-width: 600px) {
  a.button_blue, a.button_red {

  }
}




.button_row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
button[type="submit"].red {
    font-size: 16px;
      padding: 1px 20px;
  background-color: red;
  color: white;
  display: inline-block;
  border-radius: 4px;
}
button[type="submit"].red:hover {
  background-color: #a94442;
  color: white;
}

*/
/* ポップアップedit */
#editModal button {
      font-size: 16px;
      padding: 5px 20px;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
}
#editModal textarea {
      font-size: 16px;
}


/* pagination(admin/index.php) */
.pagination {
  display: flex;
  gap: 5px;
  margin-top: 20px;
}

.pagination a {
  padding: 5px 10px;
  text-decoration: none;
  border: 1px solid #ccc;
  color: #333;
}

.pagination a:hover {
  background-color: #007bff;
  color: white;
}

.pagination span {
  padding: 5px 10px;
  border: 1px solid #333;
  background-color: #333;
  color: #fff;
}
.pagination .active {
  background-color: #007bff;
  color: white;
}
/* pagination end */