/* V5 revision: image files are unchanged; fitting is presentation only. */
.top-stage{margin:32px 0 40px}.top-stage h2{font-size:clamp(18px,1.65vw,24px);line-height:1.7;margin:0 0 18px}.revision-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.revision-figure{min-width:0;margin:0;border:1px solid #293b51;background:#07111d;padding:12px}.revision-figure a{display:block}.image-frame{display:flex;align-items:center;justify-content:center;width:100%;height:260px;background:#050d16}.revision-figure img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:none}.revision-figure figcaption{padding:12px 0 0;margin:0;color:#e8eff7;line-height:1.75;font-size:15px}.revision-figure .source{font-size:11px;margin:8px 0 0;line-height:1.8}.services .service-revised{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:40px;row-gap:24px;align-items:start;padding:48px 0}.service-heading{grid-column:1/-1;margin:0!important;font-size:25px;line-height:1.6}.service-media{grid-column:1;grid-row:2;min-width:0;display:grid;gap:16px}.service-revised>.prose{grid-column:2;grid-row:2;min-width:0;margin:0;font-size:16px;line-height:2}.service-revised>.prose>p:first-child{margin-top:0}.service-01 .image-frame{height:190px}.service-02 .image-frame{height:285px}.service-03 .image-frame{height:190px}.service-03 .revision-pair{gap:16px}.service-03 .revision-figure{padding:8px}.service-03 .revision-figure figcaption{font-size:13px}.service-media>.source{margin:0}#image-viewer{overflow:auto}#image-viewer .viewer-toolbar{position:sticky;top:0;display:flex;gap:12px;flex-wrap:wrap;background:#101f31;padding-bottom:12px;z-index:1}#image-viewer button{padding:10px 16px;cursor:pointer}#image-viewer .viewer-viewport{overflow:auto;max-height:65vh}#image-viewer img{max-width:none;margin:0 auto;display:block}#image-viewer .viewer-caption{font-size:14px}.hero-revised .source{margin-top:12px}@media(min-width:701px) and (max-width:1000px){.services .service-revised{column-gap:24px}.service-revised>.prose{font-size:14px}.service-01 .image-frame{height:180px}.service-03 .image-frame{height:145px}.revision-figure{padding:8px}.service-heading{font-size:23px}}@media(max-width:700px){.revision-pair{grid-template-columns:1fr;gap:16px}.top-stage{margin:28px 0}.image-frame{height:210px}.services .service-revised{grid-template-columns:minmax(0,1fr);row-gap:20px;padding:36px 0}.service-heading{font-size:22px}.service-media{grid-column:1;grid-row:2}.service-revised>.prose{grid-column:1;grid-row:3;font-size:15px}.service-01 .image-frame,.service-03 .image-frame{height:200px}.service-02 .image-frame{height:230px}.revision-figure figcaption{font-size:14px}.service-03 .revision-figure figcaption{font-size:14px}.hero-revised h1{font-size:28px}}

/* V5 図版確認用：原図の比率・色を保ち、表示枠の余白でそろえる。 */
.top-stage .image-frame,
.service-revised .image-frame,
.depth-section .enlarge {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #050d16;
}
.top-stage .image-frame { max-height: 310px; }
.service-01 .image-frame { max-height: 205px; }
.service-02 .image-frame { aspect-ratio: 3864 / 2706; }
.revision-figure .image-frame img,
.depth-section .enlarge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.service-media { grid-template-columns: minmax(0, 1fr); }
.revision-figure a[data-zoom], .depth-section .enlarge { cursor: zoom-in; }
.revision-figure figcaption, .depth-section .result-figure figcaption {
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  text-align: center;
  line-height: 1.6;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
:is(.revision-pair, .depth-section .results-grid) figure figcaption { min-height: 3.2em; }
@media (max-width: 700px) {
  :is(.revision-pair, .depth-section .results-grid) figure figcaption { min-height: 1.6em; }
}
#image-viewer .viewer-toolbar { gap: 6px; }
#image-viewer .viewer-toolbar button[aria-pressed="true"] {
  background: #c5e3ff;
  color: #0c2135;
}
#image-viewer .viewer-viewport {
  max-height: min(60vh, 680px);
  max-height: min(60dvh, 680px);
  overscroll-behavior: contain;
  background: #050d16;
}
#image-viewer .original-link { display: inline-block; margin-top: 8px; }
#image-viewer img { object-fit: contain; }

/* V5.1: service inquiry CTA, independent of original asset styling. */
.service-inquiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 26px 30px;
  border: 1px solid #304b64;
  background: #102238;
}
.service-inquiry > div { min-width: 0; }
.service-inquiry h3 { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.6; margin: 0 0 9px; }
.service-inquiry p { font-size: 14px; line-height: 1.85; color: #cfdeee; margin: 0; }
.service-inquiry .button { flex: none; text-align: center; white-space: nowrap; }
@media (max-width: 700px) {
  .service-inquiry { flex-direction: column; align-items: stretch; padding: 22px 18px; gap: 18px; }
  .service-inquiry .button { white-space: normal; }
}

/* V5.3: official source and research evidence links, without changing original images. */
.evidence-source {
  margin: 20px 0 8px;
  padding: 18px 20px;
  border-left: 2px solid #779dc3;
  background: #102236;
}
.evidence-source > p { font-size: 12px; line-height: 1.9; margin: 0 0 8px; color: #d1e0ee; }
.evidence-source .source { color: #b0c2d4; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 12px 0; }
.evidence-links a { font-size: 13px; color: #bddfff; text-decoration: underline; text-underline-offset: 3px; }
.evidence-links a:hover,.evidence-links a:focus-visible { color: #fff; }
.research-evidence { margin-top: 18px; padding-top: 15px; border-top: 1px solid #38516d; }
.research-evidence p { font-size: 13px; line-height: 1.9; }
.research-evidence .source { font-size: 12px; }
#research-view2026 { scroll-margin-top: 100px; }
@media (max-width: 700px) {
  .evidence-source { padding: 15px; }
  .evidence-links { flex-direction: column; align-items: flex-start; gap: 11px; }
}

/* V5.5: Image-processing overview until a separately approved illustrative still is available. */
.processing-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(155deg, #19334b 0%, #0b1929 75%);
  border: 1px solid #345068;
  color: #e9f2fc;
}
.processing-panel-label { font-size: 11px; letter-spacing: .16em; color: #90bce9; }
.processing-panel h4 { font-size: clamp(19px, 2vw, 27px); line-height: 1.45; margin: 15px 0 12px; }
.processing-panel > p { margin: 0; line-height: 1.8; font-size: 14px; color: #d4e0ed; }
.processing-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.processing-topics span { border: 1px solid #57718b; padding: 6px 10px; font-size: 12px; color: #e2efff; }
.processing-panel .processing-panel-note { font-size: 12px; color: #bfd0e2; }
.official-video-reference { margin: 0 0 18px; min-width: 0; }
.official-video-reference video {
  display: block;
  width: 100%;
  height: auto;
  background: #080f16;
}
.official-video-reference figcaption { margin: 8px 0 0; text-align: center; line-height: 1.6; }
.official-video-reference .source { margin: 6px 0 0; font-size: 12px; line-height: 1.7; text-align: center; }
.official-video-reference a { color: #b5dbff; text-decoration: underline; text-underline-offset: 3px; }
.official-video-reference a:hover, .official-video-reference a:focus-visible { color: white; }
@media(max-width:700px){.processing-panel { min-height: 245px; } }

/* The photograph illustrates the setting. All labels remain selectable HTML. */
.processing-panel {
  position: relative;
  background:
    linear-gradient(90deg, rgba(5, 18, 31, .94), rgba(5, 18, 31, .79) 45%, rgba(5, 18, 31, .18)),
    #0b1929 url("v5-7/industrial-fog-photo.webp") right 60% / cover no-repeat;
}
.processing-topics span { background: rgba(5, 18, 31, .72); }
.processing-panel .processing-panel-note { max-width: 36ch; }
.processing-panel .processing-panel-credit {
  align-self: flex-end;
  margin: 12px 0 0;
  padding: 2px 7px;
  border: 1px solid rgba(168, 192, 209, .42);
  font-size: 11px;
  line-height: 1.5;
  color: #e5eff9;
  background: rgba(5, 15, 27, .85);
}

/* V5.7: unified visual rhythm. Never crop the source file; zoom shows originals. */
.top-stage .image-frame,
.service-01 .image-frame,
.depth-section .enlarge {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  overflow: hidden;
  background: #050d16;
}
/* Sparse point clouds and wide cave overview must remain fully visible. */
.top-stage .revision-figure img,
.service-01 .revision-figure img,
.depth-section .result-figure img {
  object-fit: contain;
  object-position: center;
}
.top-stage .revision-figure,
.service-01 .revision-figure,
.depth-section .result-figure {
  background: #07111d;
}
.top-stage .revision-pair,
.depth-section .results-grid {
  align-items: stretch;
}
.top-stage .revision-pair > figure,
.depth-section .results-grid > figure {
  display: flex;
  flex-direction: column;
}
/* Match the source border so the extra space in the 16:9 frame blends in. */
.service-01 .reconstruction-original .image-frame { background: #1e1e1e; }
/* The impressionistic backdrop has its own frame; live accessible text remains HTML. */
.service-02 .processing-panel {
  aspect-ratio: 16 / 9;
  min-height: 310px;
  width: 100%;
}
/* Keep official 3DGS video's entire contents intact in a consistent ratio frame. */
.service-03 .official-video-reference video {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #050d16;
}
@media (max-width: 700px) {
  .top-stage .image-frame,
  .service-01 .image-frame,
  .depth-section .enlarge {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
  .service-02 .processing-panel {
    aspect-ratio: auto;
    min-height: 245px;
  }
}

/* V5.8: Service 01 is presented as a designed panel like Service 02.
   Source 3F geometry is never cropped, retouched or color-adjusted. */
.service-01 .reconstruction-feature {
  border-color: #345068;
  background: linear-gradient(160deg, #132b40, #071522 72%);
}
.service-01 .reconstruction-feature .feature-eyebrow {
  margin: 3px 0 12px;
  color: #90bce9;
  font-size: 11px;
  letter-spacing: .16em;
}
.service-01 .reconstruction-feature .image-frame {
  background: #1e1e1e;
}
.service-01 .reconstruction-feature .image-frame img {
  object-fit: contain;
  object-position: center;
  filter: none;
}
.service-01 .reconstruction-feature figcaption {
  font-weight: 600;
  text-align: center;
}
/* The official video's frame remains unmodified; the surrounding card echoes Service 02. */
.service-03 .official-video-reference {
  padding: 12px;
  background: linear-gradient(145deg, #102638 0%, #071521 100%);
  border: 1px solid #345068;
}
.service-03 .official-video-reference video {
  object-fit: contain;
  background: #050d16;
}
.service-03 .official-video-reference figcaption {
  padding-top: 6px;
  color: #e9f2fc;
  font-weight: 600;
}
@media (max-width: 700px) {
  .service-03 .official-video-reference { padding: 8px; }
}

.video-stage { position: relative; }
.poster-play:not([hidden]) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.poster-play::before,
.poster-play::after {
  content: "";
  grid-area: 1 / 1;
  place-self: center;
}
.poster-play::before {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(5, 15, 24, .78);
}
.poster-play::after {
  margin-left: 4px;
  border-block: 9px solid transparent;
  border-left: 15px solid white;
}
.poster-play:focus-visible { outline: 3px solid white; outline-offset: -4px; }

/* V5.9: compact use-case photographs; illustration cards only, never crop SfM evidence. */
.applications .application-grid { align-items: stretch; }
.applications .application-card > img,
.applications .application-card > img.damaged-structure {
  display: block;
  width: 100%;
  height: 172px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 50%;
}
.applications .application-card > img.damaged-structure { object-position: 50% 48%; }
.applications .application-card > div { padding: 18px 20px 20px; }
.applications .application-card h3 { margin-bottom: 7px; line-height: 1.5; }
.applications .applications-intro { margin-bottom: 22px; }
@media (max-width: 700px) {
  .services .service-revised { padding-block: 28px; row-gap: 16px; }
  .applications.section { padding-block: 42px; }
  .applications .application-grid { gap: 12px; }
  .applications .application-card > img,
  .applications .application-card > img.damaged-structure {
    height: 132px;
  }
  .applications .application-card > div { padding: 13px 16px 16px; }
  .applications .application-card h3 { font-size: 17px; margin-bottom: 4px; }
  .applications .application-card p { font-size: 13px; line-height: 1.65; }
  .applications .applications-intro { margin-bottom: 17px; }
  .service-inquiry { margin-top: 14px; }
}

/* V5.11: Concept is a compact introduction within TOP, not a second hero. */
.hero-v5 .hero-concept {
  max-width: 850px;
  margin: 4px 0 23px;
  color: #d2e0ef;
  font-size: clamp(14px, 1.12vw, 16px);
  line-height: 1.9;
}
.services .service-section-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 4px;
  padding: 0;
}
.services .service-section-divider::after {
  content: "";
  display: block;
  flex: 1;
  height: 1px;
  background: #304157;
}
.services .service-section-title {
  flex: none;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .18em;
  color: #90bce9;
}
@media (max-width: 700px) {
  .hero-v5 .hero-concept { margin: 2px 0 17px; line-height: 1.8; font-size: 14px; }
  .services .service-section-divider { margin-bottom: 0; gap: 13px; }
}

/* V5.13: concise business evidence and image-free use cases */
.research-results {
  margin: 18px 0 22px;
  padding: clamp(18px,2.4vw,28px);
  background: #0d2236;
  border: 1px solid #30465d;
  border-radius: 8px;
  line-height: 1.85;
}
.research-results h3 { margin: 0 0 10px; font-size: clamp(18px,1.55vw,23px); line-height: 1.5; }
.research-results p { margin: 8px 0 12px; }
.research-results ul { margin: 12px 0; padding-left: 1.4em; }
.research-results li { margin: 7px 0; }
.research-work-label { font-weight: 600; }
.services .measurement-short { margin: 12px 0 18px; font-size: 14px; color: #c2d2e0; }
.applications-compact .application-fields {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 20px 0 0; padding: 0;
}
.applications-compact .application-fields li {
  border: 1px solid #31455b;
  background: #102338;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1.6;
}
.contact-conditions { margin: 32px 0; border-top: 1px solid #304157; padding-top: 23px; }
.contact-conditions h2 { margin-top: 0; }
@media(max-width:700px){
  .research-results { margin: 12px 0 17px; padding: 17px; }
  .research-results li { margin: 9px 0; }
  .applications-compact .application-fields { gap: 8px; }
  .applications-compact .application-fields li { padding: 8px 11px; font-size: 13px; }
}

/* V5.14: small appreciation thumbnails after research results, not repeated in About Us. */
.research-appreciation {
  margin: -8px 0 22px;
  padding: 16px clamp(18px,2.4vw,28px) 18px;
  border: 1px solid #30465d;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #0b1c2e;
}
.research-appreciation-head .eyebrow { margin: 0 0 7px; font-size: 11px; }
.research-appreciation-head h4 { margin: 0 0 8px; font-size: clamp(16px,1.4vw,19px); line-height: 1.5; }
.research-appreciation-head > p:last-child { max-width: 850px; margin: 0 0 15px; font-size: 13px; color: #c6d5e3; line-height: 1.8; }
.appreciation-thumbnails { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.appreciation-thumbnail {
  display: flex; align-items: center; gap: 14px;
  min-width: 0; padding: 10px;
  background: #10263a; border: 1px solid #2d4760; border-radius: 6px;
  color: inherit; text-decoration: none;
}
.appreciation-thumbnail:hover, .appreciation-thumbnail:focus-visible { border-color: #90bce9; }
.appreciation-thumbnail img {
  display: block; width: 78px; height: 94px; flex: none;
  object-fit: contain; background: #07111d; border: 1px solid #314157;
}
.appreciation-thumbnail span { display: grid; gap: 8px; min-width: 0; }
.appreciation-thumbnail strong { font-size: 15px; line-height: 1.5; }
.appreciation-thumbnail small { font-size: 13px; color: #a9d3f6; line-height: 1.5; }
@media(max-width:700px){
  .research-appreciation { margin: -4px 0 17px; padding: 14px 16px 17px; }
  .appreciation-thumbnails { grid-template-columns: 1fr; gap: 9px; }
  .appreciation-thumbnail img { width: 63px; height: 80px; }
  .appreciation-thumbnail strong { font-size: 14px; }
}

/* V5.15: a clear first-contact path before the case-study imagery */
.hero-v5 .hero-entry-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
  margin: 0 0 26px;
}
.hero-v5 .hero-entry-actions .button { display: inline-flex; align-items: center; justify-content: center; }
.hero-v5 .hero-work-link { color: #b9d8f1; font-size: 14px; line-height: 1.6; }
.hero-v5 .hero-work-link:hover, .hero-v5 .hero-work-link:focus-visible { color: #fff; }
.research-results .research-result-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 23px;
  margin: 16px 0 0;
}
.research-results .research-result-links .text-link { font-size: 14px; }
@media(max-width:700px) {
  .hero-v5 .hero-entry-actions { gap: 12px; margin: 0 0 18px; }
  .hero-v5 .hero-entry-actions .button { width: 100%; text-align: center; }
  .hero-v5 .hero-work-link { font-size: 13px; }
  .research-results .research-result-links { gap: 12px; }
}

/* V5.16: use cases become part of the existing Service consultation CTA. */
.services .service-inquiry-integrated {
  flex-direction: column;
  align-items: stretch;
  gap: 17px;
}
.services .service-inquiry-integrated .service-inquiry-content { width: 100%; }
.services .service-inquiry-integrated .service-inquiry-intro { margin: 10px 0 15px; }
.services .service-inquiry-integrated .service-fields-label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: #a9d3f6; margin-bottom: 9px;
}
.services .service-inquiry-integrated .application-fields {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 16px; padding: 0;
}
.services .service-inquiry-integrated .application-fields li {
  border: 1px solid #304b64; background: #0b1c2e;
  padding: 6px 12px; font-size: 13px; line-height: 1.6;
  border-radius: 4px;
}
.services .service-inquiry-integrated .service-inquiry-prompt { margin: 0; }
.services .service-inquiry-integrated > .button { align-self: flex-start; }
.about .company-computing { margin-top: 15px; }
@media (max-width: 700px) {
  .services .service-inquiry-integrated { gap: 14px; }
  .services .service-inquiry-integrated .application-fields { gap: 7px; margin-bottom: 14px; }
  .services .service-inquiry-integrated .application-fields li { font-size: 12px; padding: 6px 9px; }
  .services .service-inquiry-integrated > .button { align-self: stretch; }
}

/* V5.17: mobile-only brand copy line break at the Japanese comma */
.hero-v5 .hero-mobile-break { display: none; }
@media (max-width: 700px) {
  .hero-v5 .hero-mobile-break { display: block; }
  .hero-v5 .hero-title-ending { white-space: nowrap; }
}
