/* 032 ひらく土木（採用） ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #fff4dc;
  --c-yellow: #ffc21a;
  --c-orange: #ff7a00;
  --c-ink: #1a1a1a;
  --c-accent-text: #9a3412;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "BIZ UDPGothic", sans-serif;
  --font-pop: "Dela Gothic One", sans-serif;
  --font-big: "Archivo Black", sans-serif;
  --header-h: 66px;
  --gut: 20px;
}
@media (min-width: 1080px) { :root { --header-h: 80px; --gut: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.sec-head { margin-bottom: 36px; position: relative; }
.sec-head__en { font-family: var(--font-big); font-size: clamp(56px, 12vw, 150px); line-height: .9; color: var(--c-ink); letter-spacing: -.01em; }
.h2 { font-family: var(--font-pop); font-weight: 400; font-size: clamp(24px, 3vw, 34px); line-height: 1.5; color: var(--c-ink); display: inline-block; background: var(--c-yellow); padding: 2px 14px; margin-top: 6px; transform: rotate(-2deg); }
.note { font-size: 15px; color: var(--c-sub); margin-top: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 12px; border: 3px solid var(--c-ink); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; box-shadow: 4px 4px 0 var(--c-ink); transition: transform .2s, box-shadow .2s, background-color .2s; }
.btn:hover, .btn:focus-visible { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--c-ink); }
.btn--ink { background: var(--c-ink); color: #fff; }
.btn--yellow { background: var(--c-yellow); color: var(--c-ink); border-color: var(--c-yellow); box-shadow: 4px 4px 0 var(--c-orange); }
.btn--outline { color: #fff; border-color: #fff; box-shadow: 4px 4px 0 var(--c-orange); }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--c-ink); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 var(--gut); }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-pop); font-size: 20px; color: #fff; text-decoration: none; white-space: nowrap; flex: none; }
.logo small { font-family: var(--font-big); font-size: 15px; color: var(--c-yellow); letter-spacing: .06em; }
.logo__mark { width: 26px; height: 26px; border-radius: 6px; background: repeating-linear-gradient(-45deg, var(--c-yellow) 0 6px, var(--c-ink) 6px 12px); border: 2px solid var(--c-yellow); flex: none; }
.gnav { display: none; }
.gnav a { color: #fff; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; background: var(--c-yellow); color: var(--c-ink); border-color: var(--c-yellow); box-shadow: none; }
.header__btn:hover, .header__btn:focus-visible { transform: none; background: #fff; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #fff; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 3px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-yellow); padding: 8px 20px 24px; display: flex; flex-direction: column; border-bottom: 4px solid var(--c-ink); }
.spmenu__nav a { display: flex; align-items: center; min-height: 56px; color: var(--c-ink); text-decoration: none; font-family: var(--font-pop); font-size: 18px; border-bottom: 2px solid rgba(26, 26, 26, .2); }
@media (max-width: 439px) { .logo small { display: none; } }
@media (min-width: 1080px) {
  .gnav { display: flex; gap: 26px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: #fff; text-decoration: none; }
  .gnav a:hover { color: var(--c-yellow); }
  .header__btn { margin-left: 0; padding: 0 22px; }
  .spmenu { display: none; }
}

/* ===== 演出①：巨大な文字＋ショベルカー（A08） ===== */
.hero { position: relative; background: var(--c-yellow); padding: calc(var(--header-h) + 24px) 0 48px; overflow: hidden; }
.hero__words { position: relative; }
.hero__word { font-family: var(--font-big); line-height: .82; color: var(--c-ink); white-space: nowrap; text-align: center; }
.hero__word--top { font-size: 44vw; letter-spacing: -.02em; }
.hero__word--bottom { font-size: 27vw; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 3px var(--c-ink); }
.hero__machine { position: relative; z-index: 2; width: 88vw; max-width: 760px; margin: -30vw auto 0; filter: drop-shadow(0 18px 18px rgba(26, 26, 26, .3)); }
.hero__copy { position: relative; z-index: 3; padding: 20px var(--gut) 0; }
.hero__tag { display: inline-block; font-weight: 700; font-size: 15px; color: #fff; background: var(--c-ink); padding: 2px 12px; border-radius: 6px; }
.hero__title { font-family: var(--font-pop); font-weight: 400; font-size: clamp(32px, 8vw, 64px); line-height: 1.35; color: var(--c-ink); margin: 12px 0; }
.hero__lead { color: var(--c-ink); margin-bottom: 24px; }
@media (min-width: 1080px) {
  .hero { min-height: 100vh; padding-bottom: 64px; }
  .hero__word--top { font-size: 30vw; }
  .hero__word--bottom { font-size: 19vw; -webkit-text-stroke-width: 4px; text-align: right; padding-right: 3vw; }
  .hero__machine { position: absolute; left: 50%; top: calc(var(--header-h) + 8vw); width: 46vw; max-width: none; margin: 0; transform: translateX(-30%); }
  .hero__copy { position: absolute; left: var(--gut); bottom: 56px; width: 500px; padding: 28px 32px; background: var(--c-bg); border: 4px solid var(--c-ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--c-ink); }
  .hero__title { font-size: 44px; }
}

/* 黒と黄の縞の帯 */
.stripe { height: 28px; background: repeating-linear-gradient(-45deg, var(--c-ink) 0 18px, var(--c-yellow) 18px 36px); }

/* ===== 演出②：のぞく先輩（G01）＝動かない版は、ここに止まって最初のひとこと ===== */
.peek { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; padding: 24px var(--gut) 0; border: 0; background: none; font: inherit; cursor: pointer; }
.peek__img { width: 120px; flex: none; }
.peek__bubble { position: relative; max-width: 240px; margin-bottom: 70px; padding: 12px 16px; background: #fff; border: 3px solid var(--c-ink); border-radius: 18px; font-weight: 700; font-size: 15px; line-height: 1.6; color: var(--c-ink); text-align: left; }
.peek__bubble::after { content: ""; position: absolute; right: -12px; bottom: 16px; width: 18px; height: 18px; background: #fff; border-right: 3px solid var(--c-ink); border-top: 3px solid var(--c-ink); transform: rotate(45deg); }
/* 動く版：右下の隅に固定して、のぞく */
.is-motion .peek { position: fixed; z-index: 40; right: 0; bottom: 0; width: auto; padding: 0; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); transform: translateY(18%); }
.is-motion .peek__img { width: 96px; }
.is-motion .peek__bubble { max-width: 190px; margin-bottom: 64px; transition: opacity .3s, transform .3s; }
.is-motion .peek.is-hidden { transform: translateY(78%); }
.is-motion .peek.is-hidden .peek__bubble, .is-motion .peek.is-quiet .peek__bubble { opacity: 0; transform: scale(.6); pointer-events: none; }
@media (max-width: 1079px) { .is-motion .peek { transform: translateY(30%); } .is-motion .peek__img { width: 78px; } .is-motion .peek__bubble { margin-bottom: 52px; } }
.is-motion .peek__bubble.is-pop { animation: pop .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { from { transform: scale(.5); } to { transform: none; } }
@media (min-width: 1080px) { .is-motion .peek__img { width: 150px; } .is-motion .peek__bubble { max-width: 240px; font-size: 16px; margin-bottom: 110px; } }

/* ===== 仕事を知る ===== */
.work { padding: 96px var(--gut); max-width: 1320px; margin: 0 auto; }
.work__list { display: grid; gap: 28px; }
.work__item { background: #fff; border: 4px solid var(--c-ink); border-radius: 20px; overflow: hidden; box-shadow: 6px 6px 0 var(--c-orange); }
.work__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 4px solid var(--c-ink); background: var(--c-yellow); }
.work__no { font-family: var(--font-big); font-size: 32px; line-height: 1; color: var(--c-accent-text); padding: 20px 22px 0; }
.work__item h3 { font-family: var(--font-pop); font-weight: 400; font-size: 22px; color: var(--c-ink); padding: 6px 22px; }
.work__item p:last-child { padding: 0 22px 24px; }
@media (min-width: 900px) { .work__list { grid-template-columns: repeat(3, 1fr); } .work__item:nth-child(2) { margin-top: 48px; } }

/* ===== 演出③：道路の帯（F06）＝動かない版は描き終わった形 ===== */
.road { position: relative; overflow: hidden; background: var(--c-bg); }
.road__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.road__path { fill: none; stroke: url(#roadGrad); stroke-width: 64px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.road__center { fill: none; stroke: #fff; stroke-width: 4px; stroke-dasharray: 18 18; vector-effect: non-scaling-stroke; opacity: .9; }
.day, .numbers { position: relative; z-index: 1; padding: 96px var(--gut); max-width: 1200px; margin: 0 auto; }
.day .sec-head, .numbers .sec-head { background: var(--c-bg); display: inline-block; padding-right: 12px; }
.day__list, .numbers__list { display: grid; gap: 40px; }
.tcard, .ncard { position: relative; width: 82%; background: #fff; border: 4px solid var(--c-ink); border-radius: 20px; padding: 20px 22px; box-shadow: 6px 6px 0 var(--c-ink); }
.tcard--r, .ncard--r { margin-left: auto; }
.tcard__time { position: absolute; top: -20px; left: 16px; font-family: var(--font-big); font-size: 24px; line-height: 1; color: var(--c-ink); background: var(--c-yellow); border: 3px solid var(--c-ink); border-radius: 999px; padding: 6px 14px; }
.tcard h3 { font-family: var(--font-pop); font-weight: 400; font-size: 21px; color: var(--c-ink); margin-top: 10px; }
.tcard img { margin: 10px 0; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--c-yellow); }
.ncard__label { font-weight: 700; color: var(--c-ink); }
.ncard__value { font-family: var(--font-big); font-size: clamp(44px, 7vw, 72px); line-height: 1.1; color: var(--c-ink); }
.ncard__value small { font-family: var(--font-pop); font-size: 20px; margin-left: 4px; }
.numbers .note { background: var(--c-bg); display: inline-block; padding: 0 8px; }
@media (min-width: 900px) { .tcard, .ncard { width: 46%; } .day, .numbers { padding: 140px var(--gut); } }

/* ===== 先輩の声 ===== */
.voice { padding: 96px var(--gut); max-width: 1320px; margin: 0 auto; }
.voice__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border: 4px solid var(--c-ink); border-radius: 20px; background: var(--c-yellow); }
.voice__list { display: grid; gap: 20px; margin-top: 28px; }
.voice__list li { background: #fff; border: 4px solid var(--c-ink); border-radius: 20px; padding: 22px; }
.voice__q { font-family: var(--font-pop); font-size: 20px; line-height: 1.5; color: var(--c-ink); margin-bottom: 8px; }
.voice__who { margin-top: 10px; font-size: 15px; color: var(--c-sub); }
@media (min-width: 900px) { .voice__list { grid-template-columns: repeat(3, 1fr); } .voice__photo img { aspect-ratio: 3 / 1; } }

/* ===== 募集要項 ===== */
.job { padding: 64px var(--gut) 112px; max-width: 1000px; margin: 0 auto; }
.job__table { background: #fff; border: 4px solid var(--c-ink); border-radius: 20px; overflow: hidden; }
.job__table div { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 16px 20px; border-bottom: 2px dashed rgba(26, 26, 26, .3); }
.job__table div:last-child { border-bottom: 0; }
.job__table dt { font-weight: 700; color: var(--c-ink); }

/* ===== 応募 ===== */
.apply { background: var(--c-ink); color: #e5e7eb; padding: 112px var(--gut) 120px; text-align: center; overflow: hidden; }
.apply__en { font-family: var(--font-big); font-size: clamp(64px, 15vw, 220px); line-height: .9; color: var(--c-yellow); white-space: nowrap; }
.apply__title { font-family: var(--font-pop); font-weight: 400; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.5; color: #fff; margin: 20px 0 12px; }
.apply p { max-width: 34em; margin-left: auto; margin-right: auto; }
.apply__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

/* ===== フッター ===== */
.footer { padding: 56px var(--gut) 120px; font-size: 15px; border-top: 28px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--c-ink) 0 18px, var(--c-yellow) 18px 36px) 28; }
.footer__inner { display: grid; gap: 18px; max-width: 1320px; margin: 0 auto; }
.footer__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-pop); font-size: 22px; color: var(--c-ink); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--c-ink); text-decoration: none; }
.footer__fiction { margin-top: 28px; text-align: center; color: var(--c-sub); }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: end; gap: 48px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
