/* 広告代行（/ads/agency/）
   docs/style-guide.md（和紙×墨×丹色）準拠 / flyer の紙面感を踏襲 */

: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-agency {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

/* Container */
.np-agency .np-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: 20px;
}

.np-agency .np-section {
  padding-block: var(--section-padding);
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 64px;
  }
}
@media (max-width: 768px) {
  :root {
    --section-padding: 56px;
  }
}

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

/* Shell: 和紙（控えめ） */
.np-agency .np-agency-shell {
  position: relative;
}
.np-agency .np-agency-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 360px at 18% 10%, rgba(255, 255, 255, 0.46), transparent 58%),
    radial-gradient(720px 300px 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-agency .np-agency-shell > * {
  position: relative;
  z-index: 1;
}

/* Page head */
.np-agency .np-page-head {
  padding-top: 34px;
}
.np-agency .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-agency .np-page-lead {
  margin: 12px 0 0;
  color: rgba(26, 26, 26, 0.72);
  max-width: 76ch;
}
.np-agency .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)
  );
}

/* Tabs */
.np-agency .np-agency-tabs {
  margin-top: 30px;
}
.np-agency .np-tablist {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: end;
  border-bottom: 1px solid rgba(208, 200, 184, 0.85);
  padding-bottom: 8px;
}
.np-agency .np-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 2px 12px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(26, 26, 26, 0.55);
  cursor: pointer;
  position: relative;
}
.np-agency .np-tab:focus-visible {
  outline: 2px solid rgba(197, 61, 67, 0.35);
  outline-offset: 3px;
}
.np-agency .np-tab.is-active {
  color: rgba(26, 26, 26, 0.92);
  font-weight: 900;
}
.np-agency .np-tab-indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 0;
  background: var(--color-accent);
  transform: translateX(0);
  transition:
    transform 220ms ease,
    width 220ms ease;
}

@media (max-width: 480px) {
  .np-agency .np-tablist {
    gap: 0;
  }
  .np-agency .np-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0 12px;
  }
}

/* Panels (fade 0.3s) */
.np-agency .np-agency-panel {
  margin-top: 26px;
  opacity: 0;
  transition: opacity 300ms ease;
}
.np-agency .np-agency-panel.is-active {
  opacity: 1;
}

.np-agency .np-agency-panel-head {
  margin-top: 18px;
  margin-bottom: 16px;
}
.np-agency .np-agency-panel-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-agency .np-agency-panel-lead {
  margin: 10px 0 0;
  color: rgba(26, 26, 26, 0.68);
  max-width: 82ch;
}

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

@media (max-width: 768px) {
  .np-agency .np-agency-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Buttons（ページ内で完結） */
.np-agency .np-btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1px solid rgba(208, 200, 184, 0.9);
  background: rgba(255, 255, 255, 0.32);
  color: rgba(26, 26, 26, 0.92);
  text-decoration: none;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 2px;
}
.np-agency .np-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(26, 26, 26, 0.28);
}
.np-agency .np-btn--accent {
  background: rgba(197, 61, 67, 0.12);
  border-color: rgba(197, 61, 67, 0.5);
}
.np-agency .np-btn--accent:hover {
  background: rgba(197, 61, 67, 0.16);
  border-color: rgba(197, 61, 67, 0.65);
}
.np-agency .np-btn--ghost {
  background: transparent;
}

/* Course card */
.np-agency .np-course-card {
  border: 1px solid rgba(208, 200, 184, 0.8);
  border-radius: 2px;
  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.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 300ms ease,
    border-color 300ms ease,
    background 300ms ease;
}

.np-agency .np-course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 26, 26, 0.22);
}

.np-agency .np-course-card[data-tier="recommend"] {
  transform: scale(1.03);
  border-color: rgba(197, 61, 67, 0.55);
  background:
    radial-gradient(900px 260px at 18% 18%, rgba(255, 255, 255, 0.62), 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(197, 61, 67, 0.06);
}
.np-agency .np-course-card[data-tier="recommend"]:hover {
  transform: translateY(-4px) scale(1.03);
}

@media (max-width: 768px) {
  .np-agency .np-course-card[data-tier="recommend"] {
    order: -1;
  }
}

/* Card head (tier colors) */
.np-agency .np-course-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(208, 200, 184, 0.7);
  background: rgba(255, 255, 255, 0.18);
}
.np-agency .np-course-card[data-tier="value"] .np-course-head {
  background: rgba(255, 255, 255, 0.18);
}
.np-agency .np-course-card[data-tier="recommend"] .np-course-head {
  background: rgba(197, 61, 67, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
.np-agency .np-course-card[data-tier="premium"] .np-course-head {
  background: rgba(184, 134, 11, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.np-agency .np-course-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(26, 26, 26, 0.92);
}
.np-agency .np-course-card[data-tier="recommend"] .np-course-title,
.np-agency .np-course-card[data-tier="premium"] .np-course-title {
  color: rgba(245, 240, 232, 0.98);
}

.np-agency .np-course-head-inner {
  position: relative;
  padding-right: 52px;
}

/* Recommend ribbon */
.np-agency .np-course-ribbon {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 6px 10px 5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(245, 240, 232, 0.98);
  background: rgba(26, 26, 26, 0.18);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 2px;
}

/* Crown icon (CSS) */
.np-agency .np-course-crown {
  position: absolute;
  top: -12px;
  right: 6px;
  width: 34px;
  height: 22px;
}
.np-agency .np-course-crown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  border: 1px solid rgba(245, 240, 232, 0.7);
  background: rgba(245, 240, 232, 0.14);
}
.np-agency .np-course-crown::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 0;
  height: 14px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(245, 240, 232, 0.72) 46%, rgba(245, 240, 232, 0.72) 54%, transparent 55%),
    linear-gradient(45deg, transparent 45%, rgba(245, 240, 232, 0.72) 46%, rgba(245, 240, 232, 0.72) 54%, transparent 55%);
  clip-path: polygon(0% 100%, 18% 40%, 34% 80%, 50% 36%, 66% 80%, 82% 40%, 100% 100%, 100% 100%, 0% 100%);
  opacity: 0.9;
}

/* List items */
.np-agency .np-course-body {
  padding: 14px 14px 0;
}
.np-agency .np-course-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.np-agency .np-course-item {
  padding: 12px 0 12px 26px;
  position: relative;
  border-top: 1px dashed rgba(208, 200, 184, 0.85);
}
.np-agency .np-course-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.np-agency .np-course-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  font-weight: 900;
  color: var(--color-accent);
}
.np-agency .np-course-item:first-child::before {
  top: 0;
}
.np-agency .np-course-item-title {
  font-weight: 900;
  line-height: 1.45;
}
.np-agency .np-course-item-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.65);
}

/* Price foot (sticky-like) */
.np-agency .np-course-foot {
  margin-top: auto;
  padding: 14px 14px;
  border-top: 1px solid rgba(208, 200, 184, 0.75);
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 10px;
}
.np-agency .np-course-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.np-agency .np-course-tax {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(26, 26, 26, 0.62);
}
.np-agency .np-course-price-val {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  line-height: 1.1;
}
.np-agency .np-course-card[data-tier="premium"] .np-course-price-val {
  color: var(--color-accent-gold);
}

@media (max-width: 480px) {
  .np-agency .np-course-body {
    padding-inline: 12px;
  }
  .np-agency .np-course-head {
    padding-inline: 12px;
  }
  .np-agency .np-course-foot {
    padding-inline: 12px;
  }
  .np-agency .np-course-price-val {
    font-size: 28px;
  }
}

/* Options */
.np-agency .np-options {
  margin-top: 18px;
  border: 1px solid rgba(208, 200, 184, 0.75);
  background: rgba(26, 26, 26, 0.02);
  border-radius: 2px;
  padding: 14px 14px;
}
.np-agency .np-options-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.np-agency .np-options-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 16px;
}
.np-agency .np-options-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(208, 200, 184, 0.9);
  border-radius: 999px;
  padding: 7px 10px 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: rgba(26, 26, 26, 0.72);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}
.np-agency .np-options-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 26, 26, 0.24);
  background: rgba(255, 255, 255, 0.28);
}
.np-agency .np-options-body {
  margin-top: 12px;
}
.np-agency .np-options-body.is-collapsed {
  display: none;
}
.np-agency .np-options-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.np-agency .np-chip {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  border: 1px solid rgba(208, 200, 184, 0.85);
  background: rgba(255, 255, 255, 0.25);
  padding: 8px 10px 7px;
  border-radius: 999px;
  font-size: 13px;
}
.np-agency .np-chip-label {
  font-weight: 900;
}
.np-agency .np-chip-price {
  color: rgba(26, 26, 26, 0.68);
  font-size: 12px;
  font-weight: 800;
}
.np-agency .np-chip[data-chip="estimate"] {
  border-color: rgba(184, 134, 11, 0.55);
  background: rgba(184, 134, 11, 0.08);
}
.np-agency .np-chip[data-chip="estimate"] .np-chip-price {
  color: rgba(184, 134, 11, 0.92);
}

@media (max-width: 480px) {
  .np-agency .np-options-chips {
    flex-direction: column;
    align-items: stretch;
  }
  .np-agency .np-chip {
    justify-content: space-between;
  }
}

/* CTA */
.np-agency .np-agency-cta {
  margin-top: 26px;
}
.np-agency .np-agency-cta-inner {
  border: 1px solid rgba(208, 200, 184, 0.75);
  border-radius: 2px;
  background:
    radial-gradient(900px 240px at 20% 16%, rgba(255, 255, 255, 0.55), transparent 58%),
    rgba(255, 255, 255, 0.14);
  padding: 18px 16px;
}
.np-agency .np-agency-cta-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.np-agency .np-agency-cta-text {
  margin: 10px 0 0;
  color: rgba(26, 26, 26, 0.72);
}
.np-agency .np-agency-cta-row {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

