.problem-library { background: #f3f5f7; }
.problem-library-intro { margin-bottom: 3rem; }
.problem-library-intro h2 { max-width: 880px; margin: 0; font-family: var(--font-display); font-size: clamp(2.8rem, 4.2vw, 4.8rem); font-weight: 600; line-height: .96; text-transform: uppercase; }
.problem-library-intro p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.8; }
.problem-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); }
.problem-toolbar p { margin: 0; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.problem-toolbar p strong { color: var(--red); }
.problem-search { display: flex; align-items: center; width: min(100%, 620px); gap: .8rem; }
.problem-search i { color: var(--red); font-size: 1.25rem; }
.problem-search input { width: 100%; padding: .55rem 0; border: 0; outline: 0; background: transparent; color: var(--navy); font-size: .82rem; }
.problem-search input::placeholder { color: #8b959e; }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.problem-card { min-width: 0; background: #fff; }
.problem-card[hidden] { display: none; }
.problem-card > a { position: relative; display: flex; min-height: 390px; height: 100%; flex-direction: column; padding: 2rem; color: var(--navy); overflow: hidden; transition: color .3s, background .3s; }
.problem-card > a::after { content: ''; position: absolute; right: -55px; bottom: -75px; width: 180px; height: 180px; border: 1px solid rgba(229, 27, 35, .12); border-radius: 50%; transition: transform .35s; }
.problem-card > a:hover { background: var(--navy); color: #fff; }
.problem-card > a:hover::after { transform: scale(1.25); border-color: rgba(255, 255, 255, .12); }
.problem-card-number { position: absolute; top: 1.4rem; right: 1.5rem; color: #bbc1c6; font-family: var(--font-display); font-size: 1rem; }
.problem-card-icon { display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 1.8rem; background: #f3f5f7; color: var(--red); font-size: 2.8rem; transition: background .3s; }
.problem-card-icon img { width: 82px; height: 82px; object-fit: contain;filter:hue-rotate(198deg); }
.problem-card > a:hover .problem-card-icon { background: #fff; }
.problem-card-copy { flex: 1; }
.problem-card-copy small { display: block; max-width: calc(100% - 20px); margin-bottom: .7rem; color: var(--red); font-size: .56rem; font-weight: 700; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.problem-card-copy h2 { margin: 0 0 .85rem; font-family: var(--font-display); font-size: clamp(1.65rem, 1.8vw, 2.1rem); font-weight: 600; line-height: 1.04; text-transform: uppercase; }
.problem-card-copy p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.7; transition: color .3s; }
.problem-card > a:hover .problem-card-copy p { color: #b9c4ce; }
.problem-card-link { display: flex; align-items: center; justify-content: space-between; margin-top: 1.7rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--navy); font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: color .3s, border-color .3s; }
.problem-card > a:hover .problem-card-link { color: #fff; border-color: rgba(255,255,255,.18); }
.problem-load-wrap { margin-top: 2.5rem; text-align: center; }
.problem-no-results, .problem-empty { padding: 4rem 1.5rem; background: #fff; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.problem-no-results i, .problem-empty i { display: block; margin-bottom: .8rem; color: var(--red); font-size: 2rem; }
.problem-no-results p, .problem-empty p { margin: 0; }

.problem-detail-hero { position: relative; padding: clamp(3rem, 7vw, 7rem) 0; background: var(--navy); color: #fff; overflow: hidden; }
.problem-detail-hero::after { content: ''; position: absolute; right: -10vw; top: -20vw; width: 52vw; height: 52vw; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.problem-detail-hero .container-fluid { position: relative; z-index: 1; }
.problem-detail-hero .corporate-breadcrumb, .problem-detail-hero .corporate-breadcrumb a { color: #aebbc7; }
.problem-detail-heading { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 2.2rem; margin-top: 2.5rem; }
.problem-detail-icon { display: grid; place-items: center; width: 140px; height: 140px; background: #fff; color: var(--red); font-size: 3.5rem; }
.problem-detail-icon img { width: 112px; height: 112px; object-fit: contain;filter:hue-rotate(198deg);}
.problem-detail-heading span { display: block; margin-bottom: .6rem; color: var(--red); font-size: .62rem; font-weight: 700; letter-spacing: .16em; }
.problem-detail-heading h1 { max-width: 1000px; margin: 0; font-family: var(--font-display); font-size: clamp(3.1rem, 5.6vw, 4.6rem); font-weight: 600; line-height: 1.09; text-transform: uppercase; }
.problem-detail-body { background: #f3f5f7; }
.problem-lead { max-width: 980px; margin: 0 auto clamp(3rem, 6vw, 6rem); color: #414b55; font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.75; text-align:left;}
.problem-lead > :last-child { margin-bottom: 0; }
.problem-story { display: grid; gap: 1px; max-width: 1180px; margin: 0 auto; background: var(--line); border: 1px solid var(--line); }
.problem-story-block { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(2rem, 5vw, 5rem); background: #fff; }
.story-marker { display: flex; align-items: center; flex-direction: column; }
.story-marker span { display: grid; place-items: center; width: 58px; height: 34px; background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 1rem; }
.story-marker i { display: grid; place-items: center; width: 78px; height: 78px; margin-top: 1rem; background: #f3f5f7; color: var(--red); font-size: 2rem; }
.problem-story-block small { display: block; margin-bottom: .65rem; color: var(--red); font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.problem-story-block h2 { margin: 0 0 1.4rem; font-family: var(--font-display); font-size: clamp(2.3rem, 3.2vw, 3.7rem); font-weight: 600; line-height: .98; text-transform: uppercase; }
.rich-content { color: #505b65; font-size: .84rem; line-height: 1.85; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content a { color: var(--red); text-decoration: underline; }
.rich-content li { margin-bottom: .45rem; }
.problem-retosan { background: #fbfcfd; }
.problem-retosan .story-marker span { background: var(--red); }
.problem-technology-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1180px; margin: 2rem auto 0; padding: clamp(2rem, 4vw, 3.5rem); background: var(--navy); color: #fff; }
.problem-technology-panel span { display: block; margin-bottom: .55rem; color: #9eacb9; font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.problem-technology-panel h2 { max-width: 680px; margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 2.7vw, 3rem); font-weight: 600; line-height: 1.04; text-transform: uppercase; }
.problem-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; }
.problem-back-link { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2.5rem; color: var(--navy); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.problem-back-link:hover { color: var(--red); }

@media (max-width: 991.98px) {
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem-technology-panel { align-items: flex-start; flex-direction: column; }
  .problem-detail-actions { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
  .problem-toolbar { align-items: stretch; flex-direction: column; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card > a { min-height: 350px; }
  .problem-detail-heading { grid-template-columns: 1fr; }
  .problem-detail-icon { width: 100px; height: 100px; }
  .problem-detail-icon img { width: 78px; height: 78px; }
  .problem-story-block { grid-template-columns: 1fr; }
  .story-marker { align-items: flex-start; flex-direction: row; gap: .7rem; }
  .story-marker i { width: 58px; height: 58px; margin-top: 0; }
  .story-marker span { height: 58px; }
}
@media (max-width: 575.98px) {
  .problem-library-intro h2 { font-size: 2.65rem; }
  .problem-detail-heading h1 { font-size: 2.9rem; }
  .problem-card-icon { width: 90px; height: 90px; }
  .problem-card-icon img { width: 70px; height: 70px; }
  .problem-detail-actions, .problem-detail-actions .btn { width: 100%; }
}

.problem-technology-discovery{display:block;border-top:3px solid var(--red)}
.problem-technology-intro p{max-width:650px;margin:1rem 0 2rem;color:#bdc9d4;font-size:.88rem;line-height:1.8}
.problem-technology-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.problem-technology-option{display:flex;align-items:flex-start;gap:1rem;padding:1.5rem;background:#ffffff08;border:1px solid #ffffff26;color:#fff;min-width:0;transition:background .2s,border-color .2s}
.problem-technology-option:last-child:nth-child(odd){grid-column:1/-1}
.problem-technology-symbol{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:#ffffff0d;color:#ff6268;font-size:1.4rem}
.problem-technology-option-copy{flex:1;min-width:0}
.problem-technology-option h3{margin:0 0 .65rem;font-family:var(--font-display);font-size:1.7rem;font-weight:600;line-height:1.15;overflow-wrap:anywhere}
.problem-technology-option p{margin:0 0 1rem;color:#bdc9d4;font-size:.8rem;line-height:1.75;overflow-wrap:anywhere}
.problem-technology-option small{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:.35rem;padding:.7rem 1.1rem;background:var(--red);border:1px solid var(--red);border-radius:3px;color:#fff;font-size:.75rem;font-weight:700;line-height:1.3;letter-spacing:.03em}.problem-technology-option:hover small,.problem-technology-option:focus-visible small{background:var(--red-dark);border-color:var(--red-dark)}
.problem-technology-arrow{align-self:center;font-size:1.25rem;transition:transform .2s}
.problem-technology-option:hover,.problem-technology-option:focus-visible{background:#ffffff12;border-color:#ff6268;color:#fff}
.problem-technology-option:hover .problem-technology-arrow{transform:translateX(4px)}
.problem-technology-discovery a:focus-visible{outline:2px solid #ff858a;outline-offset:4px}
.problem-technology-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-top:1.75rem;padding-top:1.25rem;border-top:1px solid #ffffff26}
.problem-technology-footer a{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.65rem;min-height:44px;color:#d5dfe8;font-size:.78rem}
.problem-technology-footer a:hover{color:#fff;text-decoration:underline}.problem-technology-footer small{color:#aabaca;font-size:.65rem}
@media(max-width:767.98px){.problem-technology-links{grid-template-columns:1fr}.problem-technology-option{padding:1.1rem;gap:.8rem}.problem-technology-discovery{padding:1.5rem}.problem-technology-symbol{flex-basis:36px;width:36px;height:36px}.problem-technology-option h3{font-size:1.5rem}}
@media(prefers-reduced-motion:reduce){.problem-technology-option,.problem-technology-arrow{transition:none}.problem-technology-option:hover .problem-technology-arrow{transform:none}}
.problem-machines{max-width:1180px;margin:4rem auto 0;padding-top:3rem;border-top:1px solid var(--line)}
.problem-machines-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:2rem}
.problem-machines-heading h2{font-family:var(--font-display);font-size:clamp(2rem,3vw,3rem);font-weight:600;text-transform:uppercase;color:var(--navy)}
.problem-machines-heading p{color:var(--muted);font-size:.85rem;margin:0;line-height:1.7}
.problem-machines-heading>a{display:inline-flex;align-items:center;gap:.7rem;min-height:44px;color:var(--navy);font-size:.8rem;white-space:nowrap}
.problem-machines-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.problem-machine-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--line);color:var(--navy);transition:border-color .2s,box-shadow .2s}
.problem-machine-image{display:grid;place-items:center;aspect-ratio:4/3;background:var(--soft);padding:1.25rem;overflow:hidden}
.problem-machine-image img{width:100%;height:100%;min-height:0;object-fit:contain}.problem-machine-image>i{font-size:4rem;color:#9da8b2}
.problem-machine-copy{display:flex;flex:1;flex-direction:column;padding:1.5rem}.problem-machine-copy>small{font-size:.65rem;color:var(--muted);margin-bottom:.8rem}
.problem-machine-code{font-size:.75rem;color:var(--red);letter-spacing:.06em;margin-bottom:.45rem;overflow-wrap:anywhere}
.problem-machine-copy h3{font-family:var(--font-display);font-size:1.8rem;font-weight:600;line-height:1.1;overflow-wrap:anywhere;margin-bottom:1rem}
.problem-machine-copy p{font-size:.8rem;line-height:1.75;color:var(--muted);margin-bottom:1.5rem;overflow-wrap:anywhere}
.problem-machine-action{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:auto;padding:.8rem 1rem;min-height:44px;background:var(--navy);color:#fff;font-size:.75rem;font-weight:600}
.problem-machine-card:hover{color:var(--navy);border-color:var(--red);box-shadow:0 12px 30px #132a4512}.problem-machine-card:hover .problem-machine-action{background:var(--red)}
.problem-machines a:focus-visible{outline:3px solid var(--red);outline-offset:4px}
@media(max-width:991.98px){.problem-machines-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575.98px){.problem-machines-grid{grid-template-columns:1fr}.problem-machines-heading{align-items:flex-start;flex-direction:column}.problem-machines{margin-top:2.5rem;padding-top:2rem}}
@media(prefers-reduced-motion:reduce){.problem-machine-card{transition:none}}