/* 全ページ共通CTA。既存アンカー・デザイン互換のためhome-closingクラスを継承。
 * トップ専用CSSには依存しない。対象ページと文言はinc/closing-cta.phpが正本。 */
.home-closing__highlight {
  color: #536dff;
  background: linear-gradient(110deg, #0083ff 4%, #6870ff 47%, #b359e6 94%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-closing__arrow { width: 24px; filter: brightness(0) invert(1); }
.home-closing__button {
  position: relative; isolation: isolate; overflow: hidden;
  border-color: transparent;
  --diagnosis-background: linear-gradient(110deg, #005fff 10%, #567bff 76%, #7650ff 100%);
  background: var(--diagnosis-background);
  box-shadow: 0 4px 10px rgb(31 95 247 / 18%);
  transition: box-shadow 420ms ease, transform 420ms ease;
}
.home-closing__button::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, #006aff 0%, #4145ff 52%, #972bfa 100%);
  opacity: 0; transition: opacity 420ms ease;
}
.home-closing__button:is(:hover, :focus-visible) {
  border-color: transparent; background: var(--diagnosis-background);
  box-shadow: 0 8px 22px rgb(76 70 255 / 30%);
}
.home-closing__button:is(:hover, :focus-visible)::before { opacity: 1; }
a.home-closing__pricing {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: fit-content; max-width: 100%; min-height: 44px; padding-block: 6px;
  border: 0; border-radius: 4px; color: #0878ff;
  font-size: 20px; font-weight: 600; line-height: 1.6; letter-spacing: .02em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  transition: color 280ms ease, text-decoration-color 280ms ease;
}
a.home-closing__pricing::after {
  content: ""; flex: 0 0 24px; width: 24px; height: 24px; background-color: currentColor;
  mask: url('../img/icons/arrow-right.svg') center / contain no-repeat;
  transition: transform 280ms ease;
}
a.home-closing__pricing:is(:hover, :focus-visible) { color: #6549ed; }
a.home-closing__pricing:is(:hover, :focus-visible)::after { transform: translateX(5px); }
.home-closing a:focus-visible { outline: 2px solid #0878ff; outline-offset: 5px; }
@media (max-width: 767px) {
  a.home-closing__pricing { gap: 10px; font-size: 17px; }
  a.home-closing__pricing::after { flex-basis: 22px; width: 22px; height: 22px; }
}
/* 終端CTA。文章と導線はHTML、診断レポートと装飾は承認図版。 */
.home-closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(460px, 39vw, 600px);
  background: #fbfcff;
  color: #071344;
}
.home-closing__visual { position: absolute; inset: -48px 0; z-index: -1; pointer-events: none; }
.home-closing__visual img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right center; mask-image: linear-gradient(to right, transparent 25%, #000 65%); }
.home-closing__inner {
  width: 89%;
  max-width: 1280px;
  margin-inline: auto;
  min-height: inherit;
  display: flex;
  align-items: center;
}
.home-closing__copy { width: 52%; padding-block: 40px; }
.home-closing h2 { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 700; line-height: 1.65; letter-spacing: .02em; }
.home-closing h2 span { white-space: nowrap; }
.home-closing__description { margin: 26px 0 0; font-size: clamp(15px, 1.25vw, 18px); font-weight: 400; line-height: 2; }
.home-closing__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.home-closing__button { min-height: 60px; padding: 16px 24px; gap: 14px; font-size: 17px; font-weight: 600; }
.home-closing__reassurance { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font-size: 14px; font-weight: 400; line-height: 1.8; }
.home-closing__reassurance .dashicons { flex-shrink: 0; color: #0878ff; width: 22px; height: 22px; font-size: 22px; }
@media (min-width: 768px) and (max-width: 1100px) {
  .home-closing__actions { gap: 16px; margin-top: 38px; }
  .home-closing__button { min-height: 54px; padding: 14px 18px; font-size: 14px; }
  a.home-closing__pricing { font-size: 16px; }
  .home-closing__description { margin-top: 28px; }
  .home-closing__reassurance { margin-top: 28px; font-size: 13px; }
}
@media (max-width: 767px) {
  .home-closing { min-height: 0; display: flex; flex-direction: column; }
  .home-closing__inner { width: calc(100% - 40px); order: 0; }
  .home-closing__copy { width: 100%; padding: 32px 0 12px; }
  .home-closing h2 { font-size: clamp(23px, 6vw, 32px); line-height: 1.7; }
  .home-closing__description { margin-top: 24px; font-size: 15px; line-height: 1.9; }
  .home-closing__actions { margin-top: 30px; gap: 18px; }
  .home-closing__button { min-height: 56px; padding: 14px 24px; font-size: 16px; }
  .home-closing__reassurance { margin-top: 24px; gap: 8px; font-size: 12px; }
  .home-closing__reassurance .dashicons { width: 22px; height: 22px; font-size: 22px; }
  .home-closing__visual { position: relative; inset: auto; z-index: 0; order: 1; width: 100%; aspect-ratio: 1 / 1.12; overflow: hidden; }
  .home-closing__visual img { width: 160%; max-width: none; height: auto; transform: translate(-37.5%, -4%); mask-image: none; }
}


/* 下層の文言差・長文を許容する。トップの確定した改行は維持。 */
#site-closing h2 span { white-space: normal; }
.home-closing--compact { min-height: 0; border-top: 1px solid #e3ebf8; background: #f8faff; }
.home-closing--compact .home-closing__copy { width: 100%; padding-block: 48px; }
.home-closing--compact h2 { font-size: clamp(24px, 2.4vw, 32px); }
.home-closing--compact h2 br { display: none; }
.home-closing--compact .home-closing__description { margin-top: 16px; font-size: 16px; }
.home-closing--compact .home-closing__actions { margin-top: 24px; }
.home-closing--compact .home-closing__button { min-height: 48px; padding: 12px 20px; font-size: 15px; }
.home-closing--compact a.home-closing__pricing { font-size: 16px; }
@media (max-width: 767px) {
  .home-closing--compact .home-closing__copy { padding-block: 32px; }
  .home-closing--compact .home-closing__description { font-size: 14px; }
  .home-closing--compact h2 br { display: initial; }
}
@media (prefers-reduced-motion: reduce) {
  .home-closing__button, .home-closing__button::before,
  a.home-closing__pricing, a.home-closing__pricing::after { transition: none; }
  .home-closing__button:hover, a.home-closing__pricing:is(:hover, :focus-visible)::after { transform: none; }
}
