/* ================= HC banner — free self-check ad panel ==========
   Single writer for the flashy HC panel (templates/_hc_banner.html).
   Extracted from home-v4.css on 2026-11-15 (design release) so the
   panel can also serve as the article right-rail CTA: every rule's
   prefix changed body.home-soc -> body.concept-site, which keeps
   specificity identical (one class on <body> + the .hcb class), and
   the three --soc-* tokens the block uses are defined on .hcb
   itself (same values as the home sheet) so article pages resolve
   them without loading the home sheet. The @media(max-width:900px)
   stacked treatment is unchanged. A .hcb-rail variant (narrow
   column) is appended at the end. Glows are radial-gradient and
   box-shadow only — NO filter: blur(), NO mix-blend-mode. */

/* ================= HC banner — free self-check ad panel ==========
   (2026-11-15, owner's reference design + Option A: the panel pushes
   the FREE security self-check tool; the paid セキュリティ診断 is
   named only in the small .hcb-paid line under the button.)
   Glowing frame = border + box-shadow; ambient glows = radial-
   gradient fades; NO filter: blur(), NO mix-blend-mode (iOS Safari
   rule). Every child's margin is pinned (boxed-component rule). */
body.concept-site .hcb{
  --soc-cyan:#00C8F0;--soc-cyan-txt:#8FE3FF;--soc-body:#C4D6EC;
  position:relative;display:flex;align-items:center;gap:2.2rem;
  border-radius:1.6rem;padding:2.1rem 2.3rem;overflow:hidden;color:#fff;
  background:
    radial-gradient(560px 300px at 12% 115%,rgba(0,200,240,.22),rgba(0,200,240,0) 62%),
    radial-gradient(680px 320px at 88% -12%,rgba(8,105,212,.38),rgba(8,105,212,0) 62%),
    linear-gradient(135deg,#0A2050 0%,#050F26 58%,#03081A 100%);
  border:2px solid #1FC3F5;
  box-shadow:0 0 0 1px rgba(0,200,240,.22),0 0 30px rgba(0,180,240,.35),0 22px 44px -18px rgba(2,8,26,.75);
}
/* dotted wave along the bottom edge, as in the reference */
body.concept-site .hcb::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:44px;pointer-events:none;
  background-image:radial-gradient(circle,rgba(0,200,240,.28) 1.2px,transparent 1.8px);
  background-size:15px 15px;background-position:0 22px;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000);
  mask-image:linear-gradient(180deg,transparent,#000);
}
body.concept-site .hcb-visual{flex:0 0 228px;position:relative;z-index:1;margin:0}
body.concept-site .hcb-visual svg{display:block;width:100%;height:auto}
body.concept-site .hcb-body{flex:1 1 auto;min-width:0;position:relative;z-index:1}
body.concept-site .hcb-kicker{
  margin:0 0 .35rem;font-weight:700;font-size:1.02rem;letter-spacing:.02em;color:#fff;
  display:flex;align-items:center;gap:.6rem;
}
body.concept-site .hcb-slash{
  flex:0 0 auto;width:.34rem;height:1.05rem;background:var(--soc-cyan);
  transform:skewX(-18deg);border-radius:.1rem;
}
body.concept-site .hcb-title{
  margin:0;font-weight:900;line-height:1.12;letter-spacing:.01em;
  font-size:clamp(2.1rem,5.2vw,3.3rem);color:#fff;
}
body.concept-site .hcb-title-b{
  background:linear-gradient(92deg,#4FE3FF 0%,#00B7F0 55%,#0E8FE8 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
body.concept-site .hcb-points{
  list-style:none;margin:1.05rem 0 0;padding:0;display:flex;flex-wrap:wrap;
  gap:.4rem 0;align-items:center;
}
body.concept-site .hcb-points li{
  display:flex;align-items:center;gap:.5rem;margin:0;
  font-weight:700;font-size:1rem;color:#EAF4FF;white-space:nowrap;
}
body.concept-site .hcb-points li + li{
  border-left:1px solid rgba(160,210,245,.35);padding-left:1rem;margin-left:1rem;
}
body.concept-site .hcb-points svg{width:1.35rem;height:1.35rem;flex:0 0 auto;color:var(--soc-cyan)}
body.concept-site .hcb-cta{margin:1.35rem 0 0}
body.concept-site .hcb-btn{
  display:inline-flex;align-items:center;gap:.75rem;text-decoration:none;
  background:linear-gradient(180deg,#0869D4 0%,#0869D4 55%,#0659BC 100%);
  color:#fff;font-weight:800;font-size:1.13rem;letter-spacing:.02em;
  padding:.95rem 1.7rem;border-radius:999px;border:1px solid #8FD8FF;
  box-shadow:0 0 20px rgba(0,150,255,.45),inset 0 1px 0 rgba(255,255,255,.55),0 12px 24px -10px rgba(3,20,50,.7);
}
/* Contrast fix 2026-11-15: the concept sheet's section-paragraph
   link rule (azure, 0,2,3) beat this button's own color:#fff
   (0,2,1) — the label rendered azure at 1.33:1. Restated at
   (0,3,1) so the designed white wins. The gradient's top stop
   was also deepened (#35A5FF -> #0869D4 in two steps): white on
   the lightest stop now measures >= 4.9:1, not 4.35:1. */
body.concept-site .hcb .hcb-btn{color:#fff}
body.concept-site .hcb-btn:hover{
  box-shadow:0 0 28px rgba(0,160,255,.65),inset 0 1px 0 rgba(255,255,255,.55),0 12px 24px -10px rgba(3,20,50,.7);
}
body.concept-site .hcb-btn svg{width:1.5rem;height:1.5rem;flex:0 0 auto}
body.concept-site .hcb-btn-div{width:1px;height:1.4rem;background:rgba(255,255,255,.55);flex:0 0 auto}
body.concept-site .hcb-btn-arrow{font-weight:900;font-size:1.3rem;line-height:1}
body.concept-site .hcb-paid{margin:.8rem 0 0;font-size:.92rem;color:var(--soc-body)}
body.concept-site .hcb-paid a{color:var(--soc-cyan-txt);font-weight:700;text-underline-offset:3px}
body.concept-site .hcb-badge{
  position:absolute;top:1.15rem;right:1.25rem;z-index:2;margin:0;
  transform:rotate(4deg);text-align:center;color:#fff;line-height:1.08;
  /* Contrast fix 2026-11-15: stops deepened within the same hue
     (was #FF4D6E/#F5002E/#C40025) — pixel sampling of the rendered
     badge put the white small line at 4.2-4.7:1 and the lightest
     stop at 2.94:1; now >= 4.6:1 at every stop. */
  background:linear-gradient(165deg,#E01B54 0%,#D60029 55%,#A80020 100%);
  border-radius:.65rem;padding:.5rem .85rem .6rem;
  box-shadow:0 10px 22px -6px rgba(245,0,46,.55),inset 0 1px 0 rgba(255,255,255,.5);
}
body.concept-site .hcb-badge strong{display:block;font-size:1.65rem;font-weight:900;letter-spacing:.06em}
body.concept-site .hcb-badge small{display:block;font-size:.76rem;font-weight:700;letter-spacing:.04em;margin-top:.1rem}
@media(max-width:900px){
  body.concept-site .hcb{flex-direction:column;text-align:center;gap:.9rem;padding:4.3rem 1.25rem 1.7rem}
  body.concept-site .hcb-visual{flex-basis:auto;width:172px}
  /* block layout so the two slashes hug the (possibly wrapped) text
     instead of being pushed to opposite line ends by the flex row */
  body.concept-site .hcb-kicker{display:block;font-size:.95rem}
  body.concept-site .hcb-slash{display:inline-block;vertical-align:-.12em;margin:0 .45rem}
  body.concept-site .hcb-title{font-size:clamp(1.9rem,9.5vw,2.5rem)}
  body.concept-site .hcb-points{flex-direction:column;gap:.5rem;align-items:center}
  body.concept-site .hcb-points li + li{border-left:0;padding-left:0;margin-left:0}
  body.concept-site .hcb-cta{margin-top:1.15rem}
  body.concept-site .hcb-btn{width:100%;justify-content:center;font-size:.98rem;letter-spacing:0;padding:.95rem .7rem;gap:.55rem}
  body.concept-site .hcb-paid{font-size:.88rem}
  body.concept-site .hcb-badge{top:.85rem;right:.85rem;padding:.42rem .7rem .5rem}
  body.concept-site .hcb-badge strong{font-size:1.35rem}
  body.concept-site .hcb-badge small{font-size:.68rem}
}

/* ================= rail variant (article right rail) ==============
   The rail column is ~300px: the panel always takes its stacked
   form — visual on top, centred text, points in a column, button
   full width — with sizes tightened for the narrow measure. The
   badge keeps its tilted seat at the top-right. */
body.concept-site .hcb.hcb-rail{
  flex-direction:column;text-align:center;gap:.85rem;
  padding:3.7rem 1.15rem 1.5rem;border-radius:1.25rem;
}
body.concept-site .hcb.hcb-rail .hcb-visual{flex-basis:auto;width:136px}
body.concept-site .hcb.hcb-rail .hcb-kicker{display:block;font-size:.88rem}
body.concept-site .hcb.hcb-rail .hcb-slash{
  display:inline-block;vertical-align:-.12em;margin:0 .4rem;
}
body.concept-site .hcb.hcb-rail .hcb-title{font-size:1.78rem}
body.concept-site .hcb.hcb-rail .hcb-points{
  flex-direction:column;gap:.45rem;align-items:center;margin-top:.85rem;
}
body.concept-site .hcb.hcb-rail .hcb-points li{font-size:.93rem;white-space:normal}
body.concept-site .hcb.hcb-rail .hcb-points li + li{
  border-left:0;padding-left:0;margin-left:0;
}
body.concept-site .hcb.hcb-rail .hcb-cta{margin-top:1.05rem}
body.concept-site .hcb.hcb-rail .hcb-btn{
  width:100%;justify-content:center;font-size:.95rem;letter-spacing:0;
  padding:.9rem .6rem;gap:.5rem;
}
body.concept-site .hcb.hcb-rail .hcb-paid{font-size:.85rem}
body.concept-site .hcb.hcb-rail .hcb-badge{
  top:.8rem;right:.8rem;padding:.4rem .65rem .48rem;
}
body.concept-site .hcb.hcb-rail .hcb-badge strong{font-size:1.28rem}
body.concept-site .hcb.hcb-rail .hcb-badge small{font-size:.66rem}
/* A CTA panel has no place on paper (its white-on-navy design would
   also lose its background in print); the article's own in-body CTA
   notice remains the printed route. */
@media print{
  body.concept-site .hcb{display:none!important}
}
