/* Portfolio showcase — motion-heavy, theme colors (#9f91ca, #c3a267) */

.nanashino-portfolio {
  --np-purple: #9f91ca;
  --np-gold: #c3a267;
  --np-lilac: #d3c2db;
  --np-ink: #3d3550;
  --np-glow: rgba(159, 145, 202, 0.45);
  overflow-x: clip;
}

.nanashino-portfolio * {
  box-sizing: border-box;
}

/* —— Hero —— */
.np-hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 48px;
  text-align: center;
  isolation: isolate;
}

.np-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(255, 251, 232, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(240, 248, 250, 0.9) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(232, 244, 248, 0.85) 0%, transparent 45%),
    linear-gradient(135deg, #fffbe8 0%, #fff5f5 35%, #f0f8fa 70%, #e8f4f8 100%);
}

.np-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  animation: np-float-orb 14s ease-in-out infinite;
}

.np-hero__orb--a {
  width: min(45vw, 320px);
  height: min(45vw, 320px);
  background: radial-gradient(circle, rgba(159, 145, 202, 0.55) 0%, transparent 70%);
  top: 8%;
  left: -5%;
  animation-delay: 0s;
}

.np-hero__orb--b {
  width: min(40vw, 280px);
  height: min(40vw, 280px);
  background: radial-gradient(circle, rgba(195, 162, 103, 0.4) 0%, transparent 70%);
  bottom: 5%;
  right: -3%;
  animation-delay: -4s;
  animation-duration: 18s;
}

.np-hero__orb--c {
  width: min(30vw, 200px);
  height: min(30vw, 200px);
  background: radial-gradient(circle, rgba(211, 194, 219, 0.5) 0%, transparent 70%);
  top: 40%;
  right: 15%;
  animation-delay: -7s;
  animation-duration: 12s;
}

@keyframes np-float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -6%) scale(1.08); }
  66% { transform: translate(-5%, 4%) scale(0.95); }
}

.np-hero__sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.np-hero__sparkles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8), 0 0 20px 4px var(--np-glow);
  animation: np-twinkle 2.8s ease-in-out infinite;
  opacity: 0;
}

.np-hero__sparkles span:nth-child(1) { left: 12%; top: 22%; animation-delay: 0.2s; }
.np-hero__sparkles span:nth-child(2) { left: 78%; top: 18%; animation-delay: 0.7s; }
.np-hero__sparkles span:nth-child(3) { left: 55%; top: 35%; animation-delay: 1.1s; }
.np-hero__sparkles span:nth-child(4) { left: 28%; top: 65%; animation-delay: 0.4s; }
.np-hero__sparkles span:nth-child(5) { left: 88%; top: 55%; animation-delay: 1.5s; }
.np-hero__sparkles span:nth-child(6) { left: 42%; top: 12%; animation-delay: 0.9s; }
.np-hero__sparkles span:nth-child(7) { left: 65%; top: 72%; animation-delay: 1.8s; }
.np-hero__sparkles span:nth-child(8) { left: 8%; top: 48%; animation-delay: 0.15s; }

@keyframes np-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  40% { opacity: 1; transform: scale(1.2); }
  60% { opacity: 0.85; transform: scale(1); }
}

.np-hero__inner {
  position: relative;
  z-index: 4;
  max-width: 920px;
}

.np-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--np-lilac);
  margin-bottom: 16px;
  animation: np-fade-up 1s ease 0.1s both;
}

.np-hero__title {
  font-family: "Cinzel", "Times New Roman", Georgia, serif;
  font-size: clamp(1.7rem, 4.6vw, 2.45rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.16em;
  color: var(--theme-ink, #323339);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--theme-ink, #323339);
  animation: np-fade-up 0.9s ease 0.15s both;
}

@keyframes np-shimmer-text {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes np-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.np-hero__lead {
  max-width: min(100%, 22rem);
  margin: 12px auto 20px;
  color: var(--pro-muted, #6f6690);
  font-size: 0.94rem;
  line-height: 1.75;
  font-weight: 500;
  animation: np-fade-up 1s ease 0.35s both;
}

.np-hero__visual {
  position: relative;
  margin: 8px auto 0;
  width: min(260px, 64vw);
  aspect-ratio: 1400 / 1291;
  animation: np-fade-up 1.1s ease 0.5s both;
}

.np-hero__visual-ring {
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 251, 245, 0.4)) padding-box,
    linear-gradient(135deg, var(--np-purple), var(--np-gold), var(--np-lilac), var(--np-purple)) border-box;
  animation: np-spin-slow 24s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}

.np-hero__visual-ring--2 {
  inset: -22px;
  animation-duration: 32s;
  animation-direction: reverse;
  opacity: 0.22;
}

@keyframes np-spin-slow {
  to { transform: rotate(360deg); }
}

.np-hero__visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  filter: drop-shadow(0 18px 36px rgba(159, 145, 202, 0.38));
  box-shadow: none;
}

.np-marquee-wrap {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 100vw;
  margin-top: 36px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  overflow: hidden;
}

.np-marquee {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: np-marquee 28s linear infinite;
  padding: 12px 0;
}

.np-marquee span {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(159, 145, 202, 0.55);
  white-space: nowrap;
}

@keyframes np-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* —— Stats ribbon —— */
.np-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
  padding: 32px 24px 48px;
  position: relative;
  z-index: 3;
}

.np-stat {
  text-align: center;
  min-width: 100px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.np-stat.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.np-stat__num {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--np-purple), var(--np-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  animation: np-pulse-num 3s ease-in-out infinite;
}

.np-stat__num:nth-of-type(1) { animation-delay: 0s; }

@keyframes np-pulse-num {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.np-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--np-lilac);
  margin-top: 6px;
  text-transform: uppercase;
}

/* —— Grid —— */
.np-showcase {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.np-showcase__head {
  text-align: center;
  margin-bottom: 40px;
}

.np-showcase__head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--np-purple);
  margin: 0 0 12px;
  letter-spacing: 0.06em;
}

.np-showcase__head p {
  color: #666;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

.np-showcase__sub {
  margin: 14px auto 0;
  font-size: 0.92rem;
}

.np-showcase__sub a {
  color: var(--np-purple);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(159, 145, 202, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.np-showcase__sub a:hover {
  color: var(--np-gold);
  border-color: rgba(195, 162, 103, 0.55);
}

.np-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.np-card {
  position: relative;
  grid-column: span 4;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  width: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #fffbf7 100%);
  border: 1px solid rgba(159, 145, 202, 0.22);
  box-shadow: 0 12px 40px rgba(159, 145, 202, 0.12);
  transform-style: preserve-3d;
  perspective: 1200px;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  cursor: pointer;
  transition:
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    transform 0.1s ease-out;
}

.np-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.np-card:hover {
  box-shadow:
    0 20px 56px rgba(159, 145, 202, 0.28),
    0 0 0 1px rgba(195, 162, 103, 0.25);
  border-color: rgba(195, 162, 103, 0.45);
}

.np-card--wide {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

/* PC: 大カードが右2枚分の高さまで伸びて隙間なし */
.np-card--feature {
  grid-column: span 8;
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
}

.np-card--full {
  grid-column: span 12;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.np-card--half {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.np-card--tall {
  grid-column: span 4;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.np-card--text {
  aspect-ratio: 16 / 9;
}

.np-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: np-shine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: soft-light;
}

@keyframes np-shine {
  0%, 100% { background-position: 100% 100%; opacity: 0; }
  45% { opacity: 0.7; }
  50% { background-position: 0% 0%; }
}

.np-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.np-card__media img,
.np-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.np-card:hover .np-card__media img,
.np-card:hover .np-card__media video {
  transform: scale(1.08);
}

a.np-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.np-card__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(61, 53, 80, 0.1) 50%,
    rgba(61, 53, 80, 0.88) 100%
  );
}

.np-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 16px 16px 18px;
  color: #fff;
  max-height: 72%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.np-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
  animation: np-tag-glow 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes np-tag-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 16px 2px rgba(195, 162, 103, 0.45); }
}

.np-card__title {
  font-size: clamp(0.92rem, 1.6vw, 1.2rem);
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  overflow: visible;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex-shrink: 0;
}

.np-card__meta {
  font-size: 0.78rem;
  opacity: 0.92;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.np-card--wide .np-card__title,
.np-card--feature .np-card__title {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.np-card--wide .np-card__meta,
.np-card--feature .np-card__meta {
  -webkit-line-clamp: 2;
  font-size: 0.84rem;
}

.np-card > .np-card__detail,
.np-aside > .np-timeline__detail {
  display: none;
}

.np-card__link {
  display: none;
}

.np-card--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  background: linear-gradient(135deg, #fdfbff 0%, #fff8f0 50%, #f5f9fc 100%);
}

.np-card--text .np-card__gradient,
.np-card--text .np-card__media {
  display: none;
}

.np-card--text .np-card__body {
  position: relative;
  color: var(--np-ink);
  padding: 0;
}

.np-card--text .np-card__tag {
  background: rgba(159, 145, 202, 0.15);
  border-color: rgba(159, 145, 202, 0.35);
  color: var(--np-purple);
}

.np-card--text .np-card__title {
  color: var(--np-purple);
  text-shadow: none;
}

.np-card--text .np-card__meta {
  color: #666;
}

.np-card__icons {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.np-card__icons span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(159, 145, 202, 0.12);
  color: var(--np-purple);
  font-size: 1.1rem;
  animation: np-icon-bob 2.2s ease-in-out infinite;
}

.np-card__icons span:nth-child(2) { animation-delay: 0.2s; }
.np-card__icons span:nth-child(3) { animation-delay: 0.4s; }

@keyframes np-icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* —— CTA —— */
.np-cta {
  max-width: 720px;
  margin: 0 auto 100px;
  padding: 48px 36px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(159, 145, 202, 0.12) 0%, rgba(195, 162, 103, 0.1) 100%);
  border: 2px solid rgba(159, 145, 202, 0.25);
  box-shadow: 0 16px 48px rgba(159, 145, 202, 0.15);
  position: relative;
  overflow: hidden;
}

.np-cta::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, 0.12), transparent 30%);
  animation: np-cta-rotate 12s linear infinite;
  pointer-events: none;
}

@keyframes np-cta-rotate {
  to { transform: rotate(360deg); }
}

.np-cta h2 {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--np-purple);
  margin: 0 0 12px;
}

.np-cta p {
  position: relative;
  z-index: 1;
  color: #555;
  line-height: 1.75;
  margin: 0 0 24px;
}

.np-cta__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--np-purple) 0%, #b8a8d8 45%, var(--np-gold) 100%);
  background-size: 200% auto;
  box-shadow: 0 8px 28px rgba(159, 145, 202, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: np-btn-gradient 4s ease infinite;
}

@keyframes np-btn-gradient {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.np-cta__btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(159, 145, 202, 0.55);
}

.np-cta__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  background-size: 200% 100%;
  animation: np-btn-sheen 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes np-btn-sheen {
  0% { background-position: -100% 0; opacity: 0; }
  40% { opacity: 1; }
  100% { background-position: 200% 0; opacity: 0; }
}

@media (max-width: 1024px) {
  .np-card {
    grid-column: span 6;
    grid-row: auto;
  }
  .np-card--wide,
  .np-card--feature,
  .np-card--full {
    grid-column: span 12;
    grid-row: auto;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .np-card--half,
  .np-card--tall { grid-column: span 6; }
}

@media (max-width: 768px) {
  .np-showcase { padding: 0 20px 72px; }
  .np-card,
  .np-card--wide,
  .np-card--feature,
  .np-card--full,
  .np-card--half,
  .np-card--tall {
    grid-column: span 12;
    grid-row: auto;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .np-hero { min-height: auto; padding-top: 72px; }
  .np-hero__visual { width: min(220px, 58vw); }
}

@media (prefers-reduced-motion: reduce) {
  .np-hero__orb,
  .np-hero__sparkles span,
  .np-hero__title,
  .np-marquee,
  .np-hero__visual-ring,
  .np-stat__num,
  .np-card__shine,
  .np-card__tag,
  .np-card__icons span,
  .np-cta::before,
  .np-cta__btn,
  .np-cta__btn::after {
    animation: none !important;
  }
  .np-card {
    transition: none;
  }
  .np-card.is-visible {
    opacity: 1;
    transform: none;
  }
  .np-stat.is-visible {
    opacity: 1;
    transform: none;
  }
}


/* —— Card links —— */
.np-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 5;
}

.np-card__link:hover {
  color: #ffe9b8;
  border-bottom-color: rgba(255, 233, 184, 0.9);
}

.np-card__link--ink {
  color: var(--np-purple);
  border-bottom-color: rgba(159, 145, 202, 0.45);
}

.np-card__link--ink:hover {
  color: var(--np-gold);
  border-bottom-color: rgba(195, 162, 103, 0.7);
}

.np-card__link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
}

/* —— Tools grid (compact) —— */
.np-showcase--tools {
  padding-top: 12px;
}

.np-showcase--tools .np-showcase__head p {
  font-size: 0.9rem;
}

.np-showcase--community {
  padding-bottom: 8px;
}

.np-showcase--aside {
  padding-bottom: 48px;
  padding-top: 8px;
}

.np-showcase--aside .np-showcase__head {
  margin-bottom: 18px;
  text-align: left;
}

.np-showcase--aside .np-showcase__head h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9a94a8;
}

.np-grid--community {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: none;
}

.np-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

a.np-tool {
  text-decoration: none;
  color: inherit;
  display: block;
}

.np-tool {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #ffffff 0%, #fffbf7 100%);
  border-radius: 14px;
  overflow: hidden;
}

.np-tool .np-card__shine,
.np-tool .np-card__gradient {
  display: none;
}

.np-tool__media {
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 88px;
  overflow: hidden;
  background: #f4f0fa;
}

.np-tool__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.np-tool:hover .np-tool__media img {
  transform: scale(1.06);
}

.np-tool__body {
  position: relative;
  z-index: 2;
  padding: 10px 12px 12px;
  color: var(--np-ink);
}

.np-tool__body .np-card__tag {
  background: rgba(159, 145, 202, 0.15);
  border-color: rgba(159, 145, 202, 0.35);
  color: var(--np-purple);
  animation: none;
  box-shadow: none;
  font-size: 0.65rem;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.np-tool__title {
  margin: 0 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--np-purple);
  line-height: 1.3;
}

.np-tool__body p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Soft / anonymized aside cards */
.np-aside-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.np-aside-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.np-aside {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(159, 145, 202, 0.22);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(248, 245, 252, 0.88)),
    radial-gradient(circle at 90% 10%, rgba(159, 145, 202, 0.18), transparent 45%);
  overflow: hidden;
  min-height: 0;
}

.np-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.35) 55%, transparent 70%);
  pointer-events: none;
}

.np-aside__tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--np-purple);
  background: rgba(159, 145, 202, 0.12);
  border: 1px solid rgba(159, 145, 202, 0.28);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 8px;
}

.np-aside__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--np-ink);
  line-height: 1.35;
}

.np-aside__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #6a6578;
}

.np-aside__note {
  margin: 8px 0 0;
  font-size: 0.7rem;
  color: #9a94a8;
}

@media (max-width: 1100px) {
  .np-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .np-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .np-aside-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .np-tools {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .np-tool__media {
    max-height: 72px;
  }
  .np-aside-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Refined professional polish —— */
.np-hero__orb,
.np-hero__sparkles {
  opacity: 0.12;
  filter: blur(3px);
  animation: none !important;
}
.np-hero__mesh {
  background: linear-gradient(180deg, #f8f7fd 0%, #f3f1f8 100%);
}
.np-hero__title {
  font-family: "Cinzel", "Times New Roman", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  font-size: clamp(1.7rem, 4.6vw, 2.45rem) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #323339 !important;
  color: #323339 !important;
  animation: np-fade-up 0.9s ease 0.15s both !important;
}
.np-stat__num,
.np-section__title {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: inherit !important;
  animation: none !important;
}
.np-card {
  border-radius: 12px;
  border: 1px solid rgba(50, 51, 57, 0.1);
  box-shadow: none;
  background: #fff;
}
.np-card:hover {
  box-shadow: 0 10px 28px rgba(50, 51, 57, 0.08);
  border-color: rgba(159, 145, 202, 0.35);
}
.np-card__shine {
  display: none !important;
}
.np-card__tag {
  animation: none !important;
  box-shadow: none;
  border-radius: 4px;
  letter-spacing: 0.12em;
}
.np-cta {
  border-radius: 12px;
  border: 1px solid rgba(50, 51, 57, 0.1);
  background: #fff;
  box-shadow: none;
}
.np-cta::before {
  display: none;
}
.np-cta__btn {
  border-radius: 4px;
  animation: none !important;
  background: #3d3550;
  box-shadow: none;
}
.np-cta__btn:hover {
  background: #2e2a38;
  box-shadow: none;
}
.np-cta__btn::after {
  display: none;
}
.np-tool {
  border-radius: 12px;
  box-shadow: none;
}

.np-aside-prose {
  max-width: 40rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #6a6578;
}

/* その他の経歴 — 単一ラップ・1行リスト */
.np-aside-wrap {
  list-style: none;
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
}

.np-showcase--aside .np-showcase__head p {
  max-width: none;
}

.np-aside-wrap li {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 5px 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #9a94a8;
}

.np-aside-wrap li:not(:has(.np-aside-wrap__date)) {
  grid-template-columns: 1fr;
}

.np-aside-wrap li + li {
  border-top: 1px solid rgba(50, 51, 57, 0.06);
}

.np-aside-wrap__date {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #aea8b8;
  white-space: nowrap;
}

.np-aside-wrap__body {
  min-width: 0;
}

.np-showcase--stream-tl {
  padding-bottom: 8px;
}

/* Timeline (配信の歩み) */
.np-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 52rem;
  --np-tl-year: 5.5rem;
  --np-tl-spine: 14px;
  --np-tl-gap: 12px;
}

.np-timeline__row {
  display: grid;
  grid-template-columns: var(--np-tl-year) var(--np-tl-spine) minmax(0, 1fr);
  column-gap: var(--np-tl-gap);
  align-items: stretch;
  position: relative;
  padding-bottom: 22px;
}

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

.np-timeline__year {
  position: relative;
  z-index: 1;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--np-purple);
  padding-top: 14px;
  text-align: right;
  line-height: 1.25;
  white-space: nowrap;
}

.np-timeline__spine {
  position: relative;
  width: var(--np-tl-spine);
  justify-self: center;
}

.np-timeline__spine::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.4rem;
  bottom: -22px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(159, 145, 202, 0.5),
    rgba(159, 145, 202, 0.14)
  );
}

.np-timeline__row:last-child .np-timeline__spine::before {
  bottom: auto;
  height: 0;
}

.np-timeline__spine::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.15rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid var(--np-gold);
  box-shadow: 0 0 0 3px rgba(195, 162, 103, 0.18);
  z-index: 1;
}

.np-timeline__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.np-timeline__item.np-aside {
  padding: 14px 16px 14px;
  opacity: 0;
  transform: translateY(18px);
  cursor: default;
  overflow: visible;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.np-timeline__item.np-aside:hover,
.np-timeline__item.np-aside:focus-visible {
  border-color: rgba(159, 145, 202, 0.22);
  box-shadow: none;
}

.np-timeline__item.np-aside.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.np-timeline__item.np-aside::before {
  opacity: 0.5;
}

.np-timeline__title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--np-ink);
  line-height: 1.45;
  overflow: visible;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.np-timeline__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #6a6578;
  overflow: visible;
  word-break: break-word;
}

.np-timeline__detail {
  display: none;
}

/* Detail dialog */
.np-detail {
  border: none;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-width: min(560px, calc(100vw - 32px));
  height: fit-content;
  max-height: min(90vh, 760px);
  background: transparent;
  color: var(--np-ink);
  /* * { margin: 0 } で UA の中央寄せが消えるため明示 */
  position: fixed;
  inset: 0;
  margin: auto;
}

.np-detail::backdrop {
  background: rgba(40, 34, 58, 0.55);
  backdrop-filter: blur(6px);
}

.np-detail__panel {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(159, 145, 202, 0.28);
  background:
    linear-gradient(165deg, #ffffff 0%, #fbf8ff 55%, #fff9f3 100%);
  box-shadow: 0 24px 64px rgba(50, 40, 80, 0.28);
  padding: 28px 24px 24px;
  max-height: min(82vh, 720px);
  overflow: auto;
}

.np-detail__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(159, 145, 202, 0.12);
  color: var(--np-purple);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.np-detail__close:hover,
.np-detail__close:focus-visible {
  background: rgba(159, 145, 202, 0.22);
}

.np-detail__media {
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #efeaf8;
}

.np-detail__media img,
.np-detail__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-detail__media video {
  background: #1a1624;
  object-fit: contain;
}

.np-detail__tag {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--np-purple);
  background: rgba(159, 145, 202, 0.12);
  border: 1px solid rgba(159, 145, 202, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
}

.np-detail__title {
  margin: 0 0 12px;
  padding-right: 28px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--np-ink);
}

.np-detail__body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #5c566c;
}

.np-detail__body .np-card__detail,
.np-detail__body .np-timeline__detail,
.np-detail__body .np-aside-wrap__detail {
  display: block;
}

.np-detail__body p {
  margin: 0 0 12px;
}

.np-detail__body p:last-child {
  margin-bottom: 0;
}

.np-detail__link {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--np-purple), #7d6fb0);
  box-shadow: 0 8px 20px rgba(159, 145, 202, 0.28);
}

.np-detail__link:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .np-timeline {
    --np-tl-year: 4.25rem;
    --np-tl-spine: 12px;
    --np-tl-gap: 8px;
  }

  .np-timeline__year {
    font-size: 0.72rem;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.2;
  }

  .np-card__body {
    padding: 12px 12px 14px;
    max-height: 74%;
  }

  .np-card__title {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .np-card__meta {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
  }
}
