.subpage-main { overflow: hidden; background: var(--paper); color: var(--text); }
.subpage-hero { position: relative; overflow: hidden; padding: 92px 0 78px; background: var(--navy); color: var(--ivory); isolation: isolate; }
.subpage-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: radial-gradient(circle at 85% 25%, rgba(244, 138, 37, .17), transparent 25%), radial-gradient(circle at 15% 80%, rgba(70, 117, 211, .2), transparent 32%), linear-gradient(120deg, #071226, #0d2142); }
.subpage-hero::after { position: absolute; right: -8%; bottom: -48%; width: 540px; height: 540px; content: ""; border: 1px solid rgba(156, 184, 238, .15); border-radius: 50%; box-shadow: 0 0 0 72px rgba(156, 184, 238, .03), 0 0 0 144px rgba(156, 184, 238, .02); pointer-events: none; }
.subpage-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 70px; align-items: end; }
.subpage-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; color: #9caac0; font-size: 12px; }
.subpage-breadcrumb a:hover { color: var(--orange-light); }
.subpage-hero h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(42px, 5vw, 68px); }
.subpage-hero-lede { max-width: 670px; margin: 0; color: #c6d0df; font-size: 16px; line-height: 1.85; }
.subpage-hero-note { padding: 22px 24px; border: 1px solid rgba(157, 185, 238, .22); border-radius: 20px; background: rgba(18, 38, 74, .66); color: #aab8cc; font-size: 13px; line-height: 1.8; }
.subpage-hero-note strong { display: block; margin-bottom: 7px; color: var(--orange-light); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.subpage-section { padding: 86px 0; }
.subpage-section:nth-of-type(even) { background: #f5f1e9; }
.subpage-section-dark { background: var(--navy) !important; color: var(--ivory); }
.subpage-section-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 42px; }
.subpage-section-head h2 { margin: 0; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.12; }
.subpage-section-head h2 span { color: var(--orange); }
.subpage-section-dark .subpage-section-head h2 span { color: var(--orange-light); }
.subpage-section-head > p { max-width: 580px; margin: 0; color: #6f7b8b; font-size: 14px; line-height: 1.85; }
.subpage-section-dark .subpage-section-head > p { color: #a9b7cc; }
.subpage-kicker { margin-bottom: 16px; color: #a76028; font-size: 10px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.subpage-section-dark .subpage-kicker { color: var(--orange-light); }
.subpage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.subpage-card { padding: 28px 26px; border: 1px solid #e7e1d6; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(36, 45, 66, .04); }
.subpage-section-dark .subpage-card { border-color: rgba(142, 169, 217, .23); background: rgba(18, 38, 74, .7); }
.subpage-card-index { display: block; margin-bottom: 38px; color: #b87a43; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.subpage-card h3 { margin-bottom: 11px; font-size: 22px; }
.subpage-card p { margin: 0; color: #748091; font-size: 13px; line-height: 1.8; }
.subpage-section-dark .subpage-card p { color: #aab8cc; }
.subpage-card ul, .subpage-detail ul { margin: 17px 0 0; padding-left: 18px; color: #748091; font-size: 13px; line-height: 1.9; }
.subpage-section-dark .subpage-card ul { color: #aab8cc; }
.subpage-card li::marker { color: var(--orange); }
.subpage-card a { display: inline-flex; margin-top: 20px; color: #a76028; font-size: 12px; font-weight: 700; }
.subpage-card a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 4px; }
.subpage-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 16px; align-items: start; }
.subpage-detail { padding: 34px 32px; border: 1px solid #e7e1d6; border-radius: 22px; background: #fff; }
.subpage-detail h3 { margin: 0 0 13px; font-size: 26px; }
.subpage-detail p { margin: 0 0 15px; color: #6f7b8b; font-size: 14px; line-height: 1.9; }
.subpage-detail p:last-child { margin-bottom: 0; }
.subpage-detail strong { color: var(--text); }
.subpage-detail-note { padding: 28px 26px; border-radius: 22px; background: var(--navy); color: #aebbd0; }
.subpage-detail-note > img { width: 100%; height: auto; aspect-ratio: 1 / 1; margin-bottom: 22px; border-radius: 16px; object-fit: contain; }
.subpage-detail-note strong { display: block; margin-bottom: 13px; color: var(--orange-light); font-size: 20px; }
.subpage-detail-note p { margin: 0; color: #aebbd0; font-size: 13px; line-height: 1.85; }
.subpage-detail-note a { display: inline-flex; margin-top: 20px; color: var(--orange-light); font-size: 12px; font-weight: 700; }
.subpage-detail-note a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.subpage-case-list { display: grid; gap: 14px; }
.subpage-case-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 24px; border: 1px solid #e7e1d6; border-radius: 18px; background: #fff; }
.subpage-case-row > span { color: #b87a43; font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.subpage-case-row h3 { margin: 0 0 4px; font-size: 20px; }
.subpage-case-row p { margin: 0; color: #778292; font-size: 12px; }
.subpage-case-row a { padding: 9px 12px; border: 1px solid #d9c8b7; border-radius: 999px; color: #a76028; font-size: 11px; font-weight: 700; white-space: nowrap; }
.subpage-case-row a:hover { border-color: var(--orange); background: #fff7ee; }
.subpage-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 27px 0; }
.subpage-metric { padding: 16px 14px; border-radius: 15px; background: #f5f1e9; }
.subpage-metric strong { display: block; color: #a76028; font-size: 21px; letter-spacing: -.03em; }
.subpage-metric span { display: block; margin-top: 4px; color: #7e8793; font-size: 11px; }
.subpage-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border-radius: 18px; background: #d9d1c4; }
.subpage-step { min-height: 160px; padding: 20px; background: #fff; }
.subpage-step span { display: block; margin-bottom: 34px; color: #b87a43; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.subpage-step h3 { margin-bottom: 7px; font-size: 17px; }
.subpage-section-dark .subpage-step h3 { color: var(--text); }
.subpage-step p { margin: 0; color: #778292; font-size: 12px; line-height: 1.7; }
.subpage-cta { padding: 58px 64px; border-radius: 26px; background: linear-gradient(125deg, #0d2142, #0b1932); color: var(--ivory); }
.subpage-cta h2 { max-width: 640px; margin-bottom: 17px; font-size: clamp(34px, 4vw, 54px); line-height: 1.1; }
.subpage-cta h2 span { color: var(--orange-light); }
.subpage-cta p { max-width: 650px; margin: 0 0 25px; color: #a9b7cc; font-size: 14px; line-height: 1.85; }
.subpage-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.subpage-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: #8b96a7; font-size: 11px; }
.subpage-meta strong { color: #4f5c70; }
.subpage-back { display: inline-flex; margin-top: 32px; color: #a76028; font-size: 12px; font-weight: 700; }
.subpage-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.subpage-qr { width: 128px; margin-top: 19px; padding: 7px; border-radius: 14px; background: #fff; }
.subpage-qr img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.subpage-qr figcaption { margin-top: 6px; color: #8491a4; font-size: 10px; text-align: center; }

.detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: 52px; align-items: center; }
.detail-hero-media { overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid rgba(156, 184, 238, .22); border-radius: 24px; background: #0a1730; }
.detail-hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; }

.service-fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #e7e1d6; border-radius: 18px; background: #fff; }
.service-fact-grid > div { min-width: 0; padding: 18px; border-right: 1px solid #e7e1d6; }
.service-fact-grid > div:last-child { border-right: 0; }
.service-fact-grid strong, .service-fact-grid span { display: block; }
.service-fact-grid strong { color: var(--text); font-size: 20px; line-height: 1.25; }
.service-fact-grid span { margin-top: 5px; color: #778292; font-size: 12px; line-height: 1.65; }
.service-problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-problem-grid > article, .service-boundary-grid > article { min-width: 0; padding: 24px; border: 1px solid #e7e1d6; border-radius: 18px; background: #fff; }
.service-problem-grid h3, .service-boundary-grid h3 { margin-bottom: 9px; color: var(--text); font-size: 19px; line-height: 1.3; }
.service-problem-grid p, .service-boundary-grid p { margin: 0; color: #6f7b8b; font-size: 13px; line-height: 1.8; }
.service-process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 18px; background: rgba(142, 169, 217, .25); }
.service-process > article { min-width: 0; min-height: 150px; padding: 20px; background: #0d2142; }
.service-process > article > span { display: block; margin-bottom: 26px; color: var(--orange-light); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.service-process h3 { margin-bottom: 7px; color: var(--ivory); font-size: 17px; line-height: 1.35; }
.service-process p { margin: 0; color: #aab8cc; font-size: 12px; line-height: 1.75; }
.service-boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.case-reading-boundary { padding: 20px 24px; border-left: 4px solid var(--orange); border-radius: 0 16px 16px 0; background: #efe9de; color: #6f604f; font-size: 13px; line-height: 1.8; }
.case-reading-boundary > :last-child { margin-bottom: 0; }
.case-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-source-card { min-width: 0; padding: 24px; border: 1px solid #e7e1d6; border-radius: 18px; background: #fff; }
.case-source-card h3 { margin-bottom: 9px; color: var(--text); font-size: 19px; line-height: 1.3; }
.case-source-card p { margin: 0; color: #6f7b8b; font-size: 13px; line-height: 1.8; }
.case-source-card a { color: #a76028; text-decoration: underline; text-underline-offset: 3px; }
.case-source-card a:hover, .case-source-card a:focus-visible { color: var(--orange); }
.case-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-evidence-frame { display: flex; flex-direction: column; min-width: 0; min-height: 300px; padding: 12px; border: 1px solid rgba(142, 169, 217, .23); border-radius: 18px; background: #0d2142; }
.case-evidence-frame > a { display: grid; place-items: center; flex: 1; overflow: hidden; border-radius: 12px; background: #071226; }
.case-evidence-frame > a:focus-visible { outline: 2px solid var(--orange-light); outline-offset: -2px; }
.case-evidence-frame img { width: 100%; height: auto; max-height: 620px; display: block; object-fit: contain; }
.case-evidence-frame figcaption { padding: 10px 3px 1px; color: #9caac0; font-size: 11px; line-height: 1.6; }

@media (max-width: 800px) {
  .subpage-hero { padding: 72px 0 62px; }
  .subpage-hero-grid, .subpage-section-head, .subpage-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-hero-grid, .service-boundary-grid, .case-source-grid { grid-template-columns: 1fr; }
  .service-fact-grid { grid-template-columns: 1fr 1fr; }
  .service-process { grid-template-columns: 1fr; }
  .subpage-hero-note { max-width: 550px; }
  .subpage-section { padding: 70px 0; }
  .subpage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subpage-steps { grid-template-columns: repeat(2, 1fr); }
  .subpage-cta { padding: 43px 34px; }
}

@media (max-width: 560px) {
  .subpage-hero h1 { font-size: 42px; }
  .subpage-hero-lede { font-size: 14px; }
  .service-fact-grid, .service-problem-grid, .case-evidence-grid { grid-template-columns: 1fr; }
  .detail-hero-media { aspect-ratio: 1.15 / 1; }
  .case-evidence-frame { min-height: 0; }
  .subpage-grid, .subpage-steps { grid-template-columns: 1fr; }
  .subpage-card { padding: 24px 22px; }
  .subpage-case-row { grid-template-columns: 1fr; gap: 10px; }
  .subpage-case-row a { justify-self: start; }
  .subpage-metrics { grid-template-columns: 1fr; }
  .subpage-detail { padding: 27px 22px; }
  .subpage-cta { padding: 34px 24px; }
  .subpage-cta h2 { font-size: 36px; }
}
