/* 試作：lab.js と対になる見た目。既存の styles.css は触らず、上に重ねるだけ */

/* A. 1字ずつ立ち上がる */
.ch-wrap .ch { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(4deg); filter: blur(5px); }
.ch-wrap.ch-on .ch { opacity: 1; transform: none; filter: blur(0);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out);
  transition-delay: calc(.08s + var(--i) * .035s); }

/* B. スクロールで灯る文字 */
.glow-text .gl { opacity: .22; transition: opacity .35s linear; }
.glow-text .gl.lit { opacity: 1; }

/* C. 流れる帯 */
.ticker { overflow: hidden; background: var(--navy-2); color: #fff; padding-block: 18px; }
.ticker-in { display: flex; width: max-content; animation: lab-ticker 46s linear infinite; }
.ticker span {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600; font-size: clamp(1rem, .9rem + .6vw, 1.35rem); letter-spacing: .16em;
  padding-inline: 44px; position: relative; white-space: nowrap;
}
.ticker span::after { content: ""; position: absolute; right: -4px; top: 50%; width: 7px; height: 7px; background: #c7402b; transform: translateY(-50%) rotate(45deg); }
@keyframes lab-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; } }

/* D. 写真一覧を横に流す（広い画面だけ） */
.hpin.on { position: relative; }
.hpin.on .hpin-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(24px, 3vw, 40px); overflow: hidden; padding-top: 70px;
  /* 囲みの幅から左右にはみ出して、画面の端まで流す。始まりは本文の左端にそろえる */
  margin-inline: calc(50% - 50vw); }
.hpin.on .gallery-h { display: flex; flex-wrap: nowrap; gap: 28px; will-change: transform; padding-right: 8vw; }
.hpin.on .gallery-h figure { flex: none; width: clamp(360px, 33vw, 540px); }
.hpin.on .section-head { margin: 0; }
.hpin.on .gallery-h figure.rv { opacity: 1; }
.hpin.on .gallery-h figure.rv .frame { clip-path: none; }
.hpin.on .gallery-h figure.rv img { transform: none; }
.hpin.on .gallery-h figure.rv figcaption { opacity: 1; transform: none; }

/* 主な工事のカード：なぞると少し浮く */
.cat { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.cat .photo { transition: transform 1.2s var(--ease-out); }
@media (hover: hover) {
  .cat:hover { transform: translateY(-6px); }
  .cat:hover .photo { transform: scale(1.03); }
}

/* E. スマホの下の連絡バー */
.mbar { display: none; }
@media (max-width: 768px) {
  .mbar { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--rule), 0 -10px 30px rgba(18,40,60,.08); }
  .mbar a { display: grid; place-items: center; align-content: center; min-height: 48px; border-radius: 12px; text-decoration: none; font-size: .86rem; line-height: 1.2; }
  .mbar small { font-size: .72rem; letter-spacing: .02em; opacity: .85; }
  .mb-tel { background: var(--navy); color: #fff; }
  .mb-line { background: #06c755; color: #fff; }
  .mb-form { background: var(--ground-alt); color: var(--ink); border: 1px solid var(--rule-strong); }
  body.has-mbar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body.has-mbar .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .mbar, .ticker { display: none !important; } }

/* F. 採用の入口（トップの写真帯・ヘッダーの採用ボタン） */
.recruit-band { position: relative; overflow: hidden; color: #fff; background: #0b2745; padding-block: clamp(70px, 10vw, 130px); }
.recruit-band-media { position: absolute; inset: 0; }
.recruit-band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.recruit-band-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,22,40,.88) 0%, rgba(6,22,40,.62) 48%, rgba(6,22,40,.2) 100%); }
.recruit-band .wrap { position: relative; z-index: 1; }
.recruit-band .section-head { margin-bottom: 24px; }
.recruit-band .eyebrow { color: #fff; }
.recruit-band .section-head h2 { color: rgba(255,255,255,.75); }
.recruit-band-lead { font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem) !important; line-height: 1.7; letter-spacing: .08em; color: #fff !important; max-width: none !important; }
.recruit-band-tags { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.recruit-band-tags li { padding: 7px 16px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: .86rem; letter-spacing: .04em; background: rgba(255,255,255,.08); }
.recruit-band .btn { background: #fff; color: #0a2238; border-color: #fff; }
.recruit-band .btn::before { background: #e6eef6; }
.recruit-band .btn:hover { color: #0a2238; border-color: #e6eef6; }
.recruit-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.recruit-band .btn-ghost::before { background: rgba(255,255,255,.16); }
.recruit-band .btn-ghost:hover { color: #fff; border-color: #fff; }
@media (min-width: 900px) {
  .site-nav a[href="recruit.html"] { border: 1px solid var(--navy); border-radius: 999px; padding-inline: 14px; color: var(--navy); }
  .site-nav a[href="recruit.html"][aria-current="page"], .site-nav a[href="recruit.html"]:hover { background: var(--navy); color: #fff; }
}
.mb-apply { background: #c7402b; color: #fff; }
@media (max-width: 600px) { .recruit-band-lead { font-size: 1.12rem !important; letter-spacing: .04em; } }
