@charset "utf-8";
/* CSS Document */

/* コンテナ */
.container {
  position: relative;
  width: 100%;
  height: 300px;
  background: #eef1ff;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    user-select: none;
    background: var(--red);
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 8px;
    /* box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); */
    transition: all 0.3s;
    z-index: 1001;
}

.hamburger-menu:hover {
   /* box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);*/
    transform: scale(1.05);
}

.line {
    background-color: #fff;
    height: 2px;
    width: calc(100% - 16px);
    position: absolute;
    transition: all 0.3s ease;
    /*box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);*/
    left: 8px;
}

.line:nth-of-type(1) {
    top: 25%;
}

.line:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}

.line:nth-of-type(3) {
    bottom: 25%;
}

.hamburger-menu.active > .line:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active > .line:nth-of-type(2) {
    opacity: 0;
}

.hamburger-menu.active > .line:nth-of-type(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 136, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    width: 300px;
    background: #fff;
    /*border: 2px solid #000;*/
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    opacity: 0;
    z-index: 1000;
    max-height: 100%;
    overflow-y: auto;
	line-height: 50px;
}

.nav-menu.active {
    display: flex;
    animation: fadeIn 0.5s forwards;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    padding: 10px;
    margin: 8px;
    /*border: 1px solid #00ff88;*/
    /*border-radius: 8px;*/
    transition: all 0.3s;
    /*text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);*/
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
	font-size: 18px;
    font-weight: bold;
}

.nav-menu a.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-menu a:hover {
    background: var(--red);
    color: #fff;
    }

@keyframes fadeIn {
    0% {
        top: 45%;
        opacity: 0;
    }
    
    100% {
        top: 50%;
        opacity: 1;
    }
}


.hamburger-menu2 {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    user-select: none;
    background: var(--red);
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 8px;
    /* box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); */
    transition: all 0.3s;
    z-index: 1001;
}

.hamburger-menu2:hover {
   /* box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);*/
    transform: scale(1.05);
}

.line {
    background-color: #fff;
    height: 2px;
    width: calc(100% - 16px);
    position: absolute;
    transition: all 0.3s ease;
    /*box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);*/
    left: 8px;
}

.line:nth-of-type(1) {
    top: 25%;
}

.line:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}

.line:nth-of-type(3) {
    bottom: 25%;
}

.hamburger-menu2.active > .line:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu2.active > .line:nth-of-type(2) {
    opacity: 0;
}

.hamburger-menu2.active > .line:nth-of-type(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(31, 41, 55, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay2.active {
    opacity: 1;
    visibility: visible;
}

/*.nav-menu2 {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    width: 300px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    opacity: 0;
    z-index: 1000;
    max-height: 80%;
    overflow-y: auto;
}*/

.nav-menu2 {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    width: 300px;
    background: #fff;
    /*border: 2px solid #000;*/
    border-radius: 15px;
    /* box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); */
    opacity: 0;
    z-index: 1000;
    /* max-height: 80%; */
    /* overflow-y: auto; */
}

.nav-menu2.active {
    display: flex;
    animation: fadeIn2 0.5s forwards;
}

.nav-menu2 a {
    text-decoration: none;
    color: #000;
    padding: 10px;
    margin: 8px;
    /*border: 1px solid #00ff88;*/
    /*border-radius: 8px;*/
    transition: all 0.3s;
    /*text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);*/
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
	font-size: 18px;
    font-weight: bold;
}

.nav-menu2 a.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-menu2 a:hover {
    background: var(--red);
    color: #fff;
}

@keyframes fadeIn2 {
    0% {
        top: 45%;
        opacity: 0;
    }
    
    100% {
        top: 50%;
        opacity: 1;
    }
}




/* オーバーレイ */
	.overlay {
		display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(31, 41, 55, 0.5);
		backdrop-filter: blur(4px);
		-webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
		z-index: 8;
        }
	.overlay.active {
		opacity: 1;
		visibility: visible;
        }

html {
    scroll-padding-top: 100px;
}

