/* うごくくん LP の上半分の改修案（2026-11-11・6版）。site.css のあとに読む。
   白い地に黒い文字と細い罫線。柿色の面は申し込みのボタンだけに使い、数字や番号は黒にする（フォーカスの枠は柿色、比較表の「うごくくん」の列は薄い杏色）。
   太い枠・ずらした影・マーカー・英字のラベルは使わず、区画は地の色（白・濃いめの生成り・黒）で切り替える。
   絵は実物だけ：実際に作った動画、実際の申し込みフォーム、受け付けのメールの文面、送った資料と届いた動画のコマ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 帯の地（--paper-2）は、下半分の砂色にそろえる */
.page-next { --ink: #1f1814; --rule: #d9cdbd; --paper-2: #f3e4d2; }
.page-next .btn-primary { box-shadow: none; }
.page-next .btn-primary:hover { transform: none; }

.nx-ribbon { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 12px; padding: 8px var(--gutter); background: var(--ink); color: #fff7ee; font-size: 13px; font-weight: 700; line-height: 1.5; text-align: center; }
.nx-ribbon b { border: 1px solid rgba(255, 247, 238, 0.6); border-radius: 3px; padding: 0 8px; font-size: 12px; }
.nx-ribbon-sub { font-weight: 500; font-size: 12px; opacity: 0.85; }
@media (max-width: 559px) { .nx-ribbon-sub { display: none; } }

/* 区画の小さな見出し（日本語だけ） */
.nx-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-sub); }
.nx-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* 最初の画面：スマホは 見出し → 動画 → 料金と入口、PC は左に見出しと入口、右に動画 */
.nx-hero { background: #fff; overflow-x: clip; }
.nx-hero-inner { display: grid; gap: 10px; grid-template-areas: "head" "screen" "entry"; padding-top: clamp(14px, 4vw, 56px); padding-bottom: clamp(28px, 5vw, 60px); }
.nx-hero-head { grid-area: head; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; min-width: 0; }
.nx-hero-entry { grid-area: entry; display: grid; gap: 10px; min-width: 0; }
.nx-kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--text-sub); line-height: 1.6; }
.nx-hero h1 { font-size: clamp(28px, 8.2vw, 62px); line-height: 1.28; letter-spacing: 0.01em; color: var(--ink); }
.nx-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.nx-line > span { display: inline-block; }
.nx-lead { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-sub); max-width: 34em; }

.nx-facts { list-style: none; margin: 0; padding: 9px 0; display: grid; grid-template-columns: 1.16fr 1fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nx-facts li { display: grid; justify-items: start; align-content: start; gap: 2px; padding: 0 0 0 10px; min-width: 0; }
.nx-facts li:first-child { padding-left: 0; }
.nx-facts li + li { border-left: 1px solid var(--rule); }
.nx-fact-label { font-size: 12px; font-weight: 700; color: var(--text-sub); line-height: 1.5; }
.nx-fact-main { font-size: clamp(12px, 3.3vw, 16px); font-weight: 900; line-height: 1.3; white-space: nowrap; color: var(--ink); }
.nx-fact-main .num { font-size: clamp(19px, 6.2vw, 34px); margin: 0 1px; }
@media (max-width: 359px) { .nx-facts li { padding-left: 7px; } }
.nx-fact-sub { font-size: 12px; color: var(--text-sub); line-height: 1.45; }

/* 最初の画面から頼み始める箱 */
.nx-entry { border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); padding: 12px 14px 14px; display: grid; gap: 10px; scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
.nx-entry-form { display: grid; gap: 6px; }
.nx-entry-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.nx-entry-row { display: grid; gap: 8px; }
.nx-entry-row input { width: 100%; min-height: 52px; border: 1px solid #b9ab99; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); min-width: 0; }
.nx-entry-row input::placeholder { color: var(--text-faint); }
.nx-entry-row input:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.nx-entry-row input[aria-invalid="true"] { border-color: #b3261e; }
.nx-entry-row .btn { min-height: 52px; width: 100%; font-size: 16px; }
.nx-entry-help { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.nx-entry-error { margin: -2px 0 0; font-size: 13px; font-weight: 700; line-height: 1.6; color: #b3261e; }
.nx-entry-alt { margin: 2px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; }
.nx-entry-file { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; }
.nx-entry-file:hover { background: var(--paper-2); }
.nx-entry-works { display: inline-flex; align-items: center; min-height: 46px; padding: 0 4px; font-size: 14px; font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.nx-entry-note { margin: 2px 0 0; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--ink); }
.nx-entry-note::before { content: ""; flex: none; width: 13px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-2px) rotate(-45deg); }

.nx-screen { grid-area: screen; margin: 0; min-width: 0; }
.nx-screen-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--paper); }
.nx-screen-video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; }
/* 動きを止める・再生する：見た目は小さな丸い印、押せる範囲は 44px */
.nx-screen-toggle { position: absolute; right: 2px; bottom: 2px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nx-screen-toggle::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(20, 14, 10, 0.6); }
.nx-screen-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 11px; transform: translate(-50%, -50%); border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.nx-screen-toggle.is-paused::after { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; transform: translate(-38%, -50%); }
.nx-screen-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: -6px; border-radius: 50%; }
.nx-screen figcaption { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.6; color: var(--text-sub); }
.nx-screen figcaption b { color: var(--ink); }
.nx-screen-muted { display: none; }
/* 背の低い画面でも最初の画面から頼めるよう、動画のすぐ下に入口へ飛ぶ小さいボタンを置く（押せる範囲は 44px。PC は入口が横にあるので出さない） */
.nx-screen-go { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nx-screen-go::before { content: ""; position: absolute; inset: -6px 0; }
/* 背の高いスマホでは「この URL で頼む」まで最初の画面に入るので、出さない */
@media (max-width: 559px) and (min-height: 830px) { .nx-screen-go { display: none; } }
.nx-screen-go::after { content: "↓"; font-weight: 900; }
.nx-screen-more { display: none; }

@media (min-width: 560px) {
  .nx-lead { font-size: 15px; }
  .nx-screen-muted { display: inline; }
  /* URL の欄とボタンを横に並べ、形が違うときの知らせは欄のすぐ下に出す */
  .nx-entry-row { grid-template-columns: minmax(0, 1fr) auto; }
  .nx-entry-row input { grid-column: 1; grid-row: 1; }
  .nx-entry-row .btn { grid-column: 2; grid-row: 1; width: auto; padding: 0 22px; }
  .nx-entry-row .nx-entry-error { grid-column: 1 / -1; grid-row: 2; }
  .nx-entry-alt { grid-template-columns: auto auto; justify-content: start; gap: 8px 20px; }
  .nx-entry-file { padding: 0 20px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  /* 左の列が狭い幅では、URL の欄とボタンを縦に重ねる（例の字が欠けないように） */
  .nx-entry-row { grid-template-columns: minmax(0, 1fr); }
  .nx-entry-row .btn { grid-column: 1; grid-row: 3; width: 100%; }
}
@media (min-width: 1024px) {
  /* 見出しは左の列に収まる大きさにする（幅 1024 で 42px、1440 で 54px）。動画の上端は見出しの上端にそろえる */
  .nx-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "head screen" "entry screen"; column-gap: 52px; row-gap: 14px; align-items: start; padding-top: 24px; }
  .nx-hero-head { gap: 11px; }
  .nx-hero h1 { font-size: clamp(40px, 4.1vw, 54px); }
  .nx-screen { align-self: start; margin-top: 32px; }
  .nx-fact-main { font-size: clamp(12px, 1.2vw, 16px); }
  .nx-fact-main .num { font-size: clamp(24px, 2.45vw, 34px); }
  /* 動画の下に、ほかの作例を3つ小さく並べる */
  .nx-screen-go { display: none; }
  .nx-hero-inner { gap: 14px; }
  .nx-hero-entry { gap: 14px; }
  .nx-screen-more { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
  .nx-screen-more::before { content: "ほかの作例"; grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-sub); }
  .nx-screen-more a { display: grid; gap: 5px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--text-sub); }
  .nx-screen-more a:hover { color: var(--ink); }
  .nx-screen-more img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); border-radius: 6px; }
  .nx-lead { font-size: 16px; }
  .nx-facts { padding: 10px 0; }
  .nx-facts li { padding-left: 16px; gap: 3px; }
  .nx-entry { padding: 18px 18px 16px; }
  .nx-screen figcaption { display: block; font-size: 13px; margin-top: 10px; }
  .nx-screen figcaption b { display: inline-block; margin-right: 8px; }
}

/* 流れる帯（静かに）：頼める動画の種類 */
.nx-ticker { overflow: hidden; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nx-ticker-track { display: flex; width: max-content; animation: nx-ticker 48s linear infinite; }
.nx-ticker span { flex: none; padding: 9px 0; font-size: 13px; font-weight: 700; color: var(--text-sub); white-space: nowrap; }
.nx-ticker span::after { content: "／"; margin: 0 16px; font-weight: 400; color: var(--rule); }
@keyframes nx-ticker { to { transform: translateX(-50%); } }

/* 見出しの出方：1行ずつ下から上がる */
.js .nx-line > span { transform: translateY(105%); animation: nx-rise 0.7s var(--ease) forwards; }
.js .nx-line:nth-child(2) > span { animation-delay: 0.14s; }
@keyframes nx-rise { to { transform: none; } }

/* 頼みやすい理由：悩み3つ → 黒い帯「だから」→ 3回くり返す */
.nx-reason { background: #fff; }
.nx-worry { display: grid; justify-items: center; text-align: center; gap: 14px; padding-top: clamp(44px, 8vw, 88px); }
.nx-worry-title { margin: 0; font-size: clamp(20px, 5.4vw, 32px); font-weight: 900; line-height: 1.5; color: var(--ink); }
.nx-worry-title .nw { display: block; white-space: normal; }
.nx-worries { list-style: none; width: 100%; max-width: 860px; margin: 6px 0 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.nx-worries li { padding: 12px 4px; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.nx-worries li::before { content: "「"; color: var(--text-faint); }
.nx-worries li::after { content: "」"; color: var(--text-faint); }
.js .nx-worries li:nth-child(2) { transition-delay: 0.12s; }
.js .nx-worries li:nth-child(3) { transition-delay: 0.24s; }
.nx-arrow { margin: 6px 0 0; display: grid; justify-items: center; }
.nx-arrow span { width: 0; height: 44px; border-left: 2px dotted var(--ink); position: relative; }
.nx-arrow span::after { content: ""; position: absolute; left: -1px; bottom: 1px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.nx-so { margin-top: 8px; background: var(--ink); padding: clamp(26px, 5vw, 46px) var(--gutter); }
.nx-reason-title { margin: 0; text-align: center; font-size: clamp(27px, 7.4vw, 50px); line-height: 1.35; color: #fff; }
.nx-rise { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.js .nx-reason-title .nx-rise > span { display: inline-block; transform: translateY(105%); transition: transform 0.7s var(--ease) 0.1s; }
.js .nx-reason-title .nx-rise:nth-child(2) > span { transition-delay: 0.24s; }
.js .nx-reason-title.is-in .nx-rise > span { transform: none; }

.nx-steps { list-style: none; max-width: 1000px; margin: 0 auto; padding: clamp(36px, 7vw, 80px) 0 clamp(44px, 8vw, 96px); display: grid; gap: clamp(36px, 6.5vw, 72px); }
.nx-step { display: grid; gap: 16px; align-items: center; }
.nx-step-copy { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.nx-step-no { margin: 0; font-size: clamp(40px, 10vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.nx-step-worry { position: relative; margin: 6px 0 0; padding-bottom: 24px; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--text-sub); }
.nx-step-worry::before { content: "「"; }
.nx-step-worry::after { content: "」"; }
.nx-step-copy h3 { position: relative; font-size: clamp(21px, 5.6vw, 30px); line-height: 1.4; color: var(--ink); }
.nx-step-copy h3::before { content: ""; position: absolute; left: 10px; top: -21px; height: 16px; border-left: 2px dotted var(--text-faint); }
.nx-step-copy > p:not([class]) { margin: 4px 0 0; font-size: 15px; line-height: 1.85; color: var(--text-sub); }
.nx-step-visual { margin: 0; min-width: 0; }
.nx-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.nx-shot figcaption, .nx-mat figcaption, .nx-mail figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.nx-plan-shot { display: none; margin: 0 0 12px; max-width: 460px; }
.nx-prices { width: 100%; max-width: 460px; margin: 0; display: grid; border-top: 1px solid var(--ink); }
.nx-prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--rule); }
.nx-prices dt { font-size: 14px; font-weight: 700; color: var(--ink); }
.nx-prices dd { margin: 0; font-size: 14px; font-weight: 900; white-space: nowrap; color: var(--ink); }
.nx-prices .num { font-size: clamp(22px, 6vw, 28px); margin-right: 2px; }
.nx-prices-note { max-width: 460px; margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-sub); }
/* 受け付けのメールの文面（実際に送っている文の一部） */
.nx-mail-card { max-width: 480px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; overflow: hidden; }
.nx-mail-subject { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--rule); background: var(--paper); font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.nx-mail-subject span { display: inline-block; margin-right: 10px; font-size: 12px; color: var(--text-sub); }
.nx-mail-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.nx-mail-body p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--text-sub); }
.nx-mail-body b { font-size: 14px; color: var(--ink); }
/* 頼んだあとの流れ（濃いめの生成りの帯）：4つの手順と、受け付けのメールの文面。PC は左右に並べる */
.nx-after { background: var(--paper-2); padding: clamp(36px, 6vw, 72px) 0; }
/* 砂色の帯の上では、小さい字を黒にする */
.nx-after, .nx-works { --text-sub: #4a3d34; }
.nx-works .nx-card { --text-sub: #6b5d52; }
.nx-after .nx-mail-card { --text-sub: #6b5d52; }
.nx-after-inner { max-width: 1000px; margin: 0 auto; display: grid; gap: 22px; }
.nx-mail { margin: 0; min-width: 0; }
.nx-after-title { margin: 0 0 12px; font-size: clamp(19px, 5vw, 24px); line-height: 1.4; color: var(--ink); }
.nx-after-steps { list-style: none; margin: 0; padding: 0; counter-reset: nx-af; display: grid; border-top: 1px solid var(--ink); }
.nx-after-steps li { counter-increment: nx-af; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.75; color: var(--text-sub); }
.nx-after-steps li::before { content: counter(nx-af); position: absolute; left: 0; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; line-height: 1; }
.nx-after-steps b { display: block; font-size: 15px; color: var(--ink); }
.nx-after-note { margin: 12px 0 0; font-size: 13px; line-height: 1.75; color: var(--ink); }
/* 送った資料（スライド5枚）と、届いた動画のコマ */
.nx-mat-row { display: grid; grid-template-columns: minmax(0, 0.82fr) 22px minmax(0, 1.18fr); grid-template-areas: "l1 . l2" "slides arrow out"; align-items: start; gap: 6px 8px; }
.nx-mat-to { display: contents; }
.nx-mat-to span { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.nx-mat-to span:first-child { grid-area: l1; }
.nx-mat-to span:last-child { grid-area: l2; }
.nx-mat-to i { grid-area: arrow; justify-self: center; align-self: center; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 10px; border-color: transparent transparent transparent var(--ink); }
.nx-mat-slides { grid-area: slides; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.nx-mat-slides li:first-child { grid-column: 1 / -1; }
.nx-mat-slides img, .nx-mat-out { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
.nx-mat-out { grid-area: out; }
@media (max-width: 859px) {
  /* スマホでは短くする：フォームの写しは上の部分だけ、メールの文面は件名と、料金のことを言う1行だけ */
  .nx-shot img { aspect-ratio: 780 / 470; object-fit: cover; object-position: top; }
  .nx-mail-body p:first-child, .nx-mail-body p:nth-child(2), .nx-mail-rest { display: none; }
}
@media (min-width: 860px) {
  .nx-step { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 56px; }
  .nx-step-flip .nx-step-copy { order: 2; }
  .nx-step-flip .nx-step-visual { order: 1; }
  /* 02 は、フォームで納期を選ぶ所の写しを見せる（同じ3つの額なので、3行の表は出さない） */
  .nx-plan-shot { display: block; }
  .nx-plan-shot + .nx-prices { display: none; }
  .nx-after-inner { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 56px; align-items: start; }
  .nx-after .nx-mail { margin-top: 46px; }
}

/* くらべる */
.nx-compare { padding: clamp(48px, 8vw, 96px) 0; background: #fff; }
.nx-compare .section-head h2, .nx-works .section-head h2 { color: var(--ink); }
.nx-compare .nx-eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.nx-table-wrap { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.nx-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.65; }
.nx-table th, .nx-table td { padding: 15px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.nx-table thead th { border-top: 0; font-size: 13px; font-weight: 900; color: var(--text-sub); }
.nx-table thead th:first-child, .nx-table tbody th { width: 21%; }
.nx-table td:not(.is-us), .nx-table thead th:nth-child(2) { width: 34%; }
.nx-table tbody th { font-weight: 900; color: var(--ink); }
.nx-table td { color: var(--text-sub); }
.nx-table .is-us { background: var(--apricot-soft); color: var(--ink); }
.nx-table thead .is-us { background: var(--ink); color: #fff; font-size: 15px; }
.nx-table thead .is-us img { display: inline-block; width: 24px; height: 24px; vertical-align: -6px; margin-right: 6px; background: #fff; border-radius: 50%; }
.nx-table td.is-us b { display: block; font-size: 18px; font-weight: 900; color: var(--ink); }
.nx-compare-note { max-width: 900px; margin: 12px auto 0; font-size: 13px; line-height: 1.7; color: var(--text-sub); }
@media (max-width: 639px) {
  /* スマホでも3列の表のまま見せる（字と余白を詰める。縦に重ねるより短く、左右で見比べられる） */
  .nx-table { font-size: 13px; line-height: 1.55; }
  .nx-table th, .nx-table td { padding: 10px 8px; }
  .nx-table thead th { font-size: 12px; line-height: 1.4; vertical-align: middle; }
  .nx-table thead th:first-child, .nx-table tbody th { width: 74px; padding-right: 4px; font-size: 12px; }
  .nx-table td:not(.is-us), .nx-table thead th:nth-child(2) { width: 32%; }
  .nx-table thead .is-us { font-size: 13px; }
  .nx-table thead .is-us img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
  .nx-table td.is-us { font-size: 12px; }
  .nx-table td.is-us b { font-size: 15px; }
}
.nx-doors { list-style: none; max-width: 900px; margin: clamp(26px, 5vw, 44px) auto 0; padding: 0; display: grid; gap: 10px; }
.nx-doors a { display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 66px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; font-size: 16px; transition: background 0.15s; }
.nx-doors a:hover { background: var(--paper-2); }
.nx-doors b::after { content: " →"; }
.nx-doors .is-main a { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.nx-doors .is-main a:hover { background: var(--orange-hover, #a93b14); }
.nx-door-chip { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.nx-doors .is-main .nx-door-chip { color: #fff; }
@media (min-width: 768px) { .nx-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }

/* 作例：横に送る */
.nx-works { padding: clamp(48px, 8vw, 96px) 0 clamp(44px, 7vw, 80px); background: var(--paper-2); overflow-x: clip; }
.nx-works .section-head { margin-bottom: 16px; }
.nx-works-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.nx-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; margin: -2px; }
.nx-tabs::-webkit-scrollbar { display: none; }
.nx-tabs button { flex: none; white-space: nowrap; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 0 16px; min-height: 44px; cursor: pointer; }
.nx-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 479px) { .nx-tabs { gap: 5px; } .nx-tabs button { font-size: 13px; padding: 0 11px; } }
.nx-arrows { display: none; gap: 8px; flex: none; }
.nx-arrows button { width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; }
.nx-arrows button:hover { background: var(--paper-2); }
.nx-arrows button:disabled { opacity: 0.3; cursor: default; background: #fff; }
/* カードは上にそろえる（背の高い札に合わせて縦長の動画が切れないように）。縦長の枠の幅 --nx-pw から、カードの背の下限を決める */
.nx-rail { --nx-pw: calc(min(80vw, 440px) * 0.56); display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
.nx-rail::-webkit-scrollbar { display: none; }
.nx-rail:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.nx-rail.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.nx-card { flex: 0 0 min(80vw, 440px); min-height: calc(var(--nx-pw) * 16 / 9 + 2px); margin: 0; scroll-snap-align: start; background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.nx-card[hidden] { display: none; }
.nx-card-frame { position: relative; aspect-ratio: 16 / 9; background: #111; }
.nx-card-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #111; }
.nx-play { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; }
.nx-play::before { content: ""; position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); box-sizing: border-box; }
.nx-play::after { content: ""; position: absolute; right: 27px; bottom: 26px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--ink); }
.nx-play:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.nx-card figcaption { padding: 12px 14px 0; font-size: 13px; line-height: 1.7; color: var(--text-sub); display: grid; gap: 4px; align-content: start; grid-template-rows: auto auto 1fr auto; }
.nx-card figcaption > b { font-size: 15px; color: var(--ink); }
.nx-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-card-tags span { white-space: nowrap; font-size: 12px; font-weight: 700; line-height: 1.7; border: 1px solid var(--rule); border-radius: 3px; padding: 0 7px; color: var(--text-sub); background: #fff; }
.nx-card-price { align-self: end; margin: 8px -14px 0; padding: 9px 14px; border-top: 1px solid var(--rule); background: var(--paper); font-size: 13px; font-weight: 700; color: var(--ink); }
.nx-card-price b { font-size: 15px; font-weight: 900; }
.nx-card-price a { display: flex; align-items: center; min-height: 44px; margin: -6px 0 -2px; color: var(--ink); text-underline-offset: 3px; }
/* 縦長の作例は、縦長の枠を左に、説明を右に置く */
.nx-card-portrait { grid-template-rows: minmax(0, 1fr); grid-template-columns: var(--nx-pw) minmax(0, 1fr); }
.nx-card-portrait .nx-card-frame { aspect-ratio: 9 / 16; align-self: start; }
.nx-card-portrait figcaption { padding: 12px 12px 0; }
.nx-card-portrait .nx-card-price { margin: 8px -12px 0; padding: 9px 12px; }
.nx-rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.nx-dots { margin: 0; display: flex; gap: 7px; }
.nx-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); transition: background 0.2s, width 0.2s; }
.nx-dots i.is-on { background: var(--ink); width: 22px; border-radius: 999px; }
.nx-dots i[hidden] { display: none; }
.nx-rail-hint { margin: 0; font-size: 12px; font-weight: 700; color: var(--text-sub); display: inline-flex; align-items: center; gap: 6px; }
.nx-rail-hint::after { content: "→"; animation: nx-nudge 1.6s var(--ease) infinite; }
@keyframes nx-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(5px); } }
.nx-works-how { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-sub); }
.nx-works-note { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-sub); }
@media (min-width: 768px) {
  .nx-arrows { display: flex; }
  .nx-card { flex-basis: 400px; }
  .nx-rail { --nx-pw: 208px; }
  .nx-rail { cursor: grab; gap: 20px; }
}
@media (min-width: 1240px) {
  /* 広い画面でも端を切らずに送れるよう、左右の余白を本文の幅に合わせる */
  .nx-rail { padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
}

/* 届ける前に：担当者のことばと、確かめる所 */
.nx-check { padding: clamp(48px, 8vw, 96px) 0; background: #fff; }
.nx-check-inner { display: grid; gap: 24px; grid-template-areas: "copy" "side" "notes"; }
.nx-check-copy { grid-area: copy; display: grid; gap: 14px; min-width: 0; align-content: start; }
.nx-check-copy h2 { font-size: clamp(25px, 6.6vw, 40px); line-height: 1.4; color: var(--ink); }
.nx-letter { display: grid; gap: 10px; background: var(--paper); border-radius: 8px; padding: 18px 18px 16px; }
.nx-letter p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--ink); }
.nx-letter .nx-letter-sign { justify-self: end; margin-top: 4px; text-align: right; font-size: 14px; font-weight: 700; line-height: 1.6; }
.nx-letter-sign a { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; margin-bottom: -10px; font-size: 14px; font-weight: 500; color: var(--text-sub); text-underline-offset: 3px; }
.nx-check-side { grid-area: side; min-width: 0; }
.nx-check-frame { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.nx-check-pic { position: relative; }
.nx-check-pic img { display: block; width: 100%; height: auto; }
.nx-pin { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; color: var(--ink); border: 2px solid var(--ink); box-sizing: border-box; display: grid; place-items: center; font-size: 12px; font-weight: 900; line-height: 1; }
@media (min-width: 640px) { .nx-pin { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 14px; } }
.nx-check-frame figcaption { padding: 14px 16px 16px; display: grid; gap: 8px; }
.nx-check-cap { font-size: 13px; font-weight: 900; color: var(--ink); }
.nx-check-points { list-style: none; margin: 0; padding: 0; counter-reset: nx-pt; display: grid; gap: 8px; }
.nx-check-points li { counter-increment: nx-pt; position: relative; padding-left: 32px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.nx-check-points li::before { content: counter(nx-pt); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); box-sizing: border-box; display: grid; place-items: center; font-size: 12px; font-weight: 900; line-height: 1; }
.nx-check-points li.nx-pt-sound::before { content: "音"; font-size: 11px; }
.nx-check-notes { grid-area: notes; display: grid; gap: 8px; min-width: 0; align-content: start; }
.nx-check-sub { margin: 0; font-size: 14px; font-weight: 900; color: var(--ink); }
.nx-check-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ink); }
.nx-check-list li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.75; color: var(--text-sub); }
.nx-check-list li::before { content: ""; position: absolute; left: 2px; top: 1.35em; width: 8px; height: 1px; background: var(--ink); }
@media (min-width: 860px) {
  /* 「先にお伝えしておくこと」は2列にまたがせ、4つを2つずつ並べる（右下が空かないように） */
  .nx-check-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy side" "notes notes"; gap: 32px 56px; align-items: start; }
  .nx-check-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; }
  .nx-letter { padding: 22px 24px 20px; }
}

/* 申し込みの箱：金額を大きく */
.nx-box { padding: 0 0 clamp(52px, 8vw, 88px); background: #fff; }
.nx-box-inner { position: relative; display: grid; gap: 18px; background: var(--ink); color: #fff7ee; border-radius: 10px; padding: clamp(24px, 5vw, 44px) clamp(18px, 5vw, 48px); overflow: hidden; }
.nx-box-copy { display: grid; gap: 8px; min-width: 0; }
.nx-box-price { margin: 0; font-size: 16px; font-weight: 900; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.nx-box-label { flex-basis: 100%; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: rgba(255, 247, 238, 0.85); }
.nx-box-price .num { font-size: clamp(46px, 13vw, 76px); color: #fff; letter-spacing: -0.01em; }
.nx-box-price small { font-size: 13px; font-weight: 700; opacity: 0.9; }
.nx-box-term { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255, 247, 238, 0.82); }
.nx-box-text { margin: 4px 0 0; font-size: 14px; line-height: 1.8; color: rgba(255, 247, 238, 0.92); }
.nx-box-action { display: grid; gap: 6px; justify-items: center; }
.nx-box-action .btn { width: 100%; }
.nx-box-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.nx-box-mascot { position: absolute; right: -6px; top: 6px; width: 78px; height: auto; pointer-events: none; }
.nx-family { margin-top: 18px; display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; line-height: 1.6; color: var(--text-sub); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; background: #fff; }
.nx-family img { width: 40px; height: 40px; flex: none; }
.nx-family b { display: block; color: var(--todo-blue); font-size: 14px; }
.nx-family:hover { border-color: var(--todo-blue); }
@media (min-width: 768px) {
  .nx-box-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 40px; padding-right: clamp(190px, 22vw, 260px); }
  .nx-box-action { justify-items: start; }
  .nx-box-action .btn { width: auto; }
  .nx-box-mascot { right: 28px; top: 50%; transform: translateY(-50%); width: clamp(130px, 14vw, 170px); }
  .nx-family { max-width: 520px; }
}

/* 紹介動画より下は今の LP の中身のまま。上の区画とのつなぎだけ整える */
/* 黒い帯の白い字がヘッダーに透けないよう、ヘッダーの地を濃くする */
.page-next .site-header { background: rgba(251, 247, 240, 0.97); }
.page-next .wave { display: none; }
.page-next .intro { padding-top: clamp(48px, 8vw, 88px); background: var(--paper); }
.page-next .label .label-en { display: none; }
.page-next .label .label-chip { display: inline-flex; align-items: center; gap: 10px; padding: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-sub); }
.page-next .label .label-chip::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.page-next .section-head-center .label .label-chip::after { content: ""; width: 22px; height: 1px; background: currentColor; }

/* PC の右はしの目次（いま見ている区画に印が付く）。作例の区画と、上半分を過ぎたあとは消す */
.nx-index { display: none; }
@media (min-width: 1400px) {
  .nx-index { display: grid; gap: 2px; position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 30; margin: 0; padding: 10px 8px; list-style: none; background: #fff; border: 1px solid var(--rule); border-radius: 8px; transition: opacity 0.25s, visibility 0.25s; }
  .nx-index.is-off { opacity: 0; visibility: hidden; }
  .nx-index a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--text-faint); padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
  .nx-index a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; box-sizing: border-box; }
  .nx-index a:hover { color: var(--ink); }
  .nx-index a.is-on { color: var(--ink); }
  .nx-index a.is-on::before { background: var(--ink); border-color: var(--ink); }
}

/* スマホの下に固定する帯：作例と申し込みの2つ（最初の画面の入口が見えていない間に出る） */
.nx-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); background: #fff; border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform 0.3s var(--ease); }
.nx-bar.is-on { transform: none; }
/* メニューを開いている間は引っ込める（「動画を頼む」が2つ並ばないように） */
body:has(.mobile-nav[open]) .nx-bar { transform: translateY(110%); }
.nx-bar a { display: grid; align-content: center; justify-items: center; min-height: 58px; text-decoration: none; font-weight: 900; font-size: 15px; line-height: 1.3; color: var(--ink); }
.nx-bar a small { font-size: 12px; font-weight: 700; }
.nx-bar .nx-bar-main { background: var(--orange-deep); color: #fff; }
@media (min-width: 768px) { .nx-bar { display: none; } }
@media (max-width: 767px) { body.has-nx-bar { padding-bottom: 60px; } }

@media (prefers-reduced-motion: reduce) {
  .js .nx-line > span { transform: none; animation: none; }
  .js .nx-reason-title .nx-rise > span { transform: none; transition: none; }
  .nx-rail-hint::after, .nx-ticker-track { animation: none; }
  .nx-bar, .nx-index { transition: none; }
}
