@charset "UTF-8";
/* ==========================================================================
   なもかじ特設ページ  /works/books/namonakikaji/
   ・すべて .p-namokaji 配下に閉じ込め、サイト共通CSSと干渉させない
   ・ブレークポイントはサイトに合わせて 768px
   ========================================================================== */

.p-namokaji {
  --nmk-pink: #f95e81;
  --nmk-pink-d: #e5436a;
  --nmk-pink-l: #ffe4eb;
  --nmk-cream: #fff7f2;
  --nmk-yellow: #ffe94d;
  --nmk-ink: #2f2526;
  --nmk-gray: #6d6264;
  --nmk-white: #fff;
  --nmk-maru: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --nmk-sans: "Noto Sans JP", sans-serif;
  --nmk-en: "Josefin Sans", sans-serif;
  /* サイト共通ヘッダー(sticky)の高さ */
  --nmk-header-h: 13.3333vw;
  --nmk-subnav-h: 52px;
  --nmk-radius: 20px;
  --nmk-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 C20 0 40 0 60 10 S100 20 120 10 V20 H0Z'/%3E%3C/svg%3E");

  color: var(--nmk-ink);
  font-family: var(--nmk-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: clip;
  background: var(--nmk-white);
}
@media (min-width: 768px) {
  .p-namokaji {
    --nmk-header-h: clamp(57px, 7.421875vw, 118.75px);
    --nmk-subnav-h: 60px;
    font-size: 16px;
  }
}
.p-namokaji *,
.p-namokaji *::before,
.p-namokaji *::after { box-sizing: border-box; }
.p-namokaji :where(img) { display: block; max-width: 100%; height: auto; }
.p-namokaji :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.p-namokaji :where(p) { margin: 0; }
.p-namokaji :where(a) { color: inherit; }
.p-namokaji :where(mark) { background: none; color: inherit; }
.p-namokaji :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.p-namokaji :focus-visible { outline: 3px solid var(--nmk-yellow); outline-offset: 3px; border-radius: 4px; }
.p-namokaji .nmk-pc { display: none; }
@media (min-width: 768px) {
  .p-namokaji .nmk-pc { display: inline; }
  .p-namokaji .nmk-sp { display: none; }
}

/* ---------- 共通パーツ ---------- */
.nmk-inner { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; }
.nmk-sec { position: relative; padding-block: 88px; scroll-margin-top: calc(var(--nmk-header-h) + var(--nmk-subnav-h)); }
@media (min-width: 768px) { .nmk-sec { padding-block: 128px; } }

.nmk-head { text-align: center; margin: 0 0 48px; font-weight: 400; }
.nmk-head__en {
  display: block; font-family: var(--nmk-en); font-weight: 700; letter-spacing: .14em;
  color: var(--nmk-pink); font-size: 14px; line-height: 1; margin-bottom: 14px;
}
.nmk-head__ja {
  display: inline-block; font-family: var(--nmk-maru); font-weight: 900; font-size: 28px; line-height: 1.4;
  position: relative; padding-bottom: 18px;
}
.nmk-head__ja::after {
  /* 見出し下の飾り:背景の水玉と揃えた3つの丸 */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 54px; height: 8px; translate: -50% 0;
  background: radial-gradient(circle, var(--nmk-pink) 3.5px, transparent 4px) 0 50% / 18px 8px repeat-x;
}
.nmk-head--white .nmk-head__en,
.nmk-head--white .nmk-head__ja { color: var(--nmk-white); }
.nmk-head--white .nmk-head__ja::after { background-image: radial-gradient(circle, var(--nmk-white) 3.5px, transparent 4px); }
@media (min-width: 768px) {
  .nmk-head { margin-bottom: 64px; }
  .nmk-head__ja { font-size: 38px; }
}

/* 波形の区切り(旧サイトの波帯をSVGマスクで再現) */
.nmk-wave {
  position: absolute; left: 0; right: 0; height: 22px; z-index: 2; pointer-events: none;
  background: var(--nmk-pink);
  -webkit-mask: var(--nmk-wave) repeat-x 0 0 / 120px 22px; mask: var(--nmk-wave) repeat-x 0 0 / 120px 22px;
}
.nmk-wave--top { top: -21px; }
.nmk-wave--bottom { bottom: -21px; transform: scaleY(-1); }
.nmk-wave--yellow { background: var(--nmk-yellow); }
/* ヒーロー下端は、白い波をヒーロー内側に描く(サブナビに隠れないように) */
.nmk-hero .nmk-wave--bottom { bottom: -1px; transform: none; background: var(--nmk-white); }
.nmk-wave--cream { background: var(--nmk-cream); }
.nmk-wave--white { background: var(--nmk-white); }
@media (min-width: 768px) {
  .nmk-wave { height: 32px; -webkit-mask-size: 180px 32px; mask-size: 180px 32px; }
  .nmk-wave--top { top: -31px; }
  .nmk-wave--bottom { bottom: -31px; }
}

/* ボタン */
.nmk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: var(--nmk-maru); font-weight: 700; font-size: 16px; letter-spacing: .06em;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.3,1.6,.6,1), box-shadow .25s, background-color .25s, color .25s;
}
.nmk-btn:hover { transform: translateY(-3px); }
.nmk-btn__arrow { transition: transform .25s; }
.nmk-btn:hover .nmk-btn__arrow { transform: translateX(4px); }
.nmk-btn:hover .nmk-btn__arrow--down { transform: translateY(3px); }
.nmk-btn--white { background: var(--nmk-white); color: var(--nmk-pink-d); box-shadow: 0 6px 0 rgba(47,37,38,.18); }
.nmk-btn--white:hover { box-shadow: 0 9px 0 rgba(47,37,38,.18); }
.nmk-btn--ghost { border-color: var(--nmk-white); color: var(--nmk-white); }
.nmk-btn--ghost:hover { background: rgba(255,255,255,.15); }
.nmk-btn--pink { background: var(--nmk-pink); color: var(--nmk-white); box-shadow: 0 6px 0 var(--nmk-pink-d); }
.nmk-btn--pink:hover { box-shadow: 0 9px 0 var(--nmk-pink-d); }
.nmk-btn--dark { background: var(--nmk-ink); color: var(--nmk-white); box-shadow: 0 6px 0 rgba(0,0,0,.25); }

/* スクロールで出現 */
.nmk-js .nmk-rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.nmk-js .nmk-rv.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.nmk-hero {
  position: relative; background: var(--nmk-pink); color: var(--nmk-white);
  padding: 40px 0 80px; scroll-margin-top: var(--nmk-header-h); overflow: clip;
}
.nmk-hero__dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(255,255,255,.3) 2px, transparent 2.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.nmk-hero__inner {
  position: relative; width: min(1240px, 100% - 40px); margin-inline: auto;
  display: grid; gap: 40px;
}
.nmk-hero__title { font-family: var(--nmk-maru); font-weight: 900; margin: 0; line-height: 1.2; letter-spacing: .02em; }
.nmk-hero__title-s { display: block; font-size: 19px; letter-spacing: .16em; }
.nmk-hero__title-l {
  display: block; font-size: clamp(42px, 12vw, 56px); line-height: 1.18; margin: 10px 0 12px;
  text-shadow: 0 5px 0 #c9365a;
}
.nmk-hero__title-l mark {
  color: inherit; padding: 0 .04em;
  background: linear-gradient(transparent 68%, var(--nmk-yellow) 68%, var(--nmk-yellow) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  animation: nmk-marker 1s cubic-bezier(.6,0,.2,1) .7s forwards;
}
.nmk-hero__lead {
  margin-top: 26px; font-family: var(--nmk-maru); font-weight: 700; font-size: 16px; line-height: 1.9;
}
.nmk-hero__lead em {
  font-style: normal; font-weight: 900; color: var(--nmk-ink); font-size: 1.3em;
  background: var(--nmk-yellow); padding: 0 .25em; border-radius: 6px; margin: 0 .1em;
  display: inline-block; line-height: 1.4; rotate: -3deg;
}
.nmk-hero__lead em + em { rotate: 3deg; }
.nmk-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.nmk-hero__cta .nmk-btn { min-height: 62px; font-size: 17px; padding: 0 34px; }

.nmk-hero__visual { position: relative; width: min(330px, 78%); margin: 0 auto; }
.nmk-hero__book { position: relative; z-index: 2; }
.nmk-hero__book img {
  border-radius: 4px; rotate: 4deg;
  box-shadow: 0 2px 0 rgba(0,0,0,.05), 20px 26px 0 rgba(150,20,55,.3), 0 34px 70px rgba(80,0,20,.3);
  transition: rotate .5s cubic-bezier(.3,1.5,.6,1);
}
.nmk-hero__book:hover img { rotate: 0deg; }

.nmk-sticker {
  position: absolute; top: -18px; left: -34px; z-index: 4;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--nmk-yellow); color: var(--nmk-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--nmk-maru); font-weight: 900; line-height: 1.15; text-align: center;
  box-shadow: 0 7px 0 rgba(150,20,55,.3);
  rotate: -12deg; animation: nmk-bob 4s ease-in-out infinite;
}
.nmk-sticker::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed rgba(47,37,38,.35);
  animation: nmk-spin 24s linear infinite;
}
.nmk-sticker__s { font-size: 11px; color: var(--nmk-pink-d); }
.nmk-sticker__m { font-size: 11px; }
.nmk-sticker__l { font-size: 38px; line-height: 1; color: var(--nmk-pink-d); }
.nmk-sticker__l small { font-size: 14px; }

/* 線画キャラクター(白抜き) */
.nmk-float {
  /* 白い線画は画像そのものを白で用意(CSSフィルターはスマホSafariで黒く出ることがあるため使わない) */
  position: absolute; pointer-events: none; opacity: 1;
}
.nmk-float--a { z-index: 3; width: 72%; right: -50%; bottom: -10%; animation: nmk-bob 5s ease-in-out infinite; }
.nmk-float--b { z-index: 3; width: 56%; left: -42%; bottom: -16%; animation: nmk-bob 6s ease-in-out -2s infinite; }
.nmk-float--c { z-index: 1; width: 62%; right: -46%; top: -12%; animation: nmk-bob 7s ease-in-out -4s infinite; opacity: .9; }

.nmk-voices {
  position: relative; z-index: 3; width: min(1160px, 100% - 40px); margin: 64px auto 0;
  display: grid; gap: 18px;
}
.nmk-voice {
  position: relative; background: var(--nmk-white); color: var(--nmk-ink);
  border-radius: 24px; padding: 20px 22px 16px;
  font-family: var(--nmk-maru); font-weight: 700; font-size: 15px; line-height: 1.7;
  box-shadow: 0 6px 0 rgba(150,20,55,.25);
}
.nmk-voice::after {
  content: ""; position: absolute; bottom: -12px; left: 36px; width: 24px; height: 16px;
  background: var(--nmk-white); clip-path: polygon(0 0, 100% 0, 20% 100%);
}
.nmk-voice span { display: block; margin-top: 6px; font-size: 12px; color: var(--nmk-pink-d); font-weight: 700; }
.nmk-voice:nth-child(2) { --i: 1; }
.nmk-voice:nth-child(3) { --i: 2; }

/* SP:タイトル → 書影 → リード → ボタン の順に並べ替える */
@media (max-width: 767px) {
  .nmk-hero__inner { gap: 0; }
  .nmk-hero__text { display: contents; }
  .nmk-hero__title { order: 2; }
  .nmk-hero__visual { order: 3; width: 56%; margin: 44px auto 34px; }
  .nmk-hero__lead { order: 4; font-size: 15px; }
  .nmk-hero__cta { order: 5; }
  .nmk-hero__cta .nmk-btn { flex: 1 1 100%; }
  .nmk-sticker { width: 96px; height: 96px; left: -50px; top: -22px; }
  .nmk-sticker__l { font-size: 30px; }
  .nmk-sticker__s, .nmk-sticker__m { font-size: 10px; }
  .nmk-float--a { width: 62%; right: -44%; bottom: -14%; }
  .nmk-float--b { width: 50%; left: -40%; bottom: -8%; }
  .nmk-float--c { width: 52%; right: -42%; top: -18%; }
  .nmk-hero__lead em { font-size: 1.15em; }
}
@media (min-width: 768px) {
  .nmk-hero { padding: 64px 0 120px; }
  .nmk-hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: min(78vh, 760px); }
  .nmk-hero__title-s { font-size: clamp(20px, 2vw, 28px); }
  .nmk-hero__title-l { font-size: clamp(52px, 6.4vw, 96px); text-shadow: 0 7px 0 #c9365a; }
  .nmk-hero__lead { font-size: clamp(17px, 1.5vw, 21px); }
  .nmk-hero__visual { width: min(420px, 74%); }
  .nmk-sticker { width: 160px; height: 160px; left: -84px; top: -40px; }
  .nmk-sticker__s, .nmk-sticker__m { font-size: 15px; }
  .nmk-sticker__l { font-size: 56px; }
  .nmk-sticker__l small { font-size: 18px; }
  .nmk-float--a { width: 70%; right: -42%; bottom: -16%; }
  .nmk-float--b { width: 58%; left: -50%; bottom: -20%; }
  .nmk-float--c { width: 56%; right: -40%; top: -14%; }
  .nmk-voices { grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 96px; }
  .nmk-voice { font-size: 17px; padding: 26px 30px 20px; }
  .nmk-voice:nth-child(2) { translate: 0 18px; }
}

/* ==========================================================================
   SUB NAV
   ========================================================================== */
.nmk-subnav {
  position: sticky; top: var(--nmk-header-h); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(249,94,129,.18);
}
.nmk-subnav__list {
  display: flex; gap: 6px; height: var(--nmk-subnav-h); align-items: center;
  width: min(1160px, 100%); margin-inline: auto; padding-inline: 16px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.nmk-subnav__list::-webkit-scrollbar { display: none; }
.nmk-subnav__list li { flex: none; scroll-snap-align: center; }
.nmk-subnav a {
  display: block; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  font-family: var(--nmk-maru); font-weight: 700; font-size: 13px; text-decoration: none; color: var(--nmk-ink);
  transition: background-color .25s, color .25s;
}
.nmk-subnav a:hover { background: var(--nmk-pink-l); }
.nmk-subnav a.is-current { background: var(--nmk-pink); color: var(--nmk-white); }
@media (min-width: 768px) {
  .nmk-subnav__list { justify-content: center; gap: 8px; }
  .nmk-subnav a { font-size: 14px; padding: 8px 18px; }
}

/* ==========================================================================
   INTRODUCTION
   ========================================================================== */
.nmk-intro { padding-bottom: 0; }
.nmk-intro__body { display: grid; gap: 24px; align-items: center; }
.nmk-intro__text { font-family: var(--nmk-maru); font-weight: 700; }
.nmk-intro__big { font-size: 24px; line-height: 1.7; font-weight: 900; }
.nmk-intro__mid { font-size: 18px; margin: 18px 0; color: var(--nmk-gray); }
.nmk-intro__big mark {
  background: linear-gradient(transparent 62%, var(--nmk-yellow) 62%) no-repeat 0 0 / 0% 100%;
  transition: background-size 1.1s cubic-bezier(.6,0,.2,1) .4s;
}
.nmk-intro__big.is-in mark, .nmk-intro__big:not(.nmk-rv) mark { background-size: 100% 100%; }
.nmk-intro__desc {
  margin-top: 36px; padding-top: 28px; border-top: 2px dotted rgba(249,94,129,.5);
  font-family: var(--nmk-sans); font-weight: 400; font-size: 15px; line-height: 2.1;
}
.nmk-intro__chara { width: min(260px, 64%); margin-inline: auto; }
@media (min-width: 768px) {
  .nmk-intro__body { grid-template-columns: 1fr 360px; gap: 48px; }
  .nmk-intro__big { font-size: 36px; }
  .nmk-intro__mid { font-size: 22px; margin: 26px 0; }
  .nmk-intro__desc { font-size: 16px; }
  .nmk-intro__chara { width: 100%; }
}

.nmk-marquee {
  margin-top: 72px; padding: 22px 0 64px; overflow: hidden;
  font-family: var(--nmk-maru); font-weight: 900; color: var(--nmk-pink-l);
  font-size: 44px; line-height: 1; white-space: nowrap;
}
.nmk-marquee__track { display: inline-flex; gap: 0; animation: nmk-marquee 40s linear infinite; }
.nmk-marquee__track span { padding-right: .9em; }
.nmk-marquee__track span::before { content: "「"; }
.nmk-marquee__track span::after { content: "」"; }
@media (min-width: 768px) { .nmk-marquee { font-size: 80px; margin-top: 96px; } }

/* ==========================================================================
   SAMPLE 試し読み
   ========================================================================== */
.nmk-sample {
  background-color: var(--nmk-yellow);
  background-image: radial-gradient(rgba(255,255,255,.75) 2.4px, transparent 2.9px);
  background-size: 16px 16px;
}
.nmk-sample { overflow-x: clip; }
.nmk-sample > .nmk-inner { z-index: 1; }
/* 背景に薄く敷く漫画 */
/* z-index を付けない(付けると重ね合わせの文脈ができ、乗算が効かなくなる) */
.nmk-sample__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nmk-sample__bg img {
  position: absolute; width: 520px; max-width: none; opacity: .16; mix-blend-mode: multiply;
  border-radius: 10px; filter: grayscale(.2);
}
.nmk-sample__bg1 { top: 4%; left: -180px; rotate: -8deg; }
.nmk-sample__bg2 { top: 38%; right: -200px; rotate: 7deg; }
.nmk-sample__bg3 { bottom: 2%; left: -120px; rotate: 5deg; }
@media (min-width: 768px) {
  .nmk-sample__bg img { width: min(46vw, 680px); opacity: .18; }
  .nmk-sample__bg1 { top: 3%; left: -6vw; }
  .nmk-sample__bg2 { top: 30%; right: -8vw; }
  .nmk-sample__bg3 { bottom: 4%; left: 2vw; }
}
.nmk-sample .nmk-head__en { color: var(--nmk-pink-d); }
.nmk-sample__lead { text-align: center; font-family: var(--nmk-maru); font-weight: 700; font-size: 16px; line-height: 2; }
.nmk-sample__lead strong { font-size: 1.25em; color: var(--nmk-pink-d); }
.nmk-sample__quiz {
  width: fit-content; margin: 36px auto 30px; padding: 10px 24px; border-radius: 999px;
  background: var(--nmk-ink); color: var(--nmk-white); text-align: center;
  font-family: var(--nmk-maru); font-weight: 900; font-size: 17px; line-height: 1.5;
}
.nmk-sample__quiz span { color: var(--nmk-yellow); margin-right: .3em; }
.nmk-sample__quiz small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }

.nmk-cards { display: grid; gap: 18px; position: relative; z-index: 1; isolation: isolate; }
.nmk-card { display: flex; flex-direction: column; gap: 10px; }
.nmk-card__flip {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; perspective: 1000px; text-align: left;
}
.nmk-card__face {
  position: absolute; inset: 0; border-radius: var(--nmk-radius);
  display: flex; flex-direction: column; justify-content: center; padding: 22px 22px 18px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.3,1.3,.5,1);
  border: 3px solid var(--nmk-ink); box-shadow: 6px 6px 0 var(--nmk-ink);
}
.nmk-card__front { background: var(--nmk-white); align-items: center; }
/* 文頭揃えのまま、文章のかたまりをカード中央に置く */
.nmk-card__front .nmk-card__desc { width: fit-content; max-width: 100%; text-align: left; }
.nmk-card__back { background: var(--nmk-pink); color: var(--nmk-white); transform: rotateY(180deg); align-items: center; text-align: center; }
.nmk-card__flip[aria-pressed="true"] .nmk-card__front { transform: rotateY(-180deg); }
.nmk-card__flip[aria-pressed="true"] .nmk-card__back { transform: rotateY(0); }
.nmk-card__flip:hover .nmk-card__front { transform: rotate(-1.5deg); }
.nmk-card__flip[aria-pressed="true"]:hover .nmk-card__front { transform: rotateY(-180deg); }
.nmk-card__no { position: absolute; top: 14px; left: 20px; font-family: var(--nmk-en); font-weight: 700; color: var(--nmk-pink); font-size: 14px; letter-spacing: .1em; }
.nmk-card__desc { font-family: var(--nmk-maru); font-weight: 900; font-size: 17px; line-height: 1.65; }
.nmk-card__hint { position: absolute; right: 18px; bottom: 12px; font-size: 11px; color: var(--nmk-gray); font-weight: 700; }
.nmk-card__hint::before { content: "↻ "; color: var(--nmk-pink); }
.nmk-card__stamp {
  font-family: var(--nmk-maru); font-weight: 900; font-size: 13px; letter-spacing: .3em; padding: 2px 10px 2px 14px;
  border: 2px solid var(--nmk-white); border-radius: 6px; margin-bottom: 12px;
}
.nmk-card__name { font-family: var(--nmk-maru); font-weight: 900; font-size: 30px; line-height: 1.3; }
.nmk-card__flip[aria-pressed="true"] .nmk-card__name { animation: nmk-pop .6s cubic-bezier(.3,1.8,.5,1) .25s both; }
.nmk-card__read {
  align-self: flex-end; display: inline-flex; gap: .4em; align-items: center;
  font-family: var(--nmk-maru); font-weight: 700; font-size: 14px; padding: 6px 4px;
  border-bottom: 2px solid var(--nmk-ink);
}
.nmk-card__read span { transition: transform .25s; }
.nmk-card__read:hover span { transform: translateX(4px); }
/* SP:カードは横スワイプ */
@media (max-width: 767px) {
  .nmk-cards {
    grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -20px; padding: 6px 20px 14px; scroll-padding-inline: 20px;
  }
  .nmk-cards::-webkit-scrollbar { display: none; }
  .nmk-card { scroll-snap-align: start; }
  .nmk-card__flip { aspect-ratio: 1 / 1; }
  .nmk-card__desc { font-size: 15px; letter-spacing: .02em; }
  .nmk-card__face { padding-inline: 18px; }
  .nmk-sample__quiz { font-size: 16px; padding: 10px 22px; }
}
@media (min-width: 768px) {
  .nmk-cards { grid-template-columns: repeat(6, 1fr); gap: 32px 28px; }
  .nmk-card { grid-column: span 2; }
  .nmk-card:nth-child(4) { grid-column: 2 / span 2; }
  .nmk-card__desc { font-size: 18px; }
  .nmk-card__name { font-size: 32px; }
}

/* 漫画ビューア */
.nmk-viewer {
  /* サイト共通のリセットCSS(margin:0)で左上に寄るため、中央配置を明示する */
  position: fixed; inset: 0; margin: auto;
  /* 画面の約75%。縦長の画面では高さ基準(漫画の縦横比 1079:638)で収める */
  width: min(75vw, calc(75vh * 1079 / 638), 1000px); height: fit-content;
  max-width: none; max-height: none; padding: 0; border: 0;
  background: transparent; overflow: visible; color: var(--nmk-white);
}
.nmk-viewer::backdrop { background: rgba(47,37,38,.82); backdrop-filter: blur(4px); }
.nmk-viewer[open] { animation: nmk-fade .3s ease; }
.nmk-viewer__item { margin: 0; }
.nmk-viewer__item img { width: 100%; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.nmk-viewer__item figcaption { margin-top: 14px; text-align: center; font-family: var(--nmk-maru); font-weight: 700; font-size: 15px; }
.nmk-viewer__item figcaption span { font-family: var(--nmk-en); margin-right: 1em; opacity: .7; }
.nmk-viewer__item.is-enter img { animation: nmk-slide .4s cubic-bezier(.2,.8,.2,1); }
.nmk-viewer__nav, .nmk-viewer__close {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: var(--nmk-white); color: var(--nmk-ink); font-size: 20px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.2);
}
.nmk-viewer__nav { top: calc(50% - 40px); }
.nmk-viewer__prev { left: -12px; }
.nmk-viewer__next { right: -12px; }
.nmk-viewer__close { top: -60px; right: 0; background: var(--nmk-pink); color: #fff; font-size: 26px; }
@media (max-width: 767px) {
  .nmk-viewer { width: calc(100vw - 32px); }
  .nmk-viewer__nav { top: auto; bottom: -64px; }
  .nmk-viewer__prev { left: calc(50% - 60px); }
  .nmk-viewer__next { right: calc(50% - 60px); }
}
@media (min-width: 768px) {
  .nmk-viewer__prev { left: -70px; }
  .nmk-viewer__next { right: -70px; }
  .nmk-viewer__close { right: -70px; top: -10px; }
}

/* ==========================================================================
   MEDIA
   ========================================================================== */
.nmk-media { background: var(--nmk-pink); color: var(--nmk-white); }
.nmk-media__hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 48px; }
.nmk-media__catch { font-family: var(--nmk-maru); font-weight: 900; font-size: 20px; line-height: 1.6; }
.nmk-media__num { font-family: var(--nmk-en); font-weight: 700; font-size: 120px; line-height: 1; color: var(--nmk-yellow); text-shadow: 0 6px 0 rgba(150,20,55,.25); }
.nmk-media__num small { font-family: var(--nmk-maru); font-size: 22px; color: var(--nmk-white); margin-left: .2em; text-shadow: none; }
.nmk-media__grid { display: grid; gap: 20px; }
.nmk-media__group { background: var(--nmk-white); color: var(--nmk-ink); border-radius: var(--nmk-radius); padding: 26px 24px; }
.nmk-media__group h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 2px dotted rgba(249,94,129,.5);
  font-family: var(--nmk-maru); font-weight: 900; font-size: 19px;
}
.nmk-media__group h3 small {
  font-family: var(--nmk-en); font-size: 13px; background: var(--nmk-pink); color: #fff;
  border-radius: 999px; padding: 3px 10px 1px; line-height: 1.4;
}
.nmk-media__group li { padding: 9px 0; font-size: 13.5px; line-height: 1.7; border-bottom: 1px solid #f3e6e9; color: var(--nmk-gray); }
.nmk-media__group li:last-child { border-bottom: 0; }
.nmk-media__group li b { display: block; color: var(--nmk-ink); font-size: 15px; font-weight: 700; }
.nmk-media__group li span {
  display: inline-block; margin-right: .5em; padding: 0 8px; border-radius: 4px;
  background: var(--nmk-pink-l); color: var(--nmk-pink-d); font-size: 12px; font-weight: 700; font-family: var(--nmk-sans);
}
.nmk-media__group li em { display: block; font-style: normal; color: var(--nmk-ink); font-size: 13px; margin-top: 2px; }
.nmk-media__group--tv li b { font-size: 17px; font-family: var(--nmk-maru); font-weight: 900; }
.nmk-media__group--web ul { display: grid; gap: 0 28px; }
.nmk-media__more { margin-top: 36px; text-align: center; font-family: var(--nmk-maru); font-weight: 700; font-size: 17px; }
.nmk-media__more strong { font-family: var(--nmk-en); font-size: 2em; color: var(--nmk-yellow); margin: 0 .1em; vertical-align: -.1em; }
@media (min-width: 768px) {
  .nmk-media__hero { flex-direction: row; justify-content: center; gap: 48px; text-align: left; }
  .nmk-media__catch { font-size: 28px; }
  .nmk-media__num { font-size: 180px; }
  .nmk-media__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nmk-media__group { padding: 32px 36px; }
  .nmk-media__group--web { grid-column: 1 / -1; }
  .nmk-media__group--web ul { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   INTERVIEW 梅田悟司が語る「名もなき家事」(U&Meサイトの「よくある質問」と同じ開閉式)
   ========================================================================== */
.nmk-faq { background: var(--nmk-white); }
.nmk-faq__lead { text-align: center; font-size: 15px; line-height: 2; color: var(--nmk-gray); margin-bottom: 40px !important; }
.nmk-faq__list { width: min(880px, 100%); margin-inline: auto; border-top: 2px solid var(--nmk-ink); }
.nmk-faq__item { border-bottom: 1px solid #eadfe1; }
.nmk-faq__q {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 48px 22px 0; cursor: pointer; list-style: none;
  font-family: var(--nmk-maru); font-weight: 900; font-size: 17px; line-height: 1.6;
  transition: color .2s;
}
.nmk-faq__q::-webkit-details-marker { display: none; }
.nmk-faq__q::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; translate: 0 -50%;
  border-radius: 50%; background: var(--nmk-pink-l);
  background-image: linear-gradient(var(--nmk-pink-d), var(--nmk-pink-d)), linear-gradient(var(--nmk-pink-d), var(--nmk-pink-d));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat;
  transition: background-size .25s, background-color .25s;
}
.nmk-faq__item[open] > .nmk-faq__q::after { background-size: 12px 2px, 2px 0; background-color: var(--nmk-pink); background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); }
.nmk-faq__q:hover { color: var(--nmk-pink-d); }
.nmk-faq__mark {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--nmk-pink); color: #fff; font-family: var(--nmk-en); font-weight: 700; font-size: 16px; line-height: 1; padding-top: 3px;
}
.nmk-faq__mark--a { background: var(--nmk-yellow); color: var(--nmk-ink); }
.nmk-faq__qtext { padding-top: 2px; }
.nmk-faq__a { padding: 0 0 26px 46px; }
.nmk-faq__item[open] .nmk-faq__a { animation: nmk-fade .35s ease; }
.nmk-faq__answer { position: relative; font-size: 15px; line-height: 2; }
.nmk-faq__answer .nmk-faq__mark { position: absolute; left: -46px; top: 0; }
.nmk-faq__src {
  display: grid; gap: 6px; margin-top: 16px; padding: 16px 20px; border-radius: 14px;
  background: var(--nmk-cream); text-decoration: none; border: 1px solid #f5e4e0;
  transition: background-color .25s, transform .25s;
}
.nmk-faq__src:hover { background: var(--nmk-pink-l); transform: translateY(-2px); }
.nmk-faq__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--nmk-gray); }
.nmk-faq__meta b { font-size: 15px; color: var(--nmk-ink); font-family: var(--nmk-maru); font-weight: 900; }
.nmk-faq__meta span { padding: 0 8px; border-radius: 4px; background: #fff; color: var(--nmk-pink-d); font-weight: 700; font-size: 12px; }
.nmk-faq__title { font-weight: 700; font-size: 14px; line-height: 1.7; }
.nmk-faq__go { justify-self: end; font-family: var(--nmk-maru); font-weight: 700; font-size: 13px; color: var(--nmk-pink-d); }
.nmk-faq__go span { margin-left: .3em; }
.nmk-faq__note { font-size: 12px; color: var(--nmk-gray); }
@media (max-width: 767px) {
  .nmk-faq__q { font-size: 16px; gap: 10px; }
  .nmk-faq__mark { width: 28px; height: 28px; font-size: 14px; }
  .nmk-faq__a { padding-left: 38px; }
  .nmk-faq__answer .nmk-faq__mark { left: -38px; }
  .nmk-faq__lead { text-align: left; }
}
@media (min-width: 768px) {
  .nmk-faq__q { font-size: 19px; padding-block: 26px; }
  .nmk-faq__answer { font-size: 16px; }
}

/* ==========================================================================
   REVIEW
   ========================================================================== */
.nmk-review { background: var(--nmk-cream); }
.nmk-reviews { display: grid; gap: 44px 28px; align-items: start; padding-top: 18px; }
.nmk-review__item {
  position: relative;
  background: var(--nmk-white); border-radius: var(--nmk-radius); padding: 34px 26px 24px;
  box-shadow: 0 2px 0 rgba(249,94,129,.15), 0 14px 40px rgba(249,94,129,.08);
}
.nmk-review__item::before {
  content: "“"; position: absolute; top: -18px; left: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--nmk-pink); color: #fff; font-family: Georgia, serif; font-size: 40px; line-height: 58px; text-align: center;
}
.nmk-review__item h3 { margin: 0 0 14px; font-family: var(--nmk-maru); font-weight: 900; font-size: 20px; line-height: 1.6; color: var(--nmk-pink-d); }
.nmk-review__hl {
  background: linear-gradient(transparent 62%, var(--nmk-pink-l) 62%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .1em;
}
.nmk-review__item p { font-size: 14.5px; line-height: 2; }
.nmk-review__item p + p { margin-top: .8em; }
.nmk-review__who { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--nmk-gray); display: flex; align-items: center; gap: 8px; }
.nmk-review__who::before { content: ""; width: 20px; height: 2px; background: var(--nmk-pink); }
.nmk-review__clamp { position: relative; max-height: 9.5em; overflow: hidden; transition: max-height .6s ease; }
.nmk-review__clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em; background: linear-gradient(transparent, #fff); transition: opacity .4s; }
.nmk-review__item.is-open .nmk-review__clamp { max-height: 40em; }
.nmk-review__item.is-open .nmk-review__clamp::after { opacity: 0; }
.nmk-review__more { margin-top: 10px; font-family: var(--nmk-maru); font-weight: 700; font-size: 13px; color: var(--nmk-pink-d); padding: 4px 0; }
.nmk-review__more::after { content: " ＋"; }
.nmk-review__item.is-open .nmk-review__more::after { content: " −"; }
@media (min-width: 768px) {
  .nmk-reviews { grid-template-columns: repeat(2, 1fr); }
  .nmk-review__item { padding: 40px 36px 28px; }
  .nmk-review__item h3 { font-size: 22px; }
}
@media (min-width: 1100px) { .nmk-reviews { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   ORIGIN キッカケとなったツイート
   ========================================================================== */
.nmk-origin { background: var(--nmk-white); }
.nmk-origin__body { position: relative; }
.nmk-tweet {
  position: relative; z-index: 1; width: min(560px, 100%); margin: 0 auto; padding: 24px 24px 18px;
  background: #fff; border: 1px solid #ecdfe2; border-radius: 18px;
  box-shadow: 0 6px 0 var(--nmk-pink-l), 0 20px 50px rgba(47,37,38,.08);
}
.nmk-tweet__user { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nmk-tweet__user b { display: block; font-size: 15px; line-height: 1.3; }
.nmk-tweet__user small { color: var(--nmk-gray); font-size: 13px; }
.nmk-tweet__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--nmk-pink); color: #fff; display: grid; place-items: center; font-family: var(--nmk-maru); font-weight: 900; }
.nmk-tweet__body { margin: 0; font-size: 16px; line-height: 1.75; }
.nmk-tweet__body p { font-weight: 700; margin-bottom: 4px; }
.nmk-tweet__body li::before { content: "・"; }
.nmk-tweet__body li.is-key { font-weight: 900; font-size: 1.2em; margin: 6px 0; }
.nmk-tweet__body li.is-key mark {
  padding: 0 4px; background: linear-gradient(transparent 55%, var(--nmk-yellow) 55%) no-repeat 0 0 / 0% 100%;
  transition: background-size 1s cubic-bezier(.6,0,.2,1) .6s;
}
.nmk-tweet.is-in li.is-key mark, .nmk-tweet:not(.nmk-rv) li.is-key mark { background-size: 100% 100%; }
.nmk-tweet__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1e6e8; font-size: 13px; color: var(--nmk-gray); }
.nmk-tweet__meta b { color: var(--nmk-ink); }
.nmk-origin__chara { position: absolute; width: 120px; right: -6px; bottom: -40px; z-index: 2; }
@media (min-width: 768px) {
  .nmk-tweet { padding: 32px 36px 22px; }
  .nmk-tweet__body { font-size: 17px; }
  .nmk-origin__chara { width: 220px; right: calc(50% - 520px); bottom: -20px; }
}

/* ==========================================================================
   READERS
   ========================================================================== */
.nmk-readers { background: var(--nmk-pink); color: #fff; text-align: center; overflow: clip; }
.nmk-readers__text { text-align: center; font-family: var(--nmk-maru); font-weight: 700; font-size: 16px; line-height: 2; }
.nmk-hashtag { margin-top: 30px; }
.nmk-hashtag__tag {
  display: inline-block; font-family: var(--nmk-maru); font-weight: 900; font-size: clamp(20px, 6vw, 44px); line-height: 1.4;
  background: #fff; color: var(--nmk-pink-d); padding: 14px 26px; border-radius: 18px; box-shadow: 0 8px 0 rgba(150,20,55,.25);
  rotate: -1.5deg; word-break: keep-all; overflow-wrap: anywhere;
}
.nmk-hashtag__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.nmk-hashtag__done { min-height: 1.6em; margin-top: 10px; font-size: 13px; font-weight: 700; }
.nmk-readers__charas { display: flex; justify-content: center; gap: 4%; margin-top: 24px; }
.nmk-readers__charas img { width: 34%; max-width: 240px; opacity: .9; animation: nmk-bob 5s ease-in-out infinite; }
.nmk-readers__charas img:last-child { animation-delay: -2.5s; }
@media (min-width: 768px) { .nmk-readers__text { font-size: 19px; } }

/* ==========================================================================
   BOOK
   ========================================================================== */
.nmk-book { background: #fff; }
.nmk-book__inner { display: grid; gap: 40px; align-items: center; }
.nmk-book__cover { width: min(260px, 70%); margin-inline: auto; }
.nmk-book__cover img { border-radius: 4px; box-shadow: 14px 18px 0 var(--nmk-pink-l), 0 24px 50px rgba(47,37,38,.18); }
.nmk-book__label { font-family: var(--nmk-en); font-weight: 700; letter-spacing: .14em; color: var(--nmk-pink); font-size: 14px; }
.nmk-book__title { margin: 8px 0 22px; font-family: var(--nmk-maru); font-weight: 900; font-size: 22px; line-height: 1.6; }
.nmk-book__spec { margin: 0 0 28px; display: grid; gap: 6px; font-size: 14px; }
.nmk-book__spec div { display: flex; gap: 14px; }
.nmk-book__spec dt { width: 4em; color: var(--nmk-gray); font-weight: 700; }
.nmk-book__spec dd { margin: 0; }
@media (min-width: 768px) {
  .nmk-book__inner { grid-template-columns: 320px 1fr; gap: 72px; width: min(900px, 100% - 40px); }
  .nmk-book__cover { width: 100%; }
  .nmk-book__title { font-size: 28px; }
}

/* ==========================================================================
   Keyframes / Reduced motion
   ========================================================================== */
@keyframes nmk-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes nmk-spin { to { rotate: 360deg; } }
@keyframes nmk-marquee { to { transform: translateX(-50%); } }
@keyframes nmk-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes nmk-fade { from { opacity: 0; } }
@keyframes nmk-marker { to { background-size: 100% 100%; } }
@keyframes nmk-slide { from { opacity: 0; transform: translateX(var(--nmk-dir, 30px)); } }

@media (prefers-reduced-motion: reduce) {
  .p-namokaji *, .p-namokaji *::before, .p-namokaji *::after,
  .nmk-viewer, .nmk-viewer * { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .nmk-js .nmk-rv { opacity: 1 !important; transform: none !important; }
  .nmk-tweet li.is-key mark { background-size: 100% 100% !important; }
  .nmk-hero__title-l mark { background-size: 100% 100% !important; }
}
