/* Three readable groups; mobile disclosure never hides contact or company details. */
.market-footer .mf-nav.mf-grouped{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.market-footer .mf-nav-group{min-width:0}
.market-footer .mf-nav-group>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;cursor:pointer;list-style:none;color:#c8df82;font-size:16px;font-weight:700;line-height:1.5}
.market-footer .mf-nav-group>summary::-webkit-details-marker{display:none}
.market-footer .mf-nav-group>summary::after{content:'+';font-size:22px;font-weight:400;flex-shrink:0}
.market-footer .mf-nav-group[open]>summary::after{content:'−'}
.market-footer .mf-group-links{display:flex;flex-direction:column;align-items:start;padding-top:4px}
.market-footer .mf-group-links>a{display:flex;align-items:center;min-height:44px;padding:6px 0;font-size:16px;line-height:1.6}
/* Japan also keeps its price and FAQ entries; give the full menu enough room. */
@media(min-width:1441px){html[lang="ja-JP"] .site-header .header-inner{max-width:1440px}}
@media(min-width:1151px) and (max-width:1440px){
 html[lang="ja-JP"] .site-header .menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px}
 html[lang="ja-JP"] .site-header .main-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:20px 30px;max-height:calc(100dvh - 150px);overflow:auto;box-shadow:0 18px 25px #183b4a15}
 html[lang="ja-JP"] .site-header .main-nav.is-open{display:flex;flex-direction:column;align-items:stretch;gap:0}
 html[lang="ja-JP"] .site-header .main-nav>a:not(.line-cta):not(.trial-cta):not(.login-link),html[lang="ja-JP"] .site-header .course-menu>summary{font-size:16px;padding:12px 0;border:0;border-bottom:1px solid #cbd8de;border-radius:0;background:none}
 html[lang="ja-JP"] .site-header .main-nav>.line-cta,html[lang="ja-JP"] .site-header .main-nav>.trial-cta{align-self:flex-start;margin:16px 0 8px;min-height:44px}
 html[lang="ja-JP"] .site-header .main-nav>.login-link{font-size:16px;padding:12px 0}
 html[lang="ja-JP"]:not(.js) .site-header .menu-toggle{display:none}
 html[lang="ja-JP"]:not(.js) .site-header .header-inner{flex-wrap:wrap}
 html[lang="ja-JP"]:not(.js) .site-header .main-nav{display:flex;position:static;flex-direction:column;align-items:stretch;width:100%;max-height:none;overflow:visible;box-shadow:none;padding:12px 0 0}
}
@media(min-width:1151px) and (max-width:1240px){
 html[lang|="th"] .site-header .menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px}
 html[lang|="th"] .site-header .main-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:20px 30px;max-height:calc(100dvh - 150px);overflow:auto;box-shadow:0 18px 25px #183b4a15}
 html[lang|="th"] .site-header .main-nav.is-open{display:flex;flex-direction:column;align-items:stretch;gap:0}
 html[lang|="th"] .site-header .main-nav>a:not(.line-cta):not(.login-link),html[lang|="th"] .site-header .course-menu>summary{font-size:16px;padding:12px 0;border:0;border-bottom:1px solid #cbd8de;border-radius:0;background:none}
 html[lang|="th"] .site-header .main-nav>.line-cta{align-self:flex-start;margin:16px 0 8px;min-height:44px}
 html[lang|="th"] .site-header .main-nav>.login-link{font-size:16px;padding:12px 0}
 html[lang|="th"]:not(.js) .site-header .menu-toggle{display:none}
 html[lang|="th"]:not(.js) .site-header .header-inner{flex-wrap:wrap}
 html[lang|="th"]:not(.js) .site-header .main-nav{display:flex;position:static;flex-direction:column;align-items:stretch;width:100%;max-height:none;overflow:visible;box-shadow:none;padding:12px 0 0}
}
@media(max-width:768px){
 .market-footer .mf-nav.mf-grouped{grid-template-columns:minmax(0,1fr);gap:0;padding-bottom:12px}
 .market-footer .mf-nav-group{width:100%;border-top:1px solid #ffffff30}
 .market-footer .mf-nav-group>summary{min-height:56px}
 .market-footer .mf-group-links{padding:0 0 14px}
}
