/* チラシ制作（/flyer/）
   docs/style-guide.md（和紙×墨×丹色）準拠 / ads-price の空気感を踏襲 */

:root {
  --color-bg: #f5f0e8;
  --color-text: #1a1a1a;
  --color-accent: #c53d43;
  --color-accent-gold: #b8860b;
  --color-border: #d0c8b8;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-width: 1200px;
  --section-padding: 72px;
  --transition-speed: 220ms;
}

.np-flyer {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

/* Reveal animation (静かに) */
.np-flyer [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  will-change: opacity, transform;
}
.np-flyer .is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .np-flyer [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* Shell: 紙面感（控えめ） */
.np-flyer .np-flyer-shell {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding-inline: 10px;
}
.np-flyer .np-flyer-shell::before {
  content: "";
  position: absolute;
  inset: -22px 0;
  background:
    radial-gradient(900px 320px at 18% 10%, rgba(255, 255, 255, 0.46), transparent 58%),
    radial-gradient(720px 280px at 78% 22%, rgba(197, 61, 67, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.02), transparent 24%),
    repeating-linear-gradient(
      90deg,
      rgba(208, 200, 184, 0.1) 0px,
      rgba(208, 200, 184, 0.1) 1px,
      transparent 1px,
      transparent 12px
    );
  border: 1px solid rgba(208, 200, 184, 0.65);
  pointer-events: none;
  z-index: 0;
}
.np-flyer .np-flyer-shell > * {
  position: relative;
  z-index: 1;
}

/* Page head (ads/price の見出し系に寄せる) */
.np-flyer .np-page-head {
  padding-top: 34px;
}
.np-flyer .np-page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 34px;
  line-height: 1.25;
}
.np-flyer .np-page-lead {
  margin: 12px 0 0;
  color: rgba(26, 26, 26, 0.72);
  max-width: 70ch;
}
.np-flyer .np-page-rule {
  margin-top: 18px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(208, 200, 184, 0.25),
    rgba(208, 200, 184, 0.95),
    rgba(208, 200, 184, 0.25)
  );
}

/* Sections */
.np-flyer .np-flyer-section {
  margin-top: var(--section-padding);
  scroll-margin-top: 110px;
}
.np-flyer .np-flyer-section:first-of-type {
  margin-top: 56px;
}
.np-flyer .np-flyer-section.is-alt {
  padding: 26px 10px 18px;
  /* Shell padding-inline is 10px — match it so the bordered box doesn’t extend past the shell */
  margin-inline: -10px;
  border: 1px solid rgba(208, 200, 184, 0.65);
  background:
    radial-gradient(900px 240px at 20% 16%, rgba(255, 255, 255, 0.55), transparent 58%),
    radial-gradient(760px 220px at 80% 30%, rgba(184, 134, 11, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.18);
}

.np-flyer .np-flyer-section-head {
  margin-bottom: 14px;
}
.np-flyer .np-flyer-section-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.np-flyer .np-flyer-section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 20px;
  color: rgba(26, 26, 26, 0.92);
}
.np-flyer .np-flyer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(208, 200, 184, 0.85);
  background: rgba(245, 240, 232, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(26, 26, 26, 0.78);
}
.np-flyer .np-flyer-materials {
  margin: 10px 0 0;
  color: rgba(26, 26, 26, 0.62);
  font-size: 13px;
  line-height: 1.7;
}

/* Notes (共通注記) */
.np-flyer .np-flyer-notes {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid rgba(208, 200, 184, 0.9);
  background: rgba(255, 255, 255, 0.18);
  color: rgba(26, 26, 26, 0.66);
  font-size: 13px;
  line-height: 1.7;
}
.np-flyer .np-flyer-notes p {
  margin: 6px 0 0;
}
.np-flyer .np-flyer-notes p:first-child {
  margin-top: 0;
}

/* Grid */
.np-flyer .np-flyer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Cards */
.np-flyer .np-flyer-card {
  --tone: var(--color-accent);
  border-radius: 2px;
  border: 1px solid rgba(208, 200, 184, 0.75);
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 260px at 18% 18%, rgba(255, 255, 255, 0.55), transparent 58%),
    repeating-linear-gradient(
      90deg,
      rgba(208, 200, 184, 0.12) 0px,
      rgba(208, 200, 184, 0.12) 1px,
      transparent 1px,
      transparent 14px
    ),
    rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    background var(--transition-speed);
}
.np-flyer .np-flyer-card[data-tone="gold"] {
  --tone: var(--color-accent-gold);
}
.np-flyer .np-flyer-card-topbar {
  height: 3px;
  background: var(--tone);
}
.np-flyer .np-flyer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(26, 26, 26, 0.1);
}

/* Deal ribbon (格安) */
.np-flyer .np-flyer-card[data-deal="true"] {
  position: relative;
}
.np-flyer .np-flyer-card[data-deal="true"]::before {
  content: "お得";
  position: absolute;
  top: 10px;
  right: -34px;
  width: 120px;
  text-align: center;
  padding: 6px 0 5px;
  transform: rotate(35deg);
  background: rgba(184, 134, 11, 0.92);
  color: rgba(245, 240, 232, 0.98);
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 11px;
  box-shadow: 0 6px 14px rgba(26, 26, 26, 0.12);
  pointer-events: none;
}

.np-flyer .np-flyer-card-body {
  display: flex;
  align-items: stretch;
  min-width: 0;
  flex: 1;
}
.np-flyer .np-flyer-card-vert {
  width: 34px;
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  background: rgba(26, 26, 26, 0.88);
  color: rgba(245, 240, 232, 0.98);
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 12px;
  user-select: none;
}
.np-flyer .np-flyer-card-main {
  flex: 1;
  min-width: 0;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
}
.np-flyer .np-flyer-card-label {
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 16px;
  color: rgba(26, 26, 26, 0.92);
  line-break: strict;
  overflow-wrap: anywhere;
}
.np-flyer .np-flyer-card-cond {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.64);
  letter-spacing: 0.02em;
}

.np-flyer .np-flyer-card-dl {
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}
.np-flyer .np-flyer-card-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: start;
}
.np-flyer .np-flyer-card-row.is-price {
  margin-bottom: 12px;
}
.np-flyer .np-flyer-card-row dt {
  font-size: 11px;
  color: rgba(26, 26, 26, 0.58);
  letter-spacing: 0.06em;
  font-weight: 800;
  padding-top: 4px;
}
.np-flyer .np-flyer-card-row dd {
  margin: 0;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: rgba(26, 26, 26, 0.86);
  overflow-wrap: anywhere;
}
.np-flyer .np-flyer-card-row.is-price dd {
  color: var(--tone);
}
.np-flyer .np-flyer-price {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.np-flyer .np-flyer-card-foot {
  margin-top: auto;
  padding: 10px 12px 9px;
  border-top: 1px dotted rgba(208, 200, 184, 0.95);
  background: rgba(245, 240, 232, 0.62);
  color: rgba(26, 26, 26, 0.72);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* CSS icons */
.np-flyer .np-flyer-ico {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.9;
}
.np-flyer .np-flyer-ico--clock {
  border: 1.5px solid rgba(26, 26, 26, 0.62);
  border-radius: 50%;
  position: relative;
}
.np-flyer .np-flyer-ico--clock::before,
.np-flyer .np-flyer-ico--clock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.5px;
  background: rgba(26, 26, 26, 0.62);
  transform-origin: bottom;
  border-radius: 2px;
}
.np-flyer .np-flyer-ico--clock::before {
  height: 5px;
  transform: translate(-50%, -90%) rotate(0deg);
}
.np-flyer .np-flyer-ico--clock::after {
  height: 6.5px;
  transform: translate(-50%, -90%) rotate(110deg);
  opacity: 0.9;
}
.np-flyer .np-flyer-ico--calendar {
  border: 1.5px solid rgba(26, 26, 26, 0.62);
  border-radius: 3px;
  position: relative;
}
.np-flyer .np-flyer-ico--calendar::before {
  content: "";
  position: absolute;
  inset: 2px 2px auto 2px;
  height: 4px;
  background: rgba(26, 26, 26, 0.62);
  border-radius: 2px;
  opacity: 0.85;
}
.np-flyer .np-flyer-ico--calendar::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 8px;
  bottom: 3px;
  background:
    radial-gradient(circle at 25% 25%, rgba(26, 26, 26, 0.25) 1px, transparent 2px),
    radial-gradient(circle at 75% 25%, rgba(26, 26, 26, 0.25) 1px, transparent 2px),
    radial-gradient(circle at 25% 75%, rgba(26, 26, 26, 0.25) 1px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(26, 26, 26, 0.25) 1px, transparent 2px);
  opacity: 0.9;
}

/* Posting box */
.np-flyer .np-flyer-postbox {
  border: 1px dashed rgba(26, 26, 26, 0.42);
  background:
    radial-gradient(900px 260px at 18% 18%, rgba(255, 255, 255, 0.55), transparent 58%),
    repeating-linear-gradient(
      90deg,
      rgba(208, 200, 184, 0.12) 0px,
      rgba(208, 200, 184, 0.12) 1px,
      transparent 1px,
      transparent 14px
    ),
    rgba(255, 255, 255, 0.22);
  padding: 26px 24px;
}
.np-flyer .np-flyer-postbox-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}
.np-flyer .np-flyer-postbox-kicker {
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.74);
  border: 1px solid rgba(208, 200, 184, 0.85);
  background: rgba(245, 240, 232, 0.7);
  padding: 8px 10px 7px;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
  width: fit-content;
}
.np-flyer .np-flyer-postbox-price {
  display: grid;
  gap: 6px;
}
.np-flyer .np-flyer-postbox-price-val {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--color-accent);
}
.np-flyer .np-flyer-postbox-price-meta {
  color: rgba(26, 26, 26, 0.66);
  font-size: 13px;
}
.np-flyer .np-flyer-postbox-text {
  display: grid;
  gap: 6px;
  color: rgba(26, 26, 26, 0.82);
}
.np-flyer .np-flyer-postbox-strong {
  font-weight: 900;
}
.np-flyer .np-flyer-postbox-muted {
  color: rgba(26, 26, 26, 0.62);
  font-size: 13px;
}
.np-flyer .np-flyer-postbox-div {
  height: 1px;
  background: rgba(208, 200, 184, 0.85);
  margin: 18px 0;
}

/* Focus ring */
.np-flyer :focus-visible {
  outline: 2px solid rgba(197, 61, 67, 0.35);
  outline-offset: 4px;
}

/* Responsive */
@media (max-width: 1040px) {
  .np-flyer .np-flyer-shell::before {
    inset: -18px 0;
  }
  .np-flyer .np-flyer-shell {
    max-width: 100%;
  }
}

@media (max-width: 920px) {
  .np-flyer {
    overflow-x: clip;
    overflow-y: visible;
  }
  .np-flyer .np-flyer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .np-flyer .np-flyer-grid > .np-flyer-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .np-flyer .np-flyer-postbox-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .np-flyer .np-page-title {
    font-size: 28px;
  }
  .np-flyer .np-flyer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .np-flyer .np-flyer-card-vert {
    display: none;
  }
  .np-flyer .np-flyer-card-main {
    padding: 14px 14px 12px;
  }
  .np-flyer .np-flyer-price {
    font-size: 20px;
  }
  .np-flyer .np-flyer-postbox {
    padding: 18px 16px;
  }
  .np-flyer .np-flyer-postbox-price-val {
    font-size: 26px;
  }
  .np-flyer .np-flyer-postbox-div {
    margin: 14px 0;
  }
}

