@charset "UTF-8";
/* ==========================================================
   テーマ chillz_ninkyo（任侠：黒漆・朱漆・金箔）
   元のテーマ chillz の style.css・singleShop.css の上に重ねる。
   ヘッダー・フッター・メニューはすべてのページ、ほかはトップページだけ。
   スマホを主に作る（390px で見て、パソコンは後から合わせる）。
   派手さは光らせず、金と朱の量で押す。ネオン・点滅は使わない。
   絵は歌川国貞「当世好男子伝」・歌川国芳「龍宮玉取姫之図」
   （メトロポリタン美術館のパブリックドメイン）を墨一色に落とし、朱だけ残したもの。
   ========================================================== */

/* ページの外側も地の色に。iPhone の Safari はスクロール中にまだ描けていない所や、上下の端を引っぱった所を html・body の背景で埋めるので、
   元の明るい灰色（#f6f6f6）のままだと一瞬白く飛んで見える */
html, body.theme-nk { background-color: #0b0908; }
body.theme-nk {
  --nk-bg: #0b0908;        /* 黒漆 */
  --nk-bg2: #17110e;       /* 墨の板 */
  --nk-ink: #f1e7d0;       /* 生成り */
  --nk-dim: #b4a68c;
  --nk-red: #b3120f;       /* 朱漆 */
  --nk-red2: #e2362a;      /* 明るい朱（落款・暗い地の上の朱） */
  --nk-gold: #d9ae4f;
  --nk-gold2: #f2d27c;
  --nk-line: rgba(217, 174, 79, .35);
  --nk-paper: #f1e7d0;
  --nk-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --nk-brush: "Yuji Boku", "Shippori Mincho B1", serif;
  --nk-antique: "Shippori Antique B1", "Shippori Mincho B1", serif;
  --nk-gothic: "Shippori Antique B1", "Shippori Mincho B1", serif;
  /* 金：砂子（不揃いな金の粉と箔）。格子の継ぎ目は使わない */
  --nk-sunago: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .7 0 0 0 9 -6.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --nk-kinpaku: var(--nk-sunago), radial-gradient(ellipse at 20% 30%, rgba(255, 236, 170, .55), transparent 45%), radial-gradient(ellipse at 80% 75%, rgba(120, 72, 8, .45), transparent 50%), linear-gradient(118deg, #a5741c 0%, #edc96c 26%, #b8842a 47%, #f6dc8e 63%, #b9852b 82%, #e8c264 100%);
  /* 鱗文様（厄除け）：朱と黒、金と黒 */
  --nk-uroko-shu: linear-gradient(135deg, #b3120f 25%, transparent 25%) 0 0 / 16px 16px, linear-gradient(225deg, #b3120f 25%, transparent 25%) 0 0 / 16px 16px, #0b0908;
  --nk-uroko-kin: linear-gradient(135deg, #d9ae4f 25%, transparent 25%) 0 0 / 16px 16px, linear-gradient(225deg, #d9ae4f 25%, transparent 25%) 0 0 / 16px 16px, #0b0908;
  /* 墨のむら（地にうっすら） */
  --nk-sumimura: radial-gradient(ellipse 60% 40% at 15% 20%, rgba(70, 10, 10, .35), transparent 70%), radial-gradient(ellipse 50% 50% at 85% 70%, rgba(60, 40, 20, .3), transparent 70%);
  /* 金の字 */
  --nk-goldtext: linear-gradient(180deg, #fff1c2 0%, #e9c46a 35%, #9c6b16 55%, #f2d27c 78%, #b98a2c 100%);
}

/* ---------- 共通の部品 ---------- */
/* 金箔の面。数秒に一度、光がすっと走る */
.theme-nk .nk-gold { position: relative; overflow: hidden; background: var(--nk-kinpaku); color: #1a0f05; }
.theme-nk .nk-gold::after { content: ""; position: absolute; inset: -20% auto -20% -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 250, 220, .55), transparent); rotate: 12deg; animation: nk-glint 6s ease-in-out infinite; pointer-events: none; }
/* 光の筋は left ではなく translate で動かす（left だと毎フレーム配置と描き直しが走り、iPhone でスクロールがカクつく）。幅 40% の筋を親の -60% → 130% へ＝自分の幅の 475% */
@keyframes nk-glint { 0%, 70% { translate: 0 0; } 100% { translate: 475% 0; } }
.theme-nk .nk-goldtext { background: var(--nk-goldtext); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .8)); }
/* 筆のかすれ（SVG のフィルターは default_frame.twig の中） */
.theme-nk .nk-bokashi { filter: url(#nk-rough); }
/* 落款（朱の四角に生成りの字） */
.theme-nk .nk-rakkan {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--nk-red2);
  color: var(--nk-ink);
  font-family: var(--nk-antique);
  font-size: 16px;
  font-weight: normal;
  line-height: 1.32;
  letter-spacing: .08em;
  text-align: center;
  writing-mode: vertical-rl;
  rotate: -6deg;
  box-shadow: inset 0 0 0 3px var(--nk-red2), inset 0 0 0 5px rgba(241, 231, 208, .75);
  filter: url(#nk-rough2);
  text-shadow: none;
}

/* ---------- ヘッダー（すべてのページ） ---------- */
.theme-nk header.ec-layoutRole__header { position: relative; z-index: 20; background: var(--nk-bg); padding: 0; }
/* お断りの帯：朱漆に金の字、上下に金の細い線 */
.theme-nk .nk-tape {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  background: var(--nk-red);
  box-shadow: inset 0 1px 0 rgba(242, 210, 124, .5), inset 0 -1px 0 rgba(242, 210, 124, .5);
  color: #ffe7a8;
  font-family: var(--nk-antique);
  font-size: 11px;
  letter-spacing: .28em;
  text-align: center;
  white-space: nowrap;
}
.theme-nk .ec-headerNaviRole {
  align-items: center;
  padding: 10px 16px;
  border: 0;
  background: var(--nk-sumimura), var(--nk-bg);
}
.theme-nk .ec-headerNaviRole__logo_inner { width: auto; margin-left: 0; }
.theme-nk h1.nk-logo { margin: 0; }
.theme-nk h1.nk-logo > a { display: inline-flex; align-items: center; gap: 9px; width: auto; color: var(--nk-ink); text-decoration: none; }
.theme-nk .nk-logo__mon { flex: none; width: 40px; height: 40px; color: #e9c46a; filter: drop-shadow(0 0 6px rgba(217, 174, 79, .45)); }
.theme-nk .nk-logo__txt { display: block; text-align: left; line-height: 1; }
.theme-nk .nk-logo__txt b { display: block; font-family: var(--nk-antique); font-weight: normal; font-size: 27px; letter-spacing: .06em; background: var(--nk-goldtext); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .8)); }
.theme-nk .nk-logo__txt small { display: block; margin-top: 3px; font-family: var(--nk-mincho); font-size: 9px; font-weight: 500; color: var(--nk-dim); letter-spacing: .42em; }
/* ヘッダーの下に鱗文様の縁（厄除け） */
.theme-nk .nk-uroko { display: block; height: 10px; background: var(--nk-uroko-shu); }
.theme-nk .nk-uroko--kin { background: var(--nk-uroko-kin); }
.theme-nk .nk-uroko--down { rotate: 180deg; }

/* 検索・ログイン（パソコン） */
.theme-nk .ec-headerNav .ec-headerNav__itemIcon,
.theme-nk .ec-headerNav .ec-headerNav__itemLink { color: var(--nk-ink); }
.theme-nk .ec-headerSearch .ec-headerSearch__category .ec-select select,
.theme-nk .ec-headerSearch .ec-headerSearch__keyword { border-radius: 0; }
.theme-nk .ec-headerSearch .ec-headerSearch__keyword { background: var(--nk-bg2); border: 1px solid var(--nk-line); }
.theme-nk .ec-headerSearch .ec-headerSearch__keyword input { color: var(--nk-ink); background: transparent; }
.theme-nk .ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search { background: var(--nk-red); }

/* ヘッダーのボタン（品書・籠）：朱漆の四角に金の縁、四隅に箪笥の角金具 */
.theme-nk .ec-cartNavi,
.theme-nk .ec-headerNavSP {
  position: relative;
  background: var(--nk-red);
  border: 2px solid var(--nk-gold);
  border-radius: 0;
  box-shadow: inset 0 0 0 2px #5a0806;
  color: #ffe7a8;
}
.theme-nk .ec-cartNavi::before,
.theme-nk .ec-headerNavSP::before {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  --g: linear-gradient(#f2d27c, #b98a2c);
  background: var(--g) 0 0 / 9px 2px, var(--g) 0 0 / 2px 9px, var(--g) 100% 0 / 9px 2px, var(--g) 100% 0 / 2px 9px, var(--g) 0 100% / 9px 2px, var(--g) 0 100% / 2px 9px, var(--g) 100% 100% / 9px 2px, var(--g) 100% 100% / 2px 9px;
  background-repeat: no-repeat;
}
.theme-nk .ec-cartNavi .ec-cartNavi__price { color: #ffe7a8; }
/* 籠の数：生成りの丸に朱の字 */
.theme-nk .ec-cartNavi .ec-cartNavi__badge {
  background: var(--nk-ink);
  color: var(--nk-red);
  font-family: var(--nk-antique);
  font-weight: normal;
  box-shadow: 0 0 0 2px var(--nk-red), 0 2px 4px rgba(0, 0, 0, .6);
}

/* ---------- トップページ ---------- */
#page_homepage.theme-nk .ec-layoutRole,
#page_homepage.theme-nk .ec-layoutRole__contents { background: var(--nk-bg); }
#page_homepage.theme-nk .ec-layoutRole .ec-layoutRole__contents { margin-top: 0; max-width: none; }
#page_homepage.theme-nk .ec-layoutRole__main,
#page_homepage.theme-nk .ec-layoutRole__mainBottom { color: var(--nk-ink); font-family: var(--nk-mincho); }

/* 大看板：九紋龍史進の刺青に、口上と大きな筆文字 */
.theme-nk .nk-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 720px;
  background: #070505;
  isolation: isolate;
}
.theme-nk .nk-hero__art {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 18%;
}
.theme-nk .nk-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 5, 5, .25) 0%, rgba(7, 5, 5, 0) 30%, rgba(7, 5, 5, .55) 66%, rgba(7, 5, 5, .96) 100%),
    linear-gradient(90deg, rgba(7, 5, 5, .74) 0%, rgba(7, 5, 5, .12) 46%, rgba(7, 5, 5, .35) 100%);
}
.theme-nk .nk-hero__fx { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
/* 桜吹雪と朱の煙（theme.js が作る）。動かすのは translate・rotate・scale だけ（iPhone では GPU 側で動き、スクロール中も止まらない） */
.theme-nk .nk-sakura { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.theme-nk .nk-sakura__wind { position: absolute; inset: 0; }
.theme-nk .nk-smoke {
  position: absolute; top: 45%; left: calc(20% + 30% * var(--k)); width: 110%; aspect-ratio: 1; margin: -55% 0 0 -55%; border-radius: 50%; /* margin の % は幅が基準なので、丸の真ん中が (left, top) に来る */
  background: radial-gradient(closest-side, rgba(160, 18, 16, .2), rgba(160, 18, 16, 0));
  animation: nk-smoke calc(38s + 9s * var(--k)) ease-in-out calc(-7s * var(--k)) infinite alternate;
}
@keyframes nk-smoke { 0% { translate: -13% -18%; } 50% { translate: 11% 6%; } 100% { translate: -4% 22%; } }
.theme-nk .nk-petal { position: absolute; top: -30px; left: var(--x); width: var(--s); height: var(--s); animation: nk-fall var(--dur) linear var(--delay) infinite; }
.theme-nk .nk-petal b {
  display: block; width: 100%; height: 100%; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 2 2'%3E%3Cpath d='M0-1Q.9-.3 0 1Q-.9-.3 0-1Z' fill='%23f6c9d4'/%3E%3Cpath d='M0-1L-.18-.55L.18-.55Z' fill='%23d9667e' fill-opacity='.55'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: nk-pspin var(--spin) linear infinite, nk-pflip var(--flip) ease-in-out infinite alternate, nk-psway var(--sway) ease-in-out infinite alternate;
}
.theme-nk .nk-petal.is-gold b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 2 2'%3E%3Cpath d='M0-1Q.9-.3 0 1Q-.9-.3 0-1Z' fill='%23f0cf78'/%3E%3Cpath d='M0-1L-.18-.55L.18-.55Z' fill='%239c6b16' fill-opacity='.55'/%3E%3C/svg%3E"); }
@keyframes nk-fall { from { translate: 0 0; } to { translate: var(--dx) var(--fall, 780px); } }
@keyframes nk-pspin { to { rotate: 360deg; } }
@keyframes nk-pflip { from { scale: 1 .12; } to { scale: 1 1; } }
@keyframes nk-psway { from { translate: -9px 0; } to { translate: 9px 0; } }
.theme-nk .nk-sakura.is-off :is(.nk-petal, .nk-petal b, .nk-smoke) { animation-play-state: paused; }
/* 金屏風の縁と四隅の金具 */
.theme-nk .nk-hero__frame {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 2px solid rgba(217, 174, 79, .75);
  box-shadow: inset 0 0 0 5px rgba(7, 5, 5, .4), inset 0 0 0 6px rgba(217, 174, 79, .45);
}
.theme-nk .nk-hero__frame i { position: absolute; width: 34px; height: 34px; background: var(--nk-kinpaku); clip-path: polygon(0 0, 100% 0, 100% 28%, 28% 28%, 28% 100%, 0 100%); }
.theme-nk .nk-hero__frame i:nth-child(1) { left: -4px; top: -4px; }
.theme-nk .nk-hero__frame i:nth-child(2) { right: -4px; top: -4px; rotate: 90deg; }
.theme-nk .nk-hero__frame i:nth-child(3) { right: -4px; bottom: -4px; rotate: 180deg; }
.theme-nk .nk-hero__frame i:nth-child(4) { left: -4px; bottom: -4px; rotate: 270deg; }

/* 提灯：SVG（#nk-chochin）。ゆっくり揺れる。押すと大きく揺れる（theme.js） */
.theme-nk .nk-chochin {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 66px;
  padding: 0;
  border: 0;
  background: none;
  transform-origin: 50% 0;
  animation: nk-sway 6s ease-in-out infinite;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-nk .nk-chochin--l { left: 26px; }
.theme-nk .nk-chochin--r { right: 26px; animation-delay: -3s; }
.theme-nk .nk-chochin::before { content: ""; display: block; width: 1px; height: 12px; margin: 0 auto; background: linear-gradient(#000, #6b5a3a); }
.theme-nk .nk-chochin svg { display: block; width: 66px; height: 116px; overflow: visible; filter: drop-shadow(0 0 14px rgba(255, 96, 40, .42)) drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); transition: filter .4s; }
.theme-nk .nk-chochin b {
  position: absolute;
  left: 0;
  right: 0;
  /* 字の箱を提灯の胴（SVG の 24〜148 / 176）にぴったり重ね、胴の真ん中に字を置く */
  top: calc(12px + 116px * 24 / 176);
  display: grid;
  place-items: center;
  height: calc(116px * 124 / 176);
  writing-mode: vertical-rl;
  font-family: var(--nk-brush);
  font-weight: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .02em;
  color: #1c0a05;
  opacity: .88;
  mix-blend-mode: multiply;
  filter: url(#nk-rough2);
}
/* 押したとき：大きく揺れて、灯が一瞬強くなる */
.theme-nk .nk-chochin.is-swing { animation: nk-swing 2.4s cubic-bezier(.3, .1, .3, 1) both; }
.theme-nk .nk-chochin.is-swing svg { filter: drop-shadow(0 0 26px rgba(255, 120, 50, .7)) drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
@keyframes nk-sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes nk-swing { 0% { rotate: 0deg; } 12% { rotate: 22deg; } 30% { rotate: -16deg; } 48% { rotate: 10deg; } 66% { rotate: -6deg; } 84% { rotate: 3deg; } 100% { rotate: 0deg; } }

/* 口上と大きな筆文字 */
.theme-nk .nk-hero__in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 132px 30px 0; }
.theme-nk .nk-kojo {
  position: relative;
  margin: 0;
  max-height: 360px;
  writing-mode: vertical-rl;
  color: #e5d8bf;
  font-family: var(--nk-mincho);
  font-size: 13px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .14em;
  text-shadow: 0 0 6px #000, 0 0 12px #000;
}
.theme-nk .nk-kojo b { color: #ffd77a; font-weight: 800; }
.theme-nk .nk-big {
  position: relative;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--nk-brush);
  font-size: clamp(80px, 23vw, 170px);
  font-weight: normal;
  line-height: .98;
  letter-spacing: -.04em;
  color: var(--nk-ink);
  text-shadow: 0 0 1px rgba(241, 231, 208, .6), 5px 7px 0 #5a0806, 9px 12px 0 rgba(0, 0, 0, .6);
}
.theme-nk .nk-big .nk-rakkan { position: absolute; right: 2px; bottom: -16px; width: 76px; height: 76px; font-size: 19px; }
.theme-nk .nk-hero__foot { position: relative; padding: 34px 30px 100px; }
.theme-nk .nk-hero__lead { margin: 0 0 6px; font-family: var(--nk-brush); font-size: 24px; letter-spacing: .1em; }
.theme-nk .nk-hero__sub { margin: 0 0 18px; color: #d8cbb2; font-size: 12px; letter-spacing: .12em; }

/* 押す札：金箔に墨の字、朱の縁、房が下がる */
.theme-nk .nk-cta-wrap { position: relative; max-width: 420px; }
.theme-nk .nk-cta-wrap::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 100%;
  width: 10px;
  height: 34px;
  background: linear-gradient(180deg, var(--nk-gold) 0 6px, var(--nk-red) 6px 10px, var(--nk-red2) 10px 100%);
  clip-path: polygon(30% 0, 70% 0, 70% 30%, 100% 100%, 0 100%, 30% 30%);
  transform-origin: 50% 0;
  animation: nk-sway 4s ease-in-out infinite;
}
.theme-nk .nk-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 20px;
  border: 3px solid var(--nk-red);
  box-shadow: 0 0 0 2px var(--nk-gold), 0 10px 24px rgba(0, 0, 0, .6);
  font-family: var(--nk-antique);
  font-size: 18px;
  letter-spacing: .3em;
  text-decoration: none !important;
  color: #1a0f05 !important;
  transition: translate .12s, box-shadow .12s;
}
.theme-nk .nk-cta span:last-child { font-family: var(--nk-mincho); letter-spacing: 0; color: var(--nk-red); font-size: 22px; transition: translate .25s; }
.theme-nk .nk-cta:active { translate: 0 2px; box-shadow: 0 0 0 2px var(--nk-gold), 0 4px 10px rgba(0, 0, 0, .6); }
.theme-nk .nk-cta:focus-visible { outline: 3px solid #fff1c2; outline-offset: 3px; }
/* 下へ */
.theme-nk .nk-cue { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.theme-nk .nk-cue span { writing-mode: vertical-rl; color: rgba(229, 216, 191, .75); font-size: 10px; letter-spacing: .35em; text-shadow: 0 1px 3px #000; }
.theme-nk .nk-cue i { position: relative; width: 1px; height: 30px; background: linear-gradient(rgba(217, 174, 79, .8), rgba(217, 174, 79, 0)); }
.theme-nk .nk-cue i::after { content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; rotate: 45deg; background: var(--nk-red2); animation: nk-cue 2.4s ease-in infinite; }
@keyframes nk-cue { 0% { translate: 0 0; opacity: 0; } 20% { opacity: 1; } 80%, 100% { translate: 0 26px; opacity: 0; } }

/* 入会の証文（会員でない人だけ。大看板のすぐ下） */
.theme-nk .nk-shomon { position: relative; z-index: 3; padding: 0 16px; margin: 26px 0 0; }
.theme-nk .nk-shomon__in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 14px;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 18px 20px;
  border: 3px solid var(--nk-red);
  box-shadow: 0 0 0 2px var(--nk-gold), 0 14px 30px rgba(0, 0, 0, .7);
  text-decoration: none !important;
  color: #1a0f05 !important;
}
.theme-nk .nk-shomon__ttl { grid-column: 1 / -1; margin: 0; padding-bottom: 6px; border-bottom: 1px solid rgba(26, 15, 5, .35); font-family: var(--nk-antique); font-size: 13px; letter-spacing: .3em; }
.theme-nk .nk-shomon__num { margin: 2px 0 0; font-family: var(--nk-brush); font-size: 56px; line-height: 1.05; color: var(--nk-red); }
.theme-nk .nk-shomon__num small { font-size: 22px; }
.theme-nk .nk-shomon__txt { grid-column: 1; margin: 0; font-size: 13px; font-weight: 800; line-height: 1.7; color: #3a2408; }
.theme-nk .nk-shomon__go {
  grid-column: 2;
  grid-row: 2 / 4;
  display: grid;
  place-items: center;
  width: 50px;
  min-height: 96px;
  background: var(--nk-red);
  color: #ffe7a8;
  font-family: var(--nk-brush);
  font-size: 22px;
  line-height: 1.15;
  writing-mode: vertical-rl;
  box-shadow: 0 0 0 2px #1a0f05, 3px 3px 0 #1a0f05;
  transition: translate .12s, box-shadow .12s;
}
.theme-nk .nk-shomon__in:active .nk-shomon__go { translate: 2px 2px; box-shadow: 0 0 0 2px #1a0f05, 1px 1px 0 #1a0f05; }
.theme-nk .nk-shomon { position: relative; max-width: 592px; margin-left: auto; margin-right: auto; }
.theme-nk .nk-shomon > .nk-rakkan { position: absolute; z-index: 2; left: 8px; top: -18px; width: 54px; height: 54px; font-size: 13px; pointer-events: none; }
.theme-nk .nk-shomon__ttl { padding-left: 40px; }

/* 見出し：朱漆の札に金の筆文字、横に金の一本線と朱の菱 */
.theme-nk .nk-sec { position: relative; padding: 52px 16px; background: var(--nk-sumimura), var(--nk-bg); }
.theme-nk .nk-ttl { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 26px; }
.theme-nk .nk-ttl__kan {
  flex: none;
  margin: 0;
  padding: 8px 20px 12px 16px;
  background: var(--nk-red);
  border: 2px solid var(--nk-gold);
  box-shadow: 4px 4px 0 #000, 0 0 0 5px var(--nk-bg), 0 0 0 6px rgba(217, 174, 79, .6);
  font-family: var(--nk-brush);
  font-size: 38px;
  font-weight: normal;
  line-height: 1.05;
}
.theme-nk .nk-ttl__kan span { background: linear-gradient(180deg, #fff1c2 0%, #f0cf78 45%, #c5952e 60%, #ffe39a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-nk .nk-ttl__sub { margin: 0; color: var(--nk-dim); font-size: 12px; letter-spacing: .15em; white-space: nowrap; }
.theme-nk .nk-ttl__rule {
  flex: 1;
  min-width: 20px;
  height: 12px;
  background:
    linear-gradient(45deg, transparent 35%, var(--nk-red2) 35% 65%, transparent 65%) 0 50% / 12px 12px no-repeat,
    linear-gradient(-45deg, transparent 35%, var(--nk-red2) 35% 65%, transparent 65%) 0 50% / 12px 12px no-repeat,
    linear-gradient(90deg, #f2d27c, rgba(217, 174, 79, .6) 40%, transparent) 14px 50% / 100% 2px no-repeat;
}
.theme-nk .nk-ttl__more { display: none; color: var(--nk-gold); font-size: 13px; letter-spacing: .2em; white-space: nowrap; text-decoration: none; }
.theme-nk .nk-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 320px;
  min-height: 50px;
  margin: 30px auto 0;
  border: 1px solid var(--nk-gold);
  box-shadow: inset 0 0 0 3px var(--nk-bg), inset 0 0 0 4px rgba(217, 174, 79, .45);
  color: var(--nk-gold) !important;
  font-family: var(--nk-antique);
  font-size: 15px;
  letter-spacing: .25em;
  text-decoration: none !important;
}
.theme-nk .nk-more:active { background: rgba(217, 174, 79, .15); }

/* 新入荷（並びは newProduct.js が作る）：金蒔絵の縁＋朱漆の名札 */
.theme-nk .nk-new #new_item_wrap { margin-top: 0; height: auto; min-height: 200px; padding-bottom: 0; }
.theme-nk .nk-new #new_item_wrap > .top_block_title { display: none; }
.theme-nk .nk-new ul#new_item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 14px;
  margin: 0;
  padding: 0;
  filter: none;
  overflow: visible;
}
.theme-nk .nk-new ul#new_item > li {
  position: relative;
  width: auto;
  margin: 0 !important;
  padding: 5px;
  background: var(--nk-kinpaku);
  box-shadow: 0 0 0 1px #3a2408, 0 12px 26px rgba(0, 0, 0, .7);
}
/* 四隅の金の鋲 */
.theme-nk .nk-new ul#new_item > li::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  pointer-events: none;
  --s: radial-gradient(circle, #fff1c2 0 1px, #b98a2c 1.6px 2.4px, transparent 2.8px);
  background: var(--s) 0 0 / 7px 7px, var(--s) 100% 0 / 7px 7px, var(--s) 0 100% / 7px 7px, var(--s) 100% 100% / 7px 7px;
  background-repeat: no-repeat;
}
.theme-nk .nk-new ul#new_item > li > a { display: block; height: 100%; color: var(--nk-ink); text-decoration: none; background: var(--nk-red); }
.theme-nk .nk-new ul#new_item > li > a > ul { display: flex; flex-direction: column; height: 100%; }
/* 中の段に元から付いている下の余白（値段の段は 15px）を消す。残ると黒い枠の下に朱がはみ出す */
.theme-nk .nk-new ul#new_item > li > a > ul > li { margin: 0 !important; }
.theme-nk .nk-new ul#new_item > li > a > ul > li:first-child { border: 2px solid #1a0f05; border-bottom: 0; background: #0b0908; }
.theme-nk .nk-new ul#new_item > li > a > ul > li > img { display: block; width: 100%; filter: saturate(.92) contrast(1.04); }
.theme-nk .nk-new ul#new_item > li > a > ul > li:not(:first-child) {
  padding-left: 9px;
  padding-right: 9px;
  border-left: 2px solid #1a0f05;
  border-right: 2px solid #1a0f05;
  background: var(--nk-red);
  box-shadow: inset 3px 0 0 var(--nk-red), inset 4px 0 0 rgba(242, 210, 124, .45), inset -3px 0 0 var(--nk-red), inset -4px 0 0 rgba(242, 210, 124, .45);
}
.theme-nk .nk-new ul#new_item > li > a > ul > li:nth-of-type(2) { padding-top: 9px; box-shadow: inset 3px 0 0 var(--nk-red), inset 4px 0 0 rgba(242, 210, 124, .45), inset -3px 0 0 var(--nk-red), inset -4px 0 0 rgba(242, 210, 124, .45), inset 0 4px 0 rgba(242, 210, 124, .45); }
.theme-nk .nk-new ul#new_item > li > a > ul > li:last-child { flex: 1; padding-bottom: 8px; border-bottom: 2px solid #1a0f05; box-shadow: inset 3px 0 0 var(--nk-red), inset 4px 0 0 rgba(242, 210, 124, .45), inset -3px 0 0 var(--nk-red), inset -4px 0 0 rgba(242, 210, 124, .45), inset 0 -4px 0 rgba(242, 210, 124, .45); }
.theme-nk .nk-new ul#new_item > li > a > ul > li > h3 { margin: 0; color: var(--nk-ink); font-family: var(--nk-mincho); font-size: 13px; font-weight: 800; letter-spacing: .04em; line-height: 1.5; }
.theme-nk .nk-new ul#new_item > li > a > ul > li:last-child > span {
  font-family: var(--nk-antique);
  font-size: 19px;
  font-weight: normal;
  letter-spacing: .04em;
  background: var(--nk-goldtext);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .7));
}
/* 値引きの札：朱の小札 */
.theme-nk .nk-new ul#new_item > li > a > ul > li:first-child > span { background: var(--nk-red2); color: var(--nk-ink); font-family: var(--nk-antique); font-weight: normal; transform: none; font-size: 11px; padding: 3px 7px; }
/* 順位：画像の左上に、黒漆の番付の小札「其ノ壱」（下の端は燕尾） */
.theme-nk .nk-new ul#new_item > li > a::after {
  display: block;
  top: 7px;
  left: 13px;
  width: auto;
  height: auto;
  padding: 6px 3px 9px;
  border-radius: 0;
  background: var(--nk-bg) !important;
  color: #e9c46a;
  font-family: var(--nk-antique);
  font-size: 10px;
  line-height: 1.05;
  letter-spacing: .1em;
  writing-mode: vertical-rl;
  text-shadow: none;
  filter: none;
  animation: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%);
}
.theme-nk .nk-new ul#new_item > li:nth-of-type(1) > a::after { content: "其ノ壱"; color: #fff1c2; background: var(--nk-red) !important; }
.theme-nk .nk-new ul#new_item > li:nth-of-type(2) > a::after { content: "其ノ弐"; }
.theme-nk .nk-new ul#new_item > li:nth-of-type(3) > a::after { content: "其ノ参"; }
.theme-nk .nk-new ul#new_item > li:nth-of-type(4) > a::after { content: "其ノ四"; }
.theme-nk .nk-new ul#new_item > li:nth-of-type(5) > a::after { content: "其ノ五"; }
.theme-nk .nk-new ul#new_item > li:nth-of-type(6) > a::after { content: "其ノ六"; }
.theme-nk .nk-new ul#new_item > li:nth-of-type(7) > a::after { content: "其ノ七"; }
.theme-nk .nk-new ul#new_item > li:nth-of-type(8) > a::after { content: "其ノ八"; }
.theme-nk .nk-new ul#new_item > li:nth-of-type(9) > a::after { content: "其ノ九"; }
.theme-nk .nk-new ul#new_item > li:nth-of-type(n+10) > a::after { content: none; }
.theme-nk .nk-new ul#new_item > li:active { translate: 0 2px; }

/* 刺青の帯：花和尚魯智深の牡丹。上下は金の鱗文様 */
.theme-nk .nk-band { position: relative; height: 340px; overflow: hidden; background: #070505; }
.theme-nk .nk-band::before,
.theme-nk .nk-band::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; height: 10px; background: var(--nk-uroko-kin); }
.theme-nk .nk-band::before { top: 0; }
.theme-nk .nk-band::after { bottom: 0; rotate: 180deg; }
.theme-nk .nk-band__art { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 50% 30%; translate: 0 var(--nk-par, 0px); will-change: translate; }
.theme-nk .nk-band__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 5, 5, .55), rgba(7, 5, 5, 0) 25%, rgba(7, 5, 5, 0) 68%, rgba(7, 5, 5, .85)); }
.theme-nk .nk-band__word { position: absolute; z-index: 2; left: 16px; bottom: 20px; margin: 0; font-family: var(--nk-brush); font-size: 34px; letter-spacing: .1em; }

/* 品揃え：家紋入りの暖簾。上に金の竿、乳（竿を通す輪）、襞、裾の白抜きの線 */
.theme-nk .nk-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.theme-nk .nk-noren {
  --c: #9c1410;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 236px;
  padding: 26px 8px 64px;
  color: var(--nk-ink) !important;
  text-decoration: none !important;
  background:
    linear-gradient(180deg, transparent 8px, rgba(0, 0, 0, .45) 8px 20px, transparent 20px) 14% 0 / 9px 100% no-repeat,
    linear-gradient(180deg, transparent 8px, rgba(0, 0, 0, .45) 8px 20px, transparent 20px) 50% 0 / 9px 100% no-repeat,
    linear-gradient(180deg, transparent 8px, rgba(0, 0, 0, .45) 8px 20px, transparent 20px) 86% 0 / 9px 100% no-repeat,
    linear-gradient(180deg, transparent calc(100% - 22px), rgba(241, 231, 208, .55) calc(100% - 22px) calc(100% - 20px), rgba(0, 0, 0, .3) calc(100% - 20px)),
    linear-gradient(90deg, transparent 22%, rgba(255, 255, 255, .04) 30%, transparent 38%, rgba(0, 0, 0, .12) 46%, transparent 54%, rgba(255, 255, 255, .04) 66%, transparent 74%, rgba(0, 0, 0, .1) 82%, transparent 90%),
    linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 15%, transparent 85%, rgba(0, 0, 0, .25)),
    var(--c);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 51.5% 100%, 51.5% 84%, 48.5% 84%, 48.5% 100%, 0 100%);
  transform-origin: 50% 0;
}
.theme-nk .nk-noren--2 { --c: #4a1c5c; }
.theme-nk .nk-noren--3 { --c: #1c2f5a; }
.theme-nk .nk-noren--4 { --c: #5a3410; }
/* 金の竿と、竿の両端の金具 */
.theme-nk .nk-noren::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--nk-kinpaku); }
.theme-nk .nk-noren::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 12px;
  pointer-events: none;
  --k: radial-gradient(circle at 50% 50%, #fff1c2 0 1.5px, #b98a2c 2.5px 4px, transparent 4.5px);
  background: var(--k) 0 50% / 12px 12px no-repeat, var(--k) 100% 50% / 12px 12px no-repeat;
}
/* 白抜きの家紋の丸に、品目の一字 */
.theme-nk .nk-noren__mon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--nk-ink);
  color: var(--c);
  box-shadow: 0 0 0 3px var(--c), 0 0 0 5px var(--nk-ink);
  font-family: var(--nk-brush);
  font-size: 40px;
  line-height: 1;
}
.theme-nk .nk-noren__name { margin-top: 14px; font-family: var(--nk-brush); font-size: 22px; line-height: 1.2; letter-spacing: .06em; text-align: center; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.theme-nk .nk-noren__en { display: block; margin-top: 6px; color: #fff1c2; font-family: var(--nk-antique); font-size: 9px; line-height: 1.5; letter-spacing: .14em; text-align: center; opacity: .85; }
.theme-nk .nk-noren__en em { display: block; font-family: var(--nk-mincho); font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .06em; }
.theme-nk .nk-noren__go { position: absolute; left: 0; right: 0; bottom: 30px; color: #ffe7a8; font-family: var(--nk-antique); font-size: 11px; letter-spacing: .3em; text-align: center; }
.theme-nk .nk-noren .nk-rakkan { position: absolute; right: 6px; top: 16px; width: 44px; height: 44px; font-size: 11px; }
.theme-nk .nk-noren:active .nk-noren__mon { scale: .95; }
/* 押すと暖簾がはためく（fun.js が is-flap を付ける） */
.theme-nk .nk-noren.is-flap { animation: nk-flap .9s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes nk-flap { 25% { transform: skewX(-8deg) scaleY(1.04); } 55% { transform: skewX(5deg); } 80% { transform: skewX(-2deg); } }

/* 瓦版（お知らせ。元の .ec-newsRole の作りを使う） */
#page_homepage.theme-nk .ec-role.nk-news { max-width: none; padding: 52px 16px; background: var(--nk-bg); }
.theme-nk .nk-news .ec-newsRole { position: relative; left: auto; right: auto; transform: none; width: 100%; max-width: 920px; margin: 0; padding: 0; background: none; }
.theme-nk .nk-news .ec-newsRole:after { display: none; }
.theme-nk .nk-news .ec-newsRole__news {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--nk-line);
  border-radius: 0;
  background: var(--nk-bg2);
  box-shadow: inset 0 0 0 3px var(--nk-bg2), inset 0 0 0 4px rgba(217, 174, 79, .2);
}
.theme-nk .nk-news .ec-newsRole__newsItem { padding: 6px 0; border-bottom: 1px solid rgba(217, 174, 79, .18) !important; }
.theme-nk .nk-news .ec-newsRole__newsItem:last-child { border-bottom: 0 !important; }
.theme-nk .nk-news .ec-newsRole__newsDate { color: var(--nk-gold); font-family: var(--nk-antique); font-size: 12px; letter-spacing: .08em; }
.theme-nk .nk-news .ec-newsRole__newsTitle { color: var(--nk-ink); font-family: var(--nk-mincho); font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.theme-nk .nk-news .ec-newsRole__newsCloseBtn { background: var(--nk-red); border: 1px solid var(--nk-gold); border-radius: 0; }
.theme-nk .nk-news .ec-newsRole__newsCloseBtn i { color: #ffe7a8; }
.theme-nk .nk-news .ec-newsRole__newsDescription { color: var(--nk-ink); font-size: 14px; line-height: 1.9; }
.theme-nk .nk-news .ec-newsRole__newsDescription a { color: var(--nk-gold); }
.theme-nk .nk-news #news_readmore { background: transparent; border: 1px solid var(--nk-gold); border-radius: 0; color: var(--nk-gold); font-family: var(--nk-antique); letter-spacing: .2em; }
/* 開け閉めのボタン：アイコンを上下左右の中心に、開くと 180 度回す */
.theme-nk .nk-news .ec-newsRole__newsCloseBtn { display: grid; place-items: center; box-sizing: border-box; width: 26px; height: 26px; padding: 0; line-height: 1; }
.theme-nk .nk-news .ec-newsRole__newsCloseBtn i { display: block; line-height: 1; transform: none; transition: transform .25s; }
.theme-nk .nk-news .ec-newsRole__newsItem.is_active .ec-newsRole__newsCloseBtn i { transform: rotate(180deg); }

/* ---------- 足元（すべてのページ）：金屏風に墨の締め、上に朱の鱗文様 ---------- */
.theme-nk .ec-footerRole {
  position: relative;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: var(--nk-kinpaku);
  color: #1a0f05;
  overflow: visible;
}
.theme-nk .ec-footerRole::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: var(--nk-uroko-shu); rotate: 180deg; }
.theme-nk .ec-footerRole__inner { position: relative; overflow: hidden; padding: 44px 16px calc(40px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.theme-nk .ec-footerRole__inner::after { content: ""; position: absolute; inset: -20% auto -20% -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 250, 220, .5), transparent); rotate: 12deg; animation: nk-glint 7s ease-in-out infinite; pointer-events: none; }
.theme-nk .nk-foot__mon { display: block; width: 50px; height: 50px; margin: 0 auto 10px; color: #1a0f05; opacity: .85; }
.theme-nk .nk-foot__sign { margin: 0; font-family: var(--nk-brush); font-size: clamp(26px, 7.5vw, 40px); letter-spacing: .06em; color: #1a0f05; }
.theme-nk .ec-footerNavi {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  column-gap: 10px;
  max-width: 400px;
  margin: 20px auto 0;
  padding: 0;
  border: 0;
}
.theme-nk .ec-footerNavi .ec-footerNavi__link { display: block; border: 0 !important; text-align: left; }
.theme-nk .ec-footerNavi .ec-footerNavi__link a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px 0 16px;
  border: 0;
  color: #1a0f05;
  font-family: var(--nk-mincho);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}
.theme-nk .ec-footerNavi .ec-footerNavi__link a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; rotate: 45deg; background: var(--nk-red); }
.theme-nk .ec-footerNavi .ec-footerNavi__link a:active { color: var(--nk-red); }
.theme-nk .ec-footerTitle { display: block; width: 100%; margin-top: 14px; padding: 0; text-align: center; }
.theme-nk .ec-footerTitle .ec-footerTitle__copyright { color: #3a2408; font-family: var(--nk-mincho); font-size: 12px; font-weight: 800; }
.theme-nk .nk-foot__note { margin: 6px 0 0; color: #3a2408; font-size: 11px; font-weight: 800; }

/* ==========================================================
   動き（theme.js と組み合わせる）
   JS が動かないとき・「視差効果を減らす」の人には、止まった見た目のまま
   ========================================================== */
/* 大きな筆文字：筆で書くように現れる */
.theme-nk .nk-char { display: inline-block; }
.nk-js .theme-nk .nk-char { animation: nk-brush 1.1s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(.15s + var(--i) * .14s); }
@keyframes nk-brush { from { clip-path: inset(0 -20% 100% -20%); filter: blur(6px); translate: 0 -12px; } to { clip-path: inset(0 -20% -20% -20%); filter: blur(0); translate: 0 0; } }
.nk-js .theme-nk .nk-kojo { animation: nk-fade 1.4s ease .1s backwards; }
@keyframes nk-fade { from { opacity: 0; translate: 0 -16px; } }
/* 落款をポンと押す */
.nk-js .theme-nk .nk-big .nk-rakkan { animation: nk-stamp .5s cubic-bezier(.3, 1.6, .5, 1) .85s backwards; }
@keyframes nk-stamp { from { opacity: 0; scale: 2.4; filter: blur(3px); } 70% { opacity: 1; scale: .92; filter: blur(0); } to { opacity: 1; scale: 1; } }

/* スクロールで現れる */
.nk-js:not(.nk-reduce) .theme-nk [data-nk-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s ease, translate .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * .09s);
}
.theme-nk [data-nk-reveal].is-in { opacity: 1 !important; translate: 0 0 !important; }
/* 見出し：札が押され、金の線が伸びる */
.theme-nk .nk-ttl__rule { transform-origin: left center; transition: scale 1.2s cubic-bezier(.2, .7, .2, 1) .3s; }
.nk-js:not(.nk-reduce) .theme-nk .nk-ttl:not(.is-in) .nk-ttl__rule { scale: 0 1; }
.nk-js:not(.nk-reduce) .theme-nk .nk-ttl.is-in .nk-ttl__kan { animation: nk-stamp .5s cubic-bezier(.3, 1.6, .5, 1) backwards; }
/* 暖簾は竿から順に降りてくる */
.nk-js:not(.nk-reduce) .theme-nk .nk-noren[data-nk-reveal] { translate: 0 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path .9s cubic-bezier(.2, .7, .2, 1), opacity .4s; transition-delay: calc(var(--i, 0) * .1s); }
.nk-js:not(.nk-reduce) .theme-nk .nk-noren[data-nk-reveal].is-in { clip-path: polygon(0 0, 100% 0, 100% 100%, 51.5% 100%, 51.5% 84%, 48.5% 84%, 48.5% 100%, 0 100%); }

/* ---------- スマホ：押した手応え ---------- */
@media (hover: none) {
  /* 品書のボタンは translate で上下の中心にそろえているので、押したときに translate を変えない（変えるとボタンが指の下から逃げ、1 回目のタップが押したことにならない） */
  .theme-nk .ec-cartNavi:active,
  .theme-nk .ec-headerNavSP:active { scale: .94; filter: brightness(1.15); }
}
/* パソコン：乗せたときの手応え */
@media (hover: hover) {
  .theme-nk .nk-cta:hover span:last-child { translate: 6px 0; }
  .theme-nk .nk-new ul#new_item > li { transition: translate .3s, box-shadow .3s; }
  .theme-nk .nk-new ul#new_item > li:hover { translate: 0 -4px; box-shadow: 0 0 0 1px #3a2408, 0 18px 34px rgba(0, 0, 0, .8); }
  .theme-nk .nk-noren:hover .nk-noren__mon { box-shadow: 0 0 0 3px var(--c), 0 0 0 5px #fff1c2, 0 0 24px rgba(255, 220, 150, .35); }
  .theme-nk .nk-more:hover { background: rgba(217, 174, 79, .12); }
}

/* ==========================================================
   スマホのヘッダー：メニュー（品書）・ロゴ・籠
   ボタンはロゴと上下の中心をそろえ、ヘッダーが画面から出たら
   左上に固定して出す（html.nav-float は theme.js が付ける）
   ========================================================== */
@media screen and (max-width: 767px) {
  .theme-nk .ec-headerNaviRole { position: relative; min-height: 70px; }
  .theme-nk .ec-headerNavSP {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1000;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    width: 48px;
    height: 48px;
    padding: 0;
    translate: 0 -50%;
    color: #ffe7a8;
    font-size: 17px;
    -webkit-tap-highlight-color: transparent;
  }
  .theme-nk .ec-headerNavSP .fas { position: static; display: block; transform: none; line-height: 1; }
  .theme-nk .ec-headerNavSP::after { content: "品書"; font-family: var(--nk-antique); font-size: 10px; line-height: 1; letter-spacing: .1em; color: #ffe7a8; }
  .nav-float .theme-nk .ec-headerNavSP {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    translate: 0 0;
    box-shadow: inset 0 0 0 2px #5a0806, 0 6px 16px rgba(0, 0, 0, .6);
    animation: nk-navdrop .25s cubic-bezier(.2, .8, .2, 1);
  }
  @keyframes nk-navdrop { from { opacity: 0; translate: 0 -12px; } }

  /* 籠：絵の代わりに「籠」の字と「御会計」 */
  .theme-nk .ec-cartNavi {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    width: 48px;
    height: 48px;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .theme-nk .ec-cartNavi .ec-cartNavi__icon { position: static; display: grid; place-items: center; margin: 0; font-size: 0; line-height: 1; }
  .theme-nk .ec-cartNavi .ec-cartNavi__icon .fas { display: none; }
  .theme-nk .ec-cartNavi .ec-cartNavi__icon::before { content: "籠"; font-family: var(--nk-antique); font-size: 19px; line-height: 1; color: #ffe7a8; }
  .theme-nk .ec-cartNavi::after { content: "御会計"; font-family: var(--nk-antique); font-size: 9px; line-height: 1; letter-spacing: .02em; color: #ffe7a8; }
  .theme-nk .ec-cartNavi .ec-cartNavi__badge { position: absolute; top: -11px; right: -11px; left: auto; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; font-size: 12px; line-height: 22px; text-align: center; }
  .theme-nk .ec-cartNavi .ec-cartNavi__label { display: none; }
  .theme-nk .ec-headerNaviRole__right { padding-right: 0; }
  /* ロゴを画面の真ん中に（ロゴの入れ物は左端から籠の手前まで。籠の幅だけ左を空ける） */
  .theme-nk .ec-headerNaviRole__logo { padding-left: 48px; }
}

/* ==========================================================
   メニュー（品書）：羽織の派手裏のように、裏地に龍（歌川国芳）
   ========================================================== */
.theme-nk .ec-drawerRole {
  width: min(88vw, 350px);
  height: 100vh;
  height: 100dvh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(7, 5, 5, .2), rgba(7, 5, 5, 0) 30%, rgba(7, 5, 5, .55) 78%, rgba(7, 5, 5, .92)),
    #0b0908;
  border-right: 6px solid transparent;
  border-image: linear-gradient(180deg, #f2d27c, #9c6b16, #f2d27c) 1;
  color: var(--nk-ink);
  transform: perspective(1200px) translateX(-105%);
  transform-origin: 0 50%;
  visibility: hidden;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s .38s;
}
.theme-nk .ec-drawerRole.is_active {
  transform: perspective(1200px) translateX(0);
  visibility: visible;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s;
  box-shadow: 14px 0 40px rgba(0, 0, 0, .7);
}
/* 裏地の龍は、メニューを開こうとしたときに読む（theme.js が is-lined を付ける。トップの表示を待たせない） */
.theme-nk .ec-drawerRole.is-lined {
  background:
    linear-gradient(180deg, rgba(7, 5, 5, .2), rgba(7, 5, 5, 0) 30%, rgba(7, 5, 5, .55) 78%, rgba(7, 5, 5, .92)),
    var(--nk-ryu) 12% 0 / cover no-repeat,
    #0b0908;
}
/* 羽織を翻すように開く（裏地が見える） */
.nk-js:not(.nk-reduce) .theme-nk .ec-drawerRole.is_active { animation: nk-haori .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes nk-haori { from { transform: perspective(1200px) translateX(-30%) rotateY(-70deg); } }
/* いちばん上の看板：代紋・品書・おしながき（theme.js が足す .nk-drawerHead） */
.theme-nk .nk-drawerHead { display: flex; align-items: center; gap: 8px; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 12px; }
.theme-nk .nk-drawerHead svg { width: 32px; height: 32px; color: var(--nk-gold); }
.theme-nk .nk-drawerHead b { font-family: var(--nk-brush); font-size: 40px; font-weight: normal; line-height: 1; background: var(--nk-goldtext); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .8)); }
.theme-nk .nk-drawerHead small { align-self: flex-end; margin-bottom: 4px; color: var(--nk-dim); font-size: 10px; letter-spacing: .3em; }
.theme-nk .nk-drawerHead + .nk-uroko { height: 8px; margin-bottom: 6px; background: var(--nk-uroko-kin); background-size: 12px 12px; opacity: .85; }
/* 見出し（カテゴリから探す・サイトコンテンツ） */
.theme-nk .ec-drawerRole .ec-headerCategoryArea .ec-headerCategoryArea__heading,
.theme-nk .ec-drawerRole h3.sideTtl_sp {
  margin: 0;
  padding: 16px 16px 8px;
  border: 0;
  background: none;
  color: #e9c46a;
  font-family: var(--nk-antique);
  font-size: 12px;
  letter-spacing: .3em;
  text-shadow: 0 1px 3px #000;
}
.theme-nk .ec-drawerRole .ec-headerCategoryArea .ec-headerCategoryArea__heading p { color: inherit; margin: 0; }
.theme-nk .ec-drawerRole .ec-headerCategoryArea .ec-headerCategoryArea__heading p::before,
.theme-nk .ec-drawerRole h3.sideTtl_sp::before { content: "◆ "; color: var(--nk-red2); }
.theme-nk .ec-drawerRole .ec-headerCategoryArea,
.theme-nk .ec-drawerRole .ec-headerLinkArea { background: none; }
.theme-nk .ec-drawerRole .ec-itemNav__nav,
.theme-nk .ec-drawerRole .ec-itemNav__nav li { background: none; border: 0; }
/* 品書の一行：朱の落款に品目の一字、金の一本線で区切る。右へいくほど透けて裏地の龍が見える */
.theme-nk .ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav > li > a,
.theme-nk .ec-drawerRole .ec-headerLinkArea .ec-headerLink__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 40px 8px 12px;
  border: 0;
  background: linear-gradient(90deg, rgba(7, 5, 5, .88) 0, rgba(7, 5, 5, .7) 45%, rgba(7, 5, 5, .14) 100%);
  color: var(--nk-ink);
  font-family: var(--nk-antique);
  font-size: 15px;
  font-weight: normal;
  letter-spacing: .08em;
  text-decoration: none;
  text-shadow: 0 1px 3px #000, 0 0 8px #000;
  -webkit-tap-highlight-color: transparent;
}
.theme-nk .ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav > li > a::before,
.theme-nk .ec-drawerRole .ec-headerLinkArea .ec-headerLink__item::before {
  content: "";
  position: absolute;
  left: 60px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 210, 124, .7), rgba(242, 210, 124, 0));
}
/* 落款（品目の頭の一字。theme.js が data-k に入れる） */
.theme-nk .ec-drawerRole .nk-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--nk-red);
  color: var(--nk-ink);
  font-family: var(--nk-brush);
  font-size: 20px;
  font-style: normal;
  line-height: 1;
  text-shadow: none;
  box-shadow: inset 0 0 0 2px var(--nk-red), inset 0 0 0 3px rgba(241, 231, 208, .7);
  rotate: -3deg;
  filter: url(#nk-rough2);
}
.theme-nk .ec-drawerRole li:nth-child(even) > a > .nk-seal { rotate: 2deg; }
.theme-nk .ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav li a:after {
  content: "❯";
  top: 50%;
  right: 16px;
  color: var(--nk-gold2);
  font-family: var(--nk-mincho);
  font-size: 13px;
  font-weight: normal;
  border: 0;
  width: auto;
  height: auto;
  transform: translateY(-50%);
  rotate: none;
}
/* 子のカテゴリ：落款なし、少し字下げ */
.theme-nk .ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav li ul { background: none; }
.theme-nk .ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav li ul li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 40px 8px 60px;
  border: 0;
  background: linear-gradient(90deg, rgba(7, 5, 5, .8), rgba(7, 5, 5, .1));
  color: #e5d8bf;
  font-family: var(--nk-mincho);
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 3px #000;
}
.theme-nk .ec-drawerRole :is(.ec-itemNav__nav li a, .ec-headerLink__item):active { background: linear-gradient(90deg, rgba(179, 18, 15, .8), rgba(179, 18, 15, .15)); }
.theme-nk .ec-drawerRole .ec-headerLinkArea .ec-headerLink__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(217, 174, 79, .6); color: var(--nk-gold); font-size: 15px; text-align: center; }
.theme-nk .ec-drawerRole .ec-headerLinkArea .ec-headerLink__list { border-top: 0; padding-bottom: 16px; }
.theme-nk .ec-drawerRole .ec-headerLinkArea .ec-headerLink__label { color: inherit; }
/* 下の添え書き */
.theme-nk .nk-drawerNote { margin: 18px 16px 0; color: #e5d8bf; font-size: 12px; line-height: 1.9; text-shadow: 0 1px 3px #000; }
/* 開いたとき、上から順に差し込む */
.nk-js:not(.nk-reduce) .theme-nk .ec-drawerRole.is_active :is(.ec-itemNav__nav > li, .ec-headerLink__item, .nk-drawerLuck) { animation: nk-navitem .42s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: .12s; }
.theme-nk .ec-drawerRole.is_active :is(.ec-itemNav__nav > li, .ec-headerLink__item):nth-child(2) { animation-delay: .16s; }
.theme-nk .ec-drawerRole.is_active :is(.ec-itemNav__nav > li, .ec-headerLink__item):nth-child(3) { animation-delay: .2s; }
.theme-nk .ec-drawerRole.is_active :is(.ec-itemNav__nav > li, .ec-headerLink__item):nth-child(4) { animation-delay: .24s; }
.theme-nk .ec-drawerRole.is_active :is(.ec-itemNav__nav > li, .ec-headerLink__item):nth-child(5) { animation-delay: .28s; }
.theme-nk .ec-drawerRole.is_active :is(.ec-itemNav__nav > li, .ec-headerLink__item):nth-child(6) { animation-delay: .32s; }
.theme-nk .ec-drawerRole.is_active :is(.ec-itemNav__nav > li, .ec-headerLink__item):nth-child(n+7) { animation-delay: .36s; }
@keyframes nk-navitem { from { opacity: 0; translate: -20px 0; } }

/* メニューの中の運試しの入り口（fun.js が足す）：金箔の札に壺と賽 */
.theme-nk .nk-drawerLuck {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  min-height: 62px;
  margin: 4px 16px 6px;
  padding: 10px 14px;
  border: 3px solid var(--nk-red);
  border-radius: 0;
  box-shadow: 0 0 0 2px var(--nk-gold), 0 8px 18px rgba(0, 0, 0, .6);
  color: #1a0f05;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-nk .nk-drawerLuck b { display: block; font-family: var(--nk-brush); font-size: 19px; font-weight: normal; letter-spacing: .08em; }
.theme-nk .nk-drawerLuck small { display: block; color: #3a2408; font-family: var(--nk-mincho); font-size: 11px; font-weight: 800; }
.theme-nk .nk-drawerLuck svg { flex: none; width: 40px; height: 40px; }
.theme-nk .nk-drawerLuck:active { translate: 0 2px; }

/* 閉じるボタン：メニューの右上の外に、朱漆の四角「閉」 */
.theme-nk .ec-drawerRoleClose {
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: calc(min(88vw, 350px) + 10px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--nk-gold);
  border-radius: 0;
  background: var(--nk-red);
  box-shadow: inset 0 0 0 2px #5a0806, 0 6px 16px rgba(0, 0, 0, .5);
  color: #ffe7a8;
  font-size: 0;
}
.theme-nk .ec-drawerRoleClose i { display: none; }
.theme-nk .ec-drawerRoleClose::after { content: "閉"; font-family: var(--nk-antique); font-size: 20px; line-height: 1; }
.theme-nk .ec-drawerRoleClose:not(.is_active) { display: none; }
.theme-nk .ec-drawerRoleClose.is_active { animation: nk-stamp .4s cubic-bezier(.3, 1.6, .5, 1) .18s backwards; }
.have_curtain.theme-nk .ec-overlayRole { background: rgba(5, 4, 3, .72); }

/* ---------- いろいろな直し（和テーマから引き継ぐ） ---------- */
/* 横のはみ出しの歯止め */
.theme-nk .ec-layoutRole { overflow-x: clip; }
/* 一覧の中の商品説明（description_list）と、開くボタンは使わない */
.theme-nk :is(.newProdOpenButton, .topProdOpenButton, .relationProdOpenButton, .checkedHistoryProdOpenButton, .trendProdOpenButton, .packProdOpenButton) { display: none !important; }
.theme-nk :is(#new_item_wrap, #relation_wrap, #trend_wrap, #pack_item_wrap, #trend01_item_wrap, #trend02_item_wrap, #trend03_item_wrap, #history, #history_child, #product_lists_wrap) li:has(> h4) { display: none !important; }
/* 商品の札（カテゴリ・♂♀など）：黒漆の札に金の字 */
.theme-nk ol.tagBar > li { margin: 0 6px 6px 0; padding: 4px 6px; border: 1px solid var(--nk-line); border-radius: 0; background: #14100d; color: var(--nk-gold); font-size: 11px; line-height: 1.2; }
/* ポップアップ（PopupBuilder）のボタン：生成りの字に */
.theme-nk .popup-builder a.popup-builder__button { color: #f6ead2 !important; }

/* ---------- タブレット・パソコン ---------- */
@media screen and (min-width: 768px) {
  .theme-nk .nk-tape { font-size: 12px; letter-spacing: .4em; }
  .theme-nk .ec-headerNaviRole { padding: 14px 32px; }
  .theme-nk .nk-logo__mon { width: 46px; height: 46px; }
  .theme-nk .nk-logo__txt b { font-size: 32px; }
  .theme-nk .ec-cartNavi { padding: 8px 14px; }

  .theme-nk .nk-hero { min-height: 760px; }
  .theme-nk .nk-hero__art { object-position: 50% 20%; }
  .theme-nk .nk-hero__in { max-width: 1080px; margin: 0 auto; width: 100%; padding: 150px 48px 0; grid-template-columns: auto auto 1fr; gap: 40px; }
  .theme-nk .nk-kojo { order: 2; font-size: 15px; max-height: 420px; }
  .theme-nk .nk-big { order: 1; font-size: 170px; }
  .theme-nk .nk-hero__foot { max-width: 1080px; width: 100%; margin: 0 auto; padding: 30px 48px 90px; }
  .theme-nk .nk-hero__lead { font-size: 30px; }
  .theme-nk .nk-chochin--l { left: 48px; }
  .theme-nk .nk-chochin--r { right: 48px; }
  .theme-nk .nk-chochin, .theme-nk .nk-chochin svg { width: 84px; }
  .theme-nk .nk-chochin svg { height: 148px; }
  .theme-nk .nk-chochin b { top: calc(12px + 148px * 24 / 176); height: calc(148px * 124 / 176); font-size: 28px; }
  .theme-nk .nk-shomon { margin-top: -50px; }

  .theme-nk .nk-sec { padding: 80px 7%; }
  #page_homepage.theme-nk .ec-role.nk-news { padding: 80px 7%; }
  .theme-nk .nk-ttl { max-width: 1080px; margin: 0 auto 40px; gap: 18px; }
  .theme-nk .nk-ttl__kan { font-size: 52px; }
  .theme-nk .nk-ttl__more { display: inline; }
  .theme-nk .nk-new ul#new_item { max-width: 1080px; margin: 0 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
  .theme-nk .nk-new ul#new_item > li > a > ul > li > h3 { font-size: 14px; }
  .theme-nk .nk-band { height: 440px; }
  .theme-nk .nk-band__word { left: 7%; font-size: 48px; }
  .theme-nk .nk-cats { max-width: 1080px; margin: 0 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .theme-nk .nk-noren { min-height: 280px; }
  .theme-nk .nk-news .ec-newsRole { margin: 0 auto; }
  .theme-nk .ec-footerRole__inner { display: flex; flex-direction: column; align-items: center; padding-top: 56px; }
  .theme-nk .ec-footerNavi { grid-template-columns: repeat(3, auto); column-gap: 18px; max-width: none; }
}

/* 「視差効果を減らす」の人には動かさない */
@media (prefers-reduced-motion: reduce) {
  .theme-nk *, .theme-nk *::before, .theme-nk *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================
   ページのいちばん上へ戻るボタン（元の chillz の灰色の丸い矢印をやめる）
   出し入れ（300px 読み進めたら出る）と押したときの動きは元の function.js のまま。
   ヘッダーの品書・籠と同じ朱漆に金の縁、四隅に角金具。「▲」と「上ヘ」。親指の届く右下
   ========================================================== */
.theme-nk .ec-blockTopBtn {
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 7000;
  width: 48px;
  height: 56px;
  padding: 0;
  border: 2px solid var(--nk-gold);
  border-radius: 0;
  background: var(--nk-red);
  box-shadow: inset 0 0 0 2px #5a0806, 0 8px 18px rgba(0, 0, 0, .6);
  color: #ffe7a8;
  line-height: 1;
  opacity: 1;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: scale .12s, filter .12s;
}
.theme-nk .ec-blockTopBtn > i { display: none; }
/* 四隅の角金具 */
.theme-nk .ec-blockTopBtn::before {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  --g: linear-gradient(#f2d27c, #b98a2c);
  background: var(--g) 0 0 / 9px 2px, var(--g) 0 0 / 2px 9px, var(--g) 100% 0 / 9px 2px, var(--g) 100% 0 / 2px 9px, var(--g) 0 100% / 9px 2px, var(--g) 0 100% / 2px 9px, var(--g) 100% 100% / 9px 2px, var(--g) 100% 100% / 2px 9px;
  background-repeat: no-repeat;
}
/* 金の三角と「上ヘ」 */
.theme-nk .ec-blockTopBtn::after {
  content: "▲\A上ヘ";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  padding-bottom: 1px;
  white-space: pre;
  color: #ffe7a8;
  font-family: var(--nk-antique);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .04em;
}
/* 押したときは位置を動かさない（縮んで明るくなるだけ） */
.theme-nk .ec-blockTopBtn:active { scale: .94; filter: brightness(1.15); }
@media screen and (min-width: 768px) { .theme-nk .ec-blockTopBtn { right: 30px; bottom: 30px; } }
@media print { .theme-nk .ec-blockTopBtn { display: none !important; } }

/* ---------- 大看板の縦書き：箱の大きさを中身ぴったりに決める ----------
   大きさを決めない縦書きは、WebKit（iPhone）が画面の高さ（スクロールでアドレスバーが縮むと変わる）を元に
   組み直すことがあり、口上が横にずれて見える。中身で決めて、画面の大きさに左右されないようにする */
.theme-nk .nk-kojo,
.theme-nk .nk-big { width: max-content; height: max-content; max-height: none; justify-self: start; align-self: start; }

/* ---------- 新入荷：札配り（裏向きで配られ、着いたら表に返る。そのあと其ノ札が揺れる） ---------- */
.theme-nk .nk-new ul#new_item > li > a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border: 3px solid #d9ae4f;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23d9ae4f'%3E%3Ccircle cx='50' cy='50' r='46' stroke-width='6'/%3E%3Ccircle cx='50' cy='50' r='36' stroke-width='2'/%3E%3C/g%3E%3Cg fill='%23d9ae4f'%3E%3Cpath id='p' d='M50 22c7 6 8 13 2 19 6 1 9 6 7 12-4-6-10-7-13-3-4-5-3-11 2-14-5-4-3-10 2-14z'/%3E%3Cuse href='%23p' transform='rotate(120 50 50)'/%3E%3Cuse href='%23p' transform='rotate(240 50 50)'/%3E%3C/g%3E%3C/svg%3E") 50% 50% / 46% no-repeat, radial-gradient(ellipse at 40% 30%, #c8180f, #7a0a07 60%, #4a0504);
  box-shadow: inset 0 0 0 5px #7a0a07, inset 0 0 0 6px rgba(242, 210, 124, .6);
  opacity: 0;
}
.nk-js:not(.nk-reduce) .theme-nk .nk-new ul#new_item > li[data-nk-reveal].is-in {
  animation: nk-deal-top .7s cubic-bezier(.2, .75, .25, 1) calc(var(--i, 0) * .14s) both;
}
.nk-js:not(.nk-reduce) .theme-nk .nk-new ul#new_item > li[data-nk-reveal].is-in > a::before {
  animation: nk-back-top .7s linear calc(var(--i, 0) * .14s) both;
}
.nk-js:not(.nk-reduce) .theme-nk .nk-new ul#new_item > li[data-nk-reveal].is-in > a::after {
  transform-origin: 50% 0;
  animation: nk-tag-swing 1.3s ease-out calc(var(--i, 0) * .14s + .6s) both;
}
@keyframes nk-deal-top {
  0% { transform: translate(90px, -120px) rotate(18deg); }
  52% { transform: translate(0, 0) rotate(-2deg) scaleX(1); }
  74% { transform: rotate(0deg) scaleX(0); }
  100% { transform: none; }
}
@keyframes nk-back-top { 0%, 73.9% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes nk-tag-swing {
  0% { transform: translateY(-14px) rotate(0deg); opacity: 0; }
  20% { transform: translateY(0) rotate(16deg); opacity: 1; }
  40% { transform: rotate(-11deg); }
  60% { transform: rotate(6deg); }
  80% { transform: rotate(-3deg); }
  100% { transform: none; opacity: 1; }
}
/* 一番新しい札（其ノ壱）は、返ったあと金の光が走る */
.theme-nk .nk-new ul#new_item > li:first-child { overflow: hidden; }
.theme-nk .nk-new ul#new_item > li:first-child::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 246, 214, .5) 50%, transparent 58%);
  translate: -70% 0;
}
.nk-js:not(.nk-reduce) .theme-nk .nk-new ul#new_item > li:first-child.is-in::after { animation: nk-sheen-top 4.8s ease-in-out .9s infinite; }
@keyframes nk-sheen-top { 0% { translate: -70% 0; } 25%, 100% { translate: 70% 0; } }
/* 札が画面の外から飛んでくる間に、ページが横に広がらないように（iPhone で横にずれない） */
.theme-nk .nk-new { overflow-x: clip; }

/* =====================================================================
   関連アイテム・閲覧済の商品の列（js/rail.js が整える）。2 つの列を同じ札・同じ仕掛けにそろえる
   ===================================================================== */
.xr-ttl { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; padding: 0 20px; margin: 34px 0 0; }
.xr-ttl > .xr-ttl__main { flex: none; margin: 0 !important; overflow: visible; white-space: nowrap; text-overflow: clip; }
.xr-ttl > .xr-ttl__sub { flex: none; white-space: nowrap; }
.xr-ttl > span:not(.xr-ttl__sub) { order: 3; margin-left: auto; flex: none; }
.xr-ttl > span > button { min-height: 32px; cursor: pointer; }
ul.xr-rail { gap: 12px; padding: 20px 20px 16px !important; scroll-snap-type: x mandatory; scroll-padding: 0 20px; filter: none !important; }
ul.xr-rail > li { flex: 0 0 42% !important; margin: 0 !important; overflow: visible !important; scroll-snap-align: start; }
ul.xr-rail > li > a { position: relative; z-index: 1; }
.xr-mark { position: absolute; z-index: 5; pointer-events: none; }
.xr-meter { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 20px; margin: 0 0 8px; box-sizing: border-box; }
.xr-meter.is-none { display: none; }
.xr-meter__n { flex: none; min-width: 3.2em; font-variant-numeric: tabular-nums; }
.xr-meter__bar { position: relative; flex: 1; display: block; overflow: hidden; }
.xr-meter__bar > i { position: absolute; inset: 0; display: block; transform-origin: 0 50%; transform: scaleX(.1); transition: transform .25s ease-out; }
/* 横に流せる合図：一度だけ札が寄って戻る */
ul.xr-rail.is-nudge > li { animation: xr-nudge 1.1s cubic-bezier(.4, 0, .2, 1) both !important; }
@keyframes xr-nudge { 0%, 100% { translate: 0 0; } 40%, 55% { translate: -38px 0; } }
@media (prefers-reduced-motion: reduce) { ul.xr-rail > li { animation: none !important; opacity: 1 !important; clip-path: none !important; } }
@media screen and (min-width: 768px) {
  ul.xr-rail > li { flex-basis: 22% !important; }
}

/* ---------- 任侠：朱漆の札・金箔の縁・配られて返る ---------- */
.xr-ttl--nk { gap: 12px; }
.theme-nk .xr-ttl--nk > .xr-ttl__main {
  display: inline-block; padding: 5px 14px 7px; border: 2px solid var(--nk-gold); background: var(--nk-red);
  box-shadow: 3px 3px 0 #000, 0 0 0 4px var(--nk-bg), 0 0 0 5px rgba(217, 174, 79, .55);
  color: #f6d886 !important; font-family: var(--nk-brush); font-size: 19px; font-weight: normal; line-height: 1.2; letter-spacing: .06em;
}
.theme-nk .xr-ttl--nk > .xr-ttl__sub { color: var(--nk-gold) !important; font-family: var(--nk-antique); font-size: 11px; letter-spacing: .16em; }
.theme-nk .xr-ttl--nk > span > button { border: 1px solid var(--nk-line); border-radius: 0; background: transparent; color: var(--nk-dim); font-family: var(--nk-antique); font-size: 11px; letter-spacing: .1em; }
.theme-nk ul.xr-rail--nk > li {
  padding: 4px; background: var(--nk-kinpaku); box-shadow: 0 0 0 1px #3a2408, 0 10px 20px rgba(0, 0, 0, .65);
}
.theme-nk ul.xr-rail--nk > li > a { display: block; width: 100%; background: var(--nk-red); color: var(--nk-ink); text-decoration: none; }
.theme-nk ul.xr-rail--nk > li > a > ul { display: flex; flex-direction: column; height: 100%; flex-wrap: nowrap; }
.theme-nk ul.xr-rail--nk > li > a > ul > li { margin: 0 !important; }
.theme-nk ul.xr-rail--nk > li > a > ul > li:first-child { border: 2px solid #1a0f05; border-bottom: 0; background: #0b0908; }
.theme-nk ul.xr-rail--nk > li > a > ul > li:not(:first-child) { padding: 0 8px; border-left: 2px solid #1a0f05; border-right: 2px solid #1a0f05; background: var(--nk-red); }
.theme-nk ul.xr-rail--nk > li > a > ul > li:nth-of-type(2) { padding-top: 7px; }
.theme-nk ul.xr-rail--nk > li > a > ul > li:last-child { flex: 1; padding-bottom: 7px; border-bottom: 2px solid #1a0f05; }
.theme-nk ul.xr-rail--nk h3 { margin: 0; color: var(--nk-ink) !important; font-family: var(--nk-mincho); font-size: 12px; font-weight: 800; line-height: 1.45; }
.theme-nk ul.xr-rail--nk > li > a > ul > li:last-child > span { padding: 0; background: none; color: transparent !important; background-image: var(--nk-goldtext); -webkit-background-clip: text; background-clip: text; font-family: var(--nk-antique); font-size: 16px; font-weight: normal; }
.theme-nk ul.xr-rail--nk > li > a > ul > li:first-child > span:not(.soldout-label) { background: var(--nk-red2); color: var(--nk-ink); font-family: var(--nk-antique); font-size: 10px; }
.theme-nk .xr-rail--nk .xr-mark {
  right: -6px; top: -10px; width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--nk-red2); color: #fff3dc !important; font-family: var(--nk-brush); font-size: 14px; line-height: 1;
  box-shadow: inset 0 0 0 1.5px var(--nk-red2), inset 0 0 0 2.5px rgba(255, 243, 220, .8), 2px 2px 0 rgba(0, 0, 0, .6);
  rotate: 8deg;
}
.theme-nk .xr-rail--nk .xr-mark--history { background: #3a332e; box-shadow: inset 0 0 0 1.5px #3a332e, inset 0 0 0 2.5px rgba(217, 174, 79, .7), 2px 2px 0 rgba(0, 0, 0, .6); color: var(--nk-gold2) !important; }
/* 配られて返る：裏は朱漆に代紋 */
.theme-nk ul.xr-rail--nk > li::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border: 3px solid #d9ae4f;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23d9ae4f'%3E%3Ccircle cx='50' cy='50' r='46' stroke-width='6'/%3E%3Ccircle cx='50' cy='50' r='36' stroke-width='2'/%3E%3C/g%3E%3Cg fill='%23d9ae4f'%3E%3Cpath id='p' d='M50 22c7 6 8 13 2 19 6 1 9 6 7 12-4-6-10-7-13-3-4-5-3-11 2-14-5-4-3-10 2-14z'/%3E%3Cuse href='%23p' transform='rotate(120 50 50)'/%3E%3Cuse href='%23p' transform='rotate(240 50 50)'/%3E%3C/g%3E%3C/svg%3E") 50% 50% / 50% no-repeat, radial-gradient(ellipse at 40% 30%, #c8180f, #7a0a07 60%, #4a0504);
  opacity: 0;
}
.theme-nk ul.xr-rail--nk:not(.is-in) > li { opacity: 0; }
.theme-nk ul.xr-rail--nk.is-in:not(.is-still) > li { animation: xr-nk-deal .62s cubic-bezier(.2, .75, .25, 1) calc(var(--xr-i, 0) * .1s) both; }
.theme-nk ul.xr-rail--nk.is-in:not(.is-still) > li::before { animation: xr-nk-back .62s linear calc(var(--xr-i, 0) * .1s) both; }
@keyframes xr-nk-deal { 0% { transform: translate(90px, -14px) rotate(12deg); } 50% { transform: none; scale: 1 1; } 72% { scale: 0 1; } 100% { scale: 1 1; } }
@keyframes xr-nk-back { 0%, 71.9% { opacity: 1; } 72%, 100% { opacity: 0; } }
.theme-nk .xr-rail--nk + .xr-meter .xr-meter__n { color: var(--nk-dim) !important; font-family: var(--nk-antique); font-size: 11px; letter-spacing: .1em; }
.theme-nk .xr-rail--nk + .xr-meter .xr-meter__n b { color: var(--nk-gold2) !important; font-size: 15px; font-weight: normal; }
.theme-nk .xr-rail--nk + .xr-meter .xr-meter__bar { height: 3px; background: rgba(217, 174, 79, .18); }
.theme-nk .xr-rail--nk + .xr-meter .xr-meter__bar > i { background: linear-gradient(90deg, var(--nk-red2), var(--nk-gold2)); }

/* =====================================================================
   ヘッダーのカートの小窓（Block/cart.twig の .mc、補助は theme.js の末尾）。すべてのページ
   上：題・品数・閉じる ／ 中：品物（多いときは中だけ流れる）／ 下：合計とレジへ進む（いつも見える）
   スマホはカートの絵のすぐ下に画面の幅で、パソコンはカートの絵の下に 380px で出す。うしろに幕（押すと閉じる）
   ===================================================================== */
.theme-nk .ec-cartNaviWrap { position: relative; }
.theme-nk .ec-cartNaviIsset.mc,
.theme-nk .ec-cartNaviNull.mc {
  display: none; position: fixed; z-index: 9500; left: 10px; right: 10px; top: var(--mc-top, 80px);
  width: auto; max-height: calc(100vh - var(--mc-top, 80px) - 12px); max-height: calc(100dvh - var(--mc-top, 80px) - 12px);
  flex-direction: column; padding: 0; box-sizing: border-box; text-align: left; border-radius: 0; float: none;
}
.theme-nk .ec-cartNaviIsset.mc.is-active,
.theme-nk .ec-cartNaviNull.mc.is-active { display: flex; }
@media (min-width: 768px) {
  .theme-nk .ec-cartNaviIsset.mc,
  .theme-nk .ec-cartNaviNull.mc { position: absolute; left: auto; right: 0; top: calc(100% + 12px); width: 380px; max-height: min(580px, calc(100vh - 140px)); }
}
.theme-nk .mc__head { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 16px; }
.theme-nk .mc__ttl { margin: 0; line-height: 1.2; }
.theme-nk .mc__n { flex: 1; line-height: 1; }
.theme-nk .mc--empty .mc__head .mc__ttl { flex: 1; }
.theme-nk .mc__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.theme-nk .mc__x svg { display: block; width: 20px; height: 20px; }
.theme-nk .mc__list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 2px 14px; list-style: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.theme-nk .ec-cartNaviIsset .ec-cartNaviIsset__cart.mc__item { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--mc-line); }
.theme-nk .ec-cartNaviIsset .ec-cartNaviIsset__cart.mc__item:last-child { border-bottom: 0; }
.theme-nk .ec-cartNaviIsset .ec-cartNaviIsset__cart.mc__item::after { content: none; }
.theme-nk .mc__link { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; color: inherit !important; text-decoration: none !important; }
.theme-nk .ec-cartNaviIsset .ec-cartNaviIsset__cartImage.mc__img { float: none; display: block; width: 64px; height: 64px; overflow: hidden; background: #fff; }
.theme-nk .ec-cartNaviIsset .ec-cartNaviIsset__cartImage.mc__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme-nk .ec-cartNaviIsset .ec-cartNaviIsset__cartContent.mc__body { float: none; display: grid; gap: 3px; width: auto; min-width: 0; padding: 0; }
.theme-nk .ec-cartNaviIsset .ec-cartNaviIsset__cartContentTitle.mc__name { margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.4; }
.theme-nk .mc__cls { font-size: 11px; line-height: 1.35; opacity: .75; }
.theme-nk .mc__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 12px; line-height: 1.3; }
.theme-nk .mc__price .ec-cartNaviIsset__cartContentPrice { font-weight: normal; }
.theme-nk .mc__sub { margin-left: auto; font-size: 15px; font-weight: normal; }
.theme-nk .mc__foot { flex: none; padding: 12px 16px 12px; }
.theme-nk .mc__total { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; }
.theme-nk .mc__total b { margin-left: auto; font-weight: normal; line-height: 1; }
.theme-nk .mc__total small { font-size: 10px; }
.theme-nk .ec-cartNaviIsset .ec-cartNaviIsset__action { display: grid; gap: 2px; }
.theme-nk .ec-cartNaviIsset.mc .mc__go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; height: auto; margin: 0 !important; padding: 0 16px; box-sizing: border-box; text-decoration: none !important; }
.theme-nk .ec-cartNaviIsset.mc .mc__go::after { content: none !important; }
.theme-nk .mc__keep { min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.theme-nk .mc__null { padding: 4px 16px 18px; text-align: center; }
.theme-nk .mc__null p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.theme-nk .mc__shop { display: inline-grid; place-items: center; min-height: 48px; padding: 0 26px; text-decoration: none !important; }
.mc-back { position: fixed; inset: 0; z-index: 9400; background: rgba(0, 0, 0, .55); -webkit-tap-highlight-color: transparent; }
.mc-back[hidden] { display: none; }
@media (min-width: 768px) { .mc-back { background: rgba(0, 0, 0, .25); } }
/* 小窓がヘッダーの中にあるので、開いているあいだはヘッダーを幕より上に */
.mc-open .theme-nk header.ec-layoutRole__header { position: relative; z-index: 9450; }

/* 任侠：黒漆に金の二重の縁、上に朱の鱗の帯、題は筆文字。品物は札のように右から配られる */
.theme-nk .mc { --mc-line: rgba(217, 174, 79, .2); background: #0b0908; border: 2px solid var(--nk-gold); box-shadow: 0 0 0 3px #0b0908, 0 0 0 4px rgba(217, 174, 79, .55), 0 18px 40px rgba(0, 0, 0, .75); color: var(--nk-ink); }
.theme-nk .mc::before { content: ""; flex: none; display: block; height: 8px; background: var(--nk-uroko-shu); background-size: 8px 8px; }
.theme-nk .mc__head { border-bottom: 1px solid var(--nk-line); }
.theme-nk .mc__ttl { color: var(--nk-gold2); font-family: var(--nk-brush); font-size: 20px; letter-spacing: .08em; }
.theme-nk .mc__n { color: var(--nk-dim); font-family: var(--nk-antique); font-size: 12px; }
.theme-nk .mc__x { color: var(--nk-gold); }
.theme-nk .mc__name { color: var(--nk-ink); font-family: var(--nk-mincho); font-weight: 800; }
.theme-nk .mc__price { color: var(--nk-dim); font-family: var(--nk-mincho); }
.theme-nk .mc__sub { color: var(--nk-gold2); font-family: var(--nk-gothic); }
.theme-nk .ec-cartNaviIsset .ec-cartNaviIsset__cartImage.mc__img { box-shadow: 0 0 0 1px var(--nk-gold); }
.theme-nk .mc__foot { background: radial-gradient(ellipse at 50% 0, rgba(179, 18, 15, .35), transparent 70%), #120c0a; border-top: 2px solid var(--nk-gold); }
.theme-nk .mc__total span { color: var(--nk-ink); font-family: var(--nk-brush); font-size: 16px; letter-spacing: .12em; }
.theme-nk .mc__total b { background: var(--nk-goldtext); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--nk-gothic); font-size: 26px; filter: drop-shadow(0 2px 0 #3a0503); }
.theme-nk .mc__total small { color: var(--nk-dim); }
.theme-nk .ec-cartNaviIsset.mc .mc__go { border: 2px solid var(--nk-gold); border-radius: 0; background: radial-gradient(ellipse 70% 120% at 50% 50%, rgba(255, 140, 70, .4), transparent 70%), linear-gradient(180deg, #d42318, #a3140e 55%, #6e0a07); box-shadow: inset 0 0 0 2px #4a0604, 4px 5px 0 #000; color: #ffe7a8 !important; font-family: var(--nk-antique); font-size: 16px; font-weight: normal; letter-spacing: .2em; text-shadow: 0 1px 0 #3a0503; }
.theme-nk .mc__keep { color: var(--nk-gold); font-family: var(--nk-antique); }
.theme-nk .mc__null p { color: var(--nk-ink); font-family: var(--nk-antique); }
.theme-nk .mc__shop { border: 1px solid var(--nk-gold); color: var(--nk-gold) !important; font-family: var(--nk-antique); letter-spacing: .2em; }
.nk-js:not(.nk-reduce) .theme-nk .mc.is-active { animation: nk-mc-open .35s ease-out both; }
.nk-js:not(.nk-reduce) .theme-nk .mc.is-active .mc__item { animation: nk-mc-deal .5s cubic-bezier(.2, 1.2, .35, 1) calc(.15s + var(--k, 0) * .09s) both; }
@keyframes nk-mc-open { 0% { opacity: 0; translate: 0 -10px; } 100% { opacity: 1; translate: 0 0; } }
@keyframes nk-mc-deal { 0% { opacity: 0; transform: translate(60px, -14px) rotate(7deg); } 100% { opacity: 1; transform: none; } }
/* 元の EC-CUBE の決まり（パソコンで幅 256px まで・上の三角・空のときのピンクの地）を打ち消す */
.theme-nk .ec-cartNaviIsset.mc, .theme-nk .ec-cartNaviNull.mc { min-width: 0; margin-top: 0; }
@media (min-width: 768px) { .theme-nk .ec-cartNaviIsset.mc, .theme-nk .ec-cartNaviNull.mc { max-width: none; } }
.theme-nk .ec-cartNaviIsset.mc::before, .theme-nk .ec-cartNaviNull.mc::before { border: 0; width: auto; }
.theme-nk .ec-cartNaviNull .ec-cartNaviNull__message.mc__null { border: 0; background: transparent; color: inherit; font-size: 14px; font-weight: normal; }
.theme-nk .mc__total span { white-space: nowrap; }
