.jjm-apn-card-section {
  --jjm-apn-accent: #0072b1;
  --jjm-apn-accent-deep: #075174;
  --jjm-apn-soft: #eef8fd;
  --jjm-apn-border: #b7ddec;
  --jjm-apn-ring: rgba(0, 114, 177, .15);
  box-sizing: border-box;
  padding: 0 16px 56px;
}

.jjm-apn-card-section *,
.jjm-apn-card-section *::before,
.jjm-apn-card-section *::after {
  box-sizing: border-box;
}

.jjm-apn-card-section--docomo {
  --jjm-apn-accent: #087fc5;
  --jjm-apn-accent-deep: #06488f;
  --jjm-apn-soft: #edf8ff;
  --jjm-apn-border: #b6ddf1;
  --jjm-apn-ring: rgba(8, 127, 197, .15);
}

.jjm-apn-card-section--rakuten {
  --jjm-apn-accent: #d70672;
  --jjm-apn-accent-deep: #920052;
  --jjm-apn-soft: #fff1f8;
  --jjm-apn-border: #f1bad6;
  --jjm-apn-ring: rgba(215, 6, 114, .14);
}

.jjm-apn-card-wrap {
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
}

.jjm-apn-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 16px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--jjm-apn-border);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, var(--jjm-apn-soft) 100%);
  box-shadow: 0 10px 26px rgba(15, 65, 91, .09);
  color: #172331 !important;
  text-decoration: none !important;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.jjm-apn-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -78px;
  top: -88px;
  border: 1px solid var(--jjm-apn-ring);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(0, 114, 177, .035);
  pointer-events: none;
}

.jjm-apn-card__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.jjm-apn-card__label {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 9px;
  border: 1px solid var(--jjm-apn-border);
  border-radius: 999px;
  background: #fff;
  color: var(--jjm-apn-accent-deep);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .055em;
}

.jjm-apn-card__title {
  display: block;
  margin: 0 0 7px;
  color: #16212e;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.jjm-apn-card__description {
  display: block;
  margin: 0;
  color: #5f6f7c;
  font-size: 11.5px;
  line-height: 1.65;
}

.jjm-apn-card__warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff4e8;
  color: #ad4700;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.35;
}

.jjm-apn-card__warning::before {
  content: "!";
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border-radius: 50%;
  background: #f17619;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.jjm-apn-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--jjm-apn-accent-deep);
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.4;
}

.jjm-apn-card__cta::after {
  content: "→";
  font-size: 15px;
  transition: transform .2s ease;
}

.jjm-apn-card__media {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 0;
  border-radius: 15px;
  background: #eaf5fb;
  box-shadow: 0 6px 16px rgba(10, 70, 105, .1);
  overflow: hidden;
}

.jjm-apn-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.jjm-apn-card:focus-visible {
  outline: 3px solid #ffcf33;
  outline-offset: 4px;
}

@media (hover: hover) {
  .jjm-apn-card:hover {
    transform: translateY(-2px);
    border-color: var(--jjm-apn-accent);
    box-shadow: 0 15px 32px rgba(15, 65, 91, .14);
  }

  .jjm-apn-card:hover .jjm-apn-card__cta::after {
    transform: translateX(3px);
  }
}

@media (max-width: 359px) {
  .jjm-apn-card {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 11px;
    padding: 15px;
  }

  .jjm-apn-card__title {
    font-size: 16px;
  }

  .jjm-apn-card__description {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jjm-apn-card,
  .jjm-apn-card__cta::after {
    transition: none;
  }
}
