/* Homepage only: shared pages retain their existing styles. */
.homepage { --ink:#162534; --muted:#657483; --accent:#087b80; font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; font-size:15px; line-height:1.85; color:var(--ink); background:#f5f7f8; }
.homepage *, .homepage *::before, .homepage *::after { box-sizing:border-box; }
.homepage a { transition:background-color .2s,color .2s,transform .2s; }
.homepage a:focus-visible, .homepage button:focus-visible { outline:3px solid #20b5ba; outline-offset:5px; }
.homepage .skip-link { position:fixed; top:-100px; left:16px; z-index:2000; background:white; padding:12px 20px; color:var(--ink); }
.homepage .skip-link:focus { top:16px; }
.homepage #wrap { position:relative; height:auto; }
.homepage #Headercontent { width:100%; height: min(850px,92svh); min-height:640px; position:relative; overflow:hidden; background:#122638; isolation:isolate; }
.homepage #bg-video { position:absolute; inset:0; width:100%; height:100%; min-height:0; min-width:0; object-fit:cover; z-index:-2; padding:0; opacity:.62; }
.homepage #Headercontent::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(6,21,33,.85),rgba(6,21,33,.18)),linear-gradient(0deg,rgba(6,21,33,.45),transparent 40%); }
.homepage .hero-copy { position:absolute; left:max(6vw,24px); right:24px; top:50%; transform:translateY(-43%); color:#fff; max-width:850px; }
.homepage .hero-eyebrow { color:#84e1df; font-size:12px; letter-spacing:.22em; margin-bottom:25px; font-weight:700; }
.homepage h1 { font-size:clamp(38px,5.5vw,76px); line-height:1.28; letter-spacing:.055em; font-weight:700; margin:0 0 26px; }
.homepage .hero-description { color:#dae4eb; font-size:16px; line-height:2; letter-spacing:.08em; margin-bottom:32px; }
.homepage .hero-actions { display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
.homepage .hero-actions a { padding:14px 24px; font-size:14px; font-weight:700; }
.homepage .hero-primary { background:#fff; color:var(--ink); }
.homepage .hero-primary:hover { background:#a8e8e3; transform:translateY(-2px); }
.homepage .hero-secondary { color:white; border-bottom:1px solid #ffffff80; }
.homepage .hero-actions span { margin-left:28px; }
.homepage .hero-scroll { position:absolute; bottom:30px; left:6vw; color:#dae4eb; letter-spacing:.18em; font-size:10px; }
.homepage .hero-scroll span { margin-left:18px; }
.homepage .video-toggle { position:absolute; bottom:26px; right:6vw; background:#102431a8; border:1px solid #ffffff60; color:white; padding:8px 14px; font-size:11px; border-radius:2px!important; }
.homepage #content { width:min(1160px,88%); margin:0 auto; }
.homepage #content > div { padding:88px 0; margin:0; scroll-margin-top:90px; }
.homepage #content > div + div { border-top:1px solid #dbe2e7; }
.homepage .table-responsive { overflow-x:auto; }
.homepage .thead-th { text-align:left; border:0!important; color:var(--ink); padding:0 0 26px; font-size:28px; font-weight:700; letter-spacing:.08em; }
.homepage .thead-th::before { display:block; font-size:11px; font-weight:700; letter-spacing:.2em; color:var(--accent); margin-bottom:8px; }
.homepage .thead-th.work::before { content:"SELECTED WORKS"; }
.homepage .thead-th.about::before { content:"COMPANY"; }
.homepage .thead-th.access::before { content:"Maps"; }
.homepage .thead-th.recruit::before { content:"JOIN OUR TEAM"; }
.homepage .thead-th.contact::before { content:"GET IN TOUCH"; }
.homepage .media-container { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; align-items:stretch; }
.homepage .media-article { display:flex; flex-direction:column; width:auto; height:auto; min-width:0; background:white; border:1px solid #e0e6e9; border-radius:12px; overflow:hidden; padding:0; text-align:left; box-shadow:0 8px 24px #142d3d05; }
.homepage .media-article .bunner { flex-shrink:0; background:#e9eef0; overflow:hidden; }
.homepage .media-article .c-bunner.w { width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; display:block; border-radius:0; }
.homepage .work-text-block { display:flex; flex-direction:column; flex:1; width:auto; margin:0; padding:22px 26px 26px; }
.homepage .hr-zero { display:none; }
.homepage .table { margin-bottom:0; color:inherit; }
.homepage .table th, .homepage .table td { border-color:#e4e9ec!important; line-height:1.85; }
.homepage .media-article .table th { width:78px; font-size:11px; color:var(--muted); font-weight:500; padding:10px 8px 10px 0; }
.homepage .media-article .table td { width:auto; font-size:12px; padding:10px 0 10px 8px; overflow-wrap:anywhere; }
.homepage .media-article tbody tr:first-child th, .homepage .media-article tbody tr:first-child td { border-top:0; }
.homepage .media-article tbody tr:first-child td { font-size:17px; font-weight:700; padding-top:4px; }
.homepage .media-article tr:last-child:has(td:empty) { display:none; }
.homepage .bunner_btn { width:100%; margin:auto 0 0; padding-top:18px; }
.homepage button.btn { background:#edf3f4; color:#20535a; border:1px solid #d9e5e6; border-radius:5px!important; font-size:13px; padding:11px 15px; margin-bottom:0!important; }
.homepage button.btn:hover { background:#d7ebeb; }
.homepage .Company-Body { width:min(100%,860px); margin:0 auto; }
.homepage .Company-Body th { width:25%; text-align:left; padding:24px 20px; background:#edf1f3; font-weight:600; }
.homepage .Company-Body td { width:auto; padding:24px 28px!important; background:white; font-size:14px; overflow-wrap:anywhere; }
.homepage .Company-Body button.btn { margin:10px 0 0!important; }
.homepage .Company-Body button.btn .fa-building { margin-inline-end:6px; }
.homepage #Access > .table-responsive:nth-child(2) tbody { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.homepage #Access > .table-responsive:nth-child(2) tr { min-width:0; display:block; }
.homepage #Access > .table-responsive:nth-child(2) td { display:block; width:100%; border:0; padding:0; }
.homepage #Access > .table-responsive:nth-child(2) tr:last-child { display:none; }
.homepage #Access iframe { display:block; width:100%; height:260px; border-radius:8px; }
.homepage #Access iframe::before { display:block; }
.homepage #Access > .table-responsive:nth-child(2) tr::before { display:block; text-align:left; font-size:14px; font-weight:700; margin:0 0 12px; }
.homepage #Access > .table-responsive:nth-child(2) tr:nth-child(1)::before { content:"01 / 東京本社"; }
.homepage #Access > .table-responsive:nth-child(2) tr:nth-child(2)::before { content:"02 / 静岡Labo"; }
.homepage #Access > .table-responsive:nth-child(2) tr:nth-child(3)::before { content:"03 / 札幌Labo"; }
.homepage .job-top-ul { gap:20px; justify-content:flex-start; margin:0; }
.homepage .job-top-li { flex:1; }
.homepage .job-top-li a { width:100%; padding:28px; text-align:left; background:#152c3d; color:white; border-radius:8px; font-size:17px; margin:0; }
.homepage .job-top-li a:hover { background:#20515c; transform:translateY(-3px); }
.homepage .job-top-li i { margin-right:12px; color:#82d7d2; }
.homepage .inputform { width:100%; background:white; border:1px solid #dfe6ea; border-radius:8px; padding:30px; font-size:16px; }
.homepage .inputform p { margin:0; overflow-wrap:anywhere; }
@media(max-width:900px) {
 .homepage #Access > .table-responsive:nth-child(2) tbody { grid-template-columns:1fr; gap:28px; }
 .homepage #Access iframe { height:300px; }
}
@media(max-width:600px) {
 .homepage { font-size:14px!important; }
 .homepage #Headercontent { min-height:610px; height:88svh; max-height:800px; }
 .homepage .hero-copy { left:24px; transform:translateY(-40%); }
 .homepage h1 { font-size:clamp(32px,8.7vw,49px); }
 .homepage .hero-eyebrow { font-size:9px; letter-spacing:.16em; }
 .homepage .hero-description { font-size:13px; }
 .homepage .hero-actions { gap:10px; }
 .homepage .hero-actions a { padding:12px 16px; font-size:12px; }
 .homepage .hero-actions span { margin-left:10px; }
 .homepage .hero-scroll { font-size:8px; bottom:24px; }
 .homepage .video-toggle { bottom:18px; font-size:10px; }
 .homepage #content { width:calc(100% - 36px); }
 .homepage #content > div { padding:52px 0; scroll-margin-top:78px; }
 .homepage .thead-th { font-size:24px; padding-bottom:22px; }
 .homepage .media-container { grid-template-columns:1fr; gap:22px; }
 .homepage .work-text-block { padding:18px; }
 .homepage .Company-Body th { padding:18px 10px; width:29%; font-size:12px; }
 .homepage .Company-Body td { padding:18px 14px!important; font-size:12px; }
 .homepage .Company-Body button.btn { max-width:100%; }
 .homepage .job-top-ul { flex-direction:column; gap:12px; }
 .homepage .job-top-li a { padding:22px; font-size:15px; }
 .homepage .inputform { padding:22px; font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .homepage *, .homepage *::before, .homepage *::after { animation:none!important; transition:none!important; } }


.homepage .recruit-intro { display:flex; align-items:center; justify-content:center; gap:30px; margin:0 0 30px; padding:20px; background:#fff; border:1px solid #e3e9ed; border-radius:10px; }
.homepage .recruit-intro-eyebrow { font-size:10px; font-weight:700; letter-spacing:.18em; color:#b85d80; margin:0 0 14px; }
.homepage .recruit-intro-title { font-size:clamp(20px,2.8vw,32px); font-weight:700; line-height:1.7; letter-spacing:.04em; margin:0; }
@media(max-width:600px) {
 .homepage .recruit-intro { gap:8px; padding:12px 8px; }
 .homepage .recruit-intro-title { font-size:17px; letter-spacing:0; }
 .homepage .recruit-intro-eyebrow { font-size:8px; }
}

@media(max-width:600px) {
 .homepage .recruit-intro { flex-direction:column; gap:12px; padding:16px; text-align:center; }
}

/* Clients use the full available width on small screens. */
.homepage .company-clients { display:grid; grid-template-columns:25% minmax(0,1fr); border-top:1px solid #e4e9ec; font-size:14px; }
.homepage .company-clients-heading { padding:24px 20px; background:#edf1f3; font-weight:600; }
.homepage .company-clients-body { min-width:0; padding:24px 28px; background:#fff; }
.homepage .company-clients-list { list-style:none; padding:0; margin:0; line-height:1.85; }
.homepage .company-clients-list li { white-space:nowrap; }
.homepage .company-clients-note { margin:0; text-align:right; }
@media(max-width:600px) {
 .homepage .company-clients { grid-template-columns:minmax(0,1fr); font-size:12px; }
 .homepage .company-clients-heading { padding:14px 10px; }
 .homepage .company-clients-body { padding:16px 12px; font-size:clamp(10px,2.8vw,12px); }
}

/* Compact portfolio cards; full specifications live on the detail pages. */
.homepage .work-card-title { margin:0 0 16px; color:var(--ink); font-size:18px; font-weight:700; line-height:1.6; }
.homepage .work-card-credit { margin:0 0 12px; color:#74818b; font-size:10px; line-height:1.7; overflow-wrap:anywhere; }
.homepage .work-details-link { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; border:1px solid #d9e5e6; border-radius:5px; background:#edf3f4; color:#20535a; font-size:13px; }
.homepage .work-details-link:hover { background:#d7ebeb; }
@media(max-width:600px) { .homepage .work-card-title { font-size:16px; } }
