@charset "UTF-8";

.compat-map {
  font-family: var(--gothic);
  background: #fff;
  max-width: 1000px;
  margin: 30px auto 0;
  position: relative;
  touch-action: pan-y;
}

.compat-map__inner {
  width: 100%;
  height: auto;
  overflow: visible;
}

.compat-map__grid line {
  stroke: #aaa;
}

.compat-map__axis path,
.compat-map__axis line {
  stroke: #707070;
}

.compat-map__axis text {
  fill: #585858;
  font-family: var(--gothic);
  font-size: 18px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .compat-map__axis text {
  font-size: 12px;
}
}

.compat-map__axis-label {
  font-size: 20px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .compat-map__axis-label {font-size: 14px;}
}

.compat-map__point {
  fill: #909090;
  stroke: #909090;
  stroke-width: 0px;
}

.compat-map__label {
  fill: #777;
  pointer-events: none;
  font-size: var(--label-font-size);
}

.compat-map__label {
  fill: #777;
  pointer-events: none;
}

.compat-map__link {
  stroke: #909090;
  stroke-width: 1;
  pointer-events: none;
}

/* 軸の矢印 */
.axis-arrow {
  fill: #707070;
}

/* 軸線 */
.compat-map__axis path.domain {
  stroke: #707070;
  stroke-width: 4;
  /*marker-end: url(#axis-arrow);*/
}

/* ポップアップ情報 */
.compat-map__tooltip {
  position: absolute;
  pointer-events: none;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  transform: translate(-50%, -100%);
  padding-bottom: 22px;
  width: 308px;
}

.compat-map__tooltip-inner {
  background: #333;
  padding: 6px 15px 8px;
}

.compat-map__tooltip::after {content: "";position: absolute;bottom: 0;left: 50%;translate: -50% 0;width: 30px;height: 27px;background: #333;clip-path: polygon(0 0,100% 0,50% 100%);}

.compat-map__tooltip-head {
  font-size: 14px;
  font-weight: bold;
}

.compat-map__tooltip-imgs {
  display: flex;
  gap: 8px;
}

.compat-map__tooltip-imgs img {
  border: 1px solid #fff;
  width: 135px;
  height: auto;
  aspect-ratio: 135/100;
  object-fit: cover;
  margin-top: 5px;
}

.compat-map__tooltip-link {
  text-align: right;
  margin-top: 5px;
}

.compat-map__tooltip-link a {
  color: inherit;
  text-decoration: underline;
  position: relative;
  padding-right: 0.8em;
}

.compat-map__tooltip-link a::after {
  content: "";
  position: absolute;
  width: 0.5em;
  height: 0.8em;
  background: #fff;
  top: 60%;
  right: 0;
  translate: 0 -50%;
  clip-path: polygon(0 0,100% 50%,0 100%);
}

.compat-map__tooltip-comment {
  margin-top: 5px;
}

.compat-map__zoom-hint {position: absolute;top: 50%;left: 50%;translate: -50% -50%;background: #ffffffb3;border-radius: 10px;width: 240px;height: 100px;display: flex;justify-content: center;align-items: center;transition: .3s;flex-direction: column;gap: 5px;pointer-events: none;}
.compat-map__zoom-hint::before {
  content: "ズームできます！\A点をタップで詳細表示も！";
  white-space: pre;
  font-size: 13px;
  color: #000;
  animation: zoomHintBlink 1s ease-in-out infinite;
  text-align: center;
}
.compat-map__zoom-hint img {
  display: block;
  width: 50.5px;
  height: auto;
  animation: zoomHintBlink 1s ease-in-out infinite;
}

@keyframes zoomHintBlink {
  0% {
    opacity: 1;
  }
  40% {
    opacity: 0.35;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.compat-map__x-axis-minor text,
.compat-map__y-axis-minor text {
  font-size: 12px;
  fill: #ccc;
}

.compat-map__x-axis-minor .tick line,
.compat-map__y-axis-minor .tick line {
  stroke: #aaa;
}

.compat-map__x-axis-minor path.domain,
.compat-map__y-axis-minor path.domain {
  display: none;
}
