/* =========================================================
   コンテックナガイ株式会社 採用LP ― 共通（枠・ヘッダー・動画・フォーム）
   肩書きより、好奇心。
   ========================================================= */

:root {
  --white: #ffffff;
  --ink: #252628;
  --cyan: #47ffff;
  --cyan-deep: #00c8d7;   /* 白地の上で読ませるシアン（文字・線用） */
  --mist: #f2f4f5;        /* ごく薄いグレー（地の切り替え用） */

  --hd-h: 60px;
  --frame-w: 480px;
  --pop: "Dela Gothic One", sans-serif;
  --en: "Lobster", cursive;
  --ja: "Zen Kaku Gothic New", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  font-family: var(--ja);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
p, h1, h2, h3, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; }

/* ---- 枠：スマホは全幅、PCは最大480px ------------------------ */
.frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--frame-w);
  height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--white);
}
@media (min-width: 600px) {
  body {
    background:
      radial-gradient(rgba(37, 38, 40, .16) 1.4px, transparent 1.5px) 0 0 / 24px 24px,
      var(--mist);
  }
  .frame { box-shadow: 0 0 0 2px var(--ink), 0 24px 60px rgba(0, 0, 0, .16); }
}

/* PC：左にロゴ、右にボタン（縦並び） */
.pc-logo,
.pc-cta { display: none; }
@media (min-width: 960px) {
  .pc-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    position: fixed;
    top: 50%;
    left: calc(50% - var(--frame-w) / 2 - 56px);
    transform: translate(-100%, -50%);
  }
  .pc-logo img { width: 240px; height: auto; }
  .pc-logo span { font-family: var(--pop); font-size: 15px; letter-spacing: .3em; }
  .pc-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: fixed;
    top: 50%;
    left: calc(50% + var(--frame-w) / 2 + 56px);
    transform: translateY(-50%);
  }
  .pc-cta__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 220px;
    height: 64px;
    padding: 0 22px 0 26px;
    border: 2.5px solid var(--ink);
    border-radius: 99px;
    background: var(--white);
    font-weight: 900;
    font-size: 17px;
    letter-spacing: .08em;
    box-shadow: 0 5px 0 var(--ink);
    transition: transform .15s, box-shadow .15s, background-color .2s;
  }
  .pc-cta__btn::after {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: rotate(45deg);
  }
  .pc-cta__btn--fill { background: var(--cyan); }
  .pc-cta__btn:hover { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
  /* PCではボタンを外に出すので、枠内ヘッダーはロゴだけにする */
  .hd__nav { display: none; }
}

/* ---- ヘッダー ----------------------------------------------- */
.hd {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--hd-h);
  padding: 0 10px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
  transition: transform .5s var(--ease-out);
}
.frame.is-movie .hd { transform: translateY(-110%); }
.hd__logo img { width: 150px; height: auto; }
.hd__nav { display: flex; gap: 6px; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: transform .2s var(--ease-back);
}
.btn:active { transform: scale(.94); }
.btn--line { background: var(--white); }
.btn--fill { background: var(--cyan); }
@media (max-width: 374px) {
  .hd__logo img { width: 124px; }
  .btn { padding: 0 9px; font-size: 11px; }
}

/* ---- スワイプ ----------------------------------------------- */
.swipe {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  /* 通常画面の停止はJSが担当。長文のネイティブ操作とSnapを競合させない。 */
  scroll-snap-type: none;
  overflow-anchor: none; /* リサイズ時の位置補正をJSと二重に行わない。 */
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.swipe::-webkit-scrollbar { display: none; }
.sec {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.pager {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  padding: 3px 10px 2px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--white);
  font-family: var(--pop);
  font-size: 12px;
  letter-spacing: .08em;
  transition: opacity .3s;
}
.frame.is-movie .pager,
.frame.is-end .pager { opacity: 0; }

/* ---- 動画（FVの前） ----------------------------------------- */
.sec--movie { background: var(--ink); color: var(--white); }
.movie__video { width: 100%; height: 100%; object-fit: cover; }
.sec--movie::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(37, 38, 40, .55), transparent 30%);
}
.movie__en {
  position: absolute;
  left: 20px;
  bottom: 30px;
  z-index: 2;
  font-family: var(--en);
  font-size: 34px;
  line-height: 1;
  transform: rotate(-6deg);
  transform-origin: 0 100%;
}
.movie__en small {
  display: block;
  margin-top: 6px;
  font-family: var(--pop);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--cyan);
}
.scroll-cue {
  position: absolute;
  right: 20px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--pop);
  font-size: 11px;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}
.scroll-cue i {
  position: relative;
  width: 2px;
  height: 40px;
  overflow: hidden;
  background: rgba(255, 255, 255, .3);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan);
  animation: cue 1.8s var(--ease-out) infinite;
}

/* ---- エントリー --------------------------------------------- */
.sec--entry {
  height: auto;
  min-height: 100dvh;
  padding-top: calc(var(--hd-h) + 20px);
  background:
    radial-gradient(rgba(37, 38, 40, .12) 1.2px, transparent 1.3px) 0 0 / 18px 18px,
    var(--white);
  overflow: visible;
}
.entry {
  margin: 0 12px;
  padding: 30px 20px 28px;
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 6px 0 var(--cyan);
}
.entry__en {
  font-family: var(--en);
  font-size: 60px;
  line-height: 1;
  color: var(--cyan);
  transform: rotate(-5deg);
  transform-origin: 0 100%;
}
.entry__ja { margin-top: 14px; font-family: var(--pop); font-weight: 400; font-size: clamp(18px, 5.2vw, 22px); line-height: 1.45; }
.entry__lead { margin-top: 10px; font-size: clamp(12px, 3.4vw, 13.5px); line-height: 1.9; color: #d7d9dc; }
.form { margin-top: 22px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.field__label em {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px 3px;
  border-radius: 99px;
  background: #555;
}
.field__label em.req { background: var(--cyan); color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--white);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: #aaa; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(71, 255, 255, .4); }
.select { position: relative; display: block; }
.select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.submit {
  position: relative;
  height: 58px;
  margin-top: 8px;
  border: 2.5px solid var(--white);
  border-radius: 99px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--pop);
  font-size: 17px;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--white);
  transition: transform .15s, box-shadow .15s;
}
.submit:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--white); }
.submit i {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--ink);
}
.submit i::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--white);
  border-right: 2px solid var(--white);
  transform: rotate(45deg);
}
.form__done { font-size: 13px; color: var(--cyan); text-align: center; }
.ft { margin-top: 34px; padding: 28px 22px 70px; text-align: center; }
.ft__logo { width: 200px; height: auto; margin: 0 auto; }
.ft__addr { margin-top: 12px; font-size: 11px; }
.ft__copy { margin-top: 8px; font-size: 10px; letter-spacing: .1em; color: #888; }

/* ---- 文字サイズの計測中は、登場アニメのずれを無視する ------------ */
.is-measuring,
.is-measuring * { transform: none !important; transition: none !important; }

@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* PCでは枠内のボタンを隠す（ボタンは枠の右に縦並び） */
@media (min-width: 960px) {
  .hd .hd__nav { display: none; }
  .pc-logo img { mix-blend-mode: multiply; }
}

/* ---- PC：両サイドの背景 ------------------------------------ */
.pc-bg { display: none; }
@media (min-width: 600px) {
  body { background: var(--cyan); }
  .pc-bg {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .pc-bg__rows {
    position: absolute;
    left: -20%;
    right: -20%;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 2vh;
    transform: translateY(-50%) rotate(-8deg);
  }
  .pc-bg__rows p {
    display: flex;
    width: max-content;
    font-family: var(--pop);
    font-size: clamp(60px, 9vh, 110px);
    line-height: 1.1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .9);
    animation: pc-marquee 60s linear infinite;
  }
  .pc-bg__rows p:nth-child(odd) { font-family: var(--en); -webkit-text-stroke: 0; color: rgba(255, 255, 255, .75); }
  .pc-bg__rows p:nth-child(2n) { animation-direction: reverse; animation-duration: 70s; }
  .pc-bg__stk {
    position: absolute;
    bottom: -2vh;
    height: 46vh;
    width: auto;
    filter:
      drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
      drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
      drop-shadow(0 8px 12px rgba(0, 0, 0, .2));
  }
  .pc-bg__stk--l { left: 3vw; transform: rotate(-6deg); }
  .pc-bg__stk--r { right: 3vw; transform: rotate(6deg); }
  .frame { box-shadow: 0 0 0 2.5px var(--ink), 10px 10px 0 var(--ink); }
}
@media (min-width: 960px) {
  .pc-logo,
  .pc-cta { z-index: 2; }
  .pc-logo {
    padding: 18px 20px 14px;
    border: 2.5px solid var(--ink);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 5px 5px 0 var(--ink);
    transform: translate(-100%, -50%) rotate(-3deg);
  }
  .pc-logo img { mix-blend-mode: normal; }
}
@media (max-width: 1279px) { .pc-bg__stk { display: none; } }
@keyframes pc-marquee { to { transform: translateX(-50%); } }
@media (min-width: 600px) {
  .pc-bg__rows { gap: 5vh; }
  .pc-bg__rows p { -webkit-text-stroke-color: rgba(255, 255, 255, .55); }
  .pc-bg__rows p:nth-child(odd) { color: rgba(255, 255, 255, .45); }
  .pc-bg__stk { height: 36vh; bottom: -1vh; }
}
@media (min-width: 600px) {
  .frame { box-shadow: 0 0 0 3px var(--ink); }
}
/* PCの幅が狭いときは、ロゴとボタンを小さくして画面内に収める */
@media (min-width: 960px) and (max-width: 1279px) {
  .pc-logo { left: calc(50% - var(--frame-w) / 2 - 28px); padding: 12px 14px 10px; }
  .pc-logo img { width: calc((100vw - var(--frame-w)) / 2 - 90px); max-width: 220px; }
  .pc-logo span { font-size: 12px; }
  .pc-cta { left: calc(50% + var(--frame-w) / 2 + 28px); }
  .pc-cta__btn { width: calc((100vw - var(--frame-w)) / 2 - 70px); max-width: 220px; height: 54px; font-size: 15px; padding: 0 16px 0 20px; }
}
@media (min-width: 600px) { .pc-bg__stk { filter: none; } }
/* ロゴは傾けない（斜めにすると細い線がにじむ） */
@media (min-width: 960px) {
  .pc-logo { transform: translate(-100%, -50%); }
}
.entry__ja,
.submit,
.pc-cta__btn,
.btn { font-family: var(--ja); font-weight: 900; }
/* ⑥-2 PCでも枠内ヘッダーのボタンを表示する */
@media (min-width: 960px) {
  .hd .hd__nav { display: flex; }
}

/* 長いEntryは親の.swipeで通常スクロールする。 */
.sec--entry {
  height: auto;
  min-height: 100dvh;
  max-height: none;
  overflow: visible;
  scroll-snap-stop: normal;
}

.sec--entry { scroll-snap-align: none; }
