/*
Theme Name: Noumitsu Theme
Theme URI: https://noumitsu-ero.com/
Author: Noumitsu Project
Description: 「濃密Hitomiエロ天国」専用の作品紹介・試し読み型WordPressテーマ。
Version: 0.8.7
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: noumitsu-theme
*/

:root{
  --nm-bg:#fff;
  --nm-text:#171717;
  --nm-muted:#767676;
  --nm-line:#e8e8e8;
  --nm-accent:#ea3f8e;
  --nm-accent-dark:#c92f74;
  --nm-soft:#fff3f8;
  --nm-chip:#f5f5f5;
  --nm-max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--nm-text);background:var(--nm-bg);line-height:1.65}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.nm-container{width:min(calc(100% - 32px),var(--nm-max));margin:0 auto}

.nm-header{border-bottom:1px solid var(--nm-line);background:#fff;position:sticky;top:0;z-index:30}
.admin-bar .nm-header{top:32px}
.nm-header-inner{min-height:70px;display:flex;align-items:center;gap:28px}
.nm-logo{font-size:22px;font-weight:900;white-space:nowrap}
.nm-nav{display:flex;gap:20px;margin-left:auto;font-size:14px;font-weight:800}
.nm-nav a:hover{color:var(--nm-accent)}
.nm-search-inline{width:270px;position:relative}
.nm-search-inline input{width:100%;border:1px solid var(--nm-line);border-radius:999px;padding:10px 42px 10px 14px;outline:none}
.nm-search-inline button{position:absolute;right:5px;top:5px;width:32px;height:32px;border:0;border-radius:50%;background:var(--nm-accent);color:#fff;cursor:pointer}

.nm-hero{padding:34px 0 22px}
.nm-kicker{display:inline-flex;align-items:center;gap:6px;background:var(--nm-soft);color:var(--nm-accent-dark);padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900}
.nm-hero h1{font-size:32px;line-height:1.3;margin:12px 0 8px}
.nm-hero p{margin:0;color:var(--nm-muted)}

.nm-filter{margin:10px 0 34px;border:1px solid var(--nm-line);background:#fff;padding:20px;border-radius:10px}
.nm-filter-title{font-size:18px;font-weight:900;margin:0 0 14px}
.nm-filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:12px}
.nm-field label{display:block;font-size:12px;font-weight:800;margin-bottom:5px}
.nm-field input,.nm-field select{width:100%;height:42px;border:1px solid #d9d9d9;border-radius:6px;padding:0 10px;background:#fff}
.nm-filter-actions{display:flex;gap:10px;margin-top:14px}
.nm-filter-btn{border:0;background:var(--nm-accent);color:#fff;font-weight:900;border-radius:7px;padding:11px 18px;cursor:pointer}
.nm-filter-reset{display:inline-flex;align-items:center;padding:11px 16px;border:1px solid #ddd;border-radius:7px;font-size:13px}
.nm-active-filters{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.nm-active-filter{background:var(--nm-soft);color:var(--nm-accent-dark);padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700}

.nm-section{padding:12px 0 42px}
.nm-section-head{display:flex;align-items:end;gap:12px;margin-bottom:18px}
.nm-section-head h2{margin:0;font-size:24px}
.nm-section-head p{margin:0;color:var(--nm-muted);font-size:13px}

.nm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 18px}
.nm-card{min-width:0}
.nm-thumb-wrap{position:relative;aspect-ratio:4/3;overflow:hidden;background:#f3f3f3}
.nm-thumb-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.nm-card:hover .nm-thumb-wrap img{transform:scale(1.02)}
.nm-badge{position:absolute;top:10px;left:10px;background:var(--nm-accent);color:#fff;border-radius:5px;padding:4px 8px;font-size:11px;font-weight:900}
.nm-card-body{padding:10px 2px 0}
.nm-card-title{font-weight:900;font-size:15px;line-height:1.55;margin:0 0 7px}
.nm-card-title a:hover{color:var(--nm-accent)}
.nm-card-meta{display:flex;flex-wrap:wrap;gap:8px 12px;font-size:12px;color:var(--nm-muted)}
.nm-card-price{color:var(--nm-accent-dark);font-weight:900}
.nm-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.nm-tag{padding:3px 8px;border-radius:999px;background:var(--nm-chip);font-size:11px;color:#555}
.nm-tag:hover{background:var(--nm-soft);color:var(--nm-accent-dark)}

.nm-pagination{margin:38px 0 10px;display:flex;justify-content:center}
.nm-pagination .page-numbers{display:inline-flex;min-width:38px;height:38px;padding:0 11px;align-items:center;justify-content:center;margin:3px;background:#eee;font-size:13px}
.nm-pagination .current{background:var(--nm-accent);color:#fff}
.nm-empty{border:1px dashed #ccc;padding:30px;text-align:center;color:var(--nm-muted)}

.nm-single{padding:34px 0 58px}
.nm-breadcrumb{font-size:12px;color:var(--nm-muted);margin-bottom:20px}
.nm-single-grid{display:grid;grid-template-columns:minmax(320px,430px) 1fr;gap:40px;align-items:start}
.nm-single-image{background:#f3f3f3;overflow:hidden}
.nm-single-image img{width:100%;height:auto}
.nm-single h1{margin:8px 0 14px;font-size:30px;line-height:1.45}
.nm-lead{color:var(--nm-muted);font-size:14px;margin:0 0 12px}
.nm-detail-list{display:grid;grid-template-columns:110px 1fr;border-top:1px solid var(--nm-line);margin-top:20px}
.nm-detail-list dt,.nm-detail-list dd{margin:0;padding:11px 0;border-bottom:1px solid var(--nm-line)}
.nm-detail-list dt{font-size:13px;font-weight:900}
.nm-detail-list dd{font-size:14px}
.nm-detail-list dd a{color:var(--nm-accent-dark)}
.nm-cta{display:inline-flex;justify-content:center;align-items:center;width:100%;min-height:54px;margin-top:22px;border-radius:8px;background:var(--nm-accent);color:#fff;font-weight:900}
.nm-cta:hover{background:var(--nm-accent-dark)}
.nm-pr{font-size:11px;color:var(--nm-muted);margin:8px 0 0;text-align:center}

.nm-description,.nm-ai-box,.nm-related{margin-top:38px;padding-top:28px;border-top:1px solid var(--nm-line)}
.nm-description h2,.nm-ai-box h2,.nm-related h2{font-size:22px;margin:0 0 16px}
.nm-ai-box{background:var(--nm-soft);border:0;padding:22px;border-radius:10px}
.nm-ai-note{font-size:11px;color:var(--nm-muted);margin-top:12px}
.nm-meta-group{margin-top:24px}
.nm-meta-group-title{font-size:13px;font-weight:900;margin-bottom:8px}

.nm-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.nm-related-item .nm-thumb-wrap{aspect-ratio:4/3}
.nm-related-title{font-size:13px;font-weight:800;line-height:1.5;margin:8px 0 0}

.nm-footer{border-top:1px solid var(--nm-line);margin-top:24px;padding:28px 0 42px;text-align:center;color:var(--nm-muted);font-size:12px}
.nm-footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 18px;margin-bottom:14px}
.nm-top{position:fixed;right:24px;bottom:24px;width:48px;height:48px;border:1px solid #f0a9c8;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;color:var(--nm-accent);font-size:11px}

@media (max-width:1000px){.nm-filter-grid{grid-template-columns:1fr 1fr 1fr}}
@media (max-width:900px){
  .nm-nav{display:none}
  .nm-search-inline{margin-left:auto;width:min(42vw,260px)}
  .nm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nm-single-grid{grid-template-columns:1fr}
  .nm-single-image{max-width:560px}
  .nm-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .admin-bar .nm-header{top:46px}
  .nm-container{width:min(calc(100% - 20px),var(--nm-max))}
  .nm-header-inner{min-height:60px;gap:10px}
  .nm-logo{font-size:18px}
  .nm-search-inline{width:42%}
  .nm-search-inline input{font-size:12px}
  .nm-hero{padding-top:24px}
  .nm-hero h1{font-size:25px}
  .nm-filter{padding:14px}
  .nm-filter-grid{grid-template-columns:1fr}
  .nm-grid{gap:20px 10px}
  .nm-card-title{font-size:13px}
  .nm-card-meta{font-size:11px}
  .nm-single{padding-top:24px}
  .nm-single h1{font-size:24px}
  .nm-detail-list{grid-template-columns:90px 1fr}
}

/* v0.4.0 商品画像・リンク表示 */
.nm-card-circle{margin-top:6px;font-size:12px;color:var(--nm-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nm-no-image{width:100%;height:100%;display:grid;place-items:center;color:#999;background:#f3f3f3;font-weight:800;letter-spacing:.05em}
.nm-no-image-single{min-height:420px}
.nm-single-image img{max-height:760px;object-fit:contain;background:#f7f7f7}
.nm-cta{box-shadow:0 8px 22px rgba(234,63,142,.18)}


/* v0.5.0 home discovery */
.nm-home-hero{padding:64px 0 42px;background:linear-gradient(180deg,var(--nm-soft),#fff)}
.nm-home-hero h1{font-size:clamp(30px,5vw,52px);margin:8px 0 10px;letter-spacing:-.03em}
.nm-home-hero p{max-width:720px;font-size:16px;color:var(--nm-muted)}
.nm-hero-search{display:flex;max-width:760px;margin-top:24px;background:#fff;border:1px solid var(--nm-line);border-radius:14px;padding:6px;box-shadow:0 10px 35px rgba(0,0,0,.05)}
.nm-hero-search input{flex:1;min-width:0;border:0;background:transparent;padding:13px 14px;font:inherit;outline:0}
.nm-hero-search button{border:0;border-radius:10px;background:var(--nm-accent);color:#fff;font-weight:700;padding:0 24px;cursor:pointer}
.nm-popular-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.nm-popular-chips a{background:#fff;border:1px solid var(--nm-line);border-radius:999px;padding:7px 12px;font-size:12px;text-decoration:none;color:var(--nm-text)}
.nm-section-compact{padding-bottom:10px}.nm-section-eyebrow{display:block;color:var(--nm-accent);font-size:11px;font-weight:800;letter-spacing:.12em;margin-bottom:4px}
.nm-discovery{background:#fafafa}.nm-term-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.nm-term-card{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px;border:1px solid var(--nm-line);border-radius:12px;background:#fff;text-decoration:none;color:var(--nm-text);transition:.15s}.nm-term-card:hover{transform:translateY(-2px);border-color:#f1b2cf}.nm-term-card span,.nm-circle-list span{font-size:12px;color:var(--nm-muted);white-space:nowrap}
.nm-circle-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.nm-circle-list a{display:flex;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid var(--nm-line);text-decoration:none;color:var(--nm-text)}
.nm-site-notice{border:1px solid #f0d4e1;background:var(--nm-soft);border-radius:12px;padding:18px 20px;font-size:13px}.nm-site-notice p{margin:7px 0 0;color:var(--nm-muted);line-height:1.8}.nm-muted{color:var(--nm-muted)}
@media(max-width:780px){.nm-home-hero{padding:38px 0 28px}.nm-hero-search{display:block}.nm-hero-search button{width:100%;padding:12px}.nm-term-grid{grid-template-columns:repeat(2,1fr)}.nm-circle-list{grid-template-columns:1fr}}
@media(max-width:460px){.nm-term-grid{grid-template-columns:1fr}}


/* v0.6.0 - SEO article media */
.nm-media-hero{padding:58px 0 42px}.nm-media-hero h1{max-width:760px}.nm-media-hero .nm-hero-note{font-size:12px;color:#777;margin-top:14px}.nm-filter-details{border:1px solid #eee;border-radius:14px;background:#fff}.nm-filter-details>summary{cursor:pointer;font-weight:800;padding:16px 18px;list-style:none}.nm-filter-details>summary::-webkit-details-marker{display:none}.nm-filter-details>summary:after{content:'＋';float:right;color:#e73582}.nm-filter-details[open]>summary:after{content:'−'}.nm-filter-details-body{padding:0 16px 16px}.nm-filter-details-body .nm-filter-box{margin:0;border:0;padding:0}.nm-article-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.nm-article-card .nm-card-body{padding-top:14px}.nm-card-question{display:inline-block;font-size:12px;font-weight:900;color:#e73582;background:#fff0f6;border-radius:999px;padding:5px 9px;margin-bottom:8px}.nm-article-card .nm-card-title{font-size:16px;line-height:1.55}.nm-card-product-title{font-size:12px;line-height:1.6;color:#777;margin:-1px 0 7px;word-break:break-word}.nm-card-submeta{display:flex;gap:8px;flex-wrap:wrap;color:#777;font-size:12px;margin:9px 0}.nm-card-submeta span+span:before{content:'・';margin-right:8px}.nm-card-cta{display:block;margin-top:12px;padding-top:11px;border-top:1px solid #eee;font-size:13px;font-weight:800;color:#e73582}.nm-no-image{height:100%;display:grid;place-items:center;color:#999;background:#f4f4f4}.nm-seo-head{max-width:920px;margin:28px 0 28px}.nm-seo-head h1{font-size:clamp(28px,4vw,44px);line-height:1.35;margin:8px 0 14px}.nm-seo-intro{font-size:16px;line-height:1.9;color:#555}.nm-answer-box{background:#fff5f9;border:1px solid #ffd2e4;border-radius:18px;padding:26px;margin:0 0 34px}.nm-answer-label{display:inline-block;background:#e73582;color:#fff;border-radius:999px;padding:5px 12px;font-weight:900;font-size:12px}.nm-answer-box h2{margin:12px 0 8px}.nm-answer-box p{line-height:1.85}.nm-seo-product{margin-top:34px}.nm-check-section{margin-top:36px;padding:28px;border:1px solid #eee;border-radius:16px}.nm-check-section p{line-height:1.9}.nm-seo-single .nm-cta{margin-top:16px}.nm-seo-single .nm-detail-list{margin-top:18px}
@media(max-width:1000px){.nm-article-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.nm-media-hero{padding:38px 0 26px}.nm-article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nm-article-card .nm-card-title{font-size:14px}.nm-card-question{font-size:11px}.nm-answer-box,.nm-check-section{padding:20px}.nm-seo-head h1{font-size:28px}}

/* v0.7.0 story article */
.nm-article-container{max-width:980px}.nm-story-head{padding:42px 0 30px}.nm-story-head h1{font-size:clamp(30px,4.3vw,52px);line-height:1.35;letter-spacing:.01em;max-width:900px;margin:12px 0 16px}.nm-work-name{font-size:15px;color:#666}.nm-sample-section{padding:28px 0 54px}.nm-section-heading{text-align:center;margin-bottom:26px}.nm-section-heading span{font-size:11px;letter-spacing:.18em;color:#ec3d84;font-weight:800}.nm-section-heading h2{font-size:28px;margin:8px 0}.nm-section-heading p{color:#777}.nm-sample-pages{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:16px}.nm-sample-page{margin:0;background:#f5f5f5;border-radius:10px;overflow:hidden;border:1px solid #eee}.nm-sample-page img{display:block;width:100%;height:auto}.nm-sample-page figcaption{text-align:center;padding:8px;font-size:11px;color:#888}.nm-sample-placeholder{max-width:720px;margin:0 auto;padding:70px 25px;text-align:center;background:#fafafa;border:1px dashed #ddd;border-radius:12px;color:#777}.nm-sample-placeholder strong{display:block;color:#333;margin-bottom:8px}.nm-investigation{border-top:5px solid #ec3d84;padding:44px 0 20px}.nm-investigation>h2{font-size:32px;line-height:1.5;margin:10px 0 28px}.nm-editor-talk{display:flex;align-items:flex-start;gap:18px;margin:28px 0}.nm-editor-avatar{width:68px;height:68px;flex:0 0 68px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#222;color:#fff;font-size:12px;font-weight:700}.nm-speech{position:relative;flex:1;background:#fff5f8;border:1px solid #ffd0df;border-radius:16px;padding:20px 22px}.nm-speech:before{content:"";position:absolute;left:-10px;top:24px;width:18px;height:18px;background:#fff5f8;border-left:1px solid #ffd0df;border-bottom:1px solid #ffd0df;transform:rotate(45deg)}.nm-speech strong{color:#d92d70}.nm-speech p{margin:8px 0 0;line-height:1.9}.nm-facts{display:grid;grid-template-columns:1fr 1fr;border:1px solid #eee;border-radius:14px;overflow:hidden;margin:26px 0}.nm-facts div{padding:18px 20px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;gap:15px}.nm-facts div:nth-child(odd){border-right:1px solid #eee}.nm-facts span{font-weight:700}.nm-facts strong{color:#d92d70;text-align:right}.nm-cta-large{font-size:16px;padding:18px 24px}.nm-piracy-warning{margin:48px 0;padding:30px 34px;background:#fafafa;border-left:5px solid #333;border-radius:4px}.nm-piracy-warning h2{font-size:25px;margin-top:0}.nm-piracy-warning p,.nm-piracy-warning li{line-height:1.9}.nm-piracy-warning .nm-note{font-size:12px;color:#777}.nm-work-info{margin:55px 0}.nm-work-info>h2{font-size:28px;margin-bottom:24px}
@media(max-width:700px){.nm-story-head{padding-top:28px}.nm-story-head h1{font-size:30px}.nm-investigation>h2{font-size:25px}.nm-facts{grid-template-columns:1fr}.nm-facts div:nth-child(odd){border-right:0}.nm-editor-avatar{width:54px;height:54px;flex-basis:54px}.nm-speech{padding:16px}.nm-piracy-warning{padding:22px 20px}.nm-sample-pages{margin-left:-10px;margin-right:-10px}}


/* =========================================================
   v0.8.0 Standard article pages
   ========================================================= */
.nm-article-page{background:#fff;padding:34px 0 72px}
.nm-article-container{width:min(calc(100% - 32px),860px);margin:0 auto}
.nm-article-breadcrumb{display:flex;flex-wrap:wrap;gap:7px;align-items:center;color:var(--nm-muted);font-size:12px;margin-bottom:32px}
.nm-article-breadcrumb a:hover{color:var(--nm-accent)}
.nm-article-header{padding-bottom:28px;border-bottom:1px solid var(--nm-line)}
.nm-article-category{display:inline-block;background:var(--nm-soft);color:var(--nm-accent-dark);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:900;margin-bottom:13px}
.nm-article-header h1{font-size:clamp(28px,4.2vw,42px);line-height:1.45;letter-spacing:-.025em;margin:0}
.nm-article-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--nm-muted);font-size:12px;margin-top:16px}
.nm-article-eyecatch{margin:30px 0 0;border-radius:12px;overflow:hidden;background:#f5f5f5}
.nm-article-eyecatch img{width:100%;max-height:520px;object-fit:cover}
.nm-toc{margin:38px 0;padding:24px 28px;border:1px solid var(--nm-line);border-radius:14px;background:#fff}
.nm-toc-title{font-weight:900;font-size:16px;margin-bottom:14px}.nm-toc-title span{display:block;color:var(--nm-accent);font-size:10px;letter-spacing:.15em;margin-bottom:2px}
.nm-toc ol{margin:0;padding-left:1.5em}.nm-toc li{padding:6px 0;color:#444}.nm-toc a:hover{color:var(--nm-accent)}
.nm-article-content{font-size:16px;line-height:2;color:#252525}
.nm-article-content>p:first-child{font-size:17px}
.nm-article-content p{margin:0 0 1.55em}
.nm-article-content h2{scroll-margin-top:100px;position:relative;font-size:28px;line-height:1.5;margin:64px 0 25px;padding:14px 18px 14px 22px;background:linear-gradient(90deg,var(--nm-soft),#fff);border-left:5px solid var(--nm-accent);border-radius:3px}
.nm-article-content h3{font-size:21px;line-height:1.55;margin:42px 0 18px;padding-bottom:10px;border-bottom:2px solid #f2bfd6}
.nm-article-content h4{font-size:18px;margin:32px 0 14px}
.nm-article-content ul,.nm-article-content ol{margin:20px 0 28px;padding:18px 24px 18px 46px;background:#fafafa;border-radius:10px}
.nm-article-content li{margin:7px 0}
.nm-article-content a{color:var(--nm-accent-dark);text-decoration:underline;text-underline-offset:3px}
.nm-article-content blockquote{margin:28px 0;padding:20px 24px;background:#fafafa;border-left:4px solid var(--nm-accent);color:#555}
.nm-article-content .wp-block-group.has-background{padding:22px 24px;border-radius:12px}
.nm-article-content .wp-block-table{overflow-x:auto}.nm-article-content table{width:100%;border-collapse:collapse;margin:24px 0}.nm-article-content th,.nm-article-content td{border:1px solid var(--nm-line);padding:12px}.nm-article-content th{background:var(--nm-soft)}
.nm-article-content .is-style-nm-point,.nm-article-content .nm-point-box{margin:28px 0;padding:22px 24px;background:var(--nm-soft);border:1px solid #f6c8dc;border-radius:12px}
.nm-article-content .is-style-nm-note,.nm-article-content .nm-note-box{margin:28px 0;padding:22px 24px;background:#fafafa;border-left:4px solid #555;border-radius:4px}
.nm-article-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:42px;padding-top:24px;border-top:1px solid var(--nm-line)}.nm-article-tags a{background:var(--nm-chip);padding:6px 10px;border-radius:999px;font-size:12px}.nm-article-tags a:hover{background:var(--nm-soft);color:var(--nm-accent-dark)}
.nm-article-related{margin-top:64px;padding-top:32px;border-top:1px solid var(--nm-line)}.nm-related-eyebrow{color:var(--nm-accent);font-size:10px;font-weight:900;letter-spacing:.15em}.nm-article-related h2{font-size:24px;margin:4px 0 20px}.nm-article-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.nm-article-related-card{display:block}.nm-related-thumb{aspect-ratio:16/9;background:#f3f3f3;display:grid;place-items:center;overflow:hidden;color:#aaa;font-size:12px;font-weight:800}.nm-related-thumb img{width:100%;height:100%;object-fit:cover}.nm-article-related-card strong{display:block;font-size:14px;line-height:1.6;margin-top:8px}.nm-article-related-card:hover strong{color:var(--nm-accent)}
@media(max-width:600px){.nm-article-page{padding-top:22px}.nm-article-container{width:min(calc(100% - 24px),860px)}.nm-article-breadcrumb{margin-bottom:22px}.nm-article-header h1{font-size:27px}.nm-article-content{font-size:15.5px}.nm-article-content>p:first-child{font-size:16px}.nm-article-content h2{font-size:23px;margin-top:48px;padding:12px 14px}.nm-article-content h3{font-size:19px;margin-top:34px}.nm-toc{padding:20px}.nm-article-related-grid{grid-template-columns:1fr 1fr;gap:18px 10px}}


/* ===== v0.8.1: top page latest standard posts ===== */
.nm-latest-posts{padding-top:22px}
.nm-section-more{margin-left:auto;color:var(--nm-accent-dark);font-size:13px;font-weight:900;white-space:nowrap}
.nm-section-more:hover{color:var(--nm-accent)}
.nm-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.nm-post-card{border:1px solid var(--nm-line);border-radius:14px;overflow:hidden;background:#fff;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.nm-post-card:hover{transform:translateY(-2px);border-color:#f1b4d0;box-shadow:0 12px 28px rgba(0,0,0,.06)}
.nm-post-card-link{display:block;height:100%}
.nm-post-card-thumb{aspect-ratio:16/9;overflow:hidden;background:#f5f5f5}
.nm-post-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.nm-post-card:hover .nm-post-card-thumb img{transform:scale(1.025)}
.nm-post-card-placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fff4f8,#f6f2f5);color:var(--nm-accent);font-size:13px;font-weight:900;letter-spacing:.12em}
.nm-post-card-body{padding:17px 18px 16px}
.nm-post-card-cat{display:inline-flex;margin-bottom:8px;padding:4px 8px;border-radius:999px;background:var(--nm-soft);color:var(--nm-accent-dark);font-size:11px;font-weight:900}
.nm-post-card h3{margin:0 0 9px;font-size:18px;line-height:1.55}
.nm-post-card p{margin:0;color:var(--nm-muted);font-size:13px;line-height:1.75}
.nm-post-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding-top:13px;border-top:1px solid var(--nm-line);font-size:12px}
.nm-post-card-foot time{color:var(--nm-muted)}
.nm-post-card-foot span{color:var(--nm-accent-dark);font-weight:900}
@media (max-width:900px){.nm-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.nm-post-grid{grid-template-columns:1fr}.nm-section-head{align-items:flex-start;flex-wrap:wrap}.nm-section-more{margin-left:0}.nm-post-card h3{font-size:17px}}

/* v0.8.2 - editorial homepage */
.nm-editorial-hero{padding:72px 0 52px}
.nm-editorial-hero h1{max-width:980px;font-size:clamp(34px,5.4vw,58px);line-height:1.2;margin-top:10px}
.nm-editorial-hero .nm-article-search{max-width:760px;margin-top:28px}
.nm-post-category-grid{margin-top:8px}
@media(max-width:780px){
  .nm-editorial-hero{padding:44px 0 32px}
  .nm-editorial-hero h1{font-size:clamp(30px,9vw,42px)}
}

/* =========================================================
   v0.8.3 Manager comment speech bubble
   Usage: [manager_comment]コメント[/manager_comment]
   ========================================================= */
.nm-manager-comment{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin:34px 0;
}
.nm-manager-comment-avatar-wrap{
  flex:0 0 72px;
  width:72px;
  text-align:center;
}
.nm-manager-comment-avatar{
  width:72px;
  height:72px;
  border-radius:50%;
  object-fit:cover;
  background:#fff;
  border:2px solid #f3c6da;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
}
.nm-manager-comment-name{
  display:block;
  margin-top:6px;
  color:#666;
  font-size:11px;
  font-weight:800;
  line-height:1.4;
}
.nm-manager-comment-bubble{
  position:relative;
  flex:1;
  min-width:0;
  padding:18px 21px;
  border:1px solid #f3bfd5;
  border-radius:16px;
  background:#fff6fa;
  line-height:1.9;
  box-shadow:0 5px 18px rgba(234,63,142,.05);
}
.nm-manager-comment-bubble:before{
  content:"";
  position:absolute;
  left:-10px;
  top:26px;
  width:18px;
  height:18px;
  background:#fff6fa;
  border-left:1px solid #f3bfd5;
  border-bottom:1px solid #f3bfd5;
  transform:rotate(45deg);
}
.nm-manager-comment-bubble p{margin:0 0 .8em}
.nm-manager-comment-bubble p:last-child{margin-bottom:0}
.nm-manager-comment-bubble strong{color:var(--nm-accent-dark)}

@media(max-width:600px){
  .nm-manager-comment{gap:11px;margin:28px 0}
  .nm-manager-comment-avatar-wrap{flex-basis:54px;width:54px}
  .nm-manager-comment-avatar{width:54px;height:54px}
  .nm-manager-comment-name{font-size:10px}
  .nm-manager-comment-bubble{padding:15px 16px;border-radius:14px;font-size:14px}
  .nm-manager-comment-bubble:before{left:-8px;top:20px;width:14px;height:14px}
}


/* v0.8.4 AI Illustration */
.nm-section-more{font-weight:800;text-decoration:none;white-space:nowrap}
.nm-ill-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.nm-ill-card{background:#fff;border:1px solid rgba(24,24,32,.08);border-radius:18px;overflow:hidden;box-shadow:0 10px 30px rgba(24,24,32,.06)}
.nm-ill-card a{text-decoration:none;color:inherit;display:block}
.nm-ill-thumb{aspect-ratio:3/4;background:#f7f2f5;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#a98796;font-size:.75rem;font-weight:800;letter-spacing:.08em}
.nm-ill-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.nm-ill-card:hover .nm-ill-thumb img{transform:scale(1.025)}
.nm-ill-body{padding:14px 15px 16px}
.nm-ill-body h2,.nm-ill-body h3{font-size:1rem;line-height:1.55;margin:0}
.nm-ill-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.nm-ill-tags span,.nm-ill-tags a{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff0f5;color:#b43d67;font-size:.78rem;text-decoration:none;font-weight:700}
.nm-ill-archive-head p{margin:10px 0 0;color:#666}
.nm-ill-single-wrap{max-width:920px}
.nm-ill-single-head{margin:24px 0 28px}
.nm-ill-single-head h1{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.35;margin:8px 0 0}
.nm-ill-content{display:grid;gap:22px}
.nm-ill-content .nm-ai-illustration-stack{display:grid;gap:22px}
.nm-ill-content figure{margin:0}
.nm-ill-content img{display:block;width:100%;height:auto;border-radius:18px}
.nm-ai-disclosure{margin-top:24px;padding:14px 16px;background:#faf7f8;border-radius:12px;color:#6e6267;font-size:.9rem}
.nm-ill-related{margin-top:56px}
.nm-empty{padding:32px;background:#faf7f8;border-radius:16px;color:#766}
@media(max-width:900px){.nm-ill-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.nm-ill-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nm-ill-body{padding:11px}.nm-ill-body h2,.nm-ill-body h3{font-size:.9rem}.nm-section-more{font-size:.85rem}}


/* =========================================================
   v0.8.5 AI Illustration Gallery - dedicated single layout
   ========================================================= */
.nm-ill-single .nm-section{padding-top:28px}
.nm-ill-single-wrap{max-width:1120px}
.nm-ill-single-head{max-width:900px;margin:30px auto 42px;text-align:center}
.nm-ill-single-head .nm-section-eyebrow{font-size:12px;letter-spacing:.18em}
.nm-ill-single-head h1{font-size:clamp(2rem,4.6vw,3.25rem);line-height:1.35;margin:10px 0 0}
.nm-ill-single-head .nm-ill-tags{justify-content:center;margin-top:18px}

.nm-ill-content{display:block;max-width:900px;margin:0 auto}
.nm-ill-content .nm-ai-illustration-stack{
  counter-reset:nm-ill-image;
  display:flex;
  flex-direction:column;
  gap:48px;
  width:100%;
}
.nm-ill-content .nm-ai-illustration-stack figure{
  counter-increment:nm-ill-image;
  position:relative;
  width:100%;
  margin:0;
  padding:0;
}
.nm-ill-content .nm-ai-illustration-stack figure::before{
  content:counter(nm-ill-image, decimal-leading-zero);
  position:absolute;
  z-index:3;
  top:16px;
  left:16px;
  min-width:48px;
  height:48px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--nm-accent-dark);
  font-size:15px;
  font-weight:900;
  letter-spacing:.08em;
  box-shadow:0 8px 24px rgba(30,15,22,.12);
  backdrop-filter:blur(8px);
}
.nm-ill-content .nm-ai-illustration-stack figure::after{
  content:"AI ILLUSTRATION";
  display:block;
  margin:10px 4px 0;
  color:#a68c97;
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
  text-align:right;
}
.nm-ill-content .nm-ai-illustration-stack img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  margin:0 auto;
  border-radius:22px;
  background:#f7f2f5;
  box-shadow:0 18px 46px rgba(23,15,19,.10);
}

/* Gallery pages get a larger, more visible manager bubble. */
.nm-ill-single .nm-manager-comment{
  max-width:900px;
  margin:54px auto 18px;
  gap:18px;
}
.nm-ill-single .nm-manager-comment-avatar-wrap{flex-basis:82px;width:82px}
.nm-ill-single .nm-manager-comment-avatar{width:82px;height:82px}
.nm-ill-single .nm-manager-comment-name{font-size:12px}
.nm-ill-single .nm-manager-comment-bubble{
  padding:23px 26px;
  border-radius:20px;
  font-size:16px;
  line-height:2;
  box-shadow:0 10px 30px rgba(234,63,142,.08);
}
.nm-ill-single .nm-manager-comment-bubble:before{top:30px}

.nm-ai-disclosure{
  max-width:900px;
  margin:30px auto 0;
  padding:15px 18px;
  border:1px solid #f0e4e9;
  background:#fcfafb;
  text-align:center;
}
.nm-ill-related{
  max-width:1040px;
  margin:72px auto 0;
  padding-top:42px;
  border-top:1px solid var(--nm-line);
}
.nm-ill-related .nm-section-head{align-items:center}

@media(max-width:760px){
  .nm-ill-single .nm-section{padding-top:18px}
  .nm-ill-single-wrap{width:min(calc(100% - 20px),1120px)}
  .nm-ill-single-head{margin:20px auto 30px}
  .nm-ill-single-head h1{font-size:clamp(1.65rem,8vw,2.25rem)}
  .nm-ill-content .nm-ai-illustration-stack{gap:34px}
  .nm-ill-content .nm-ai-illustration-stack figure::before{
    top:10px;left:10px;min-width:40px;height:40px;padding:0 10px;font-size:13px
  }
  .nm-ill-content .nm-ai-illustration-stack img{border-radius:16px;box-shadow:0 12px 32px rgba(23,15,19,.10)}
  .nm-ill-single .nm-manager-comment{gap:12px;margin-top:40px}
  .nm-ill-single .nm-manager-comment-avatar-wrap{flex-basis:60px;width:60px}
  .nm-ill-single .nm-manager-comment-avatar{width:60px;height:60px}
  .nm-ill-single .nm-manager-comment-name{font-size:10px}
  .nm-ill-single .nm-manager-comment-bubble{padding:17px 18px;font-size:14.5px;line-height:1.9;border-radius:16px}
  .nm-ill-single .nm-manager-comment-bubble:before{top:22px}
  .nm-ill-related{margin-top:54px;padding-top:32px}
}


/* =========================================================
   v0.8.6 Landscape gallery tuning
   ========================================================= */
.nm-ill-content{max-width:1080px}
.nm-ill-content .nm-ai-illustration-stack{gap:56px}
.nm-ill-content .nm-ai-illustration-stack figure{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.nm-ill-content .nm-ai-illustration-stack figure::before{
  position:static;
  align-self:flex-start;
  min-width:auto;
  width:auto;
  height:auto;
  padding:7px 13px;
  border-radius:999px;
  background:#fff0f6;
  color:var(--nm-accent-dark);
  box-shadow:none;
  backdrop-filter:none;
  font-size:13px;
  letter-spacing:.12em;
  line-height:1;
}
.nm-ill-content .nm-ai-illustration-stack img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:20px;
}
.nm-ill-content .nm-ai-illustration-stack figure::after{margin:0 4px}

@media(max-width:760px){
  .nm-ill-content .nm-ai-illustration-stack{gap:42px}
  .nm-ill-content .nm-ai-illustration-stack figure{gap:9px}
  .nm-ill-content .nm-ai-illustration-stack figure::before{
    position:static;min-width:auto;height:auto;padding:6px 11px;font-size:12px
  }
  .nm-ill-content .nm-ai-illustration-stack img{aspect-ratio:16/9;border-radius:14px}
}


/* v0.8.7: AI gallery keeps the generated landscape image without cropping */
.nm-ill-content .nm-ai-illustration-stack{gap:56px}
.nm-ill-content .nm-ai-illustration-stack figure{margin:0;display:grid;gap:12px}
.nm-ill-content .nm-ai-illustration-stack img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  border-radius:16px;
  box-shadow:0 12px 32px rgba(23,15,19,.10);
}
@media(max-width:700px){
  .nm-ill-content .nm-ai-illustration-stack{gap:42px}
  .nm-ill-content .nm-ai-illustration-stack img{border-radius:12px}
}
