
/* Shared category menu and 2026 mobile interaction optimizations */
#mn-nav-header .mn-dropdown-list { max-height:min(67vh,680px)!important;overflow-y:auto!important;}
#mn-nav-header .mn-nav-category { grid-column:1/-1!important;padding:11px 9px 4px!important;color:#278479!important;font:900 11px/1.45 system-ui,'Noto Sans JP',sans-serif!important;letter-spacing:.055em!important;border-bottom:1px solid #e3efe9!important;}
#mn-nav-header .mn-logo-image,#mn-nav-header .mn-logo-image img,#mn-unified-footer .mn-footer-brand-icon { background:transparent!important;box-shadow:none!important;border:0!important; }
#mn-nav-header .mn-logo-image img{object-fit:contain!important;border-radius:0!important;}
#mn-unified-footer .mn-footer-link-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important;}
/* TOP categorized apps: each category looks intentional, not an unrelated senior listing */
.mn-category-guide {max-width:1160px;margin:42px auto 15px;padding:0 0 6px;}
.mn-category-guide h3 {font:900 clamp(23px,3vw,34px)/1.4 system-ui,'Noto Sans JP',sans-serif;color:#254854;margin:0 0 6px;letter-spacing:-.04em}
.mn-category-guide>p{font-size:14px;color:#657b81;line-height:1.8;margin:0 0 22px}
.mn-category-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.mn-category-tile{position:relative;border:1px solid #dfeae6;background:white;border-radius:22px;padding:24px;text-decoration:none;color:#27434d;min-height:180px;box-shadow:0 14px 30px #263f4010;display:flex;flex-direction:column;gap:9px;transition:.25s}
.mn-category-tile:hover{transform:translateY(-4px);box-shadow:0 23px 35px #263f4020}
.mn-category-tile:nth-child(2){background:linear-gradient(145deg,#ebf5ff,#f0efff);border-color:#d7e6fa}
.mn-category-tile:nth-child(3){background:linear-gradient(145deg,#fdf4eb,#f6f8ed);border-color:#f1e5dd}
.mn-category-tile .mn-tile-icon{font-size:27px;color:#228f84}
.mn-category-tile strong{font-size:19px;font-weight:900;line-height:1.4}
.mn-category-tile span:last-child{font-size:12px;line-height:1.7;color:#627980}
.mn-gallery-feature {max-width:1160px;margin:28px auto 45px;border:1px solid #cfdbe9;border-radius:27px;overflow:hidden;display:grid;grid-template-columns: 45% 55%;background:linear-gradient(110deg,#08162a,#152943);color:#f6fbff;box-shadow:0 25px 52px #0b244026;}
.mn-gallery-feature img{display:block;width:100%;height:100%;max-height:350px;object-fit:cover;object-position:50% 40%}
.mn-gallery-feature>div{padding:36px 40px;align-self:center}
.mn-gallery-feature small{font:800 11px/1.3 system-ui,sans-serif;color:#86eeee;letter-spacing:.13em}
.mn-gallery-feature h3{font-size:clamp(22px,3vw,33px);line-height:1.4;margin:13px 0;color:white}
.mn-gallery-feature p{font-size:14px;line-height:2;color:#c4d6e6}
.mn-gallery-feature a{display:inline-block;background:#d5f9f5;color:#114e55;padding:13px 25px;margin-top:20px;border-radius:30px;text-decoration:none;font-weight:900;font-size:13px}
@media(max-width:930px){#mn-unified-footer .mn-footer-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:800px){.mn-category-list{grid-template-columns:1fr;gap:11px}.mn-category-tile{min-height:110px;padding:18px 20px}.mn-gallery-feature{grid-template-columns:1fr}.mn-gallery-feature img{height:230px}.mn-gallery-feature>div{padding:25px 22px}}
@media(max-width:600px){#mn-unified-footer .mn-footer-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 10px!important}}
/* app1 and app2 — preview and color controls share the same mobile sightline */
@media(max-width:700px){
 body.mn-home-app #themes{padding-top:36px!important;padding-bottom:45px!important;}
 body.mn-home-app #themes .themes-grid{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;}
 body.mn-home-app #themes .themes-grid>div:first-child{display:contents!important;}
 body.mn-home-app #themes .small-label{order:0!important}
 body.mn-home-app #themes .h2{order:1!important;margin-top:0!important;font-size:clamp(25px,6.3vw,31px)!important;line-height:1.34!important;}
 body.mn-home-app #themes .sub{order:2!important;font-size:12px!important;line-height:1.65!important;margin-bottom:0!important;}
 body.mn-home-app #themes #themeDisplay{order:3!important;position:relative!important;width:100%!important;height:clamp(250px,39vh,340px)!important;min-height:0!important;margin:0!important;overflow:hidden!important;}
 body.mn-home-app #themes #themeDisplay>.mini-theme{display:none!important;}
 body.mn-home-app #themes #themeDisplay>.theme-aura{width:78%!important;height:77%!important;}
 body.mn-home-app #themes #themeDisplay>.phone{width:clamp(106px,18vh,160px)!important;transform:rotate(2deg)!important;max-height:95%!important;}
 body.mn-home-app #themes .theme-current-line{order:4!important;justify-content:center!important;margin:0!important;font-size:11px!important;}
 body.mn-home-app #themes .color-picker{order:5!important;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;gap:8px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:4px 4px 10px!important;-webkit-overflow-scrolling:touch;}
 body.mn-home-app #themes .color-button{flex:0 0 67px!important;min-width:67px!important;scroll-snap-align:start;min-height:66px!important;border-radius:13px!important;padding:7px 2px!important;font-size:9px!important;}
 body.mn-home-app #themes .color-dot{width:21px!important;height:21px!important;}
 body.mn-home-app #themes #themeName{order:6!important;text-align:center!important;font-size:12px!important;padding:0!important;margin:0!important;}
 body.mn-home-app #themes .theme-footnote{order:7!important;text-align:center!important;font-size:10px!important;margin:0!important;}
}
/* app3 — preview before horizontal color swatches on mobile */
@media(max-width:700px){
 body.mn-phonebook #themes{padding:42px 0!important;}
 body.mn-phonebook #themes .section-intro{margin-bottom:0!important;}
 body.mn-phonebook #themes .section-title{font-size:clamp(25px,6vw,32px)!important;line-height:1.38!important;}
 body.mn-phonebook #themes .section-intro .lead{font-size:12px!important;line-height:1.7!important;}
 body.mn-phonebook #themes .theme-grid{display:flex!important;flex-direction:column!important;gap:8px!important;align-items:stretch!important;margin-top:5px!important;}
 body.mn-phonebook #themes .theme-controls{display:contents!important;}
 body.mn-phonebook #themes .theme-stage{order:0!important;height:clamp(240px,39vh,340px)!important;min-height:0!important;overflow:hidden!important;}
 body.mn-phonebook #themes .theme-phone{width:clamp(112px,18vh,168px)!important;transform:rotate(2deg)!important;}
 body.mn-phonebook #themes .theme-stage:before{width:270px!important;max-width:90%!important;}
 body.mn-phonebook #themes #theme-buttons{order:1!important;display:flex!important;overflow-x:auto!important;gap:8px!important;width:100%!important;max-width:100%!important;padding:4px 4px 8px!important;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
 body.mn-phonebook #themes .swatch-button{flex:0 0 73px!important;min-width:73px!important;min-height:65px!important;padding:7px 3px!important;scroll-snap-align:start;font-size:9px!important;border-radius:12px!important;}
 body.mn-phonebook #themes .theme-count{order:2!important;margin:0!important;text-align:center!important;font-size:12px!important;}
 body.mn-phonebook #themes .theme-nextprev{order:3!important;display:flex!important;justify-content:center!important;gap:9px!important;margin:5px 0!important;}
 body.mn-phonebook #themes .theme-nextprev button{padding:10px 15px!important;font-size:12px!important;}
 body.mn-phonebook #themes .privacy-note{order:4!important;font-size:10px!important;margin:3px 0!important;}
}
/* the Gallery — compact interactive phone and tabs stay close together, desktop untouched */
@media(max-width:800px){
 body.mn-gallery .demo{padding:45px 0 60px!important;}
 body.mn-gallery .demo-grid{display:flex!important;flex-direction:column!important;gap:7px!important;align-items:stretch!important;}
 body.mn-gallery .demo-copy{display:contents!important;}
 body.mn-gallery .demo-copy>.tiny{order:0!important}
 body.mn-gallery .demo-copy>.display-md{order:1!important;font-size:clamp(24px,6vw,32px)!important;}
 body.mn-gallery .demo-copy>.lead{order:2!important;margin:3px 0 4px!important;font-size:12px!important;line-height:1.75!important;}
 body.mn-gallery .demo-stage{order:3!important;position:relative!important;width:100%!important;min-height:0!important;height:clamp(275px,42vh,365px)!important;border-radius:22px!important;margin:3px 0!important;}
 body.mn-gallery .demo-stage>.phone{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%) scale(.54)!important;transform-origin:center center!important;}
 body.mn-gallery .demo-stage .note-float{display:none!important;}
 body.mn-gallery .demo-controls{order:4!important;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;width:100%!important;max-width:100%!important;margin:4px 0 0!important;padding:3px 2px 10px!important;scroll-snap-type:x proximity;gap:8px!important;-webkit-overflow-scrolling:touch;}
 body.mn-gallery .demo-tab{flex:0 0 auto!important;scroll-snap-align:center;white-space:nowrap!important;min-height:43px!important;font-size:11px!important;padding:8px 13px!important;}
 body.mn-gallery #demoCaption{order:5!important;min-height:0!important;line-height:1.65!important;font-size:12px!important;margin:0!important;}
 body.mn-gallery .demo-tags{order:6!important;margin:4px 0!important;}
 body.mn-gallery .demo-copy>p:last-child{order:7!important;font-size:10px!important;margin:4px 0!important;}
}
@media(max-width:480px){body.mn-gallery .demo-stage>.phone{transform:translate(-50%,-50%) scale(.47)!important}}
@media(max-height:700px) and (max-width:800px){body.mn-gallery .demo-stage{height:255px!important}body.mn-gallery .demo-stage>.phone{transform:translate(-50%,-50%) scale(.44)!important}}
