@charset "UTF-8";
/* ==========================================================================
   共通・ベーススタイル（スマホ表示をベースに設定：モバイルファースト）
   ========================================================================== */
.floating-menu {
    position: fixed;
    z-index: 9999;
    box-sizing: border-box;
    /* スマホ表示の初期値 */
    left: 0;
    bottom: 0;
    width: 100%;
	    font-family: "Yu Gothic Medium", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

}
.floating-menu *,
.floating-menu *::before,
.floating-menu *::after {
    box-sizing: border-box;
}

.floating-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    /* スマホ表示の初期値：4×2のグリッド */
    grid-template-columns: repeat(3, 1fr);
    background-color: rgba(26, 26, 26, 0.95);
}

.floating-menu__item {
    /* スマホ表示の初期値 */
    height: 52px; 
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
/* スマホ版：4つ目の要素ごとに右ボーダーを消す */
.floating-menu__item:nth-child(3n) {
    border-right: none;
}

.floating-menu__link,
.floating-menu__item.is-entry > span {
    display: flex;
    align-items: center;
	flex-direction: column;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease;
    font-feature-settings: "palt";
    /* スマホ表示の初期値 */
    font-size: 16px;
    line-height: 1.2;
    padding: 2px;
}
.floating-menu__link > span {
	font-size: 11px;
}
.floating-menu__item.is-entry > span {
	flex-direction: row;
	font-size: 14px;
	letter-spacing: -0.2em;
}
/* スマホ表示の時は after で右向きの三角形を表示 */
.floating-menu__item.is-entry > span::after {
    content: "▶";
    color: #1eaa52;
	font-size: 12px;
    display: inline-block;
    margin-left: 4px; /* 横書きの「Ｙ」の右側に少し余白を作る */
}

/* スマホ表示でのスクロール最下部の被り防止 */
body {
    padding-bottom: 104px !important; 
}

/* page-top
----------------------------------------*/
#pagetop {
    bottom: 120px;
}

/* --------------------------------------------------
 * PC・タブレット表示
 * -------------------------------------------------- */
@media (width >= 641px) {
    .floating-menu {
        left: auto; /* スマホの値をリセット */
        bottom: auto; /* スマホの値をリセット */
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 46px; /* メニューの横幅 */
        height: auto; 
    }

    .floating-menu__list {
        display: flex;
        flex-direction: column; /* グリッドから縦並びのフレックスに変更 */
    }

    .floating-menu__item {
        position: relative; /* 擬似要素を絶対配置するための基準点 */
        width: 100%;
        height: 120px; /* すべてのマスの高さを一律で固定 */
        /* スマホ用のボーダーをリセット */
        border-right: none;
        border-top: none;
    }
	.floating-menu__link > span {
		font-size: 10px;
	}
    /* 最後のアイテム以外の下端に、左右5pxを空けた1pxの区切り線を配置 */
    .floating-menu__item:not(:last-child)::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 5px; /* 左側に5pxの余白 */
        width: calc(100% - 10px); /* 左右あわせて10px分縮める */
        height: 1px;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .floating-menu__link,
    .floating-menu__item.is-entry > span {
        padding: 0; 
        font-size: 14px;
        letter-spacing: 0.1em;
        writing-mode: vertical-rl; /* 縦書きに変更 */
    }
	.floating-menu__item.is-entry > span {
		font-size: 12px;
	}
    /* PC表示の時は after のコンテンツを下向きの三角形に上書き */
    .floating-menu__item.is-entry > span::after {
        content: "▼";
        font-size: 12px;
        margin-left: 0; /* スマホ用のマージンをリセット */
        margin-top: 2px; /* 縦書きの「Ｙ」の下側に少し余白を作る */
    }

    /* ホバー効果（リンクがある職種ボタンのみ反応） */
    .floating-menu__link:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    /* PC表示でのスクロール最下部の被り防止は不要なためリセット */
    body {
        padding-bottom: 0 !important; 
    }
	/* page-top
	----------------------------------------*/
	#pagetop {
		bottom: 20px;
	}

}

