/* ===========================================================================
   ServicesAidd — Page Basics & Tokens
   Text helpers, breadcrumb contrast fix, amber hotspot, term popovers.
   =========================================================================== */

:root {
  --ad-blue-text: #165F9C;
}

/* Breadcrumb contrast fix (guarantees >= 4.5:1 on white without touching shared files) */
.bcrumb, .bcrumb a {
  color: #485E75 !important;
}
.bcrumb a:hover {
  color: var(--blue) !important;
}

.ad-lead {
  margin: 0 0 clamp(24px, 3vw, 36px);
  max-width: 880px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2.0;
  color: var(--muted);
}

.ad-h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--navy);
}

.ad-p {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
}
.ad-p + .ad-p {
  margin-top: 16px;
}

.ad-note {
  margin: 12px 0 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* Amber hotspot cue ("this can be pressed") */
.ad-hot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: middle;
}
.ad-hot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  opacity: 0;
}
.is-in .ad-hot::after {
  animation: ad-ring 1.4s .3s 3 both;
}

.ad-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.ad-go::after, .ad-play::after, .ad-seg button::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--white);
  pointer-events: none;
}

@keyframes ad-ring {
  0% { opacity: .85; transform: scale(.6); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Term Popover Styles */
.ad-term__btn {
  all: unset;
  font-weight: 700;
  color: var(--blue);
}
.ad-term__q {
  display: none;
}
.ad-term__pop {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 400;
}
.ad-term__pop::before { content: "（"; }
.ad-term__pop::after { content: "）"; }

.ad-terms-live .ad-term {
  position: relative;
  display: inline;
}
.ad-terms-live .ad-term__btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 12px 1px;
  margin: -12px 0;
  text-decoration: underline dotted var(--blue);
  text-underline-offset: 5px;
  scroll-margin-top: 92px;
}
.ad-terms-live .ad-term__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.ad-terms-live .ad-term__q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  font-size: 12px;
  vertical-align: 1px;
}
.ad-terms-live .ad-term__pop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(300px, 78vw);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(16, 42, 67, .25);
  white-space: normal;
  animation: ad-rise .3s both;
}
.ad-terms-live .ad-term__pop::before,
.ad-terms-live .ad-term__pop::after {
  content: none;
}
.ad-terms-live .ad-term.is-open .ad-term__pop {
  display: block;
}

@keyframes ad-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Touch targets guarantee */
.ad-overview__pill,
.ad-hero__jump,
.ad-go,
.ad-play,
.ad-seg button {
  min-height: 44px;
}

