/* SOUMU 0.1.103: member navigation and organization OPS sidebar, forum and gallery */
.member-subnav.member-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;border:1px solid #e2e8f0;padding:5px;border-radius:17px;background:#fff;margin:0 0 14px;overflow:visible}
.member-subnav.member-bottom-nav a{min-width:0;display:flex;flex-direction:column;gap:5px;padding:10px 2px;font-size:11px;line-height:1.2;white-space:nowrap}
.member-subnav.member-bottom-nav a .nav-icon{width:20px;height:20px}
.member-subnav.member-bottom-nav a.active{background:#18324d;color:#fff}
@media(max-width:700px){
 body:not(.ops-page) .member-subnav.member-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:100;margin:0;padding:6px 5px max(6px,env(safe-area-inset-bottom));border-radius:16px 16px 0 0;box-shadow:0 -5px 25px rgba(20,38,66,.13);border-bottom:0}
 body:not(.ops-page) .member-subnav.member-bottom-nav a{padding:8px 1px;font-size:10px}
 body:not(.ops-page):has(.member-bottom-nav) main{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
}
.opsnav.is-organization-nav .opsnav-mobile-toggle{display:none}
@media(min-width:1050px){
 body.soumu-org-ops-nav main{max-width:1550px;padding-left:270px}
 body.soumu-org-ops-nav .opsnav.is-organization-nav{position:fixed;top:88px;left:max(12px,calc((100vw - 1510px)/2));width:232px;bottom:20px;overflow:auto;z-index:25;display:block;white-space:normal;margin:0;padding:16px 12px;background:#fff;border:1px solid #e3e9f1;border-radius:20px;box-shadow:0 9px 28px rgba(28,47,76,.06)}
 .opsnav.is-organization-nav .opsnav-panel,.opsnav.is-organization-nav .opsnav-group{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:3px}
 .opsnav.is-organization-nav .opsnav-group{padding:9px 0 6px;border-bottom:1px solid #edf1f5}
 .opsnav.is-organization-nav .opsnav-group:last-child{border:0}
 .opsnav.is-organization-nav .opsnav-heading{font-size:10px;font-weight:900;letter-spacing:.09em;color:#64748b;padding:0 10px 5px}
 .opsnav.is-organization-nav .opsnav-group a{display:flex;justify-content:flex-start;padding:10px 9px;border:0;border-radius:11px;font-size:12px;background:transparent;white-space:normal}
 .opsnav.is-organization-nav .opsnav-group a.active{background:#eaf0f7;color:#163653}
 .opsnav.is-organization-nav .opsnav-group a:hover{background:#f2f6fa}
}
@media(max-width:1049px){
 body.ops-page .opsnav.is-organization-nav{display:block;overflow:visible;white-space:normal;position:relative;background:#fff;border:1px solid #e3e9f1;border-radius:14px;padding:7px;margin-bottom:14px}
 .opsnav.is-organization-nav .opsnav-mobile-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:9px 13px;border:0;border-radius:9px;background:#eaf0f7;font-size:14px;font-weight:900;color:#173550}
 .opsnav.is-organization-nav .opsnav-panel{display:none;padding:8px 2px;max-height:65vh;overflow:auto}
 .opsnav.is-organization-nav.is-open .opsnav-panel{display:block}
 .opsnav.is-organization-nav .opsnav-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:9px 4px;border-bottom:1px solid #edf1f5}
 .opsnav.is-organization-nav .opsnav-heading{grid-column:1/-1;font-size:11px;color:#64748b;font-weight:900;padding:4px 8px}
 .opsnav.is-organization-nav .opsnav-group a{min-width:0;white-space:normal;display:flex;align-items:center;padding:10px 7px;font-size:12px;border:1px solid #edf1f5;border-radius:10px}
 .opsnav.is-organization-nav .opsnav-group a.active{background:#eaf0f7}
}
.community-shell{max-width:1100px;margin:0 auto 30px}
.community-page .community-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:10px 0 18px;flex-wrap:wrap}
.community-header h1{margin:2px 0 5px;font-size:clamp(23px,4vw,30px)}
.community-header p{margin:0;color:#64748b;font-size:13px}
.community-card{margin-bottom:14px;padding:18px}
.community-card h2{margin:0 0 16px;font-size:18px}
.community-form{display:grid;gap:12px}
.community-form label{display:block;font-size:13px;font-weight:700;color:#334155}
.community-form input,.community-form textarea{width:100%;margin-top:6px}
.community-form button{justify-self:start}
.community-list{display:grid;gap:0}
.community-thread{display:block;padding:15px 3px;border-bottom:1px solid #edf1f5;color:inherit;text-decoration:none}
.community-thread:last-child{border:0}
.community-thread strong{display:block;font-size:15px;color:#172c44}
.community-thread span:not(.community-pin){display:block;margin-top:5px;font-size:11px;color:#64748b}
.community-thread p{font-size:12px;color:#475569;margin:8px 0 0}
.community-pin{display:inline-block;padding:3px 6px;background:#fff3d4;border-radius:5px;font-size:10px;color:#7c5b13}
.community-meta{font-size:11px;color:#64748b}
.community-body{white-space:normal;font-size:14px;line-height:1.8;overflow-wrap:anywhere;margin:18px 0 20px}
.community-comment{border-bottom:1px solid #e9eef4;padding:14px 0}
.community-comment>div{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.community-comment small{color:#64748b;font-size:11px}
.community-comment p{overflow-wrap:anywhere;line-height:1.7;font-size:14px}
.community-danger{font-size:11px;color:#b91c1c;background:none;border:0;padding:7px 0;cursor:pointer}
.community-album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.community-album-card{overflow:hidden;border:1px solid #e2e8f0;background:#fff;color:inherit;text-decoration:none;border-radius:14px}
.community-album-card img,.community-album-placeholder{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#eef2f6}
.community-album-placeholder{display:grid;place-items:center;color:#64748b;font-size:12px}
.community-album-card div:last-child{padding:12px}
.community-album-card strong,.community-album-card small{display:block}
.community-album-card strong{font-size:14px;overflow-wrap:anywhere}
.community-album-card small{font-size:11px;color:#64748b;margin-top:5px}
.community-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.community-photo-tile{border:1px solid #e2e8f0;background:#fff;overflow:hidden;border-radius:12px}
.community-photo-tile img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.community-photo-tile small{display:block;color:#64748b;padding:7px 8px 0;overflow-wrap:anywhere}
.community-photo-tile form{margin:0 8px 4px}
.community-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.community-more-grid a{display:flex;align-items:center;justify-content:space-between;padding:15px;border:1px solid #e4e9f2;text-decoration:none;color:#18324d;border-radius:11px;font-weight:800}
@media(max-width:600px){
 .community-card{padding:14px}
 .community-header .button{width:auto}
 .community-album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .community-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .community-more-grid{grid-template-columns:1fr}
}
/* SOUMU v0.1.105: align community UI with existing member pages. */
.community-page .community-shell{max-width:760px;margin:0 auto 28px}
.community-page .community-page-heading{padding:0;margin:0 0 10px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:none;overflow:hidden}
.community-page .community-page-heading .member-page-title{padding:13px 15px;align-items:center;gap:12px;border:0}
.community-page .community-page-heading h1{font-size:21px;line-height:1.35;margin:0 0 3px;font-weight:900}
.community-page .community-page-heading p{font-size:11px;line-height:1.65;color:#64748b}
.community-page .community-page-switch{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin:0;padding:9px 11px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;color:#334155;text-decoration:none;white-space:nowrap;font-size:11px;font-weight:800}
.community-page .community-card{margin:0 0 10px;padding:13px 15px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:none;overflow:hidden}
.community-page .community-card h1{font-size:21px;line-height:1.45;margin:0 0 7px}
.community-page .community-card h2{font-size:15px;margin:0 0 9px;line-height:1.4}
.community-page .community-card-heading{border-bottom:1px solid #eef0f3;margin:-13px -15px 12px;padding:11px 15px}
.community-page .community-card-heading h2{margin:0}
.community-page .community-card-inner{padding:0}
.community-page .community-list{display:block}
.community-page .community-thread{padding:12px 0}
.community-page .community-thread strong{font-size:13px;line-height:1.45}
.community-page .community-thread p{font-size:12px;line-height:1.6;margin:5px 0 0}
.community-page .community-thread span:not(.community-pin){font-size:10px}
.community-page .community-card .muted{font-size:12px;line-height:1.65;margin:8px 0}
.community-page .community-album-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:9px;margin:0 0 10px}
.community-page .community-album-card{border-radius:12px}
.community-page .community-album-card div:last-child{padding:10px 11px}
.community-page .community-album-card strong{font-size:12px}
.community-page .community-album-card small{font-size:10px}
.community-page .community-compose{padding:0!important}
.community-page .community-compose-summary{display:flex;align-items:center;gap:9px;padding:12px 15px;cursor:pointer;list-style:none;font-size:13px;font-weight:900;color:#163550;user-select:none}
.community-page .community-compose-summary::-webkit-details-marker{display:none}
.community-page .community-compose-summary::marker{content:''}
.community-page .community-compose-plus{display:inline-grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border:1px solid #dce5ee;border-radius:8px;background:#f0f5fa;font-size:18px;line-height:1;color:#173c5e}
.community-page .community-compose-chevron{margin-left:auto;width:8px;height:8px;border-right:2px solid #64748b;border-bottom:2px solid #64748b;transform:rotate(45deg);transition:transform .16s ease}
.community-page .community-compose[open] .community-compose-chevron{transform:rotate(225deg)}
.community-page .community-compose-content{padding:12px 15px 15px;border-top:1px solid #edf1f5}
.community-page .community-form{display:grid;gap:9px}
.community-page .community-form label{display:block;margin:0;font-size:12px;line-height:1.45;font-weight:800;color:#334155}
.community-page .community-form input:not([type="hidden"]),.community-page .community-form textarea{display:block;width:100%;max-width:100%;margin:5px 0 0;padding:9px 11px;border:1px solid #d6dce4;border-radius:10px;background:#fff;font-size:13px;line-height:1.5}
.community-page .community-form input:not([type="hidden"]){min-height:40px}
.community-page .community-form textarea{min-height:80px;resize:vertical}
.community-page .community-form button.button{justify-self:start;margin-top:1px;padding:9px 14px;min-height:39px;border-radius:10px;font-size:12px;font-weight:900}
.community-page .community-photo-grid{margin:0 0 10px}
.community-page .community-detail-card{padding:15px}
.community-page .community-header{margin:3px 0 10px}
.community-page .community-comment{padding:11px 0}
.community-page .community-comment p{font-size:12px}
.community-page .community-more-grid a{padding:12px;font-size:12px}
@media(max-width:600px){
 .community-page .community-page-heading .member-page-title{padding:11px 12px;gap:8px}
 .community-page .community-page-heading h1{font-size:18px}
 .community-page .community-page-heading p{font-size:10px}
 .community-page .community-page-switch{padding:8px;font-size:10px}
 .community-page .community-card{padding:12px;margin-bottom:8px}
 .community-page .community-card-heading{margin:-12px -12px 10px;padding:10px 12px}
 .community-page .community-compose-summary{padding:10px 12px}
 .community-page .community-compose-content{padding:11px 12px 12px}
 .community-page .community-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
/* Existing OPS mobile menu: keep the toggle on one line without extra label. */
@media(max-width:1049px){
 body.ops-page .opsnav.is-organization-nav .opsnav-mobile-toggle{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:44px;width:100%;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#152b43;text-align:left;white-space:nowrap;font-size:13px;line-height:1.3}
 body.ops-page .opsnav.is-organization-nav .opsnav-mobile-toggle>.nav-icon{flex:0 0 17px}
 body.ops-page .opsnav.is-organization-nav .opsnav-mobile-toggle>span:nth-of-type(1){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
 body.ops-page .opsnav.is-organization-nav .opsnav-mobile-toggle>span:last-child{display:none}
 body.ops-page .opsnav.is-organization-nav .opsnav-mobile-toggle::after{content:'';display:block;width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-left:auto;transition:transform .16s ease}
 body.ops-page .opsnav.is-organization-nav .opsnav-mobile-toggle[aria-expanded="true"]::after{transform:translateY(2px) rotate(225deg)}
 body.ops-page .opsnav.is-organization-nav .opsnav-mobile-toggle:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
}

/* SOUMU v0.1.106: true organization-OPS context for bulletin board and albums. */
body.ops-page .community-ops-page{width:100%;max-width:none}
body.ops-page .community-ops-page .community-shell{max-width:none;width:100%;margin:0 auto 32px;padding:0}
body.ops-page .community-ops-page .community-ops-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:3px 0 15px;padding:10px 2px}
body.ops-page .community-ops-page .community-ops-heading h1{font-size:clamp(23px,3vw,29px);line-height:1.25}
body.ops-page .community-ops-page .community-ops-heading p{font-size:13px}
body.ops-page .community-ops-page .community-ops-heading .button{flex-shrink:0;font-size:12px}
body.ops-page .community-ops-page .community-card{margin:15px 0;padding:20px 23px;border-radius:16px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 4px 18px rgba(20,35,58,.035)}
body.ops-page .community-ops-page .community-card h2{font-size:18px;font-weight:900;margin-bottom:14px}
body.ops-page .community-ops-page .community-card-heading{border-bottom:1px solid #edf0f3;margin:-20px -23px 17px;padding:16px 23px}
body.ops-page .community-ops-page .community-card-heading h2{margin:0}
body.ops-page .community-ops-page .community-compose{margin-top:14px;padding:0!important}
body.ops-page .community-ops-page .community-compose-summary{padding:15px 20px;font-size:14px;min-height:54px}
body.ops-page .community-ops-page .community-compose-content{padding:18px 22px 22px}
body.ops-page .community-ops-page .community-form{gap:14px}
body.ops-page .community-ops-page .community-form input:not([type="hidden"]),
body.ops-page .community-ops-page .community-form textarea{font-size:14px}
body.ops-page .community-ops-page .community-list .community-thread{padding:13px 1px}
body.ops-page .community-ops-page .community-album-grid{margin:16px 0;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}
body.ops-page .community-ops-page .community-photo-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
@media(max-width:1049px){
 body.ops-page .community-ops-page .community-ops-heading{padding:3px 0 8px}
 body.ops-page .community-ops-page .community-card{padding:16px 17px;margin:11px 0}
 body.ops-page .community-ops-page .community-card-heading{margin:-16px -17px 14px;padding:13px 17px}
 body.ops-page .community-ops-page .community-compose{padding:0!important}
 body.ops-page .community-ops-page .community-compose-content{padding:14px 15px 16px}
}
@media(max-width:600px){
 body.ops-page .community-ops-page .community-ops-heading{align-items:flex-start;flex-direction:column;gap:9px;margin-bottom:7px}
 body.ops-page .community-ops-page .community-ops-heading h1{font-size:22px}
 body.ops-page .community-ops-page .community-ops-heading p{font-size:12px}
 body.ops-page .community-ops-page .community-ops-heading .button{align-self:flex-start}
 body.ops-page .community-ops-page .community-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.ops-page .community-ops-page .community-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
}

/* v0.1.107: no meaningless OPS button on desktop; reliable native mobile disclosure. */
@media(min-width:1050px){
 .opsnav.is-organization-nav>.opsnav-mobile-details{display:none!important}
 .opsnav.is-organization-nav>.opsnav-desktop-panel{display:flex!important;flex-direction:column;align-items:stretch;width:100%}
}
@media(max-width:1049px){
 body.ops-page .opsnav.is-organization-nav>.opsnav-desktop-panel{display:none!important}
 .opsnav.is-organization-nav>.opsnav-mobile-details{display:block!important;width:100%}
 .opsnav.is-organization-nav>.opsnav-mobile-details>summary{box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:44px;width:100%;padding:10px 12px;border:1px solid #dfe5eb;border-radius:10px;background:#fff;color:#173550;font-size:13px;font-weight:800;line-height:1.3;white-space:nowrap;cursor:pointer;list-style:none}
 .opsnav.is-organization-nav>.opsnav-mobile-details>summary::-webkit-details-marker{display:none}
 .opsnav.is-organization-nav>.opsnav-mobile-details>summary::marker{content:''}
 .opsnav.is-organization-nav>.opsnav-mobile-details>summary .nav-icon{flex:0 0 20px;width:20px;height:20px}
 .opsnav.is-organization-nav>.opsnav-mobile-details>summary span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis}
 .opsnav.is-organization-nav .opsnav-chevron{display:block;margin-left:auto;flex:0 0 8px;width:8px;height:8px;border-right:2px solid #64748b;border-bottom:2px solid #64748b;transform:rotate(45deg) translate(-2px,-2px)}
 .opsnav.is-organization-nav .opsnav-mobile-details[open] .opsnav-chevron{transform:rotate(225deg) translate(-2px,-2px)}
 .opsnav.is-organization-nav .opsnav-mobile-details>summary:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
 .opsnav.is-organization-nav .opsnav-mobile-panel{padding:8px 2px;max-height:65vh;overflow:auto}
 .opsnav.is-organization-nav .opsnav-mobile-panel .opsnav-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:9px 4px;border-bottom:1px solid #edf1f5}
}
