:root{
  --paper:#ffffff; --soft:#f3f6f8; --soft-2:#e8eef2; --ink:#14202b; --muted:#5d6c78; --line:#d6dfe5;
  --blue:#0b6fa0; --blue-ink:#ffffff; --blue-deep:#084f73; --dark:#0f2434; --dark-fg:#e6eef3; --dark-muted:#9fb3c1;
  --frame:#e4ecf1; --frame-2:#d3dfe7;
  --head:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",sans-serif;
  --body:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  --en:"Inter","Zen Kaku Gothic New",sans-serif;
  --pad:clamp(20px,5vw,72px); --max:1320px;
}
.wrap {
  max-width: var(--max);
  margin: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
/* header (元のモック) */
.site-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:var(--paper);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:84px;gap:28px}
.brand{font-family:var(--en);font-size:20px;letter-spacing:.06em;font-weight:700;line-height:1.1;white-space:nowrap}
.brand small{display:block;font-size:9.5px;letter-spacing:.22em;font-weight:500;color:var(--muted);margin-top:5px}
.nav{display:flex;gap:4px;align-items:center;font-size:14px;font-weight:700}
.nav>a,.nav>.has-menu>a{display:block;padding:10px 14px}
.nav>a:hover,.has-menu>a:hover{color:var(--blue)}
.nav .btn{font-size:14px;min-height:44px;padding:10px 20px;margin-left:10px}
.has-menu{position:relative}
.has-menu>a::after{content:"";display:inline-block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-3px);margin-left:9px}
.menu{position:absolute;top:100%;left:0;min-width:300px;background:var(--paper);border:1px solid var(--line);box-shadow:0 18px 40px rgba(10,30,50,.12);padding:12px;display:none;flex-direction:column}
.has-menu:hover .menu,.has-menu:focus-within .menu{display:flex}
.menu a{display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:baseline;padding:12px 14px;font-weight:700}
.menu a:hover{background:var(--soft);color:var(--blue)}
.menu .n{font-family:var(--en);font-size:11px;color:var(--blue);letter-spacing:.08em}
.menu .en{font-family:var(--en);font-size:12px;letter-spacing:.12em;color:var(--muted);display:block;font-weight:600}
.menu small{display:block;font-weight:400;color:var(--muted);font-size:12.5px;line-height:1.6}
.menu-button{display:none;background:none;border:1px solid var(--line);padding:9px 14px;color:var(--ink);font-weight:700;font-size:13px}
@media(max-width:979px){.header-inner{min-height:68px}.menu-button{display:block}.nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--paper);border-bottom:1px solid var(--line);padding:16px var(--pad) 24px;align-items:stretch;flex-direction:column;gap:0}.nav.open{display:flex}.nav>a,.has-menu>a{padding:14px 0;border-bottom:1px solid var(--line)}.has-menu>a::after{display:none}.menu{position:static;display:flex;border:0;box-shadow:none;padding:0 0 8px;min-width:0}.menu a{padding:10px 0 10px 12px}.nav .btn{margin:16px 0 0}}

.category::after{content:"";display:block;border-top:1px solid var(--line);margin-top:2px}
.category:hover::after{border-top-color:var(--blue)}
.industry .ind-img{display:block;margin-bottom:16px;overflow:hidden}
.industry .ind-img img{display:block;width:100%;height:auto;aspect-ratio:596/334;object-fit:cover;transition:transform .3s}
.industry a:hover .ind-img img{transform:scale(1.03)}

/* =========================================================
   Shared header (renewal 2026-10)
   Same look as NewUITemplate renewal2026_global-header.css (.tp-gh), on the Drupal markup:
   .site-header > .header-inner > .brand-logo / #menu-toggle / #navigation
   - Fixed, 74px tall at every width
   - 1023px and below: hamburger (js/site.js toggles .open on #menu-toggle and #navigation)
   - Every rule is scoped to .site-header so page CSS (style.css, bootstrap .container, etc.) does not change it
   ========================================================= */
.site-header {
  --gh-h: 74px;
  --gh-bg: #111;
  --gh-line: #2a2a2a;
  --gh-accent: #9fd0ec;
  --gh-blue: #0b6fa0;
  --gh-blue-deep: #084f73;
  --gh-pad: clamp(20px, 5vw, 72px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-sizing: border-box;
  height: var(--gh-h);
  margin: 0;
  background: var(--gh-bg);
  border-bottom: 1px solid var(--gh-bg);
  color: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
/* Page CSS sets fonts on a / p / div (e.g. recruit.css "a { font-family: ... !important }", case.css "a { line-height: 1.6 }") */
.site-header :where(div, nav, a, span, button) { font-family: inherit !important; line-height: inherit; }
.site-header a { color: inherit; text-decoration: none; text-shadow: none; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 2px solid var(--gh-accent); outline-offset: 4px; }
.site-header .header-inner {
  width: auto;
  max-width: 1320px;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 max(var(--gh-pad), env(safe-area-inset-right, 0px)) 0 max(var(--gh-pad), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
/* .header-inner is also a bootstrap .container: its clearfix ::before/::after would become flex items */
.site-header .header-inner::before, .site-header .header-inner::after { content: none; display: none; }

/* Logo */
.site-header .brand-logo { display: flex; align-items: flex-end; gap: 10px; flex: 0 0 auto; margin: 0; font: inherit; letter-spacing: normal; }
.site-header .brand-logo img { display: block; height: 30px; width: auto; max-width: none; margin: 0; }
.site-header .brand-logo span { font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; color: #fff; padding-bottom: 2px; white-space: nowrap; }

/* PC navigation */
.site-header .nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; font-size: 14px; font-weight: 700; }
.site-header .nav > a, .site-header .has-menu > a { display: block; padding: 10px 14px; white-space: nowrap; }
.site-header .nav > a:hover, .site-header .has-menu > a:hover { color: var(--gh-accent); }
.site-header .nav > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 36px;
  min-height: 0;
  margin-left: 10px;
  padding: 0 20px;
  border: 1px solid var(--gh-blue);
  border-radius: 3px;
  background: var(--gh-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  transition: background .15s;
}
.site-header .nav > .btn:hover { background: var(--gh-blue-deep); border-color: var(--gh-blue-deep); color: #fff; }
.site-header .has-menu { position: relative; }
.site-header .has-menu > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
.site-header .menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  padding: 12px;
  background: var(--gh-bg);
  border: 1px solid var(--gh-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  color: #fff;
  display: none;
  flex-direction: column;
}
.site-header .has-menu:hover .menu, .site-header .has-menu:focus-within .menu { display: flex; }
.site-header .menu a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  font-weight: 700;
}
.site-header .menu a:hover { background: #1f1f1f; color: var(--gh-accent); }
.site-header .menu .n { font-family: "Inter", "Zen Kaku Gothic New", sans-serif !important; font-size: 12px; letter-spacing: .08em; color: var(--gh-accent); }
.site-header .menu .en { display: block; font-family: "Inter", "Zen Kaku Gothic New", sans-serif !important; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: rgba(255, 255, 255, .62); }

/* Hamburger (hidden on PC) */
.site-header .menu-button {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-header .menu-button span {
  position: absolute;
  left: 8px;
  display: block;
  width: 28px;
  height: 2px;
  margin: 0;
  background: #fff;
  border-radius: 1px;
  box-shadow: none;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.site-header .menu-button span:nth-child(1) { top: 13px; }
.site-header .menu-button span:nth-child(2) { top: 21px; }
.site-header .menu-button span:nth-child(3) { top: 29px; }
.site-header .menu-button.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.site-header .menu-button.open span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.site-header .menu-button.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .site-header .menu-button { display: block; }
  .site-header .nav {
    display: flex;
    position: fixed;
    top: var(--gh-h);
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 999;
    max-height: calc(100vh - var(--gh-h));
    max-height: calc(100dvh - var(--gh-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px max(var(--gh-pad), env(safe-area-inset-right, 0px)) 28px max(var(--gh-pad), env(safe-area-inset-left, 0px));
    background: var(--gh-bg);
    border-bottom: 1px solid var(--gh-bg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .site-header .nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }
  .site-header .nav > a, .site-header .has-menu > a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .site-header .has-menu > a::after { display: none; }
  .site-header .menu { position: static; display: flex; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; background: transparent; }
  .site-header .menu a { padding: 10px 0 10px 12px; }
  .site-header .menu a:hover { background: transparent; }
  .site-header .nav > .btn { height: 48px; margin: 20px 0 0; }
}
/* Company name: hidden at 1199px and below so it does not overlap the menu */
@media (max-width: 1199px) {
  .site-header .brand-logo span { display: none; }
}
@media (max-width: 767px) {
  .site-header .brand-logo img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .menu-button span, .site-header .nav { transition: none !important; }
}

/* Page tops: every page already starts its content below a fixed 74px header
   (same height as the old .hero-header), so no page offsets are needed here. */
