/* EIGHT corporate design — shared with the approved October 2026 homepage.
 * Presentation only. Existing links, forms, data hooks and scripts are retained.
 * Scoped opt-in prevents this theme from changing internal tools and campaigns.
 */
body[data-corporate-theme="20261027"] {
  --corp-ink:#243d3b; --corp-green:#27634c; --corp-teal:#087f8c;
  --corp-paper:#fcfbf7; --corp-pale:#eef3ed; --corp-line:#dce3da;
  --corp-muted:#5b7068; --corp-radius:14px;
  --c-primary:#243d3b; --c-primary-2:#36594a; --c-primary-3:#223d34;
  --c-accent:#087f8c; --c-accent-2:#27634c;
  --c-base:#fcfbf7; --c-sub-base:#eef3ed;
  --c-text:#243d3b; --c-text-sub:#5b7068; --c-text-on-dark:#dce6dd;
  --c-line:#dce3da; --c-line-soft:#e8eee7;
  --f-jp:'Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;
  --f-en:inherit;
  margin:0; background:var(--corp-paper); color:var(--corp-ink);
  font-family:var(--f-jp); line-height:1.85; -webkit-font-smoothing:antialiased;
}
body[data-corporate-theme] *,body[data-corporate-theme] *::before,body[data-corporate-theme] *::after {box-sizing:border-box}
body[data-corporate-theme] :where(h1,h2,h3,h4) {text-wrap:pretty;overflow-wrap:break-word}
body[data-corporate-theme] :where(main,section,article,[data-cols]>*,[data-stack]>*) {min-width:0}
body[data-corporate-theme] :where(section[id],article[id],form[id],#entry-form) {scroll-margin-top:110px}
body[data-corporate-theme] :where(a,button,input,select,textarea,summary):focus-visible {outline:3px solid var(--corp-teal);outline-offset:4px}
body[data-corporate-theme] :where(input,select,textarea,button) {font-family:inherit}
body[data-corporate-theme] :where(input[type=checkbox],input[type=radio]) {accent-color:var(--corp-green)}

/* The production native-details navigation is kept; colors match the homepage. */
body[data-corporate-theme] header.sh-head {
  background:rgba(252,251,247,.97) !important; color:var(--corp-ink);
  border-color:var(--corp-line) !important; box-shadow:0 3px 14px #243d3b05;
  padding-block:18px !important;
}
body[data-corporate-theme] .sh-logo {min-height:44px}
body[data-corporate-theme] .sh-logo img {width:38px !important;height:38px !important;object-fit:contain}
body[data-corporate-theme] .sh-nav a:not(.sh-cta) {color:var(--corp-ink);min-height:44px;align-content:center}
body[data-corporate-theme] .sh-nav a:not(.sh-cta):hover {color:var(--corp-green);text-decoration:underline;text-underline-offset:6px}
body[data-corporate-theme] .sh-nav [aria-current=page] {text-decoration-color:var(--corp-green) !important}
body[data-corporate-theme] .sh-burger {border-color:var(--corp-line) !important;background:var(--corp-paper);color:var(--corp-ink);border-radius:10px !important}
body[data-corporate-theme] .sh-menu[open] .sh-nav {border-color:var(--corp-line)}
body[data-corporate-theme] footer.sh-foot {background:#223d34 !important;color:#e7eee8 !important}
body[data-corporate-theme] .sh-foot a {color:inherit}
body[data-corporate-theme] .sh-foot a:hover {color:#bde6ce;text-decoration:underline;text-underline-offset:4px}
body[data-corporate-theme] .sh-foot-legal {border-color:#486054 !important}
body[data-corporate-theme] :is(.sh-foot-nav>div>span,.sh-foot-legal a,.sh-foot-copy) {color:#b9c8bd !important}

/* Filled actions use the same restrained green gradient and round shape. */
body[data-corporate-theme] :is([data-corp-action=primary],.sh-cta,.btn-cta,.cs-btn,.rc-send,.form-submit button) {
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:46px;max-width:100%;border:1px solid transparent !important;border-radius:999px !important;
  background:linear-gradient(115deg,#2b6950,#184d3b) !important;color:#fff !important;
  box-shadow:0 3px 10px #184d3b16;font-weight:700;line-height:1.65;
  text-align:center;white-space:normal;overflow-wrap:anywhere;
  transition:background .2s,box-shadow .2s;
}
body[data-corporate-theme] :is([data-corp-action=primary],.sh-cta,.btn-cta,.cs-btn,.rc-send,.form-submit button):hover {
  background:linear-gradient(115deg,#245c46,#123d2f) !important;color:#fff !important;box-shadow:0 5px 16px #184d3b22;text-decoration:none;
}
body[data-corporate-theme] :is([data-corp-action=primary],.sh-cta,.btn-cta,.cs-btn,.rc-send,.form-submit button) :is(span,.material-icons,.material-icons-outlined) {color:inherit !important}
body[data-corporate-theme] :is(.btn-ghost,.nav-btn,.reset-btn) {border-radius:999px;border-color:var(--corp-line);min-height:44px}
body[data-corporate-theme] :is([data-corp-surface=card],.ct-entry,.ct-flow>div,.info-card,.calendar-card,.candidates-card,.thanks-card,.form-wrap,.highlight-card,.job-other-card,.job-flow .flow-step,.wk-card,.rn-row) {
  border-radius:var(--corp-radius) !important;border-color:var(--corp-line) !important;
}
body[data-corporate-theme] :is(.ct-entry,.ct-flow>div,.info-card,.calendar-card,.candidates-card,.thanks-card,.form-wrap,.highlight-card,.job-other-card,.job-flow .flow-step,.wk-card,.rn-row) {background:#fff}
body[data-corporate-theme] :is(.ct-entry,.job-other-card,.wk-card,.rn-row):hover {border-color:#9bb7a4 !important;box-shadow:0 6px 22px #184d3b0d}
body[data-corporate-theme] .ch4 {border-radius:var(--corp-radius);border-color:#6e9380 !important}
body[data-corporate-theme] :is(.job-summary,.job-conditions dt,.job-badge.salary,.candidate-item,.notice-box) {background:var(--corp-pale);border-color:var(--corp-line)}
body[data-corporate-theme] :is(.job-en,.job-cat-tag,.job-badges .ico,.ct-entry .n,.ct-entry .go,.ct-flow .n) {color:var(--corp-green) !important}
body[data-corporate-theme] .job-cat-tag {background:#e4efe6}
body[data-corporate-theme] .job-title {font-weight:800;line-height:1.6}
body[data-corporate-theme] .dojo-mission {background:linear-gradient(125deg,#27634c,#223d34)}
body[data-corporate-theme] .highlight-card {background:#fff}

/* Contact: keep each functional state and all calendar/validation behavior. */
body[data-corporate-theme] .page-hero {background:var(--corp-pale);color:var(--corp-ink)}
body[data-corporate-theme] .page-hero :is(h1,.lead) {color:var(--corp-ink)}
body[data-corporate-theme] .page-hero :is(.breadcrumb,.breadcrumb a) {color:var(--corp-muted)}
body[data-corporate-theme] .page-hero :is(.accent,.eyebrow .en) {color:var(--corp-green) !important}
body[data-corporate-theme] .page-hero h1 {max-width:100%;text-wrap:balance;line-height:1.65}
body[data-corporate-theme] .page-hero h1 .accent {display:inline-block;max-width:100%;font-weight:inherit}
body[data-corporate-theme] .tab-btn {background:#fff;border-color:var(--corp-line);border-radius:var(--corp-radius);padding:24px}
body[data-corporate-theme] .tab-btn :is(h3,.en) {color:var(--corp-green)}
body[data-corporate-theme] .tab-btn p {color:var(--corp-muted)}
body[data-corporate-theme] .tab-btn.active {background:var(--corp-green);border-color:var(--corp-green)}
body[data-corporate-theme] .tab-btn.active :is(h3,.en,p) {color:#fff !important}
body[data-corporate-theme] :is(.form-row input[type=text],.form-row input[type=email],.form-row input[type=tel],.form-row select,.form-row textarea,.rc-f input,.rc-f select,.rc-f textarea) {
  border-radius:9px;border-color:#bacbbf;background:#fff;color:var(--corp-ink);min-height:46px;
}
body[data-corporate-theme] :is(.req,.rc-f i) {background:#e0eee3;color:var(--corp-green);border-radius:4px}
body[data-corporate-theme] :is(.cal-day.is-selected,.time-slot.is-selected,.cal-day[aria-pressed=true],.time-slot[aria-pressed=true]) {background:var(--corp-green);border-color:var(--corp-green);color:#fff}
body[data-corporate-theme] :is(.cal-day,.time-slot) {border-radius:7px}
body[data-corporate-theme] button[data-filter][aria-pressed] {min-height:44px;border-color:var(--corp-green) !important;background:#fff !important;color:var(--corp-green) !important}
body[data-corporate-theme] button[data-filter][aria-pressed=true] {background:var(--corp-green) !important;color:#fff !important}
body[data-corporate-theme] :is(.wk-chip,.rn-chip) {border-radius:999px;border-color:var(--corp-line);min-height:44px}
body[data-corporate-theme] :is(.wk-chip.is-active,.rn-chip[style*="rgb(46, 53, 64)"],.rn-chip[style*="background:#2E3540"],.rn-chip[style*="background: #2E3540"]) {background:var(--corp-green) !important;color:#fff !important;border-color:var(--corp-green) !important}
body[data-corporate-theme] .rn-body {color:var(--corp-ink)}
body[data-corporate-theme] .rn-body a {color:var(--corp-teal)}

@media(max-width:1000px) {
  body[data-corporate-theme] header.sh-head {padding-block:12px !important}
  body[data-corporate-theme] .sh-menu[open] .sh-nav {background:var(--corp-paper) !important;box-shadow:0 12px 24px #243d3b12}
  body[data-corporate-theme] .sh-nav a {border-color:var(--corp-line) !important}
}
@media(max-width:640px) {
  body[data-corporate-theme] :where(section[id],article[id],form[id],#entry-form) {scroll-margin-top:88px}
  body[data-corporate-theme] .sh-logo img {width:34px !important;height:34px !important}
  body[data-corporate-theme] .tab-btn {padding:20px 16px}
  body[data-corporate-theme] .page-hero h1 {font-size:clamp(27px,6vw,34px)}
  body[data-corporate-theme] :is(.form-row input[type=text],.form-row input[type=email],.form-row input[type=tel],.form-row select,.form-row textarea,.rc-f input,.rc-f select,.rc-f textarea) {font-size:16px}
  body[data-corporate-theme] .form-submit button {width:100%;padding-inline:18px}
  body[data-corporate-theme] :is(.sh-foot-nav a,.sh-foot-legal a) {min-height:44px}
}
@media(prefers-reduced-motion:reduce) {
  body[data-corporate-theme] *,body[data-corporate-theme] *::before,body[data-corporate-theme] *::after {scroll-behavior:auto !important;animation:none !important;transition:none !important}
}
