/* 機能紹介のイラスト(partials/product_feature/hero_art)。機能ページとトップで使う。 */
.pd-art {
  --a1: #1565c0;
  --a2: #e3f2fd;
  --a3: #90caf9;
  --a4: #ff8f00;
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 0.9;
  margin: 0 auto;
}

.pd-art--tone-violet { --a1: #6d28d9; --a2: #ede9fe; --a3: #c4b5fd; --a4: #0ea5e9; }
.pd-art--tone-amber { --a1: #c2410c; --a2: #fff1e6; --a3: #fdba74; --a4: #1565c0; }
.pd-art--tone-teal { --a1: #0f766e; --a2: #e0f5f2; --a3: #7dd3c8; --a4: #f59e0b; }

.pd-art .material-symbols-rounded {
  font-family: 'Material Symbols Rounded' !important;  /* 全体の * { font-family !important } に勝つため */
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.pd-art__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.pd-art__blob--a {
  inset: 6% 4% 10% 10%;
  background: radial-gradient(circle at 35% 35%, var(--a2) 0%, color-mix(in srgb, var(--a3) 45%, transparent) 60%, transparent 72%);
}

.pd-art__blob--b {
  width: 34%;
  aspect-ratio: 1;
  right: 0;
  bottom: 4%;
  background: radial-gradient(circle, color-mix(in srgb, var(--a4) 22%, transparent) 0%, transparent 70%);
}

.pd-art__ring {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  left: 11%;
  top: 4%;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--a3) 70%, transparent);
  animation: pd-art-spin 60s linear infinite;
}

.pd-art__card,
.pd-art__phone {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 48px -16px color-mix(in srgb, var(--a1) 35%, transparent), 0 2px 6px rgba(15, 23, 42, 0.06);
  border: 1px solid color-mix(in srgb, var(--a3) 40%, #e2e8f0);
}

.pd-art__card {
  left: 12%;
  right: 12%;
  top: 50%;
  transform: translateY(-46%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pd-art__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--a2);
}

.pd-art__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--a1) 35%, #fff);
}

.pd-art__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.pd-art__line {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #e2e8f0;
}

.pd-art__line--w40 { width: 40%; }
.pd-art__line--w50 { width: 50%; }
.pd-art__line--w60 { width: 60%; }
.pd-art__line--w70 { width: 70%; }
.pd-art__line--w80 { width: 80%; }
.pd-art__line--w90 { width: 90%; }
.pd-art__line--soft { background: #f1f5f9; }
.pd-art__line--strong { background: color-mix(in srgb, var(--a1) 55%, #fff); height: 10px; }

.pd-art__line--glow {
  background: linear-gradient(90deg, var(--a3), var(--a2), var(--a3));
  background-size: 200% 100%;
  animation: pd-art-shimmer 2.8s ease-in-out infinite;
}

.pd-art__pill {
  display: block;
  width: 34px;
  height: 14px;
  border-radius: 99px;
  background: var(--a2);
  flex: none;
}

/* 行 */
.pd-art__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-art__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.pd-art__row .pd-art__line {
  flex: 0 1 auto;
}

.pd-art__row > .pd-art__line {
  margin-right: auto;
}

.pd-art__rows--list {
  gap: 12px;
  margin-top: 4px;
}

.pd-art__rows--list .pd-art__row {
  padding: 10px 12px;
}

.pd-art__row.is-new {
  background: var(--a2);
  box-shadow: inset 3px 0 0 var(--a1);
  animation: pd-art-pop 3.6s ease-in-out infinite;
}

.pd-art__ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--a1);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--a3) 50%, #fff);
}

.pd-art__lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-art__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  background: #cbd5e1;
}

.pd-art__dot.is-ok { background: #22c55e; }
.pd-art__dot.is-now { background: var(--a4); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a4) 25%, transparent); }

/* 選考の流れ */
.pd-art__steps {
  display: flex;
  align-items: center;
  padding: 6px 2px 4px;
}

.pd-art__steps > span {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #fff;
}

.pd-art__steps > span.is-done { background: var(--a3); }
.pd-art__steps > span.is-now {
  width: 40px;
  height: 40px;
  background: var(--a1);
  box-shadow: 0 0 0 6px var(--a2);
  animation: pd-art-pulse 2.4s ease-in-out infinite;
}

.pd-art__seg {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
}

.pd-art__seg.is-done { background: var(--a3); }

/* グラフ */
.pd-art__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pd-art__kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.pd-art__num {
  display: block;
  width: 70%;
  height: 16px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--a1) 70%, #fff);
}

.pd-art__kpi--accent .pd-art__num { background: var(--a4); width: 55%; }

.pd-art__bars {
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 4px 2px 0;
  border-bottom: 2px solid #e2e8f0;
}

.pd-art__bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--a1), var(--a3));
  transform-origin: bottom;
  animation: pd-art-grow 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

.pd-art__bars i:nth-child(2) { animation-delay: .08s; }
.pd-art__bars i:nth-child(3) { animation-delay: .16s; }
.pd-art__bars i:nth-child(4) { animation-delay: .24s; }
.pd-art__bars i:nth-child(5) { animation-delay: .32s; }
.pd-art__bars i:nth-child(6) { animation-delay: .4s; }
.pd-art__bars i:nth-child(7) { animation-delay: .48s; background: linear-gradient(180deg, var(--a4), color-mix(in srgb, var(--a4) 40%, #fff)); }

/* 文書 */
.pd-art__doc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 4px 10px;
}

.pd-art__sparkle {
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--a1), var(--a4));
  animation: pd-art-float 4s ease-in-out infinite;
}

/* 組み合わせ */
.pd-art__match {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.pd-art__node {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--a1);
  background: var(--a2);
  border: 2px solid var(--a3);
}

.pd-art__node--b {
  color: #fff;
  background: var(--a1);
  border-color: var(--a1);
}

.pd-art__link {
  position: relative;
  width: 72px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--a3) 0 8px, transparent 8px 14px);
  display: grid;
  place-items: center;
}

.pd-art__link .material-symbols-rounded {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  background: var(--a4);
  animation: pd-art-pulse 2.4s ease-in-out infinite;
}

/* カレンダー */
.pd-art__cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-content: center;
}

.pd-art__cal i {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}

.pd-art__cal i.is-dot::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--a3);
}

.pd-art__cal i.is-on {
  background: var(--a1);
  color: #fff;
  box-shadow: 0 0 0 4px var(--a2);
  animation: pd-art-pulse 2.4s ease-in-out infinite;
}

/* チャット */
.pd-art__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-art__bubble {
  align-self: flex-start;
  width: 68%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #f1f5f9;
}

.pd-art__bubble--out {
  align-self: flex-end;
  width: 56%;
  border-radius: 14px 14px 4px 14px;
  background: var(--a1);
}

.pd-art__bubble--out .pd-art__line {
  background: rgba(255, 255, 255, 0.55);
}

.pd-art__typing {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f1f5f9;
  align-self: flex-start;
}

.pd-art__typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: pd-art-typing 1.2s ease-in-out infinite;
}

.pd-art__typing i:nth-child(2) { animation-delay: .15s; }
.pd-art__typing i:nth-child(3) { animation-delay: .3s; }

/* スマートフォン */
.pd-art__phone {
  left: 30%;
  right: 30%;
  top: 6%;
  bottom: 6%;
  border-radius: 30px;
  padding: 30px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 6px solid #1e293b;
}

.pd-art__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40%;
  height: 8px;
  border-radius: 99px;
  background: #1e293b;
  transform: translateX(-50%);
}

.pd-art__phone-head,
.pd-art__tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #f8fafc;
}

.pd-art__phone-head {
  background: transparent;
  padding: 0 2px 4px;
}

.pd-art__phone-head .pd-art__line,
.pd-art__tile .pd-art__line {
  flex: 1;
}

.pd-art__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--a1);
  background: var(--a2);
}

.pd-art__tile .material-symbols-rounded {
  color: var(--a1);
}

.pd-art__tile--accent {
  background: var(--a2);
  box-shadow: inset 3px 0 0 var(--a1);
}

.pd-art__phone .pd-art__bubble--out {
  width: 70%;
  margin-top: auto;
}

/* 主アイコンと周りのチップ */
.pd-art__badge {
  position: absolute;
  left: 2%;
  top: 6%;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 80%, #fff), var(--a1));
  box-shadow: 0 16px 32px -10px color-mix(in srgb, var(--a1) 60%, transparent);
  animation: pd-art-float 5s ease-in-out infinite;
}

.pd-art__chip {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--a1);
  background: #fff;
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  animation: pd-art-float 6s ease-in-out infinite;
}

.pd-art__chip--1 { right: 3%; top: 10%; animation-delay: -1.5s; }
.pd-art__chip--2 { right: 0; bottom: 22%; animation-delay: -3s; color: var(--a4); }
.pd-art__chip--3 { left: 4%; bottom: 6%; animation-delay: -4.5s; }

@keyframes pd-art-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pd-art-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes pd-art-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes pd-art-shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

@keyframes pd-art-pop {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@keyframes pd-art-typing {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes pd-art-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pd-art *,
  .pd-art {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .pd-art {
    max-width: 380px;
  }
}

@media (max-width: 640px) {
  .pd-art {
    max-width: 320px;
  }

  .pd-art__badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .pd-art__chip {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
}
