/* 2027年賀状LP・注文。他ページの共通CSSは変更しない。 */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Noto+Serif+JP:wght@500;600;700&display=swap");

.nengajo-lp,
.nengajo-order {
  --nj-red: #c3363a;
  --nj-gold: #c9ae6a;
  --nj-ink: #2f2a28;
  --nj-muted: #6a615a;
  --nj-line: #eadfd4;
  --nj-paper: #ffffff;
  --nj-wash: #f8f3ec;
  color: var(--nj-ink);
  background: var(--nj-paper);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: clip;
}

.nengajo-lp *,
.nengajo-order * { box-sizing: border-box; }
.nengajo-lp img,
.nengajo-order img { max-width: 100%; height: auto; }

.nengajo-lp {
  padding-bottom: calc(20px + var(--float-cta-height, 48px));
  background: #fff;
}
.nengajo-lp h1,
.nengajo-lp h2,
.nengajo-lp .nengajo-heading,
.nengajo-lp .nengajo-era,
.nengajo-lp .nengajo-catch {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-weight: 600;
  line-height: 1.4;
}
.nengajo-lp h1,
.nengajo-lp h2,
.nengajo-lp .nengajo-heading,
.nengajo-lp .nengajo-catch { color: var(--nj-ink); }
.nengajo-lp .nengajo-era { color: var(--nj-gold); }

.nengajo-plum {
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='2.6' fill='%23c9ae6a'/%3E%3Ccircle cx='16' cy='7.5' r='4' fill='%23e18a90'/%3E%3Ccircle cx='23' cy='12.5' r='4' fill='%23c3363a'/%3E%3Ccircle cx='20.5' cy='21.5' r='4' fill='%23e7a8ad'/%3E%3Ccircle cx='11.5' cy='21.5' r='4' fill='%23b52d35'/%3E%3Ccircle cx='9' cy='12.5' r='4' fill='%23e18a90'/%3E%3C/svg%3E");
}

/* Hero */
.nengajo-hero {
  position: relative;
  padding: 44px 0 36px;
  background: #fffaf6;
  /* visible so sheep can sit 5px below the red section bottom */
  overflow: visible;
}
.nengajo-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.nengajo-hero__base {
  position: absolute;
  inset: 0;
  background: #ba2421;
}
.nengajo-hero__base-art {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 2400 / 1707;
  background: url("../images/nengajo/2027/decor/nenga-hero-base.jpg") top center / 100% 100% no-repeat;
  pointer-events: none;
}
/* Non-festive fallback (unused on LP festive hero) */
.nengajo-hero:not(.nengajo-hero--festive) .nengajo-hero__base {
  background:
    linear-gradient(90deg, #fffaf6 0%, rgba(255,250,246,0.88) 42%, rgba(255,250,246,0.2) 62%, transparent 78%),
    url("../images/nengajo/2027/decor/nenga-hero-paper-gold.jpg") right center / cover no-repeat;
}
.nengajo-hero:not(.nengajo-hero--festive) .nengajo-hero__base-art { display: none; }
.nengajo-hero--festive {
  background: #ba2421;
  padding: 48px 0 40px;
}
.nengajo-hero--festive .nengajo-hero__base {
  background: #ba2421;
}
/* Corner ornaments: vw + max-width, never scale with hero height */
.nengajo-lp .nengajo-hero__deco {
  position: absolute;
  top: 0;
  z-index: 1;
  display: block;
  width: clamp(240px, 36vw, 560px);
  max-width: min(50vw, 560px);
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
}
.nengajo-hero__deco--left {
  left: 0;
  transform: translate(-4%, -2%);
}
.nengajo-hero__deco--right {
  right: 0;
  transform: translate(4%, -2%);
}
.nengajo-hero--festive .nengajo-catch { color: #fff; }
.nengajo-hero--festive .nengajo-deadlines p {
  border-color: #f3e2c4;
  background: #fff8ee;
  box-shadow: 0 6px 16px rgba(60, 0, 0, 0.16);
}
.nengajo-hero--festive .nengajo-pill--on-red,
.nengajo-hero--festive .nengajo-pill--solid {
  background: #fff;
  border: 2px solid #fff;
  color: var(--nj-red);
  box-shadow: 0 4px 12px rgba(40, 0, 0, 0.18);
}
.nengajo-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  grid-template-areas:
    "intro stage"
    "aside stage";
  gap: 16px 20px;
  align-items: center;
  min-height: 460px;
}
.nengajo-hero__intro {
  grid-area: intro;
  position: relative;
  isolation: isolate;
}
.nengajo-stage { grid-area: stage; }
.nengajo-hero__aside { grid-area: aside; }
.nengajo-hero__aside .nengajo-deadlines { margin-bottom: 18px; }
.nengajo-hero__aside .nengajo-actions { margin-bottom: 0; }
.nengajo-pickup-note {
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.nengajo-hero--festive .nengajo-pickup-note {
  color: #fff8ee;
  text-shadow: 0 1px 2px rgba(60, 0, 0, 0.2);
}
.nengajo-points .nengajo-note-sub {
  display: block;
  margin: 0.35em 0 0;
  max-width: 20em;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nj-muted);
}
/* Western year as gothic watermark behind the era / title */
.nengajo-year-bg {
  position: absolute;
  left: 50%;
  top: -0.1em;
  z-index: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.22);
  font-family: "Barlow Condensed", "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: clamp(52px, 7.5vw, 92px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%);
  text-shadow: none;
}
.nengajo-era {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 2px;
  color: var(--nj-gold);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.nengajo-hero h1 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  margin: 0 0 14px;
  text-align: center;
}
.nengajo-hero--festive .nengajo-era { color: #f0d9a0; }
/* Catalog title mark (SVG as-is; no frame / extra bg) */
.nengajo-title-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 360px);
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.nengajo-catch {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 500;
  line-height: 1.55;
}
.nengajo-lead {
  margin: 0 0 18px;
  color: var(--nj-muted);
  font-size: 14px;
}
.nengajo-deadlines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.nengajo-deadlines p {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  margin: 0;
  padding: 8px 18px 10px;
  border: 1px solid #efd6d6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(120, 50, 50, 0.05);
  line-height: 1.25;
}
.nengajo-deadlines span { font-size: 11px; color: var(--nj-muted); }
.nengajo-deadlines strong {
  margin-top: 2px;
  color: var(--nj-red);
  font-size: 17px;
  font-weight: 700;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
}

.nengajo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Hero: align deadline boxes and CTA buttons on the same left/right edges */
.nengajo-hero .nengajo-deadlines,
.nengajo-hero .nengajo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}
.nengajo-hero .nengajo-deadlines p,
.nengajo-hero .nengajo-actions .nengajo-pill {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.nengajo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 20px;
  border: 0;
  border-radius: 8px;
  background: #f0efed;
  color: var(--nj-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nengajo-pill:hover,
.nengajo-pill:focus-visible {
  background: #e5e2de;
  color: var(--nj-ink);
}
.nengajo-pill--solid { background: var(--nj-red); color: #fff; }
.nengajo-pill--solid:hover,
.nengajo-pill--solid:focus-visible {
  background: #a81830;
  color: #fff;
}
.nengajo-pill--light { background: #fff; color: var(--nj-red); }
.nengajo-pill--light:hover,
.nengajo-pill--light:focus-visible {
  background: #fff;
  color: #a81830;
}
.nengajo-pill--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.nengajo-pill--ghost:hover,
.nengajo-pill--ghost:focus-visible {
  background: #fff;
  color: var(--nj-red);
}
.nengajo-hero--festive .nengajo-pill--on-red:hover,
.nengajo-hero--festive .nengajo-pill--on-red:focus-visible,
.nengajo-hero--festive .nengajo-pill--solid:hover,
.nengajo-hero--festive .nengajo-pill--solid:focus-visible {
  background: #fff8ee;
  border-color: #f0d9a0;
  color: var(--nj-red);
}

/* Right: nengajo cards only */
.nengajo-stage {
  --stage-h: 440px;
  position: relative;
  width: 100%;
  min-height: var(--stage-h);
  height: var(--stage-h);
  align-self: center;
}
.nengajo-fan {
  position: absolute;
  inset: 0;
}
.nengajo-fan > img {
  position: absolute;
  max-width: none;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 14px 30px rgba(40, 0, 0, 0.3);
}
.nengajo-fan .is-portrait {
  left: 2%;
  top: 6%;
  height: calc(var(--stage-h) * 0.84);
  width: auto;
  transform: rotate(-7deg);
  z-index: 2;
}
.nengajo-fan .is-landscape {
  right: 0;
  top: 16%;
  width: calc(var(--stage-h) * 0.84);
  height: auto;
  transform: rotate(7deg);
  z-index: 1;
}

/* Hero cloud (behind sheep) + sheep */
.nengajo-hero__cloud,
.nengajo-hero__sheep {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  will-change: transform, opacity;
}
.nengajo-hero__cloud {
  z-index: 2;
}
.nengajo-hero__sheep {
  z-index: 3;
}
.nengajo-hero__cloud.is-ready,
.nengajo-hero__sheep.is-ready {
  opacity: 1;
  animation: nengajo-sheep-in 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes nengajo-sheep-in {
  from {
    transform: translateX(32%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (max-width: 900px) {
  /* Text above cloud; cards above sheep/cloud when they overlap */
  .nengajo-hero__intro {
    z-index: 3;
  }
  .nengajo-stage {
    position: relative;
    z-index: 2;
  }
  .nengajo-hero__cloud {
    z-index: 0;
  }
  .nengajo-hero__sheep {
    z-index: 1;
  }
  .nengajo-hero__sheep.is-mobile {
    /* sit beside catch; size set in JS (~2x prior) */
    max-height: 156px;
  }
}

/* Left-bottom perk box: copy + calendar (flex so they never overlap) */
.nengajo-hero__intro,
.nengajo-hero__aside { min-width: 0; }
.nengajo-gift--in-hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
  margin-top: 16px;
  margin-right: 24px;
  padding: 10px 8px 10px 14px;
  border-radius: 12px;
  background: #f8f1e4;
  box-shadow: 0 6px 16px rgba(40, 0, 0, 0.12);
}
.nengajo-gift__media {
  position: relative;
  flex: 0 1 auto;
  margin: -6px -32px -6px 0;
  width: clamp(112px, 36%, 158px);
  max-width: 42%;
  pointer-events: none;
}
.nengajo-gift__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: drop-shadow(0 8px 14px rgba(40, 0, 0, 0.22));
}
.nengajo-gift__copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}
.nengajo-gift__eyebrow {
  margin: 0 0 4px;
  color: var(--nj-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.nengajo-gift h2 {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 4px;
  color: var(--nj-red);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.15;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 700;
}
.nengajo-gift h2 span { display: block; }
.nengajo-gift__lead {
  margin: 0;
  color: var(--nj-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Sections */
.nengajo-section {
  padding: 44px 0;
  scroll-margin-top: 96px;
}
.nengajo-section--points { padding: 20px 0 8px; }

.nengajo-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}
.nengajo-points article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.nengajo-points h2 {
  margin: 0;
  color: var(--nj-red);
  font-size: 18px;
}
.nengajo-points p {
  margin: 0;
  max-width: 20em;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--nj-muted);
}
.nengajo-icon { display: inline-flex; color: var(--nj-red); }
.nengajo-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nengajo-heading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 22px;
}
.nengajo-heading-ornament {
  display: block;
  width: min(220px, 46vw);
  height: auto;
  margin: 0;
}
.nengajo-heading {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  text-align: center;
}
.nengajo-heading--left { text-align: left; }

.nengajo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
}
.nengajo-tabs .nengajo-pill {
  min-height: 40px;
  padding: 6px 18px;
  font-size: 13px;
}
.nengajo-style-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 0 0 28px;
}
.nengajo-style-tabs[hidden] { display: none !important; }
.nengajo-style-tabs .nengajo-pill {
  min-height: 28px;
  padding: 2px 11px;
  border: 0;
  border-radius: 6px;
  background: #f0efed;
  color: #5c534c;
  font-size: 11px;
  font-weight: 600;
}
.nengajo-style-tabs .nengajo-pill:hover,
.nengajo-style-tabs .nengajo-pill:focus-visible {
  background: #e5e2de;
  color: #3a342f;
}
.nengajo-style-tabs .nengajo-pill--solid,
.nengajo-style-tabs .nengajo-pill--solid:hover,
.nengajo-style-tabs .nengajo-pill--solid:focus-visible {
  background: #3a342f;
  color: #fff;
}

.nengajo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .nengajo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 14px;
  }
}
/* Portrait 1012×1502 — landscape thumbs swap long/short edges */
.nengajo-lp,
.nengajo-order,
#nengajo-picker {
  --nj-thumb-long: 140px;
  --nj-thumb-short: 94px;
}
.nengajo-design {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
}
.nengajo-design.is-extra,
.nengajo-design.is-extra-desk,
.nengajo-design.is-style-extra { display: none; }
.nengajo-panel.is-expanded .nengajo-design.is-extra,
.nengajo-panel.is-expanded .nengajo-design.is-extra-desk,
.nengajo-panel.is-expanded .nengajo-design.is-style-extra { display: flex; }
.nengajo-design.is-style-hidden { display: none !important; }
/* Style filter ignores PHP is-extra; uses is-style-extra for the initial limit */
.nengajo-panel.is-style-filtered .nengajo-design.is-extra,
.nengajo-panel.is-style-filtered .nengajo-design.is-extra-desk { display: flex; }
.nengajo-panel.is-style-filtered .nengajo-design.is-style-extra { display: none; }
.nengajo-panel.is-style-filtered.is-expanded .nengajo-design.is-style-extra { display: flex; }
.nengajo-panel.is-style-filtered .nengajo-design.is-style-hidden { display: none !important; }
/* ≤960px (3-col): show 6 initially (5 + is-extra-desk) */
@media (max-width: 960px) {
  .nengajo-design.is-extra-desk { display: flex; }
  .nengajo-more-wrap--desk-only { display: none !important; }
}
.nengajo-design__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 148px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: #f3f1ef;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}
.nengajo-design__frame img {
  width: auto;
  height: auto;
  max-width: min(100%, var(--nj-thumb-short));
  max-height: var(--nj-thumb-long);
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}
.nengajo-design.is-landscape .nengajo-design__frame img {
  max-width: min(100%, var(--nj-thumb-long));
  max-height: var(--nj-thumb-short);
}
#nengajo-picker .nengajo-design > img {
  display: block;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: min(100%, var(--nj-thumb-short));
  max-height: var(--nj-thumb-long);
  margin: 0 auto;
  padding: 4px;
  object-fit: contain;
  object-position: center;
  background: #f3f1ef;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  filter: none;
}
#nengajo-picker .nengajo-design.is-landscape > img {
  max-width: min(100%, var(--nj-thumb-long));
  max-height: var(--nj-thumb-short);
}
/* Label + number + order — flat, no ornate metal frame */
.nengajo-design__meta {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.nengajo-design__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--nj-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}
/* Color sub-style labels (スタンダード etc.) — smaller, muted */
.nengajo-design[data-nengajo-style] .nengajo-design__cat {
  color: #8a7b6c;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nengajo-design__name {
  margin: 0;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--nj-ink);
  text-align: center;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nengajo-lp a.nengajo-design__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
  flex: 0 0 auto;
  margin: 0;
  min-height: 26px;
  padding: 4px 11px 4px 9px;
  border: 0;
  border-radius: 6px;
  background: var(--nj-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.nengajo-lp a.nengajo-design__order .nengajo-design__order-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nengajo-lp a.nengajo-design__order:hover,
.nengajo-lp a.nengajo-design__order:focus-visible {
  background: #a81830;
  color: #fff;
  opacity: 1;
}
.nengajo-more-wrap { margin: 28px 0 0; text-align: center; }

/* Prices */
.nengajo-prices {
  background: var(--nj-wash);
}
.nengajo-price-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.nengajo-price-cards article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 18px 12px 16px;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  text-align: center;
}
.nengajo-price-cards h3 {
  margin: 0;
  color: var(--nj-red);
  font-size: 16px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 600;
}
.nengajo-price-cards__qty {
  margin: 0;
  font-size: 12px;
  color: var(--nj-muted);
}
.nengajo-price-cards__amount {
  margin: 4px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  color: var(--nj-ink);
  line-height: 1;
}
.nengajo-price-cards__amount strong {
  color: var(--nj-red);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  letter-spacing: 0.01em;
}
.nengajo-price-cards__amount span {
  font-size: 13px;
  font-weight: 600;
  color: var(--nj-muted);
}
.nengajo-price-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 12px;
}
.nengajo-price-include {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 10px 18px;
  border: 2px solid var(--nj-red);
  border-radius: 999px;
  background: #fff;
  color: var(--nj-red);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 0, 0, 0.08);
}
.nengajo-price-include:hover,
.nengajo-price-include:focus-visible {
  background: #fff8ee;
  border-color: #f0d9a0;
  outline: none;
}
.nengajo-price-include[aria-pressed="true"] {
  background: var(--nj-red);
  border-color: var(--nj-red);
  color: #fff;
}
.nengajo-price-include[aria-pressed="true"]:hover,
.nengajo-price-include[aria-pressed="true"]:focus-visible {
  background: #9a1e27;
  border-color: #9a1e27;
  color: #fff;
}
.nengajo-price-note {
  margin: 20px 0 10px;
  text-align: center;
  font-size: 13px;
  color: var(--nj-muted);
}
.nengajo-details:not(.is-card-included) [data-when="with"],
.nengajo-details.is-card-included [data-when="print"] {
  display: none;
}
.nengajo-details__leads {
  margin: 0 0 12px;
}
.nengajo-details__leads > .nengajo-details__lead {
  margin-bottom: 0;
}
.nengajo-details {
  margin: 12px auto 0;
  max-width: 920px;
  padding: 14px 28px;
  background: #fff;
  border: 0;
  border-radius: 12px;
}
.nengajo-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--nj-red);
  list-style: none;
}
.nengajo-details summary::-webkit-details-marker { display: none; }
.nengajo-details summary::before {
  content: "＋";
  display: inline-block;
  width: 1.2em;
  margin-right: 0.15em;
  font-weight: 700;
}
.nengajo-details[open] summary::before { content: "−"; }
.nengajo-details[open] summary { margin-bottom: 12px; }
.nengajo-details__lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--nj-muted);
}
.nengajo-note {
  margin: 16px auto 0;
  max-width: 920px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.72);
  border-radius: 12px;
  font-size: 13px;
  color: var(--nj-muted);
}
.nengajo-note p { margin: 0 0 8px; }
.nengajo-note p:last-child { margin-bottom: 0; }
.nengajo-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.nengajo-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.nengajo-table caption {
  caption-side: top;
  padding: 10px 28px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--nj-ink);
  background: #faf7f4;
  border-bottom: 1px solid var(--nj-line);
}
.nengajo-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 16px;
  border-bottom: 1px solid var(--nj-line);
  background: #f3ebe3;
  color: var(--nj-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  vertical-align: bottom;
}
.nengajo-table tbody th,
.nengajo-table td {
  padding: 9px 16px;
  border-bottom: 1px solid var(--nj-line);
  text-align: right;
  white-space: nowrap;
  color: var(--nj-ink);
  background: #fff;
}
.nengajo-table thead th:first-child,
.nengajo-table tbody th:first-child {
  width: 18%;
}
.nengajo-table thead th:first-child,
.nengajo-table tbody th:first-child,
.nengajo-table td:first-child {
  padding-left: 28px;
}
.nengajo-table thead th:last-child,
.nengajo-table tbody th:last-child,
.nengajo-table td:last-child {
  padding-right: 28px;
}
.nengajo-table tbody th {
  text-align: left;
  font-weight: 700;
}
.nengajo-table-wrap--narrow {
  display: flex;
  justify-content: center;
}
.nengajo-table--narrow,
.nengajo-table--compact {
  width: 100%;
  min-width: 280px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.nengajo-table--narrow thead th:first-child,
.nengajo-table--narrow tbody th:first-child,
.nengajo-table--compact thead th:first-child,
.nengajo-table--compact tbody th:first-child {
  width: 42%;
}
.nengajo-table tbody tr:nth-child(even) td,
.nengajo-table tbody tr:nth-child(even) th {
  background: #fcfaf8;
}
.nengajo-table tbody tr:last-child th,
.nengajo-table tbody tr:last-child td {
  border-bottom: 0;
}
.nengajo-table tbody tr:hover td,
.nengajo-table tbody tr:hover th {
  background: #fff4ef;
}
.nengajo-table__unit {
  margin-left: 0.15em;
  font-size: 11px;
  font-weight: 600;
  color: var(--nj-muted);
}
.nengajo-table__total {
  font-weight: 700;
  color: var(--nj-red);
}
.nengajo-table-foot {
  margin: 8px 2px 0;
  font-size: 11px;
  color: var(--nj-muted);
  text-align: right;
}
.nengajo-address-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.nengajo-address-tables .nengajo-table-wrap {
  display: flex;
  justify-content: center;
}
@media (max-width: 700px) {
  .nengajo-address-tables { grid-template-columns: 1fr; }
  .nengajo-details {
    padding: 12px 12px;
  }
  .nengajo-table-wrap {
    overflow-x: visible;
  }
  .nengajo-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 11px;
  }
  .nengajo-table--narrow,
  .nengajo-table--compact {
    width: 100%;
    min-width: 0;
    max-width: 420px;
    table-layout: fixed;
  }
  .nengajo-table caption {
    padding: 8px 14px 6px;
    font-size: 11px;
    white-space: normal;
  }
  .nengajo-table thead th {
    padding: 8px 4px;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
  }
  .nengajo-table tbody th,
  .nengajo-table td {
    padding: 7px 4px;
    white-space: nowrap;
    text-align: right;
  }
  .nengajo-table tbody th {
    text-align: left;
  }
  .nengajo-table thead th:first-child,
  .nengajo-table tbody th:first-child,
  .nengajo-table td:first-child {
    padding-left: 14px;
  }
  .nengajo-table thead th:last-child,
  .nengajo-table tbody th:last-child,
  .nengajo-table td:last-child {
    padding-right: 14px;
  }
  .nengajo-table__unit {
    font-size: 10px;
  }
  .nengajo-price-include {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Address */
.nengajo-address__grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.nengajo-address__art {
  margin: 0;
  max-width: 280px;
}
.nengajo-address__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(80, 40, 40, 0.08);
}
.nengajo-address__art figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--nj-muted);
  text-align: center;
}
.nengajo-address__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.nengajo-address__points p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-align: center;
  font-size: 13px;
}

/* CTA */
.nengajo-cta {
  position: relative;
  padding: 26px 0;
  color: #fff;
  background: #b4232e center / cover no-repeat url("../images/nengajo/2027/decor/nenga-cta-red-gold.jpg");
  overflow: hidden;
}
.nengajo-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(140, 20, 28, 0.28) 0%, rgba(180, 35, 46, 0.18) 28%, rgba(180, 35, 46, 0.35) 100%);
  pointer-events: none;
}
.nengajo-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  text-align: center;
}
.nengajo-cta .nengajo-actions {
  justify-content: center;
}
.nengajo-cta h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 24px;
  text-shadow: 0 1px 2px rgba(60, 0, 0, 0.25);
}
.nengajo-cta p {
  margin: 0;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(60, 0, 0, 0.2);
}

.nengajo-dialog {
  width: min(920px, calc(100% - 24px));
  max-height: min(86vh, 900px);
  padding: 16px;
  border: 0;
  border-radius: 12px;
}
.nengajo-dialog::backdrop { background: rgba(44, 38, 36, 0.45); }
.nengajo-dialog__body { overflow: auto; max-height: 70vh; text-align: center; }
.nengajo-dialog__body img:not(.nengajo-dialog__photo) { max-height: 70vh; }

/* Preview zoom: fit without scroll. Only flex when open (closed dialog must stay hidden). */
#nengajo-preview.nengajo-dialog:not([open]),
#nengajo-zoom.nengajo-dialog:not([open]) {
  display: none;
}
#nengajo-preview.nengajo-dialog[open],
#nengajo-zoom.nengajo-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: auto;
  min-width: min(100%, 280px);
  max-width: calc(100vw - 16px);
  max-height: min(92dvh, 920px);
  margin: auto;
  padding: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}
#nengajo-preview.nengajo-dialog[open].is-zoom-sized,
#nengajo-zoom.nengajo-dialog[open].is-zoom-sized {
  width: auto;
}
#nengajo-preview .nengajo-dialog__body,
#nengajo-zoom .nengajo-dialog__body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: none;
  padding: 25px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}
#nengajo-preview .nengajo-dialog__stage,
#nengajo-zoom .nengajo-dialog__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: visible;
  background: transparent;
}
#nengajo-preview .nengajo-dialog__photo,
#nengajo-zoom .nengajo-dialog__photo {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 0 2px rgba(0, 0, 0, 0.08))
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.06));
}
#nengajo-preview .nengajo-dialog__photo.is-layout-sized,
#nengajo-zoom .nengajo-dialog__photo.is-layout-sized {
  flex: 0 0 auto;
}
@media (min-width: 601px) {
  #nengajo-preview.nengajo-dialog[open],
  #nengajo-zoom.nengajo-dialog[open] {
    max-width: calc(100vw - 24px);
    padding: 12px;
    gap: 12px;
  }
}
#nengajo-preview .nengajo-actions,
#nengajo-zoom .nengajo-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  position: relative;
  z-index: 2;
}

.nengajo-hidden { display: none !important; }

/* Order form — aligned with LP (wash, serif, pills, soft cards) */
/* Step changes: instant scroll via js/nengajo-order.js scrollOrderFormTop() (site html keeps smooth for #anchors / page-top). */

.nengajo-order {
  padding: 32px 0 20px;
  padding-bottom: calc(32px + var(--float-cta-height, 48px));
  background: #f6f5f3;
}
.nengajo-order__layout { width: min(100%, 920px); margin: 0 auto; }
.nengajo-pay-notice-dialog {
  width: min(92vw, 380px);
  max-width: calc(100vw - 32px);
  padding: 0;
  margin: auto;
  border: 1px solid rgba(195, 54, 58, 0.28);
  border-radius: 20px;
  background: rgba(255, 242, 240, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
  backdrop-filter: blur(16px) saturate(1.06);
  box-shadow:
    0 14px 36px rgba(195, 54, 58, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  color: var(--nj-ink);
}
.nengajo-pay-notice-dialog::backdrop {
  background: rgba(246, 245, 243, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@keyframes nengajo-pay-notice-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes nengajo-pay-notice-panel-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
.nengajo-pay-notice-dialog[open] {
  position: fixed;
  top: 150px;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(92vw, 380px);
  max-width: calc(100vw - 32px);
  max-height: min(90dvh, 480px);
  height: fit-content;
  margin: 0;
  transform: translateX(-50%);
  animation: nengajo-pay-notice-panel-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nengajo-pay-notice-dialog[open]::backdrop {
  animation: nengajo-pay-notice-backdrop-in 0.5s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .nengajo-pay-notice-dialog[open],
  .nengajo-pay-notice-dialog[open]::backdrop {
    animation: none;
  }
}
.nengajo-pay-notice-dialog__inner {
  padding: 26px 22px 22px;
  text-align: center;
}
.nengajo-pay-notice-dialog__title {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #5c3032;
}
.nengajo-pay-notice-dialog__body {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.85;
  color: #6a4f50;
  text-align: center;
}
.nengajo-pay-notice-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 200px;
  max-width: 100%;
  min-height: 42px;
  margin: 0 auto;
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--nj-red);
  border: 1px solid rgba(195, 54, 58, 0.45);
  border-radius: 999px;
  box-shadow: none;
}
.nengajo-pay-notice-dialog__btn:hover,
.nengajo-pay-notice-dialog__btn:focus-visible {
  background: #b42f33;
  border-color: rgba(195, 54, 58, 0.55);
  color: #fff;
}
.nengajo-order__back {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--nj-line);
  text-align: center;
}
.nengajo-order__back .nengajo-order__back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  box-sizing: border-box;
}
.nengajo-order__back-note {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--nj-muted);
  text-align: center;
}
.nengajo-order-choice-dialog {
  width: min(92vw, 420px);
  max-width: calc(100vw - 32px);
  padding: 0;
  margin: auto;
  border: 1px solid rgba(195, 54, 58, 0.28);
  border-radius: 16px;
  background: rgba(255, 242, 240, 0.95);
  color: var(--nj-ink);
}
.nengajo-order-choice-dialog::backdrop {
  background: rgba(246, 245, 243, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nengajo-order-choice-dialog[open] {
  position: fixed;
  inset: 0;
  width: min(92vw, 420px);
  max-width: calc(100vw - 32px);
  max-height: min(90dvh, 520px);
  height: fit-content;
  margin: auto;
}
.nengajo-order-choice-dialog__inner {
  padding: 22px 20px 20px;
  text-align: center;
}
.nengajo-order-choice-dialog__title {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #5c3032;
}
.nengajo-order-choice-dialog__body {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.75;
  color: #6a4f50;
  text-align: left;
}
.nengajo-order-choice-dialog__actions {
  display: grid;
  gap: 10px;
}
.nengajo-order-choice-dialog__btn {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.nengajo-order-choice-dialog__ghost {
  font-size: 13px;
}
.nengajo-order .nengajo-kicker {
  margin: 0 0 6px;
  color: var(--nj-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nengajo-order h1 {
  margin: 0 0 14px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  color: var(--nj-ink);
  letter-spacing: 0.02em;
}
.nengajo-order__panel {
  min-width: 0;
  margin-bottom: 16px;
  padding: 22px 20px;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}
.nengajo-order__panel h2 {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--nj-ink);
}
.nengajo-only-6 > h2 {
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(195, 54, 58, 0.32);
}
.nengajo-confirm__intro {
  margin: 0 0 16px;
  line-height: 1.7;
}
.nengajo-order h2 {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 600;
  color: var(--nj-ink);
}
.nengajo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.nengajo-steps li {
  padding: 5px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--nj-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nengajo-steps li.is-current {
  background: var(--nj-red);
  color: #fff;
  font-weight: 700;
}
.nengajo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--nj-ink);
}
.nengajo-contact-same-sender {
  margin: 0 0 14px;
}
.nengajo-contact-same-sender .nengajo-field-hint {
  margin: 6px 0 0;
}
.nengajo-order .nengajo-btn--sender-same {
  padding: 7px 16px;
  min-height: 0;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #fff;
  background: #2c2624;
  border-color: #2c2624;
}
.nengajo-order .nengajo-btn--sender-same:hover {
  color: #fff;
  background: #1a1615;
  border-color: #1a1615;
}
.nengajo-field__label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
}
.nengajo-field--qty .nengajo-qty-input {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
}
.nengajo-field--qty .nengajo-qty-input input {
  box-sizing: border-box;
  width: 6.4em;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  padding: 10px 8px;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.2;
}
.nengajo-field--qty .nengajo-qty-input__unit {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  color: var(--nj-ink);
}
.nengajo-field input,
.nengajo-field textarea,
.nengajo-field select {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  border: 1px solid #e6e2dc;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nengajo-field input:focus,
.nengajo-field textarea:focus,
.nengajo-field select:focus {
  outline: none;
  border-color: #c3363a;
  background: #fff;
}
.nengajo-field textarea { min-height: 96px; resize: vertical; }
.nengajo-atena-notes {
  margin: 0 0 14px;
  padding-left: 1.25em;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--nj-ink);
}
.nengajo-atena-notes li {
  margin: 0 0 4px;
}
.nengajo-atena-notes li:last-child {
  margin-bottom: 0;
}
.nengajo-atena-notes__link {
  font-weight: 600;
  color: var(--nj-red, #c3363a);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nengajo-atena-notes__link:hover {
  color: #9a2a2e;
}
.nengajo-address__excel-lead {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--nj-ink);
}
.nengajo-address__excel-download {
  margin-top: 14px;
  justify-content: flex-start;
}
.nengajo-atena-privacy {
  margin: -4px 0 14px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--nj-muted);
}
.nengajo-required,
.nengajo-optional {
  display: inline-block;
  width: auto;
  max-width: none;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 1px;
  border-radius: 3px;
  flex: 0 0 auto;
  align-self: auto;
}
.nengajo-required {
  color: #fff;
  background: var(--nj-red, #c3363a);
}
.nengajo-optional {
  color: var(--nj-muted, #5c534d);
  background: #f0efed;
}
.nengajo-proof legend .nengajo-required {
  font-size: 10px;
  font-weight: 700;
}
.nengajo-field-hint {
  margin: -8px 0 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--nj-muted);
}
.nengajo-family-note {
  margin: 10px 0 0;
  text-align: center;
}
.nengajo-family-confirm {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--nj-line);
  border-radius: 10px;
  background: var(--nj-wash);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
#nengajo-same-address-wrap {
  display: block;
  margin: 0 0 12px;
}
#nengajo-same-address-wrap.nengajo-hidden {
  display: none;
}
.nengajo-same-address-preview {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8f6;
  border: 1px solid rgba(195, 54, 58, 0.28);
}
.nengajo-same-address-preview__label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--nj-red);
}
.nengajo-same-address-preview__text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--nj-ink);
  white-space: pre-wrap;
}
#nengajo-address-fields input[readonly] {
  background: #f7f4f1;
  color: var(--nj-ink);
}
#nengajo-joint-names {
  min-height: 88px;
  white-space: pre-wrap;
}
.nengajo-photo-attachments {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
.nengajo-photo-attachments.nengajo-hidden {
  display: none;
}
.nengajo-photo-attachments__item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #faf8f6;
}
.nengajo-photo-attachments__name {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
}
.nengajo-photo-attachments__note {
  margin: 0;
  font-size: 13px;
  color: #6b6560;
}
.nengajo-photo-attachments__thumb {
  display: block;
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}
.nengajo-photo-attachments__remove {
  display: block;
  margin: 8px auto 0;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.35;
  min-height: 0;
}
.nengajo-excel-attachment {
  margin: 0 0 12px;
}
.nengajo-excel-attachment.nengajo-hidden {
  display: none;
}
.nengajo-order-card__attachments,
.nengajo-confirm__attachments {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f3f0;
  font-size: 14px;
  line-height: 1.5;
}
.nengajo-order-card__attachments-title,
.nengajo-confirm__attachments-title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 13px;
}
.nengajo-order-card__attachments-row,
.nengajo-confirm__attachments-row {
  margin: 0;
}
.nengajo-order-card__attachments-row + .nengajo-order-card__attachments-row,
.nengajo-confirm__attachments-row + .nengajo-confirm__attachments-row {
  margin-top: 6px;
}
.nengajo-mourning {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(80, 70, 120, 0.2);
  background: #f8f7fb;
}
.nengajo-mourning__heading {
  margin: 0 0 8px;
  font-size: 16px;
}
.nengajo-mourning__preview-note {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(40, 35, 55, 0.72);
}
.nengajo-mourning__field-block {
  margin: 0 0 14px;
}
.nengajo-mourning__field-block .nengajo-field {
  margin-bottom: 0;
}
.nengajo-mourning__field-block .nengajo-field-hint {
  margin: 6px 0 0;
}
.nengajo-mourning__field-block .nengajo-mourning__print-display {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(40, 35, 55, 0.72);
}
.nengajo-mourning__grid {
  display: grid;
  gap: 10px;
}
.nengajo-mourning__grid .nengajo-mourning__field-block {
  margin-bottom: 0;
}
.nengajo-mourning__summary {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed rgba(80, 70, 120, 0.35);
  font-size: 13px;
}
.nengajo-mourning__summary-title {
  margin: 0 0 6px;
  font-weight: 700;
}
.nengajo-mourning__summary-list {
  margin: 0;
  padding-left: 1.2em;
}
.nengajo-order-card__mourning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f7fb;
  font-size: 13px;
}
.nengajo-order-card__mourning-title {
  margin: 0 0 6px;
  font-weight: 700;
}
.nengajo-order-card__mourning-list {
  margin: 0;
  padding-left: 1.2em;
}
@media (max-width: 600px) {
  .nengajo-atena-privacy,
  .nengajo-field-hint {
    font-size: 12px;
    line-height: 1.8;
  }
}
.nengajo-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nengajo-inline .btn,
.nengajo-order__nav .btn {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
}
.nengajo-order fieldset {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: #f6f5f3;
}
.nengajo-order legend {
  padding: 0 6px;
  color: var(--nj-red);
  font-size: 13px;
  font-weight: 700;
}
.nengajo-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  font-weight: 500;
  line-height: 1.45;
}
.nengajo-choice input[type="radio"],
.nengajo-choice input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
  width: 1.05em;
  height: 1.05em;
}
.nengajo-order__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--nj-muted);
  line-height: 1.65;
}
.nengajo-selected-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px 18px;
  margin-bottom: 18px;
}
.nengajo-selected {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 132px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #f6f5f3;
  box-shadow: none;
}
.nengajo-selected.is-filled {
  background: #f0efed;
  border-color: transparent;
}
.nengajo-selected.is-text-pending {
  grid-template-columns: minmax(0, 1fr);
  min-height: 132px;
  padding: 14px;
  background: #f6f5f3;
}
.nengajo-selected.is-text-pending .nengajo-selected__thumb {
  display: none;
}
.nengajo-selected.is-text-pending .nengajo-selected__body {
  gap: 6px;
}
.nengajo-selected__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 112px;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}
.nengajo-selected__thumb[hidden] {
  display: none !important;
}
.nengajo-selected__placeholder {
  color: #b7a99a;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nengajo-selected.is-filled .nengajo-selected__placeholder { display: none; }
.nengajo-selected__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.nengajo-selected__slot {
  margin: 0;
  color: var(--nj-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.nengajo-selected__label {
  margin: 0 0 6px;
  color: var(--nj-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-all;
}
.nengajo-selected__btn {
  min-height: 32px;
  padding: 4px 14px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
}
.nengajo-selected__thumb {
  --nj-thumb-long: 104px;
  --nj-thumb-short: 70px;
}
.nengajo-selected img {
  width: auto;
  height: auto;
  max-width: var(--nj-thumb-short);
  max-height: var(--nj-thumb-long);
  object-fit: contain;
  background: #fff;
}
.nengajo-selected.is-landscape img {
  max-width: var(--nj-thumb-long);
  max-height: var(--nj-thumb-short);
}
.nengajo-picker__title {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--nj-ink);
}
#nengajo-picker.nengajo-dialog {
  width: min(880px, calc(100% - 20px));
  max-height: min(88vh, 900px);
  padding: 18px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
#nengajo-picker .nengajo-cats { margin-bottom: 14px; }
#nengajo-picker .nengajo-chip {
  border: 0;
  border-radius: 6px;
  background: #f0efed;
  color: #5c534c;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
#nengajo-picker .nengajo-chip:hover,
#nengajo-picker .nengajo-chip:focus-visible {
  background: #e5e2de;
  color: #3a342f;
}
#nengajo-picker .nengajo-dialog__body {
  max-height: min(58vh, 560px);
  padding: 4px 2px 12px;
}
#nengajo-picker .nengajo-design {
  gap: 8px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}
#nengajo-picker .nengajo-design > span {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nj-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
#nengajo-picker-close {
  display: block;
  margin: 12px auto 0;
}
@media (max-width: 700px) {
  .nengajo-selected-pair {
    gap: 10px 12px;
  }
  .nengajo-selected {
    padding: 10px;
    min-height: 0;
  }
  .nengajo-selected.is-text-pending {
    min-height: 0;
  }
  .nengajo-selected__thumb {
    width: 64px;
    height: 84px;
  }
}
.nengajo-money {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f6f5f3;
  border: 0;
  font-size: 13px;
  color: var(--nj-muted);
  line-height: 1.55;
}
.nengajo-money strong {
  color: var(--nj-red);
  font-size: 18px;
}
.nengajo-line-price__lead {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--nj-ink);
}
.nengajo-line-price__hint {
  margin: 0;
  line-height: 1.6;
}
.nengajo-price-table {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--nj-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.nengajo-price-table--compact {
  font-size: 12px;
}
.nengajo-price-table__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--nj-line);
}
.nengajo-price-table__row:first-child {
  border-top: 0;
}
.nengajo-price-table__label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--nj-muted);
  line-height: 1.45;
}
.nengajo-price-table__amount {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--nj-ink);
  text-align: right;
  white-space: nowrap;
}
.nengajo-price-table__row--emphasis .nengajo-price-table__amount {
  color: var(--nj-red);
}
.nengajo-price-table__row--total {
  background: #fff8f6;
}
.nengajo-price-table__row--total .nengajo-price-table__label,
.nengajo-price-table__row--total .nengajo-price-table__amount {
  font-weight: 700;
  color: var(--nj-red);
  font-size: 14px;
}
.nengajo-order-price {
  margin: 4px 0 0;
}
.nengajo-order-price__empty {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--nj-wash);
  font-size: 12px;
  line-height: 1.55;
  color: var(--nj-muted);
}
.nengajo-order-price__note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--nj-red);
  font-weight: 600;
}
.nengajo-order-price__tag {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--nj-muted);
}
.nengajo-price-grand {
  margin: 16px 0 0;
  padding: 14px 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(195, 54, 58, 0.28);
  background: #fff8f6;
}
.nengajo-price-grand__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--nj-red);
}
.nengajo-price-grand__empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--nj-muted);
}
/* Final confirm — match sender line size (13px) */
.nengajo-only-6 #nengajo-confirm .nengajo-order-price {
  margin: 8px 0 4px;
}
.nengajo-price-table--confirm {
  font-size: 13px;
  border-radius: 8px;
}
.nengajo-price-table--confirm .nengajo-price-table__row {
  padding: 8px 12px;
  gap: 12px;
}
.nengajo-price-table--confirm .nengajo-price-table__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--nj-muted);
}
.nengajo-price-table--confirm .nengajo-price-table__amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--nj-ink);
}
.nengajo-price-table--confirm .nengajo-price-table__row--emphasis .nengajo-price-table__amount {
  color: var(--nj-red);
}
.nengajo-price-grand--confirm {
  margin: 16px 0 18px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  border-width: 1px;
}
.nengajo-price-grand--confirm .nengajo-price-grand__title {
  margin-bottom: 10px;
  font-size: 14px;
}
.nengajo-price-grand--confirm .nengajo-price-table__row--total .nengajo-price-table__label {
  font-size: 14px;
}
.nengajo-only-6 .nengajo-order-price__note {
  font-size: 12px;
  margin-top: 6px;
}
.nengajo-only-6 .nengajo-order-price__tag {
  font-size: 12px;
}
.nengajo-order__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.nengajo-order__nav--center,
.nengajo-order__nav--outside {
  justify-content: center;
}
.nengajo-order__nav--outside {
  margin: 4px 0 20px;
  padding: 0;
}
.nengajo-order__nav .btn--solid,
.nengajo-order .btn--solid {
  background: var(--nj-red);
  border-color: var(--nj-red);
}
.nengajo-order__nav .btn--solid:hover,
.nengajo-order .btn--solid:hover {
  background: #a81830;
  border-color: #a81830;
}
.nengajo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 0;
  padding: 0;
  list-style: none;
}
.nengajo-list__empty {
  padding: 16px;
  border: 1px solid var(--nj-line);
  border-radius: 10px;
  color: var(--nj-muted);
  font-size: 14px;
  line-height: 1.6;
  background: var(--nj-wash);
}
.nengajo-order-card {
  display: grid;
  grid-template-columns: minmax(96px, 132px) minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--nj-line);
  border-radius: 10px;
  background: #fff;
}
.nengajo-order-card__media {
  align-self: start;
  min-width: 0;
}
.nengajo-order-card__thumbs {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}
.nengajo-order-card__thumbs--dual {
  gap: 8px;
}
.nengajo-order-card__figure {
  margin: 0;
  text-align: center;
  --nj-thumb-long: 132px;
  --nj-thumb-short: 89px;
}
.nengajo-order-card__figure figcaption {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--nj-muted);
  line-height: 1.3;
}
.nengajo-order-card__thumb {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--nj-thumb-short));
  max-height: var(--nj-thumb-long);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px;
  background: #f6f5f3;
}
.nengajo-order-card__figure.is-landscape .nengajo-order-card__thumb {
  max-width: min(100%, var(--nj-thumb-long));
  max-height: var(--nj-thumb-short);
}
.nengajo-order-card__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.nengajo-order-card__head {
  margin: 0;
}
.nengajo-order-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--nj-ink);
}
.nengajo-order-card__sender {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--nj-wash);
  font-size: 14px;
  line-height: 1.6;
}
.nengajo-order-card__sender-row {
  display: grid;
  grid-template-columns: 4.8em minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}
.nengajo-order-card__sender-label {
  color: var(--nj-muted);
  font-weight: 600;
  font-size: 13px;
}
.nengajo-order-card__sender-value {
  color: var(--nj-ink);
  font-weight: 500;
  font-size: 14px;
  min-width: 0;
}
.nengajo-order-card__sender-value--multiline {
  white-space: pre-line;
}
.nengajo-order-card__actions {
  margin-top: 2px;
  gap: 6px;
}
.nengajo-order-card__btn {
  padding: 5px 12px;
  min-height: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.nengajo-order-card .nengajo-price-table--compact {
  font-size: 14px;
}
.nengajo-order-card .nengajo-price-table--compact .nengajo-price-table__label,
.nengajo-order-card .nengajo-price-table--compact .nengajo-price-table__amount {
  font-size: 14px;
}
.nengajo-order-card .nengajo-order-price__tag,
.nengajo-order-card .nengajo-order-price__empty {
  font-size: 13px;
}
.nengajo-orders-total {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 16px 0 0;
}
.nengajo-orders-total + .nengajo-order__nav {
  margin-top: 18px;
}
.nengajo-orders-total__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  padding: 12px 14px;
  border: 1px solid var(--nj-line);
  border-radius: 10px;
  background: #fff;
  --nj-order-summary-amount-col: 6.75rem;
}
.nengajo-price-grand--confirm {
  --nj-order-summary-amount-col: 6.75rem;
}
.nengajo-orders-total__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--nj-ink);
}
.nengajo-resume-cart-wrap {
  margin: 0 0 12px;
}
.nengajo-resume-cart-wrap .btn {
  width: 100%;
  max-width: 360px;
}
.nengajo-clear-all-wrap {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--nj-line);
  text-align: center;
}
.nengajo-clear-all-wrap .btn.nengajo-clear-all {
  display: inline-flex;
  min-height: 0;
  margin: 0;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--nj-muted);
  background: #fff;
  border: 1px solid #d5d0cb;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}
.nengajo-clear-all-wrap .btn.nengajo-clear-all:hover,
.nengajo-clear-all-wrap .btn.nengajo-clear-all:focus-visible {
  color: var(--nj-ink);
  background: #fafaf9;
  border-color: #c8c2bc;
}
.nengajo-clear-all-wrap .btn.nengajo-clear-all:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.nengajo-clear-all-dialog {
  width: min(92vw, 400px);
  padding: 20px 18px 16px;
  border: 0;
  border-radius: 12px;
}
.nengajo-clear-all-dialog__message {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--nj-ink);
  text-align: left;
}
.nengajo-clear-all-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.nengajo-clear-all-dialog__confirm {
  color: #9a2c2c;
  border-color: rgba(154, 44, 44, 0.35);
}
.nengajo-clear-all-dialog__confirm:hover,
.nengajo-clear-all-dialog__confirm:focus-visible {
  background: rgba(154, 44, 44, 0.06);
}
.nengajo-print-breakdown {
  margin: 0 0 8px;
  padding: 10px 0 0;
  border-top: 1px solid var(--nj-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--nj-order-summary-amount-col, 6.75rem);
  column-gap: 16px;
  row-gap: 2px;
  align-items: baseline;
}
.nengajo-print-breakdown__lead {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nj-muted);
  line-height: 1.45;
}
.nengajo-print-breakdown__section {
  display: contents;
}
.nengajo-print-breakdown__head {
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nj-ink);
  line-height: 1.45;
}
.nengajo-print-breakdown__section:first-child .nengajo-print-breakdown__head {
  padding-top: 0;
}
.nengajo-print-breakdown__row {
  display: contents;
  font-size: 12px;
  line-height: 1.45;
}
.nengajo-print-breakdown__label {
  grid-column: 1;
  min-width: 0;
  padding: 2px 0;
  color: var(--nj-muted);
}
.nengajo-print-breakdown__amount {
  grid-column: 2;
  padding: 2px 0;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--nj-ink);
  white-space: nowrap;
  text-align: right;
  justify-self: end;
  width: 100%;
  box-sizing: border-box;
}
.nengajo-price-grand--confirm .nengajo-print-breakdown {
  margin-bottom: 12px;
}
.nengajo-price-table--order-total {
  font-size: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: block;
  padding: 0;
}
.nengajo-price-table--order-total .nengajo-price-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--nj-order-summary-amount-col, 6.75rem);
  column-gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--nj-line);
}
.nengajo-price-table--order-total .nengajo-price-table__row:first-child {
  border-top: 0;
  padding-top: 4px;
}
.nengajo-price-table--order-total .nengajo-price-table__label {
  grid-column: 1;
  min-width: 0;
  font-weight: 500;
  color: var(--nj-muted);
  writing-mode: horizontal-tb;
  line-height: 1.45;
}
.nengajo-price-table--order-total .nengajo-price-table__amount {
  grid-column: 2;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--nj-ink);
  white-space: nowrap;
  text-align: right;
  justify-self: end;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.35;
}
.nengajo-price-table--order-total .nengajo-price-table__row--total {
  margin-top: 2px;
  padding-top: 10px;
  padding-bottom: 4px;
  border-top-width: 2px;
  border-top-color: rgba(195, 54, 58, 0.25);
  background: transparent;
}
.nengajo-price-table--order-total .nengajo-price-table__row--total .nengajo-price-table__label {
  font-weight: 700;
  color: var(--nj-ink);
}
.nengajo-price-table--order-total .nengajo-price-table__row--total .nengajo-price-table__amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--nj-red);
}
.nengajo-price-grand--confirm .nengajo-price-table--confirm {
  font-size: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: block;
  padding: 0;
}
.nengajo-price-grand--confirm .nengajo-price-table--confirm .nengajo-price-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--nj-order-summary-amount-col, 6.75rem);
  column-gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--nj-line);
}
.nengajo-price-grand--confirm .nengajo-price-table--confirm .nengajo-price-table__row:first-child {
  border-top: 0;
  padding-top: 4px;
}
.nengajo-price-grand--confirm .nengajo-price-table--confirm .nengajo-price-table__label {
  grid-column: 1;
  min-width: 0;
}
.nengajo-price-grand--confirm .nengajo-price-table--confirm .nengajo-price-table__amount {
  grid-column: 2;
  font-size: 16px;
  white-space: nowrap;
  text-align: right;
  justify-self: end;
  width: 100%;
  box-sizing: border-box;
}
.nengajo-price-grand--confirm .nengajo-price-table--confirm .nengajo-price-table__row--total .nengajo-price-table__amount {
  font-size: 20px;
}
.nengajo-confirm__joint {
  white-space: pre-line;
}
@media (max-width: 700px) {
  .nengajo-order-card {
    grid-template-columns: 1fr;
  }
  .nengajo-order-card__thumbs--dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nengajo-order-card__thumb {
    max-height: 160px;
  }
  .nengajo-orders-total {
    justify-content: stretch;
  }
  .nengajo-orders-total__inner {
    max-width: none;
  }
}
.nengajo-only-5 > p {
  margin: 0 0 10px;
  line-height: 1.7;
}
.nengajo-only-5 .nengajo-field-hint {
  margin: 0 0 18px;
  line-height: 1.75;
}
.nengajo-only-5 .nengajo-field {
  margin-bottom: 18px;
  gap: 8px;
}
.nengajo-proof {
  margin: 0 0 16px;
  padding: 10px 12px 12px;
}
.nengajo-proof legend {
  font-size: 12px;
}
.nengajo-proof__options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.nengajo-proof__options .nengajo-choice {
  margin: 0;
  font-size: 13px;
}
.nengajo-proof__line-note {
  margin: 8px 0 0 !important;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff8f6;
  border: 1px solid rgba(195, 54, 58, 0.28);
  color: var(--nj-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}
.nengajo-proof #nengajo-proof-fax-wrap {
  margin: 8px 0 0;
}
.nengajo-only-5 .nengajo-order__nav {
  margin-top: 10px;
}
.nengajo-confirm__item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--nj-line);
  border-radius: 10px;
  background: #fff;
}
.nengajo-confirm__item--dual {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.nengajo-confirm__thumbs {
  display: grid;
  gap: 12px;
  justify-items: center;
}
.nengajo-confirm__item--dual .nengajo-confirm__thumbs {
  grid-template-columns: repeat(2, minmax(0, 160px));
  justify-content: start;
  gap: 14px 18px;
  margin-bottom: 4px;
}
.nengajo-confirm__item--dual .nengajo-confirm__body {
  grid-column: 1 / -1;
}
.nengajo-confirm__figure {
  margin: 0;
  text-align: center;
}
.nengajo-confirm__figure figcaption {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--nj-red);
  line-height: 1.3;
}
.nengajo-confirm__figure {
  --nj-thumb-long: 168px;
  --nj-thumb-short: 113px;
}
.nengajo-confirm__thumb {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--nj-thumb-short));
  max-height: var(--nj-thumb-long);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.nengajo-confirm__figure.is-landscape .nengajo-confirm__thumb {
  max-width: min(100%, var(--nj-thumb-long));
  max-height: var(--nj-thumb-short);
}
.nengajo-confirm__body {
  display: grid;
  gap: 6px;
  min-width: 0;
  justify-items: stretch;
}
.nengajo-confirm__fix {
  justify-self: start;
  margin-top: 4px;
  width: auto;
  max-width: 100%;
  padding: 6px 12px;
  min-height: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
@media (max-width: 640px) {
  .nengajo-confirm__item {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
  }
  .nengajo-confirm__item--dual {
    grid-template-columns: minmax(0, 1fr);
  }
  .nengajo-confirm__item--dual .nengajo-confirm__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .nengajo-confirm__figure {
    --nj-thumb-long: 120px;
    --nj-thumb-short: 81px;
  }
}
.nengajo-confirm__title,
.nengajo-confirm__meta,
.nengajo-confirm__sender,
.nengajo-confirm__phone,
.nengajo-confirm__joint,
.nengajo-confirm__note {
  margin: 0;
  line-height: 1.6;
}
.nengajo-confirm__title { font-weight: 700; }
.nengajo-confirm__meta,
.nengajo-confirm__sender,
.nengajo-confirm__phone,
.nengajo-confirm__joint,
.nengajo-confirm__note {
  font-size: 13px;
  color: var(--nj-muted);
}
.nengajo-confirm__contact-box {
  display: grid;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--nj-line);
  border-radius: 10px;
  background: #fff;
}
.nengajo-confirm__contact-title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--nj-red);
  line-height: 1.4;
}
.nengajo-confirm__contact-row {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
}
.nengajo-confirm__contact-label {
  color: var(--nj-muted);
  font-weight: 600;
}
.nengajo-confirm__contact-value {
  color: var(--nj-ink);
  font-weight: 700;
  word-break: break-word;
  white-space: pre-line;
}
.nengajo-confirm__ack {
  margin: 18px 0 16px;
  padding: 16px;
  border-radius: 12px;
  background: #faf9f6;
  border: 1px solid var(--nj-line);
}
.nengajo-confirm__ack-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--nj-ink);
}
.nengajo-confirm__ack-notes {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.nengajo-confirm__ack-notes .nengajo-confirm__pay-lead {
  margin: 0;
}
.nengajo-confirm__ack-notes .nengajo-privacy__policy {
  margin: 0;
}
.nengajo-confirm__ack-checks {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--nj-line);
}
.nengajo-confirm__ack-check {
  margin: 0;
}
.nengajo-confirm__pre-submit-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--nj-ink);
}
.nengajo-confirm__pre-submit-email {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(195, 54, 58, 0.35);
}
.nengajo-confirm__pre-submit-email-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--nj-muted);
}
.nengajo-confirm__pre-submit-email-value {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--nj-red);
  word-break: break-all;
}
.nengajo-confirm__pay-lead {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8f6;
  border: 1px solid rgba(195, 54, 58, 0.28);
  color: var(--nj-red);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}
.nengajo-privacy__policy {
  margin: 0 0 10px;
  border: 1px solid var(--nj-line);
  border-radius: 8px;
  background: var(--nj-wash);
}
.nengajo-privacy__policy summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--nj-ink);
}
.nengajo-privacy__policy summary::-webkit-details-marker {
  display: none;
}
.nengajo-privacy__policy summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  translate: 0 -2px;
}
.nengajo-privacy__policy[open] summary::after {
  transform: rotate(-135deg);
  translate: 0 2px;
}
.nengajo-privacy__body {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--nj-muted);
}
.nengajo-privacy__body p {
  margin: 0 0 10px;
}
.nengajo-privacy__body p:last-child {
  margin-bottom: 0;
}
.nengajo-privacy__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--nj-ink);
  background: var(--nj-wash);
  cursor: pointer;
}
.nengajo-privacy__check input {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  margin: 0.2em 0 0;
}
.nengajo-only-6 .nengajo-turnstile {
  margin-top: 8px;
  margin-bottom: 16px;
}
.nengajo-turnstile {
  margin: 14px 0 8px;
  text-align: center;
}
.nengajo-turnstile #nengajo-turnstile-host {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  min-height: 65px;
}
.nengajo-turnstile .cf-turnstile {
  min-height: 65px;
}
.nengajo-turnstile #nengajo-turnstile-error .btn {
  margin-left: 8px;
  vertical-align: baseline;
}
.nengajo-turnstile #nengajo-turnstile-loading[hidden],
.nengajo-turnstile #nengajo-turnstile-error[hidden],
.nengajo-turnstile #nengajo-turnstile-precheck[hidden] {
  display: none !important;
}
.nengajo-order .btn--solid:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.nengajo-done__lead {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.nengajo-done__receipt {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff8f6;
  border: 1px solid rgba(195, 54, 58, 0.28);
  color: var(--nj-red);
  font-size: 18px;
  font-weight: 700;
}
.nengajo-only-7 { display: none; }
.nengajo-order[data-step="7"] .nengajo-only-7 { display: block; }
.nengajo-order[data-step="7"] .nengajo-only-6,
.nengajo-order[data-step="7"] .nengajo-order__screen,
.nengajo-order[data-step="7"] .nengajo-steps,
.nengajo-order[data-step="7"] #nengajo-closed,
.nengajo-order[data-step="7"] #nengajo-error {
  display: none !important;
}
.nengajo-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fff8f6;
  border: 1px solid rgba(195, 54, 58, 0.22);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--nj-muted);
}
.nengajo-order #nengajo-error.nengajo-status {
  background: #fff1f0;
  border-color: rgba(195, 54, 58, 0.4);
  color: var(--nj-red);
  font-weight: 600;
}
.nengajo-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.nengajo-cats a,
.nengajo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--nj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--nj-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nengajo-cats a:hover,
.nengajo-cats a:focus-visible,
.nengajo-chip:hover,
.nengajo-chip:focus-visible {
  background: #f0efed;
  border-color: #d9d0c6;
  color: #3a342f;
}

@media (min-width: 960px) {
  .nengajo-only-1 .nengajo-order__nav,
  .nengajo-only-2 .nengajo-order__nav { display: none; }
  .nengajo-order__screen[data-screen="edit"] {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 16px;
    align-items: start;
  }
  .nengajo-order__screen[data-screen="edit"] .nengajo-order__panel.nengajo-only-3,
  .nengajo-order__screen[data-screen="edit"] .nengajo-order__nav--outside {
    grid-column: 1 / -1;
  }
  .nengajo-order[data-step="1"] .nengajo-only-4,
  .nengajo-order[data-step="1"] .nengajo-only-5,
  .nengajo-order[data-step="1"] .nengajo-only-6,
  .nengajo-order[data-step="1"] .nengajo-only-7,
  .nengajo-order[data-step="2"] .nengajo-only-4,
  .nengajo-order[data-step="2"] .nengajo-only-5,
  .nengajo-order[data-step="2"] .nengajo-only-6,
  .nengajo-order[data-step="2"] .nengajo-only-7,
  .nengajo-order[data-step="3"] .nengajo-only-4,
  .nengajo-order[data-step="3"] .nengajo-only-5,
  .nengajo-order[data-step="3"] .nengajo-only-6,
  .nengajo-order[data-step="3"] .nengajo-only-7,
  .nengajo-order[data-step="4"] .nengajo-only-1,
  .nengajo-order[data-step="4"] .nengajo-only-2,
  .nengajo-order[data-step="4"] .nengajo-only-3,
  .nengajo-order[data-step="4"] .nengajo-only-6,
  .nengajo-order[data-step="4"] .nengajo-only-7,
  .nengajo-order[data-step="5"] .nengajo-only-1,
  .nengajo-order[data-step="5"] .nengajo-only-2,
  .nengajo-order[data-step="5"] .nengajo-only-3,
  .nengajo-order[data-step="5"] .nengajo-only-6,
  .nengajo-order[data-step="5"] .nengajo-only-7,
  .nengajo-order[data-step="6"] .nengajo-only-1,
  .nengajo-order[data-step="6"] .nengajo-only-2,
  .nengajo-order[data-step="6"] .nengajo-only-3,
  .nengajo-order[data-step="6"] .nengajo-only-4,
  .nengajo-order[data-step="6"] .nengajo-only-5,
  .nengajo-order[data-step="6"] .nengajo-only-7 { display: none; }
  /* ご注文内容と連絡先が同時表示のときは下に入力欄があるため不要 */
  .nengajo-order[data-step="4"] #nengajo-to-contact,
  .nengajo-order[data-step="5"] #nengajo-to-contact {
    display: none;
  }
  .nengajo-steps { display: none; }
}

@media (max-width: 959px) {
  .nengajo-order__screen { display: block; }
  .nengajo-order[data-step="1"] .nengajo-only-2,
  .nengajo-order[data-step="1"] .nengajo-only-3,
  .nengajo-order[data-step="1"] .nengajo-only-4,
  .nengajo-order[data-step="1"] .nengajo-only-5,
  .nengajo-order[data-step="1"] .nengajo-only-6,
  .nengajo-order[data-step="1"] .nengajo-only-7,
  .nengajo-order[data-step="2"] .nengajo-only-1,
  .nengajo-order[data-step="2"] .nengajo-only-3,
  .nengajo-order[data-step="2"] .nengajo-only-4,
  .nengajo-order[data-step="2"] .nengajo-only-5,
  .nengajo-order[data-step="2"] .nengajo-only-6,
  .nengajo-order[data-step="2"] .nengajo-only-7,
  .nengajo-order[data-step="3"] .nengajo-only-1,
  .nengajo-order[data-step="3"] .nengajo-only-2,
  .nengajo-order[data-step="3"] .nengajo-only-4,
  .nengajo-order[data-step="3"] .nengajo-only-5,
  .nengajo-order[data-step="3"] .nengajo-only-6,
  .nengajo-order[data-step="3"] .nengajo-only-7,
  .nengajo-order[data-step="4"] .nengajo-only-1,
  .nengajo-order[data-step="4"] .nengajo-only-2,
  .nengajo-order[data-step="4"] .nengajo-only-3,
  .nengajo-order[data-step="4"] .nengajo-only-5,
  .nengajo-order[data-step="4"] .nengajo-only-6,
  .nengajo-order[data-step="4"] .nengajo-only-7,
  .nengajo-order[data-step="5"] .nengajo-only-1,
  .nengajo-order[data-step="5"] .nengajo-only-2,
  .nengajo-order[data-step="5"] .nengajo-only-3,
  .nengajo-order[data-step="5"] .nengajo-only-4,
  .nengajo-order[data-step="5"] .nengajo-only-6,
  .nengajo-order[data-step="5"] .nengajo-only-7,
  .nengajo-order[data-step="6"] .nengajo-only-1,
  .nengajo-order[data-step="6"] .nengajo-only-2,
  .nengajo-order[data-step="6"] .nengajo-only-3,
  .nengajo-order[data-step="6"] .nengajo-only-4,
  .nengajo-order[data-step="6"] .nengajo-only-5,
  .nengajo-order[data-step="6"] .nengajo-only-7 { display: none; }
}

@media (max-width: 900px) {
  .nengajo-hero,
  .nengajo-hero--festive {
    padding: 20px 0 18px;
    background: #ba2421;
  }
  /* Fade the patterned art itself (behind cards), not the whole hero */
  .nengajo-hero--festive .nengajo-hero__base-art {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 38%,
      rgba(0, 0, 0, 0.45) 68%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 38%,
      rgba(0, 0, 0, 0.45) 68%,
      transparent 100%
    );
  }
  .nengajo-hero--festive .nengajo-hero__base::after {
    content: none;
  }
  .nengajo-lp .nengajo-hero__deco {
    width: clamp(200px, 58vw, 340px);
    max-width: min(72vw, 340px);
  }
  .nengajo-hero__deco--left { transform: translate(-8%, -4%); }
  .nengajo-hero__deco--right { transform: translate(8%, -4%); }
  .nengajo-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 0;
    padding-bottom: 28px;
  }
  .nengajo-hero__intro,
  .nengajo-hero__aside,
  .nengajo-stage {
    grid-area: auto;
  }
  .nengajo-hero h1 {
    align-items: center;
    text-align: center;
    margin: 0 auto 2px;
    gap: 2px;
  }
  .nengajo-year-bg {
    top: -0.12em;
    font-size: clamp(48px, 16vw, 80px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.2);
  }
  .nengajo-catch {
    width: fit-content;
    max-width: calc(100% - 100px);
    margin: 0 auto;
    text-align: center;
  }
  .nengajo-title-mark {
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
  }
  .nengajo-hero .nengajo-deadlines,
  .nengajo-hero .nengajo-actions {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .nengajo-pickup-note {
    max-width: 360px;
    margin: 0 auto 8px;
    text-align: center;
    font-size: 12px;
  }
  .nengajo-hero__aside .nengajo-deadlines { margin-bottom: 8px; }
  .nengajo-hero__aside .nengajo-actions { margin-bottom: 8px; }
  .nengajo-stage {
    --stage-h: 250px;
    width: min(100%, 320px);
    margin: -4px auto 0;
  }
  .nengajo-fan .is-portrait {
    left: 8%;
    top: 6%;
    height: calc(var(--stage-h) * 0.8);
  }
  .nengajo-fan .is-landscape {
    right: 2%;
    top: 20%;
    width: calc(var(--stage-h) * 0.8);
  }
  .nengajo-gift--in-hero {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    margin-right: auto;
    padding: 12px 14px;
    text-align: left;
  }
  .nengajo-gift__media {
    margin: -8px 2px -8px 0;
    width: 132px;
    max-width: 40%;
    flex: 0 0 132px;
  }
  .nengajo-gift h2 {
    align-items: flex-start;
    font-size: clamp(18px, 5vw, 22px);
  }
  .nengajo-points {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }
  .nengajo-points article {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .nengajo-points p,
  .nengajo-points .nengajo-note-sub { max-width: none; }
  .nengajo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
  }
  .nengajo-design {
    gap: 6px;
    padding: 8px 4px 10px;
  }
  .nengajo-lp,
  .nengajo-order,
  #nengajo-picker {
    --nj-thumb-long: 104px;
    --nj-thumb-short: 70px;
  }
  .nengajo-design__frame { height: 112px; }
  .nengajo-design__meta {
    gap: 4px;
    padding: 3px 3px 3px 5px;
  }
  .nengajo-design__cat { font-size: 9px; }
  .nengajo-design__name { font-size: 11px; }
  .nengajo-lp a.nengajo-design__order {
    min-height: 22px;
    padding: 2px 7px 2px 5px;
    font-size: 10px;
  }
  .nengajo-lp a.nengajo-design__order .nengajo-design__order-icon {
    width: 11px;
    height: 11px;
  }
  .nengajo-price-cards { grid-template-columns: 1fr 1fr; }
  .nengajo-address__grid,
  .nengajo-address__points { grid-template-columns: 1fr; }
  .nengajo-address__art { max-width: 240px; margin: 0 auto; }
  .nengajo-cta__inner { justify-content: center; text-align: center; }
  .nengajo-cta .nengajo-actions { justify-content: center; }
  .nengajo-heading-ornament { width: min(160px, 52vw); }
}

@media (max-width: 600px) {
  .nengajo-hero,
  .nengajo-hero--festive { padding: 16px 0 14px; }
  .nengajo-hero--festive .nengajo-hero__base-art {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 30%,
      rgba(0, 0, 0, 0.4) 60%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 30%,
      rgba(0, 0, 0, 0.4) 60%,
      transparent 100%
    );
  }
  .nengajo-hero__inner {
    gap: 4px;
    padding-bottom: 8px;
  }
  .nengajo-lp .nengajo-hero__deco {
    width: clamp(190px, 64vw, 300px);
    max-width: min(78vw, 300px);
  }
  .nengajo-hero__deco--left { transform: translate(-10%, -6%); }
  .nengajo-hero__deco--right { transform: translate(10%, -6%); }
  .nengajo-era { font-size: clamp(24px, 7vw, 32px); }
  .nengajo-year-bg {
    top: -0.14em;
    font-size: clamp(44px, 18vw, 72px);
    color: rgba(255, 255, 255, 0.2);
  }
  .nengajo-catch { font-size: 15px; }
  .nengajo-actions,
  .nengajo-order__nav { flex-direction: column; }
  .nengajo-actions .nengajo-pill,
  .nengajo-order__nav .btn { width: 100%; }
  .nengajo-deadlines { width: 100%; }
  .nengajo-deadlines p { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .nengajo-hero .nengajo-deadlines,
  .nengajo-hero .nengajo-actions {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .nengajo-hero .nengajo-actions { grid-template-columns: 1fr; }
  .nengajo-stage {
    --stage-h: 270px;
    width: min(100%, 320px);
  }
  .nengajo-heading { font-size: 18px; }
  .nengajo-section { padding: 32px 0; }
  .nengajo-gift__lead { font-size: 12px; }
  .nengajo-gift--in-hero {
    max-width: none;
    gap: 10px;
    padding: 12px;
  }
  .nengajo-gift__media {
    margin: -6px 4px -6px 0;
    width: 120px;
    max-width: 38%;
    flex: 0 0 120px;
  }
}
