/* Shared spacing rhythm across all responsive corporate pages. */
:root{--layout-section:96px;--layout-heading-gap:40px;--layout-content:64px;--layout-subsection:48px}
.section{padding-block:var(--layout-section)}
.section-top,.section-heading,.process .section-heading{margin-bottom:var(--layout-heading-gap)}
.detail-layout{padding-top:var(--layout-content);padding-bottom:var(--layout-section)}
.detail-content>section+section,.detail-content>section+.policy-note{margin-top:var(--layout-subsection)}
.tdat-section{padding-block:var(--layout-section)}
@media(min-width:641px){
 #mission .tdat-split,.tdat-partners-head{grid-template-rows:auto auto;row-gap:20px;align-items:center}
 #mission .tdat-split>div,.tdat-partners-head>div{display:contents}
 #mission .tdat-split .tdat-kicker,.tdat-partners-head .tdat-kicker{grid-column:1;grid-row:1}
 #mission .tdat-split h2,.tdat-partners-head h2{grid-column:1;grid-row:2;margin:0}
 #mission .tdat-split>p,.tdat-partners-head>p{grid-column:2;grid-row:2;margin:0;align-self:center}
 .tdat-records-heading{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:16px 35px;align-items:center}
 .tdat-records-heading>div{display:contents}
 .tdat-records-heading .tdat-kicker{grid-column:1;grid-row:1}
 .tdat-records-heading h3{grid-column:1;grid-row:2;margin:0}
 .tdat-records-heading>p{grid-column:2;grid-row:2;margin:0}
}
@media(max-width:960px){:root{--layout-section:72px;--layout-heading-gap:32px;--layout-content:52px;--layout-subsection:40px}}
@media(max-width:640px){
 :root{--layout-section:56px;--layout-heading-gap:28px;--layout-content:40px;--layout-subsection:32px}
 .section-heading>p{margin-top:20px}
 .tdat-section{padding-block:48px}
 .tdat-split{gap:24px}
 .tdat-points,.tdat-roles,.tdat-context-grid,.tdat-partner-grid,.tdat-photo-grid,.tdat-flow{margin-top:24px}
 .tdat-records{margin-top:32px;padding-top:28px}
}
.detail-hero{padding-block:64px}
@media(max-width:960px){.detail-hero{padding-block:52px}}
@media(max-width:640px){
 .detail-hero{padding-block:36px}
 .tdat-split>div>h2,.tdat-partners-head h2{margin-bottom:0}
 .tdat-split>p,.tdat-partners-head>p{margin:0}
}

/* Account for the fixed header only once when jumping to or focusing content. */
.detail-content h2[id],.tdat-records-heading h3[id],[data-business-contact] .bc-panel h2{scroll-margin-top:12px}
[data-business-contact] .bc-field :is(input,select,textarea),[data-business-contact] #bc-consent{scroll-margin-block:12px 18px}

/* Phone layout: readable copy, balanced scene controls and comfortable touch targets. */
@media(max-width:640px){
 .hero-next .next-copy{padding-top:34px;padding-bottom:30px}
 .hero-next .next-copy>p{font-size:14px;line-height:1.9;max-width:100%;overflow-wrap:anywhere}
 .hero-next .next-copy .button{font-size:13px;margin-top:24px;min-height:52px}
 .hero-next .next-visual{height:420px}
 .hero-next .next-scene-controls{left:18px;right:18px;bottom:16px;display:block}
 .hero-next .next-scenes{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
 .hero-next .next-scene-tab{font-size:12px;line-height:1.5;min-height:44px;padding:6px 0;row-gap:2px}
 .hero-next .next-scene-tab strong{font-size:10px;line-height:1.4}
 .hero-next .next-motion-toggle{position:absolute;right:0;bottom:4px;width:44px;height:44px}
 .hero-next .next-scene[data-scene="disaster-support"] .next-disaster-mark{top:25%;width:min(70%,340px)}
 .hero-next .next-scene[data-scene="disaster-support"] .next-disaster-mascot{bottom:228px;right:18px;width:46px}
 .hero-next .next-coming-soon{inset-block:48px 232px}
 .hero.hero-next:before{bottom:474px;background-position:center top}
 .hero-next .next-visual:after{background:linear-gradient(180deg,#0618290a 24%,#061829a8 52%,#061829e8)}
 .detail-content :is(p,ul,ol),.detail-content .detail-card p,.detail-content .service p{font-size:14px;line-height:1.95}
 .detail-hero p{font-size:14px;line-height:1.95;max-width:100%}
 .detail-content .content-company dd{font-size:14px;overflow-wrap:anywhere}
 .detail-content .content-company dt{font-size:12px}
 .detail-content .content-contact .mail{font-size:14px;overflow-wrap:anywhere}
 .detail-content .detail-toc>a,.detail-toc>a{font-size:12px;min-height:44px;display:flex;align-items:center}
 .detail-content .career-quick-nav a{min-height:44px;font-size:12px}
 .detail-content .button,.detail-content .career-btn,.detail-content .detail-link,.detail-content .map-link{font-size:13px}
 .brand-film-card{min-width:0}
 .brand-film-copy{min-width:0;overflow-wrap:anywhere}
 .brand-film-copy .brand-film-name{font-size:14px;letter-spacing:.07em}
 .brand-film-dialog-head{gap:10px}
 .brand-film-close{flex-shrink:0}
 .menu-panel{padding-bottom:calc(28px + env(safe-area-inset-bottom));overscroll-behavior:contain}
 .footer-bottom>nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
 .footer-bottom>nav>a,.footer-bottom>nav>span{display:inline-flex;min-height:44px;min-width:36px;align-items:center;justify-content:center}
 input:not([type="checkbox"]):not([type="radio"]),select,textarea{font-size:16px}
}
@media(max-width:360px){
 .brand-film-card{grid-template-columns:72px minmax(0,1fr) 28px;gap:8px;padding:10px}
 .hero-next .next-scenes{gap-inline:12px}
 .hero-next .next-scene-controls{left:14px;right:14px}
}
/* Let the mobile hero grow with its copy and controls instead of clipping at desktop height. */
@media(max-width:800px){.hero.hero-next{height:auto;max-height:none}}
@media(max-width:640px){
 .menu-panel nav>a{font-size:18px;gap:12px;line-height:1.6;overflow-wrap:anywhere}
 .menu-panel nav small,.menu-panel nav span{flex-shrink:0}
}

/* One mobile type scale and spacing rhythm for the entire corporate site. */
@media(max-width:640px){
 :root{--layout-section:52px;--layout-heading-gap:26px;--layout-subsection:30px}
 body{font-size:16px}
 .wrap,.header-inner{width:calc(100% - 40px)}
 .section-top{align-items:center}
 .section-label,.company-message-label{font-size:12px;line-height:1.6;letter-spacing:.1em}
 .section-index{font-size:12px}
 main :is(.approach h2,.strength h2,.experience h2,.company-copy h2,.recruit h2,.contact h2){font-size:clamp(27px,7.5vw,32px);line-height:1.55;letter-spacing:0}
 .section-heading h2{font-size:clamp(27px,7.5vw,32px);line-height:1.55}
 main :is(.approach-copy>p:not(.lead),.section-heading>p,.strength-copy,.experience-inner>div>p,.experience-list>div>p,.process-grid p,.company-copy>p,.recruit p,.contact-grid p){font-size:16px;line-height:1.9}
 .approach-copy .lead{font-size:19px;line-height:1.8}
 .text-link,.button,.button-outline,.solution-detail,.contact-bottom{font-size:14px;line-height:1.7;min-height:48px}
 .approach-grid,.strength-layout,.experience-inner,.company-layout{gap:28px}
 .approach-foot{gap:12px;font-size:20px;line-height:1.6;margin-top:28px;padding-top:24px}
 .solution-tabs button{min-width:190px;width:190px;min-height:92px}
 .solution-tabs button>b{font-size:14px;line-height:1.6}
 .solution-tabs button>span,.solution-panel-top,.solution-chip{font-size:12px}
 .solution-panel{padding:24px 20px 0;min-height:0}
 .solution-panel h3{font-size:27px;line-height:1.55}
 .solution-panel p{font-size:16px;line-height:1.9}
 .solution-panel ul{font-size:14px;line-height:1.8;gap:10px 16px}
 .other-services summary,.other-services a{font-size:14px;line-height:1.8;min-height:44px}
 .other-services small,.license-note{font-size:12px;line-height:1.8}
 .numbers{gap:20px}
 .number-label{flex-wrap:wrap;font-size:12px;gap:4px 12px}
 .number-label small{font-size:14px}
 .number strong{font-size:clamp(64px,19vw,82px);line-height:1.1}
 .experience-note,.experience-note small,.experience-list>div>span{font-size:12px;line-height:1.8}
 .experience-list h3{font-size:19px;line-height:1.6}
 .process-grid{gap:30px 24px}
 .process-grid li>span,.process-grid b{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
 .process-grid h3{font-size:26px}
 .process-grid p{margin-top:12px}
 .corporate-links{margin-top:0}
 .corporate-links>a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:20px 0;font-size:16px;line-height:1.6}
 .corporate-links>a>span{grid-column:1/-1;width:auto;font-size:12px;line-height:1.5}
 .corporate-links>a>i{grid-column:2;grid-row:2}
 .recruit{padding:36px 0}
 .recruit-inner{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:20px 12px}
 .recruit-inner>img{position:static;grid-column:2;grid-row:1;width:72px;height:108px;margin:0;align-self:center}
 .recruit .button{grid-column:1/-1;justify-self:start;margin:0;min-height:52px;font-size:14px}
 .contact-action{margin-top:28px;gap:16px}
 .contact-action>span:first-child{font-size:14px;line-height:1.6;min-width:0}
 .contact-action b{font-size:23px;overflow-wrap:anywhere}
 .contact-circle{width:64px;height:64px;flex-shrink:0;font-size:28px}
 .contact-bottom{margin-top:28px;gap:12px}
 .contact-bottom a{max-width:none;min-height:44px}
 .footer{padding:36px 0 24px}
 .footer-layout{gap:24px;grid-template-columns:minmax(0,1fr) 44px}
 .footer-brand p,.instagram{font-size:14px;line-height:1.9}
 .footer-brand>a:first-child{width:210px;max-width:100%}
 .footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;width:100%;font-size:14px}
 .footer-nav>a{display:flex;align-items:center;min-height:48px;padding:12px 0;border-bottom:1px solid #ffffff25;line-height:1.7;overflow-wrap:anywhere}
 .back-top{width:44px;height:44px}
 .footer-bottom{gap:16px;margin-top:24px;padding-top:20px}
 .footer-bottom>div{display:grid;grid-template-columns:1fr;gap:0;width:100%;font-size:14px}
 .footer-bottom>div>a{display:flex;align-items:center;min-height:44px;line-height:1.7}
 .footer-bottom nav{margin:0;font-size:14px}
 .footer-bottom small{font-size:12px}
 .detail-content :is(p,ul,ol),.detail-content .detail-card p,.detail-content .service p,.detail-hero p{font-size:16px;line-height:1.9}
 .detail-content .content-company dt,.detail-content .button,.detail-content .career-btn,.detail-content .detail-link,.detail-content .map-link,.detail-toc>a,.detail-content .career-quick-nav a{font-size:14px}
 .detail-content .content-company dd{font-size:16px;line-height:1.9}
 .detail-content .content-company>div{padding-block:20px;gap:8px}
 .detail-content .content-contact{padding:24px 20px}
 .detail-content .policy-note,.detail-content .note,.detail-content .career-note,.detail-content .career-caption,.detail-content .policy-date{font-size:13px;line-height:1.8}
 .detail-content .career-faq summary{font-size:16px;line-height:1.8}
 .detail-content h2{font-size:25px;line-height:1.6}
}
@media(max-width:360px){
 .wrap,.header-inner{width:calc(100% - 32px)}
 .header-main{gap:10px}.brand{width:145px}
 .process-grid{gap:26px 18px}
 .process-grid p{font-size:15px}
 .recruit-inner{grid-template-columns:minmax(0,1fr) 60px}
 .recruit-inner>img{width:60px;height:96px}
}
