/* =========================================================
   株式会社東海メンテナンス 採用LP ― 共通（枠・縁取り・ヘッダー・動画・フォーム）
   もっと任されたい。もっと正当に評価されたい。もっと自由に働きたい。
   色は山吹 #FEB800 ／白 #f6f9ff ／紺 #012683 の3色だけ
   ========================================================= */

:root {
  --yellow: #feb800;
  --white: #f6f9ff;
  --navy: #012683;
  --navy-60: rgba(1, 38, 131, .6);
  --navy-15: rgba(1, 38, 131, .15);

  --hd-h: 58px;
  --edge: 8px;            /* 枠の左右の縁取りの幅 */
  --frame-w: 480px;

  --disp: "Climate Crisis", "Rammetto One", sans-serif;   /* 英字の特大見出し・数字 */
  --round: "Rammetto One", sans-serif;                      /* 英字の札・ボタン */
  --pop: "Dela Gothic One", sans-serif;                     /* 和文の大見出し（大きいときだけ） */
  --ja: "Zen Kaku Gothic New", sans-serif;                  /* 本文・小さい太字 */
  --serif: "Noto Serif JP", serif;                          /* 白い札の小見出し */

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --noise: url("../assets/img/noise.png");
}

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

/* ---- 枠：スマホは全幅、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);
}

/* 縁取り（参考サイトの、画面のまわりを囲むギザギザと波形） */
.edge {
  position: absolute;
  z-index: 35;
  pointer-events: none;
}
.edge--l,
.edge--r { top: 0; bottom: 0; width: var(--edge); }
.edge--l {
  left: 0;
  background:
    radial-gradient(circle at 0 50%, var(--navy) 5px, transparent 5.6px) 0 0 / 100% 12px,
    var(--yellow);
}
.edge--r {
  right: 0;
  background:
    radial-gradient(circle at 100% 50%, var(--navy) 5px, transparent 5.6px) 0 0 / 100% 12px,
    var(--yellow);
}
.edge--b {
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background:
    conic-gradient(from 135deg at 50% 0, var(--navy) 90deg, transparent 0) 0 0 / 12px 100%,
    var(--yellow);
  background-repeat: repeat-x;
}
.frame.is-movie .edge { opacity: 0; }
.edge { transition: opacity .4s; }

/* ---- ヘッダー ----------------------------------------------- */
.hd {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--hd-h);
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  transition: transform .5s var(--ease-out);
}
/* ヘッダーの下のギザギザ */
.hd::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 7px;
  background: conic-gradient(from 135deg at 50% 0, var(--navy) 90deg, transparent 0) 0 0 / 10px 100% repeat-x;
}
.frame.is-movie .hd { transform: translateY(-120%); }
.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(--navy);
  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(--yellow); }
@media (max-width: 374px) {
  .hd { padding-left: 12px; }
  .hd__logo img { width: 126px; }
  .btn { padding: 0 9px; font-size: 11px; }
}

/* ---- スワイプ ----------------------------------------------- */
.swipe {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  /* 移動はJSが担当。長文の端でSnapが隣へ移動する競合を防ぐ。 */
  scroll-snap-type: none;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.swipe::-webkit-scrollbar { display: none; }
.sec {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.pager {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 36;
  padding: 4px 10px 3px;
  border: 2px solid var(--navy);
  border-radius: 99px;
  background: var(--white);
  font-family: var(--round);
  font-size: 11px;
  letter-spacing: .06em;
  transition: opacity .3s;
}
.frame.is-movie .pager,
.frame.is-end .pager { opacity: 0; }

/* ---- 動画（FVの前） ----------------------------------------- */
.sec--movie { background: var(--navy); 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(1, 38, 131, .7), transparent 42%);
}
.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 2;
  text-align: center;
  font-family: var(--disp);
  font-size: 18px;
  letter-spacing: .02em;
  animation: cue 1.6s ease-in-out infinite;
}

/* ---- エントリー --------------------------------------------- */
.sec--entry {
  padding-top: calc(var(--hd-h) + 22px);
  background: var(--noise), var(--yellow);
  overflow-x: hidden;
  height: auto;
  min-height: 100dvh;
  max-height: none;
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sec--entry::-webkit-scrollbar { display: none; }
.entry {
  position: relative;
  margin: 0 18px;
  padding: 34px 20px 28px;
  border: 2.5px solid var(--navy);
  border-radius: 22px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--white), 6px 6px 0 2.5px var(--navy);
}
.entry__en {
  position: absolute;
  left: 14px;
  top: -24px;
  padding: 6px 12px 4px;
  border: 2.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-family: var(--disp);
  font-size: 30px;
  line-height: 1;
  transform: rotate(-5deg);
}
.entry__ja { margin-top: 10px; font-weight: 900; font-size: clamp(19px, 5.4vw, 23px); line-height: 1.45; }
.entry__ja em { font-style: normal; color: var(--yellow); }
.entry__lead { margin-top: 10px; font-size: clamp(12.5px, 3.5vw, 14px); line-height: 1.9; }
.form { margin-top: 22px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field__label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.field__label em {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 8px 3px;
  border: 1.5px solid var(--white);
  border-radius: 99px;
}
.field__label em.req { border-color: var(--yellow); background: var(--yellow); color: var(--navy); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--white);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  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: rgba(1, 38, 131, .4); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(254, 184, 0, .55); }
.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(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  pointer-events: none;
}
.submit {
  position: relative;
  height: 60px;
  margin-top: 8px;
  border: 2.5px solid var(--navy);
  border-radius: 99px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .12em;
  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: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--navy);
}
.submit i::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 13px;
  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(--yellow); text-align: center; }
.ft { margin: 34px 18px 0; padding: 26px 20px 80px; text-align: center; }
.ft__logo {
  width: 230px;
  height: auto;
  margin: 0 auto;
  padding: 14px 16px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: var(--white);
  box-sizing: content-box;
}
.ft__addr { margin-top: 14px; font-size: 11.5px; font-weight: 700; }
.ft__copy { margin-top: 8px; font-family: var(--round); font-size: 10px; letter-spacing: .08em; }

/* ---- PC：両サイド ------------------------------------------
   参考サイトの作法：画面のまわりをギザギザと波形で囲み、
   紺の放射線の上に、斜めの帯を枠の後ろに通す。
   左はロゴ＋RECRUIT の札＋月給のスターバースト、右は丸いバッジのボタン */
.pc-bg,
.pc-side,
.pc-cta { display: none; }
@media (min-width: 600px) {
  body { background: var(--noise), var(--yellow); }
  .frame { box-shadow: 0 0 0 3px var(--navy), 10px 10px 0 3px var(--navy); }
  .pc-bg {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
  /* 紺の放射線（目を疑うポップさ） */
  .pc-bg__rays {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300vmax;
    height: 300vmax;
    margin: -150vmax 0 0 -150vmax;
    background: repeating-conic-gradient(rgba(1, 38, 131, .09) 0 6deg, transparent 6deg 15deg);
    animation: pc-spin 120s linear infinite;
  }
  /* 画面のまわりの縁取り */
  .pc-bg__edge { position: absolute; z-index: 1; }
  .pc-bg__edge--t,
  .pc-bg__edge--b { left: 0; right: 0; height: 14px; background-repeat: repeat-x; }
  .pc-bg__edge--t { top: 0; background-image: conic-gradient(from -45deg at 50% 100%, var(--navy) 90deg, transparent 0); background-size: 20px 100%; }
  .pc-bg__edge--b { bottom: 0; background-image: conic-gradient(from 135deg at 50% 0, var(--navy) 90deg, transparent 0); background-size: 20px 100%; }
  .pc-bg__edge--l,
  .pc-bg__edge--r { top: 0; bottom: 0; width: 12px; }
  .pc-bg__edge--l { left: 0; background: radial-gradient(circle at 0 50%, var(--navy) 8px, transparent 8.6px) 0 0 / 100% 20px; }
  .pc-bg__edge--r { right: 0; background: radial-gradient(circle at 100% 50%, var(--navy) 8px, transparent 8.6px) 0 0 / 100% 20px; }
  /* 枠の後ろを横切る斜めの帯 */
  .pc-bg .band { left: -10%; right: -10%; z-index: 1; }
  .pc-bg .band__set span { font-size: clamp(16px, 2.4vh, 24px); padding: 10px 0 8px; }
  .pc-bg__band1 { top: 13vh; transform: rotate(-6deg); }
  .pc-bg__band2 { bottom: 14vh; transform: rotate(5deg); background: var(--white); color: var(--navy); }
  .pc-bg__band2 .band__set span::after { color: var(--navy); }
}
@media (min-width: 960px) {
  .pc-side,
  .pc-cta { z-index: 2; position: fixed; top: 50%; }
  /* 左：ロゴ＋RECRUIT の札＋月給のスターバースト */
  .pc-side {
    display: grid;
    justify-items: center;
    left: calc(25% - var(--frame-w) / 4);
    transform: translate(-50%, -50%);
  }
  .pc-side__logo {
    display: block;
    padding: 16px 18px;
    border: 3px solid var(--navy);
    background: var(--white);
    box-shadow: 6px 6px 0 var(--navy);
  }
  .pc-side__logo img { width: 230px; height: auto; }
  .pc-side__tag {
    margin-top: -10px;
    padding: 8px 14px 6px;
    border: 3px solid var(--navy);
    background: var(--navy);
    color: var(--yellow);
    font-family: var(--disp);
    font-size: 26px;
    line-height: 1;
    transform: rotate(-5deg);
  }
  .pc-side .burst { position: relative; width: 132px; margin-top: 14px; transform: rotate(8deg); }
  .pc-side .burst b { font-size: 44px; }
  .pc-side .burst small { font-size: 12px; }

  /* 右：丸いバッジのボタン（縦並び） */
  .pc-cta {
    display: grid;
    justify-items: center;
    gap: 18px;
    left: calc(75% + var(--frame-w) / 4);
    transform: translate(-50%, -50%);
  }
  .pc-cta__btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 168px;
    aspect-ratio: 1;
    color: var(--navy);
    text-align: center;
    transition: transform .25s var(--ease-back);
  }
  .pc-cta__btn .burst__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .pc-cta__btn .burst__bg path { fill: var(--white); stroke: var(--navy); stroke-width: 3.5; stroke-linejoin: round; }
  .pc-cta__btn--fill { color: var(--white); }
  .pc-cta__btn--fill .burst__bg path { fill: var(--navy); }
  .pc-cta__btn > span { position: relative; display: grid; gap: 4px; font-weight: 900; font-size: 17px; letter-spacing: .06em; line-height: 1.1; }
  .pc-cta__btn small { font-family: var(--round); font-size: 11px; letter-spacing: .04em; }
  .pc-cta__btn--fill small { color: var(--yellow); }
  .pc-cta__btn:nth-child(1) { transform: rotate(-6deg); }
  .pc-cta__btn:nth-child(2) { transform: rotate(5deg); }
  .pc-cta__btn:hover { transform: rotate(0deg) scale(1.06); }
  .pc-cta__btn:hover .burst__bg { animation: pc-spin 6s linear infinite; }
}
/* PCの幅が狭いときは、左右を小さくして画面内に収める */
@media (min-width: 960px) and (max-width: 1279px) {
  .pc-side__logo { padding: 10px 12px; }
  .pc-side__logo img { width: calc((100vw - var(--frame-w)) / 2 - 100px); max-width: 200px; }
  .pc-side__tag { font-size: 20px; }
  .pc-side .burst { width: 110px; }
  .pc-side .burst b { font-size: 36px; }
  .pc-cta__btn { width: 140px; }
  .pc-cta__btn > span { font-size: 15px; }
}
/* 幅の広いPC：両サイドの下に人物ステッカー */
.pc-bg__stk { display: none; }
@media (min-width: 1280px) {
  .pc-bg__stk {
    display: block;
    position: absolute;
    z-index: 2;
    bottom: -2vh;
    height: 38vh;
    width: auto;
  }
  .pc-bg__stk--l { left: 3vw; transform: rotate(-5deg); }
  .pc-bg__stk--r { right: 3vw; transform: rotate(5deg); }
}
@media (min-width: 1280px) and (max-height: 820px) {
  .pc-bg__stk { display: none; }
}

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

@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes pc-spin { to { transform: rotate(360deg); } }

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

/* フォーム部品の内部スクロールをページに連鎖させない。外観は維持する。 */
#entry textarea { overscroll-behavior-y: contain; }
