
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

/*ページ全体*/
body {
    background-color: #363b43;
    color: #cccccc;
    margin: 0;
    font-family: 'DotGothic16', sans-serif;
}

/*アイコン*/
.icon {
    display: block;
    width: 15%;
    margin-top: 100px;
    margin-left: 42.5%;
    position:		relative;
}



/*文章全体*/

.text {
    display: block;
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: normal;
    line-height: 1.8;
    margin: 30px 0;
    white-space: normal;
    text-align: center;
}

.text .links{
    margin-top: 5%;
}



/* =========================
   ハンバーガーメニュー
========================= */
#navArea nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;

    width: 300px;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;

    padding: 110px 32px 32px;
    background-color: #2e3b58;
    color: #ffffff;

    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

/* メニューを開く */
#navArea.open nav {
    transform: translateX(0);
}

/* メニュー一覧 */
#navArea nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    text-align: left;
}

/* メニュー項目 */
#navArea nav li {
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

/* メニューリンク */
#navArea nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;

    padding: 16px 0;
    color: #ffffff;
    text-decoration: none;

    transition: color 0.2s ease;
}

/* 番号 */
#navArea nav a span {
    flex-shrink: 0;
    font-size: 12px;
    color: #6dc7eb;
}

/* マウスを乗せたとき */
#navArea nav a:hover {
    color: #6dc7eb;
}

/* 背景マスク */
#mask {
    position: fixed;
    inset: 0;
    z-index: 1001;

    background: rgba(43, 42, 39, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* メニューを開いたとき */
#navArea.open #mask {
    opacity: 1;
    visibility: visible;
}

/* =========================
   円を描きながら回るボタン
========================= */
#btn19 {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1003;

    width: 90px;
    height: 90px;
    padding: 0;
    border: none;
    border-radius: 50%;

    background-color: #ebf2f5;
    cursor: pointer;
}

/* 3本線 */
#btn19 span {
    position: absolute;
    left: 25px;

    display: block;
    width: 40px;
    height: 3px;
    border-radius: 2px;

    background-color: #2b2a27;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* 各線の位置 */
#btn19 span:nth-of-type(1) {
    top: 29px;
}

#btn19 span:nth-of-type(2) {
    top: 44px;
}

#btn19 span:nth-of-type(3) {
    top: 59px;
}

/* 円を描く枠 */
#btn19::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;

    display: block;
    width: 84px;
    height: 84px;
    margin: -45px 0 0 -45px;

    border: 4px solid transparent;
    border-radius: 50%;
    transition: all 0.75s;
    pointer-events: none;
}

/* 開いたら×に変化 */
#btn19.active span:nth-of-type(1) {
    transform: translateY(15px) rotate(-45deg);
}

#btn19.active span:nth-of-type(2) {
    opacity: 0;
    animation: bar-hide 0.8s forwards;
}

#btn19.active span:nth-of-type(3) {
    transform: translateY(-15px) rotate(45deg);
}

/* 円を回しながら描く */
#btn19.active::after {
    animation: active-btn19 0.7s 0.25s forwards;
}

@keyframes active-btn19 {
    0% {
        border-color: transparent;
        transform: rotate(0);
    }

    25% {
        border-color: transparent #15d8ff transparent transparent;
    }

    50% {
        border-color: transparent #15d8ff #2b2a27 transparent;
    }

    75% {
        border-color: transparent #2b2a27 #2b2a27 #2b2a27;
    }

    100% {
        border-color: #2b2a27;
        transform: rotate(-680deg);
    }
}

@keyframes bar-hide {
    to {
        visibility: hidden;
    }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


/*スマートフォン対応*/
@media screen and (max-width: 600px) {
    .text {
        font-size: 16px;
        line-height: 1.8;
        margin: 24px 0;
    }

    .icon {
        width: 35%;
        margin-left: 33%;
    }

    .text .normal {
        font-size: 30px;
    }

    .text .links {
        font-size: 30px;
    }    

}