/* The corporate-site link is separate from the quiz UI. */
.reema-return { position: relative; max-width: 590px; margin: 0 auto; padding: 0 24px 32px; text-align: center; }
.reema-return a { display: inline-flex; align-items: center; min-height: 44px; color: #c4d8d4; font-size: 14px; text-underline-offset: 4px; }
.reema-return a:focus-visible { outline: 2px solid #ffffff; outline-offset: 4px; }

/* 公式LINEへの誘導(結果ページ2か所)。緑のボタンは LINE の色、枠は診断UIの金枠を流用 */
.line-button { width: auto; min-width: 320px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 32px; text-decoration: none; background: #06C755; color: #ffffff; border-color: #04a548; box-shadow: 4px 5px 0 #01040a, 0 0 22px rgba(6,199,85,.55); font-size: 17px; }
.line-button:hover { filter: brightness(1.08); box-shadow: 4px 5px 0 #01040a, 0 0 30px rgba(6,199,85,.8); }
.line-button:focus-visible { outline: 2px solid #ffffff; outline-offset: 4px; }
.line-icon { width: 22px; height: 22px; flex: none; }
.line-callout-top small { display: block; margin-top: 16px; color: #98a5ad; font-size: 12px; letter-spacing: .04em; }
.line-final .panel-kicker { color: var(--gold); font-size: 14px; letter-spacing: .3em; }
.line-final p:not(.panel-kicker) { margin: 0 auto 26px; max-width: 34em; line-height: 1.9; }
.line-final small { display: block; margin-top: 16px; color: #98a5ad; font-size: 12px; }
@media (max-width: 600px) { .line-button { width: 100%; padding: 0 16px; font-size: 15px; } }

/* Substack newsletter CTAs: keep the destination RyU-specific while echoing the reference's raised pixel button. */
.newsletter-callout {
  margin: 25px 0 0;
  padding: 52px 20px 46px;
  border-top: 4px double #16b38a;
  border-bottom: 4px double #16b38a;
  text-align: center;
}
.newsletter-callout > p {
  margin: 0 0 25px;
  color: #f8d356;
  font-size: 17px;
  line-height: 1.8;
}
.newsletter-callout > small {
  display: block;
  margin-top: 24px;
  color: #98a5ad;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
}
.newsletter-callout > .newsletter-destination-note { margin-top: 17px; }
.newsletter-callout > .newsletter-destination-note + small { margin-top: 9px; }
.newsletter-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-grid;
  grid-template-columns: 28px 1fr 22px;
  align-items: center;
  gap: 10px;
  width: min(100%, 380px);
  min-height: 70px;
  padding: 10px 22px;
  border: 4px solid #020805;
  background: #06c755;
  box-shadow:
    inset 4px 4px 0 #43df84,
    inset -4px -4px 0 #049c43,
    6px 8px 0 #010403,
    0 0 18px 5px rgba(6,199,85,.54),
    0 0 42px 10px rgba(6,199,85,.24);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .03em;
  text-decoration: none;
  text-shadow: 1px 2px 0 rgba(0,65,28,.62);
  animation: newsletter-tremble 3.2s steps(1,end) infinite;
  transition: filter .12s ease, box-shadow .12s ease;
}
.newsletter-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -45%;
  bottom: -45%;
  left: -48%;
  width: 34%;
  background: linear-gradient(100deg,transparent,rgba(255,255,255,.1) 20%,rgba(255,255,255,.92) 50%,rgba(255,255,255,.1) 80%,transparent);
  filter: blur(1px);
  transform: translateX(0) skewX(-21deg);
  animation: newsletter-glint 3.2s ease-in-out infinite;
  pointer-events: none;
}
.newsletter-button > span { position: relative; z-index: 1; }
.newsletter-button:hover,
.newsletter-button:focus-visible {
  transform: none;
  animation: none;
  filter: brightness(1.08);
  box-shadow: inset 4px 4px 0 #55ee94,inset -4px -4px 0 #049c43,6px 8px 0 #010403,0 0 24px 8px rgba(6,199,85,.7),0 0 50px 12px rgba(6,199,85,.3);
}
.newsletter-button:hover::before,
.newsletter-button:focus-visible::before { animation: none; opacity: 0; }
.newsletter-button:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.newsletter-button:active { animation: none; transform: translate(3px,3px); box-shadow: inset 4px 4px 0 #43df84,inset -4px -4px 0 #049c43,3px 5px 0 #010403,0 0 22px 6px rgba(6,199,85,.6); }
.newsletter-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 6px;
  background: #058d3b;
  box-shadow: inset 0 0 0 2px rgba(0,55,24,.3),0 0 7px rgba(255,255,255,.25);
}
.newsletter-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.newsletter-button-label { min-width: 0; text-align: center; white-space: nowrap; }
.newsletter-arrow { font-size: 23px; line-height: 1; }

.newsletter-final {
  overflow: visible;
  margin-top: 80px;
  padding: 48px 42px 42px;
  background: radial-gradient(circle at 50% 35%,rgba(13,39,47,.36),transparent 54%),#050a18;
}
.newsletter-final::before,
.newsletter-final::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 20px;
  bottom: 20px;
  width: 10px;
  border-right: 1px solid #f6d669;
  border-left: 1px solid #f6d669;
  background:
    radial-gradient(ellipse at 50% 8px,#10c98d 0 2px,#f5cc54 2.5px 3.5px,transparent 4px) 0 0/8px 24px repeat-y,
    linear-gradient(90deg,#251936,#72549b 48%,#251936 52%);
  box-shadow: inset 2px 0 #7d5b16,inset -2px 0 #7d5b16;
  opacity: .94;
}
.newsletter-final::before { left: 6px; }
.newsletter-final::after { right: 6px; }
.newsletter-edge { position: absolute; z-index: 1; left: 18px; right: 18px; height: 24px; background: url("assets/newsletter-edge.svg") center/160px 24px repeat-x; filter: drop-shadow(0 0 2px rgba(240,198,78,.28)); pointer-events: none; }
.newsletter-edge-top { top: -4px; }
.newsletter-edge-bottom { bottom: -4px; transform: rotate(180deg); }
.newsletter-side-jewel {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid #f5cc54;
  background: #191127;
  box-shadow: inset 0 0 0 3px #7b5916,0 0 0 2px #33230d,0 0 8px rgba(16,201,141,.42);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.newsletter-side-jewel::before,
.newsletter-side-jewel::after { content: ""; position: absolute; width: 13px; height: 4px; border-top: 2px solid #f5cc54; border-bottom: 1px solid #7652a2; }
.newsletter-side-jewel::before { left: -15px; }
.newsletter-side-jewel::after { right: -15px; }
.newsletter-side-jewel > span { color: #10d99a; font-size: 15px; line-height: 1; text-shadow: 0 0 5px rgba(16,217,154,.7); transform: rotate(-45deg); }
.newsletter-side-jewel-left { left: -11px; }
.newsletter-side-jewel-right { right: -11px; }
.newsletter-final .panel-kicker { position: relative; z-index: 2; margin: 0 0 22px; color: var(--gold); font-size: 13px; letter-spacing: .22em; }
.newsletter-final h2 { position: relative; z-index: 2; margin: 0 0 16px; font-size: 27px; line-height: 1.55; }
.newsletter-final h2 > span { display: inline-block; }
.newsletter-final h2 em { color: #24e6a4; text-shadow: 0 0 12px rgba(36,230,164,.38); }
.final-offer.newsletter-final > p.newsletter-title { position: relative; z-index: 2; margin: 0 0 12px; color: var(--gold-light); font-size: 15px; line-height: 1.7; }
.final-offer.newsletter-final > p.newsletter-copy { position: relative; z-index: 2; max-width: 31em; margin: 0 auto 27px; color: #d4dcdf; font-size: 15px; line-height: 1.9; }
.newsletter-final .newsletter-button { z-index: 2; margin: 0 auto 18px; }
.newsletter-final small { position: relative; z-index: 2; display: block; color: #98a5ad; font-size: 12px; line-height: 1.8; }
.newsletter-save-link { display: block; min-height: 44px; margin: 23px auto 0; padding: 8px; border: 0; background: none; color: #c4d8d4; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.newsletter-save-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@keyframes newsletter-tremble {
  0%,11%,14%,17%,100% { transform: translateX(0); }
  12% { transform: translateX(-1px); }
  13%,16% { transform: translateX(1px); }
  15% { transform: translateX(-.5px); }
}
@keyframes newsletter-glint {
  0%,8% { transform: translateX(0) skewX(-21deg); opacity: 0; }
  12% { opacity: .9; }
  25% { transform: translateX(480%) skewX(-21deg); opacity: 0; }
  100% { transform: translateX(480%) skewX(-21deg); opacity: 0; }
}
@media (max-width: 430px) {
  .newsletter-callout { padding: 45px 8px 42px; }
  .newsletter-callout > p { font-size: 16px; }
  .newsletter-button { width: 100%; min-height: 64px; padding: 9px 14px; gap: 8px; font-size: 15px; }
  .newsletter-final { padding: 45px 26px 38px; }
  .newsletter-final h2 { font-size: 22px; }
  .final-offer.newsletter-final > p.newsletter-copy { font-size: 14px; }
}
@media (max-width: 350px) {
  .newsletter-button { grid-template-columns: 22px 1fr 18px; gap: 5px; padding: 8px 9px; font-size: 13px; letter-spacing: 0; }
  .newsletter-icon { width: 22px; height: 22px; }
  .newsletter-icon svg { width: 14px; height: 14px; }
  .newsletter-final { padding-right: 22px; padding-left: 22px; }
  .newsletter-side-jewel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .newsletter-button,
  .newsletter-button::before { animation: none !important; }
}
