/* static/css/column_certification_matrix.css */

.cert-matrix-wrap {
  margin: 42px 0;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.cert-matrix-head {
  margin-bottom: 22px;
}

.cert-matrix-kicker {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.cert-matrix-head h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.45;
  color: #0f172a;
}

.cert-matrix-head p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

/* PCではマトリックスと選択中パネルを2カラムにする */
.cert-matrix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
  align-items: start;
  margin-top: 30px;
}

.cert-matrix-column {
  min-width: 0;
}

.cert-matrix {
  position: relative;
  min-height: 560px;
  margin: 0 0 18px;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.cert-zone {
  position: absolute;
  width: 50%;
  height: 50%;
  padding: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}

.cert-zone span {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.72);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
}

.cert-zone-trade {
  top: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(249, 115, 22, 0.12));
}

.cert-zone-balance {
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(34, 197, 94, 0.11));
}

.cert-zone-brand {
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.13), rgba(236, 72, 153, 0.12));
}

.cert-zone-basic {
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.10), rgba(148, 163, 184, 0.15));
}

.cert-axis-x,
.cert-axis-y {
  position: absolute;
  z-index: 2;
  background: rgba(51, 65, 85, 0.28);
}

.cert-axis-x {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.cert-axis-y {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.cert-axis-label {
  position: absolute;
  z-index: 5;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
}

.cert-axis-top {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.cert-axis-bottom {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.cert-axis-left {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.cert-axis-right {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.cert-dot {
  position: absolute;
  z-index: 10;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.94);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.cert-dot span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cert-dot:hover,
.cert-dot.is-active {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.32);
  filter: saturate(1.12);
}

.cert-dot-pmark {
  left: 42%;
  top: 38%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.cert-dot-isms {
  left: 64%;
  top: 26%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #0f172a, #334155);
}

.cert-dot-27017 {
  left: 73%;
  top: 20%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
}

.cert-dot-27701 {
  left: 68%;
  top: 34%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.cert-dot-soc2 {
  left: 84%;
  top: 18%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #dc2626, #ea580c);
}

.cert-dot-9001 {
  left: 54%;
  top: 43%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #047857, #10b981);
}

.cert-dot-14001 {
  left: 58%;
  top: 58%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #16a34a, #65a30d);
}

.cert-dot-dx {
  left: 38%;
  top: 58%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #0284c7, #06b6d4);
}

.cert-dot-kurumin {
  left: 66%;
  top: 76%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #db2777, #f472b6);
}

.cert-dot-eruboshi {
  left: 72%;
  top: 68%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #9333ea, #ec4899);
}

.cert-matrix-note {
  margin-top: 12px;
}

.cert-matrix-note p {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.8;
}

/* 選択中パネル */
.cert-detail-panel {
  margin-top: 0;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.cert-detail-panel__label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
}

.cert-detail-panel h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #0f172a;
}

.cert-detail-panel p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.8;
}

.cert-detail-panel ul {
  margin: 0;
  padding-left: 1.15em;
}

.cert-detail-panel li {
  margin: 6px 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .cert-matrix-wrap {
    padding: 20px;
  }

  /* スマホでは縦並びに戻す */
  .cert-matrix-layout {
    display: block;
    margin-top: 24px;
  }

  .cert-matrix {
    min-height: 620px;
    margin: 0 0 18px;
  }

  .cert-detail-panel {
    margin-top: 22px;
    padding: 20px;
  }

  .cert-axis-label {
    font-size: 0.7rem;
  }

  .cert-axis-left,
  .cert-axis-right {
    top: auto;
    bottom: 48px;
    transform: none;
  }

  .cert-dot {
    width: 56px;
    height: 56px;
  }

  .cert-dot span {
    font-size: 0.68rem;
  }

  .cert-zone {
    padding: 12px;
  }

  .cert-zone span {
    font-size: 0.68rem;
  }
}