/* 西村貿易 グローバルナビ（ns-megamenu）
 * 値は Claude Design 確定版（Global Navigation All Menus・04 SPEC）。サイトは 1rem=10px なので px で書く。
 * テーマの a / li / img の指定が漏れてくるので、すべて .nsmm 配下に閉じる。 */

.nsmm, .nsmm * { box-sizing: border-box; }
/* テーマが `* {color:#000}` と `a,div,span,… {color:#000; line-height:1.8}` を要素に直接かけるので、色・行間が継承されない。
 * :where で詳細度を (0,1,0) に抑えて打ち消す（下に書いたクラス指定は同じ詳細度・後勝ちで効く） */
.nsmm :where(span, div, svg, dl, dt, dd, p, li, polyline, line, circle) { color: inherit; line-height: inherit; }
.nsmm { color: #000; }
.nsmm a { text-decoration: none; color: #000; }
.nsmm a:hover { text-decoration: none; }
.nsmm img { max-width: none; }
.nsmm [hidden], .nsmm[hidden] { display: none !important; }

.nsmm {
	--nsmm-serif: 'Crimson Text', serif;
	--nsmm-caps: 'Cinzel', serif;
	--nsmm-jp: 'Noto Sans JP', '游ゴシック体', 'YuGothic', '游ゴシック', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
	--nsmm-ease: cubic-bezier(.4, 0, .2, 1);
	font-family: var(--nsmm-serif);
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
}

/* ---------- 英語主＋小さな日本語 ---------- */
.nsmm-label { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nsmm-en { font-family: var(--nsmm-serif); font-size: 19px; line-height: 1.3; letter-spacing: .02em; color: #000; }
.nsmm-ja { font-family: var(--nsmm-jp); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .06em; color: #6B6B6B; }

/* ---------- PC：レイヤー（幕＋パネル） ---------- */
.nsmm-layer { position: absolute; left: 0; right: 0; z-index: 999; }
.nsmm-scrim { position: absolute; left: 0; right: 0; top: 0; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity 200ms var(--nsmm-ease); }
.nsmm-layer.is-open .nsmm-scrim { opacity: 1; }
.nsmm-panels { position: relative; }
.nsmm-panel { position: relative; background: #fff; border-bottom: 1px solid #DDDDDD; box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06); }

.nsmm-band { position: relative; overflow: hidden; height: 48px; background: linear-gradient(90deg, #000 50%, #6C645A 50%); }
.nsmm-band span { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--nsmm-serif); font-size: 56px; line-height: 1; letter-spacing: .02em; color: rgba(255, 255, 255, .14); white-space: nowrap; pointer-events: none; }

.nsmm-inner { max-width: 1320px; margin: 0 auto; padding: 40px 40px 48px; display: grid; gap: 56px; align-items: start; }
.nsmm-g-products { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.nsmm-g-services { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 264px; }
.nsmm-g-projects { grid-template-columns: 240px minmax(0, 1fr) 264px; }
.nsmm-g-brands   { grid-template-columns: minmax(0, 1fr); }
.nsmm-g-showroom { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 264px; }
.nsmm-g-news     { grid-template-columns: minmax(0, 1fr) 264px; }
.nsmm-g-blog     { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 264px; }

.nsmm-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nsmm-col--aside { gap: 16px; }
.nsmm-col--cards { gap: 32px; }
.nsmm-col--offset { padding-top: 42px; }

/* 列見出し：Cinzel キャップス＋細罫 */
.nsmm-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #DDDDDD; }
.nsmm-head__t { font-family: var(--nsmm-caps); font-size: 12px; letter-spacing: .28em; color: #000; line-height: 1.4; }
.nsmm a.nsmm-head__all { display: flex; align-items: center; gap: 4px; font-family: var(--nsmm-serif); font-size: 12px; letter-spacing: .08em; color: #888888; }
.nsmm a.nsmm-head__all:hover { color: #000; }

/* 行 */
.nsmm-list { display: flex; flex-direction: column; }
.nsmm a.nsmm-row { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 56px; transition: opacity 160ms var(--nsmm-ease); }
.nsmm a.nsmm-row:hover { opacity: .6; }
.nsmm a.nsmm-row--cat { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; margin: 0 -12px; white-space: nowrap; transition: background 160ms var(--nsmm-ease); }
.nsmm a.nsmm-row--cat:hover, .nsmm a.nsmm-row--cat:focus-visible { opacity: 1; background: #EEEEEE; }
.nsmm-row__end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: #DDDDDD; }
.nsmm a.nsmm-row--cat:hover .nsmm-row__end, .nsmm a.nsmm-row--cat:focus-visible .nsmm-row__end { color: #000; }
.nsmm-count { font-family: var(--nsmm-serif); font-size: 14px; color: #888888; }
.nsmm a.nsmm-row--brand { min-height: 50px; white-space: nowrap; }
.nsmm-row--brand .nsmm-en, .nsmm-card--brand .nsmm-en { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.nsmm-kicker { font-family: var(--nsmm-caps); font-size: 11px; letter-spacing: .24em; color: #6B6B6B; }

.nsmm-sep { border-top: 1px dotted #888888; margin-top: 12px; padding-top: 12px; }
.nsmm-sep--more { padding-top: 8px; }
.nsmm-pad-top { padding-top: 8px; }

/* 小リンク */
.nsmm a.nsmm-more { display: flex; align-items: center; gap: 10px; min-height: 40px; color: #000; transition: color 160ms var(--nsmm-ease); }
.nsmm a.nsmm-more:hover { color: #666666; }
.nsmm-more__en { font-family: var(--nsmm-serif); font-size: 15px; letter-spacing: .04em; }
.nsmm-chev { flex-shrink: 0; }
.nsmm-links-inline { display: flex; gap: 40px; border-top: 1px solid #DDDDDD; padding-top: 12px; }

/* 黒ボタン（DS Button primary） */
.nsmm a.nsmm-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 64px; padding: 18px 40px 18px 24px; background: #000; border: 1px solid #000; color: #fff; font-family: var(--nsmm-jp); font-weight: 400; font-size: 16px; letter-spacing: .04em; transition: all .26s var(--nsmm-ease); }
.nsmm a.nsmm-btn:hover { background: #666666; border-color: #666666; color: #fff; }
.nsmm-btn .nsmm-chev { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); }

/* 写真 */
.nsmm-photo { display: block; width: 100%; height: 168px; object-fit: cover; }
.nsmm a.nsmm-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: opacity 160ms var(--nsmm-ease); }
.nsmm a.nsmm-card:hover { opacity: .6; }
.nsmm-card__img { display: block; width: 100%; height: 144px; object-fit: cover; flex-shrink: 0; }
.nsmm-card--aside .nsmm-card__img { height: 168px; }
.nsmm-card--project .nsmm-en { font-size: 17px; }
.nsmm-cards { display: grid; gap: 24px; padding-top: 12px; }
.nsmm-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nsmm-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; padding-top: 0; }

/* SHOWROOM */
.nsmm-place { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 16px; }
.nsmm-col--tokyo .nsmm-place { gap: 16px; }
.nsmm-place--osaka { border-bottom: 1px dotted #CCCCCC; }
.nsmm-place--kyoto { padding: 16px 0 4px; }
.nsmm-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-family: var(--nsmm-jp); font-size: 13px; font-weight: 500; line-height: 1.7; letter-spacing: .04em; color: #333333; }
.nsmm-dl dt { font-family: var(--nsmm-caps); font-size: 11px; letter-spacing: .2em; color: #6B6B6B; padding-top: 3px; margin: 0; font-weight: 400; }
.nsmm-dl dd { margin: 0; }
.nsmm a.nsmm-tel { color: #333333; pointer-events: none; }
.nsmm-sp-only { display: none; }

/* NEWS */
.nsmm-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 12px; }
.nsmm a.nsmm-event { display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: opacity 160ms var(--nsmm-ease); }
.nsmm a.nsmm-event:hover { opacity: .6; }
.nsmm-event__img { display: block; width: 100%; height: 184px; object-fit: cover; }
.nsmm-event__img--none { background: #F2EEE6; }
/* 縦長の写真：横長の枠で切らず、縦のまま左に。会期・タイトルは右下に揃える */
.nsmm a.nsmm-event--tall { flex-direction: row; align-items: flex-end; gap: 24px; }
.nsmm-event--tall .nsmm-event__img { width: auto; height: 240px; max-width: 200px; flex-shrink: 0; }
.nsmm-event--tall .nsmm-event__body { padding-bottom: 4px; }
.nsmm-event__body { display: flex; flex-direction: column; gap: 6px; }
.nsmm-event__meta { display: flex; align-items: center; gap: 12px; }
.nsmm-event__date { font-family: var(--nsmm-serif); font-size: 17px; letter-spacing: .04em; color: #000; }
.nsmm-badge { font-family: var(--nsmm-caps); font-size: 11px; letter-spacing: .24em; color: #000; border: 1px solid #000; padding: 2px 7px; line-height: 1.4; }
.nsmm-badge--now { color: #fff; background: #000; }
.nsmm-empty { margin-top: 12px; border: 1px solid #DDDDDD; padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.nsmm-empty__t { display: flex; flex-direction: column; gap: 4px; }
.nsmm-empty__en { font-family: var(--nsmm-serif); font-size: 24px; line-height: 1.3; letter-spacing: .02em; color: #000; }
.nsmm-empty__btn { width: 300px; flex-shrink: 0; }

/* BLOG：POPULAR だけ日本語主 */
.nsmm a.nsmm-pop { display: flex; align-items: center; gap: 20px; min-height: 56px; border-bottom: 1px dotted #CCCCCC; transition: opacity 160ms var(--nsmm-ease); }
.nsmm a.nsmm-pop:hover { opacity: .6; }
.nsmm-pop__n { font-family: var(--nsmm-serif); font-size: 17px; letter-spacing: .04em; color: #888888; width: 20px; flex-shrink: 0; }
.nsmm-pop__t { font-family: var(--nsmm-jp); font-size: 15px; font-weight: 500; line-height: 1.6; letter-spacing: .04em; color: #000; }

/* 幅が足りない PC／タブレット */
@media (max-width: 1180px) {
	.nsmm-inner { gap: 32px; padding: 32px 32px 40px; }
	.nsmm-g-products, .nsmm-g-showroom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.nsmm-g-services, .nsmm-g-blog { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 232px; }
	.nsmm-g-projects { grid-template-columns: 200px minmax(0, 1fr) 232px; }
	.nsmm-g-news { grid-template-columns: minmax(0, 1fr) 232px; }
	.nsmm-col--cards { flex-direction: row; gap: 24px; }
	.nsmm-col--cards .nsmm-card { flex: 1; }
	.nsmm-empty { flex-direction: column; align-items: flex-start; padding: 32px; gap: 24px; }
	.nsmm-empty__btn { width: 100%; }
}
@media (max-width: 960px) {
	.nsmm-g-services, .nsmm-g-blog, .nsmm-g-projects { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.nsmm-g-projects .nsmm-col--offset { padding-top: 0; }
	.nsmm-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nsmm-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nsmm-g-news { grid-template-columns: minmax(0, 1fr); }
	.nsmm-band { height: 36px; }
	.nsmm-band span { font-size: 40px; }
}

/* ---------- ヘッダーへの差し込み（PC） ---------- */
.header-main__gnav li.nsmm-has { display: flex; align-items: flex-start; }
.header-main__gnav li.nsmm-has.is-open > a { border-color: var(--gnav_color_border); }
.nsmm-caret { background: none; border: 0; padding: 0; margin: 0 0 0 2px; width: 20px; height: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gnav_color_text); opacity: .55; }
.nsmm-caret:hover, .nsmm-caret:focus-visible { opacity: 1; }
.nsmm-caret svg { transition: transform 200ms cubic-bezier(.4, 0, .2, 1); }
.nsmm-caret svg, .nsmm-caret polyline, .nsmm-search svg, .nsmm-search circle, .nsmm-search line { color: inherit; }   /* テーマの * {color:#000} を打ち消す（トップは白字） */
li.is-open > .nsmm-caret svg { transform: rotate(180deg); }
.header-main__primary li.nsmm-search-li:before { content: none; }
.header-main__primary li.nsmm-search-li { margin-left: 4px; padding-left: 4px; border-left: 1px solid #DDDDDD; }
.nsmm-search { background: none; border: 0; padding: 8px 0 0 10px; margin: 0; cursor: pointer; color: var(--gnav_color_text); line-height: 1; display: flex; }
.nsmm-search svg { width: 18px; height: 18px; }

/* ---------- スマホ：ハンバーガー内アコーディオン ---------- */
.nav-sp.nsmm-sp { background: #fff !important; overflow-anchor: none; }
.nav-sp.nsmm-sp .nav-sp__items { display: block; width: 100%; min-height: 100%; padding: 64px 20px 40px; text-align: left; background: #fff; }   /* テーマは rgba(0,0,0,.85) をここに敷いている */
.nav-sp.nsmm-sp .gnav-sp { text-align: left; }
.nav-sp.nsmm-sp .gnav-sp > ul.menu-global { display: none; }
.nav-sp.nsmm-sp .uk-offcanvas-close { color: #000; position: absolute; top: 14px; right: 14px; }
.nav-sp.nsmm-sp .menu-primary { justify-content: flex-start; gap: 0 20px; margin-top: 28px; }
.nav-sp.nsmm-sp .menu-primary li { margin-bottom: 12px; }
.nav-sp.nsmm-sp .menu-primary a { color: #000; font-size: 14px; font-family: 'Crimson Text', serif; letter-spacing: .04em; }
.nav-sp.nsmm-sp .menu-primary li:before { content: none; }
.nsmm-search--sp { position: absolute; top: 16px; right: 62px; padding: 6px; color: #000; }
.nsmm-search--sp svg { width: 20px; height: 20px; }

/* テーマの `.nav-sp .gnav-sp a {color:#fff; font-size:1.8rem; line-height:1}` を打ち消す */
.nav-sp.nsmm-sp .gnav-sp .nsmm a { color: #000; font-size: inherit; line-height: inherit; }
.nav-sp.nsmm-sp .gnav-sp .nsmm a.nsmm-btn { color: #fff; font-size: 16px; }
.nav-sp.nsmm-sp .gnav-sp .nsmm a.nsmm-tel { color: #333333; }
.nsmm-acc { border-top: 1px solid #DDDDDD; }
.nsmm-acc__item { border-bottom: 1px solid #DDDDDD; }
.nsmm-acc__bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.nsmm a.nsmm-acc__link { padding: 8px 0; }
.nsmm-acc__link .nsmm-en { font-size: 18px; }
.nsmm-acc__tg { width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; padding: 0; color: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nsmm-acc__tg[aria-expanded="true"] .nsmm-acc__v { display: none; }
.nsmm-acc__body { display: flex; flex-direction: column; padding: 0 0 20px 16px; border-left: 1px solid #DDDDDD; margin-bottom: 16px; }
.nsmm-acc .nsmm-col { gap: 0; }
.nsmm-acc .nsmm-head { border: 0; padding: 16px 0 4px; }
.nsmm-acc .nsmm-head__all { display: none; }
.nsmm-acc .nsmm-en { font-size: 17px; }
.nsmm-acc .nsmm-row--brand .nsmm-en, .nsmm-acc .nsmm-card--brand .nsmm-en { font-size: 15px; }
.nsmm-acc a.nsmm-row--cat { margin: 0; padding: 6px 0; white-space: normal; }
.nsmm-acc a.nsmm-row--brand { white-space: normal; }
/* スマホでは写真を出さない（display:none の lazy 画像は読み込まれない） */
.nsmm-acc .nsmm-photo, .nsmm-acc .nsmm-card__img, .nsmm-acc .nsmm-event__img { display: none; }
.nsmm-acc .nsmm-cards, .nsmm-acc .nsmm-events { display: flex; flex-direction: column; gap: 0; padding-top: 0; }
.nsmm-acc a.nsmm-card, .nsmm-acc a.nsmm-event { min-height: 56px; justify-content: center; gap: 2px; padding: 6px 0; }
.nsmm-acc .nsmm-event__body { gap: 2px; }
.nsmm-acc .nsmm-col--cards { gap: 0; padding-top: 8px; }
.nsmm-acc .nsmm-col--aside { gap: 12px; padding-top: 16px; }
.nsmm-acc .nsmm-col--offset { padding-top: 16px; }
.nsmm-acc .nsmm-sep { margin-top: 8px; padding-top: 4px; }
.nsmm-acc .nsmm-links-inline { flex-direction: column; gap: 0; border-top: 1px dotted #888888; margin-top: 8px; padding-top: 4px; }
.nsmm-acc .nsmm-place { padding: 12px 0 16px; gap: 10px; }
.nsmm-acc .nsmm-place .nsmm-label .nsmm-en { font-size: 17px; }
.nsmm-acc a.nsmm-tel { pointer-events: auto; text-decoration: underline; text-underline-offset: 3px; }
.nsmm-acc .nsmm-sp-only { display: block; }
.nsmm-acc .nsmm-empty { padding: 24px 20px; flex-direction: column; align-items: stretch; gap: 16px; }
.nsmm-acc .nsmm-empty__btn { width: 100%; }
.nsmm-acc .nsmm-empty__en { font-size: 20px; }
