.hmc-wrap{max-width:1120px;margin:28px auto;padding:0 16px;box-sizing:border-box;color:#2f2a26}.hmc-wrap *{box-sizing:border-box}.hmc-global-nav{position:sticky;top:0;z-index:60;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 0;background:rgba(255,253,250,.96);backdrop-filter:blur(8px);border-bottom:1px solid #eee6df;margin-bottom:18px}.hmc-global-nav a{text-decoration:none;color:#2f2a26}.hmc-nav-brand{min-width:0}.hmc-nav-brand h2{margin:0 0 3px;font-size:1.35rem;line-height:1.25}.hmc-nav-brand p{margin:0;color:#665c55;font-size:.88em;line-height:1.45}.hmc-nav-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}.hmc-home-link,.hmc-mypage-link{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #ddd3ca;border-radius:999px;background:#fff}.hmc-home-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.hmc-page-title{margin:12px 0 18px}.hmc-page-title h2{margin:0}.hmc-btn{display:inline-block;border:0;border-radius:8px;background:#3f3832;color:#fff!important;text-decoration:none;padding:10px 16px;cursor:pointer}.hmc-btn-sub{background:#eee9e4;color:#2f2a26!important}.hmc-empty,.hmc-panel,.hmc-detail{background:#fff;border:1px solid #e6ddd5;border-radius:14px;padding:22px;margin-bottom:20px}.hmc-panel h3{margin-top:0}.hmc-panel label{display:block;font-weight:700;margin:14px 0 6px}.hmc-panel input[type=text],.hmc-panel input[type=email],.hmc-panel input[type=search],.hmc-panel input[type=url],.hmc-panel textarea,.hmc-panel select{width:100%;padding:10px 11px;border:1px solid #cfc6bf;border-radius:8px;background:#fff}.hmc-help,.hmc-muted{font-size:.9em;color:#756c65}.hmc-message{max-width:1120px;margin:18px auto;padding:11px 16px;border:1px solid #b8d6ac;background:#f3faef;border-radius:8px}
.hmc-banners{display:grid;gap:12px;margin-bottom:18px}.hmc-banners-1{grid-template-columns:1fr}.hmc-banners-2{grid-template-columns:repeat(2,1fr)}.hmc-banners-3{grid-template-columns:repeat(3,1fr)}.hmc-banners a,.hmc-banners>div{display:block;border-radius:14px;overflow:hidden}.hmc-banners img{width:100%;aspect-ratio:16/6;object-fit:cover;display:block}.hmc-top-search{position:relative;margin:0 0 22px}.hmc-top-search svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:20px;height:20px;fill:none;stroke:#746b65;stroke-width:1.8}.hmc-top-search input{width:100%;padding:13px 18px 13px 46px;border:1px solid #d4cbc3;border-radius:999px;background:#fff;box-shadow:0 5px 18px rgba(72,55,40,.05)}.hmc-explore-layout{display:grid;grid-template-columns:220px 1fr;gap:22px;align-items:start}.hmc-category-sidebar{position:sticky;top:70px;border:1px solid #e6ddd5;border-radius:12px;background:#fff;padding:14px}.hmc-category-sidebar h3{margin:0 0 10px}.hmc-cat-block{padding:8px 0;border-top:1px solid #eee7e1}.hmc-cat-filter{display:flex;justify-content:space-between;gap:8px;width:100%;border:0;background:none;text-align:left;padding:7px 8px;border-radius:7px;cursor:pointer;color:#403934}.hmc-cat-filter:hover,.hmc-cat-active{background:#f6eee7}.hmc-sub-filter{padding-left:18px;font-size:.9em}.hmc-cat-filter small{color:#94877d}.hmc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.hmc-card{border:1px solid #e5ddd7;border-radius:12px;background:#fff;overflow:hidden;transition:transform .15s ease,box-shadow .15s ease}.hmc-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(70,52,38,.08)}.hmc-card-image img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.hmc-card-body{padding:14px}.hmc-card-body h3{margin:6px 0 8px}.hmc-card-body h3 a{text-decoration:none;color:#302a26}.hmc-card-body p{color:#746a63;margin-bottom:2px}.hmc-card-cat{font-size:.8em;color:#a1745d}
.hmc-mypage-grid{display:grid;grid-template-columns:300px 1fr;gap:22px;align-items:start}.hmc-profile-card{text-align:center}.hmc-profile-card form{text-align:left}.hmc-avatar{border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}.hmc-avatar-default{background:#ededed;color:#777}.hmc-avatar-default svg{width:54%;height:54%;fill:#b7b7b7}.hmc-level{font-weight:800;margin:8px 0 4px}.hmc-point-info{display:block;margin:8px auto 2px;border:0;background:none;color:#7b5d9d;cursor:pointer;padding:4px}.hmc-point-info span{display:inline-flex;width:17px;height:17px;border:1px solid currentColor;border-radius:50%;align-items:center;justify-content:center;font-size:11px}.hmc-request-btn{border:0;background:#fff3cd;color:#6e5700;padding:7px 10px;border-radius:7px;cursor:pointer;margin-bottom:6px}.hmc-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.hmc-section-head h3{margin:0}.hmc-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}.hmc-gallery-item{border:1px solid #eee6df;border-radius:9px;padding:8px}.hmc-gallery-item>a{text-decoration:none;color:inherit}.hmc-gallery img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:7px}.hmc-gallery-actions{display:flex;align-items:center;gap:10px;margin-top:6px}.hmc-gallery-actions form{margin:0}.hmc-linkbtn{border:0;background:none;text-decoration:underline;cursor:pointer;color:#6b625c;padding:0}.hmc-mini-person,.hmc-mini-post{display:flex;align-items:center;gap:9px;margin:8px 0}.hmc-mini-post{text-decoration:none;color:inherit}.hmc-mini-post img{width:42px;height:42px;object-fit:cover;border-radius:6px}.hmc-made-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.hmc-made-list a{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit}.hmc-made-list img{width:52px;height:52px;object-fit:cover;border-radius:7px}
.hmc-post-form-panel>form>label{margin-top:18px}.hmc-subcategory-checks{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0}.hmc-subcategory-option{margin:0!important}.hmc-subcategory-option input{position:absolute;opacity:0;pointer-events:none}.hmc-subcategory-option span{display:inline-block;padding:7px 11px;border:1px solid #d7cec6;border-radius:999px;background:#fff;cursor:pointer}.hmc-subcategory-option input:checked+span{background:#5d5148;color:#fff;border-color:#5d5148}.hmc-form-main-preview{display:block;max-width:360px;max-height:260px;object-fit:contain;border-radius:10px;margin-top:10px}.hmc-form-section{margin-top:28px;padding-top:4px}.hmc-form-section>h3{margin-bottom:10px}.hmc-add-row{border:1px solid #bfb5ad;background:#fff;border-radius:8px;padding:8px 12px;cursor:pointer}.hmc-add-below{margin-top:6px}.hmc-material-table-head{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr);gap:10px;font-weight:700;padding:8px 38px 5px 0}.hmc-material-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr) 30px;gap:10px;align-items:start;margin-bottom:10px}.hmc-material-name-cell{position:relative}.hmc-material-suggest{position:absolute;left:0;right:0;top:100%;z-index:20;background:#fff;border-radius:8px;box-shadow:0 5px 18px rgba(0,0,0,.14);overflow:hidden}.hmc-material-choice{width:100%;border:0;border-bottom:1px solid #eee;background:#fff;display:flex;gap:9px;align-items:center;padding:8px;text-align:left;cursor:pointer}.hmc-material-choice img,.hmc-material-affiliate img{width:46px;height:46px;object-fit:contain}.hmc-material-affiliate{display:flex;align-items:center;gap:8px;margin-top:5px;font-size:.85em;color:#49734b}.hmc-row-remove{border:0;border-radius:50%;width:28px;height:28px;background:#eee;cursor:pointer}.hmc-step-row{display:grid;grid-template-columns:36px 1fr 30px;gap:10px;align-items:start;margin-bottom:16px}.hmc-step-number{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#3f3832;color:#fff;font-weight:700}.hmc-step-content textarea{margin-top:8px}.hmc-step-image-label{font-size:.9em;margin:0 0 5px!important}.hmc-step-image-label span{font-weight:400;color:#777}.hmc-step-image-preview{display:block;width:min(100%,420px);max-height:240px;object-fit:cover;border-radius:8px;margin:8px 0}.hmc-submit-btn{margin-top:20px}.hmc-live-preview{margin-top:32px;padding:20px;border:1px dashed #cbbeb2;border-radius:14px;background:#fbf8f5}.hmc-live-preview>h3:first-child{margin-top:0}.hmc-preview-breadcrumb{font-size:.9em;color:#8e7666}.hmc-preview-simple{margin-bottom:18px}
.hmc-mainimage{width:100%;max-height:760px;object-fit:contain;background:#faf8f6;border-radius:12px;margin:8px 0 18px}.hmc-author-eval{border-top:1px solid #eee5dd;border-bottom:1px solid #eee5dd;padding:12px 0;margin-bottom:18px}.hmc-authorbox{display:flex;align-items:center;gap:10px;margin:0 0 12px}.hmc-authorbox form{margin:0}.hmc-smallbtn{border:1px solid #ccc2ba;border-radius:999px;background:#fff;padding:6px 10px;cursor:pointer}.hmc-reactions{display:flex;gap:8px;flex-wrap:wrap}.hmc-reactions form{margin:0}.hmc-reaction-btn{border:1px solid #d8cec6;background:#fff;border-radius:999px;padding:7px 10px;cursor:pointer}.hmc-reaction-btn span{display:inline-block;margin-left:6px;color:#8b7d73}.hmc-reaction-active{background:#f4e7dc;border-color:#caa98f}.hmc-reaction-btn:disabled{cursor:default;opacity:.8}.hmc-pr-box{border:1px solid #e4cbb8;border-left:5px solid #cfa98b;background:#f8eee5;padding:14px 16px;border-radius:8px;margin:18px 0}.hmc-pr-box p{margin:6px 0 0}.hmc-text{line-height:1.8;white-space:normal}.hmc-detail-cat{font-size:.9em;color:#8c7768}.hmc-detail-cat a{color:inherit}.hmc-material-detail-list{border-top:1px solid #eee}.hmc-material-detail-row{display:grid;grid-template-columns:72px 1fr 140px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.hmc-material-detail-image img{max-width:64px;max-height:64px;object-fit:contain}.hmc-material-detail-image a{display:block}.hmc-material-detail-qty{text-align:right;color:#555}.hmc-step-detail-item{display:grid;grid-template-columns:38px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid #eee7e1}.hmc-step-detail-item img{width:min(100%,620px);max-height:440px;object-fit:cover;border-radius:10px;margin-bottom:10px}.hmc-step-detail-item p{margin:0;line-height:1.8}.hmc-back{display:inline-block;margin-bottom:16px}
.hmc-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:99999;align-items:center;justify-content:center;padding:20px}.hmc-modal-show{display:flex}.hmc-modal-box{background:#fff;border-radius:12px;width:min(560px,100%);padding:24px;box-shadow:0 10px 30px rgba(0,0,0,.2)}.hmc-modal-box h3{margin-top:0}.hmc-modal-box textarea{width:100%;padding:10px;border:1px solid #ccc;border-radius:7px;margin-bottom:12px}
@media(max-width:900px){.hmc-explore-layout{grid-template-columns:1fr}.hmc-category-sidebar{position:static}.hmc-grid{grid-template-columns:repeat(2,1fr)}.hmc-mypage-grid{grid-template-columns:1fr}.hmc-gallery{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.hmc-grid,.hmc-gallery,.hmc-banners-2,.hmc-banners-3{grid-template-columns:1fr}.hmc-global-nav{align-items:flex-start}.hmc-nav-brand h2{font-size:1.1rem}.hmc-nav-brand p{font-size:.78em}.hmc-nav-actions{gap:6px}.hmc-home-link span{display:none}.hmc-material-table-head{display:none}.hmc-material-row{grid-template-columns:1fr 1fr 30px}.hmc-material-detail-row{grid-template-columns:60px 1fr}.hmc-material-detail-qty{grid-column:2;text-align:left}.hmc-hero{padding:22px}.hmc-hero h2{font-size:1.6rem}}

/* 2.5.0 usability refinements */
.hmc-first-link{display:inline-flex;align-items:center;padding:9px 12px;border:1px solid #ddd3ca;border-radius:999px;background:#fff;color:#2f2a26;cursor:pointer;font:inherit}
.hmc-first-link:hover,.hmc-home-link:hover,.hmc-mypage-link:hover{background:#faf6f2}
.hmc-section-head{margin-bottom:14px}
.hmc-card-author-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.hmc-card-author-row p{margin:0}
.hmc-card-favorite-form{margin:0}
.hmc-favorite-author-btn{border:1px solid #dfd2c8;background:#fff;color:#6d5f55;border-radius:999px;padding:6px 10px;cursor:pointer;font-size:.85em;line-height:1.2}
.hmc-favorite-author-btn:hover{background:#fbf4ef}
.hmc-favorite-active{color:#b65d72;border-color:#dfb6c1;background:#fff7f9}
.hmc-enter-help{margin-top:6px}
.hmc-guide-box h4{margin:16px 0 5px}
.hmc-guide-box p{margin:5px 0;line-height:1.7}
.hmc-related-section{margin-top:34px;padding-top:24px;border-top:1px solid #eee5dd}
.hmc-related-section>h3{margin:0 0 14px}
.hmc-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hmc-related-card{display:block;text-decoration:none;color:#2f2a26;border:1px solid #e7ded7;border-radius:10px;background:#fff;overflow:hidden}
.hmc-related-card img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.hmc-related-card strong,.hmc-related-cat{display:block;padding-left:10px;padding-right:10px}
.hmc-related-cat{font-size:.78em;color:#987965;padding-top:9px}
.hmc-related-card strong{padding-top:3px;padding-bottom:10px;line-height:1.45}
@media(max-width:900px){.hmc-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.hmc-nav-actions{flex-wrap:wrap;justify-content:flex-end}.hmc-first-link{font-size:.85em}.hmc-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 2.5.1 初めての方へ：視認性改善 */
.hmc-guide-box{max-width:680px;padding:0!important;overflow:hidden;background:#fff}
.hmc-guide-title{padding:24px 28px 18px;background:#fff8f2;border-bottom:1px solid #ead9cc}
.hmc-guide-title h3{margin:0 0 6px;font-size:1.35rem;color:#2d2926}
.hmc-guide-title p{margin:0;color:#806f63;font-size:.9rem}
.hmc-guide-sections{padding:22px 28px;display:grid;gap:14px}
.hmc-guide-sections section{padding:14px 16px;border:1px solid #ece3dc;border-left:4px solid #c99d7d;border-radius:7px;background:#fffdfb}
.hmc-guide-sections h4{margin:0 0 7px;color:#3b332e;font-size:1rem}
.hmc-guide-sections p{margin:0;line-height:1.75;color:#555}
.hmc-guide-close-note{padding:12px 28px;background:#f5f5f5;border-top:1px solid #e4e4e4;text-align:center;color:#777;font-size:.82rem}

/* 2.6.0 ranking / community / external links */
.hmc-social-fields{margin-top:18px;padding-top:14px;border-top:1px solid #eee}.hmc-social-fields h4{margin:0 0 10px}.hmc-social-fields h4 span{font-weight:400;color:#888}.hmc-url-input{display:flex;align-items:center;border:1px solid #d8d0ca;border-radius:7px;overflow:hidden;margin:5px 0 10px}.hmc-url-input span{padding:9px;background:#f6f3f0;color:#74685f}.hmc-url-input input{border:0!important;border-radius:0!important;margin:0!important}.hmc-rank-tabs,.hmc-rank-types,.hmc-rank-category{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.hmc-rank-tabs a,.hmc-rank-types a,.hmc-rank-category a{padding:8px 12px;border:1px solid #ded5ce;border-radius:999px;text-decoration:none;color:#51463e;background:#fff}.hmc-rank-tabs a.active,.hmc-rank-types a.active{background:#4f453e;color:#fff}.hmc-ranking-list{display:grid;gap:10px;margin-top:18px}.hmc-ranking-item{display:grid;grid-template-columns:44px 90px 1fr;gap:12px;align-items:center;border:1px solid #e9e0d9;border-radius:10px;padding:10px;text-decoration:none;color:inherit}.hmc-ranking-item>b{font-size:1.4rem;text-align:center}.hmc-ranking-item img{width:90px;height:90px;object-fit:cover;border-radius:8px}.hmc-ranking-item strong,.hmc-ranking-item span,.hmc-ranking-item small{display:block}.hmc-community-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px}.hmc-thread-card{display:block;border:1px solid #e8dfd8;border-radius:9px;padding:12px;margin:9px 0;text-decoration:none;color:inherit}.hmc-thread-card span{font-size:.8em;color:#94755f}.hmc-thread-card strong,.hmc-thread-card small{display:block;margin-top:4px}.hmc-community-form input,.hmc-community-form textarea,.hmc-community-form select{width:100%;margin:7px 0;padding:9px;border:1px solid #d8d0ca;border-radius:7px}.hmc-thread-main,.hmc-reply{border:1px solid #e8dfd8;border-radius:10px;padding:16px;margin:12px 0;background:#fff}.hmc-thread-main>span{font-size:.85em;color:#987965}.hmc-reply p{line-height:1.75}.hmc-inline-form{display:inline;margin-left:8px}.hmc-inline-form button{border:1px solid #d8cec6;background:#fff;border-radius:999px;padding:4px 9px;cursor:pointer}@media(max-width:760px){.hmc-community-grid{grid-template-columns:1fr}.hmc-ranking-item{grid-template-columns:34px 72px 1fr}.hmc-ranking-item img{width:72px;height:72px}}

.hmc-achievements{display:flex;gap:8px;flex-wrap:wrap}.hmc-achievements span{background:#faf6f2;border:1px solid #e8ddd5;border-radius:8px;padding:8px 10px}.hmc-author-links{display:flex;gap:5px;flex-wrap:wrap}.hmc-author-links a{font-size:.78em;border:1px solid #ddd3ca;border-radius:999px;padding:4px 7px;text-decoration:none;color:#6b5d53}

/* 2.6.1 ranking / community refinements */
.hmc-page-guide{margin:8px 0 0;padding:10px 14px;border-left:4px solid #c99a78;background:#fff8f2;color:#66584e;line-height:1.75;border-radius:0 8px 8px 0}.hmc-rank-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.hmc-rank-filters label{display:block}.hmc-rank-filters label>span{display:block;font-size:.86em;font-weight:700;margin:0 0 5px;color:#65584e}.hmc-rank-filters select{width:100%;padding:10px 36px 10px 12px;border:1px solid #ded5ce;border-radius:9px;background:#fff;color:#51463e}.hmc-ranking-item{grid-template-columns:minmax(0,1.25fr) minmax(220px,.75fr);gap:0;padding:0;overflow:hidden}.hmc-ranking-main{display:grid;grid-template-columns:44px 90px minmax(0,1fr);gap:12px;align-items:center;padding:10px 16px}.hmc-ranking-main>b{font-size:1.4rem;text-align:center}.hmc-ranking-main img{width:90px;height:90px;object-fit:cover;border-radius:8px}.hmc-ranking-meta strong,.hmc-ranking-meta span,.hmc-ranking-meta small{display:block}.hmc-ranking-pr{align-self:stretch;border-left:1px solid #e4d8cf;padding:14px 18px;background:#fffaf6}.hmc-ranking-pr>span{font-size:.78em;font-weight:700;color:#a06f50}.hmc-ranking-pr p{margin:6px 0 0;line-height:1.65;color:#5d5148;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.hmc-thread-owner-actions{display:flex;gap:10px;align-items:flex-start;margin-top:15px;padding-top:12px;border-top:1px solid #eee}.hmc-thread-owner-actions details{flex:1}.hmc-thread-owner-actions summary{cursor:pointer;font-weight:700;color:#65564b}.hmc-thread-delete{border:1px solid #d7aaa0;background:#fff5f3;color:#a44536;border-radius:7px;padding:8px 13px;cursor:pointer}.hmc-warning-panel{background:#fff7e7;border-color:#efd39b;color:#765b27}@media(max-width:760px){.hmc-rank-filters{grid-template-columns:1fr}.hmc-ranking-item{grid-template-columns:1fr}.hmc-ranking-main{grid-template-columns:34px 72px minmax(0,1fr)}.hmc-ranking-main img{width:72px;height:72px}.hmc-ranking-pr{border-left:0;border-top:1px solid #e4d8cf}.hmc-thread-owner-actions{display:block}.hmc-thread-owner-actions form{margin-top:10px}}

/* 2.6.2 usability / public author page */
.hmc-guide-box{width:min(1360px,92vw);max-width:1360px}
.hmc-guide-sections{gap:20px;padding:30px 36px}
.hmc-guide-sections section{padding:20px 22px}
.hmc-guide-sections h4{font-size:1.08rem;margin-bottom:10px}
.hmc-guide-sub{padding:12px 0;border-top:1px solid #eee2d9}
.hmc-guide-sub:first-of-type{border-top:0;padding-top:2px}
.hmc-guide-sub h5{margin:0 0 6px;font-size:.96rem;color:#5f493b}
.hmc-guide-rules{background:#fff8ee!important;border-color:#ead6bc!important}
.hmc-nav-brand>a{text-decoration:none;color:inherit;display:inline-block}
.hmc-nav-brand>a:hover h2{text-decoration:underline;text-underline-offset:4px}
.hmc-mypage-link{background:#f6eee7!important;border-color:#d9c7b9!important}
.hmc-mypage-link:hover{background:#efe1d5!important}
.hmc-page-guide{border-left:0;padding:12px 16px;border-radius:8px}
.hmc-ranking-item{grid-template-columns:minmax(0,.9fr) minmax(300px,1.1fr)}
.hmc-ranking-pr>span{font-size:.82em;letter-spacing:.03em}
.hmc-ranking-pr p{-webkit-line-clamp:6}
.hmc-author-name-link{color:inherit;text-decoration:none}
.hmc-author-name-link:hover{text-decoration:underline;text-underline-offset:3px}
.hmc-public-author-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:start}
.hmc-public-author-profile{display:flex;gap:20px;align-items:flex-start}
.hmc-public-author-profile h2{margin:4px 0 10px}
.hmc-public-author-profile p{margin:0;line-height:1.8;white-space:normal}
.hmc-public-social{min-width:180px;padding-left:22px;border-left:1px solid #eadfd6}
.hmc-public-social h3{margin-top:0}
.hmc-public-social a{display:block;margin:8px 0}
@media(max-width:760px){.hmc-guide-box{width:94vw}.hmc-guide-sections{padding:20px}.hmc-ranking-item{grid-template-columns:1fr}.hmc-public-author-head{grid-template-columns:1fr}.hmc-public-social{padding-left:0;border-left:0;border-top:1px solid #eadfd6;padding-top:14px}.hmc-public-author-profile{display:block}.hmc-public-author-profile .hmc-avatar{margin-bottom:12px}}

/* 2.6.3 refinements */
.hmc-guide-box{max-height:83vh;overflow-y:auto}
.hmc-guide-sections{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.hmc-guide-usage,.hmc-guide-rules{grid-column:1/-1}
.hmc-guide-sub p+p{margin-top:9px}
.hmc-guide-rules ul,.hmc-community-guide ul{margin:8px 0 0;padding-left:1.3em;display:grid;gap:7px;line-height:1.65}
.hmc-community-guide p{margin:0 0 10px}
.hmc-profile-card>.hmc-avatar{border:1.5px solid #222}
.hmc-request-disabled{background:#eee;color:#999;cursor:not-allowed;opacity:.85}
.hmc-profile-action-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.hmc-card-author-row>.hmc-avatar{flex:0 0 auto;border:1px solid #d8d0c9}
.hmc-material-detail-row{grid-template-columns:72px minmax(140px,1fr) 120px minmax(170px,auto)}
.hmc-material-shop-links{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.hmc-shop-btn{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #d8cec6;border-radius:7px;background:#fff;text-decoration:none!important;color:#4d433c!important;font-size:.86em;white-space:nowrap}
.hmc-shop-btn:hover{background:#f8f4f0}
@media(max-width:760px){.hmc-guide-sections{grid-template-columns:1fr}.hmc-guide-usage,.hmc-guide-rules{grid-column:auto}.hmc-material-detail-row{grid-template-columns:60px 1fr}.hmc-material-shop-links{grid-column:2;justify-content:flex-start}}


/* 2.6.4 UI refinements */
.hmc-card-author-row{display:flex;align-items:center;justify-content:flex-start;gap:7px}.hmc-card-author-row p{margin:0}.hmc-card-avatar-link{display:inline-flex;flex:0 0 auto;text-decoration:none}.hmc-card-avatar-link .hmc-avatar{margin:0}.hmc-author-name-link{text-decoration:none!important}.hmc-author-name-link:hover{color:#4f76b9;text-decoration:none!important}.hmc-nav-brand>a:hover h2{text-decoration:none!important;color:#4f76b9}
.hmc-guide-sections{align-items:stretch}.hmc-guide-sections>section:nth-child(1),.hmc-guide-sections>section:nth-child(2){min-height:225px}
.hmc-community-guide{margin-bottom:36px!important}.hmc-page-title+.hmc-community-layout,.hmc-page-title+.hmc-community-content{margin-top:34px}
.hmc-profile-action-row{display:grid;grid-template-columns:1fr;gap:9px;width:100%}.hmc-profile-action-row .hmc-btn{width:100%;text-align:center;justify-content:center}
.hmc-material-table-head{grid-template-columns:58px minmax(0,2fr) minmax(140px,1fr);padding-right:38px}.hmc-material-table-head:before{content:""}.hmc-material-row{grid-template-columns:58px minmax(0,2fr) minmax(120px,1fr) 30px;gap:9px;align-items:center}.hmc-material-image-slot{width:58px;height:58px;border:1px solid #eee6df;border-radius:7px;background:#fbfaf9;display:flex;align-items:center;justify-content:center;overflow:hidden}.hmc-material-affiliate{margin:0}.hmc-material-affiliate img{width:56px;height:56px;object-fit:contain}.hmc-material-detail-row{grid-template-columns:72px minmax(160px,1fr) 72px minmax(170px,auto);gap:8px}.hmc-material-detail-qty{text-align:left}.hmc-shop-rakuten{background:#f4d9d6!important;border-color:#d9aaa5!important;color:#753d38!important}.hmc-shop-amazon{background:#dbe8f4!important;border-color:#abc3d9!important;color:#355d7d!important}
.hmc-banner-item{position:relative}.hmc-banner-copy{position:absolute;left:18px;bottom:16px;max-width:78%;padding:10px 14px;border-radius:9px;background:rgba(255,255,255,.88);backdrop-filter:blur(3px);color:#2f2a26}.hmc-banner-copy strong,.hmc-banner-copy small{display:block}.hmc-banner-copy strong{font-size:1.05rem}.hmc-banner-copy small{margin-top:3px;color:#675c54}
@media(max-width:620px){.hmc-global-nav{position:static!important;display:block!important;padding:10px 0 12px}.hmc-nav-brand{width:100%;min-width:0}.hmc-nav-brand h2,.hmc-nav-brand p{writing-mode:horizontal-tb!important;word-break:keep-all;overflow-wrap:normal;white-space:normal}.hmc-nav-brand h2{font-size:1.08rem;line-height:1.35}.hmc-nav-brand p{font-size:.8rem;margin-top:3px}.hmc-nav-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;width:100%}.hmc-first-link,.hmc-home-link,.hmc-mypage-link{flex:0 0 auto;padding:7px 10px;font-size:.84rem}.hmc-home-link span{display:inline}.hmc-material-row{grid-template-columns:52px minmax(0,1fr) 30px}.hmc-material-row>div:nth-of-type(3){grid-column:2}.hmc-material-image-slot{width:52px;height:52px}.hmc-material-affiliate img{width:50px;height:50px}.hmc-material-detail-row{grid-template-columns:56px minmax(0,1fr);gap:8px}.hmc-material-detail-qty,.hmc-material-shop-links{grid-column:2}.hmc-guide-sections>section:nth-child(1),.hmc-guide-sections>section:nth-child(2){min-height:0}}

/* 2.6.5 banner styles + withdrawal */
.hmc-banner-style-center .hmc-banner-copy{left:50%;bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(82%,620px);max-width:none;text-align:center;padding:16px 22px;background:rgba(255,255,255,.66)}
.hmc-banner-style-center .hmc-banner-copy strong{font-size:clamp(1.35rem,3vw,2.25rem);line-height:1.25}.hmc-banner-style-center .hmc-banner-copy small{font-size:clamp(.85rem,1.5vw,1.05rem);margin-top:7px}
.hmc-banner-style-bottom_left .hmc-banner-copy{left:18px;bottom:16px;top:auto;transform:none;text-align:left}
.hmc-banner-style-top_left .hmc-banner-copy{left:0;top:18px;bottom:auto;transform:none;border-radius:0 9px 9px 0;padding:11px 20px;background:rgba(255,255,255,.9);border-left:4px solid #cfa58b}
.hmc-withdraw-panel{margin-top:22px;border-color:#ead9d2}.hmc-withdraw-panel h3{margin-top:0}.hmc-withdraw-open{border:1px solid #b99d91;background:#fff;color:#6b4c41;border-radius:7px;padding:9px 16px;cursor:pointer}.hmc-withdraw-confirm{border:0;background:#7b3f3f;color:#fff;border-radius:7px;padding:10px 16px;cursor:pointer}.hmc-withdraw-box ul{line-height:1.8;padding-left:1.4em}.hmc-guide-withdraw{background:#fffaf7}.hmc-guide-withdraw .hmc-btn{display:inline-block;margin-top:6px;text-decoration:none}
@media(max-width:620px){.hmc-banner-style-center .hmc-banner-copy{width:78%;padding:11px 14px}.hmc-banner-style-center .hmc-banner-copy strong{font-size:1.15rem}.hmc-banner-style-center .hmc-banner-copy small{font-size:.78rem}}


/* ===== 2.6.7 作品画像・工程画像・作者リンク ===== */
.hmc-post-image-editor{
  display:grid;
  grid-template-columns:minmax(300px,2fr) minmax(150px,1fr) minmax(150px,1fr);
  grid-template-areas:
    "main sub2 sub3"
    "main sub4 sub5";
  gap:14px;
  align-items:start;
  margin:12px 0 22px;
}
.hmc-post-image-slot{min-width:0}
.hmc-post-image-slot[data-slot="1"]{grid-area:main}
.hmc-post-image-slot[data-slot="2"]{grid-area:sub2}
.hmc-post-image-slot[data-slot="3"]{grid-area:sub3}
.hmc-post-image-slot[data-slot="4"]{grid-area:sub4}
.hmc-post-image-slot[data-slot="5"]{grid-area:sub5}
.hmc-post-image-frame{
  width:150px;height:150px;border:1px solid #222;background:#fafafa;
  overflow:hidden;display:flex;align-items:center;justify-content:center;margin:5px 0 7px;
}
.hmc-post-image-slot-main .hmc-post-image-frame{width:300px;height:300px}
.hmc-post-image-preview{width:100%;height:100%;object-fit:cover;display:block}
.hmc-post-image-remove{font-size:.82em;font-weight:400!important;display:block;margin:5px 0 0!important}
.hmc-post-image-slot input[type=file]{max-width:100%}

.hmc-work-image-gallery{
  display:grid;grid-template-columns:2fr 1fr;gap:14px;align-items:start;margin:10px 0 20px;
}
.hmc-work-image-main{width:min(100%,600px);aspect-ratio:1/1;border:1px solid #222;overflow:hidden;background:#fafafa}
.hmc-work-image-main img{width:100%;height:100%;object-fit:cover;display:block}
.hmc-work-image-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hmc-work-thumb{
  border:1px solid #222;background:#fff;padding:0;cursor:pointer;aspect-ratio:1/1;overflow:hidden;border-radius:3px
}
.hmc-work-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hmc-work-thumb.is-active{outline:2px solid #8c6b58;outline-offset:2px}
.hmc-avatar-author-link{display:inline-flex;text-decoration:none;flex:0 0 auto}

.hmc-step-detail{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  align-items:start;
}
.hmc-step-detail-item{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:12px;
  padding:16px;
  border:1px solid #eee7e1;
  border-radius:10px;
  align-items:start;
}
.hmc-step-detail-item img{
  width:300px;height:300px;max-width:100%;
  object-fit:cover;border:1px solid #222;border-radius:6px;
  margin:0 0 18px;
}
.hmc-step-detail-item p{margin:0;line-height:1.8}
.hmc-step-image-preview{
  width:300px;height:300px;max-width:100%;
  object-fit:cover;border:1px solid #222;border-radius:6px;
  margin:10px 0 16px;
}
.hmc-step-content textarea{margin-top:10px}
.hmc-post-form-panel input[type=file]{padding:5px 0}

@media(max-width:760px){
  .hmc-post-image-editor{
    grid-template-columns:1fr 1fr;
    grid-template-areas:"main main" "sub2 sub3" "sub4 sub5";
  }
  .hmc-post-image-slot-main .hmc-post-image-frame{width:min(100%,300px);height:auto;aspect-ratio:1/1}
  .hmc-post-image-frame{width:100%;height:auto;aspect-ratio:1/1}
  .hmc-work-image-gallery{grid-template-columns:1fr}
  .hmc-work-image-main{width:100%;max-width:520px}
  .hmc-work-image-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hmc-step-detail{grid-template-columns:1fr}
}

/* ===== 2.6.7 レイアウト補正 ===== */
.hmc-work-image-gallery{
  grid-template-columns:300px 300px;
  gap:16px;
  justify-content:start;
}
.hmc-work-image-main{width:300px;height:300px;aspect-ratio:auto}
.hmc-work-image-thumbs{grid-template-columns:repeat(2,150px);grid-auto-rows:150px;gap:0}
.hmc-work-thumb{width:150px;height:150px;aspect-ratio:auto;border-radius:0}
#hmc-step-rows{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.hmc-step-row{
  margin-bottom:0;
  border:1px solid #eee7e1;
  border-radius:10px;
  padding:12px;
}
@media(max-width:760px){
  .hmc-work-image-gallery{grid-template-columns:1fr;gap:12px}
  .hmc-work-image-main{width:min(100%,300px);height:auto;aspect-ratio:1/1}
  .hmc-work-image-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto}
  .hmc-work-thumb{width:100%;height:auto;aspect-ratio:1/1}
  #hmc-step-rows{grid-template-columns:1fr}
}

/* ===== 2.6.8 画像枠・作品画像配置調整 ===== */
.hmc-post-image-frame,
.hmc-work-image-main,
.hmc-work-thumb,
.hmc-step-detail-item img,
.hmc-step-image-preview{
  border-color:#454545;
}
.hmc-work-image-main,
.hmc-work-thumb{
  border-radius:6px;
}
.hmc-work-image-main img,
.hmc-work-thumb img{
  border-radius:5px;
}
.hmc-post-image-slot-main .hmc-post-image-frame{
  margin-left:auto;
  margin-right:auto;
}


/* ===== 2.6.9 作品画像500px化・中央バランス調整 ===== */
.hmc-post-image-editor{
  width:min(100%,880px);
  margin:18px auto 30px;
  grid-template-columns:minmax(500px,1fr) 150px 150px;
  column-gap:20px;
  row-gap:22px;
  justify-content:center;
  align-items:start;
}
.hmc-post-image-slot-main{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hmc-post-image-slot-main>label,
.hmc-post-image-slot-main>.hmc-post-image-remove{
  align-self:flex-start;
  width:500px;
  max-width:100%;
}
.hmc-post-image-slot-main .hmc-post-image-frame{
  width:500px;
  height:500px;
  max-width:100%;
  margin:5px auto 9px;
}
.hmc-post-image-frame{
  border-radius:6px;
}
.hmc-post-image-preview{
  border-radius:5px;
}

.hmc-work-image-gallery{
  width:min(100%,840px);
  margin:18px auto 28px;
  grid-template-columns:500px 320px;
  gap:20px;
  justify-content:center;
  align-items:start;
}
.hmc-work-image-main{
  width:500px;
  height:500px;
  max-width:100%;
}
.hmc-work-image-thumbs{
  grid-template-columns:repeat(2,150px);
  grid-auto-rows:150px;
  gap:20px;
  align-content:start;
}
.hmc-work-thumb{
  width:150px;
  height:150px;
}

.hmc-step-detail-item img,
.hmc-step-image-preview{
  width:500px;
  height:500px;
}
.hmc-step-detail-item img{
  margin-bottom:22px;
}
.hmc-step-image-preview{
  margin:12px 0 20px;
}

@media(max-width:920px){
  .hmc-post-image-editor{
    width:min(100%,700px);
    grid-template-columns:1fr 1fr;
    grid-template-areas:"main main" "sub2 sub3" "sub4 sub5";
    gap:18px;
  }
  .hmc-post-image-slot-main .hmc-post-image-frame{
    width:min(100%,500px);
    height:auto;
    aspect-ratio:1/1;
  }
  .hmc-post-image-slot:not(.hmc-post-image-slot-main){
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .hmc-work-image-gallery{
    width:min(100%,500px);
    grid-template-columns:1fr;
    gap:18px;
  }
  .hmc-work-image-main{
    width:min(100%,500px);
    height:auto;
    aspect-ratio:1/1;
  }
  .hmc-work-image-thumbs{
    width:100%;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-auto-rows:auto;
    gap:12px;
  }
  .hmc-work-thumb{
    width:100%;
    height:auto;
    aspect-ratio:1/1;
  }
}

@media(max-width:620px){
  .hmc-post-image-editor{
    width:100%;
    grid-template-columns:1fr 1fr;
    gap:14px;
  }
  .hmc-post-image-slot-main>label,
  .hmc-post-image-slot-main>.hmc-post-image-remove{
    width:min(100%,500px);
  }
  .hmc-work-image-thumbs{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .hmc-step-detail-item img,
  .hmc-step-image-preview{
    width:100%;
    height:auto;
    aspect-ratio:1/1;
  }
}

/* 2.6.10 作り方：番号＋説明を上段、画像を下段へ */
.hmc-step-detail-item{
  display:block;
}
.hmc-step-detail-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}
.hmc-step-detail-head .hmc-step-number{
  flex:0 0 38px;
}
.hmc-step-detail-head p{
  flex:1;
  margin:0;
  line-height:1.8;
  padding-top:2px;
}
.hmc-step-detail-item > img{
  display:block;
  margin:0 auto;
}

/* 2.6.11 作り方：説明を必ず画像の上に配置 */
.hmc-detail .hmc-step-detail .hmc-step-detail-item{
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.hmc-detail .hmc-step-detail .hmc-step-detail-head{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:start;
  width:100%;
  gap:12px;
  margin:0 0 16px;
}
.hmc-detail .hmc-step-detail .hmc-step-detail-head p{
  width:100%;
  min-width:0;
  margin:0;
  line-height:1.8;
  writing-mode:horizontal-tb;
  word-break:normal;
  overflow-wrap:anywhere;
}
.hmc-detail .hmc-step-detail .hmc-step-detail-item > img{
  display:block;
  width:min(100%,500px);
  height:auto;
  aspect-ratio:1/1;
  object-fit:cover;
  align-self:center;
  margin:0 auto;
}


/* 2.8.0 作品カテゴリと検索タグ */
.hmc-work-tags-editor{margin:18px 0 24px}
.hmc-tag-fieldset{border:1px solid #e4ddd6;border-radius:10px;padding:12px 14px;margin:12px 0;background:#fff}
.hmc-tag-fieldset legend{padding:0 8px;font-weight:700;color:#454545}
.hmc-tag-checks{display:flex;flex-wrap:wrap;gap:8px}
.hmc-tag-option{display:inline-flex;align-items:center;gap:5px;margin:0;padding:7px 10px;border:1px solid #ddd4cc;border-radius:999px;background:#faf8f6;cursor:pointer}
.hmc-tag-option input{margin:0}
.hmc-tag-sidebar{margin-top:22px;padding-top:18px;border-top:1px solid #e5ddd6}
.hmc-tag-sidebar>h3{margin:0 0 12px}
.hmc-tag-filter-group{margin:0 0 16px}
.hmc-tag-filter-group>strong{display:block;margin:0 0 7px;font-size:.92em}
.hmc-tag-filter{display:flex;width:100%;justify-content:space-between;gap:8px;border:0;background:transparent;padding:6px 8px;text-align:left;cursor:pointer;border-radius:6px}
.hmc-tag-filter:hover,.hmc-tag-filter.hmc-tag-active{background:#f1e9e2}
.hmc-tag-filter small{opacity:.65}
.hmc-detail-tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0 24px;padding:0;border:1px solid #e5ddd6;border-radius:10px;background:#faf8f6;overflow:hidden}
.hmc-detail-tags>div{display:block;min-width:0;margin:0;padding:18px 22px}
.hmc-detail-tags>div+div{border-left:1px solid #e5ddd6}
.hmc-detail-tags>div>strong{display:block;margin:0 0 12px}
.hmc-detail-tags>div>span{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.hmc-detail-tags a{display:inline-block;padding:5px 9px;border-radius:999px;background:#fff;border:1px solid #ddd4cc;text-decoration:none;color:inherit;max-width:100%;box-sizing:border-box}
@media(max-width:700px){
 .hmc-detail-tags{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hmc-detail-tags>div{padding:14px 10px}
}

/* 2.9.0 point / work promotion */
.hmc-request-disabled{opacity:.48;cursor:not-allowed}.hmc-promotion-btn{display:block;margin:5px auto 12px;background:#f2e8df;color:#624b3d}.hmc-promotion-strip{margin:0 0 18px;border:1px solid #e3d6cc;border-radius:12px;background:#fffaf6;overflow:hidden}.hmc-promotion-label{padding:7px 12px;font-size:.82em;font-weight:700;color:#8b6753;border-bottom:1px solid #eee1d8}.hmc-promotion-work{display:flex;align-items:center;gap:16px;padding:10px 14px;text-decoration:none;color:inherit}.hmc-promotion-work img{width:150px;height:150px;object-fit:cover;border-radius:9px;flex:0 0 150px}.hmc-promotion-work div{min-width:0}.hmc-promotion-work strong,.hmc-promotion-work span{display:block}.hmc-promotion-work strong{font-size:1.05em;margin-bottom:4px}.hmc-promotion-work span{font-size:.88em;color:#76685e;margin-bottom:7px}.hmc-promotion-work p{margin:0;line-height:1.65;color:#554b44;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hmc-promotion-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:58vh;overflow:auto}.hmc-promotion-choice{border:1px solid #e6ddd5;border-radius:10px;padding:10px}.hmc-promotion-choice img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:7px;margin-bottom:7px}.hmc-promotion-choice strong{display:block;margin-bottom:8px}.hmc-promotion-choice .hmc-btn{width:100%}
@media(max-width:620px){.hmc-promotion-work{align-items:flex-start}.hmc-promotion-work img{width:150px;height:150px;min-width:150px;max-width:150px;flex:0 0 150px}.hmc-promotion-picker{grid-template-columns:1fr}}

/* 2.9.1: 常設作品PRエリア */
.hmc-promotion-label{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hmc-promotion-help{border:0;background:transparent;color:#765c4c;text-decoration:underline;cursor:pointer;font-size:.92em;padding:2px 0}
.hmc-promotion-empty{display:flex;align-items:center;gap:18px;padding:14px}
.hmc-promotion-default-image{display:block;width:150px;height:150px;min-width:150px;max-width:150px;min-height:150px;max-height:150px;flex:0 0 150px;object-fit:cover;border-radius:9px}.hmc-promotion-empty-copy{min-width:0;flex:1 1 auto}
.hmc-promotion-empty strong{display:block;font-size:1.08em;margin-bottom:7px}.hmc-promotion-empty p{margin:0 0 10px;line-height:1.7}
.hmc-promotion-note{display:block;margin-top:9px;color:#806f63;line-height:1.55}
.hmc-promotion-info-box{max-width:620px}.hmc-promotion-info-box ol{padding-left:1.5em;line-height:1.9}
@media(max-width:620px){.hmc-promotion-empty{align-items:flex-start;flex-wrap:nowrap;gap:12px}.hmc-promotion-label{align-items:flex-start;flex-direction:column;gap:4px}}

/* 2.10.0 campaign */
.hmc-campaign-line{display:flex;align-items:center;gap:10px;margin:-8px 0 18px;padding:8px 12px;border:1px solid #ead8c9;border-radius:9px;background:#fff8f1;font-size:.9em}.hmc-campaign-line strong{white-space:nowrap;color:#8b5d3d}.hmc-campaign-line span{font-weight:700}.hmc-campaign-line small{margin-left:auto;color:#806f63;white-space:nowrap}@media(max-width:620px){.hmc-campaign-line{flex-wrap:wrap;gap:4px 8px}.hmc-campaign-line small{width:100%;margin-left:0}}
.hmc-point-history-list{display:grid;gap:7px}.hmc-point-history-row{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:7px 0;border-bottom:1px solid #eee6df}.hmc-point-history-row small{grid-column:1/-1;color:#81766f}.hmc-point-history-row span{min-width:0}.hmc-point-history-row strong{white-space:nowrap}

/* 色タグ：通常色は直感的なカラーチップで選択 */
.hmc-color-fieldset .hmc-tag-checks{align-items:center}
.hmc-color-option{width:38px;height:38px;padding:0;justify-content:center;position:relative;border-radius:50%;background:#fff}
.hmc-color-option input{position:absolute;opacity:0;pointer-events:none}
.hmc-color-dot{display:block;width:24px;height:24px;border-radius:50%;background:var(--hmc-color);border:1px solid rgba(0,0,0,.18);box-sizing:border-box}
.hmc-color-option:has(input:checked){border:2px solid #5f554d;box-shadow:0 0 0 2px #fff,0 0 0 4px #b8aaa0}
.hmc-color-text-option{width:auto;height:38px;padding:0 12px;border-radius:999px}
.hmc-color-text-option span{font-size:13px;white-space:nowrap}

/* 2.11.7 work sharing */
.hmc-work-author-social{display:flex;align-items:center;gap:6px;margin-left:2px}.hmc-author-social-icon{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;border:1px solid #d8cec6;border-radius:50%;background:#fff;color:#302a26!important;text-decoration:none;font-weight:800;font-size:.82rem}.hmc-author-social-icon:hover{background:#f8f3ef}.hmc-author-social-instagram{font-size:1.15rem}.hmc-share-box{margin:0 0 20px;padding:14px 16px;border:1px solid #e6ddd5;border-radius:10px;background:#fbf8f5}.hmc-share-box>strong{display:block;margin-bottom:10px}.hmc-share-actions{display:flex;gap:8px;flex-wrap:wrap}.hmc-share-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid #d8cec6;border-radius:999px;background:#fff;color:#302a26!important;text-decoration:none;font:inherit;font-weight:700;cursor:pointer}.hmc-share-btn:hover{background:#f4eee9}.hmc-share-x{background:#242424;color:#fff!important;border-color:#242424}.hmc-share-status{min-height:1.4em;margin:8px 0 0;color:#6f655e;font-size:.88em}@media(max-width:620px){.hmc-share-actions{display:grid;grid-template-columns:1fr}.hmc-share-btn{width:100%}}

/* ===== 2.11.9 作品画像トリミングUI ===== */
.hmc-crop-modal{display:none;position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.68);padding:24px;overflow:auto}
.hmc-crop-modal.hmc-crop-show{display:flex;align-items:center;justify-content:center}
.hmc-crop-dialog{width:min(100%,620px);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:12px;padding:22px;box-sizing:border-box}
.hmc-crop-dialog h3{margin-top:0}
#hmc-crop-canvas{display:block;width:min(100%,500px);height:auto;aspect-ratio:1/1;margin:14px auto;background:#f3f3f3;border:1px solid #454545}
.hmc-crop-control{display:grid;grid-template-columns:90px 1fr;gap:12px;align-items:center;margin:12px 0}
.hmc-crop-control input[type=range]{width:100%}
.hmc-crop-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
@media(max-width:600px){.hmc-crop-modal{padding:10px}.hmc-crop-dialog{padding:16px}.hmc-crop-control{grid-template-columns:1fr;gap:4px}}

/* ===== 2.11.10 narrow-area navigation ===== */
.hmc-wrap{container-type:inline-size}
@container (max-width:700px){
  .hmc-global-nav{
    position:static;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    align-items:start;
    padding:10px 0 12px;
  }
  .hmc-nav-brand{
    width:100%;
    min-width:0;
  }
  .hmc-nav-brand h2,
  .hmc-nav-brand p{
    writing-mode:horizontal-tb;
    word-break:keep-all;
    overflow-wrap:normal;
    white-space:normal;
  }
  .hmc-nav-brand h2{
    font-size:1.08rem;
    line-height:1.35;
  }
  .hmc-nav-brand p{
    margin-top:3px;
    font-size:.8rem;
  }
  .hmc-nav-actions{
    display:flex;
    width:100%;
    min-width:0;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:6px;
  }
  .hmc-first-link,
  .hmc-home-link,
  .hmc-mypage-link{
    flex:0 0 auto;
    max-width:100%;
    padding:7px 10px;
    font-size:.84rem;
    white-space:nowrap;
  }
  .hmc-home-link span{display:inline}
}

/* ===== 2.11.11 color chips + narrow post-form overflow fix ===== */
/* 色は選択円そのもの全体に表示する。 */
.hmc-color-option:not(.hmc-color-text-option){
  overflow:hidden;
  background:var(--hmc-color,#fff);
}
.hmc-color-option:not(.hmc-color-text-option) .hmc-color-dot{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:50%;
  background:var(--hmc-color,#fff);
}

/* 投稿フォームは親領域より広がらない。 */
.hmc-post-form-panel,
.hmc-post-form-panel>form,
.hmc-post-image-editor,
.hmc-post-image-slot,
.hmc-post-image-frame{
  min-width:0;
  max-width:100%;
}
.hmc-post-form-panel{overflow-x:clip}
.hmc-post-image-slot input[type=file]{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
}

/* viewport ではなく、実際に与えられたフォーム幅で画像欄を組み替える。 */
.hmc-post-form-panel{container-type:inline-size}
@container (max-width:760px){
  .hmc-post-image-editor{
    width:100%;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:"main main" "sub2 sub3" "sub4 sub5";
    gap:14px;
  }
  .hmc-post-image-slot-main .hmc-post-image-frame{
    width:min(100%,500px);
    height:auto;
    aspect-ratio:1/1;
  }
  .hmc-post-image-slot:not(.hmc-post-image-slot-main) .hmc-post-image-frame{
    width:100%;
    height:auto;
    aspect-ratio:1/1;
  }
}
@container (max-width:430px){
  .hmc-post-image-editor{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"main" "sub2" "sub3" "sub4" "sub5";
  }
  .hmc-post-image-slot-main,
  .hmc-post-image-slot:not(.hmc-post-image-slot-main){
    width:100%;
    align-items:stretch;
  }
  .hmc-post-image-slot-main>label,
  .hmc-post-image-slot-main>.hmc-post-image-remove{
    width:100%;
  }
}

/* ===== 2.11.12 container-width responsive overflow fix =====
   WordPress本文幅がviewportより狭い場合も、ツール自身の実幅で折り返す。 */
.hmc-wrap,
.hmc-wrap > *,
.hmc-explore-layout,
.hmc-works-area,
.hmc-grid,
.hmc-card,
.hmc-promotion-strip,
.hmc-promotion-work,
.hmc-promotion-work > div,
.hmc-promotion-empty,
.hmc-promotion-empty > div,
.hmc-campaign-line,
.hmc-top-search{
  min-width:0;
  max-width:100%;
}
.hmc-wrap img,
.hmc-wrap video,
.hmc-wrap canvas,
.hmc-wrap svg{
  max-width:100%;
}

@container (max-width:900px){
  .hmc-explore-layout{grid-template-columns:minmax(0,1fr)}
  .hmc-category-sidebar{position:static}
  .hmc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hmc-mypage-grid{grid-template-columns:minmax(0,1fr)}
  .hmc-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@container (max-width:620px){
  .hmc-grid,
  .hmc-gallery,
  .hmc-banners-2,
  .hmc-banners-3{grid-template-columns:minmax(0,1fr)}

  .hmc-promotion-work,
  .hmc-promotion-empty{align-items:flex-start}
  .hmc-promotion-work img{
    width:110px;
    height:110px;
    flex:0 0 110px;
  }
  .hmc-promotion-placeholder{
    width:150px;
    height:150px;
    min-width:150px;
    max-width:150px;
    min-height:150px;
    max-height:150px;
    flex:0 0 150px;
  }
  .hmc-promotion-label{align-items:flex-start;flex-direction:column;gap:4px}

  .hmc-campaign-line{flex-wrap:wrap;gap:4px 8px}
  .hmc-campaign-line strong,
  .hmc-campaign-line span,
  .hmc-campaign-line small{
    min-width:0;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .hmc-campaign-line small{width:100%;margin-left:0}
}

@container (max-width:430px){
  .hmc-promotion-work,
  .hmc-promotion-empty{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .hmc-promotion-work img{width:100%;height:auto;aspect-ratio:1/1;max-width:150px;justify-self:start}
  .hmc-promotion-placeholder{width:150px;height:150px;min-width:150px;max-width:150px;min-height:150px;max-height:150px;justify-self:start}
}

/* 2.11.17 材料補足・工程タイトル */
.hmc-material-note-label{display:block;margin-top:14px}.hmc-material-note{margin:12px 0 20px;padding:12px 14px;border-left:3px solid #d7cec6;background:#fbf8f5;line-height:1.8;white-space:normal}.hmc-step-title{margin:0 0 8px}.hmc-step-detail-copy{min-width:0}.hmc-step-detail-title{display:block;margin:0 0 5px;font-size:1rem}.hmc-step-detail-copy p{margin:0;line-height:1.8}

/* 2.11.18 empty step-image preview / public color tags */
.hmc-step-image-preview[hidden]{display:none}
.hmc-detail-tags a.hmc-detail-color-dot{display:inline-block;width:32px;height:32px;padding:0;border-radius:50%;border:1px solid #cfc5bd;background:var(--hmc-detail-color,#ccc);box-sizing:border-box}
.hmc-detail-tags a.hmc-detail-color-clear{background:linear-gradient(135deg,#fff 0 43%,#d8d8d8 43% 57%,#fff 57% 100%)}
.hmc-detail-tags a.hmc-detail-color-multi{background:conic-gradient(#e53935,#f4d03f,#43a047,#2962ff,#8e44ad,#e53935)}

/* ===== 2.11.22 UI refinement ===== */
/* 作り方本文は従来のおよそ2倍の縦幅 */
.hmc-step-content textarea{min-height:216px;resize:vertical}

/* マイページ・公開作者ページ共通の作品ギャラリー */
.hmc-gallery-item{overflow:hidden}
.hmc-gallery-work-link,.hmc-gallery-item>a{display:block;color:#302a26;text-decoration:none}
.hmc-gallery-work-link:hover,.hmc-gallery-item>a:hover{color:#302a26;text-decoration:none}
.hmc-gallery-title{display:-webkit-box;margin-top:16px;color:#302a26;line-height:1.5;text-decoration:none;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:4.5em;max-height:4.5em}
.hmc-mypage-gallery .hmc-gallery-title{padding:10px 12px;border-radius:7px;background:#f4eee9;min-height:calc(4.5em + 20px);max-height:calc(4.5em + 20px)}
.hmc-mypage-gallery .hmc-gallery-item>a:hover .hmc-gallery-title{color:#302a26;text-decoration:none;background:#eee5de}
.hmc-public-gallery .hmc-gallery-title{padding:0;background:none;border-radius:0}
.hmc-card-body h3{line-height:1.5;min-height:4.5em;max-height:4.5em;overflow:hidden}
.hmc-card-body h3 a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

/* window.alertを使わず、サイト内で完結する通知表示 */
.hmc-site-notice{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(40,34,30,.42)}
.hmc-site-notice-box{width:min(460px,100%);padding:22px;background:#fff;border:1px solid #e1d7cf;border-radius:14px;box-shadow:0 14px 38px rgba(0,0,0,.18)}
.hmc-site-notice-box p{margin:0 0 18px;line-height:1.75;white-space:pre-wrap;color:#302a26}
.hmc-site-notice-box .hmc-btn{display:block;margin-left:auto;min-width:76px}



/* ===== 2.11.24 compact share controls / TOP color filters ===== */
.hmc-authorbox .hmc-share-inline{margin:0 0 0 4px;padding:0;border:0;border-radius:0;background:transparent;display:flex;align-items:center;min-width:0}
.hmc-authorbox .hmc-share-inline .hmc-share-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.hmc-authorbox .hmc-share-inline .hmc-share-btn{min-height:30px;padding:5px 9px;font-size:.78rem;font-weight:600}
.hmc-authorbox .hmc-share-inline .hmc-share-status{margin:0 0 0 6px;min-height:0;font-size:.76rem}
.hmc-top-color-filter{justify-content:flex-start}
.hmc-top-color-dot{display:block;width:24px;height:24px;border-radius:50%;background:var(--hmc-top-color,#ccc);border:1px solid rgba(0,0,0,.18);box-sizing:border-box}
.hmc-top-color-clear{background:linear-gradient(135deg,#fff 0 43%,#d8d8d8 43% 57%,#fff 57% 100%)}
.hmc-top-color-multi{background:conic-gradient(#e53935,#f4d03f,#43a047,#2962ff,#8e44ad,#e53935)}
@media(max-width:620px){.hmc-authorbox .hmc-share-inline{width:100%;margin:6px 0 0}.hmc-authorbox .hmc-share-inline .hmc-share-actions{display:flex}.hmc-authorbox .hmc-share-inline .hmc-share-btn{width:auto}}


/* ===== 2.11.25 material row: all viewports use one consistent line ===== */
.hmc-material-detail-row{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 128px 270px;
  gap:10px;
  align-items:center;
}
.hmc-material-detail-image{width:64px;min-width:0}
.hmc-material-detail-image img{width:64px;height:64px;max-width:64px;max-height:64px;object-fit:contain}
.hmc-material-detail-name{min-width:0;overflow-wrap:anywhere}
.hmc-material-detail-qty{grid-column:auto;text-align:left;white-space:nowrap;min-width:0}
.hmc-material-shop-links{
  grid-column:auto;
  width:270px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  justify-content:stretch;
}
.hmc-material-shop-links:empty{visibility:hidden}
.hmc-material-shop-links .hmc-shop-btn{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:8px 5px;
  font-size:.78rem;
  line-height:1.2;
  white-space:nowrap;
  text-align:center;
}
.hmc-material-shop-links .hmc-shop-rakuten{background:#f4d9d6;border-color:#d9aaa5;color:#753d38}
.hmc-material-shop-links .hmc-shop-amazon{background:#dbe8f4;border-color:#abc3d9;color:#355d7d}
@media(max-width:620px){
  .hmc-material-detail-row{grid-template-columns:44px minmax(0,1fr) 84px 168px;gap:5px;padding:9px 0}
  .hmc-material-detail-image{width:44px}
  .hmc-material-detail-image img{width:44px;height:44px;max-width:44px;max-height:44px}
  .hmc-material-detail-name{font-size:.82rem}
  .hmc-material-detail-qty{font-size:.8rem}
  .hmc-material-shop-links{grid-column:auto;width:168px;gap:4px}
  .hmc-material-shop-links .hmc-shop-btn{padding:7px 2px;font-size:.62rem;letter-spacing:-.02em}
}
@media(max-width:390px){
  .hmc-material-detail-row{grid-template-columns:38px minmax(0,1fr) 76px 148px;gap:4px}
  .hmc-material-detail-image{width:38px}
  .hmc-material-detail-image img{width:38px;height:38px;max-width:38px;max-height:38px}
  .hmc-material-detail-name{font-size:.76rem}
  .hmc-material-detail-qty{font-size:.74rem}
  .hmc-material-shop-links{width:148px;gap:3px}
  .hmc-material-shop-links .hmc-shop-btn{padding:6px 1px;font-size:.56rem}
}

/* ===== 2.11.26 作品画像ドラッグ操作 ===== */
.hmc-post-image-editor{transition:background-color .15s,border-color .15s}
.hmc-post-image-editor.hmc-image-drop-active{background:#faf7f4;outline:2px dashed #b8a79a;outline-offset:6px;border-radius:10px}
.hmc-post-image-slot[draggable="true"] .hmc-post-image-frame{cursor:grab}
.hmc-post-image-slot.hmc-image-dragging{opacity:.45}
.hmc-post-image-slot.hmc-image-drag-over{outline:2px dashed #8e7868;outline-offset:5px;border-radius:8px}
.hmc-post-image-frame{position:relative}
.hmc-post-image-frame[hidden]{display:none}
.hmc-post-image-delete{position:absolute;top:7px;right:7px;width:30px;height:30px;padding:0;border:1px solid rgba(0,0,0,.18);border-radius:50%;background:rgba(255,255,255,.94);color:#302a26;font-size:20px;line-height:27px;text-align:center;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.hmc-post-image-delete:hover{background:#fff}
.hmc-material-table-head{padding-right:104px}.hmc-material-row{grid-template-columns:58px minmax(0,2fr) minmax(120px,1fr) 56px 30px}.hmc-material-order{display:flex;gap:2px;align-items:center}.hmc-material-order button{border:1px solid #d8cec6;background:#fff;border-radius:5px;width:26px;height:28px;padding:0;cursor:pointer;font-size:11px}.hmc-step-related-label{display:block;margin:12px 0 5px!important;font-size:.9em;font-weight:700}.hmc-step-related-label span{font-weight:400;color:#777}.hmc-step-related-page{width:100%;max-width:520px}.hmc-step-related-link{display:inline-block;margin-top:8px;font-size:.92em;text-decoration:none;border-bottom:1px solid currentColor}
@media(max-width:620px){.hmc-material-row{grid-template-columns:52px minmax(0,1fr) 56px 30px}.hmc-material-row>div:nth-of-type(3){grid-column:2}.hmc-material-order{grid-column:3;grid-row:1 / span 2}}

/* ===== 2.11.30 TOP 色タグを横並び表示 ===== */
.hmc-tag-filter-group:has(.hmc-top-color-filter){display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.hmc-tag-filter-group:has(.hmc-top-color-filter)>strong{flex:0 0 100%;margin-bottom:0}
.hmc-tag-filter-group .hmc-top-color-filter{display:inline-flex;width:auto;padding:0;background:transparent}
.hmc-tag-filter-group .hmc-top-color-filter:hover,
.hmc-tag-filter-group .hmc-top-color-filter.hmc-tag-active{background:transparent}

/* 2.11.32 関連ページ：全大分類から複数選択 */
.hmc-step-related-browser{margin-top:6px}.hmc-related-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:start}.hmc-related-category{border:1px solid #ded5ce;border-radius:7px;overflow:hidden;background:#fff}.hmc-related-category-head{width:100%;border:0;background:#f7f3f0;padding:10px 12px;display:flex;justify-content:space-between;gap:8px;font-weight:700;cursor:pointer;text-align:left}.hmc-related-category-items{display:none;padding:8px 10px}.hmc-related-category.hmc-open .hmc-related-category-items{display:grid;gap:7px}.hmc-related-category-items label{display:flex;gap:7px;align-items:flex-start;cursor:pointer}.hmc-related-category-items input{margin-top:3px}.hmc-step-related-links{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:8px}@media(max-width:760px){.hmc-related-category-grid{grid-template-columns:1fr}}

/* 2.11.34 関連ページ：大分類プルダウン＋1行1列 */
.hmc-step-related-browser{width:100%;margin-top:6px}.hmc-related-category-select{display:block;width:100%;max-width:none;box-sizing:border-box;padding:10px 12px;border:1px solid #ded5ce;border-radius:7px;background:#fff}.hmc-step-related-browser>.hmc-related-category-items{display:grid;width:100%;grid-template-columns:1fr;gap:0;margin-top:8px;padding:0}.hmc-step-related-browser>.hmc-related-category-items label{display:flex;width:100%;box-sizing:border-box;align-items:center;gap:9px;padding:10px 12px;border:1px solid #e5ddd7;border-bottom:0;background:#fff;cursor:pointer;line-height:1.5}.hmc-step-related-browser>.hmc-related-category-items label:first-child{border-radius:7px 7px 0 0}.hmc-step-related-browser>.hmc-related-category-items label:last-child{border-bottom:1px solid #e5ddd7;border-radius:0 0 7px 7px}.hmc-step-related-browser>.hmc-related-category-items label:only-child{border-bottom:1px solid #e5ddd7;border-radius:7px}.hmc-step-related-browser>.hmc-related-category-items input{flex:0 0 auto;margin:0}.hmc-step-related-browser>.hmc-related-category-items span{min-width:0;overflow-wrap:anywhere}

/* 2.11.35 関連ページ：選択済みURLを独立表示 */
.hmc-related-selected{display:grid;width:100%;grid-template-columns:1fr;gap:6px;margin-top:10px}.hmc-related-selected:empty{display:none}.hmc-related-selected-row{display:flex;width:100%;box-sizing:border-box;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #ded5ce;border-radius:7px;background:#f8f6f4}.hmc-related-selected-row span{min-width:0;overflow-wrap:anywhere}.hmc-related-selected-remove{flex:0 0 30px;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#ebe7e4;cursor:pointer;font-size:18px;line-height:30px;text-align:center}

/* 2.11.36 作品詳細：工程内の参考URL表示 */
.hmc-step-detail .hmc-step-related-links{display:block;width:100%;box-sizing:border-box;margin-top:12px;padding:12px 14px;background:#FBF8F5;border-radius:7px}
.hmc-step-detail .hmc-step-related-heading{display:block;margin:0 0 6px;font-size:.92em}
.hmc-step-detail .hmc-step-related-list{margin:0;padding-left:1.4em}
.hmc-step-detail .hmc-step-related-list li{margin:4px 0;line-height:1.6}
.hmc-step-detail .hmc-step-related-link{display:inline;margin:0;font-size:.92em;text-decoration:underline;border-bottom:0}

/* 2.11.37 */
.hmc-step-detail .hmc-step-related-link{text-decoration:none;border-bottom:0}

/* 2.11.38 作品ページ：作り方を縦1列に統一して可読性を改善 */
.hmc-detail .hmc-step-detail{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
  width:100%;
}
.hmc-detail .hmc-step-detail .hmc-step-detail-item{
  width:100%;
  box-sizing:border-box;
  padding:18px 20px;
  border:1px solid #e7ded7;
  border-radius:9px;
  background:#fff;
}
.hmc-detail .hmc-step-detail .hmc-step-detail-head{
  grid-template-columns:32px minmax(0,1fr);
  gap:12px;
  margin:0;
}
.hmc-detail .hmc-step-detail .hmc-step-detail-head .hmc-step-number{
  width:32px;
  height:32px;
  flex-basis:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  margin:0;
}
.hmc-detail .hmc-step-detail .hmc-step-detail-copy{
  width:100%;
  min-width:0;
}
.hmc-detail .hmc-step-detail .hmc-step-detail-title{
  margin:2px 0 8px;
  font-size:1rem;
  line-height:1.6;
}
.hmc-detail .hmc-step-detail .hmc-step-detail-copy p{
  margin:0;
  line-height:1.9;
}
.hmc-detail .hmc-step-detail .hmc-step-related-links{
  margin-top:14px;
}
.hmc-detail .hmc-instructions-note{
  margin-top:18px;
}
@media(max-width:760px){
  .hmc-detail .hmc-step-detail .hmc-step-detail-item{padding:15px 14px}
  .hmc-detail .hmc-step-detail .hmc-step-detail-head{grid-template-columns:30px minmax(0,1fr);gap:10px}
  .hmc-detail .hmc-step-detail .hmc-step-detail-head .hmc-step-number{width:30px;height:30px;flex-basis:30px}
}

/* 2.11.40 作品詳細：PC表示の情報密度を改善 */
.hmc-detail{
  padding:11px 22px;
  font-size:15px;
  line-height:1.65;
}
.hmc-detail h2{font-size:1.55rem;line-height:1.4;margin:8px 0 12px}
.hmc-detail h3{font-size:1.15rem;line-height:1.45;margin:18px 0 9px}
.hmc-detail .hmc-author-eval{padding:6px 0;margin-bottom:10px}
.hmc-detail .hmc-authorbox{margin-bottom:6px;gap:8px}
.hmc-detail .hmc-authorbox .hmc-avatar{width:46px!important;height:46px!important}
.hmc-detail .hmc-authorbox .hmc-share-btn{min-height:28px;padding:4px 9px;font-size:.76rem}
.hmc-detail .hmc-reactions{gap:6px}
.hmc-detail .hmc-reaction-btn{padding:5px 9px;font-size:.86rem}
.hmc-detail .hmc-detail-tags{margin:10px 0 12px}
.hmc-detail .hmc-detail-tags>div{padding:9px 16px}
.hmc-detail .hmc-detail-tags>div>strong{margin-bottom:6px;font-size:1rem}
.hmc-detail .hmc-detail-tags>div>span{gap:5px}
.hmc-detail .hmc-detail-tags a{padding:4px 8px;font-size:.9rem}
.hmc-detail .hmc-detail-tags a.hmc-detail-color-dot{width:28px;height:28px;padding:0}
.hmc-detail .hmc-pr-box{padding:7px 14px;margin:10px 0;line-height:1.7}
.hmc-detail .hmc-pr-box p{margin:3px 0 0}
.hmc-detail .hmc-material-detail-row{padding:5px 0}
.hmc-detail .hmc-material-note{margin:7px 0 12px;padding:6px 12px;line-height:1.7}
.hmc-detail .hmc-step-detail{gap:9px}
.hmc-detail .hmc-step-detail .hmc-step-detail-item{padding:9px 16px}
.hmc-detail .hmc-step-detail .hmc-step-detail-head{grid-template-columns:28px minmax(0,1fr);gap:10px}
.hmc-detail .hmc-step-detail .hmc-step-detail-head .hmc-step-number{width:28px;height:28px;flex-basis:28px;font-size:.82rem}
.hmc-detail .hmc-step-detail .hmc-step-detail-title{margin:1px 0 5px;font-size:.95rem;line-height:1.5}
.hmc-detail .hmc-step-detail .hmc-step-detail-copy p{line-height:1.7}
.hmc-detail .hmc-step-detail .hmc-step-related-links{margin-top:7px;padding:6px 12px}
.hmc-detail .hmc-step-detail .hmc-step-related-heading{margin-bottom:4px;font-size:.86rem}
.hmc-detail .hmc-step-detail .hmc-step-related-list li{margin:2px 0;line-height:1.5}
.hmc-detail .hmc-step-detail .hmc-step-related-link{font-size:.86rem}
.hmc-detail .hmc-instructions-note{margin-top:10px;padding-top:6px;padding-bottom:6px;line-height:1.7}
@media(max-width:760px){
  .hmc-detail{padding:10px 12px;font-size:14px}
  .hmc-detail h2{font-size:1.35rem}
  .hmc-detail .hmc-detail-tags>div{padding:8px 10px}
  .hmc-detail .hmc-step-detail .hmc-step-detail-item{padding:8px 10px}
}

/* ===== 2.11.41 responsive / compact vertical rhythm ===== */
/* 作品画像はツール自身の表示幅を上限とし、WordPress本文領域へはみ出させない */
.hmc-work-image-gallery,
.hmc-work-image-main,
.hmc-work-image-thumbs,
.hmc-work-thumb{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.hmc-work-image-gallery{
  width:100%;
  grid-template-columns:minmax(0,300px) minmax(0,300px);
}
.hmc-work-image-main{
  width:100%;
  height:auto;
  aspect-ratio:1/1;
}
.hmc-work-image-main img{
  max-width:100%;
}
.hmc-work-image-thumbs{
  grid-template-columns:repeat(2,minmax(0,150px));
  grid-auto-rows:auto;
}
.hmc-work-thumb{
  width:100%;
  height:auto;
  aspect-ratio:1/1;
}
@container (max-width:620px){
  .hmc-work-image-gallery{grid-template-columns:minmax(0,1fr)}
  .hmc-work-image-main{width:min(100%,300px)}
  .hmc-work-image-thumbs{width:min(100%,300px);grid-template-columns:repeat(2,minmax(0,150px))}
}

/* 全テキストボタンの上下余白を統一して従来のおよそ半分へ */
.hmc-wrap .hmc-btn,
.hmc-wrap .hmc-home-link,
.hmc-wrap .hmc-mypage-link,
.hmc-wrap .hmc-first-link,
.hmc-wrap .hmc-request-btn,
.hmc-wrap .hmc-add-row,
.hmc-wrap .hmc-smallbtn,
.hmc-wrap .hmc-reaction-btn,
.hmc-wrap .hmc-favorite-author-btn,
.hmc-wrap .hmc-shop-btn,
.hmc-wrap .hmc-share-btn,
.hmc-wrap .hmc-withdraw-open,
.hmc-wrap .hmc-withdraw-confirm,
.hmc-wrap .hmc-inline-form button,
.hmc-wrap .hmc-subcategory-option span,
.hmc-wrap .hmc-rank-tabs a,
.hmc-wrap .hmc-rank-types a,
.hmc-wrap .hmc-rank-category a,
.hmc-wrap .hmc-tag-option,
.hmc-wrap .hmc-tag-filter,
.hmc-wrap .hmc-detail-tags a:not(.hmc-detail-color-dot),
.hmc-wrap .hmc-related-category-head{
  padding-top:5px;
  padding-bottom:5px;
  min-height:0;
}
/* 固定サイズのアイコン操作は形状を維持 */
.hmc-wrap .hmc-row-remove,
.hmc-wrap .hmc-material-order button,
.hmc-wrap .hmc-related-selected-remove,
.hmc-wrap .hmc-detail-tags a.hmc-detail-color-dot,
.hmc-wrap .hmc-author-social-icon{
  padding-top:0;
  padding-bottom:0;
}

/* 本文系の行間余白を従来のおよそ半分へ */
.hmc-wrap p,
.hmc-wrap li,
.hmc-wrap dd,
.hmc-wrap dt,
.hmc-wrap label,
.hmc-wrap small,
.hmc-wrap .hmc-text,
.hmc-wrap .hmc-pr-box,
.hmc-wrap .hmc-material-note,
.hmc-wrap .hmc-step-detail-copy p,
.hmc-wrap .hmc-thread-main p,
.hmc-wrap .hmc-reply p,
.hmc-wrap .hmc-promotion-work p,
.hmc-wrap .hmc-instructions-note{
  line-height:1.4;
}


/* ===== 2.11.42 typography / color layout ===== */
/* サイト側のフォント指定をそのまま継承する。ツール側では font-family を指定しない。 */
.hmc-wrap{font-size:14px;}

/* セクション見出し */
.hmc-wrap h2,
.hmc-wrap .hmc-page-title h2{font-size:17px;}

/* 小見出し */
.hmc-wrap h3,
.hmc-wrap h4,
.hmc-wrap .hmc-detail-tags>div>strong,
.hmc-wrap .hmc-step-detail-title{font-size:16px;}

/* ボタン */
.hmc-wrap button,
.hmc-wrap input[type=button],
.hmc-wrap input[type=submit],
.hmc-wrap input[type=reset],
.hmc-wrap .hmc-btn,
.hmc-wrap .hmc-home-link,
.hmc-wrap .hmc-mypage-link,
.hmc-wrap .hmc-first-link,
.hmc-wrap .hmc-share-btn,
.hmc-wrap .hmc-shop-btn{font-size:13px;}

/* タグ */
.hmc-wrap .hmc-tag-option,
.hmc-wrap .hmc-tag-filter,
.hmc-wrap .hmc-detail-tags a,
.hmc-wrap .hmc-card-cat,
.hmc-wrap .hmc-subcategory-option span{font-size:13px;}

/* 補助テキスト */
.hmc-wrap .hmc-help,
.hmc-wrap .hmc-muted,
.hmc-wrap small,
.hmc-wrap .hmc-detail-cat,
.hmc-wrap .hmc-share-status,
.hmc-wrap .hmc-material-affiliate,
.hmc-wrap .hmc-preview-breadcrumb,
.hmc-wrap .hmc-step-image-label,
.hmc-wrap .hmc-step-related-label,
.hmc-wrap .hmc-step-related-heading,
.hmc-wrap .hmc-step-related-link{font-size:13px;}

/* 作品詳細の色だけは複数登録時も横並び。折り返しは許可する。 */
.hmc-detail-tags .hmc-detail-tag-color>span{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
}


/* 2.11.50: 作品評価UI。ピクトグラムを廃止し、実績欄に近い角丸四角の色・枠線・形へ統一 */
.hmc-detail .hmc-reactions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hmc-detail .hmc-reactions form{margin:0}
.hmc-detail .hmc-reaction-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #e8ddd5;background:#faf6f2;border-radius:8px;padding:4px 10px;box-shadow:none;color:inherit;cursor:pointer;font-size:13px;line-height:1.4}
.hmc-detail .hmc-reaction-btn:hover:not(:disabled){background:#f5eee8;border-color:#ddcfc4}
.hmc-detail .hmc-reaction-btn span{margin-left:0;color:inherit}
.hmc-detail .hmc-reaction-active{background:#f1e6dd;border-color:#d6c0af}
.hmc-detail .hmc-reaction-btn:disabled{cursor:default;opacity:.8}

/* ===== 2.11.54 compact public layout =====
   公開ツールを本文領域いっぱいに使い、縦方向の余白を圧縮する。 */
.hmc-wrap{max-width:none;width:100%;margin:5px auto;padding:0 5px}
.hmc-global-nav{gap:9px;padding:5px 0;margin-bottom:8px}
.hmc-nav-brand h2{margin-bottom:1px}
.hmc-nav-brand p{line-height:1.25}
.hmc-nav-actions{gap:5px}
.hmc-home-link,.hmc-mypage-link,.hmc-first-link{padding:5px 9px}
.hmc-banners{gap:6px;margin-bottom:8px}
.hmc-promotion-strip{margin-bottom:8px}
.hmc-promotion-label{padding:4px 10px}
.hmc-promotion-work,.hmc-promotion-empty{display:flex;align-items:center;gap:9px;padding:7px 10px}
.hmc-promotion-work img,.hmc-promotion-default-image{width:150px;height:150px;min-width:150px;max-width:150px;min-height:150px;max-height:150px;flex:0 0 150px}
.hmc-promotion-empty strong{margin-bottom:3px}
.hmc-promotion-empty p{margin:0 0 5px;line-height:1.4}
.hmc-promotion-work strong{margin-bottom:2px}
.hmc-promotion-work span{margin-bottom:3px}
.hmc-promotion-work p{line-height:1.4}
.hmc-promotion-btn{margin:3px 0 4px;padding:6px 12px}
.hmc-promotion-note{margin-top:4px;line-height:1.35}
.hmc-campaign-line{gap:6px;margin:0 0 8px;padding:5px 10px}
.hmc-top-search{margin:0 0 10px}
.hmc-top-search input{padding:8px 14px 8px 40px}
.hmc-top-search svg{left:13px;width:17px;height:17px}
.hmc-explore-layout{gap:10px}
.hmc-category-sidebar{padding:8px}
.hmc-category-sidebar h3{margin-bottom:5px}
.hmc-cat-block{padding:4px 0}
.hmc-cat-filter{padding:4px 6px}
.hmc-grid{gap:10px}
.hmc-card-body{padding:8px}
.hmc-card-body h3{margin:3px 0 4px}
.hmc-empty,.hmc-panel,.hmc-detail{padding:12px;margin-bottom:10px}
.hmc-page-title{margin:6px 0 9px}

@container (max-width:700px){
  .hmc-global-nav{gap:5px;padding:5px 0 6px;margin-bottom:8px}
  .hmc-nav-actions{gap:4px;margin-top:5px}
}
@container (max-width:620px){
  .hmc-promotion-work,.hmc-promotion-empty{display:flex;align-items:flex-start;gap:8px;padding:7px}
  .hmc-promotion-work img,.hmc-promotion-default-image{width:150px;height:150px;min-width:150px;max-width:150px;min-height:150px;max-height:150px;flex:0 0 150px}
}
@container (max-width:430px){
  .hmc-promotion-work,.hmc-promotion-empty{display:flex;grid-template-columns:none;gap:8px}
  .hmc-promotion-work img,.hmc-promotion-default-image{width:150px;height:150px;min-width:150px;max-width:150px;min-height:150px;max-height:150px;flex:0 0 150px;justify-self:auto}
}

/* ===== 2.11.56 top header / banner / content-edge alignment ===== */
/* 本文側の既定 padding（左右20px・上下30px）を相殺し、ツールを生地端の約5pxまで広げる。 */
.hmc-wrap{
  width:calc(100% + 30px);
  max-width:calc(100% + 30px);
  margin:-25px 0 -25px -15px;
  padding:0;
}

/* ツール名は識別ヘッダーなので、他の圧縮対象とは分けて十分な内側余白を確保。 */
.hmc-global-nav{
  padding:12px 14px;
  margin-bottom:8px;
}
.hmc-nav-brand{padding:2px 0;flex:0 1 auto}
.hmc-nav-brand h2{margin:0 0 2px;line-height:1.3}
.hmc-nav-brand p{margin:0;line-height:1.35}

/* ナビは全項目を同じ形・同じ高さにし、横幅のある画面では改行させない。 */
.hmc-wrap .hmc-nav-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:6px;
  width:auto;
}
.hmc-wrap .hmc-nav-actions > .hmc-first-link,
.hmc-wrap .hmc-nav-actions > .hmc-home-link,
.hmc-wrap .hmc-nav-actions > .hmc-mypage-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  min-height:34px;
  padding:6px 11px;
  border:1px solid #ddd3ca;
  border-radius:999px;
  background:#fff!important;
  color:#2f2a26!important;
  white-space:nowrap;
  line-height:1.2;
}
.hmc-wrap .hmc-nav-actions > .hmc-mypage-link{background:#fff!important;border-color:#ddd3ca!important}
.hmc-wrap .hmc-home-link svg{display:block;width:16px;height:16px;flex:0 0 16px}
.hmc-wrap .hmc-home-link span{display:inline}

/* TOPバナーは横幅を使いつつ、高さ300pxを上限とする。 */
.hmc-banners img{
  width:100%;
  height:auto;
  max-height:300px;
  aspect-ratio:auto;
  object-fit:cover;
}

@container (max-width:700px){
  .hmc-global-nav{padding:10px 10px;gap:7px}
  .hmc-wrap .hmc-nav-actions{width:100%;justify-content:flex-start;flex-wrap:wrap;margin-top:0}
  .hmc-wrap .hmc-nav-actions > .hmc-first-link,
  .hmc-wrap .hmc-nav-actions > .hmc-home-link,
  .hmc-wrap .hmc-nav-actions > .hmc-mypage-link{min-height:32px;padding:5px 9px}
}

/* ===== 2.11.56 compact sticky header / detail filters / image-only gallery ===== */
.hmc-global-nav{padding:3px 8px!important;margin-bottom:0!important;min-height:44px;gap:6px}
.hmc-nav-brand h2{font-size:1rem!important;line-height:1.1;margin:0 0 1px!important}.hmc-nav-brand p{font-size:.72em!important;line-height:1.1;margin:0!important}
.hmc-wrap .hmc-nav-actions{gap:5px!important}.hmc-wrap .hmc-nav-actions>.hmc-first-link,.hmc-wrap .hmc-nav-actions>.hmc-home-link,.hmc-wrap .hmc-nav-actions>.hmc-mypage-link{min-height:28px!important;padding:3px 9px!important;line-height:1.1!important}
.hmc-top-filter-drawer{position:sticky;top:44px;z-index:89;background:#fff;border-top:1px solid #eee5dd;border-bottom:1px solid #e5ddd6;margin:0 0 6px;padding:0 8px;box-shadow:0 3px 8px rgba(60,45,35,.035)}
.hmc-top-filter-drawer>summary{list-style:none;cursor:pointer;text-align:center;font-size:12px;font-weight:700;padding:4px 0;line-height:1.2}.hmc-top-filter-drawer>summary::-webkit-details-marker{display:none}.hmc-top-filter-drawer>summary:after{content:' ▼';font-size:10px}.hmc-top-filter-drawer[open]>summary:after{content:' ▲'}
.hmc-top-filter-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:3px 0 6px}.hmc-filter-menu{position:relative;min-width:0}.hmc-filter-menu>summary{list-style:none;cursor:pointer;text-align:center;padding:4px 3px;border-bottom:1px solid #d8cec6;font-size:12px;white-space:nowrap}.hmc-filter-menu>summary::-webkit-details-marker{display:none}.hmc-filter-menu>summary:after{content:' ▼';font-size:9px}.hmc-filter-options{position:absolute;z-index:120;left:0;top:100%;width:max-content;min-width:100%;max-width:min(320px,80vw);max-height:300px;overflow:auto;background:#fff;border:1px solid #ded5ce;border-radius:7px;box-shadow:0 8px 20px rgba(40,30,24,.12);padding:5px}.hmc-filter-options button{display:flex;width:100%;justify-content:space-between;gap:10px;border:0;background:#fff;padding:5px 7px;text-align:left;cursor:pointer;white-space:nowrap;border-radius:4px}.hmc-filter-options button:hover,.hmc-filter-options button.hmc-cat-active,.hmc-filter-options button.hmc-tag-active{background:#f5eee8}
.hmc-explore-layout{display:block!important}.hmc-category-sidebar{display:none!important}.hmc-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.hmc-card{border:0!important;border-radius:7px!important}.hmc-card-body{display:none!important}.hmc-card-image{display:block}.hmc-card-image img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;border-radius:7px}.hmc-card:hover{transform:none!important;box-shadow:none!important}.hmc-work-pagination{display:flex;justify-content:center;align-items:center;gap:5px;margin:10px 0 2px;flex-wrap:wrap}.hmc-work-pagination button{border:1px solid #d8cec6;background:#fff;border-radius:6px;padding:4px 8px;cursor:pointer}.hmc-work-pagination button[aria-current="page"]{background:#f1e9e2;font-weight:700}
@media(max-width:620px){.hmc-global-nav{min-height:40px}.hmc-top-filter-drawer{top:40px}.hmc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.hmc-top-filter-row{gap:3px}.hmc-filter-menu>summary{font-size:11px;padding:4px 1px}.hmc-filter-options{max-width:86vw}}
\n\n/* ===== 2.11.57 unified sticky header / proposal 3 ===== */
.hmc-sticky-header{
  position:sticky;
  top:0;
  z-index:90;
  margin:0 0 6px;
  background:#fff;
  border-bottom:1px solid #e5ddd6;
  box-shadow:0 3px 8px rgba(60,45,35,.035);
}
.hmc-sticky-header .hmc-global-nav{
  position:static!important;
  top:auto!important;
  z-index:auto;
  margin:0!important;
  background:#fff!important;
  box-shadow:none!important;
  border-bottom:1px solid #e8dfd8!important;
  backdrop-filter:none;
}
.hmc-sticky-header .hmc-top-filter-drawer{
  position:relative!important;
  top:auto!important;
  z-index:1;
  margin:0!important;
  padding:0 8px;
  background:#fff!important;
  border:0!important;
  box-shadow:none!important;
}
.hmc-sticky-header .hmc-top-filter-drawer>summary{
  position:relative;
  text-align:left;
  padding:5px 4px;
  background:#fff!important;
  color:#4b4038;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
}
.hmc-sticky-header .hmc-top-filter-drawer[open]>summary{
  background:#fff!important;
}
.hmc-sticky-header .hmc-top-filter-row{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  padding:0 0 5px;
  background:#fff;
  border-top:1px solid #eee6df;
}
.hmc-sticky-header .hmc-filter-menu{
  padding:0 10px;
}
.hmc-sticky-header .hmc-filter-menu+.hmc-filter-menu{
  border-left:1px solid #eee6df;
}
.hmc-sticky-header .hmc-filter-menu>summary{
  padding:5px 2px 4px;
  background:#fff;
  border-bottom:1px solid #d8cec6;
  color:#4b4038;
  text-align:center;
}
@media(max-width:620px){
  .hmc-sticky-header .hmc-top-filter-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
  .hmc-sticky-header .hmc-filter-menu{padding:0 3px}
  .hmc-sticky-header .hmc-filter-menu>summary{font-size:10px;white-space:nowrap}
}


/* ===== 2.11.58 header breathing room / inline search / gallery wants ===== */
/* 余白は一律削減せず、ヘッダー操作部とコンテンツの境界に必要な呼吸を戻す。 */
.hmc-sticky-header{margin-bottom:12px}
.hmc-sticky-header .hmc-top-filter-drawer{padding:0 12px 8px}
.hmc-sticky-header .hmc-top-filter-drawer>summary{
  display:flex;align-items:center;gap:16px;
  padding:10px 4px;
  min-height:44px;
  background:#fff!important;
}
.hmc-filter-summary-label{flex:0 0 auto;white-space:nowrap}
.hmc-sticky-header .hmc-top-filter-drawer>summary:after{margin-left:-12px}
.hmc-header-search{position:relative;display:block;flex:1 1 auto;max-width:620px;margin-left:4px;cursor:text}
.hmc-header-search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;fill:none;stroke:#746b65;stroke-width:1.8;pointer-events:none}
.hmc-header-search input{display:block;width:100%;height:30px;padding:5px 12px 5px 34px;border:1px solid #d8cec6;border-radius:999px;background:#fff;color:#2f2a26;line-height:1.2}
.hmc-sticky-header .hmc-top-filter-row{padding:5px 0 10px}
/* 開いたフィルター項目と直後のトップバナーの間を確保。 */
.hmc-sticky-header:has(.hmc-top-filter-drawer[open]){margin-bottom:16px}
/* 作品画像は薄茶の実線で輪郭を出し、右下に作りたい作品ボタンを置く。 */
.hmc-card{position:relative!important;overflow:visible!important}
.hmc-card-image{display:block;border:1px solid #ddcfc3;border-radius:8px;overflow:hidden;background:#fff}
.hmc-card-image img{border-radius:7px!important}
.hmc-grid-want-form{position:absolute;right:7px;bottom:7px;margin:0;z-index:4}
.hmc-grid-want{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid #d8c8bc;border-radius:50%;background:rgba(255,255,255,.94);color:#7b6254;font-size:19px;line-height:1;cursor:pointer;box-shadow:0 2px 7px rgba(54,39,28,.12)}
.hmc-grid-want:hover{background:#fff}.hmc-grid-want-active{color:#b65d72;border-color:#d9aebb}.hmc-grid-want:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:620px){
  .hmc-sticky-header{margin-bottom:10px}
  .hmc-sticky-header .hmc-top-filter-drawer{padding:0 7px 7px}
  .hmc-sticky-header .hmc-top-filter-drawer>summary{gap:9px;padding:8px 2px;min-height:40px}
  .hmc-header-search{min-width:0;margin-left:0}
  .hmc-header-search input{height:28px;padding-left:30px;font-size:11px}
  .hmc-header-search svg{left:9px;width:14px;height:14px}
  .hmc-grid-want{width:30px;height:30px;font-size:18px}
}

/* ===== 2.11.59 proposal-3 header fidelity / responsive containment ===== */
.hmc-wrap{
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:5px!important;
  min-width:0!important;
  overflow-x:clip;
}
.hmc-sticky-header{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:visible;
  border:1px solid #e5ddd6;
  border-radius:10px;
  background:#f8f1eb;
  box-shadow:0 2px 7px rgba(60,45,35,.035);
}
.hmc-sticky-header .hmc-global-nav{
  display:grid!important;
  grid-template-columns:minmax(125px,auto) minmax(0,1fr);
  align-items:center;
  gap:12px!important;
  width:100%;
  min-width:0;
  padding:7px 10px!important;
  background:#f8f1eb!important;
  border:0!important;
  border-radius:10px 10px 0 0;
}
.hmc-sticky-header .hmc-nav-brand{min-width:0}
.hmc-sticky-header .hmc-nav-actions{
  display:flex!important;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap!important;
  gap:12px!important;
  width:auto!important;
  min-width:0;
  overflow:visible;
}
.hmc-sticky-header .hmc-nav-actions>.hmc-first-link,
.hmc-sticky-header .hmc-nav-actions>.hmc-home-link{
  flex:0 1 auto;
  min-width:0!important;
  min-height:0!important;
  padding:2px 0!important;
  margin:0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#4b4038!important;
  font-weight:400!important;
  white-space:nowrap;
}
.hmc-sticky-header .hmc-nav-actions>.hmc-home-link{gap:5px!important}
.hmc-sticky-header .hmc-nav-actions>.hmc-mypage-link{
  flex:0 0 auto;
  min-height:28px!important;
  padding:4px 12px!important;
  border:1px solid #d7c5b7!important;
  border-radius:999px!important;
  background:#f3e9df!important;
  color:#3e342d!important;
  font-weight:700!important;
  white-space:nowrap;
}
.hmc-sticky-header .hmc-top-filter-drawer{
  width:100%;
  min-width:0;
  padding:0 10px 9px!important;
  background:#fff!important;
  border-radius:0 0 10px 10px;
}
.hmc-sticky-header .hmc-top-filter-drawer>summary{
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:center;
  column-gap:18px!important;
  width:100%;
  min-width:0;
  padding:10px 2px!important;
  background:#fff!important;
}
.hmc-sticky-header .hmc-top-filter-drawer>summary:after{
  position:absolute;
  left:calc(2px + 7.4em);
  margin:0!important;
}
.hmc-filter-summary-label{padding-right:14px}
.hmc-header-search{width:100%;max-width:none!important;min-width:0!important;margin:0!important;padding-left:4px}
.hmc-header-search input{max-width:100%;min-width:0}
.hmc-sticky-header .hmc-top-filter-row{
  width:100%;
  min-width:0;
  padding:5px 0 10px!important;
  background:#fff!important;
  border-top:1px solid #eee6df;
}
.hmc-banners,.hmc-explore-layout,.hmc-works-area,.hmc-grid{width:100%;max-width:100%;min-width:0}
.hmc-banners{margin-top:0}

@media(max-width:700px){
  .hmc-wrap{padding:4px!important}
  .hmc-sticky-header .hmc-global-nav{
    grid-template-columns:minmax(92px,.72fr) minmax(0,2.28fr);
    gap:6px!important;
    padding:6px 7px!important;
  }
  .hmc-nav-brand h2{font-size:.82rem!important;white-space:nowrap}
  .hmc-nav-brand p{font-size:.56rem!important;white-space:nowrap}
  .hmc-sticky-header .hmc-nav-actions{gap:6px!important;justify-content:flex-end!important}
  .hmc-sticky-header .hmc-nav-actions>.hmc-first-link,
  .hmc-sticky-header .hmc-nav-actions>.hmc-home-link{font-size:9px!important;padding:1px 0!important}
  .hmc-sticky-header .hmc-nav-actions>.hmc-mypage-link{font-size:9px!important;padding:3px 7px!important;min-height:23px!important}
  .hmc-sticky-header .hmc-home-link svg{width:12px!important;height:12px!important;flex-basis:12px!important}
  .hmc-sticky-header .hmc-top-filter-drawer{padding:0 7px 7px!important}
  .hmc-sticky-header .hmc-top-filter-drawer>summary{
    grid-template-columns:max-content minmax(0,1fr);
    column-gap:10px!important;
    padding:9px 1px!important;
    min-height:0!important;
    font-size:10px!important;
  }
  .hmc-sticky-header .hmc-top-filter-drawer>summary:after{left:calc(1px + 7.2em);font-size:8px}
  .hmc-filter-summary-label{padding-right:10px}
  .hmc-header-search{padding-left:0}
  .hmc-header-search input{height:28px!important;font-size:10px!important;padding:4px 8px 4px 27px!important}
  .hmc-header-search svg{left:8px!important;width:13px!important;height:13px!important}
  .hmc-sticky-header .hmc-top-filter-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .hmc-sticky-header .hmc-filter-menu{min-width:0;padding:0 2px!important}
  .hmc-sticky-header .hmc-filter-menu>summary{font-size:9px!important;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:430px){
  .hmc-sticky-header .hmc-global-nav{grid-template-columns:84px minmax(0,1fr);gap:4px!important;padding-left:5px!important;padding-right:5px!important}
  .hmc-nav-brand h2{font-size:.72rem!important}.hmc-nav-brand p{font-size:.49rem!important}
  .hmc-sticky-header .hmc-nav-actions{gap:4px!important}
  .hmc-sticky-header .hmc-nav-actions>.hmc-first-link,
  .hmc-sticky-header .hmc-nav-actions>.hmc-home-link{font-size:7.8px!important}
  .hmc-sticky-header .hmc-nav-actions>.hmc-mypage-link{font-size:7.8px!important;padding:3px 5px!important}
  .hmc-sticky-header .hmc-home-link svg{width:10px!important;height:10px!important;flex-basis:10px!important}
  .hmc-sticky-header .hmc-top-filter-drawer>summary{column-gap:7px!important;font-size:9px!important}
  .hmc-header-search input{font-size:9px!important}
}

/* ===== 2.11.60 sticky restore / 99% width / non-overlapping disclosure ===== */
.hmc-wrap{
  width:99%!important;
  max-width:99%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
  overflow:visible!important;
}
.hmc-sticky-header{
  position:sticky!important;
  top:0!important;
  z-index:90!important;
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
.hmc-sticky-header .hmc-top-filter-drawer>summary{
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:18px!important;
}
.hmc-sticky-header .hmc-top-filter-drawer>summary:after{
  content:none!important;
  display:none!important;
}
.hmc-filter-summary-label{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding-right:0!important;
  white-space:nowrap!important;
}
.hmc-filter-summary-label:after{
  content:'▼';
  display:inline-block;
  position:static!important;
  margin:0!important;
  font-size:.78em;
  line-height:1;
}
.hmc-top-filter-drawer[open] .hmc-filter-summary-label:after{content:'▲'}
.hmc-header-search{min-width:0!important;width:100%!important;padding-left:0!important}
.hmc-header-search input{width:100%!important;max-width:100%!important;min-width:0!important}
@media(max-width:700px){
  .hmc-wrap{width:99%!important;max-width:99%!important;padding-left:0!important;padding-right:0!important}
  .hmc-sticky-header .hmc-top-filter-drawer>summary{grid-template-columns:max-content minmax(0,1fr)!important;column-gap:8px!important}
  .hmc-filter-summary-label{gap:3px!important}
}

/* ===== 2.11.61 full sticky header + article-edge fit ===== */
/* The complete two-row header is the only sticky element. */
.hmc-sticky-header{
  position:sticky!important;
  top:0!important;
  z-index:90!important;
  overflow:visible!important;
}
.hmc-sticky-header .hmc-global-nav{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
  margin:0!important;
}
.hmc-sticky-header .hmc-top-filter-drawer{
  position:relative!important;
  top:auto!important;
}

/* Use the article canvas almost edge-to-edge: leave about 5px of the
   theme's 20px horizontal article padding instead of adding another inset. */
.hmc-wrap{
  width:calc(100% + 30px)!important;
  max-width:calc(100% + 30px)!important;
  margin:5px -15px!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

/* Keep the disclosure label and its arrow as one non-overlapping unit. */
.hmc-filter-summary-label{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
.hmc-filter-summary-label:after{
  position:static!important;
  flex:0 0 auto!important;
  margin-left:4px!important;
}
.hmc-sticky-header .hmc-top-filter-drawer>summary{
  min-width:0!important;
  overflow:visible!important;
}
.hmc-header-search{
  min-width:0!important;
  overflow:hidden!important;
}

@media(max-width:700px){
  .hmc-wrap{
    width:calc(100% + 30px)!important;
    max-width:calc(100% + 30px)!important;
    margin:5px -15px!important;
    padding:0!important;
  }
}

/* ===== 2.11.62 complete visible sticky header / vertical article-edge fit ===== */
.hmc-wrap{
  /* Theme article padding is intentionally consumed so only a narrow canvas rim remains. */
  width:calc(100% + 30px)!important;
  max-width:calc(100% + 30px)!important;
  margin:-25px -15px!important;
  padding:0!important;
  box-sizing:border-box!important;
}
.hmc-sticky-header{
  position:sticky!important;
  top:var(--hmc-sticky-offset,0px)!important;
  z-index:90!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
@media(max-width:700px){
  .hmc-wrap{
    width:calc(100% + 30px)!important;
    max-width:calc(100% + 30px)!important;
    margin:-25px -15px!important;
    padding:0!important;
  }
}
\n\n/* 2.11.64 TOP PR / campaign layout */
.hmc-top-notice-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:12px;align-items:stretch;margin:0 0 18px}
.hmc-top-notice-row .hmc-promotion-strip{margin:0;min-width:0}
.hmc-top-notice-row .hmc-campaign-line{margin:0;min-width:0;height:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;padding:14px 16px}
.hmc-top-notice-row .hmc-campaign-line small{width:auto;margin:4px 0 0;white-space:normal}
.hmc-promotion-empty,.hmc-promotion-work{align-items:flex-start;gap:36px;padding:14px}
.hmc-promotion-empty-copy,.hmc-promotion-work>div{align-self:flex-start;padding-top:0}
.hmc-promotion-empty strong{margin:0 0 7px}
.hmc-promotion-empty p{margin:0}
.hmc-promotion-empty .hmc-btn{margin-top:20px}
.hmc-promotion-work strong{margin-top:0}
@media(max-width:700px){
 .hmc-top-notice-row{grid-template-columns:1fr}
 .hmc-promotion-empty,.hmc-promotion-work{gap:24px}
}


/* 2.11.65 requested TOP spacing/campaign placement */
.hmc-promotion-empty strong{margin:0 0 3px}
.hmc-campaign-line{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:10px;
  margin:0;
  padding:10px 12px;
  border:0;
  border-radius:0;
  background:transparent;
  white-space:nowrap;
}
.hmc-campaign-line small{margin-left:auto;width:auto;white-space:nowrap}
@media(max-width:700px){
  .hmc-campaign-line{flex-wrap:nowrap;gap:6px;padding:8px 6px;font-size:.78em;overflow:hidden}
  .hmc-campaign-line strong,.hmc-campaign-line span,.hmc-campaign-line small{width:auto;margin-left:0;white-space:nowrap}
  .hmc-campaign-line small{margin-left:auto}
}

/* 2.11.66 requested PR vertical spacing / detail main-image left alignment */
.hmc-promotion-empty,
.hmc-promotion-work{
  padding-top:28px;
  padding-bottom:28px;
}
.hmc-detail .hmc-work-image-gallery{
  justify-content:start;
  justify-items:start;
  margin-left:0;
  margin-right:0;
}
.hmc-detail .hmc-work-image-main{
  justify-self:start;
  margin-left:0;
}

/* 2.11.67 PR area: restore compact interior; increase space outside the area */
.hmc-promotion-strip{
  margin-top:16px;
  margin-bottom:16px;
}
.hmc-promotion-empty,
.hmc-promotion-work{
  padding-top:14px;
  padding-bottom:14px;
}

/* 2.11.68 TOP作品カード：画像＋大分類＋2行タイトル＋作者 */
.hmc-grid .hmc-card{
  position:relative;
  overflow:hidden;
  border:1px solid #e5d8cd!important;
  border-radius:10px!important;
  background:#fff;
}
.hmc-grid .hmc-card-image img{
  border-radius:9px 9px 0 0!important;
}
.hmc-grid .hmc-card-info{
  display:flex!important;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  padding:9px 10px 11px;
  min-width:0;
}
.hmc-card-category{
  display:block;
  color:#a36d53;
  font-size:12px;
  line-height:1.3;
}
.hmc-card-title{
  display:-webkit-box;
  width:100%;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  color:#2f2925!important;
  font-size:15px;
  font-weight:700;
  line-height:1.55;
  text-decoration:none!important;
  min-height:3.1em;
}
.hmc-card-author{
  display:flex;
  align-items:center;
  gap:6px;
  max-width:calc(100% - 38px);
  color:#746860!important;
  font-size:12px;
  line-height:24px;
  text-decoration:none!important;
  min-width:0;
}
.hmc-card-author .hmc-avatar{
  flex:0 0 24px;
  width:24px!important;
  height:24px!important;
  border-radius:50%;
  object-fit:cover;
}
.hmc-card-author span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hmc-grid-want-form{
  position:absolute!important;
  right:8px!important;
  bottom:8px!important;
  z-index:3;
}
.hmc-grid-want{
  width:30px!important;
  height:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  border:1px solid #dfcfc3!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 1px 4px rgba(55,40,30,.08);
  font-size:19px!important;
  line-height:1!important;
}
@media(max-width:620px){
  .hmc-grid .hmc-card-info{padding:7px 8px 9px;gap:4px}
  .hmc-card-category{font-size:10px}
  .hmc-card-title{font-size:13px;line-height:1.45;min-height:2.9em}
  .hmc-card-author{font-size:11px;max-width:calc(100% - 34px)}
  .hmc-grid-want-form{right:6px!important;bottom:6px!important}
  .hmc-grid-want{width:28px!important;height:28px!important;font-size:17px!important}
}

/* 2.11.69 TOP PR area: register CTA left / existing PR content right */
.hmc-promotion-split{
  display:grid;
  grid-template-columns:minmax(220px,30%) minmax(0,1fr);
  gap:16px;
  align-items:stretch;
}
.hmc-register-work-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:100%;
  padding:18px 16px;
  box-sizing:border-box;
  border-radius:14px;
  background:#ead8c7;
  color:#2e2722;
  text-decoration:none!important;
  font-weight:700;
  text-align:center;
}
.hmc-register-camera{
  width:28px;
  height:28px;
  flex:0 0 28px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hmc-promotion-current{min-width:0;display:flex;align-items:stretch}
.hmc-promotion-current>.hmc-promotion-empty,
.hmc-promotion-current>.hmc-promotion-work{width:100%;box-sizing:border-box;margin:0}
@media(max-width:700px){
  .hmc-promotion-split{grid-template-columns:minmax(130px,36%) minmax(0,1fr);gap:8px}
  .hmc-register-work-cta{padding:12px 8px;gap:6px;font-size:.88em}
  .hmc-register-camera{width:22px;height:22px;flex-basis:22px}
}

/* 2.11.70 filter usability / register sticky-note edge */
.hmc-register-work-cta{border-radius:14px 0 0 14px}
.hmc-category-filter-options{min-width:min(300px,82vw)}
.hmc-filter-category-group{display:block;width:100%}
.hmc-filter-category-group>.hmc-cat-parent{font-weight:700;align-items:center}
.hmc-cat-parent-arrow{margin-left:auto;font-size:9px;transition:transform .15s ease}
.hmc-cat-parent.hmc-cat-expanded .hmc-cat-parent-arrow{transform:rotate(180deg)}
.hmc-filter-subcategories{padding:2px 0 5px 12px;border-left:2px solid #eee3db;margin:0 0 3px 7px}
.hmc-filter-subcategories[hidden]{display:none!important}
.hmc-filter-subcategories .hmc-sub-filter{padding-left:9px;font-size:.94em;color:#544a43}
.hmc-filter-color-options{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;width:min(270px,78vw)!important;min-width:220px!important;padding:10px!important;overflow:auto}
.hmc-filter-color-options .hmc-tag-filter{width:auto!important}
.hmc-filter-color-all{height:30px;padding:0 10px!important;border:1px solid #ddd2ca!important;border-radius:999px!important;background:#fff!important;font-size:11px}
.hmc-filter-color-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;border:1px solid #d7cdc5!important;border-radius:50%!important;background:#fff!important}
.hmc-filter-color-chip>span{display:block;width:22px;height:22px;border-radius:50%;background:var(--hmc-filter-color,#ccc);border:1px solid rgba(0,0,0,.16);box-sizing:border-box}
.hmc-filter-color-chip.hmc-filter-color-clear>span{background:linear-gradient(135deg,#fff 0 43%,#d8d8d8 43% 57%,#fff 57% 100%)}
.hmc-filter-color-chip.hmc-filter-color-multi>span{background:conic-gradient(#e53935,#f4d03f,#43a047,#2962ff,#8e44ad,#e53935)}
.hmc-filter-color-options .hmc-filter-color-chip:hover,.hmc-filter-color-options .hmc-filter-color-chip.hmc-tag-active{background:#fff!important;border-color:#75665c!important;box-shadow:0 0 0 2px #efe5de}


/* 2.11.71 TOP category visibility / campaign alignment / popular tags */
.hmc-wrap>.hmc-campaign-line{justify-content:center;text-align:center}
.hmc-wrap>.hmc-campaign-line small{margin-left:0}
.hmc-wrap>.hmc-promotion-strip{margin-bottom:32px}
.hmc-top-category-tags{margin:0 0 32px}
.hmc-top-category-tags h3,.hmc-top-gallery-heading h3{margin:0 0 12px;font-size:1.12em;line-height:1.4}
.hmc-top-category-tag-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow:hidden}
.hmc-top-category-tag{flex:0 1 auto;min-width:0;max-width:calc((100% - 40px)/6);padding:7px 12px;border:1px solid #dfcfc3;border-radius:999px;background:#fff;color:#55483f;font:inherit;font-size:.9em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.hmc-top-gallery-heading{margin:0 0 12px;padding-top:8px}
@media(max-width:700px){.hmc-wrap>.hmc-campaign-line{justify-content:center}.hmc-wrap>.hmc-campaign-line small{margin-left:0}.hmc-top-category-tag-row{gap:6px}.hmc-top-category-tag{padding:6px 9px;font-size:.82em}}


/* 2.11.72 requested button centering / TOP inner spacing / campaign pictogram */
.hmc-wrap button{text-align:center}
.hmc-filter-color-all,.hmc-top-category-tag{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1.2}
.hmc-top-category-tags,.hmc-top-gallery-heading,.hmc-explore-layout{margin-left:16px;margin-right:16px}
.hmc-explore-layout{margin-bottom:32px}
.hmc-campaign-line strong{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.hmc-campaign-gift{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.hmc-top-category-tags,.hmc-top-gallery-heading,.hmc-explore-layout{margin-left:16px;margin-right:16px}}


/* ===== 2.11.73 投稿フォーム画像UI調整 ===== */
.hmc-post-form-title{margin-top:12px}
.hmc-crop-modal{padding:16px;overflow:hidden}
.hmc-crop-dialog{width:min(100%,496px);max-height:calc(100vh - 32px);overflow:hidden;padding:18px}
#hmc-crop-canvas{width:min(100%,400px);max-height:calc(100vh - 330px);object-fit:contain;margin:10px auto}
.hmc-crop-control{margin:8px 0}
.hmc-crop-actions{margin-top:12px}
.hmc-post-image-slot{padding:10px;border:1px dashed #cdbfb4;border-radius:9px;background:#fff;transition:border-color .15s,background-color .15s,box-shadow .15s}
.hmc-post-image-drop-hint{margin:0 0 8px;padding:7px 8px;border-radius:6px;background:#f8f4f1;color:#6f6259;font-size:.82em;text-align:center;line-height:1.4}
.hmc-post-image-slot.hmc-image-file-over{border-color:#8e7868;background:#faf7f4;box-shadow:0 0 0 2px rgba(142,120,104,.12)}
@media(max-width:600px){.hmc-crop-modal{padding:8px}.hmc-crop-dialog{width:min(100%,496px);max-height:calc(100vh - 16px);padding:13px}.hmc-crop-dialog h3{margin-bottom:6px}.hmc-crop-dialog>.hmc-help{margin:5px 0}#hmc-crop-canvas{width:min(100%,400px);max-height:calc(100vh - 300px);margin:7px auto}.hmc-crop-control{margin:6px 0}.hmc-crop-actions{margin-top:8px}}


/* ===== 2.11.74 投稿完了通知配置 ===== */
.hmc-wrap>.hmc-message{width:100%;max-width:none;margin:0 0 18px;padding:11px 16px}

/* ===== 2.11.77 mobile layout / horizontal overflow fix ===== */
@media(max-width:700px){
  .hmc-wrap,
  .hmc-sticky-header,
  .hmc-campaign-line,
  .hmc-promotion-strip,
  .hmc-promotion-split,
  .hmc-promotion-current,
  .hmc-promotion-empty,
  .hmc-promotion-work,
  .hmc-top-category-tags,
  .hmc-top-gallery-heading,
  .hmc-explore-layout,
  .hmc-works-area,
  .hmc-grid{
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  /* Campaign: allow a clean two-row layout instead of clipping/overlap. */
  .hmc-wrap>.hmc-campaign-line{
    display:grid!important;
    grid-template-columns:max-content minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:4px 7px!important;
    width:100%!important;
    padding:8px 10px!important;
    overflow:visible!important;
    white-space:normal!important;
    text-align:left!important;
    line-height:1.45!important;
  }
  .hmc-wrap>.hmc-campaign-line strong,
  .hmc-wrap>.hmc-campaign-line>span,
  .hmc-wrap>.hmc-campaign-line small{
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .hmc-wrap>.hmc-campaign-line small{
    grid-column:1 / -1;
    justify-self:center;
    text-align:center;
  }

  /* Mobile PR signboard: desktop left/right split becomes top/bottom. */
  .hmc-promotion-split{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    width:100%!important;
  }
  .hmc-register-work-cta{
    width:100%!important;
    min-height:0!important;
    padding:13px 14px!important;
    border-radius:12px 12px 0 0!important;
  }
  .hmc-promotion-current{width:100%!important}
  .hmc-promotion-current>.hmc-promotion-empty,
  .hmc-promotion-current>.hmc-promotion-work{
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(110px,150px) minmax(0,1fr)!important;
    align-items:start!important;
    gap:12px!important;
    padding:12px!important;
  }
  .hmc-promotion-current .hmc-promotion-default-image,
  .hmc-promotion-current .hmc-promotion-work>img{
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    max-width:150px!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:1/1!important;
    object-fit:cover!important;
    flex:none!important;
  }
  .hmc-promotion-empty-copy,
  .hmc-promotion-work>div{
    min-width:0!important;
    width:auto!important;
    padding:0!important;
  }
  .hmc-promotion-empty-copy strong,
  .hmc-promotion-empty-copy p,
  .hmc-promotion-work strong,
  .hmc-promotion-work span,
  .hmc-promotion-work p,
  .hmc-promotion-note{
    white-space:normal!important;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .hmc-promotion-empty .hmc-btn{margin-top:10px!important}

  /* Prevent content blocks/cards from increasing the page width. */
  .hmc-grid>*{min-width:0!important;max-width:100%!important}
  .hmc-card,.hmc-card-image,.hmc-card-info{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .hmc-card img{max-width:100%!important}
}

@media(max-width:430px){
  .hmc-promotion-current>.hmc-promotion-empty,
  .hmc-promotion-current>.hmc-promotion-work{
    grid-template-columns:110px minmax(0,1fr)!important;
    gap:10px!important;
  }
}

/* ===== 2.11.77 mobile article-boundary containment ===== */
@media(max-width:700px){
  /* On mobile, do not consume the theme's article side padding. The former
     calc(100% + 30px) / negative side margins pushed the header and PR board
     outside the article canvas. */
  .hmc-wrap{
    width:100%!important;
    max-width:100%!important;
    margin:-25px 0!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  .hmc-wrap>.hmc-sticky-header,
  .hmc-wrap>.hmc-campaign-line,
  .hmc-wrap>.hmc-promotion-strip,
  .hmc-wrap>.hmc-promotion-split{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  .hmc-sticky-header .hmc-global-nav,
  .hmc-sticky-header .hmc-top-filter-drawer,
  .hmc-promotion-split>*{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}
\n\n/* ===== 2.11.78 mobile gallery article-boundary containment ===== */\n@media(max-width:700px){\n  /* These blocks intentionally keep 16px side insets. Their content width must\n     therefore exclude those margins instead of adding them to width:100%. */\n  .hmc-top-category-tags,\n  .hmc-top-gallery-heading,\n  .hmc-explore-layout{\n    width:calc(100% - 32px)!important;\n    max-width:calc(100% - 32px)!important;\n    margin-left:16px!important;\n    margin-right:16px!important;\n    box-sizing:border-box!important;\n  }\n  .hmc-explore-layout,\n  .hmc-works-area,\n  .hmc-grid{\n    min-width:0!important;\n  }\n  .hmc-works-area,\n  .hmc-grid{\n    width:100%!important;\n    max-width:100%!important;\n    margin-left:0!important;\n    margin-right:0!important;\n    box-sizing:border-box!important;\n  }\n  .hmc-grid{overflow:hidden!important}\n  .hmc-card{width:100%!important;min-width:0!important;max-width:100%!important}\n}\n

/* ===== 2.11.79 mypage post delete confirmation ===== */
.hmc-delete-post-box{width:min(420px,100%);text-align:center}
.hmc-delete-post-box h3{margin:0 0 20px}
.hmc-delete-post-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.hmc-delete-post-actions .hmc-btn{min-width:110px;margin:0}
