@charset "utf-8";

/*---------------------------------------------------------------------
dropdown menu
---------------------------------------------------------------------*/

/* メニュー基本 */
ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

li {
	position: relative;
}

/* トグルリンク */
.toggle-sub {
	display: inline-block;
	text-decoration: none;
	color: #333;
}

/* サブメニュー（PC時：非表示状態） */
.sub-menu {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	position: absolute;
	top: calc(100% - 65px);
	right: 0;
	white-space: nowrap;
	z-index: 10;
	/* 下に埋もれないように */
	background: rgba(255, 255, 255, 0.7);
	/* 半透明の白背景 */
	transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
	border-right: 2px #000 solid;
	padding: 0px 2px 5px 2px !important;
}

.sub-menu li {
	margin: 0px !important;
	padding: 0;
	margin-left: 1px!important;
}
.sub-menu li:first-of-type{
	margin-left:0!important;
}


/* 開いたとき */
.sub-menu.open {
	max-height: 500px;
	/* サブメニューの高さより大きめに */
	opacity: 1;
	padding: 8px 0;
}

/* サブメニュー内のリンクを縦書きに */
.sub-menu a {
	display: block;
	padding: 0 !important;
	writing-mode: vertical-rl;
	/* 縦書き */
	text-orientation: upright;
	text-decoration: none;
	color: #000;
	border-right: 0 !important;
	margin-top: 0 !important;
}

/* --- スマホ用スタイル --- */
@media screen and (max-width: 800px) {
	.sub-menu {
		display: block !important;
		/* 出しっぱなし */
		max-height: none !important;
		opacity: 1 !important;
		position: static;
		/* 絶対配置解除 */
		background: transparent;
		border: none;
		transition: none !important;
		/* アニメーション無効化 */
		padding: 7px 0 0 0 !important;
	}

	.toggle-sub {
		pointer-events: none;
		/* クリック無効化 */
		background: none;
	}

	.sub-menu li {
		padding: 0 !important;
		margin-top: 0px !important;
		margin-left:0;
	}

	.sub-menu a {
		display: block;
		font-size: 12px !important;
		writing-mode: horizontal-tb;
		/* 横書きに変更 */
		text-orientation: mixed;
		/* 横書き用 */
		border-bottom: 0 !important;
		padding: 0px;

		text-orientation: upright;
		/* 縦中横を使わず真っ直ぐ */
		font-feature-settings: "halt";
		/* 全角約物の余白を抑制 */
		border-right: 0 !important;
	}

	span.ajst_space {
		letter-spacing: -0.05em !important;
		margin-left: -0.05em !important;
	}

	ul#g_navi {
		max-width: 450px;
		width: 100%;
		margin: 40px auto 20px;
		display: flex;
	}

	ul#h_contact {
		padding: 0 0px 0 20px;
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		top: 20px;
		right: none;
	}

	ul#h_contact li#h_tel {
		margin: 0px 0 0 10px;
		padding: 15px 0;
		border-top: 1px solid #000;
		border-bottom: 1px solid #000;
	}
}

/* --- スマホ用スタイル --- */
@media screen and (min-width: 800px) {
	.toggle-sub.active {
		display: inline-block !important;
		color: #000;
		/* 文字色調整が必要なら */
		height: 150px;
	}

	span.ajst_space {
		display: inline-block !important;
		letter-spacing: -0.2em !important;
		margin: 0;
		margin-top: -0.5em !important;
	}
}