/* CSS Document */

/* --- gnav 本体の修正 --- */
.gnav {
    background: rgba(5, 60, 140, 0.9); /* 画像のような濃い青の半透明に変更 */
    display: none;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 98;
}

.gnav__wrap {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;  /* 上下中央 */
    justify-content: center; /* 左右中央 */
}

/* --- メニューリストの修正 --- */
.gnav__menu {
    width: 80%;
    max-width: 600px; /* 広がりすぎないよう制限 */
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    align-items: center;
}

/* --- 各項目の修正 --- */
.gnav__menu__item {
    width: 100%;           /* 横幅いっぱいに線を引く */
    margin: 0;
    padding: 2vh 0;       /* 上下の余白 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.6); /* 白いセパレーター線 */
    text-align: center;
}

/* 最後の項目の線は消す場合 */
.gnav__menu__item:last-child {
    border-bottom: none;
}

/* --- リンクテキストの修正 --- */
.gnav__menu__item a {
    color: #FFF;          /* 文字色を白に変更 */
    font-size: 1.4rem;    /* サイズ調整 */
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    letter-spacing: 0.1em;
}

.gnav__menu__item a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* --- スマホ表示の微調整 --- */
@media only screen and (max-width: 769px) {
    .gnav__menu {
        width: 90%;
    }
    .gnav__menu__item a {
        font-size: 1.1rem;
    }
}