/* Option B: one solution per row, with two complementary product visuals. */
.stacked-solutions { padding: 64px 0 72px; background: #f5f7f2; border-block: 1px solid var(--line); }
.stacked-solutions .section-heading { margin-bottom: 32px; }
.stacked-solutions .solutions-heading { display: block; }
.solutions-heading h2 { display: flex; flex-wrap: wrap; column-gap: .45em; }
.solutions-heading h2 > span { white-space: nowrap; }
.stacked-jumps { position: sticky; top: 71px; z-index: 18; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 8px 0; margin-bottom: 36px; border-bottom: 1px solid #d2dfd4; background: #f5f7f2f5; backdrop-filter: blur(10px); font-size: 14px; }
.stacked-jumps a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 8px; border-radius: 3px; border-bottom: 2px solid transparent; }
.stacked-jumps span { font: 12px Arial,sans-serif; color: var(--green); }
.stacked-jumps a:hover { background: #e8f1e7; }
.stacked-jumps a[aria-current="location"] { color: var(--deep); border-bottom-color: var(--green); background: #e3efe2; font-weight: 550; }
.stacked-solution { scroll-margin-top: 48px; }
.stacked-solution + .stacked-solution { margin-top: 40px; padding-top: 36px; border-top: 1px solid #d4dfd3; }
.stacked-heading { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; column-gap: 56px; margin-bottom: 24px; }
.stacked-heading .solution-category { font: 500 14px/1.7 "Noto Sans JP",sans-serif; letter-spacing: .01em; color: var(--green); }
.stacked-heading .solution-category > span { font: 12px Arial,sans-serif; }
.stacked-heading h3 { font-size: 34px; line-height: 1.5; letter-spacing: -.03em; margin: 10px 0 0; }
.stacked-description > p { font-size: 16px; color: #50685b; line-height: 1.9; text-wrap: pretty; }
.stacked-description .solution-open { margin-top: 12px; gap: 16px; padding: 4px 0; }
.stacked-visuals { display: grid; grid-template-columns: 1.08fr 1fr; gap: 24px; }
.stacked-visual { min-width: 0; border: 1px solid #ccdccf; border-radius: 5px; overflow: hidden; background: white; }
.stacked-stage { position: relative; height: 338px; background: #eaf2e9; overflow: hidden; padding: 16px; }
.stacked-visual:nth-child(2) .stacked-stage { background: #f0f3eb; }
.stacked-visual figcaption { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #dde7da; }
.visual-caption-title { display: flex; align-items: center; gap: 10px; }
.visual-caption-title { min-width: 0; flex-wrap: wrap; gap: 5px 10px; }
.stacked-visual h4 { font-size: 16px; font-weight: 550; }
.visual-planned { font-size: 11px; color: #62745e; background: #f0f4e9; border: 1px solid #d5dfca; padding: 1px 6px; border-radius: 2px; }
.ui-window { height: 100%; background: #fcfdfa; border: 1px solid #cbdcce; border-radius: 3px; box-shadow: 0 5px 14px #264e3209; overflow: hidden; color: #254a3a; font-size: 14px; line-height: 1.65; }
.ui-topbar { min-height: 34px; padding: 7px 12px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #dce6de; background: #f9fcf8; font-size: 12px; }
.ui-scene-mark { width: 64px; height: 22px; object-fit: contain; flex: none; margin-right: 4px; }
.ui-topbar .ui-status { margin-left: auto; font-size: 11px; color: #5d7867; }
.ui-body { padding: 18px; }
.ui-searchbar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: white; border: 1px solid #bed1c3; border-radius: 3px; font-size: 14px; }
.ui-searchbar svg { width: 17px; height: 17px; flex: none; color: #4d8a64; }
.ui-models { display: grid; grid-template-columns: 1fr 18px 1.7fr; align-items: center; gap: 12px; margin-top: 17px; }
.ui-model-source,.ui-model-match { text-align: center; border: 1px solid #c8dacf; padding: 8px; background: #fff; border-radius: 3px; }
.ui-model-source { background: #edf5ef; }
.ui-model-source > span,.ui-model-match > span { display: block; font-size: 13px; }
.ui-cad { display: block; width: 100%; height: 86px; color: #23563e; }
.ui-model-matches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-model-match.is-match { outline: 1px solid #378764; border-color: #378764; }
.ui-model-match .ui-cad { height: 77px; }
.ui-asset-links { display: flex; gap: 9px; justify-content: center; padding: 10px 0 0; margin-top: 13px; border-top: 1px solid #dce7de; color: #4d755d; font-size: 12px; }
.ui-doc-result { padding: 12px 0; border-bottom: 1px solid #e0e8df; display: grid; grid-template-columns: 27px 1fr; gap: 9px; align-items: start; }
.ui-file-icon { width: 23px; height: 29px; display: grid; place-items: center; border: 1px solid #9fbaa9; color: #4a8a68; border-radius: 2px; background: #eff6ed; font-size: 12px; }
.ui-doc-result strong { display: block; font-size: 14px; font-weight: 550; }
.ui-doc-result p { color: #607a69; font-size: 13px; margin-top: 3px; }
.ui-doc-result mark { background: #e0f3cd; color: inherit; padding: 0 2px; }
.ui-sources { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ui-sources span { border: 1px solid #d4e0d3; padding: 4px 9px; background: #f4f8f1; border-radius: 3px; font-size: 12px; }
.ui-prompt { padding: 15px; background: #fff; border: 1px solid #cbdccf; border-radius: 4px; margin-top: 15px; font-size: 14px; }
.ui-work { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #deeadf; }
.ui-work .diagram-star { width: 24px; }
.ui-work strong { display: block; font-size: 14px; font-weight: 550; }
.ui-work span { display: block; color: #64836e; font-size: 12px; margin-top: 2px; }
.ui-document-page { width: 85%; margin: 14px auto 0; padding: 14px 20px; background: white; border: 1px solid #d4dfd3; box-shadow: 0 4px 12px #23493205; }
.ui-document-page h5 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.ui-document-page h6 { margin: 12px 0 6px; font-size: 13px; font-weight: 550; }
.ui-text-lines { display: grid; gap: 6px; }
.ui-text-lines i { display: block; height: 5px; background: #dce6dc; width: 100%; border-radius: 1px; }
.ui-text-lines i:last-child { width: 78%; }
.ui-doc-table { display: grid; grid-template-columns: 75px 1fr; font-size: 12px; border-top: 1px solid #d8e2d8; margin-top: 12px; }
.ui-doc-table span { padding: 7px; border-bottom: 1px solid #d8e2d8; }
.ui-doc-table span:nth-child(odd) { background: #f0f5ed; }
.ui-review-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 13px; padding: 16px; }
.ui-review-doc { padding: 16px 13px; background: white; border: 1px solid #d5e2d7; }
.ui-review-doc > strong { display: block; font-size: 16px; margin-bottom: 14px; }
.ui-highlight { background: #f8edcd; border-left: 2px solid #d79523; padding: 10px 8px; margin: 16px 0; font-size: 13px; }
.ui-review-feedback { min-width: 0; }
.ui-review-feedback strong { font-size: 14px; font-weight: 550; }
.ui-review-feedback .ui-sources { gap: 5px; margin-top: 9px; }
.ui-review-feedback .ui-sources span { font-size: 12px; padding: 2px 6px; }
.ui-finding { margin-top: 16px; padding: 12px; border: 1px solid #d9e0cc; border-radius: 3px; background: #f7f9ed; font-size: 13px; }
.ui-finding p { margin-top: 6px; color: #6a765e; }
.screen-stage { padding: 0; display: flex; flex-direction: column; }
.screen-canvas { flex: 1; min-height: 0; display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; padding: 10px; }
.screen-canvas img { min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 2px; }
.stacked-toolbar { gap: 15px; }
.stacked-toolbar .review-version { background: #e1f0e3; border: 1px solid #c8dfcd; padding: 3px 9px; border-radius: 3px; color: var(--deep); }
.stacked-toolbar a { padding: 3px 0; }
.stacked-toolbar { left: auto; right: 16px; transform: none; border-radius: 5px; gap: 12px; padding: 8px 12px; }
@media (max-width: 1150px) and (min-width: 851px) {
  .stacked-heading { column-gap: 30px; }
  .stacked-heading h3 { font-size: 31px; }
  .stacked-description > p { font-size: 16px; }
  .stacked-visuals { gap: 20px; }
  .stacked-stage { padding: 12px; height: 324px; }
  .screen-stage { padding: 0; }
  .ui-body { padding: 15px; }
  .ui-models { gap: 8px; }
  .ui-model-source,.ui-model-match { padding: 6px; }
  .ui-review-body { padding: 12px; gap: 9px; }
  .ui-review-doc { padding: 13px 10px; }
  .ui-finding { padding: 9px; }
  .stacked-jumps { gap: 8px; font-size: 13px; }
  .stacked-visual figcaption { padding-inline: 12px; gap: 8px; }
}
@media (max-width: 850px) {
  .stacked-heading { grid-template-columns: 1fr; }
  .stacked-description { padding-top: 12px; }
  .stacked-visuals { grid-template-columns: 1fr; gap: 28px; }
  .stacked-stage { height: 360px; }
  .stacked-solution + .stacked-solution { margin-top: 42px; padding-top: 36px; }
  .stacked-solutions .section-heading { display: block; }
  .stacked-solutions .section-intro { margin-top: 20px; }
  .stacked-heading h3 { font-size: 27px; }
  .stacked-jumps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; top: 75px; }
  .stacked-solution { scroll-margin-top: 100px; }
}
@media (max-width: 500px) {
  .stacked-stage { padding: 12px; height: 335px; }
  .screen-stage { padding: 0; }
  .ui-body { padding: 12px; }
  .ui-models { gap: 6px; grid-template-columns: 1fr 14px 1.6fr; }
  .ui-review-body { padding: 10px; gap: 8px; }
  .ui-review-doc { padding: 12px 8px; }
  .ui-review-feedback strong { font-size: 13px; }
  .ui-finding { padding: 8px; }
  .stacked-toolbar { font-size: 11px; gap: 8px; }
}
