/* ナンダモンぬいぐるみの販促ページ。 */

/* DotGothic16 は本体ではプレイヤーが選ぶ設定フォントのひとつで、未ログインの公開ページには
   適用されない。ゲームとのつながりを見せる見出し・価格だけをドット書体にし、本文は丸ゴシックで読ませる。 */
@font-face {
  font-family: "DotGothic16";
  src: url("/static/fonts/DotGothic16-Regular.ttf") format("truetype");
  font-display: swap;
}

/* 共有ヘッダーは専用バーへ置き換え、フッターはツノの茶色で締める。 */
body > header { display: none; }
body > footer.bg-light {
  border-top: 0;
  background-color: #95633e !important;
  color: #fff8ec;
}

body > footer.bg-light small { color: #fff8ec; }
body > footer.bg-light a { color: #fff8ec !important; }

.np-page {
  /* 実物の色を基調にする。クリーム＝体、茶＝ツノとおなか、ピンク＝足の裏、グレー＝首巻き。 */
  --np-ink: #3a2f26;
  --np-ink-sub: #5d4f45;
  --np-cream: #fbf3e4;
  --np-paper: #fffdf8;
  --np-brown: #6b4a2f;
  --np-brown-deep: #8b5a2b;
  --np-accent: #a8551a;
  --np-pink: #f8e3dd;
  --np-scarf: #4f545c;
  --np-line: #ead9bd;
  --np-dot: "DotGothic16", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--np-ink);
  background: var(--np-paper);
  font-family: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}

.np-page *, .np-page *::before, .np-page *::after { box-sizing: border-box; }

.np-inner {
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
}

.np-page a { color: var(--np-brown); }

.np-page a:focus-visible {
  outline: 3px solid var(--np-brown);
  outline-offset: 4px;
}

.np-page [id] { scroll-margin-top: 16px; }

.np-page figure { margin: 0; }

/* 段落末に1〜2文字だけ残る改行を減らす。短い説明と注意書きは文節で折り返す。
   どちらも未対応のブラウザでは通常の折り返しになる。 */
.np-page p, .np-page li, .np-print figcaption { text-wrap: pretty; }
.np-print figcaption, .np-notes__list li { word-break: auto-phrase; }

/* 文字の役割。見出し・価格はドット書体、本文は丸ゴシック、補足は副文字色。 */
.np-kicker {
  margin: 0 0 10px;
  color: var(--np-brown-deep);
  font-family: var(--np-dot);
  font-size: .875rem;
  letter-spacing: .04em;
}

.np-heading {
  margin: 0 0 16px;
  color: var(--np-brown);
  font-family: var(--np-dot);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  font-weight: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.np-heading--center { text-align: center; }

.np-text {
  margin: 0 0 14px;
  color: var(--np-ink-sub);
}

.np-accent { color: var(--np-accent); white-space: nowrap; }

/* 写真は白い縁のプリントとして並べ、アルバムをめくるように見せる。 */
.np-print {
  padding: clamp(6px, 1.2vw, 10px);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(107, 74, 47, .14), 0 12px 28px rgba(107, 74, 47, .12);
}

.np-print img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.np-print figcaption {
  padding: 8px 4px 2px;
  color: var(--np-ink-sub);
  font-size: .875rem;
  line-height: 1.6;
  text-align: center;
}

/* ページ上部のバー */
.np-bar { background: var(--np-paper); }

.np-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(12px, 3vw, 28px);
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
  padding: 4px 0;
}

.np-logo {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  font-family: var(--np-dot);
  text-decoration: none;
}

/* ロゴはfaviconと同じ32pxのドット絵の壺。拡大してもドットがぼやけないようにする。 */
.np-logo img { width: clamp(30px, 6vw, 38px); height: auto; image-rendering: pixelated; }
.np-logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.np-logo__text b { font-size: 1.05rem; font-weight: normal; }
.np-logo__text small { color: var(--np-ink-sub); font-size: .75rem; letter-spacing: .08em; }

.np-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(14px, 3vw, 28px);
}

.np-page .np-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--np-ink-sub);
  font-size: .9375rem;
  text-decoration: none;
}

.np-page .np-nav a:hover { color: var(--np-accent); }

/* ファーストビュー。スマホは見出し→写真→価格の順に縦へ流し、PCは写真を右へ大きく置く。 */
.np-hero {
  padding: clamp(8px, 3vw, 48px) 0 clamp(40px, 6vw, 72px);
  background: var(--np-cream);
}

.np-hero__inner {
  display: grid;
  gap: 12px;
  grid-template-areas: "head" "photo" "body";
  width: min(100% - 32px, 560px);
  margin-inline: auto;
}

.np-hero__head { grid-area: head; min-width: 0; }
.np-hero__head .np-kicker { margin-bottom: 6px; }
.np-hero__print { grid-area: photo; min-width: 0; }
.np-hero__body { grid-area: body; min-width: 0; }

.np-hero__title {
  margin: 0;
  color: var(--np-brown);
  font-family: var(--np-dot);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: normal;
  line-height: 1.35;
}

/* 1列表示では横長の写真を3:2へ寄せ、左のナンダモンを大きく見せる。花束も大半が残る位置。 */
.np-hero__photo {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 10% 50%;
}

.np-hero__lead {
  max-width: 30em;
  margin: 0 0 18px;
  color: var(--np-ink-sub);
}

@media (min-width: 1000px) {
  .np-hero__inner {
    width: min(100% - 32px, 1160px);
    gap: 0 clamp(32px, 4vw, 56px);
    align-items: center;
    grid-template-areas: "head photo" "body photo";
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto;
  }
  .np-hero__head { align-self: end; margin-bottom: 20px; }
  .np-hero__body { align-self: start; }
  /* プリントを少しだけ傾け、机に置いた写真のように見せる。 */
  .np-hero__print { transform: rotate(1.2deg); }
  .np-hero__photo { aspect-ratio: auto; }
}

/* 価格の要約。購入判断に必要な価格と状態を、写真の直後で読めるようにする。 */
.np-offer {
  display: grid;
  gap: 4px;
  justify-items: start;
  max-width: 26rem;
  padding: 16px 18px;
  border: 1px solid var(--np-line);
  border-radius: 10px;
  background: var(--np-paper);
}

.np-offer__name {
  margin: 0;
  color: var(--np-ink);
  font-size: .9375rem;
  font-weight: bold;
}

.np-offer__price, .np-ticket__price {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin: 0;
}

.np-price {
  color: var(--np-brown);
  font-family: var(--np-dot);
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.2;
}

.np-price small { margin-left: 2px; font-size: .55em; }

.np-offer__tax { color: var(--np-ink-sub); font-size: .875rem; }

/* 販売状態は色だけに頼らず、文字でも状態を書く。開始日時と販売数は別のかたまりにし、
   狭い幅ではその間で折り返す。 */
.np-status, .np-ticket__status {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: center;
  margin: 6px 0 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--np-pink);
  color: var(--np-brown);
  font-size: .875rem;
}

.np-status__mark {
  flex: none;
  width: .95em;
  height: .95em;
  background: url("/static/image/nandamon_plush/paw.webp") center / contain no-repeat;
}

.np-countdown {
  justify-self: stretch;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--np-brown);
  color: var(--np-cream);
}

.np-countdown__label { margin: 0; font-size: .875rem; font-weight: bold; }

.np-countdown__time {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  margin: 6px 0 0;
  font-family: var(--np-dot);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.np-countdown__time span { display: inline-flex; gap: 4px; align-items: baseline; }
.np-countdown__time [hidden] { display: none; }
.np-countdown__time b { font-size: clamp(1.75rem, 6vw, 2.25rem); font-weight: normal; line-height: 1.2; }
.np-countdown__time small { font-size: .875rem; }

/* 購入リンク。共通の .btn-al は灰色のベベル調でこのページの配色と合わないため、
   旧LPの購入導線と同じくページ専用の茶色いボタンにする。 */
.np-page .np-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--np-brown-deep);
  color: #fffdf8;
  font-weight: bold;
  text-decoration: none;
}

.np-page .np-buy:hover { background: var(--np-brown); color: #fffdf8; }

.np-offer__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
}

/* 画面の中から。ゲーム画面とドット絵の対比が、このページで一番見せたい一か所。 */
.np-game { padding: clamp(48px, 7vw, 96px) 0; }

/* スマホは見出し→写真→説明、PCは写真を左に置き、見出しと説明を右へ積む。 */
.np-game__inner {
  display: grid;
  gap: 20px;
  grid-template-areas: "head" "photo" "body";
  max-width: 560px;
}

.np-game__head { grid-area: head; min-width: 0; }
.np-game__print { grid-area: photo; width: min(100%, 420px); justify-self: center; }
.np-game__body { grid-area: body; min-width: 0; }

@media (min-width: 1000px) {
  .np-game__inner {
    max-width: 1080px;
    gap: 0 clamp(32px, 5vw, 72px);
    grid-template-areas: "photo head" "photo body";
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .np-game__head { align-self: end; }
  .np-game__body { align-self: start; }
  .np-game__print { transform: rotate(-1deg); }
}

/* ゲームのメッセージ窓。撮影したゲーム画面に出ていた文言をそのまま載せる。 */
.np-window {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 3px double #fffdf8;
  border-radius: 6px;
  outline: 2px solid #3d4048;
  background: #3d4048;
  color: #fffdf8;
  font-family: var(--np-dot);
}

.np-window__dot {
  flex: none;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}

.np-window__text {
  margin: 0;
  font-size: clamp(.9375rem, 2.6vw, 1.05rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.np-game__punch {
  margin: 4px 0 0;
  color: var(--np-brown);
  font-family: var(--np-dot);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

/* ナンダモンのいる毎日。インスタの発見タブのように、大きい写真1枚（2×2マス）と小さい写真を
   3列に詰めて並べる。スマホでは画面の端まで広げ、PCでは一覧として読める幅に収める。 */
.np-days {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--np-cream);
}

.np-feed { width: min(100%, 720px); margin-inline: auto; }

.np-feed__head {
  display: flex;
  gap: clamp(14px, 3vw, 24px);
  align-items: center;
  padding: 0 16px clamp(18px, 3vw, 24px);
}

.np-feed__head .np-heading { margin: 0; }

/* アイコンの輪は、ツノの茶・足の裏のピンク・首巻きの灰で描く。 */
.np-feed__avatar {
  flex: none;
  width: clamp(72px, 16vw, 96px);
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(var(--np-accent), #f3b7aa, var(--np-scarf), var(--np-accent));
}

.np-feed__avatar img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 3px solid var(--np-cream);
  border-radius: 50%;
  background: var(--np-paper);
  image-rendering: pixelated;
}

.np-feed__bio { margin: 0; color: var(--np-ink-sub); }

.np-feed__grid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-feed__grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* 大きいタイルは小さいタイル2段分の高さに合わせて切り抜く。行の高さは小さいタイル（3:4）で決める。 */
.np-feed__big {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
}

.np-feed__big img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

/* チャームポイント */
.np-charm { padding: clamp(48px, 7vw, 88px) 0; }

.np-charm__inner {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 560px;
}

@media (min-width: 1000px) {
  .np-charm__inner { max-width: 1080px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}

.np-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-points li {
  position: relative;
  padding: 10px 0 10px 1.8em;
  border-bottom: 1px dashed var(--np-line);
}

.np-points li::before {
  position: absolute;
  top: 1.05em;
  left: .2em;
  width: 1em;
  height: 1em;
  background: url("/static/image/nandamon_plush/paw.webp") center / contain no-repeat;
  content: "";
}

.np-angles {
  display: grid;
  gap: clamp(12px, 3vw, 24px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* キャラクター紹介 */
.np-profile-section { padding-bottom: clamp(48px, 7vw, 88px); }

.np-profile {
  display: grid;
  gap: clamp(12px, 3vw, 32px);
  justify-items: center;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--np-line);
  border-radius: 12px;
  background: var(--np-cream);
}

@media (min-width: 640px) {
  .np-profile { grid-template-columns: auto minmax(0, 1fr); align-items: start; justify-items: start; }
}

.np-profile__dot {
  width: clamp(112px, 16vw, 160px);
  height: auto;
  image-rendering: pixelated;
}

/* 登場する遊びごとに、遊びの名前を見出しにして並べる。主役の探索を先頭に置く。 */
.np-roles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-roles li {
  padding: 10px 0;
  border-top: 1px dashed var(--np-line);
  color: var(--np-ink-sub);
}

.np-roles li:last-child { padding-bottom: 0; }

.np-roles b {
  display: block;
  color: var(--np-brown);
  font-family: var(--np-dot);
  font-weight: normal;
}

/* 販売について。値札（左）と条件の帳簿（右）を一枚の札にまとめる。 */
.np-sale-section {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--np-cream);
}

.np-ticket {
  display: grid;
  max-width: 560px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--np-line);
  border-radius: 12px;
  background: var(--np-paper);
  box-shadow: 0 10px 28px rgba(107, 74, 47, .08);
}

@media (min-width: 1000px) {
  .np-ticket { max-width: 960px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

.np-ticket__main {
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px dashed var(--np-line);
}

@media (min-width: 1000px) {
  .np-ticket__main { border-right: 1px dashed var(--np-line); border-bottom: 0; }
}

.np-ticket__brand { margin: 0; color: var(--np-ink-sub); font-size: .875rem; }

.np-ticket__name {
  margin: 0 0 8px;
  color: var(--np-ink);
  font-size: 1.125rem;
  font-weight: bold;
}

.np-ticket__note {
  margin: 12px 0 0;
  color: var(--np-ink-sub);
  font-size: .9375rem;
  line-height: 1.7;
}

/* 条件は項目名と値を左右に揃え、行ごとに走査できるようにする。 */
.np-spec {
  margin: 0;
  padding: clamp(8px, 2vw, 16px) clamp(20px, 3vw, 32px);
}

.np-spec > div {
  display: grid;
  gap: 0 12px;
  grid-template-columns: 4.6em minmax(0, 1fr);
  padding: 10px 0;
  border-bottom: 1px solid var(--np-line);
}

.np-spec > div:last-child { border-bottom: 0; }

.np-spec dt {
  color: var(--np-ink-sub);
  font-size: .9375rem;
  font-weight: normal;
}

/* 値は「沖縄/県」のような語の途中で折らず、読点や括弧の前で折り返す。 */
.np-spec dd {
  margin: 0;
  color: var(--np-ink);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* 注意事項 */
.np-notes-section { padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }

.np-notes {
  display: grid;
  gap: 24px clamp(24px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  max-width: 960px;
  margin-inline: auto;
}

.np-notes__title {
  margin: 0 0 8px;
  color: var(--np-brown);
  font-size: 1rem;
  font-weight: bold;
}

.np-notes__list {
  margin: 0;
  padding: 0;
  color: var(--np-ink-sub);
  font-size: .9375rem;
  line-height: 1.75;
  list-style: none;
}

.np-notes__list li {
  position: relative;
  padding-left: 1.2em;
}

.np-notes__list li::before {
  position: absolute;
  top: .7em;
  left: .2em;
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--np-line);
  content: "";
}

.np-notes__list li + li { margin-top: 6px; }

/* ページの終わり */
.np-ending {
  display: grid;
  justify-items: center;
  padding: 16px 0 40px;
}

.np-back { margin: 0; }
.np-back a { display: inline-flex; align-items: center; min-height: 44px; }
