/* Header mega menus 案B v2 (2026-11-30) — inc/megamenu.php + assets/js/mcl-mega.js */
.mcl-mega{--mm-navy:#0B2A3C;--mm-blue:#0B4F6C;--mm-sky:#4FB0D8;--mm-cream:#F4F0E8;--mm-rule:#E3DED3;--mm-muted:#3D5866;color:var(--mm-navy);font-family:"IBM Plex Sans JP",sans-serif;text-align:left;line-height:1.5}
.mcl-mega[hidden]{display:none!important}
.mcl-mega a{color:inherit;text-decoration:none}
.mcl-mega__c{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px;color:var(--mm-muted);font-weight:500}
.mcl-mega .mcl-flag{width:22px!important;height:16.5px!important;border-radius:2px;object-fit:cover;box-shadow:0 0 0 1px rgba(11,42,60,.12);flex:none;vertical-align:middle;margin:0}
.mcl-mega__crumb{display:none}

/* search bar */
.mcl-mega__bar{display:flex;align-items:center;gap:12px;padding:18px 32px;background:var(--mm-cream);border-bottom:1px solid var(--mm-rule)}
.mcl-mega__search{flex:1;position:relative;display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid var(--mm-navy);border-radius:999px;padding:0 18px;height:48px;margin:0}
.mcl-mega__search>svg{color:var(--mm-navy);flex:none}
.mcl-mega__search input{flex:1;border:0!important;outline:0;background:transparent!important;font:inherit;font-size:15px;color:var(--mm-navy);height:100%;padding:0!important;box-shadow:none!important;min-width:0}
.mcl-mega__search input::placeholder{color:#7D909A}
.mcl-mega__search input::-webkit-search-cancel-button{cursor:pointer}
.mcl-mega__sugg{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--mm-rule);border-radius:14px;box-shadow:0 18px 40px -12px rgba(11,42,60,.35);padding:6px;max-height:360px;overflow:auto;z-index:3}
.mcl-mega__sugg a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;font-size:14px}
.mcl-mega__sugg a:hover,.mcl-mega__sugg a.is-on{background:var(--mm-cream)}
.mcl-mega__sugg .k{flex:none;font-size:11px;font-weight:700;color:var(--mm-blue);background:#E7F2F7;border-radius:999px;padding:2px 8px;min-width:64px;text-align:center}
.mcl-mega__sugg .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mcl-mega__sugg mark{background:none;color:var(--mm-blue);font-weight:700}
.mcl-mega__sugg .all{justify-content:center;color:var(--mm-blue);font-weight:600;font-size:13px;border-top:1px solid var(--mm-rule);border-radius:0 0 9px 9px;margin-top:4px}
.mcl-mega__sugg .none{padding:10px 12px;font-size:13px;color:var(--mm-muted)}
.mcl-mega__quick{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--mm-rule);border-radius:999px;padding:0 18px;height:48px;font-size:14px;font-weight:600;white-space:nowrap}
.mcl-mega__quick:hover{border-color:var(--mm-navy)}

/* columns */
.mcl-mega__cols{display:grid;grid-template-columns:var(--mm-cols,repeat(4,minmax(0,1fr)))}
.mcl-mega__col{padding:22px 26px;border-right:1px solid var(--mm-rule);min-width:0}
.mcl-mega__col:last-child{border-right:0}
.mcl-mega__h{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;margin-bottom:12px}
.mcl-mega__h span{width:24px;height:24px;border-radius:50%;background:var(--mm-navy);color:#fff;display:grid;place-items:center;font-family:"Sora",sans-serif;font-size:11px;font-weight:700}
.mcl-mega__ctys{display:flex;flex-direction:column}
.mcl-mega__cty{display:flex;align-items:center;gap:10px;padding:6px 6px;margin:0 -6px;border-radius:8px;font-size:14px;border-bottom:1px dashed #ECE7DC}
.mcl-mega__cty:hover{background:var(--mm-cream)}
.mcl-mega__nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mcl-mega__chips{display:flex;flex-wrap:wrap;gap:6px}
.mcl-mega__chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:1px solid var(--mm-rule);font-size:13px;background:#fff;white-space:nowrap;transition:border-color .15s,background .15s}
.mcl-mega__chip:hover{border-color:var(--mm-navy);background:var(--mm-cream)}
.mcl-mega__chip .mcl-mega__c{font-size:11.5px}
.mcl-mega__chip svg{color:var(--mm-blue)}
.mcl-mega__sub{font-size:12px;font-weight:700;color:var(--mm-muted);margin:14px 0 8px}
.mcl-mega__h+.mcl-mega__sub{margin-top:0}
.mcl-mega__ops{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mcl-mega__op{display:flex;align-items:center;justify-content:center;height:54px;border:1px solid var(--mm-rule);border-radius:10px;background:#fff;padding:6px 10px;transition:border-color .15s}
.mcl-mega__op:hover{border-color:var(--mm-navy)}
.mcl-mega__op img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.mcl-mega__more{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:13.5px;font-weight:600;color:var(--mm-blue)!important}
.mcl-mega__more:hover{text-decoration:underline}
/* posts (resorts, day boats, centres, sites) */
.mcl-mega__posts{display:flex;flex-direction:column;gap:4px}
.mcl-mega__posts.is-wide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mcl-mega__post{display:flex;align-items:center;gap:10px;padding:6px;margin:0 -6px;border-radius:10px;transition:background .15s}
.mcl-mega__posts.is-wide .mcl-mega__post{margin:0;border:1px solid var(--mm-rule)}
.mcl-mega__post:hover{background:var(--mm-cream)}
.mcl-mega__post img{width:56px;height:56px;border-radius:8px;object-fit:cover;flex:none;display:block}
.mcl-mega__post span{min-width:0;display:flex;flex-direction:column;gap:3px}
.mcl-mega__post b{font-size:13.5px;font-weight:600;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mcl-mega__post small{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mm-muted)}
.mcl-mega__post small .mcl-flag{width:16px!important;height:12px!important}
.mcl-mega__foot{display:flex;gap:24px;padding:14px 32px;border-top:1px solid var(--mm-rule);font-size:14px;font-weight:600}
.mcl-mega__foot a{display:inline-flex;align-items:center;gap:6px}
.mcl-mega__foot a:hover{color:var(--mm-blue)}

/* desktop: dropdown panel under the header */
@media (min-width:768px){
	html.mcl-mega-on .bricks-nav-menu .mcl-has-mega>.sub-menu{display:none!important}
	#brx-header .bricks-nav-menu .mcl-has-mega:not(.menu-item-has-children){display:flex;align-items:center;gap:4px;white-space:nowrap}
	#brx-header .bricks-nav-menu .mcl-mega-caret{display:inline-flex;align-items:center;color:var(--mcl-navy,#0F2A3D);line-height:0;cursor:pointer}
	#brx-header .bricks-nav-menu .mcl-mega-caret svg{width:10px;height:10px;transition:transform .2s}
	#brx-header .bricks-nav-menu .mcl-has-mega:hover>.mcl-mega-caret svg,#brx-header .bricks-nav-menu .mcl-mega-active>.mcl-mega-caret svg{transform:rotate(180deg)}
	#brx-header .mcl-mega{position:absolute;top:100%;left:50%;width:min(1280px,calc(100vw - 32px));transform:translate(-50%,-6px);background:#fff;border-radius:0 0 18px 18px;box-shadow:0 30px 60px -20px rgba(11,42,60,.45);overflow:visible;opacity:0;visibility:hidden;transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;z-index:999}
	#brx-header .mcl-mega.is-open{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .18s ease,transform .18s ease}
	#brx-header .mcl-mega__bar{border-radius:0}
	#brx-header .mcl-mega__foot{border-radius:0 0 18px 18px}
	.bricks-nav-menu .mcl-mega-active>.brx-submenu-toggle button svg{transform:rotate(180deg)}
	.bricks-nav-menu .mcl-mega-active>.brx-submenu-toggle a,.bricks-nav-menu .mcl-mega-active>a{color:#0B4F6C}
}
@media (min-width:768px) and (max-width:1100px){
	.mcl-mega__cols{grid-template-columns:repeat(2,minmax(0,1fr))}
	.mcl-mega__col:nth-child(2n){border-right:0}
	.mcl-mega__col:nth-child(-n+2){border-bottom:1px solid var(--mm-rule)}
	.mcl-mega__posts.is-wide{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){#brx-header .mcl-mega,#brx-header .mcl-mega.is-open{transition:none}}

/* mobile: full-screen drill-down over the Bricks mobile menu */
@media (max-width:767px){
	.mcl-mega{position:fixed;inset:0;z-index:100001;background:#fff;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;transform:translateX(100%);transition:transform .22s ease;visibility:hidden}
	.mcl-mega.is-open{transform:none;visibility:visible}
	.mcl-mega__crumb{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:4;background:#fff;padding:12px 16px;border-bottom:1px solid var(--mm-rule);font-size:16px}
	.mcl-mega__back{width:36px;height:36px;border-radius:50%;border:0;background:var(--mm-cream);color:var(--mm-blue);display:grid;place-items:center;padding:0;cursor:pointer}
	.mcl-mega__crumb .mcl-mega__n{margin-left:auto;font-family:"IBM Plex Mono",monospace;font-size:13px;color:var(--mm-muted)}
	.mcl-mega__bar{flex-direction:column;align-items:stretch;gap:10px;padding:14px 16px;background:#fff;border:0}
	.mcl-mega__search{height:46px;padding:0 14px}
	.mcl-mega__search input{font-size:16px}
	.mcl-mega__quick{display:none}
	.mcl-mega__cols{display:block}
	.mcl-mega__col{border:0;padding:14px 16px 6px}
	.mcl-mega__h{font-size:14px;margin-bottom:10px}
	.mcl-mega__h span{display:none}
	.mcl-mega__ctys{flex-direction:row;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 2px}
	.mcl-mega__ctys::-webkit-scrollbar,.mcl-mega__ops::-webkit-scrollbar{display:none}
	.mcl-mega__cty{flex:none;flex-direction:column;justify-content:center;gap:5px;width:86px;margin:0;padding:10px 4px;border:0;border-radius:10px;background:var(--mm-cream);font-size:12px;text-align:center}
	.mcl-mega__cty .mcl-flag{width:30px!important;height:22.5px!important}
	.mcl-mega__cty .mcl-mega__nm{width:100%}
	.mcl-mega__cty .mcl-mega__c{font-size:11px}
	.mcl-mega__cty .mcl-mega__c::after{content:attr(data-u)}
	.mcl-mega__ops{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 2px}
	.mcl-mega__op{flex:none;width:104px;height:50px}
	.mcl-mega__posts,.mcl-mega__posts.is-wide{display:flex;flex-direction:row;gap:10px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 2px}
	.mcl-mega__posts::-webkit-scrollbar{display:none}
	.mcl-mega__post,.mcl-mega__posts.is-wide .mcl-mega__post{flex:none;width:150px;flex-direction:column;align-items:stretch;gap:6px;margin:0;padding:0;border:0}
	.mcl-mega__post img{width:150px;height:96px}
	.mcl-mega__more{margin-top:10px;font-size:13px}
	.mcl-mega__foot{flex-direction:column;gap:0;padding:0;margin-top:14px;font-size:15px}
	.mcl-mega__foot a{justify-content:space-between;padding:15px 16px;border-bottom:1px solid var(--mm-rule)}
	.mcl-mega__foot a .mcl-mega__c{margin-left:auto;margin-right:8px}
	.mcl-mega__sugg{max-height:50vh}
	html.mcl-mega-open,html.mcl-mega-open body{overflow:hidden}
}
