/*============================ START TOPBAR STYLE ==========================*/
header ul {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: space-evenly;
    font-weight: bold;
}
header ul li:hover {
    color: rgba(242, 94, 42, 1);
}
header nav {
    width: 100%;
    max-width: 475px;
    font-size: 15px;
    margin-left: 8px;
}
nav.mn.space-navbar{
    margin-left: 30px;
}
.search {
    display: flex;
    border-bottom: 1px solid #000;
    width: 100%;
    /*	max-width: 310px;*/
    height: 40px;
}
.search .input {
    border: none;
    font-size: 15px;
    width: 100%;
    height: 35px;
    margin-top: auto;
    /*opacity: 0.5;*/
    margin-right: 0.5em;
}
.search .button {
    height: 35px;
    margin-top: auto;
    padding: 0;
    color: #1b1b1b;
}
header .button {
    background: transparent;
    border: none;
    width: auto;
}
header .button::before {
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    display: block;
}
.search .button::before {
    background-image: url("../../resources/handmate/img/icon-search.png");
}
header .button.icon.home {
    margin-left: 8px;
}
header .button.icon {
    padding-left: 26px;
    padding-right: 0;
}
header .button.icon::before {
    width: 24px;
    height: 24px;
    margin: auto;
}
header .button.icon.home::before {
    background-image: url("../../resources/handmate/img/icon-home.png");
    width: 40px;
    height: 40px;
}
header .button.icon.login::before {
    background-image: url("../../resources/handmate/img/icon-user.png");
}
header .right-item {
    display: flex;
    margin-right: 0;
    margin-left: auto;
    flex: 1;
    justify-content: flex-end;
    max-width: 400px;
    min-width: 290px;
}
.topbar-logo {
    width: auto;
}
.topbar-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: 105px;
}
#search-sm {
    display: none;
}
.topbar-wrapper .topbar-logo img {
    height: 40px;
    width: auto;
}


/* || member topbar  = topbarUser.html */
header .button.icon.logout {
    position: relative;
    width: 36px;
    padding-top: 0;
    padding-bottom: 0;
    background-color: transparent;
}
header .button.icon.logout::before {
    background-image: url(../../resources/handmate/img/icon-logout.png);
    width: 28px;
    height: 28px;
    position: absolute;
    top: 6px;
    left: 13px;
}
header .button.icon.logout .ui-button-text {
    display: none
}
header .topbarUser .button.icon.home {
    margin-left: 8px;
    padding-top: 0;
    padding-bottom: 8px;
}
header .topbarUser .right-item {
    align-items: center;
}

header .topbarTeacher .button.icon.home {
    margin: 0;
}
header .topbarTeacher form {
    margin: 0;
}
header .button:hover {
    cursor: pointer;
    opacity: .5;
    transition: 0.5s ease-out;
}
body header .ui-button.ui-state-hover {
    border: none;
}
body header .ui-button.ui-state-active {
    background: transparent;
}



/*============================ END TOPBAR STYLE ==========================*/

/*============================ START FOOTER STYLE ==========================*/
.footer-wrapper {
    background-color: #f4f4f4;
    padding: 31px 0;
}
footer {
    font-size: 13px;
}
footer nav {
    margin-top: 24px;
}
footer ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 18px 0;
}
footer ul li {
    margin-right: 24px;
}
footer ul.policy li {
    margin-right: 15px;
}
.button.footer {
    background: transparent;
    color: rgba(242, 94, 42, 1);
    margin-bottom: 18px;
    font-size: 13px;
    max-width: 225px;
    display: block;
    margin-left: auto;
    height: 42px;
    border: 1px solid rgba(242, 94, 42, 1);
}
.button.footer:hover {
    background: rgba(242, 94, 42, 1);
    color: #fff;
}
footer .sns {
    display: inline-block;
    margin-left: 8px;
    text-align: right;
}
.sns .icon {
    width: 26px;
    height: 26px;
}
footer .right-side {
    text-align: right;
}
footer .row2 {
    margin-top: 35px;
}
footer .icon {
    margin: 0;
}
footer nav a:hover {
    color: rgba(242, 94, 42, 1);
}
.footer-logo {
    width: auto;
}
.footer-logo img {
    height: 40px;
    width: auto;
}
#search-navigation {
    display: none;
}
footer .row2 .left-side {
    padding-left: 20px;
    position: relative;
    margin-top: 7px;
}
footer .c-symbol {
    position: absolute;
    font-size: 23px;
    left: 0;
    bottom: -7.9px;
}
/*============================ END FOOTER STYLE ==========================*/

@media screen and (max-width: 1024px) {
    /*============================ START TOPBAR STYLE ==========================*/
    footer nav.link-footer{
        width: 100%;
    }
    header .button.icon.home {
        margin-left: 0px;
    }
    header .button.icon.menu-sm {
        position: relative;
        margin-top: 13px;
    }
    header .button.icon.menu-sm span {
        background: #1b1b1b;
        border-radius: 2px;
        display: block;
        height: 2px;
        left: 41%;
        opacity: 1;
        position: absolute;
        -webkit-transform-origin: left center;
        transform-origin: left center;
        width: 22px;
        transition: 0.5s ease-out;
    }
    header .button.icon.menu-sm span:first-child{
        top: 7px;
    }
    header .button.icon.menu-sm span:nth-child(2){
        top: 16px;
    }
    header .button.icon.menu-sm span:nth-child(3){
        top: 25px;
    }

    .right-item .topbar-icon-home .button.icon.home{
        margin-top: 0px;
        position: relative;
    }
    .right-item .topbar-icon-login .button.icon.login{
        margin-top: 0px;
        position: relative;
    }
    header .button.icon.menu-sm::after {
        content: "メニュー";
        color: #1b1b1b;
        font-weight: bold;
        word-break: keep-all;
        text-align: center;
        font-size: 8px;
        font-family: system-ui;
        display: none;
        font-weight: bold;
    }
    header .button.icon.menu-sm::after:hover{
        display: none;
    }
    header .button.icon.home::before {
        margin: auto;
        background-position: center;
        background-size: 171%;
        height: 24px;
        width: 24px;
    }
    header .button.icon.home::after {
        content: "ホーム";
        color: #1b1b1b;
        font-weight: bold;
        word-break: keep-all;
        text-align: center;
        font-size: 8px;
        font-family: system-ui;
        display: none;
        font-weight: bold;
        margin-top: 5px;
    }
    header .button.icon.login::before {
        margin: auto;
        background-size: cover;
        background-position: center;
        width: 22px;
        height: 24px;
    }
    header .button.icon.login::after {
        content: "マイページ";
        color: #1b1b1b;
        font-weight: bolder;
        word-break: keep-all;
        text-align: center;
        font-size: 8px;
        font-family: system-ui;
        display: none;
        font-weight: bold;
        margin-top: 5px;
    }
    .right-item .search .button::before {
        margin: auto;
        background-position: center;
        width: 22px;
        height: 24px;
        margin-top: 8px;
    }
    .right-item .search .button::after {
        display: none;
        content: "見つける";
        color: #1b1b1b;
        font-weight: bold;
        word-break: keep-all;
        text-align: center;
        font-size: 8px;
        font-family: system-ui;
        margin-top: 3px;
        font-weight: bold;
    }
    .right-item .button.icon.menu-sm::after{
        margin-top: 6px;
    }
    header .button.icon {
        margin: auto;
        padding-left: 14px;
        display: block;
    }
    .search .input {
        padding: 2px 0 2px 2px;
    }
    .search .button {
        margin-top: 5px;
    }
    .topbar-wrapper {
        height: 65px;
    }
    .topbar-wrapper .topbar-logo {
        width: auto;
        order: 1;
    }
    .topbar-wrapper .topbar-logo img {
        width: auto;
        height: 40px;
    }
    header nav {
        order: 3;
        display: none;
    }
    header .show-menu nav.mn {
        display: block;
        position: absolute;
        background: #fff;
        left: 0;
        margin: 0;
        top: 65px;
        z-index: 99;
        width: 100%;
        max-width: unset;
        -webkit-box-shadow: 0px 5px 5px lightgrey;
    }
    header .show-menu .topbar-wrapper .right-item button.icon.menu-sm:after{
        display: none;
    }
    header .show-menu .topbar-wrapper .right-item button.icon.menu-sm span:first-child {
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transition: 0.5s ease-out;
        width: 26px;
    }
    header .show-menu .topbar-wrapper .right-item button.icon.menu-sm span:nth-child(2) {
        display: none;
    }
    header .show-menu .topbar-wrapper .right-item button.icon.menu-sm span:nth-child(3) {
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transition: 0.5s ease-out;
        width: 26px;
    }
    header .show-menu .topbar-wrapper .right-item .search{
        display: none;
    }
    header .show-menu .topbar-wrapper .right-item .home{
        display: none;
    }
    header .show-menu .topbar-wrapper .right-item .login{
        display: none;
    }
    header .search-menu nav#search-navigation.src {
        display: block;
        position: absolute;
        background: #fff;
        left: 0;
        margin: 0;
        top: 65px;
        z-index: 99;
        width: 100%;
        max-width: unset;
        padding: 0 1em 1em;
        -webkit-box-shadow: 0px 5px 5px lightgrey;
    }
    header .search-sm {
        display: block;
    }
    header .topbar-wrapper .right-item {
        min-width: 0;
        max-width: fit-content;
        margin-left: auto;
        order: 2;
        align-items: center;
    }
    #mobile-menu {
        position: relative;
        -webkit-box-shadow: 0px 1px 5px lightgrey;
        z-index: 2;
    }
    header ul {
        flex-flow: column;
        text-align: left;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        margin-bottom: 0;
    }
    header ul li {
        text-align: left;
        border-top: 1px solid #cecece;
        padding: 1em 1.2em;
    }
    .right-item .search {
        border-bottom: none;
    }
    .right-item .search .input {
        display: none;
    }
    header .button.icon::after {
        margin-top: 2px;
    }
    .search .button.btn-src-lg {
        display: none;
    }

    header #menuCorner .button.icon::before {
        height: 23px;
    }
    header .show-menu .button.icon.menu-sm::after {
        /*content: "閉じる";*/
    }
    header .show-menu #menuCorner .button.icon {
        left: -3px;
    }
    header .right-item .search {
        display: block;
        margin: auto;
    }


    /* || member topbar  = topbarUser.html */
    header .button.icon.logout::after {
        content: "ログアウト";
        color: #1b1b1b;
        font-weight: bold;
        word-break: keep-all;
        text-align: center;
        font-size: 8px;
        font-family: system-ui;
        display: none;
        /*font-weight: normal;*/
        margin-top: 28px;
    }
    header .button.icon.logout::before {
        top: 2px;
        left: 21px;
    }
    header .button.icon.logout {
        width: 53px;
        margin-top: 16px;
    }
    header .topbarUser .button.icon.home {
        padding-bottom: 0px;
    }
    .right-item.teacher-main-topbar .button.icon.home span.ui-button-text.ui-c{
        display: none;
    }

    /* || teacher topbar  = topbarTeacher.html */
    header .topbarTeacher .topbar-wrapper {
        height: auto;
        padding-top: 1em;
        padding-bottom: 0.5em;
    }
    header .topbarTeacher .right-item {
        width: 100%;
        justify-content: right;
        margin: 0;
        align-items: center;
        max-width: unset;
    }
    .topbar-name-link {
        flex: 1;
        height: auto;
    }
    #mobile-menu.topbarTeacher {
        -webkit-box-shadow: none;
    }
    /*============================ END TOPBAR STYLE ==========================*/
}
@media screen and (max-width: 40.063em) {
    /*============================ START TOPBAR STYLE ==========================*/
    .sns .icon {
        width: 32px;
        height: 32px;
    }
    .photo-profile-topbar{
        border-radius: 50%;
        width: 33px;
        height: 33px;
        margin-bottom: 2px;
    }
    .topbar-wrapper .topbar-logo img {
        height: 34px;
    }
    .wrap-sns-footer{
        margin-bottom: 1em;
    }

    .show-teacher-submenu ul.ui-menu-list {
        display: block!important;
    }
    header .button.icon.logout {
        margin: 0;
        padding: 0;
        width: 145px;
    }
    header .button.icon.logout::before {
        left: 0px;
        width: 23px;
        height: 23px;
    }
    .menu-logout .p-menu{
        position: relative;
        padding-left: 2.4em;
    }
    .menu-logout form {
        display: flex;
    }
    header .button.icon.logout .ui-button-text {
        display: block;
        font-size: 15px;
        color: #000000;
        font-weight: normal;
        margin-bottom: 18px;display: block;
        font-size: 15px;
    }
    /*============================ END TOPBAR STYLE ==========================*/

    /*============================ START FOOTER STYLE ==========================*/
    footer ul {
        display: flex;
        flex-wrap: wrap;
        margin: 0 0 16px;
    }
    footer ul li {
        width: 50%;
        margin-right: 0px;
        margin-bottom: 8px;
    }
    .link-footer {
        display: inline-grid;
        width: 100%;
    }
    footer ul.policy li {
        margin-right: 15px;
        width: fit-content;
        border-right: 1px solid #c1c1c1;
        padding-right: 15px;
    }
    footer ul.policy li:last-child {
        border-right: none;
    }
    .link-footer ul:first-child {
        border-bottom: 1px solid #c1c1c1;
        padding-bottom: 6px;
    }
    footer .row2 {
        margin: 24px auto 0em;
        text-align: center;
        display: flex;
        flex-wrap: wrap-reverse;
    }
    footer .row2 .right-side {
        text-align: center;
        margin-top: 0;
    }
    .footer-logo img {
        margin: auto;
    }
    .login-btn-footer {
        display: flex;
    }
    .login-btn-footer form {
        width: calc(50% - 0.5em);
        margin-bottom: 0;
    }
    footer .right-side form:nth-child(odd) {
        margin-right: auto;
        margin-left: 0;
    }
    footer .right-side form:nth-child(even) {
        margin-left: auto;
        margin-right: 0;
    }
    footer .right-side {
        margin-top: 7px;
    }
    .link-footer ul:first-child li:nth-child(even) {
        padding-left: 0.5em;
    }
    .footer-wrapper {
        padding-bottom: 15px;
    }
    footer .max-width {
        max-width: 450px;
    }
    footer .sns {
        margin: 0 5px;
    }
    footer .right-side.login-btn-footer {
        display: flex !important;
    }
    footer .row2 .left-side {
        display: block;
        margin: auto;
        width: auto;
    }
    /*============================ END FOOTER STYLE ==========================*/
    header .button.icon.menu-sm-teacher {
        position: relative;
        margin-top: 13px;
    }
    header .button.icon.menu-sm-teacher span {
        background: #000000;
        border-radius: 2px;
        display: block;
        height: 2px;
        left: 41%;
        opacity: 1;
        position: absolute;
        -webkit-transform-origin: left center;
        transform-origin: left center;
        width: 22px;
        transition: 0.5s ease-out;
    }
    header .button.icon.menu-sm-teacher span:first-child{
        top: 7px;
    }
    header .button.icon.menu-sm-teacher span:nth-child(2){
        top: 16px;
    }
    header .button.icon.menu-sm-teacher span:nth-child(3){
        top: 25px;
    }
    header .button.icon.menu-sm-teacher::after {
        content: "メニュー";
        color: #1b1b1b;
        font-weight: bold;
        word-break: keep-all;
        text-align: center;
        font-size: 8px;
        font-family: system-ui;
        display: none;
        font-weight: bold;
    }
    header .button.icon.menu-sm-teacher::after:hover{
        display: none;
    }
    .right-item .button.icon.menu-sm-teacher::after{
        margin-top: 6px;
    }
    header .show-menu .topbar-wrapper .right-item button.icon.menu-sm-teacher:after{
        display: none;
    }
    header .show-menu .topbar-wrapper .right-item button.icon.menu-sm-teacher span:first-child {
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transition: 0.5s ease-out;
        width: 26px;
    }
    header .show-menu .topbar-wrapper .right-item button.icon.menu-sm-teacher span:nth-child(2) {
        display: none;
    }
    header .show-menu .topbar-wrapper .right-item button.icon.menu-sm-teacher span:nth-child(3) {
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transition: 0.5s ease-out;
        width: 26px;
    }
    .teacher-main-topbar .button.icon.home{
        display: none;
    }
    .teacher-main-topbar .button.icon.logout{
        display: none;
    }
    #mobile-menu.topbarTeacher.show-menu nav.menu-teacher-main-sm{
        display: block;
        position: absolute;
        background: #fff;
        left: 0;
        margin: 0;
        top: 65px;
        z-index: 99;
        width: 100%;
        max-width: unset;
        -webkit-box-shadow: 0px 5px 5px lightgrey;
    }
    #mobile-menu.topbarTeacher.show-menu .teacher-main-topbar .photo-profile-topbar{
        display: none;
    }
    .wrap-item-menu-tc div{
        margin: 0 1em;
        padding: 0.8em 1em 0em .4em;
        border-bottom: 1px solid gray;
    }
    .wrap-item-menu-tc .menu-main{
        padding: 0.8em 1em 0.8em .4em;
    }
    .wrap-item-menu-tc div:last-child{
        border-bottom: none;
    }
    .wrap-item-menu-tc div a{
        display: flex;
        align-items: center;
    }
    .menu-main a:before{
        content: url('../../resources/handmate/img/member/house-small.png');
        width: 20px;
        height: 20px;
        margin-right: 1em;
    }
    .menu-classroom .p-menu:before{
        content: url('../../resources/handmate/img/member/school-small.png');
        width: 20px;
        height: 20px;
        margin-right: 1em;
    }
    .menu-classroom .p-menu:after{
        content: "";
        border-bottom: 2px solid #E8472A;
        border-right: 2px solid #E8472A;
        transform: rotate(45deg);
        height: 10px;
        width: 10px;
        margin-left: auto;
        margin-bottom: 5px;
        transition: 0.5s ease-out;
    }
    .menu-workshop .p-menu:before{
        content: url('../../resources/handmate/img/member/workshop-small.png');
        width: 20px;
        height: 20px;
        margin-right: 1em;
    }
    .menu-workshop .p-menu:after{
        content: "";
        border-bottom: 2px solid #E8472A;
        border-right: 2px solid #E8472A;
        transform: rotate(45deg);
        height: 10px;
        width: 10px;
        margin-left: auto;
        margin-bottom: 5px;
        transition: 0.5s ease-out;
    }
    .menu-event .p-menu:before{
        content: url('../../resources/handmate/img/member/event-small.png');
        width: 20px;
        height: 20px;
        margin-right: 1em;
    }
    .menu-event .p-menu:after{
        content: "";
        border-bottom: 2px solid #E8472A;
        border-right: 2px solid #E8472A;
        transform: rotate(45deg);
        height: 10px;
        width: 10px;
        margin-left: auto;
        margin-bottom: 5px;
        transition: 0.5s ease-out;
    }
    .menu-sensei-inform .p-menu:before{
        content: url('../../resources/handmate/img/member/teacher-small.png');
        width: 20px;
        height: 20px;
        margin-right: 1em;
    }
    .menu-sensei-inform .p-menu:after{
        content: "";
        border-bottom: 2px solid #E8472A;
        border-right: 2px solid #E8472A;
        transform: rotate(45deg);
        height: 10px;
        width: 10px;
        margin-left: auto;
        margin-bottom: 5px;
        transition: 0.5s ease-out;
    }

    .menu-article .p-menu{
        position: relative;
        padding-left: 2.4em;
    }
    .menu-article .p-menu:before{
        content: "";
        background: url('../../resources/handmate/img/member/i-article.png');
        width: 22px;
        height: 22px;
        margin-right: 1em;
        position: absolute;
        background-size: contain;
        background-repeat: no-repeat;
        left: 0px;
        top: 0px;
    }
    .menu-article .p-menu:after{
        content: "";
        border-bottom: 2px solid #E8472A;
        border-right: 2px solid #E8472A;
        transform: rotate(45deg);
        height: 10px;
        width: 10px;
        margin-left: auto;
        margin-bottom: 5px;
        transition: 0.5s ease-out;
    }

    .p-menu{
        cursor: pointer;
        transition: 500ms ease 0s;
    }
    .menu-user-inform .p-menu:before{
        content: url('../../resources/handmate/img/member/bell.png');
        width: 20px;
        height: 20px;
        margin-right: 1.1em;
        margin-bottom: 5px;
        margin-left: -2px;
    }
    .menu-user-inform .p-menu:after{
        content: "";
        border-bottom: 2px solid #E8472A;
        border-right: 2px solid #E8472A;
        transform: rotate(45deg);
        height: 10px;
        width: 10px;
        margin-left: auto;
        margin-bottom: 5px;
        transition: 0.5s ease-out;
    }
    .label-notif-sm{
        margin-left: 10px;
        color: white;
        font-size: 12px;
        background-color: #E8472A;
        height: 18px;
        width: 18px;
        text-align: center;
        border-radius: 50%;
    }
    .wrap-item-menu-tc .child-menu .ui-commandlink.sm-notif-all:after{
        content: "6";
        margin-left: 8px;
        color: white;
        font-size: 12px;
        background-color: #E8472A;
        height: 18px;
        width: 18px;
        text-align: center;
        border-radius: 50%;
        line-height: 17px;
        font-weight: normal;
    }
    .wrap-item-menu-tc .child-menu .ui-commandlink.sm-notif-important:after{
        content: "2";
        margin-left: 8px;
        color: white;
        font-size: 12px;
        background-color: #E8472A;
        height: 18px;
        width: 18px;
        text-align: center;
        border-radius: 50%;
        line-height: 17px;
        font-weight: normal;
    }
    .wrap-item-menu-tc .child-menu .ui-commandlink.sm-notif-starred:after{
        content: "1";
        margin-left: 8px;
        color: white;
        font-size: 12px;
        background-color: #E8472A;
        height: 18px;
        width: 18px;
        text-align: center;
        border-radius: 50%;
        line-height: 17px;
        font-weight: normal;
    }
    .wrap-item-menu-tc .child-menu .ui-commandlink.sm-notif-school:after{
        content: "2";
        margin-left: 8px;
        color: white;
        font-size: 12px;
        background-color: #E8472A;
        height: 18px;
        width: 18px;
        text-align: center;
        border-radius: 50%;
        line-height: 17px;
        font-weight: normal;
    }
    .wrap-item-menu-tc .child-menu .ui-commandlink.sm-notif-workshop:after{
        content: "1";
        margin-left: 8px;
        color: white;
        font-size: 12px;
        background-color: #E8472A;
        height: 18px;
        width: 18px;
        text-align: center;
        border-radius: 50%;
        line-height: 17px;
        font-weight: normal;
    }
    .wrap-item-menu-tc .child-menu{
        max-height: 0;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        margin: 14px 0 0 2.5em;
    }
    .child-menu a{
        display: block;
        padding-bottom: 12px;
        font-family: inherit;
        color: #808080;
        font-size: 15px;
    }
    .menu-classroom .p-menu.active-collapsible:after{
        transform: rotate(225deg);
        transition: 0.5s ease-out;
    }
    .menu-workshop .p-menu.active-collapsible:after{
        transform: rotate(225deg);
        transition: 0.5s ease-out;
    }
    .menu-event .p-menu.active-collapsible:after{
        transform: rotate(225deg);
        transition: 0.5s ease-out;
    }
    .menu-sensei-inform .p-menu.active-collapsible:after{
        transform: rotate(225deg);
        transition: 0.5s ease-out;
    }
    .menu-article .p-menu.active-collapsible:after{
        transform: rotate(225deg);
        transition: 0.5s ease-out;
    }
    .wrap-item-menu-tc{
        margin-top: 1em;
    }
}

@media screen and (max-width: 320px) {
    .topbar-wrapper .topbar-logo img {
        height: 31px;
    }
    header .button.icon {
        padding-left: 7px;
    }
    header .button.icon.menu-sm span {
        left: 33%;
    }
}
