@charset "UTF-8";
/* =========================================================
   西口建設 — コーポレート＆採用サイト デザインカンプ
   Shared design system (PC / SP responsive)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — blue / trustworthy corporate */
  --c-navy:      #0a2540;
  --c-primary:   #0b4da2;
  --c-primary-d: #083a7d;
  --c-accent:    #1e88e5;
  --c-cyan:      #19b3d8;

  --c-text:      #1f2a37;
  --c-text-sub:  #5a6b7b;
  --c-line:      #e3e8ee;
  --c-bg:        #ffffff;
  --c-bg-soft:   #f4f7fb;
  --c-bg-blue:   #eef4fb;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);

  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(10,37,64,.06);
  --shadow:    0 14px 40px rgba(10,37,64,.10);

  --ease: cubic-bezier(.22,.61,.36,1);

  --ff-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --ff-en: "Montserrat", var(--ff-jp);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-jp);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), opacity .25s var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--soft { background: var(--c-bg-soft); }
.section--blue { background: var(--c-bg-blue); }
.section--navy { background: var(--c-navy); color: #fff; }

.en-label {
  font-family: var(--ff-en);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 13px;
  color: var(--c-accent);
  text-transform: uppercase;
  display: inline-block;
}
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .en-label { margin-bottom: 12px; }
.section-title {
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-navy);
}
.section--navy .section-title { color: #fff; }
.section-title small { display: block; font-size: .5em; font-weight: 500; color: var(--c-text-sub); margin-top: 14px; letter-spacing: .04em; }
.section--navy .section-title small { color: rgba(255,255,255,.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11,77,162,.28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn::after { content: ""; width: 18px; height: 8px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='8'%3E%3Cpath d='M0 4h15M11 1l4 3-4 3' stroke='%23000' stroke-width='1.4' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='8'%3E%3Cpath d='M0 4h15M11 1l4 3-4 3' stroke='%23000' stroke-width='1.4' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(11,77,162,.34); background: var(--c-primary-d); }
.btn--ghost { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); box-shadow: none; }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--white { background: #fff; color: var(--c-primary); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn--lg { padding: 20px 44px; font-size: 16px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
  transition: transform .4s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; z-index: 2; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--c-primary), var(--c-cyan));
  display: grid; place-items: center; color: #fff; font-family: var(--ff-en); font-weight: 800; font-size: 20px;
}
.brand__name { font-weight: 700; font-size: 19px; color: var(--c-navy); line-height: 1.2; }
.brand__name span { display: block; font-family: var(--ff-en); font-size: 10px; letter-spacing: .22em; color: var(--c-text-sub); font-weight: 600; }

.gnav { display: flex; align-items: center; gap: 30px; }
.gnav__menu { display: flex; gap: 26px; }
.gnav__menu a { font-weight: 600; font-size: 15px; color: var(--c-navy); position: relative; padding-block: 6px; }
.gnav__menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--c-accent); transition: width .3s var(--ease); }
.gnav__menu a:hover { color: var(--c-primary); }
.gnav__menu a:hover::after,
.gnav__menu a[aria-current="page"]::after { width: 100%; }
.gnav__cta { display: flex; gap: 12px; }
.gnav__cta .btn { padding: 12px 24px; font-size: 14px; }

/* Hamburger (visible on SP) */
.hamburger {
  display: none; position: relative; width: 52px; height: 52px; z-index: 120;
  border-radius: 10px; background: var(--c-primary);
}
.hamburger span { position: absolute; left: 14px; width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease); }
.hamburger span:nth-child(1) { top: 18px; }
.hamburger span:nth-child(2) { top: 25px; }
.hamburger span:nth-child(3) { top: 32px; }
.is-menu-open .hamburger span:nth-child(1) { top: 25px; transform: rotate(45deg); }
.is-menu-open .hamburger span:nth-child(2) { opacity: 0; }
.is-menu-open .hamburger span:nth-child(3) { top: 25px; transform: rotate(-45deg); }

/* Drawer (nakaharagumi-style full overlay) */
.drawer {
  position: fixed; inset: 0; z-index: 110;
  background: linear-gradient(135deg, var(--c-navy), var(--c-primary-d));
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 10vw, 80px) var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .6s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
.is-menu-open .drawer { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.drawer__inner { max-width: 760px; margin-inline: auto; width: 100%; }
.drawer__menu li {
  border-bottom: 1px solid rgba(255,255,255,.16);
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.is-menu-open .drawer__menu li { opacity: 1; transform: translateY(0); }
.is-menu-open .drawer__menu li:nth-child(1){ transition-delay:.18s }
.is-menu-open .drawer__menu li:nth-child(2){ transition-delay:.24s }
.is-menu-open .drawer__menu li:nth-child(3){ transition-delay:.30s }
.is-menu-open .drawer__menu li:nth-child(4){ transition-delay:.36s }
.is-menu-open .drawer__menu li:nth-child(5){ transition-delay:.42s }
.is-menu-open .drawer__menu li:nth-child(6){ transition-delay:.48s }
.is-menu-open .drawer__menu li:nth-child(7){ transition-delay:.54s }
.drawer__menu a {
  display: flex; align-items: baseline; gap: 18px; padding: 20px 4px;
  font-size: clamp(20px, 4vw, 30px); font-weight: 700;
}
.drawer__menu a:hover { color: var(--c-cyan); padding-left: 14px; }
.drawer__menu a .num { font-family: var(--ff-en); font-size: 13px; color: var(--c-cyan); letter-spacing: .1em; }
.drawer__foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: rgba(255,255,255,.8); font-size: 14px; }
.drawer__foot a { font-family: var(--ff-en); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding-top: var(--header-h);
  color: #fff; overflow: hidden;
  background: linear-gradient(120deg, rgba(8,37,64,.78), rgba(11,77,162,.55)),
              url("../img/hero.svg") center/cover no-repeat;
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__copy {
  font-size: clamp(32px, 6vw, 64px); font-weight: 700; line-height: 1.25;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.hero__copy .accent { color: var(--c-cyan); }
.hero__lead { margin-top: 24px; font-size: clamp(15px, 2vw, 18px); max-width: 520px; opacity: .95; }
.hero__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; font-family: var(--ff-en); font-size: 11px; letter-spacing: .2em; color: #fff; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 50px; margin: 10px auto 0; background: rgba(255,255,255,.7); animation: scrollLine 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0%{transform:scaleY(0);} 40%{transform:scaleY(1);} 100%{transform:scaleY(0); transform-origin:bottom;} }

/* Page hero (sub pages) */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 70px;
  background: linear-gradient(120deg, rgba(8,37,64,.85), rgba(11,77,162,.6)),
              url("../img/hero.svg") center/cover no-repeat;
  color: #fff; text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 700; }
.page-hero .en-label { color: var(--c-cyan); margin-bottom: 10px; }

/* Breadcrumb */
.breadcrumb { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 14px; font-size: 13px; color: var(--c-text-sub); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--c-line); }

/* =========================================================
   Marquee (横に流れる画像) — nakaharagumi-style
   ========================================================= */
.marquee { overflow: hidden; width: 100%; padding-block: 8px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 38s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { width: clamp(220px, 28vw, 340px); aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* =========================================================
   Cards & grids
   ========================================================= */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16/10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 22px 22px 26px; }
.card__cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--c-primary); background: var(--c-bg-blue); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.card__title { font-size: 18px; font-weight: 700; color: var(--c-navy); line-height: 1.5; }
.card__meta { margin-top: 10px; font-size: 13px; color: var(--c-text-sub); }

/* Feature item (仕事内容 / strengths) */
.feature { display: flex; gap: 20px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); }
.feature__num { font-family: var(--ff-en); font-weight: 800; font-size: 34px; color: var(--c-bg-blue); -webkit-text-stroke: 1px var(--c-accent); line-height: 1; flex: none; }
.feature h3 { font-size: 19px; color: var(--c-navy); margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--c-text-sub); }

/* Number / stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat__num { font-family: var(--ff-en); font-weight: 800; font-size: clamp(38px, 6vw, 56px); color: var(--c-primary); line-height: 1; }
.stat__num small { font-size: .4em; margin-left: 4px; }
.stat__label { margin-top: 10px; font-size: 14px; color: var(--c-text-sub); font-weight: 600; }

/* =========================================================
   Tables (募集要項)
   ========================================================= */
.def-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.def-table th, .def-table td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--c-line); font-size: 15px; vertical-align: top; }
.def-table th { width: 26%; background: var(--c-bg-blue); color: var(--c-navy); font-weight: 700; }
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: none; }

/* =========================================================
   Forms (エントリー / お問い合わせ)
   ========================================================= */
.form { max-width: 760px; margin-inline: auto; }
.form__row { margin-bottom: 26px; }
.form__row label { display: block; font-weight: 700; color: var(--c-navy); margin-bottom: 10px; font-size: 15px; }
.req { font-size: 11px; color: #fff; background: #e0395a; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.opt { font-size: 11px; color: var(--c-text-sub); background: var(--c-bg-soft); padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--c-text);
  border: 1.5px solid var(--c-line); border-radius: 8px; background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(30,136,229,.15); outline: none; }
.form textarea { min-height: 160px; resize: vertical; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: 13px; color: var(--c-text-sub); margin-top: 6px; }
.form__submit { text-align: center; margin-top: 36px; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.form__check input { width: auto; margin-top: 4px; }

/* Step indicator */
.steps { display: flex; justify-content: center; gap: 0; margin-bottom: 48px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--c-text-sub); font-weight: 700; font-size: 14px; }
.steps li::after { content: ""; width: 40px; height: 2px; background: var(--c-line); margin: 0 16px; }
.steps li:last-child::after { display: none; }
.steps .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c-line); color: #fff; font-family: var(--ff-en); }
.steps li.is-active { color: var(--c-primary); }
.steps li.is-active .num { background: var(--c-primary); }

/* =========================================================
   Interview / Article detail
   ========================================================= */
.article { max-width: 800px; margin-inline: auto; }
.article h2 { font-size: clamp(22px,3vw,30px); color: var(--c-navy); margin: 48px 0 18px; padding-left: 16px; border-left: 5px solid var(--c-accent); }
.article h3 { font-size: 20px; color: var(--c-navy); margin: 32px 0 12px; }
.article p { margin-bottom: 20px; color: var(--c-text); }
.article img { border-radius: var(--radius); margin: 24px 0; }
.qa { margin-bottom: 30px; }
.qa__q { font-weight: 700; color: var(--c-primary); font-size: 18px; display: flex; gap: 12px; margin-bottom: 10px; }
.qa__q::before { content: "Q"; font-family: var(--ff-en); background: var(--c-primary); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 15px; }
.qa__a { display: flex; gap: 12px; }
.qa__a::before { content: "A"; font-family: var(--ff-en); background: var(--c-bg-blue); color: var(--c-primary); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 15px; }

.profile-card { display: flex; gap: 24px; align-items: center; background: var(--c-bg-soft); border-radius: var(--radius); padding: 28px; margin-bottom: 40px; }
.profile-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; flex: none; }
.profile-card .role { color: var(--c-accent); font-weight: 700; font-size: 13px; }
.profile-card .name { font-size: 22px; font-weight: 700; color: var(--c-navy); }
.profile-card .name span { font-size: 13px; color: var(--c-text-sub); font-weight: 500; margin-left: 8px; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--c-primary), var(--c-cyan));
  color: #fff; text-align: center; padding-block: clamp(50px, 8vw, 90px);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 38px); margin-bottom: 14px; }
.cta-band p { opacity: .92; margin-bottom: 30px; }
.cta-band .btn { background: #fff; color: var(--c-primary); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--c-navy); color: rgba(255,255,255,.78); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name span { color: rgba(255,255,255,.55); }
.footer-about { font-size: 14px; margin-top: 18px; max-width: 320px; }
.footer-col h4 { font-family: var(--ff-en); font-size: 13px; letter-spacing: .12em; color: var(--c-cyan); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .12s; }
.reveal[data-delay="2"]{ transition-delay: .24s; }
.reveal[data-delay="3"]{ transition-delay: .36s; }

/* =========================================================
   Responsive — SP
   ========================================================= */
@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .gnav__menu, .gnav__cta { display: none; }
  .hamburger { display: block; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .feature { flex-direction: column; gap: 12px; }
  .profile-card { flex-direction: column; text-align: center; }
  .def-table th { width: 100%; }
  .def-table th, .def-table td { display: block; padding: 14px 18px; }
  .def-table td { padding-top: 0; }
  .steps li::after { width: 18px; margin: 0 8px; }
  .hero { min-height: 88vh; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
