@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@700&family=Noto+Sans+JP:wght@100;200;300;400;500;600;700;800;900&family=Shippori+Mincho:wght@400;600&display=swap');

/* ルート要素の基準フォントサイズ */
html {
    font-size: 16px;
}
  

@media (max-width: 576px) {
    html {
      font-size: 16px;
    }
}


/* メディアクエリを使用して画面サイズに応じたフォントサイズを変更 */
@media (max-width: 767px) {
    /* 767px以下の画面サイズに対するフォントサイズ */
    html {
      font-size: 16px;
    }
}
  
@media (min-width: 768px) and (max-width: 1023px) {
  /* 768px以上1023px以下の画面サイズに対するフォントサイズ */
  html {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  /* 1024px以上の画面サイズに対するフォントサイズ */
  html {
    font-size: 18px;
  }
}

/* h1要素のフォントサイズ */
h1 {
  font-size: 1.8rem; 
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.2rem;
}

/* p要素のフォントサイズ */
p {
  font-size: 1rem; /* 基準となるフォントサイズ */
}

/* li要素のフォントサイズ */
li {
  font-size: 1.2rem; /* 基準となるフォントサイズの1.2倍 */
}



body {
    background: #F5F5F5 0% 0% no-repeat padding-box;
    font-family: 'Noto Sans JP', sans-serif;
    min-height: 100vh;
}
.navbar {
    background-color: #333E4A;
    height: 56px;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(0,0,0,0.11);
}
.sidebar {
  background-color: #333E4A;
  height: calc(100vh - 56px);
  height: 100%;
  display: flex;
  flex-direction: column;
}





.sidebar-link {
  color: white;
  text-decoration: none;
}
.sidebar-link:hover {
  background-color: #4D5C6C;
  color: white;
}
.sidebar-link.current {
  background-color: #F45732;
}

.btn-submit {
    background-color: #F45732;
    color: #ffffff;
    border-radius: 30px;
    width: 200px;
    height: 40px;
    border: 2px solid transparent;
    transition: all 0.3s;
}
  
.btn-submit:hover {
    color: red;
    border-color: red;
}
@media (max-width: 576px) {
    .btn-submit {
        border-radius: 26px;
        width: 160px;
        height: 40px;
        border: 1px solid transparent;
        transition: all 0.3s;
    }
}


.wid-160 {
    width: 160px;
}
.rounded-30 {
    border-radius: 30px;
}


.faded {
    opacity: 0.5;
}

.wrapper{
    display: grid;
    grid-template-columns: 200px 1fr;
}
.pagination-box{
    display: flex;
    justify-content: flex-end;
}
.toggler {
    display: none;
}

@media screen and (max-width: 768px) {
    .wrapper{
        display: grid;
        grid-template-columns: 1fr;
    }
    .wrapper .sidebar {
        opacity: 0;
        top: 0px;
        position: fixed;
        left: -200px;
        transition: left 0.7s, opacity 0.4s;
        z-index: 3;
    }

    .wrapper .sidebar.active {
        display: flex;
        height: 100vh;
        height: 100%;
        flex-direction: column;
        position: fixed;
        width: 200px;
        z-index: 3;
        top: 0px;
        left: 0px;
        opacity: 1;
        transition: left 0.7s, opacity 0.7s;
    }
    .sidebar.active ~ .overlay {
        display: flex;
        z-index: 2;
    }


    .toggler {
        display: block;
    }


    .main-box {
        padding: 0;
    }
    .main-box-header {
        display: grid;
        grid-template-columns: 1fr;
    }
    .pagination-box {
        align-self: center;
    }
    .main-box-body {
        margin-top: 0;
    }
}
@media screen and ( max-width: 576px) {
    .main-box-header-article-name{
        display: flex;
        justify-content: space-between;
    }
    .wrapper .main-box-header {
        display: grid;
        grid-template-columns: 1fr;
    }
    .pagination-box {
        margin: 20px auto;
        justify-content: flex-center;
    }
}

.wrapper .wrapper-box{
    justify-content: center;
    align-items: center;
}

.pagination-btn {
    --bs-btn-color: #000000;
    --bs-btn-bg: #ffffff;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #F45732;
    --bs-btn-hover-border-color: #F45732;
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #848484;
    --bs-btn-active-border-color: 848484;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-gradient: none;
    height: 40px;
}

.pagination-btn-side {
    --bs-btn-color: #333333;
    --bs-btn-border-color: #cccccc;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #485ED5;
    --bs-btn-hover-border-color: #485ED5;
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #333333;
    --bs-btn-active-border-color: #333333;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #333333;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #333333;
    --bs-gradient: none;
    height: 40px;
}

.bg-exclusion {
    background-color: #333E4A !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 黒の色と透明度を調整 */
    z-index: 2;
    display: none;
}

.wrapper-cord {
    margin: 0 auto;
    width: 100%;
    min-height: 250px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 8px #00000014;
    border-radius: 16px;
    opacity: 1;
    padding: 2% 2% 2% 2%;
}

.wrapper-cord a {
    text-decoration: none;
    color: #333333;
    transition: color 0.3s;
}
.wrapper-cord a:hover {
    text-decoration: underline;
    color: blueviolet;
}
.wrapper-cord th {
    border-bottom: 1px solid black; /* change thickness and color as needed */
}

.main-box {
    padding: 2% 2% 2% 2%;
    min-height: calc(100vh - 56px);
}

.main-box-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin: 10px 0;
}
.pagination-box {
    align-self: end;
}

.main-box-body {
    margin-top: 2%;
}

.form-control {
    box-shadow: 0 1px 4px #00000014;
    transition: box-shadow .2s ease;
}

.cke_editable {
    font-size: 16px !important;
}

.wrapper-empty{
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}



#loading-screen {
    transition: opacity 1s ease-in;
}

.loader,
.loader:before,
.loader:after {
  background: #000000;
  -webkit-animation: load1 1s infinite ease-in-out;
  animation: load1 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
}
.loader {
  color: #000000;
  text-indent: -9999em;
  margin: 88px auto;
  position: relative;
  font-size: 11px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  position: absolute;
  top: 0;
  content: '';
}
.loader:before {
  left: -1.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 1.5em;
}
@-webkit-keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}
@keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}
