/* ============================================================
   旭精工株式会社 — コーポレート 6P + 採用
   concept: 「±0.01に、誠意を。」
   keywords: 精度 / 規律 / ものづくりの誇り
   palette: steel navy × graphite × signal orange
   ============================================================ */

:root {
  --steel: #10151d;
  --steel-2: #1d222d;
  --steel-3: #2b3342;
  --orange: #e68539;
  --orange-deep: #c96f28;
  --bg: #f2f3f5;
  --white: #ffffff;
  --gray: #6a7280;
  --line: #d8dbe0;

  --ff-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --ff-sans: "Noto Sans JP", sans-serif;
  --ff-en: "Barlow Condensed", "Arial Narrow", sans-serif;

  --pad-x: clamp(20px, 5vw, 80px);
  --sec-y: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(0.075, 0.82, 0.165, 1);
  --ease-slide: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  color: var(--steel);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--orange); color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- heading ---------- */
.en-label {
  font-family: var(--ff-en);
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
.en-label::before { content: ""; width: 40px; height: 1px; background: var(--orange); }
.sec-head { margin-bottom: clamp(40px, 5.5vw, 68px); }
.sec-head .jp {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-top: 14px;
}
.sec-head .lead { margin-top: 14px; color: var(--gray); font-size: 14.5px; max-width: 620px; }
.sec-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  border-bottom: 2px solid var(--steel);
  padding-bottom: 28px;
}
.sec-head--row .idx {
  font-family: var(--ff-en);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  color: var(--line);
  line-height: 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 17px 40px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--steel);
  color: #fff;
  border: 1px solid var(--steel);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-slide);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn::after {
  content: "";
  width: 18px; height: 8px;
  background: currentColor;
  clip-path: polygon(0 45%, 78% 45%, 78% 0, 100% 50%, 78% 100%, 78% 55%, 0 55%);
  transition: transform 0.35s var(--ease);
}
.btn:hover::after { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--steel); }
.btn--ghost:hover { color: #fff; }
.btn--orange { background: var(--orange); border-color: var(--orange); }
.btn--orange::before { background: var(--steel); }
.btn--white { background: #fff; border-color: #fff; color: var(--steel); }
.btn--white::before { background: var(--orange); }
.btn--white:hover { color: #fff; }

/* ---------- header ---------- */
.l-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.l-header.in { animation: header_in 0.4s var(--ease) both; }
.l-header.out { animation: header_out 0.2s var(--ease) both; }
@keyframes header_in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes header_out { from { transform: translateY(0); } to { transform: translateY(-100%); } }
.l-header__inner {
  max-width: 1440px; margin: 0 auto;
  height: 72px;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__box {
  width: 38px; height: 38px;
  background: var(--steel);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 19px;
}
.logo__name { font-family: var(--ff-display); font-weight: 900; font-size: 19px; letter-spacing: 0.08em; line-height: 1.2; }
.logo__name small { display: block; font-family: var(--ff-en); font-weight: 500; font-size: 10px; letter-spacing: 0.3em; color: var(--gray); text-transform: uppercase; }
.g-nav { display: flex; gap: 4px; align-items: center; }
.g-nav a {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
  position: relative;
}
.g-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-slide);
}
.g-nav a:hover::after, .g-nav a[aria-current="page"]::after { transform: scaleX(1); }
.l-header__cta { padding: 12px 24px; font-size: 12.5px; }

.hamburger { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; z-index: 120; }
.hamburger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--steel); transition: transform 0.35s var(--ease), opacity 0.25s; }
.hamburger span:nth-child(1) { top: 18px; }
.hamburger span:nth-child(2) { top: 23px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0;
  background: var(--steel);
  z-index: 110;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 10vw;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer a {
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(22px, 5.6vw, 30px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; align-items: baseline;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
}
.drawer.is-open a { transform: none; opacity: 1; }
.drawer a small { font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.3em; color: var(--orange); text-transform: uppercase; font-weight: 500; }
.drawer a:nth-child(1) { transition-delay: 0.06s; }
.drawer a:nth-child(2) { transition-delay: 0.12s; }
.drawer a:nth-child(3) { transition-delay: 0.18s; }
.drawer a:nth-child(4) { transition-delay: 0.24s; }
.drawer a:nth-child(5) { transition-delay: 0.3s; }
.drawer a:nth-child(6) { transition-delay: 0.36s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: max(640px, 92vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--steel);
  color: #fff;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 2.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero.is-loaded .hero__img { opacity: 0.55; transform: scale(1); }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16,21,29,0.9) 0%, rgba(16,21,29,0.2) 55%),
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255,255,255,0.05) calc(25% - 1px) 25%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(56px, 8vw, 96px);
}
.hero__kicker { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--orange); opacity: 0; transition: opacity 1s ease 0.4s; }
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin: 18px 0 26px;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-slide);
}
.hero.is-loaded .hero__kicker { opacity: 1; }
.hero.is-loaded h1 .ln:nth-child(1) > span { transform: none; transition-delay: 0.55s; }
.hero.is-loaded h1 .ln:nth-child(2) > span { transform: none; transition-delay: 0.72s; }
.hero__sub { font-size: 14.5px; color: rgba(255,255,255,0.78); letter-spacing: 0.08em; opacity: 0; transition: opacity 1s ease 1.2s; }
.hero.is-loaded .hero__sub { opacity: 1; }
.hero__cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; transition: opacity 1s ease 1.4s; }
.hero.is-loaded .hero__cta { opacity: 1; }
.hero__meta {
  position: absolute;
  top: clamp(96px, 14vh, 130px);
  right: var(--pad-x);
  z-index: 2;
  text-align: right;
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 2.4;
  opacity: 0;
  transition: opacity 1s ease 1s;
}
.hero.is-loaded .hero__meta { opacity: 1; }

/* ---------- numbers ---------- */
.num-band { background: var(--steel); color: #fff; }
.num-band .inner {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.num-item { border-left: 1px solid rgba(255,255,255,0.16); padding-left: 24px; }
.num-item .num { font-family: var(--ff-en); font-size: clamp(44px, 5.5vw, 68px); font-weight: 500; line-height: 1; }
.num-item .num .unit { font-size: 0.4em; color: var(--orange); margin-left: 4px; }
.num-item .lbl { margin-top: 10px; font-size: 12px; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); }

/* ---------- business cards ---------- */
.biz-list { border-top: 2px solid var(--steel); }
.biz-item {
  display: grid;
  grid-template-columns: 90px 1fr 200px;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.4s var(--ease);
  position: relative;
}
.biz-item:hover { background: #fff; padding-left: 20px; }
.biz-item .no { font-family: var(--ff-en); font-size: 30px; font-weight: 500; color: var(--orange); }
.biz-item h3 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(18px, 2.2vw, 23px); letter-spacing: 0.04em; }
.biz-item p { font-size: 13.5px; color: var(--gray); margin-top: 6px; }
.biz-item .arrow {
  width: 52px; height: 52px;
  border: 1px solid var(--steel);
  display: grid; place-items: center;
  justify-self: end;
  transition: background 0.3s, color 0.3s;
  color: var(--steel);
}
.biz-item:hover .arrow { background: var(--orange); border-color: var(--orange); color: #fff; }
.biz-item .arrow svg { width: 18px; height: 10px; }

/* ---------- split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split .imgbox { overflow: hidden; }
.split .imgbox img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 1.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.split .imgbox.is-inview img { transform: scale(1); }
.split h3 { font-family: var(--ff-display); font-weight: 900; font-size: clamp(21px, 2.8vw, 30px); line-height: 1.6; margin: 14px 0 16px; letter-spacing: 0.04em; }
.split p { color: var(--ink-2, #3c4350); font-size: 14.5px; color: #3c4350; }

/* ---------- news list ---------- */
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid;
  grid-template-columns: 120px 90px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 8px;
  transition: background 0.3s, padding-left 0.4s var(--ease);
}
.news-list a:hover { background: #fff; padding-left: 20px; }
.news-list time { font-family: var(--ff-en); font-size: 15px; letter-spacing: 0.1em; color: var(--gray); }
.news-list .cat {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  border: 1px solid var(--orange);
  color: var(--orange-deep);
  padding: 3px 10px;
  text-align: center;
}
.news-list .ttl { font-size: 14.5px; }
.news-list .go { font-family: var(--ff-en); font-size: 13px; letter-spacing: 0.2em; color: var(--orange); text-transform: uppercase; }

/* ---------- recruit ---------- */
.recruit-hero {
  background: var(--steel);
  color: #fff;
  padding: calc(72px + clamp(64px, 9vw, 110px)) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  position: relative;
}
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  padding: 20px 0;
  margin-top: 56px;
}
.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 52px);
  letter-spacing: 0.1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.5);
  white-space: nowrap;
}
.marquee__track span.fill { color: var(--orange); -webkit-text-stroke: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.job-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.job-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 30px;
  border-top: 4px solid var(--orange);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.job-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -28px rgba(16,21,29,0.3); }
.job-card h3 { font-family: var(--ff-display); font-weight: 700; font-size: 19px; margin-bottom: 12px; }
.job-card dl { display: grid; grid-template-columns: 84px 1fr; gap: 8px 14px; font-size: 13px; }
.job-card dt { color: var(--orange-deep); font-weight: 700; }
.job-card dd { color: #3c4350; }

/* ---------- company ---------- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; }
.info-table th, .info-table td { padding: 20px 24px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; }
.info-table th { width: 200px; font-weight: 700; color: var(--steel); background: #fafbfc; letter-spacing: 0.06em; }

/* ---------- page hero ---------- */
.p-hero {
  padding: calc(72px + clamp(64px, 9vw, 110px)) 0 clamp(56px, 7vw, 84px);
  background: var(--steel);
  color: #fff;
}
.p-hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 50px);
  letter-spacing: 0.05em;
  margin-top: 14px;
}
.breadcrumb { margin-top: 18px; font-size: 12px; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); display: flex; gap: 10px; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span[aria-current] { color: var(--orange); }

/* ---------- contact ---------- */
.c-form { background: #fff; border: 1px solid var(--line); padding: clamp(28px, 5vw, 56px); }
.f-field { margin-bottom: 26px; }
.f-field label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin-bottom: 9px; }
.f-required, .f-optional { font-size: 10px; padding: 2px 9px; letter-spacing: 0.1em; }
.f-required { background: var(--steel); color: #fff; }
.f-optional { background: var(--line); color: var(--gray); }
.f-field input, .f-field textarea, .f-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  font-size: 14.5px;
  appearance: none;
  border-radius: 0;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.f-field textarea { min-height: 150px; resize: vertical; }
.f-field input:focus, .f-field textarea:focus, .f-field select:focus { outline: none; border-color: var(--steel); background: #fff; box-shadow: 0 0 0 3px rgba(16,21,29,0.08); }
.f-field.is-error input, .f-field.is-error textarea { border-color: #c22e2e; background: #fdf5f5; }
.f-error-msg { display: none; margin-top: 7px; font-size: 12px; color: #c22e2e; }
.f-field.is-error .f-error-msg { display: block; }
.f-success { display: none; text-align: center; padding: 56px 20px; }
.f-success.is-visible { display: block; }
.f-success h3 { font-family: var(--ff-display); font-size: 22px; margin-bottom: 12px; }
.f-success p { color: var(--gray); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; }
.cta-band .inner {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--ff-display); font-weight: 900; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: 0.05em; line-height: 1.5; }
.cta-band p { font-size: 14px; opacity: 0.85; margin-top: 8px; }

/* ---------- footer ---------- */
.l-footer { background: var(--steel); color: rgba(255,255,255,0.65); }
.l-footer__inner {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(52px, 7vw, 84px) var(--pad-x) 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.l-footer .logo__name { color: #fff; }
.l-footer h4 { font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.3em; color: var(--orange); margin-bottom: 18px; font-weight: 500; text-transform: uppercase; }
.l-footer li { margin-bottom: 10px; font-size: 13px; }
.l-footer a:hover { color: var(--orange); }
.l-footer address { font-style: normal; font-size: 13px; line-height: 2.2; }
.l-footer__copy { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px var(--pad-x); text-align: center; font-size: 11px; letter-spacing: 0.18em; color: rgba(255,255,255,0.4); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.85s ease, transform 0.95s var(--ease); }
[data-reveal].is-inview { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="left"].is-inview, [data-reveal="right"].is-inview { transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }

.sec { padding: var(--sec-y) 0; }
.sec--white { background: #fff; }

@media (max-width: 960px) {
  .g-nav, .l-header__cta { display: none; }
  .hamburger { display: block; }
  .num-band .inner { grid-template-columns: repeat(2, 1fr); }
  .biz-item { grid-template-columns: 60px 1fr; }
  .biz-item .arrow { display: none; }
  .split { grid-template-columns: 1fr; }
  .news-list a { grid-template-columns: 100px 1fr; }
  .news-list .cat { display: none; }
  .news-list .go { display: none; }
  .job-cards { grid-template-columns: 1fr; }
  .l-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .l-footer__inner { grid-template-columns: 1fr; }
  .btn { width: 100%; max-width: 360px; }
  .hero__meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}
