/*上部固定時の設定*/
.navbar {
    width: 100%;
    z-index: 500;
    display: flex;
    position: fixed;

    height: 70px;
    top: 0;
    background-color: #ffffff;

    margin-left: auto;

    /* border-bottom: 1px solid rgba(255, 255, 255, 0.2); */
    /* border-bottom: 1px solid rgba(0,0,0,.2); */
}

.navbar-inner {
    display: flex;
    width: 100%;
    /* box-shadow: 0 .25rem .25rem rgba(0,0,0,.2)!important; */
}

.navbar-inner a {
    text-decoration: none;
}

.navbar a {
    color: #000;
    font-weight:bold;
    font-size: 1rem;
    height: 100%;
}

.navbar a:hover {
    /* border-bottom: 5px solid #33a8f1 ; */
}

.navbar-logo {
    display: flex;
    padding-left: 20px;
}

.navbar-logo img {
    /* max-width: 100%; */
    max-width: 100px;
    height: auto;
}

.navbar ul {
    margin: 0;
    padding:0;
    user-select: none;
    list-style: none;
}

.navbar-content {
    display: flex;
    margin-left: auto;
    /* min-width: 830px; */
}

.navbar-content a {
    padding: 0 0.5rem;
}

.navbar ul {
    display: flex;
}

.navbar .navbar-logo > li,
.navbar .navbar-content > li {
    height: 100%;
    align-items: center;
    display: flex;
}

.navbar-logo li a:hover{
    color: #33a8f1 ;
}

.navbar-content li a:hover {
    color: #33a8f1 ;
}

.navbar.scroll-stick {
    position: fixed;
    height: 70px;
}

.navbar > li > a {
    color: ivory;
    font-weight:bold;
    font-size: 1rem;
    padding-left: 20px;
    padding-right: 20px;
    height: 100%;
}

.navbar .navbar-logo > ul > li > a ,
.navbar .navbar-content > ul > li > a,
.navbar .navbar-collapse .accordion-menu > ul > li > a
 {
    display: flex;
    align-items: center;
}

.navbar-collapse li a:hover {
    color: #33a8f1 ;
}

.navbar .navbar-collapse-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.navbar-collapse-icon{
    height: 100%;
    width: 60px;
    cursor: pointer;
}

.navbar-collapse-icon a{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .navbar-collapse-icon a:hover {
    color: #33a8f1 ;
} */

/* 961px以上 (スクロールバー幅20pxとして加算) */
@media only screen and (min-width: 981px) {
    .navbar .navbar-collapse-header{
        display: none!important;
    }
    .navbar .navbar-collapse {
        display: none!important;
    }
}

/* 960以下 (スクロールバー幅20pxとして加算) */
@media only screen and (max-width: 980px) {
    .navbar-content{
        display: none;
    }
}

.navbar-collapse {
    display: none;
    position: absolute;
    z-index: 1000;
    top: 70px;
    right: 0;
    width: 100%;
    height: auto;
    background-color: #fff;
    color: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2)
}

.navbar-collapse ul {
    display: block;
    flex-direction: column;
    user-select: none;
}

.navbar-collapse > ul > li {
    border-bottom: 1px solid rgba(0,0,0,.2);
}
.navbar-collapse > ul > li > a {
    padding: 0.75rem 1rem;
}

.navbar-collapse-footer {
}

.navbar-collapse-footer a{
    padding: 1rem;
    display: block;
}
.navbar-collapse-footer a:hover {
    color: #33a8f1 ;
}

.navbar-collapse.open {

}

.navbar .dropdown {
    position: relative;
}

.navbar .dropdown:hover .dropdown-menu {
    display: inline-block!important;
}

.navbar .dropdown .dropdown-menu{
    position: absolute;
    display: none;
    z-index: 700;
    display: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translate(0, 65px);
}

.navbar .dropdown .dropdown-menu ul {
    position: relative;
    background-color: #33a8f1 ;
    display: flex;
    flex-direction: column;
    margin: -1px;
}

.navbar .dropdown .dropdown-menu.fit-text ul {
    /* width: fit-content; */
    width: 150px;
}

.navbar .dropdown .dropdown-menu li {
    display: flex;
}

.navbar .dropdown .dropdown-menu li:hover{
    background-color: rgba(255,255,255, 0.5);
}

.navbar .dropdown .dropdown-menu li a {
    padding: 10px 20px;
    width: 100%;
    text-align: left;
    color: white;
}

.navbar .dropdown .dropdown-menu li:hover a{
}

.navbar .dropdown .dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.navbar .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.navbar .navbar-collapse li a {
    display: inline-block;
    width: 100%;
}

.navbar .accordion .accordion-toggle {
    position: relative;
}

.navbar .accordion .accordion-toggle::after {
    position: absolute;
    right: 1rem;
    width: 16px;
    height: 24px;
    content: url(../img/icon/chevron-up-solid.svg);
    transform: rotate(180deg);
}

.navbar .accordion.open .accordion-toggle::after {
    transform: rotate(0deg);
}

.navbar .accordion .accordion-menu {
    display: none;
}

.navbar .accordion .accordion-menu ul{
    padding-bottom: 0.75rem;
}

.navbar .accordion .accordion-menu li a{
    padding-left: 2rem;
}
.navbar .accordion .accordion-menu li a:hover{
    background-color: rgba(0,0,0,0.2);
    color: inherit;
}


/* 押すと×になる三ボタン */
@keyframes span-first-open {
    0%   {transform:rotate(0);}
    100%   {transform: translate(0,200%) rotate(-45deg);}
}

@keyframes span-second-open {
    0%   {opacity: 1;}
    100%   {opacity: 0;}
}

@keyframes span-third-open {
    0%   {transform:rotate(0);}
    100%   {transform: translate(0,200%) rotate(45deg);}
}

@keyframes span-first-close {
    0%   {transform: translate(0,200%) rotate(-45deg);}
    100%   {transform:rotate(0);}
}

@keyframes span-second-close {
    0%   {opacity: 0;}
    100%   {opacity: 1;}
}

@keyframes span-third-close {
    0%   {transform: translate(0,200%) rotate(45deg);}
    100%   {transform:translate(0,400%) rotate(0);}
}

button.menu-toggle-button {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
}

button.menu-toggle-button span {
    position: absolute;
    width: 100%;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s linear;
    margin-bottom: 4px;
}

button.menu-toggle-button span:nth-child(1) {
    left: 0;
    top: 0;
    transform:translate(0, 0);

    animation-name: span-first-close;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
}

button.menu-toggle-button span:nth-child(2){
    left: 0;
    top: 0;
    transform:translate(0, 200%);

    animation-name: span-second-close;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
}

button.menu-toggle-button span:nth-child(3){
    left: 0;
    top: 0;
    transform:translate(0, 400%);

    animation-name: span-third-close;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
}

button.menu-toggle-button.open span:nth-child(1){
    animation-name: span-first-open;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
}

button.menu-toggle-button.open span:nth-child(2){
    transform: translate(0, 200%);
    animation-name: span-second-open;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
}

button.menu-toggle-button.open span:nth-child(3){
    transform: translate(0, 400%);
    animation-name: span-third-open;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
}
/* 押すと×になる三ボタンここまで */

.selected {
    position: relative;
}
.selected:before {
	content: '';
	width: 50%;
	left: 50%;
	bottom: 0px;
	border-bottom: 5px solid #33a8f1 ;
	position: absolute;
	display: block;
}
.selected:after {
	content: '';
	width: 50%;
	right: 50%;
	bottom: 0px;
	border-bottom: 5px solid #33a8f1 ;
	position: absolute;
	display: block;
}
