
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 16px 0;
    width: 1100px;
}

@media screen and (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        align-items: center;
        padding: 20px;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }
}

.header .second-header-pc {
    margin: 0 300px 0 0;
    text-align: center;
}

.header .profile-notification {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .profile-notification .function-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    padding: 4px 8px;
    width: 160px;
    color: #5e6cef;
    border: 1px solid #5e6cef;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
}

.header .profile-notification .function-button a:hover {
    border: 1px solid #8ca5ff;
    color: #8ca5ff;
}

.header .profile {
	width: 30%;
}

@media screen and (max-width: 768px) {
    .header .logo {
        order: 1;
    }

    .header .menu {
        order: 3;
    }

    .header .profile {
        width: auto;
        order: 2;
    }

    .header .profile-notification {
        width: auto;
        order: 2;
    }

    .header .profile-notification .function-button a {
        margin-right: 0;
        width: 140px;
        font-size: 12px;
    }
}

.not-login .menu a {
    font-size: 14px;
    color: #2e2e2e;
    text-decoration: none;
    transition: all 0.3s ease 0s;
}

.not-login .menu a:hover {
    color: #888888;
    text-decoration: none;
}

.not-login .menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0px 0px 0 0;
	width: calc(60% - 164px);
}

.not-login .menu .item {
    margin: 0 15px;
}

.not-login .menu .item a {
    position: relative;
}

.not-login .menu .item a::after {
    position: absolute;
    bottom: -6px;
    left: 0;
    content: "";
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #000000;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform 0.3s;
}

.not-login .menu .item a:hover::after {
    transform: scale(1, 1);
}

@media screen and (max-width: 768px) {
    .not-login .menu {
        display: none;
    }
}

.header .logo {
	width: 164px;
}

.header .logo img {
    width: 164px;
}

@media screen and (max-width: 768px) {
    .header .logo h1 a {
        display: flex;
        align-items: center;
    }

    .header .logo img {
        width: 140px;
        height: auto;
    }
}

/* ie11 */
_:-ms-lang(x)::-ms-backdrop,
.header .logo img {
    margin-top: 8px;
}
/* edge */
@supports (-ms-ime-align: auto) {
    .header .logo img {
        margin-top: 8px;
    }
}
/* firefox */
@-moz-document url-prefix() {
    .header .logo img {
        margin-top: 8px;
    }
}
/* chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .header .logo img {
        margin-top: 0;
    }
}
/* safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media,
    _:future,
    :root .header .logo img {
        margin-top: 8px;
    }
}
@media screen and (max-width: 768px) {
    .header .logo img {
        vertical-align: top;
    }
}

/* simple */
.header-simple {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 1200px;
    height: auto;
    margin: 0 auto;
    padding: 16px 10px;
}

@media screen and (max-width: 768px) {
    .header-simple {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        width: calc(100% - 20px);
        height: auto;
        margin: 0 auto;
        padding: 20px 10px;
        text-align: center;
    }
}

@media screen and (min-width: 769px) and (max-width: 1210px) {
    .header-simple {
        width: 100%;
        padding: 20px 10px;
    }
}

.header-simple .logo img {
    width: 164px;
}

@media screen and (max-width: 768px) {
    .header-simple .logo h1 {
        height: 28px;
        margin: 0;
    }

    .header-simple .logo img {
        display: inline-block;
        vertical-align: top;
        width: 140px;
    }
}

/* second-header*/
@media screen and (min-width: 768px) {
    .second-header-sp {
        display: none;
    }
}

.second-header-pc {
    margin: 0 360px 0 0;
    text-align: center;
}
.second-header-pc .menu {
    display: flex;
}

.second-header-pc .menu .item {
    display: inline-block;
    margin: 0 10px;
}

.second-header-pc .menu .item a {
    position: relative;
    font-size: 14px;
    color: #2e2e2e;
    text-decoration: none;
    transition: all 0.3s ease 0s;
}

.second-header-pc .menu .item a:hover {
    color: #888888;
    text-decoration: none;
}

.second-header-pc .menu .item a::after {
    position: absolute;
    bottom: -6px;
    left: 0;
    content: "";
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #000000;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform 0.3s;
}

.second-header-pc .menu .item a:hover::after {
    transform: scale(1, 1);
}

@media screen and (max-width: 768px) {
    .second-header-pc {
        display: none;
    }

    .second-header-sp {
        width: calc(100% - 20px);
        padding: 0 10px 10px;
    }
    .second-header-sp .menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .second-header-sp .menu .item {
        display: inline-block;
    }
    .second-header-sp .menu a {
        display: inline-block;
        height: 32px;
        width: 86%;
        line-height: 33px;
        color: #2e2e2e;
        margin: 0 6px;
        position: relative;
        text-decoration: none;
        border-top: 1px solid #5e6cef;
        border-bottom: 1px solid #5e6cef;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
    }
    .header-top .menu a::after {
        content: none;
    }
}

/* ハンバーガーメニュー*/
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1000;
    align-items: end;
}

.hamburger-menu .width-30 {
    width: 25px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-color: #959595;
    transition: all 0.3s ease;
    margin: 5px 0;
    cursor: pointer;
}

.mobile-menu .menu-list {
    overflow: auto;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    width: 215px;
    height: auto;
    background-color: #ffffff;
    transition: 0.3s ease-in-out;
    transform: translateY(105%);
}

.mobile-menu .menu-list a {
    display: inline-block;
    width: 195px;
    height: auto;
    padding: 10px 0 10px 20px;
    line-height: 1.5em;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #d9d9d9;
    color: #000000;
}

.mobile-menu.active {
    transform: translateY(0%);
}

.mobile-menu.active .menu-list {
    transform: translateY(0%);
    transition: 0.3s ease-in-out;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
    .header .logo {
        order: 0;
		width: 140px;
    }
}

@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        order: 3;
        width: 100%;
    }

    .second-header-pc {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu .menu a {
        padding: 10px;
        text-align: center;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #ddd;
    }

    .mobile-menu .menu a:last-child {
        border-bottom: none;
    }
}

.menu-background {
    position: fixed;
    z-index: 99;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.3;
    transition: 0.1s ease-in-out;
}

/* profile
-------------------------------------------------- */
.profile .menu-not-login {
    display: flex;
    justify-content:flex-end;
    align-items: center;
    font-size: 14px;
}

.profile .menu-not-login a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    padding: 4px;
    border-radius: 5px;
    transition: all 0.3s ease 0s;
}

.profile .menu-not-login a.login {
    width: auto;
    color: #5e6cef;
    background-color: #ffffff;
    font-weight: 700;
}

.profile .menu-not-login a.registration {
    padding: 9px;
    margin-left: 30px;
    width: auto;
    color: #ffffff;
    background-color: #5e6cef;
    border: 2px solid #5e6cef;
    font-weight: 700;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    .profile .menu-not-login a.login {
        font-size: 11px;
        padding: 5px;
        border: 1px solid transparent;
        width: auto;
        font-weight: 700;
    }
    .profile .menu-not-login a.registration {
        font-size: 11px;
        padding: 0px 8px;
        margin-left: 10px;
        border: 1px solid #5e6cef;
        width: auto;
        font-weight: 700;
    }
}

.profile .menu-not-login a.login:hover {
    color: #8ca5ff;
    border-color: #8ca5ff;
}

.profile .menu-not-login a.registration:hover {
    background-color: #8ca5ff;
    border-color: #8ca5ff;
}

.profile .icon img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .profile .icon img {
        border-radius: 50%;
        width: 32px;
        height: 32px;
    }
}