/* ── コンクリートの地に、鋼と火花 ──────────────────────────── */
:root {
  /* Meiryo UI 優先。無い環境は OS 標準の日本語 UI 書体へ落とす */
  --ui: "Meiryo UI", Meiryo, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --con:     #E6E4DF;
  --con-2:   #D8D5CE;
  --panel:   #FFFFFF;
  --ink:     #16181A;
  --ink-2:   #464B51;
  --ink-3:   #757B82;
  --steel:   #2F3841;
  --steel-2: #414C58;
  --spark:   #DC5B21;
  --line:    #C8C5BD;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --con: #16181A; --con-2: #1E2124; --panel: #212528;
    --ink: #EDEBE6; --ink-2: #B3B7BC; --ink-3: #868C93;
    --steel: #C3CAD2; --steel-2: #9AA4AE; --spark: #F2733A;
    --line: #313639;
  }
}
:root[data-theme="dark"] {
  --con: #16181A; --con-2: #1E2124; --panel: #212528;
  --ink: #EDEBE6; --ink-2: #B3B7BC; --ink-3: #868C93;
  --steel: #C3CAD2; --steel-2: #9AA4AE; --spark: #F2733A;
  --line: #313639;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--con); color: var(--ink);
  font-family: var(--ui);
  font-size: 15.5px; line-height: 1.9; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 900; text-wrap: balance; letter-spacing: .01em; }
.anton { font-family: var(--ui); font-weight: 400; letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; }

.band { background: var(--spark); color: #fff; font-weight: 700; font-size: 11.5px; letter-spacing: .05em; padding: 7px 20px; text-align: center; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── ヒーロー：斜めに切る ──────────────────────────────────── */
.hero { position: relative; background: var(--steel); color: #fff; padding: 62px 0 96px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 90px;
  background: var(--con); transform: skewY(-2.2deg); transform-origin: bottom left;
}
.hero .wrap { position: relative; z-index: 2; }
.kick { font-size: 12px; letter-spacing: .3em; color: var(--spark); margin: 0 0 14px; }
.hero h1 { font-size: clamp(30px, 4.9vw, 62px); line-height: 1.24; }
.hero h1 em { font-style: normal; color: var(--spark); }
.hero .lede { max-width: 46ch; margin: 22px 0 0; color: #C9CED4; font-size: 15px; }

/* ── ヒーロー右：加工中のパネル ─────────────────────────────── */
.herogrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 46px; align-items: center; }
.machine { background: rgba(0,0,0,.24); border: 1px solid rgba(255,255,255,.14); padding: 15px 15px 17px; }
.machine .mbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--ui); font-size: 10.5px; letter-spacing: .16em; color: #9AA3AB; margin-bottom: 10px;
}
.machine .live { display: inline-flex; align-items: center; gap: 7px; color: var(--spark); }
.machine .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--spark); animation: blip 1.5s ease-in-out infinite; }
@keyframes blip { 0%,100% { opacity: .25; transform: scale(.65); } 50% { opacity: 1; transform: scale(1); } }
.machine svg { display: block; width: 100%; height: auto; }
.spin { animation: spin 2.4s linear infinite; transform-origin: 128px 116px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool { animation: cut 4s cubic-bezier(.4,0,.5,1) infinite; }
@keyframes cut { 0%, 8% { transform: translateX(0); } 42%, 62% { transform: translateX(-38px); } 100% { transform: translateX(0); } }
.chip { animation: chip 4s linear infinite; opacity: 0; }
.chip:nth-of-type(2) { animation-delay: .35s; }
.chip:nth-of-type(3) { animation-delay: .7s; }
@keyframes chip {
  0%, 40% { opacity: 0; transform: translate(0,0); }
  46% { opacity: .9; }
  62% { opacity: 0; transform: translate(26px, 26px); }
  100% { opacity: 0; }
}
.readout { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 13px; }
.readout div { border-left: 2px solid var(--spark); padding-left: 10px; }
.readout .k { font-size: 9px; letter-spacing: .14em; color: #9AA3AB; }
.readout .v { font-family: var(--ui); font-size: 21px; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.3; }

/* 流れるテロップ */
.marquee { position: relative; z-index: 2; margin-top: 34px; overflow: hidden; border-block: 1px solid rgba(255,255,255,.16); padding: 10px 0; }
.mrow { display: flex; gap: 40px; width: max-content; will-change: transform; animation: slide 26s linear infinite; }
.mrow span { font-family: var(--ui); font-size: 26px; color: rgba(255,255,255,.28); white-space: nowrap; letter-spacing: .06em; }
.mrow span b { color: var(--spark); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── 主張 ──────────────────────────────────────────────────── */
.thesis { padding: 70px 0 60px; }
.thesis h2 { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.5; }
.thesis h2 s { color: var(--ink-3); text-decoration-thickness: 2px; }
.thesis p { max-width: 62ch; color: var(--ink-2); margin: 20px 0 0; }

/* ── 数字 ──────────────────────────────────────────────────── */
.numbers { background: var(--panel); border-block: 1px solid var(--line); padding: 60px 0; }
.nhead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px; }
.nhead .no { font-family: var(--ui); font-size: 13px; color: var(--spark); letter-spacing: .12em; }
.nhead h2 { font-size: 26px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px 30px; }
.fig { border-top: 3px solid var(--steel); padding-top: 14px; }
.fig .v { font-family: var(--ui); font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.fig .v small { font-size: 17px; margin-left: 3px; color: var(--ink-3); font-family: var(--ui); }
.fig .k { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.fig .bar { height: 5px; background: var(--con-2); margin-top: 12px; position: relative; }
.fig .bar i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--spark); transition: width 1.2s cubic-bezier(.2,.85,.3,1); }
.nnote { font-size: 12.5px; color: var(--ink-3); margin: 26px 0 0; max-width: 70ch; }

/* ── 職種：写真の代わり ────────────────────────────────────── */
.jobs { padding: 66px 0; }
.jobgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 20px; }
.job { background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.ph {
  height: 130px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--con-2) 0 14px, var(--con) 14px 28px);
}
.ph::after {
  content: "本番はご提供の写真"; position: absolute; inset: auto 10px 10px auto;
  font-size: 10px; color: var(--ink-3); background: var(--panel); padding: 2px 8px; border: 1px solid var(--line);
}
.ph i {
  position: absolute; left: -40%; top: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: sweep 3.6s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -40%; } 60%, 100% { left: 120%; } }
.job .in { padding: 20px 20px 24px; }
.job .t { font-family: var(--ui); font-size: 12px; color: var(--spark); letter-spacing: .1em; }
.job h3 { font-size: 19px; margin: 5px 0 8px; }
.job p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
.job dl { display: grid; grid-template-columns: 62px minmax(0,1fr); font-size: 12.5px; margin: 0; }
.job dt { color: var(--ink-3); padding: 3px 0; } .job dd { margin: 0; padding: 3px 0; }

/* ── 1日 ───────────────────────────────────────────────────── */
.day { background: var(--steel); color: #fff; padding: 74px 0; position: relative; overflow: hidden; }
.day::before {
  content: ""; position: absolute; left: -5%; right: -5%; top: -1px; height: 80px;
  background: var(--con); transform: skewY(-2.2deg); transform-origin: top left;
}
.day .wrap { position: relative; z-index: 2; padding-top: 20px; }
.day h2 { font-size: 26px; margin-bottom: 8px; }
.day .lead { color: #C1C7CD; font-size: 14px; margin: 0 0 30px; }
.tl { position: relative; padding-left: 92px; }
.tl .spine { position: absolute; left: 62px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.16); }
.tl .spine i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--spark); transition: height .2s linear; }
.tl li { list-style: none; position: relative; padding: 15px 0; }
.tl li .h { position: absolute; left: -92px; top: 15px; width: 54px; text-align: right; font-family: var(--ui); font-size: 17px; color: var(--spark); }
.tl li::before {
  content: ""; position: absolute; left: -32px; top: 24px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--steel); border: 2px solid rgba(255,255,255,.4);
}
.tl li.hit::before { background: var(--spark); border-color: var(--spark); }
.tl h3 { font-size: 16px; margin-bottom: 2px; }
.tl p { margin: 0; font-size: 13.5px; color: #B7BEC5; }

/* ── 支援・見学 ────────────────────────────────────────────── */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.box { background: var(--panel); border: 1px solid var(--line); padding: 26px 24px; }
.box h3 { font-size: 19px; margin-bottom: 10px; }
.box p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.box ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.box li { padding: 5px 0 5px 20px; position: relative; color: var(--ink-2); }
.box li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 2px; background: var(--spark); }

/* ── 募集要項 ──────────────────────────────────────────────── */
.spec { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.spec th, .spec td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 148px; background: var(--con-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }

.apply { background: var(--spark); color: #fff; padding: 46px clamp(24px, 5vw, 54px); margin-top: 40px; }
.apply h2 { font-size: 25px; margin-bottom: 8px; }
.apply p { margin: 0 0 20px; opacity: .92; max-width: 54ch; }
.btn { display: inline-block; background: #fff; color: var(--spark); text-decoration: none; padding: 14px 38px; font-weight: 700; transition: transform .18s, box-shadow .22s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.apply small { display: block; margin-top: 13px; font-size: 11.5px; opacity: .82; }

.rise { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.85,.3,1); }
.rise.seen { opacity: 1; transform: none; }

/* ── 実装メモ ──────────────────────────────────────────────── */
.techgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 22px 30px; }
.techgrid dt { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.techgrid dd { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
.techgrid .m { font-family: var(--ui); letter-spacing: .04em; color: var(--spark); }

/* ── 問い合わせ ────────────────────────────────────────────── */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); gap: 16px 22px; max-width: 820px; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f.wide { grid-column: 1 / -1; }
.f > label { font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.f .req { color: var(--spark); }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f textarea, .f select {
  font: inherit; font-size: 14px; padding: 10px 11px; width: 100%;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 0;
}
.f textarea { min-height: 112px; resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--spark); }
.f .err { font-size: 11.5px; color: var(--spark); min-height: 1.15em; }
.f.bad input, .f.bad textarea, .f.bad select { border-color: var(--spark); }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.consent input { accent-color: var(--spark); margin-top: 5px; }
.submit {
  font: inherit; font-size: 15px; font-weight: 700; padding: 14px 42px; margin-top: 4px;
  background: var(--steel); color: #fff; border: none; cursor: pointer;
  transition: background .2s, transform .16s;
}
.submit:hover { background: var(--spark); transform: translateY(-1px); }
.sent { display: none; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--steel); background: var(--panel); font-size: 13px; max-width: 820px; }
.sent.on { display: block; }

/* ── ページ上部へ ──────────────────────────────────────────── */
.pagetop {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 50px; height: 50px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--spark); color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
}
.pagetop.on { opacity: 1; pointer-events: auto; transform: none; }
.pagetop:hover { background: var(--steel); }
.pagetop b { font-size: 15px; line-height: 1; }
.pagetop span { font-size: 7.5px; letter-spacing: .1em; margin-top: 3px; }

footer { padding: 32px 0 60px; font-size: 12.5px; color: var(--ink-3); }
footer p { margin: 0 0 8px; text-wrap: pretty; word-break: auto-phrase; }

@media (max-width: 940px) {
  .herogrid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 620px) {
  .tl { padding-left: 66px; } .tl .spine { left: 38px; }
  .tl li .h { left: -66px; width: 40px; font-size: 14px; }
  .tl li::before { left: -30px; }
  .spec th { width: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .mrow { animation: none; } .ph i { animation: none; display: none; }
  .rise { opacity: 1 !important; transform: none !important; }
  .btn:hover, .submit:hover, .pagetop:hover { transform: none; }
  .spin, .tool, .chip, .machine .live i { animation: none; }
  .chip { opacity: .6; }
}
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }
