/* =============================================================================
   02-header-poly.css
   jamble-poly のヘッダー上書き。「お見積もり」ボタンをホバー／クリックで
   開くドロップダウンに置き換える。
   親テーマの 03-header-footer.css の後ろにエンキューして上書きする想定。
   ============================================================================= */

/* ----- ドロップダウン本体 ----- */
.quote-dropdown {
	position: relative;
	display: inline-block;
}

.quote-dropdown-toggle {
	background: #f24e00;
	color: #fff;
	padding: 6px 15px;
	border: 1px solid #f24e00;     /* 隣の .btn-contact と同じ 1px border で高さを揃える */
	border-radius: 4px;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1.4;
}
.quote-dropdown-toggle:hover,
.quote-dropdown.is-open .quote-dropdown-toggle {
	background: #d54400;
	border-color: #d54400;
}
.quote-dropdown-toggle .fa-caret-down { font-size: 11px; }

/* ----- メニュー ----- */
.quote-dropdown-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 280px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e0e6ee;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 1000;

	/* デフォルトは閉じる */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
/* hover / focus / クリックで開く */
.quote-dropdown:hover .quote-dropdown-menu,
.quote-dropdown:focus-within .quote-dropdown-menu,
.quote-dropdown.is-open .quote-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.quote-dropdown-menu li { margin: 0; }

.quote-dropdown-menu a {
	display: block;
	padding: 10px 16px;
	text-decoration: none;
	color: var(--color-text, #1f2937);
	border-bottom: 1px solid #f0f3f7;
	transition: background 0.15s;
}
.quote-dropdown-menu li:last-child a { border-bottom: 0; }
.quote-dropdown-menu a:hover,
.quote-dropdown-menu a:focus {
	background: var(--color-accent-soft, #e8f3fc);
	outline: none;
}

.quote-name {
	display: block;
	font-size: 14px;
	font-weight: bold;
	color: var(--color-primary, #1c70c5);
	line-height: 1.4;
}
.quote-name .fa-angle-right {
	margin-left: 6px;
	font-size: 11px;
	color: var(--color-accent, #3897dc);
}
.quote-desc {
	display: block;
	font-size: 11px;
	color: #6b7785;
	margin-top: 2px;
	line-height: 1.4;
}

/* ----- スマホ (768px 以下) -----
   親テーマ 03-header-footer.css 側で .header-utility を position: relative・縦積み
   全幅化しているので、メニューの基準をトグルから .header-utility へ移し、その全幅に
   収まるパネルにする。これで画面サイズからはみ出さない。 */
@media (max-width: 768px) {
	.quote-dropdown { position: static; }
	.quote-dropdown-menu {
		top: calc(100% + 6px);
		left: 0;
		right: 0;
		min-width: 0;
	}
	.quote-dropdown-toggle {
		padding: 6px 10px;
		font-size: 12px;
	}
}
