/* 2026-10-13: repair layout in the three requested pages, including WordPress wpautop output. */
:is(.bs-services,.bs-company,.bs-proof) p:empty { display:none; }
.bs-services :is(.svc-container,.svc-split,.svc-lineup-heading,.svc-lineup-nav,.svc-ai-feature__cards,.svc-ai-feature__card,.svc-ai-feature__routes,.svc-focus-grid,.svc-focus-card,.svc-card-links,.svc-detail-grid,.svc-story-guide,.svc-need-grid,.svc-proof-layout,.svc-proof-survey,.svc-proof-clients,.svc-proof-award,.svc-proof-logo-row,.svc-catalog-service,.svc-industry-grid,.svc-cta-row) > br,
.bs-company :is(.company-container,.company-hero__layout,.company-split,.company-custom-list,.company-group-links,.company-group-card,.company-trust-grid,.company-domain-grid,.company-proof-grid,.company-future-grid,.company-region-grid,.company-service-area,.company-service-area__grid,.company-base-grid,.company-cta-row,.company-link-row,.company-representative-layout,.company-profile-layout,.company-pmvv-grid,.company-custom-list > div) > br,
.bs-proof :is(.proof-container,.proof-split,.proof-visual-library,.proof-visual-library > a,.proof-summary-grid,.proof-card-grid,.proof-media-grid,.proof-award-grid,.proof-cta-row,.proof-logo-group) > br { display:none; }
:is(.bs-services,.bs-company,.bs-proof) :is(article,figure,nav,section,div) { min-width:0; }
.bs-services :is(.svc-offer-media,.svc-product-media,.svc-story-mascot),
.bs-company .company-group-logo { margin:0; }
.bs-services :is(.svc-offer-media,.svc-product-media) { line-height:0; }
.bs-services .svc-story-mascot { width:110px; }
.bs-services .svc-story-mascot img { display:block; width:100%; height:auto; }
.bs-services .svc-story-panel { width:100%; }
.bs-services .svc-story-guide { grid-template-columns:110px minmax(0,1fr); }
.bs-services .svc-ai-feature__cards { align-items:stretch; }
.bs-services .svc-ai-feature__card > h3 { min-height:2.65em; }
.bs-services .svc-ai-feature__card > p:has(> .svc-ai-feature__primary),
.bs-services .svc-ai-feature__card > p:has(> .svc-ai-feature__program) { margin:0; }
.bs-services .svc-ai-feature__primary { margin-top:22px; }
.bs-services .svc-ai-feature__card > .svc-ai-feature__learning { margin-bottom:0; }
.bs-services .svc-ai-feature > div[aria-label="AI経営改革の支援実績"] { margin:24px 0 0; padding:22px 24px; border:1px solid #d9e5ec; border-left:4px solid #67a788; border-radius:14px; background:#f2f8f5; }
.bs-services .svc-ai-feature > div[aria-label="AI経営改革の支援実績"] h4 { margin:0 0 12px; color:#163e36; font-size:1.08rem; line-height:1.65; }
.bs-services .svc-ai-feature > div[aria-label="AI経営改革の支援実績"] p:last-child { margin-bottom:0; }
.bs-services .svc-focus-card .svc-product-media img { display:block; }
.bs-services .svc-focus-card .svc-product-body { display:flex; flex-direction:column; }
.bs-services .svc-focus-card .svc-product-body > p { margin-bottom:18px; }
.bs-services .svc-focus-card .svc-award-label { margin-top:auto; }
.bs-services .svc-focus-card .svc-card-links { display:grid; grid-template-columns:1fr; align-content:start; gap:10px; }
.bs-services .svc-focus-card .svc-card-links > p { margin:0; }
.bs-services .svc-detail-grid article { display:flex; flex-direction:column; }
.bs-services .svc-detail-grid article h4 { min-height:3.2em; }
.bs-services .svc-detail-grid article > :last-child { margin-top:auto; }
.bs-services .svc-need-grid article { display:flex; flex-direction:column; }
.bs-services .svc-need-grid article > span { align-self:flex-start; }
.bs-services .svc-need-grid h3 { min-height:2.9em; }
.bs-services .svc-need-grid article > p { flex:1; }
.bs-services .svc-need-grid article > ul { margin-top:16px; }

/* Number and text occupy exactly two columns; the body can never fall into the number track. */
.bs-company .company-custom-list > div { grid-template-columns:32px minmax(0,1fr); align-items:start; gap:14px; padding:18px 20px; }
.bs-company .company-custom-number { grid-column:1; color:#e8c888; font-size:.82rem; font-weight:800; line-height:1.9; }
.bs-company .company-custom-list > div > p:not(:empty) { grid-column:2; grid-row:1; width:auto; margin:0; }
.bs-company .company-values-grid > li { border-top:4px solid #4e7fc9; }
.bs-company .company-values-grid > li:nth-child(5n+2) { border-top-color:#ca685e; }
.bs-company .company-values-grid > li:nth-child(5n+3) { border-top-color:#cda345; }
.bs-company .company-values-grid > li:nth-child(5n+4) { border-top-color:#5a9a79; }
.bs-company .company-values-grid > li:nth-child(5n) { border-top-color:#7f78b0; }
.bs-company .company-group-links { align-items:stretch; gap:24px; }
.bs-company .company-group-card { display:grid; grid-template-rows:112px auto 1fr auto; align-items:start; align-content:start; gap:18px; padding:28px; border:1px solid #243d78; border-radius:20px; background:linear-gradient(135deg,#061637,#122d5e); box-shadow:0 12px 28px #0a22571a; }
.bs-company .company-group-links .company-group-logo { display:flex; align-items:center; width:100%; height:112px; }
.bs-company .company-group-links .company-group-logo img { display:block; width:auto; max-width:100%; height:76px; object-fit:contain; object-position:left center; }
.bs-company .company-group-card:nth-of-type(2) .company-group-logo img { height:106px; }
.bs-company .company-group-links h3 { margin:0; color:#fff; font-size:1.12rem; line-height:1.6; }
.bs-company .company-group-links .company-group-description { margin:0; color:#e6edf9; font-size:.9rem; line-height:1.85; }
.bs-company .company-domain-grid article { display:flex; flex-direction:column; }
.bs-company .company-domain-grid article > a { margin-top:auto; }
.bs-company .company-domain-grid article > p:has(> a):last-child { margin-top:auto; margin-bottom:0; }

/* Four real project records use readable columns and the same unaltered logo presentation. */
.bs-proof .proof-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.bs-proof .proof-feature-card { display:flex; flex-direction:column; padding:28px; min-height:0; }
.bs-proof .proof-project-logo { display:flex; align-items:center; justify-content:flex-start; height:100px; margin:0 0 22px; padding:14px 18px; border:1px solid #e0e8ef; border-radius:12px; background:#fff; }
.bs-proof .proof-project-logo img { display:block; width:auto; max-width:100%; height:68px; max-height:68px; object-fit:contain; object-position:left center; }
.bs-proof .proof-feature-card > .proof-card-label { align-self:flex-start; height:auto; min-height:28px; margin-bottom:14px; }
.bs-proof .proof-feature-card > h3 { margin-bottom:18px; line-height:1.65; }
.bs-proof .proof-feature-card > a:last-child,
.bs-proof .proof-feature-card > p:has(> a):last-child { margin-top:auto; margin-bottom:0; padding-top:16px; }
.bs-proof .proof-visual-library { gap:18px; }
.bs-proof .proof-summary-grid article { padding:24px; }
.bs-proof .proof-media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.bs-proof .proof-media-grid article { display:flex; flex-direction:column; min-height:0; }
.bs-proof .proof-media-grid article > a:last-child,
.bs-proof .proof-media-grid article > p:has(> a):last-child { margin-top:auto; margin-bottom:0; padding-top:12px; }
.bs-proof .proof-media-grid :is(.proof-card-logo,.proof-evidence-media) { min-height:170px; height:170px; }
.bs-proof .proof-media-grid .proof-evidence-media img { height:126px; }
.bs-proof .proof-media-grid .proof-evidence-media figcaption { font-size:.74rem; }
.bs-proof .proof-section--final .proof-btn--gold,
.bs-proof .proof-section--final .proof-btn--gold.bsx-action-control { color:#49350c !important; border:1px solid #c49a44 !important; background:linear-gradient(120deg,#fff5d0 0%,#f5d687 45%,#dfb35b 100%) !important; box-shadow:0 5px 14px #83621c24,inset 0 1px 0 #ffffffc9 !important; }
.bs-proof .proof-btn--gold:focus-visible { outline:3px solid #165ec3; outline-offset:4px; }

@media(min-width:821px) {
  .bs-services .svc-focus-card { display:grid !important; grid-row:span 6; grid-template-rows:subgrid; row-gap:16px; }
  .bs-services .svc-focus-card > :is(.svc-product-media,.svc-status,h3,.svc-subtitle,.svc-product-body,.svc-card-links) { margin-top:0; margin-bottom:0; }
  .bs-services .svc-focus-card .svc-product-image { margin:0; }
  .bs-services .svc-focus-card .svc-status { justify-self:start; align-self:start; }
  .bs-services .svc-need-grid article { display:grid; grid-row:span 4; grid-template-rows:subgrid; row-gap:14px; }
  .bs-services .svc-need-grid article > :is(span,h3,p,ul) { margin:0; min-height:0; }
  .bs-services .svc-need-grid article > span { justify-self:start; }
  .bs-company .company-domain-grid article > h3 { min-height:2.9em; }
  .bs-proof .proof-feature-card > h3 { min-height:3.3em; }
}
@media(max-width:820px) {
  .bs-services .svc-story-mascot { width:100px; }
  .bs-services .svc-story-guide { grid-template-columns:100px minmax(0,1fr); max-width:none; }
  .bs-services .svc-focus-card .svc-product-body { flex:1; }
  .bs-services .svc-focus-card .svc-card-links { margin-top:20px; }
  .bs-company .company-split--custom { grid-template-columns:minmax(0,1fr); }
  .bs-company .company-group-links { gap:16px; }
  .bs-company .company-group-card { padding:22px; }
}
@media(max-width:640px) {
  .bs-services .svc-story-guide { grid-template-columns:64px minmax(0,1fr); gap:14px; }
  .bs-services .svc-story-mascot { width:64px; }
  .bs-services .svc-story-panel { padding:18px; }
  .bs-services .svc-ai-feature__card > h3 { min-height:0; }
  .bs-services .svc-ai-feature > div[aria-label="AI経営改革の支援実績"] { padding:20px; }
  .bs-services :is(.svc-detail-grid article h4,.svc-need-grid h3) { min-height:0; }
  .bs-company .company-group-links { grid-template-columns:1fr; }
  .bs-company .company-custom-list > div { padding:16px; }
  .bs-proof :is(.proof-card-grid,.proof-media-grid) { grid-template-columns:1fr; gap:18px; }
  .bs-proof .proof-feature-card { padding:22px; }
  .bs-proof .proof-project-logo { height:92px; }
}

.bs-company .company-group-links .company-group-site { margin:0; }
.bs-company .company-group-links .company-group-site a { display:inline-flex; flex-direction:row; align-items:center; gap:10px; padding:0 0 4px; color:#f5d894; background:none; border:0; border-radius:0; border-bottom:1px solid #bea46e; font-size:.88rem; line-height:1.6; text-decoration:none; box-shadow:none; }

.bs-company .company-group-site a > span { display:inline; color:inherit; font-size:inherit; line-height:inherit; }
.bs-company #company-custom-title { text-wrap:balance; }
/* Generated media controls overlay the image rather than adding a card row. */
.bs-services :is(.svc-product-media,.svc-offer-media) { position:relative; }
.bs-services :is(.svc-product-media,.svc-offer-media) > .bsx-media-expand { position:absolute !important; top:12px; right:12px; }
.bs-services .svc-story-mascot > .bsx-media-expand { display:none !important; }

/* wpautop can leave a trailing line break inside a final CTA paragraph. */
.bs-company .company-domain-grid article > p:has(> a):last-child > br:last-child,
.bs-proof .proof-feature-card > p:has(> a):last-child > br:last-child,
.bs-proof .proof-media-grid article > p:has(> a):last-child > br:last-child { display:none; }

/* 2026-10-14: product orientation and comparable card rows, including wpautop wrappers. */
.bs-services :is(.svc-lineup-item,.svc-ai-feature__action,.svc-ai-feature__next,.svc-ai-feature__route) > p,
.bs-proof :is(.proof-visual-card,.proof-project-cta) > p { margin:0; }
.bs-services :is(.svc-lineup-item,.svc-ai-feature__action,.svc-ai-feature__next,.svc-ai-feature__route,.svc-proof-award-visual) > br,
.bs-proof :is(.proof-visual-card,.proof-project-cta) > br,
.bs-services :is(.svc-lineup-item,.svc-ai-feature__action,.svc-ai-feature__next,.svc-ai-feature__route) > p > br:last-child,
.bs-proof :is(.proof-visual-card,.proof-project-cta) > p > br:last-child { display:none; }
.bs-services .svc-lineup-heading h2 { max-width:24em; text-wrap:balance; }
.bs-services .svc-lineup-intro { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 22px; margin:0 0 18px; }
.bs-services .svc-lineup-intro strong { color:#16345e; font-size:1rem; }
.bs-services .svc-lineup-intro > span { color:#53667d; font-size:.88rem; }
.bs-services .svc-lineup-nav { align-items:stretch; }
.bs-services .svc-lineup-item > p { height:100%; }
.bs-services .svc-lineup-item a { display:flex; flex-direction:column; gap:8px; height:100%; min-width:0; padding:22px 18px; border:1px solid #d9e3f2; border-top:4px solid #285bc9; border-radius:14px; background:#f0f5ff; color:#142e59; text-decoration:none; }
.bs-services .svc-lineup-item:nth-of-type(2) a { background:#edf8f3; border-top-color:#278263; }
.bs-services .svc-lineup-item:nth-of-type(3) a { background:#fff8e5; border-top-color:#c39012; }
.bs-services .svc-lineup-item:nth-of-type(4) a { background:#fff2ee; border-top-color:#c45549; }
.bs-services .svc-lineup-item a > span { font-size:.76rem; color:#4b5e77; }
.bs-services .svc-lineup-item a > .svc-lineup-number { font-size:1.7rem; font-weight:800; line-height:1.1; color:#284f85; }
.bs-services .svc-lineup-item a:hover { outline:2px solid #7596c2; outline-offset:2px; }
.bs-services .svc-lineup-item a:focus-visible { outline:3px solid #165ec3; outline-offset:4px; }
.bs-services .svc-product-group { display:inline-block; margin-right:10px; color:#657e9d; font-size:.68em; vertical-align:baseline; }
.bs-services :is(#svc-ai-transformation,#svc-product-lask,#svc-product-xr,#svc-product-ai) { scroll-margin-top:110px; }
.bs-services .svc-ai-feature__action .svc-ai-feature__primary,
.bs-services .svc-ai-feature__next :is(.svc-ai-feature__program,.svc-ai-feature__learning) { margin:0; }
.bs-services .svc-ai-feature__next > p,
.bs-services .svc-ai-feature__next :is(.svc-ai-feature__program,.svc-ai-feature__learning) { height:100%; }
.bs-services .svc-ai-feature__route { min-width:0; }
.bs-services .svc-ai-feature__route > p { height:100%; }
.bs-services .svc-ai-feature__route a { display:flex; flex-direction:column; min-width:0; height:100%; padding:19px 18px; border:1px solid #dce5ef; border-radius:14px; background:#f2f7fc; color:#000066; text-decoration:none; }
.bs-services .svc-ai-feature__route:nth-of-type(2) a { background:#fff9e8; border-color:#eee4c9; }
.bs-services .svc-ai-feature__route:nth-of-type(3) a { background:#eff7f1; border-color:#d7e8dc; }
.bs-services .svc-ai-feature__route a > span { display:block; color:#53627a; font-size:.76rem; line-height:1.8; }
.bs-services .svc-ai-feature__route a:hover { border-color:#879fbc; }
.bs-services .svc-story-guide { width:100%; min-width:0; }
.bs-services .svc-story-guide > .svc-story-mascot { grid-column:1; grid-row:1; margin:0; }
.bs-services .svc-story-guide > .svc-story-panel { grid-column:2; grid-row:1; min-width:0; max-width:none; }
.bs-services .svc-proof-award { grid-template-columns:minmax(100px,150px) minmax(0,1fr); }
.bs-services .svc-proof-award-visual { grid-column:1; grid-row:1; width:100%; margin:0; }
.bs-services .svc-proof-award-visual > p { margin:0; }
.bs-services .svc-proof-award-logo { display:block; width:100%; height:auto; margin:0; }
.bs-services .svc-proof-award-copy { grid-column:2; grid-row:1; min-width:0; }
.bs-services .svc-proof-award-copy h3 { margin:0; font-size:1rem; line-height:1.7; }
.bs-services .svc-section--final .svc-btn--gold,
.bs-services .svc-section--final .svc-btn--gold.bsx-action-control { color:#49350c !important; border:1px solid #c49a44 !important; background:linear-gradient(120deg,#fff5d0 0%,#f5d687 45%,#dfb35b 100%) !important; box-shadow:0 5px 14px #83621c24,inset 0 1px 0 #ffffffc9 !important; }
.bs-services .svc-btn--gold:focus-visible { outline:3px solid #165ec3; outline-offset:4px; }
.bs-company .company-custom-list { width:100%; min-width:0; }
.bs-company .company-group-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
.bs-company .company-group-card > .company-group-logo { grid-row:1; }
.bs-company .company-group-card > h3 { grid-row:2; }
.bs-company .company-group-card > .company-group-description { grid-row:3; }
.bs-company .company-group-card > .company-group-site { grid-row:4; }
.bs-proof .proof-visual-library { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.bs-proof .proof-visual-library .proof-visual-card { width:100%; height:auto; min-height:0; margin:0; }
.bs-proof .proof-visual-card a { display:block; width:100%; }
.bs-proof .proof-visual-library .proof-visual-card img { width:100%; height:auto; min-height:0; aspect-ratio:16/9; object-fit:cover; }
.bs-proof .proof-visual-card figcaption { pointer-events:none; }
.bs-proof .proof-visual-card a:focus-visible { outline:4px solid #edc66a; outline-offset:-5px; }
.bs-proof .proof-project-cta a { display:inline-block; font-weight:800; text-underline-offset:4px; }

@media(min-width:641px) {
  .bs-services .svc-ai-feature__card { display:grid; grid-row:span 7; grid-template-rows:subgrid; row-gap:14px; }
  .bs-services .svc-ai-feature__card > :is(figure,p,h3,div) { margin:0; min-height:0; }
  .bs-services .svc-ai-feature__card > .svc-offer-media { grid-row:1; }
  .bs-services .svc-ai-feature__card > .svc-ai-feature__label { grid-row:2; }
  .bs-services .svc-ai-feature__card > h3 { grid-row:3; }
  .bs-services .svc-ai-feature__card > .svc-ai-feature__english { grid-row:4; }
  .bs-services .svc-ai-feature__card > .svc-ai-feature__description { grid-row:5; }
  .bs-services .svc-ai-feature__card > .svc-ai-feature__action { grid-row:6; }
  .bs-services .svc-ai-feature__card > .svc-ai-feature__next { grid-row:7; }
  .bs-services .svc-ai-feature__card .svc-offer-image { margin:0; }
  .bs-services .svc-ai-feature__routes { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .bs-proof .proof-feature-card { display:grid; grid-row:span 9; grid-template-rows:subgrid; row-gap:16px; align-content:start; }
  .bs-proof .proof-feature-card > :is(figure,p,h3,ul,div) { margin:0; }
  .bs-proof .proof-feature-card > .proof-project-logo { grid-row:1; }
  .bs-proof .proof-feature-card > .proof-card-label { grid-row:2; justify-self:start; }
  .bs-proof .proof-feature-card > h3 { grid-row:3; min-height:0; }
  .bs-proof .proof-feature-card > .proof-project-intro { grid-row:4; }
  .bs-proof .proof-feature-card > .proof-project-facts { display:grid; grid-row:5 / span 3; grid-template-rows:subgrid; row-gap:8px; }
  .bs-proof .proof-project-facts > li { margin:0; }
  .bs-proof .proof-feature-card > .proof-project-note { grid-row:8; }
  .bs-proof .proof-feature-card > .proof-project-cta { grid-row:9; align-self:end; }
}
@media(min-width:821px) {
  .bs-services .svc-section--story > .svc-split { grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); gap:36px; }
  .bs-company .company-split--custom { grid-template-columns:minmax(0,1fr) minmax(0,1.12fr); gap:40px; }
  .bs-company #company-custom-title { width:100%; max-width:none; font-size:clamp(1.7rem,2.65vw,2.5rem); line-height:1.5; text-wrap:wrap; }
}
@media(max-width:820px) {
  .bs-services .svc-section--story > .svc-split { gap:30px; }
}
@media(max-width:640px) {
  .bs-services .svc-lineup-item a { padding:17px 13px; }
  .bs-services .svc-lineup-item a > span:not(.svc-lineup-number) { font-size:.72rem; }
  .bs-services .svc-ai-feature__action { margin-top:20px; }
  .bs-services .svc-ai-feature__next { margin-top:16px; }
  .bs-services .svc-proof-award { grid-template-columns:100px minmax(0,1fr); gap:14px; padding:18px; }
  .bs-services .svc-proof-award-copy h3 { font-size:.88rem; }
  .bs-company .company-group-links { grid-template-columns:1fr; }
  .bs-proof .proof-visual-library { grid-template-columns:1fr; gap:16px; }
  .bs-proof .proof-feature-card > .proof-project-cta { margin-top:auto; padding-top:20px; }
}
@media(max-width:600px) {
  .bs-services .svc-proof-intro { padding-right:0; min-height:0; }
  .bs-services .svc-proof-robot { position:static; width:120px; margin:16px 0; }
}
