/* SP achievements visual master: independent normal-flow presentation. */
.sp-achv-master { display: none; }

@media (max-width: 768px) {
  #site-menu a[data-sp-target="#achievements"] { display: none !important; }

  body #achievements.pc-achievements-v2.achv-final-master,
  body.sp-phase2-active #achievements.pc-achievements-v2.achv-final-master {
    display: block !important;
    position: relative;
    width: 100% !important;
    max-width: none;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 28px auto 22px !important;
    padding: 6px 0 5px !important;
    overflow: visible !important;
    border: 0 !important;
    background: linear-gradient(141deg,rgba(194,235,251,.54) 0 8%,transparent 8% 89%,rgba(205,242,253,.58) 89% 100%),radial-gradient(circle at 50% 13%,rgba(223,246,255,.82),transparent 38%),linear-gradient(180deg,#fff 0%,#f5fcff 100%) !important;
    box-shadow: none !important;
    clip-path: none;
    container-type: normal;
  }
  #achievements.achv-final-master > .achv-head,
  #achievements.achv-final-master > .achv-case,
  #achievements.achv-final-master > .achv-cv-card,
  #achievements.achv-final-master > .achv-side,
  #achievements.achv-final-master > .achv-footer { display: none !important; }
  #achievements .sp-achv-master,
  #achievements .sp-achv-master * { box-sizing: border-box; }
  #achievements .sp-achv-master h2,
  #achievements .sp-achv-master h3,
  #achievements .sp-achv-master p { margin: 0; }
  #achievements > .sp-achv-master {
    display: flex;
    width: 80%;
    max-width: 344px;
    margin-inline: auto;
    flex-direction: column;
    gap: 6px;
    color: #06235f;
    font-family: "Noto Sans JP","Yu Gothic",sans-serif;
  }

  .spm-head { text-align: center; }
  .spm-head h2 { font-weight: 900; line-height: 1.08; letter-spacing: -.05em; }
  .spm-head h2 span { display: block; }
  .spm-head-lead { color: #078fe9; font-size: 23px; }
  .spm-head-main { margin-top: 2px; color: #06235f; font-size: 21px; white-space: nowrap; }
  .spm-head-main b { color: #078fe9; font: inherit; }
  .spm-head p { margin-top: 5px !important; font-size: 9.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; }

  .spm-process-panel { padding: 5px 7px 3px; border: 1px solid #9edff7; border-radius: 9px; background: linear-gradient(180deg,rgba(239,250,255,.96),rgba(247,253,255,.99)); box-shadow: 0 3px 9px rgba(22,139,193,.12); }
  .spm-process-title { display: flex; align-items: center; gap: 10px; padding: 0 4px 4px; }
  .spm-process-title > span { display: grid; flex: 0 0 91px; padding: 5px 7px; place-items: center; border-radius: 7px; background: linear-gradient(180deg,#27baf1,#008fdf); color: #fff; font-size: 12px; font-weight: 900; line-height: 1; white-space: nowrap; }
  .spm-process-title h3 { font-size: 16px; font-weight: 900; line-height: 1.1; }
  .spm-process-list { display: flex; flex-direction: column; gap: 10px; }
  .spm-step { position: relative; display: grid; min-height: 39px; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 8px; padding: 2px 12px; border-radius: 8px; background: #fff; box-shadow: 0 3px 8px rgba(43,121,159,.12); }
  .spm-step:not(:last-child)::after { content: ""; position: absolute; z-index: 2; left: 50%; bottom: -7px; width: 9px; height: 9px; border-right: 2px solid #3480b5; border-bottom: 2px solid #3480b5; transform: translateX(-50%) rotate(45deg); }
  .spm-step-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #e9f8fe; color: #55738e; }
  .spm-step-icon svg { width: 23px; height: 23px; }
  .spm-step-icon.is-result { color: #079ee8; }
  .spm-step-copy { min-width: 0; }
  .spm-step strong { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 900; line-height: 1.08; }
  .spm-step.is-result strong { color: #038fe3; }
  .spm-step p { font-size: 9.3px; font-weight: 650; line-height: 1.25; white-space: nowrap; }

  .spm-main-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; padding: 4px 8px 4px; border: 1px solid #9edff7; border-radius: 9px; background: linear-gradient(135deg,#fff,#f8fdff); box-shadow: 0 3px 9px rgba(22,139,193,.12); }
  .spm-main-intro { display: grid; grid-column: 1 / -1; grid-template-columns: 43px 1fr; align-items: center; gap: 8px; }
  .spm-mail-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: linear-gradient(180deg,#20bdf3,#008fdf); }
  .spm-mail-icon svg { width: 28px; height: 28px; }
  .spm-main-intro h3 { font-size: 16px; font-weight: 900; line-height: 1.1; }
  .spm-main-intro p { margin-top: 2px !important; color: #009ce8; font-size: 9px; font-weight: 750; line-height: 1.22; }
  .spm-main-chart { display: grid; grid-template-columns: 1fr 29px 1fr; align-items: end; margin-top: 1px; padding-bottom: 1px; border-bottom: 1px solid #86a9c7; }
  .spm-main-series { display: grid; align-self: end; justify-items: center; grid-template-rows: auto auto auto; }
  .spm-main-series b { color: #0759a4; font-size: 12px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
  .spm-main-series span { width: 37px; margin-top: 2px; border-radius: 2px 2px 0 0; }
  .spm-main-series.is-before span { height: 33px; background: linear-gradient(180deg,#becbd7,#a9b7c5); }
  .spm-main-series.is-after span { height: 49px; background: linear-gradient(180deg,#37c4f6,#079fe8); }
  .spm-main-series small { margin-top: 3px; font-size: 9px; font-weight: 900; line-height: 1; }
  .spm-main-series.is-after small { color: #078fe3; }
  .spm-main-chart > img { align-self: center; width: 29px; margin-bottom: 21px; filter: brightness(0) saturate(100%) invert(14%) sepia(100%) saturate(6355%) hue-rotate(337deg) brightness(98%) contrast(95%); }
  .spm-main-result { align-self: end; margin-top: 1px; padding: 5px 5px 4px; border-radius: 8px; background: linear-gradient(135deg,#fff3f7,#fde9f1); color: #f20c4f; text-align: center; }
  .spm-main-result > span { display: grid; padding: 4px; place-items: center; border-radius: 8px; background: linear-gradient(180deg,#ff4a86,#f72266); color: #fff; font-size: 10px; font-weight: 900; line-height: 1; }
  .spm-main-result strong { display: block; margin-top: 3px; font-size: 31px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
  .spm-main-result p { margin-top: 3px !important; padding: 2px 3px; border-radius: 6px; background: rgba(255,255,255,.34); color: #db1550; font-size: 8px; font-weight: 800; line-height: 1.25; }

  .spm-metrics { display: flex; flex-direction: column; gap: 6px; }
  .spm-metric-card { display: grid; grid-template-columns: 45px minmax(0,1fr) 112px; grid-template-rows: auto 45px; align-items: center; column-gap: 7px; padding: 5px 7px; border: 1px solid #9edff7; border-radius: 9px; background: linear-gradient(135deg,#fff,#f8fdff); box-shadow: 0 3px 9px rgba(22,139,193,.12); }
  .spm-metric-icon { display: grid; grid-column: 1; grid-row: 1 / 3; width: 43px; height: 43px; place-items: center; border-radius: 50%; background: #e9f8fe; color: #1a6095; }
  .spm-metric-icon svg { width: 27px; height: 27px; }
  .is-cvr .spm-metric-icon { color: #078fdd; }
  .spm-metric-copy { grid-column: 2 / 4; grid-row: 1; min-width: 0; align-self: end; }
  .spm-metric-copy strong { display: block; font-size: 12px; font-weight: 900; line-height: 1.15; }
  .spm-metric-copy p { margin-top: 1px !important; font-size: 7.5px; font-weight: 650; line-height: 1.15; }
  .spm-metric-body { display: contents; }
  .spm-mini-chart { display: grid; grid-column: 2; grid-row: 2; grid-template-columns: 1fr 25px 1fr; align-items: end; width: 100%; padding-bottom: 1px; border-bottom: 1px solid #86a9c7; }
  .spm-mini-series { display: grid; align-self: end; justify-items: center; grid-template-rows: auto auto auto; }
  .spm-mini-series b { color: #062d76; font-size: 8px; font-weight: 900; line-height: 1; white-space: nowrap; }
  .spm-mini-series.is-after b { color: #006fc8; }
  .spm-mini-series span { width: 23px; margin-top: 2px; border-radius: 2px 2px 0 0; }
  .spm-mini-series.is-before span { background: linear-gradient(180deg,#b9c9d8,#9db0c3); }
  .spm-mini-series.is-after span { background: linear-gradient(180deg,#42cafa,#0a9de7); }
  .is-cpa .spm-mini-series.is-before span { height: 25px; }
  .is-cpa .spm-mini-series.is-after span { height: 17px; }
  .is-cvr .spm-mini-series.is-before span { height: 16px; }
  .is-cvr .spm-mini-series.is-after span { height: 25px; }
  .is-ticket .spm-mini-series.is-before span { height: 14px; }
  .is-ticket .spm-mini-series.is-after span { height: 27px; }
  .spm-mini-series small { margin-top: 2px; font-size: 7px; font-weight: 900; line-height: 1; }
  .spm-mini-series.is-after small { color: #078fe3; }
  .spm-mini-chart > img { align-self: center; width: 20px; margin-bottom: 12px; filter: brightness(0) saturate(100%) invert(14%) sepia(100%) saturate(6355%) hue-rotate(337deg) brightness(98%) contrast(95%); }
  .spm-change-arrow { align-self: center; margin-bottom: 12px; color: #f20c4f; font-size: 18px; font-weight: 900; line-height: 1; text-align: center; }
  .spm-result { display: flex; grid-column: 3; grid-row: 2; align-self: stretch; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 3px 4px 4px; border-radius: 8px; background: linear-gradient(135deg,#fff3f7,#fde9f1); color: #f20c4f; }
  .spm-result > span { display: grid; align-self: stretch; padding: 3px; place-items: center; border-radius: 7px; background: linear-gradient(180deg,#ff4a86,#f72266); color: #fff; font-size: 8px; font-weight: 900; line-height: 1; }
  .spm-result strong { display: block; margin-top: 3px; font-size: 19px; font-weight: 900; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
  .is-cpa .spm-result strong { font-size: 17px; }
  .spm-result small { margin-top: 2px; font-size: 6px; font-weight: 700; line-height: 1.1; }
  .spm-footer { padding: 0 0 1px; font-size: 9px; font-weight: 700; line-height: 1.25; text-align: center; }
}
