/* Onbit ボトムナビ — サイト表示用 (テーマ色は --obn-color / 既定 #09780f)
 * 白背景バー + 緑アイコン/文字。iPhone のホームバー領域(safe-area)を避けて固定。
 * mobile_only の可視制御 (ブレークポイント) は本体PHPがインラインstyleで付与する。 */

.obn-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9000;
	display: flex;
	align-items: stretch;
	background: #ffffff;
	border-top: 1px solid #e2e8e2;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.09);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	-webkit-backdrop-filter: saturate(1.1);
	backdrop-filter: saturate(1.1);
}

.obn-bar .obn-item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 8px 2px 7px;
	text-decoration: none !important;
	color: var(--obn-color, #09780f);
	font-weight: 700;
	line-height: 1.1;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s;
}

.obn-bar .obn-item + .obn-item {
	border-left: 1px solid #eef2ee;
}

.obn-bar .obn-item:active {
	background: #eef7ee;
}

.obn-bar .obn-ico {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.obn-bar .obn-ico svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: var(--obn-color, #09780f);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.obn-bar .obn-label {
	font-size: 11px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	color: var(--obn-color, #09780f);
}

/* バーの高さぶん、本文の下に余白を作りフッター等が隠れないようにする */
body.obn-has-bar {
	padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
}

/* 狭い端末では文字を少し詰める */
@media (max-width: 360px) {
	.obn-bar .obn-item { padding: 7px 1px 6px; }
	.obn-bar .obn-label { font-size: 10px; letter-spacing: -0.02em; }
	.obn-bar .obn-ico { width: 22px; height: 22px; }
}
