/* ==================================================
   File: layout.css
   Purpose: ヘッダー、フッター、サイドバーなど
            レイアウト専用のスタイルをまとめる
================================================== */

.wrapper {
    right: 0;
    transition: all 0.3s;
}

/* ===== header ====== */
header {
    width: 100%;
    padding: 16px;
    background-color: #FFFFFF;
}
.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 87px;
    max-width: 1770px;
    margin: auto;
}
@media (max-width: 600px) {
    .header-inner {
       height: auto;
    }
}

/*--サイトロゴ--*/
.site-title {
    display: inline-block;
    width: auto;
}
.site-title a {
    display: inline-block;
    width: fit-content;
    cursor: pointer;
}
.site-title-logo {
    width: 240px;
}
@media (max-width: 600px) {
    .site-title-logo {
        width: 160px;
    }
}

/*--検索フォーム--*/
.search-conteiner {
    display: flex;
}
.search-form {
    display: flex;
    align-items: center;
    overflow: hidden;
}
.search-form label {
    display: inline-block;
    width: fit-content;
    height: fit-content;
}
.search-input {
    width: 304px;
    height: 40px;
    padding-left: 0.5rem;
    background-color: #eeeeee;
    border: none;
    border-radius: 5px 0px 0px 5px;
    outline: none;
}
.search-form-2 input::placeholder {
    color: #777777;
}
.btn-search {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #ec635e;
    border-radius: 0px 5px 5px 0px;
}
@media (max-width: 959px) {
    .search-input {
        width: 204px;
    }
}
@media (max-width: 600px) {
    .search-input {
        width: 165px;
        height: 35px;
        font-size: 0.8125rem;
    }
    .btn-search {
        width: 35px;
        height: 35px;
    }
}
@media (max-width: 425px) {
    .search-input {
        width: 100%;
        max-width: 165px;
    }
}

/*--メニュー--*/
.burger-menu-conteiner{
    position: relative;
    height: 100%;
    margin: auto 1rem auto 1.3125rem;
    border-radius: 50%;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
}
.burger-menu{
    width: auto;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.bar{
    width: 28px;
    height: 3px;
    left: 50%;
    background-color: #333333;
    border-radius: 5px;
    transition: all 0.3s;
}
.menu-active .bar-top {
    top: 18px;
    left: 18px;
    transform: translateY(12.5px) rotate(-45deg);
    width: 24px;
}
.menu-active .bar-mid {
    opacity: 0;
}
.menu-active .bar-bottom {
    top: 28px;
    left: 18px;
    transform: translateY(-12.5px) rotate(45deg);
    width: 24px;
}
.header-nav-conteiner {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    z-index: 999;
    width: auto;
    height: 100vh;
    transition: all 0.3s;
}
.header-nav {
    width: 320px;
    background-color: #FFFFFF;
}
.header-nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.header-nav-item a {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    padding: 0.9375rem 0.625rem;
}
.header-nav-item-label {
    color: #333;
    font-size: 1.25rem;
}
.header-nav-item-label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 300px;
    width: 8px;
    height: 8px;
    margin-top: -5px;
    border-top: solid 2px #333;
    border-right: solid 2px #333;
    transform: rotate(45deg);
}

@media (max-width: 959px) {
    .menu-active.wrapper {
        position: relative;
        left: -320px;
    }
    .burger-menu-conteiner {
        display: flex;
    }
    .header-nav-conteiner {
        display: flex;
    }
    .menu-active.header-nav-conteiner {
        right: 0;
    }
}
@media (max-width: 600px) {
    .menu-active.wrapper {
        left: -250px;
    }
    .burger-menu-conteiner {
        margin: auto 0.5rem;
    }
    .header-nav-conteiner {
        right: -250px;
    }
    .header-nav {
        width: 250px;
    }
    .header-nav-item-label {
        font-size: 0.9375rem;
    }
    .header-nav-item-label::after {
        left: 230px;
        width: 6px;
        height: 6px;
    }
}

/* ===== side bar ====== */
.side-bar {
    width: 300px;
    padding: 0px;
    margin-left: 1.25rem;
}
.side-widgets {
    margin-bottom: 10px;
}
.side-bar ul li {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    font-size: 14px;
    line-height: 24px;
}
.side-bar ul li a {
    position: relative;
    vertical-align: middle;
    width: 100%;
    padding: 10px 20px 10px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #e1e1e1;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.side-bar ul li a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 8px;
    height: 8px;
    margin-top: -5px;
    border-top: solid 2px #333;
    border-right: solid 2px #333;
    transform: rotate(45deg);
}
.side-bar ul li a span{
    font-size: 0.875rem;
}
.widget_st_categories_widget {
    margin-bottom: 0.625rem;
}
.sidebar-toc-wrapper {
    position: static;
    padding: 1.25rem 0;
}
.sidebar-toc-wrapper.fixed {
   position: fixed;
   top: 0px;
   width: 100%;
   max-width: 300px;
}
.side-bar .toc {
   max-height: 500px;
   margin: 0 auto 1.25rem;
   padding: 0.9375rem 1.25rem;
   background: #fff;
   border: none;
   overflow: auto;
}
.side-bar .toc-title {
   padding: 0.3125rem;
   color: #ccc;
   font-size: 0.9375rem;
   font-weight: 100;
}
.side-bar .toc-title::before {
   content: "";
   display: inline-block;
   width: 17px;
   height: 17px;
   padding-right: 0.5rem;
   background-image: url('../images/icon-tcp-gray.png');
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
}
.side-bar .toc-toggle-btn {
   display: none;
}
.side-bar .toc ul {
   display: block;
   padding: 1.25rem 0;
}
.side-bar .toc ul a {
   padding: 0.1325rem 0;
   font-size: 0.875rem;
   line-height: 24px;
   border: none;
}
.side-bar .toc ul a::after {
    display: none;
}
.side-bar .toc ol {
   padding: 0.1325rem 1.25rem 0;
   margin-bottom: 0.625rem;
}
.side-bar ul li {
   color: #ccc;
   font-size: 0.875rem;
   line-height: 24px;
}
.side-bar .toc-level-2 a {
   font-weight: bold;
}
.side-bar .toc-level-3,
.side-bar .toc-level-4 {
   list-style: decimal;
}
@media (max-width: 959px) {
    .side-bar {
        display: none;
    }
}

/* ===== footer ====== */
footer {
    width: 100%;
    clear: both;
    padding: 0px;
}
.footer-inner {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem 0.625rem;
}
.footer-menu-wrapper {
    width: fit-content;
    padding-bottom: 1.25rem;
}
.footer-menu .menu-item {
    display: inline;
    padding: 0rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.125rem;
    border-right: 1px solid rgb(51, 51, 51);
    white-space: nowrap;
}
.footer-menu .menu-item:last-child {
    border-right: none;
}
.footer-menu .menu-item a {
    font-size: 0.75rem;
}
.footer-logo-wrapper {
    width: fit-content;
    padding-bottom: 1.25rem;
}
.footer-logo {
    width: 210px;
}
.copyr {
    width: fit-content;
    line-height: 1.2;
}
.copyr small {
    font-size: 0.75rem;
}
@media (max-width: 600px) {
	.footer-menu {
		flex-wrap: wrap;
		justify-content: center;
	}
    .footer-menu .menu-item {
        padding: 0rem 0.5rem;
    }
}