/* FDP V22 demo layout — 2026-11-15
   Reference: approved "私たちについて" page. Override V21 *without* modifying text/images/links.
   Applied only to 33 non-home pages. */
body.fdp-v22-layout {
  --fdp-v22-gutter: clamp(18px,3vw,52px);
  --fdp-v22-content: 1200px;
  --fdp-v22-section: clamp(54px,6vw,94px);
  overflow-x: clip;
}
body.fdp-v22-layout *,body.fdp-v22-layout *::before,body.fdp-v22-layout *::after{box-sizing:border-box}
/* Make all headers use exactly the approved about-page alignment. */
body.fdp-v22-layout .fdp-v14-header .fdp-v14-inner {
  max-width:none!important;width:calc(100% - 2 * var(--fdp-v22-gutter))!important;
  padding:0!important;margin-inline:auto!important;min-height:72px!important;
  display:flex!important;align-items:center!important;
}
body.fdp-v22-layout .fdp-v14-header .fdp-v14-logo{
  flex:0 1 355px!important;width:auto!important;min-width:215px!important;max-width:355px!important;
  margin:0!important;transform:none!important;
}
body.fdp-v22-layout .fdp-v14-header .fdp-v14-logo img{width:100%!important;height:auto!important;max-height:64px!important;object-fit:contain!important;object-position:left center!important}
/* Override the old 100%-wide V21 containers; keep sufficient but NOT huge side gutters. */
body.fdp-v22-layout .rd-main,
body.fdp-v22-layout .rd-container,
body.fdp-v22-layout main.v13-shell,
body.fdp-v22-layout .v13-shell,
body.fdp-v22-layout .wide,
body.fdp-v22-page-value .value-main,
body.fdp-v22-page-value .value-hero-inner {
  width:min(var(--fdp-v22-content),calc(100% - 2 * var(--fdp-v22-gutter)))!important;
  max-width:var(--fdp-v22-content)!important;
  padding-left:0!important;padding-right:0!important;
  margin-left:auto!important;margin-right:auto!important;
}
body.fdp-v22-layout .rd-hero-content{
  width:min(var(--fdp-v22-content),calc(100% - 2 * var(--fdp-v22-gutter)))!important;
  max-width:var(--fdp-v22-content)!important;
  margin-inline:auto!important;padding:58px 0!important;min-height:315px!important;
}
body.fdp-v22-layout .rd-hero{min-height:300px}
body.fdp-v22-layout .rd-main{padding-top:46px!important;padding-bottom:clamp(70px,7vw,112px)!important}
body.fdp-v22-layout .rd-breadcrumb{margin-bottom:30px!important;line-height:1.9}
body.fdp-v22-layout .rd-panel{padding:clamp(25px,2.8vw,38px)!important;border-radius:16px!important}
body.fdp-v22-layout .rd-section{margin-top:var(--fdp-v22-section)!important}
body.fdp-v22-layout .rd-panel + .rd-panel{margin-top:clamp(28px,4vw,54px)!important}
body.fdp-v22-layout .rd-panel p,
body.fdp-v22-layout .rd-section > p{line-height:1.95!important}
body.fdp-v22-layout .rd-index-grid,
body.fdp-v22-layout .rd-grid,
body.fdp-v22-layout .rd-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:clamp(20px,2.7vw,33px)!important}
body.fdp-v22-layout .rd-card{min-width:0;padding:clamp(23px,2.6vw,33px)!important;gap:15px!important;border-radius:15px!important}
body.fdp-v22-layout .rd-card h3{line-height:1.65!important}
body.fdp-v22-layout .rd-steps{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}
body.fdp-v22-layout .rd-steps li{padding:23px!important;min-height:146px!important}
body.fdp-v22-layout .rd-split{gap:clamp(22px,3vw,36px)!important;align-items:start!important}
body.fdp-v22-layout .rd-cta{margin-top:var(--fdp-v22-section)!important;padding:clamp(25px,3vw,40px)!important;gap:28px!important}
/* About: accepted current design; only add breathing space vertically. */
body.fdp-v22-page-about > .hero .hero-inner,
body.fdp-v22-page-about > main{
  width:min(1280px,calc(100% - 2 * var(--fdp-v22-gutter)))!important;
  max-width:1280px!important;margin-inline:auto!important;
  padding-left:0!important;padding-right:0!important;
}
body.fdp-v22-page-about > main{padding-top:clamp(35px,4vw,65px)!important;padding-bottom:100px!important}
body.fdp-v22-page-about main .panel + .panel{margin-top:clamp(40px,5.2vw,82px)!important}
body.fdp-v22-page-about main .purpose{padding:clamp(25px,3vw,39px)!important;gap:clamp(22px,2.9vw,37px)!important}
body.fdp-v22-page-about main .representative{padding:clamp(27px,3vw,44px)!important}
body.fdp-v22-page-about main .beliefs{padding:clamp(27px,3vw,42px)!important;gap:18px!important}
/* Company: center the business introduction, the complete profile table, and History. */
body.fdp-v22-page-company main.v13-main{width:min(1130px,calc(100% - 2 * var(--fdp-v22-gutter)))!important;max-width:1130px!important;padding-top:clamp(58px,6vw,84px)!important}
body.fdp-v22-page-company .v13-lead{max-width:1040px;margin-inline:auto}
body.fdp-v22-page-company .v13-lead p{max-width:none!important}
body.fdp-v22-page-company .v13-section{margin-top:clamp(65px,7vw,102px)!important}
body.fdp-v22-page-company .v13-profile{width:100%!important;max-width:1020px!important;margin:0 auto!important;grid-template-columns:minmax(165px,240px) minmax(0,1fr)!important}
body.fdp-v22-page-company .v13-profile dt,body.fdp-v22-page-company .v13-profile dd{overflow-wrap:anywhere;padding:19px 23px!important}
body.fdp-v22-page-company .v13-timeline{max-width:1020px;width:100%;margin-inline:auto!important}
/* Value page: full-bleed photo; all actual content centered and comfortably spaced. */
body.fdp-v22-page-value > main{max-width:none!important;width:100%!important;padding:0!important}
body.fdp-v22-page-value .value-hero-inner{padding-top:65px!important;padding-bottom:65px!important;min-height:365px!important}
body.fdp-v22-page-value .value-main{padding-top:var(--fdp-v22-section)!important;padding-bottom:100px!important}
body.fdp-v22-page-value .value-main > section + section{margin-top:var(--fdp-v22-section)!important}
body.fdp-v22-page-value .value-intro{margin-bottom:clamp(30px,4vw,58px)!important;gap:30px!important}
body.fdp-v22-page-value .audiences-section{padding-top:var(--fdp-v22-section)!important}
/* Expertise including every child page (wide elements previously stretched full-viewport). */
body.fdp-v22-page-expertise .page-hero .hero-inner{padding-top:45px!important;padding-bottom:50px!important}
body.fdp-v22-page-expertise .section.wide{padding-top:var(--fdp-v22-section)!important;padding-bottom:var(--fdp-v22-section)!important}
body.fdp-v22-page-expertise .section-heading{margin-bottom:35px!important;gap:25px!important}
body.fdp-v22-page-expertise .fdp-v16-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
body.fdp-v22-page-expertise .fdp-v16-tile{padding:26px!important}
/* Works: unified image heights for all six project cards, regardless of image source. */
body.fdp-v22-page-works main.workspage{max-width:none!important;width:100%!important;padding:clamp(60px,6vw,95px) 0 92px!important}
body.fdp-v22-page-works .rd-container{max-width:1220px!important;width:min(1220px,calc(100% - 2 * var(--fdp-v22-gutter)))!important;padding:0!important}
body.fdp-v22-page-works .work-intro{margin-bottom:clamp(26px,4vw,58px)!important;gap:40px!important}
body.fdp-v22-page-works .work-list{gap:clamp(26px,3vw,39px)!important}
body.fdp-v22-page-works .work-card{grid-template-columns: minmax(220px,29%) minmax(0,1fr) minmax(180px,22%)!important;align-items:start!important}
body.fdp-v22-page-works .work-card > img{width:100%!important;height:225px!important;min-height:0!important;max-height:225px!important;object-fit:cover!important;object-position:center!important;align-self:start!important}
body.fdp-v22-page-works .work-copy{padding:24px 28px!important}
body.fdp-v22-page-works .work-value{margin:20px!important}
body.fdp-v22-page-works .work-dev{margin-top:var(--fdp-v22-section)!important}
body.fdp-v22-page-works .work-dev-card > img{height:225px!important;min-height:0!important;max-height:225px!important;object-fit:cover!important}
/* AI utilization: fully centered 2-column content, all headers aligned below the logo. */
body.fdp-v22-page-ai .page,body.fdp-v22-page-ai .page > main{max-width:none!important;width:100%!important;margin:0!important}
body.fdp-v22-page-ai .page > main > .content{
  width:min(1200px,calc(100% - 2 * var(--fdp-v22-gutter)))!important;
  max-width:1200px!important;margin:0 auto!important;padding:28px 0 105px!important;
}
body.fdp-v22-page-ai .page > main > .hero{min-height:330px!important;height:auto!important}
body.fdp-v22-page-ai .page > main > .hero .hero-copy{
  width:min(1200px,calc(100% - 2 * var(--fdp-v22-gutter)))!important;
  max-width:1200px!important;margin:0 auto!important;
  padding:clamp(48px,5vw,74px) 0!important;
}
body.fdp-v22-page-ai .page > main > .hero .hero-copy > *{max-width:620px}
body.fdp-v22-page-ai .page > main > .content .section{padding-top:clamp(60px,7vw,106px)!important}
body.fdp-v22-page-ai .section-head{margin-bottom:35px!important;gap:20px!important;flex-wrap:wrap}
body.fdp-v22-page-ai .support-grid,
body.fdp-v22-page-ai .cases-grid,
body.fdp-v22-page-ai .process-grid,
body.fdp-v22-page-ai .benefits-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:26px!important}
body.fdp-v22-page-ai .process-intro,body.fdp-v22-page-ai .benefits-intro{grid-column:1/-1!important}
body.fdp-v22-page-ai .support-card,body.fdp-v22-page-ai .benefit-card{padding:30px!important;min-height:165px!important}
body.fdp-v22-page-ai .case-card img{width:100%!important;height:230px!important;object-fit:cover!important}
body.fdp-v22-page-ai .case-copy{padding:24px 26px 32px!important}
body.fdp-v22-page-ai .step{padding:27px!important;min-height:160px!important}
body.fdp-v22-page-ai .cta{margin-top:80px!important}
/* Contact: only visual layout. Leave the demo form script, action, and fields untouched. */
body.fdp-v22-page-contact main.v13-main{width:min(1130px,calc(100% - 2 * var(--fdp-v22-gutter)))!important;max-width:1130px!important;padding-top:64px!important;padding-bottom:95px!important}
body.fdp-v22-page-contact .v13-section{margin-top:var(--fdp-v22-section)!important}
body.fdp-v22-page-contact .fdp-v15-contact-form{max-width:960px;margin-inline:auto}
/* Mobile/tablet: no squeezed columns and no horizontal overflow. */
@media(max-width:1000px){
 body.fdp-v22-layout .rd-split{grid-template-columns:1fr!important}
 body.fdp-v22-page-works .work-card{grid-template-columns:minmax(170px,33%) minmax(0,1fr)!important}
 body.fdp-v22-page-works .work-value{grid-column:1/-1;margin:4px 22px 22px!important}
 body.fdp-v22-page-about main .purpose{grid-template-columns:1fr 1.25fr!important}
 body.fdp-v22-page-about main .purpose > :last-child{grid-column:1/-1}
 body.fdp-v22-page-about main .beliefs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.fdp-v22-page-about main .beliefs-heading{grid-column:1/-1}
}
@media(max-width:760px){
 body.fdp-v22-layout{--fdp-v22-gutter:18px;--fdp-v22-section:56px}
 body.fdp-v22-layout .rd-main{padding-top:28px!important}
 body.fdp-v22-layout .rd-hero-content{min-height:260px!important;padding:38px 0!important}
 body.fdp-v22-layout .rd-index-grid,
 body.fdp-v22-layout .rd-grid,body.fdp-v22-layout .rd-grid.two,
 body.fdp-v22-layout .rd-steps,
 body.fdp-v22-page-expertise .fdp-v16-grid,
 body.fdp-v22-page-ai .support-grid,body.fdp-v22-page-ai .cases-grid,
 body.fdp-v22-page-ai .process-grid,body.fdp-v22-page-ai .benefits-grid{grid-template-columns:1fr!important;gap:19px!important}
 body.fdp-v22-layout .rd-panel,body.fdp-v22-layout .rd-card{padding:22px!important}
 body.fdp-v22-layout .rd-cta{flex-direction:column;align-items:stretch!important}
 body.fdp-v22-layout .rd-cta a{text-align:center;white-space:normal}
 body.fdp-v22-page-company .v13-profile{grid-template-columns:130px minmax(0,1fr)!important}
 body.fdp-v22-page-company .v13-profile dt,body.fdp-v22-page-company .v13-profile dd{padding:13px 10px!important;font-size:13px!important}
 body.fdp-v22-page-company .v13-timeline{margin-left:16px}
 body.fdp-v22-page-works .work-card{grid-template-columns:1fr!important}
 body.fdp-v22-page-works .work-card>img{height:220px!important;max-height:220px!important}
 body.fdp-v22-page-works .work-value{grid-column:auto!important}
 body.fdp-v22-page-works .work-dev-card{display:block!important}
 body.fdp-v22-page-works .work-dev-card>img{width:100%!important;height:220px!important;max-height:220px!important}
 body.fdp-v22-page-about main .purpose,body.fdp-v22-page-about main .representative,body.fdp-v22-page-about main .beliefs{display:block!important}
 body.fdp-v22-page-about main .purpose > * + *,body.fdp-v22-page-about main .representative > * + *{margin-top:18px!important}
 body.fdp-v22-page-ai .page>main>.hero .hero-copy{padding:45px 0!important}
 body.fdp-v22-page-ai .case-card img{height:200px!important}
 body.fdp-v22-page-ai .content .section{padding-top:55px!important}
}
@media(max-width:480px){body.fdp-v22-layout{--fdp-v22-gutter:16px}}
