/* FDP Demo V23 | 2026-11-15
   Visual benchmark: approved "私たちについて" page.
   All rules are scoped to pages updated by V23. No text, images, links or form logic changes. */
body.fdp-v23 {
  --fdp23-header-side: clamp(18px, 3vw, 52px);
  --fdp23-content-side: clamp(20px, 4vw, 70px);
  --fdp23-content-width: 1220px;
  --fdp23-section-gap: clamp(78px, 7.4vw, 116px);
  overflow-x: clip;
}
body.fdp-v23 *,body.fdp-v23 *::before,body.fdp-v23 *::after{box-sizing:border-box}
/* One and the SAME header geometry, identical on home and all 33 subordinate pages. */
body.fdp-v23 .fdp-v14-header{width:100%!important;left:0!important;margin:0!important}
body.fdp-v23 .fdp-v14-header .fdp-v14-inner{
  width:calc(100% - 2 * var(--fdp23-header-side))!important;
  max-width:none!important;min-height:72px!important;
  margin-inline:auto!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:clamp(12px,1.7vw,26px)!important;
}
body.fdp-v23 .fdp-v14-header .fdp-v14-logo{
  display:block!important;flex:0 1 355px!important;
  width:auto!important;max-width:355px!important;min-width:0!important;
  margin:0!important;padding:0!important;transform:none!important;
}
body.fdp-v23 .fdp-v14-header .fdp-v14-logo img{
  display:block!important;max-width:100%!important;width:100%!important;
  height:auto!important;max-height:64px!important;object-fit:contain!important;
  object-position:left center!important;
}
body.fdp-v23 .fdp-v14-header .fdp-v14-nav{margin-left:auto!important}
/* Content width: centered columns, NOT a full-viewport stretched table or long sentence. */
body.fdp-v23:not(.fdp-v22-home) :is(.rd-main,.rd-container,.wide,main.v13-shell,.v13-main,.value-main){
  max-width:var(--fdp23-content-width)!important;
  width:min(var(--fdp23-content-width),calc(100% - 2 * var(--fdp23-content-side)))!important;
  margin-left:auto!important;margin-right:auto!important;
}
body.fdp-v23 .rd-main,body.fdp-v23 main.v13-main{
  padding:clamp(62px,6vw,95px) 0 clamp(100px,9vw,150px)!important;
}
body.fdp-v23 .rd-hero-content{
  width:min(1280px,calc(100% - 2 * var(--fdp23-content-side)))!important;
  max-width:1280px!important;
  margin:0 auto!important;padding:clamp(56px,5vw,78px) 0!important;
}
body.fdp-v23 .rd-hero{min-height:300px!important}
body.fdp-v23 .rd-breadcrumb{margin-bottom:36px!important}
body.fdp-v23 .rd-main > section + section,
body.fdp-v23 .rd-main > div + section,
body.fdp-v23 .rd-main > section + div.rd-cta{margin-top:var(--fdp23-section-gap)!important}
body.fdp-v23 .rd-section{margin-top:var(--fdp23-section-gap)!important}
body.fdp-v23 .rd-panel{padding:clamp(29px,3vw,45px)!important;border-radius:15px!important}
body.fdp-v23 .rd-grid,body.fdp-v23 .rd-index-grid{gap:clamp(22px,3vw,37px)!important}
body.fdp-v23 .rd-card{padding:clamp(23px,2.5vw,35px)!important}
body.fdp-v23 .rd-card h2,body.fdp-v23 .rd-card h3{line-height:1.55!important}
body.fdp-v23 .rd-section-title{margin-bottom:30px!important}
body.fdp-v23 .rd-cta{margin-top:var(--fdp23-section-gap)!important}
/* ABOUT is the visual source of truth; keep its horizontal geometry, give sections time to breathe. */
body.fdp-v23-page-about > .hero .hero-inner,
body.fdp-v23-page-about > main{
  width:min(1280px,calc(100% - 2 * var(--fdp23-content-side)))!important;
  max-width:1280px!important;margin-inline:auto!important;padding-inline:0!important;
}
body.fdp-v23-page-about > main{padding-top:clamp(78px,7.5vw,112px)!important;padding-bottom:135px!important}
body.fdp-v23-page-about > main > .panel + .panel{margin-top:clamp(80px,8.2vw,125px)!important}
body.fdp-v23-page-about main .purpose{padding:clamp(36px,4vw,55px)!important;gap:clamp(24px,3vw,45px)!important}
body.fdp-v23-page-about main .representative{padding:clamp(34px,3.6vw,50px)!important}
body.fdp-v23-page-about main .beliefs{padding:clamp(32px,3.5vw,48px)!important;gap:20px!important}
/* COMPANY: coherent logo/title alignment; profile table fills its centered column. */
body.fdp-v23-page-company .v13-hero .v13-shell,
body.fdp-v23-page-contact .v13-hero .v13-shell{
  width:min(1280px,calc(100% - 2 * var(--fdp23-content-side)))!important;
  max-width:1280px!important;margin-inline:auto!important;
}
body.fdp-v23-page-company .v13-lead{max-width:1040px!important;margin-inline:auto!important}
body.fdp-v23-page-company .v13-section{margin-top:var(--fdp23-section-gap)!important}
body.fdp-v23-page-company .v13-profile{max-width:1100px!important;width:100%!important;margin:0 auto!important;grid-template-columns:minmax(180px,250px) minmax(0,1fr)!important}
body.fdp-v23-page-company .v13-profile dd{min-width:0;overflow-wrap:anywhere}
body.fdp-v23-page-company .v13-timeline{max-width:1060px!important;margin:0 auto!important}
/* VALUE: keep its large hero image, but group its content into centered sections. */
body.fdp-v23-page-value > main{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
body.fdp-v23-page-value .value-hero-inner{
  width:min(1280px,calc(100% - 2 * var(--fdp23-content-side)))!important;
  max-width:1280px!important;margin:0 auto!important;
  padding:clamp(65px,6vw,92px) 0!important;
}
body.fdp-v23-page-value .value-main{padding:var(--fdp23-section-gap) 0 130px!important}
body.fdp-v23-page-value .value-main > section + section{margin-top:var(--fdp23-section-gap)!important}
body.fdp-v23-page-value .value-intro{margin-bottom:clamp(38px,5vw,74px)!important}
/* EXPERTISE: the previous white text is the opposite of the approved about hero. */
body.fdp-v23-page-expertise .page-hero{position:relative!important;color:#10294c!important;min-height:300px!important;background-color:#eaf4fe!important;isolation:isolate}
body.fdp-v23-page-expertise .page-hero-image{z-index:0!important;opacity:1!important}
body.fdp-v23-page-expertise .page-hero::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,#e7f2fd 0%,rgba(231,242,253,.99) 23%,rgba(231,242,253,.92) 40%,rgba(231,242,253,.67) 61%,rgba(231,242,253,.08) 93%)!important;
}
body.fdp-v23-page-expertise .page-hero .hero-inner{position:relative!important;z-index:2!important;padding:clamp(60px,6vw,88px) 0!important}
body.fdp-v23-page-expertise .page-hero .hero-inner h1{color:#09264f!important;text-shadow:none!important}
body.fdp-v23-page-expertise .page-hero .hero-inner p{color:#35536e!important;text-shadow:none!important}
body.fdp-v23-page-expertise .page-hero .hero-label{color:#0a5bb0!important;text-shadow:none!important}
body.fdp-v23-page-expertise .section.wide{padding-top:var(--fdp23-section-gap)!important;padding-bottom:var(--fdp23-section-gap)!important}
body.fdp-v23-page-expertise .fdp-v16-grid{gap:30px!important}
body.fdp-v23-page-expertise .fdp-v16-tile{padding:30px!important}
/* WORKS: all project photos equal height, not tall first/olympics/automotive photos. */
body.fdp-v23-page-works main.workspage{max-width:none!important;width:100%!important;padding:clamp(70px,7vw,108px) 0 130px!important}
body.fdp-v23-page-works main.workspage .rd-container{
  width:min(1220px,calc(100% - 2 * var(--fdp23-content-side)))!important;
  max-width:1220px!important;margin-inline:auto!important;padding:0!important;
}
body.fdp-v23-page-works .work-intro{margin-bottom:64px!important}
body.fdp-v23-page-works .work-list{gap:clamp(37px,5vw,70px)!important}
body.fdp-v23-page-works .work-card{align-items:start!important}
body.fdp-v23-page-works .work-card > img,
body.fdp-v23-page-works .work-dev-card > img{
  width:100%!important;height:220px!important;max-height:220px!important;
  min-height:0!important;object-fit:cover!important;object-position:center!important;
}
body.fdp-v23-page-works .work-dev{margin-top:var(--fdp23-section-gap)!important}
/* AI: fix entire content column and hero alignment; substantial vertical spacing. */
body.fdp-v23-page-ai .page,body.fdp-v23-page-ai .page > main{width:100%!important;max-width:none!important;margin:0!important}
body.fdp-v23-page-ai .page > main > .hero{min-height:355px!important;height:auto!important}
body.fdp-v23-page-ai .page > main > .hero .hero-copy{
  box-sizing:border-box;width:min(1220px,calc(100% - 2 * var(--fdp23-content-side)))!important;
  max-width:1220px!important;margin-inline:auto!important;
  padding:clamp(66px,6.5vw,105px) 0!important;
  position:relative!important;left:auto!important;right:auto!important;
}
body.fdp-v23-page-ai .page > main > .content{
  width:min(1220px,calc(100% - 2 * var(--fdp23-content-side)))!important;
  max-width:1220px!important;margin:0 auto!important;padding:30px 0 135px!important;
  position:relative!important;left:auto!important;right:auto!important;
}
body.fdp-v23-page-ai .page > main > .content > .section{
  padding-top:clamp(90px,8.5vw,135px)!important;margin:0!important;
}
body.fdp-v23-page-ai .section-head{margin-bottom:clamp(35px,4vw,55px)!important}
body.fdp-v23-page-ai .support-grid,
body.fdp-v23-page-ai .cases-grid,
body.fdp-v23-page-ai .process-grid,
body.fdp-v23-page-ai .benefits-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:clamp(24px,3vw,42px)!important;max-width:100%!important;margin-inline:auto!important;
}
body.fdp-v23-page-ai .case-card img{height:195px!important;width:100%!important;object-fit:cover!important}
body.fdp-v23-page-ai .case-card{max-width:100%;min-width:0}
body.fdp-v23-page-ai .case-copy{padding:24px 30px 32px!important}
body.fdp-v23-page-ai .support-card,body.fdp-v23-page-ai .benefit-card{padding:33px!important;min-width:0}
body.fdp-v23-page-ai .step{padding:30px!important;min-width:0}
body.fdp-v23-page-ai .content > .cta{margin-top:100px!important}
/* CONTACT: CSS only; all inputs, action and existing demo submit script stay unchanged. */
body.fdp-v23-page-contact main.v13-main{width:min(1120px,calc(100% - 2 * var(--fdp23-content-side)))!important;max-width:1120px!important}
body.fdp-v23-page-contact .v13-section{margin-top:var(--fdp23-section-gap)!important}
/* HOME uses exactly the same header geometry. Previously approved layout/photos/copy stay intact. */
body.fdp-v23.fdp-v22-home .fdp22-hero-inner{padding-top:85px!important;padding-bottom:90px!important}
/* Responsive: no overflow and no unusable small typography. */
@media(max-width:1060px){
 body.fdp-v23 .fdp-v14-header .fdp-v14-inner{min-height:68px!important;flex-wrap:wrap!important;padding:8px 0!important}
 body.fdp-v23 .fdp-v14-header .fdp-v14-logo{flex:0 1 min(355px,74vw)!important;max-width:min(355px,74vw)!important}
 body.fdp-v23 .fdp-v14-header .fdp-v14-nav{width:100%!important;margin:8px 0 0!important}
 body.fdp-v23 .fdp-v14-header .fdp-v14-nav:not([data-open="true"]){display:none!important}
 body.fdp-v23 .fdp-v14-header .fdp-v14-nav[data-open="true"]{display:grid!important}
}
@media(max-width:800px){
 body.fdp-v23{--fdp23-header-side:16px;--fdp23-content-side:20px;--fdp23-section-gap:64px}
 body.fdp-v23 .rd-grid,body.fdp-v23 .rd-index-grid,
 body.fdp-v23-page-expertise .fdp-v16-grid,
 body.fdp-v23-page-ai .support-grid,body.fdp-v23-page-ai .cases-grid,
 body.fdp-v23-page-ai .process-grid,body.fdp-v23-page-ai .benefits-grid{grid-template-columns:1fr!important;gap:20px!important}
 body.fdp-v23-page-about main .purpose,body.fdp-v23-page-about main .representative,body.fdp-v23-page-about main .beliefs{display:block!important}
 body.fdp-v23-page-about > main{padding-top:64px!important;padding-bottom:95px!important}
 body.fdp-v23-page-about > main > .panel + .panel{margin-top:73px!important}
 body.fdp-v23-page-company .v13-profile{grid-template-columns:minmax(115px,32%) minmax(0,1fr)!important}
 body.fdp-v23-page-works .work-card{grid-template-columns:1fr!important}
 body.fdp-v23-page-works .work-card > img,body.fdp-v23-page-works .work-dev-card > img{height:215px!important;max-height:215px!important}
 body.fdp-v23-page-ai .page > main > .hero .hero-copy{padding:44px 0!important}
 body.fdp-v23-page-ai .page > main > .content > .section{padding-top:70px!important}
 body.fdp-v23-page-ai .case-card img{height:190px!important}
}
@media(max-width:480px){
 body.fdp-v23{--fdp23-content-side:16px;--fdp23-header-side:12px}
 body.fdp-v23 .fdp-v14-header .fdp-v14-logo{flex:0 1 min(270px,73vw)!important;max-width:min(270px,73vw)!important}
 body.fdp-v23-page-company .v13-profile dt,body.fdp-v23-page-company .v13-profile dd{padding:12px 10px!important;font-size:13px!important}
 body.fdp-v23-page-ai .case-card img{height:170px!important}
 body.fdp-v23-page-ai .support-card,body.fdp-v23-page-ai .benefit-card{padding:22px!important}
}
