/* ==========================================================================
   カテゴリLP（/insomnia/ /glp-1/ /aga/ /ed/ /pill/ /skin/）共通ヘッダー
   TOPのメガメニュー（「診療プラン」ホバー）とSPメニューに合わせる。
   各LPの index.html から読み込み（doctor テーマで一元管理）。
   ========================================================================== */

/* ---- PC：メガメニュー（TOPと同じ 1176px・2カラム均等） ---- */
@media (min-width: 768px) {
	.gh-mega { width: min(1176px, 100vw); padding-top: 8px; }
	.gh-mega li { border: 0 !important; flex: none; list-style: none; }
	.gh-mega li::after { content: none !important; }
	.gh-mega__inner { gap: 36px; }
	.gh-mega__col, .gh-mega__col--consult { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
	.gh-mega__col--consult { padding-right: 36px; border-right: 1px solid #eadfcb; }
	.gh-mega__head { margin-bottom: 0 !important; line-height: 1.3; }
	.gh-mega__note { margin-top: 0 !important; font-size: 18px; line-height: 1.6; color: #555; }
	.gh-mega__depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
	.gh-mega__depts a {
		display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 6px;
		height: 42px; padding: 0 12px 0 14px !important; background: #fff; border: 1px solid #ccdef0; border-radius: 8px;
		box-shadow: 0 2px 4px rgba(43,89,133,.08); font-size: 15px !important; font-weight: 700; line-height: 1.2; color: #2c5a86 !important;
		white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s;
	}
	.gh-mega__depts a span { font-size: 18px; line-height: 1; }
	.gh-mega__depts a:hover { background: #f3f8fd; border-color: #9fc0e2; }
	.gh-mega__grid { gap: 4px 12px; }
	.gh-mega__item { min-height: 65px; gap: 8px; padding: 10px 8px !important; }
	.gh-mega__item i { width: 40px; height: 40px; }
	.gh-mega__item i svg { width: 23px !important; height: 23px !important; }
	.gh-mega__item b { font-size: 15px; color: #333; }
	.gh-mega__item small { font-size: 12px; line-height: 1.35; }
	.gh-mega__item .i-chev { width: 10px !important; height: 16px !important; }
	.gh-mega__grid > .gh-mega__item:last-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1300px) {
	.gh-mega__note { font-size: 15px; }
	.gh-mega__depts { grid-template-columns: repeat(2, 1fr); }
}

/* ---- SP：メニュー（TOPと同じ） ---- */
.gh-spm__check { display: none; }
.gh-spmenu {
	position: fixed; inset: 0; z-index: 100000; background: #fffdf8; overflow-y: auto; -webkit-overflow-scrolling: touch;
	transform: translateX(100%); transition: transform .3s, visibility .3s; visibility: hidden; text-align: left;
	font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; color: #333;
}
.gh-spm__check:checked ~ .gh-spmenu { transform: none; visibility: visible; }
.gh-spmenu * { box-sizing: border-box; }
.gh-spmenu ul { margin: 0; padding: 0; list-style: none; }
.gh-spmenu a { text-decoration: none; color: inherit; }
.gh-spmenu p { margin: 0; }
.gh-spmenu .i-chev { width: 8px; height: 13px; flex-shrink: 0; }
.gh-spmenu__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #fff; border-bottom: 1px solid #eadfcb; }
.gh-spmenu__head img { width: 120px; height: auto; display: block; }
.gh-spmenu__close { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #3f74a6; font-size: 10px; font-weight: 700; cursor: pointer; }
.gh-spmenu__close span { position: relative; width: 26px; height: 26px; }
.gh-spmenu__close span::before, .gh-spmenu__close span::after { content: ""; position: absolute; left: 1px; top: 12px; width: 24px; height: 2.6px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.gh-spmenu__close span::after { transform: rotate(-45deg); }
.gh-spmenu__body { padding: 20px 16px 40px; display: grid; gap: 20px; }
.gh-spmenu__cta { display: flex; align-items: center; justify-content: center; gap: 10px; background: #ff8437; color: #fff !important; border-radius: 999px; padding: 16px; font-size: 16px; font-weight: 700; box-shadow: 0 4px 0 #d9601a; }
.gh-spmenu__cta .i-line { width: 24px; height: 24px; color: #fff; }
.gh-spmenu__cta .i-line path { fill: #ff8437; }
.gh-spmenu__overseas { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: #fff !important; border: 1.5px solid #3f74a6 !important; border-radius: 999px !important; color: #3f74a6 !important; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gh-spmenu__overseas svg { width: 20px; height: 20px; }
.gh-spmenu__label { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: -12px !important; }
.gh-spmenu__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3f74a6; }
.gh-spmenu__label.is-green::before { background: #27703d; }
.gh-spmenu__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gh-spmenu__cats a { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 46px; padding: 12px 10px 12px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; letter-spacing: -.02em; }
.gh-spmenu__cats .is-pink a { background: #f9d6de; color: #a8325a; }
.gh-spmenu__cats .is-green a { background: #d7efd9; color: #27703d; }
.gh-spmenu__cats .is-blue a { background: #e3edf6; color: #3f74a6; font-size: 12px; padding-left: 10px; padding-right: 8px; }
.gh-spmenu__cats--dept { grid-template-columns: repeat(3, 1fr); }
.gh-spmenu__cats--dept a { font-size: 13px !important; padding: 12px 8px 12px 10px !important; letter-spacing: 0; }
.gh-spmenu__cats li.is-current a { box-shadow: inset 0 0 0 2px currentColor; }
.gh-spmenu__list { background: #fff; border: 1px solid #eadfcb; border-radius: 10px; }
.gh-spmenu__list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f0e7d8; font-size: 15px; font-weight: 700; }
.gh-spmenu__list li:last-child a { border-bottom: 0; }
.gh-spmenu__list .i-chev { color: #3f74a6; }
.gh-spmenu__links { display: flex; justify-content: center; gap: 16px; font-size: 12px; color: #666; }
.gh-spmenu__links a { color: #666; }
html.gh-spm-open, html.gh-spm-open body { overflow: hidden; }
