/* Harvest Biz Career 限定正社員 採用サイト 動く見本 v1 共通CSS */

:root {
  --c-main: #78CDCF;
  --c-deep: #1b8a91;
  --c-deeper: #0f5f66;
  --c-blue: #28A4CB;
  --c-tint: #EAF8F8;
  --c-tint2: #D6F1F1;
  --c-ink: #333333;
  --c-ink2: #4B4E61;
  --c-line: #cfe9ea;
  --c-orange: #F98607;
  --c-orange-d: #E96D00;
  --c-white: #ffffff;
  --f-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-en: "Josefin Sans", "Avenir Next", "Futura", "Helvetica Neue", Arial, sans-serif;
  --f-num: "Barlow", "DIN Alternate", "Avenir Next Condensed", "Arial Narrow", Arial, sans-serif;
  --h-header: 76px;
  --h-header-s: 56px;
  --w-main: 1120px;
  --r-card: 20px;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-jp);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; color: #1d3c40; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; border-radius: 4px; }
/* 暗い地（TOPの動画の下・半導体の帯・制度の見出し・学びの濃い章）では、輪郭を白にする（既定の濃い青緑は地に溶けて見えない） */
.tx-hero :focus-visible, .semi-band :focus-visible, .sd-hero :focus-visible, .lr-section--deep :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 300; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: min(var(--w-main), 100% - 40px); margin-inline: auto; }
.section { padding: 88px 0; position: relative; }
.section--tint { background: var(--c-tint); }
.section--tight { padding: 56px 0; }

/* 仮の目印 */
.kari {
  display: inline-block;
  background: #fff3a8;
  color: #6b4e00;
  border: 1px dashed #c99700;
  border-radius: 6px;
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.92em;
  line-height: 1.7;
}

/* ===== ヘッダー ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--h-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(120, 205, 207, 0.35);
  transition: height 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-small { height: var(--h-header-s); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10); }
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1240px, 100% - 32px); margin-inline: auto; }
.logo {
  font-family: var(--f-en); font-weight: 600; font-size: 26px; letter-spacing: 0.02em;
  color: #1d3c40; line-height: 1; transition: font-size 0.35s var(--ease);
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo b { color: var(--c-deep); font-weight: 700; }
.is-small .logo { font-size: 21px; }
.gnav { display: flex; align-items: center; gap: 4px; }
.gnav a.nav-link {
  position: relative; display: block; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--c-ink2); white-space: nowrap;
}
.gnav a.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--c-main);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.gnav a.nav-link:hover { text-decoration: none; color: var(--c-deep); }
.gnav a.nav-link:hover::after, .gnav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.gnav a.nav-link[aria-current="page"] { color: var(--c-deep); font-weight: 700; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; border-radius: 50%; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: #1d3c40; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 30px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 17px; line-height: 1.3; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform 0.3s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn--apply {
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-d));
  color: #fff; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.btn--apply:hover { box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22); }
.btn--tel { background: #fff; color: var(--c-deep); border-color: var(--c-main); }
.btn--tel:hover { background: var(--c-tint); }
.btn--sm { min-height: 40px; padding: 6px 20px; font-size: 14px; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--c-deep); border-color: var(--c-main); min-height: 46px; font-size: 15px; padding: 8px 24px; }
.btn--ghost:hover { background: var(--c-tint); }
.btn[aria-disabled="true"] { background: #e7efef; color: #6b7a7c; box-shadow: none; pointer-events: none; }
.btn[aria-disabled="true"]::after { content: ""; }

/* ===== 章の頭（英字／日本語／一言） ===== */
.sec-head { margin-bottom: 40px; }
.sec-head__en { font-family: var(--f-en); font-weight: 600; letter-spacing: 0.18em; font-size: 15px; color: var(--c-deep); display: flex; align-items: center; gap: 12px; }
.sec-head__en::before { content: ""; width: 36px; height: 2px; background: var(--c-main); transform-origin: left; }
.sec-head__ja { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin: 6px 0 8px; }
.sec-head__lead { color: var(--c-ink2); margin: 0; }
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__en { justify-content: center; }

/* ===== ヒーロー（トップ） ===== */
.hero { position: relative; min-height: min(760px, 100svh); padding: calc(var(--h-header) + 48px) 0 170px; overflow: hidden; display: flex; align-items: center; background: linear-gradient(135deg, #e9f8f8 0%, #bfe7e8 55%, #96d6d8 100%); }
.hero__photo { position: absolute; inset: 0; overflow: hidden; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform-origin: 70% 40%; animation: heroZoom 26s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.14); } }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.74) 42%, rgba(255,255,255,0.06) 78%), linear-gradient(0deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 30%); }
.hero__blob { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(120,205,207,0.5), rgba(120,205,207,0) 70%); pointer-events: none; animation: floaty 9s ease-in-out infinite alternate; }
.hero__blob--1 { width: 520px; height: 520px; right: -120px; top: -120px; }
.hero__blob--2 { width: 380px; height: 380px; left: -140px; bottom: 40px; animation-delay: -4s; }
@keyframes floaty { from { transform: translate(0, 0); } to { transform: translate(24px, 30px); } }
.hero__in { position: relative; z-index: 2; }
.hero__eyebrow { font-family: var(--f-en); font-weight: 600; letter-spacing: 0.2em; font-size: 14px; color: var(--c-deep); margin-bottom: 14px; }
.hero__title { font-size: clamp(26px, 5.6vw, 64px); font-weight: 700; line-height: 1.35; letter-spacing: 0.04em; color: #17383c; }
.hero__lead { margin: 22px 0 28px; font-size: clamp(15px, 1.7vw, 18px); max-width: 560px; color: var(--c-ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { position: absolute; right: 16px; bottom: 150px; z-index: 3; font-size: 11px; color: var(--c-ink2); background: rgba(255,255,255,0.7); border-radius: 4px; padding: 0 6px; }
.photo-note { font-size: 12px; color: var(--c-ink2); margin: 8px 0 0; }
.photo-note--on { position: absolute; right: 10px; bottom: 10px; margin: 0; background: rgba(255,255,255,0.75); padding: 0 8px; border-radius: 4px; z-index: 2; }

/* 文字が順に現れる */
.split-char { display: inline-block; opacity: 1; }
.js .split-wait .split-char { opacity: 0; transform: translateY(0.5em); }
.js .split-go .split-char { animation: charIn 0.7s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes charIn { from { opacity: 0; transform: translateY(0.5em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.js .hero-fade { opacity: 0; transform: translateY(18px); }
.js .hero-ready .hero-fade { animation: fadeUp 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* オープニング */
.opening { display: none; }
.js .opening { display: flex; position: fixed; inset: 0; z-index: 400; align-items: center; justify-content: center; flex-direction: column; gap: 18px; background: linear-gradient(135deg, #78CDCF, #4fb6ba); color: #fff; transition: transform 0.9s var(--ease), opacity 0.6s; }
.opening__logo { font-family: var(--f-en); font-weight: 600; font-size: clamp(30px, 6vw, 54px); letter-spacing: 0.04em; opacity: 0; animation: openLogo 1.1s var(--ease) 0.15s forwards; }
.opening__line { width: 0; height: 2px; background: #fff; animation: openLine 1.1s var(--ease) 0.4s forwards; }
@keyframes openLogo { from { opacity: 0; transform: translateY(14px); letter-spacing: 0.2em; } to { opacity: 1; transform: none; letter-spacing: 0.04em; } }
@keyframes openLine { to { width: min(220px, 50vw); } }
.opening.is-done { transform: translateY(-100%); opacity: 0.2; pointer-events: none; }
.opening.is-gone { display: none !important; }
.is-opening { overflow: hidden; }

/* 特長 */
.features { position: relative; z-index: 5; margin-top: -120px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border-radius: var(--r-card); padding: 26px 26px 24px; box-shadow: var(--shadow); border: 1px solid var(--c-line); position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c-tint); z-index: 0; }
.feature > * { position: relative; z-index: 1; }
.feature__big { font-family: var(--f-num); font-weight: 700; color: var(--c-deep); font-size: clamp(34px, 4.4vw, 48px); line-height: 1.2; letter-spacing: 0.01em; }
.feature__big small { font-size: 0.5em; font-weight: 700; font-family: var(--f-jp); margin-left: 2px; }
.feature__big .num { font-variant-numeric: tabular-nums; }
.feature__text { margin: 8px 0 0; font-size: 15px; color: var(--c-ink); }

/* ===== 横に流れるカード ===== */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 20px 24px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.carousel__track.is-drag a { pointer-events: none; }
.carousel__ctrl { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.carousel__bar { flex: 1; height: 4px; background: var(--c-tint2); border-radius: 4px; overflow: hidden; }
.carousel__bar i { display: block; height: 100%; width: 20%; background: var(--c-main); border-radius: 4px; transform-origin: left; }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--c-main); background: #fff; color: var(--c-deep); font-size: 20px; line-height: 1; transition: background 0.3s, transform 0.3s var(--ease); }
.carousel__btn:hover:not(:disabled) { background: var(--c-main); color: #fff; transform: scale(1.06); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }

.gcard {
  flex: 0 0 min(300px, 78vw); scroll-snap-align: start; display: flex; flex-direction: column;
  border-radius: var(--r-card); overflow: hidden; background: #fff; box-shadow: var(--shadow); color: var(--c-ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gcard:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18); text-decoration: none; }
.gcard__top { position: relative; height: 150px; padding: 18px 20px; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.gcard__top::before { content: ""; position: absolute; inset: 0; background: var(--g, linear-gradient(135deg, #78CDCF, #28A4CB)); transition: transform 0.8s var(--ease); }
.gcard:hover .gcard__top::before { transform: scale(1.1); }
.gcard__top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.gcard__no { position: absolute; z-index: 1; right: 18px; top: 10px; font-family: var(--f-num); font-weight: 700; font-size: 46px; line-height: 1; opacity: 0.55; }
.gcard__en { position: relative; z-index: 1; font-family: var(--f-en); letter-spacing: 0.18em; font-size: 12px; font-weight: 600; opacity: 0.95; }
.gcard__area { position: relative; z-index: 1; font-size: 28px; font-weight: 700; line-height: 1.3; color: #fff; }
.gcard__area small { font-size: 14px; font-weight: 500; margin-left: 6px; }
.gcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.chip { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: var(--c-tint2); color: var(--c-deeper); }
.chip--other { background: #e5eef9; color: #1d5f85; }
.gcard__job { font-size: 15px; line-height: 1.7; flex: 1; margin: 0; }
.gcard__more { font-weight: 700; color: var(--c-deep); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.gcard__more::after { content: "→"; transition: transform 0.3s var(--ease); }
.gcard:hover .gcard__more::after { transform: translateX(6px); }

/* ===== 育ち方 ===== */
.path { position: relative; }
.path--row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; padding-top: 12px; }
.path--row::before { content: ""; position: absolute; left: 10%; right: 10%; top: 54px; height: 4px; border-radius: 4px; background: var(--c-line); }
.path--row::after { content: ""; position: absolute; left: 10%; right: 10%; top: 54px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c-main), var(--c-blue)); transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease); }
.path--row.is-in::after { transform: scaleX(1); }
.pstep { position: relative; text-align: center; padding: 0 6px; }
.pstep__dot { width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 4px solid var(--c-main); display: flex; align-items: center; justify-content: center; font-family: var(--f-num); font-size: 32px; font-weight: 700; color: var(--c-deep); position: relative; z-index: 1; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); transition: transform 0.5s var(--ease), background 0.4s, color 0.4s; }
.pstep:hover .pstep__dot { transform: scale(1.08); background: var(--c-main); color: #fff; }
.pstep__title { font-size: 16px; font-weight: 700; line-height: 1.5; color: #1d3c40; }
.pstep__tag { font-size: 12px; color: var(--c-deeper); font-weight: 700; margin-bottom: 4px; }
.pstep__body { font-size: 14px; color: var(--c-ink2); margin: 8px 0 0; line-height: 1.7; }

.path--col { position: relative; padding-left: 0; max-width: 820px; margin-inline: auto; }
.path--col::before { content: ""; position: absolute; left: 39px; top: 20px; bottom: 20px; width: 4px; border-radius: 4px; background: var(--c-line); }
.path__fill { position: absolute; left: 39px; top: 20px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--c-main), var(--c-blue)); height: 0; transition: height 0.15s linear; }
.path--col .pstep { display: grid; grid-template-columns: 82px 1fr; gap: 24px; text-align: left; padding: 0 0 44px; }
.path--col .pstep:last-child { padding-bottom: 0; }
.path--col .pstep__dot { width: 82px; height: 82px; margin: 0; }
.path--col .pstep__card { background: #fff; border-radius: var(--r-card); padding: 22px 26px; box-shadow: var(--shadow); }
.path--col .pstep__title { font-size: 20px; }
.path--col .pstep__body { font-size: 16px; }
.path--col .pstep__sub { margin-top: 14px; padding: 12px 16px; background: var(--c-tint); border-radius: 12px; font-weight: 700; color: var(--c-deeper); font-size: 15px; }

.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin: 22px 0 6px; max-width: 640px; }
.months span { text-align: center; font-family: var(--f-num); font-weight: 600; font-size: 14px; padding: 8px 0; border-radius: 8px; background: #fff; color: #7a8c8e; border: 1px solid var(--c-line); }
.months span.on { background: var(--c-main); color: #fff; border-color: var(--c-main); font-weight: 700; transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14); }
.js .months span.on { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14); } 50% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20); } }

/* ===== 半導体の帯・図 ===== */
.semi-band { background: linear-gradient(135deg, #0f5f66, #1b8a91 60%, #28A4CB); color: #fff; border-radius: 28px; padding: 48px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.semi-band::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.03); }
.semi-band > * { position: relative; }
.semi-band .sec-head__en { color: #bff0f1; }
.semi-band .sec-head__en::before { background: #bff0f1; }
.semi-band h2 { color: #fff; }
.semi-band__target { display: inline-block; background: #fff; color: var(--c-deeper); font-weight: 700; font-size: 14px; padding: 4px 16px; border-radius: 999px; margin-bottom: 12px; }
.semi-band__text { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; line-height: 1.5; margin: 0 0 24px; color: #fff; }
.semi-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.semi-band .btn--ghost:hover { background: rgba(255,255,255,0.15); }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: start; position: relative; }
.flow__node { text-align: center; position: relative; padding: 0 4px; }
.flow__node + .flow__node::before { content: ""; position: absolute; left: -50%; top: 38px; width: 100%; height: 0; border-top: 3px dashed var(--c-main); }
.flow__icon { width: 78px; height: 78px; margin: 0 auto 10px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid var(--c-main); position: relative; z-index: 1; color: var(--c-deep); }
.flow__icon svg { width: 46px; height: 46px; }
.flow__label { font-size: 13px; font-weight: 700; line-height: 1.5; }
.js .flow__icon { animation: none; }
.semi-band .flow__label { color: #fff; }
.flow--light .flow__label { color: #1d3c40; }
.flow--big .flow__icon { width: 104px; height: 104px; }
.flow--big .flow__icon svg { width: 64px; height: 64px; }
.flow--big .flow__node + .flow__node::before { top: 51px; }
.flow--big .flow__label { font-size: 16px; }
.flow--big .flow__sub { font-size: 12px; color: var(--c-ink2); font-weight: 500; }
.wafer-spin { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 給与 ===== */
.sal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sal-card { background: #fff; border-radius: var(--r-card); padding: 26px 26px 24px; box-shadow: var(--shadow); border: 1px solid var(--c-line); position: relative; overflow: hidden; }
.sal-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(0deg, var(--c-tint), rgba(234,248,248,0)); pointer-events: none; }
.sal-card__label { font-weight: 700; color: var(--c-deeper); font-size: 15px; }
.sal-card__num { font-family: var(--f-num); font-weight: 700; color: var(--c-deep); font-size: clamp(32px, 3.6vw, 42px); line-height: 1.2; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.sal-card__num small { font-family: var(--f-jp); font-size: 0.45em; margin-inline: 2px; }
.sal-card__basis { font-size: 14px; color: var(--c-ink2); margin: 0; line-height: 1.7; position: relative; }
.stairs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: end; }
.stairs .sal-card { display: flex; flex-direction: column; }
.stairs .sal-card:nth-child(1) { min-height: 270px; }
.stairs .sal-card:nth-child(2) { min-height: 310px; }
.stairs .sal-card:nth-child(3) { min-height: 350px; }
.stairs .sal-card:nth-child(4) { min-height: 390px; }
.stairs .sal-card:nth-child(5) { min-height: 430px; }
.stairs .sal-card__num { font-size: clamp(26px, 2.6vw, 34px); }
.notes { display: grid; gap: 12px; margin-top: 36px; }
.notes li { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 14px 18px; font-size: 15px; line-height: 1.8; }
.rule-box { margin-top: 28px; background: var(--c-tint); border-radius: var(--r-card); padding: 24px 28px; }
.rule-box h3 { font-size: 18px; margin-bottom: 8px; }
.lead-note { background: var(--c-tint); border: 1px solid var(--c-line); padding: 16px 20px; border-radius: 12px; margin-bottom: 28px; font-size: 16px; }

/* ===== ページの頭（下層） ===== */
.page-hero { position: relative; padding: calc(var(--h-header) + 56px) 0 64px; background: linear-gradient(135deg, #eaf8f8, #c6ebec); overflow: hidden; }
.page-hero__word { position: absolute; right: -10px; bottom: -34px; font-family: var(--f-en); font-weight: 700; font-size: clamp(80px, 16vw, 200px); color: rgba(255,255,255,0.65); letter-spacing: 0.04em; line-height: 1; pointer-events: none; user-select: none; white-space: nowrap; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-30px); } }
.page-hero .wrap { position: relative; z-index: 1; }
.crumb { font-size: 13px; color: var(--c-ink2); margin-bottom: 18px; }
.crumb a { color: var(--c-ink2); }
.crumb span { margin: 0 6px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; margin: 6px 0 10px; }
.page-hero p { margin: 0; color: var(--c-ink2); max-width: 640px; }

/* ===== 一覧 ===== */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter button { border: 2px solid var(--c-main); background: #fff; color: var(--c-deep); border-radius: 999px; padding: 8px 22px; font-weight: 700; font-size: 15px; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); }
.filter button:hover { transform: translateY(-2px); }
.filter button[aria-pressed="true"] { background: var(--c-main); color: #fff; }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ggrid .gcard { flex: initial; }
.ggrid .gcard[hidden] { display: none; }
.ggrid .gcard.is-show { animation: fadeUp 0.6s var(--ease) both; }
.ggrid-note { margin-top: 28px; font-size: 15px; color: var(--c-ink2); }

/* ===== 現場の詳細 ===== */
.gd-hero { padding-bottom: 56px; }
.gd-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.gd-hero__en { font-family: var(--f-en); letter-spacing: 0.2em; font-weight: 600; color: var(--c-deep); font-size: 14px; }
.gd-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 90px; }
.toc a { display: block; padding: 8px 14px; font-size: 14px; color: var(--c-ink2); border-left: 3px solid var(--c-line); transition: border-color 0.3s, color 0.3s, background 0.3s; }
.toc a:hover { text-decoration: none; color: var(--c-deep); border-color: var(--c-main); }
.toc a.is-on { color: var(--c-deep); border-color: var(--c-deep); font-weight: 700; background: var(--c-tint); }
.gd-block { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--c-line); }
.gd-block:last-child { border-bottom: 0; margin-bottom: 0; }
.gd-block h2 { font-size: 24px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.gd-block h2 i { font-style: normal; font-family: var(--f-num); font-size: 15px; color: #fff; background: var(--c-main); width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0 0; }
.fact { background: var(--c-tint); border-radius: 16px; padding: 16px 18px; }
.fact__num { font-family: var(--f-num); font-weight: 700; font-size: 38px; color: var(--c-deep); line-height: 1.1; }
.fact__num small { font-family: var(--f-jp); font-size: 0.4em; margin-left: 2px; }
.fact__label { font-size: 13px; color: var(--c-ink2); margin-top: 4px; }
.photo { position: relative; border-radius: var(--r-card); overflow: hidden; background: linear-gradient(135deg, #eaf8f8, #a9dfe0 60%, #78CDCF); aspect-ratio: 16 / 9; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.shifts { margin-top: 22px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 18px 18px 10px; }
.shift-axis { position: relative; height: 22px; margin-left: 56px; font-family: var(--f-num); font-size: 12px; color: #7a8c8e; }
.shift-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.shift-row { display: flex; align-items: center; margin: 4px 0 14px; }
.shift-row__name { width: 56px; font-size: 13px; font-weight: 700; flex: none; }
.shift-row__bar { position: relative; flex: 1; height: 30px; background: var(--c-tint); border-radius: 8px; overflow: hidden; }
.shift-row__bar i { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); background: linear-gradient(90deg, var(--c-main), var(--c-blue)); border-radius: 8px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) 0.3s; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.is-in .shift-row__bar i, .shifts.is-in .shift-row__bar i { transform: scaleX(1); }
.data-list { display: grid; gap: 8px; margin: 0; }
.data-list dt { font-weight: 700; color: var(--c-deeper); font-size: 14px; margin-top: 10px; }
.data-list dd { margin: 0; }
.apply-box { background: linear-gradient(135deg, var(--c-tint), #d4eff0); border-radius: var(--r-card); padding: 26px; }
.apply-box .btn { margin: 6px 10px 6px 0; }

/* ===== 寮と暮らし ===== */
.ryo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.ryo-cards { display: grid; gap: 16px; }
.ryo-card { background: #fff; border-radius: var(--r-card); padding: 22px 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.ryo-card__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--c-main); color: #fff; display: flex; align-items: center; justify-content: center; }
.ryo-card__ic svg { width: 30px; height: 30px; }
.ryo-card p { margin: 0; }
.ryo-card h3 { font-size: 18px; margin-bottom: 4px; }
.ryo-card strong { background: linear-gradient(transparent 62%, #bfeaeb 62%); }

/* ===== 学び ===== */
.notice { background: var(--c-tint); border: 1px solid var(--c-main); border-radius: var(--r-card); padding: 20px 26px; font-size: 18px; font-weight: 700; color: var(--c-deeper); box-shadow: var(--shadow); }
.manabi-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.manabi-text p { font-size: 17px; }
.manabi-text .em { font-weight: 700; color: var(--c-deeper); }
.fig { background: var(--c-tint); border-radius: 28px; padding: 40px 28px 30px; }
.fig h3 { text-align: center; font-size: 15px; letter-spacing: 0.1em; color: var(--c-deeper); margin-bottom: 26px; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s; }
.faq details[open] { border-color: var(--c-main); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-main); color: #fff; font-family: var(--f-en); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--c-deep); border-bottom: 2px solid var(--c-deep); transform: rotate(45deg); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__a { padding: 0 22px 20px 70px; margin: 0; color: var(--c-ink); }
.faq details[open] .faq__a { animation: faqIn 0.5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.faq-tools { margin-bottom: 16px; display: flex; gap: 10px; }

/* ===== 応募の帯 ===== */
.apply-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #78CDCF, #4fb6ba 60%, #28A4CB); color: #fff; padding: 76px 0; text-align: center; }
.apply-band::before, .apply-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.14); animation: floaty 10s ease-in-out infinite alternate; }
.apply-band::before { width: 360px; height: 360px; left: -100px; top: -140px; }
.apply-band::after { width: 300px; height: 300px; right: -80px; bottom: -120px; animation-delay: -5s; }
.apply-band .wrap { position: relative; z-index: 1; }
.apply-band__bg { position: absolute; inset: 0; }
.apply-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.26; mix-blend-mode: luminosity; }
.feature__big--text { font-size: clamp(26px, 3vw, 34px); padding: 7px 0 6px; }
.apply-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.apply-band p { margin: 0 0 8px; }
.apply-band .apply-band__small { font-size: 14px; opacity: 0.95; }
.apply-band__btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 28px 0 14px; }
.apply-band .btn { min-width: 250px; min-height: 64px; font-size: 19px; }
.apply-band .btn--tel { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }
.apply-band .btn--tel:hover { background: rgba(255,255,255,0.28); }
.apply-band .photo-note { color: #fff; }
.apply-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.apply-list li { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 16px 18px; }
.apply-list b { font-size: 17px; }

/* ===== フッター ===== */
.site-footer { background: #eef9f9; padding: 56px 0 100px; border-top: 1px solid var(--c-line); }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .logo { font-size: 26px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; }
.footer-nav a { font-size: 14px; color: var(--c-ink2); }
.footer-tel { font-size: 14px; line-height: 1.9; color: var(--c-ink2); }
.footer-tel b { font-family: var(--f-num); font-size: 24px; color: var(--c-deep); display: block; }
.footer-copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-ink2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* スマホ下固定 */
.mbar { display: none; }

/* ふわっと表示 */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.sec-head__en::before { transition: transform 0.9s var(--ease) 0.2s; }
.js .sec-head[data-reveal] .sec-head__en::before { transform: scaleX(0); }
.js .sec-head[data-reveal].is-in .sec-head__en::before { transform: scaleX(1); }

/* ===== レスポンシブ ===== */
@media (max-width: 1100px) {
  .gnav a.nav-link { padding: 8px 8px; font-size: 13px; }
  .stairs { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .stairs .sal-card:nth-child(n) { min-height: 0; }
}
@media (max-width: 960px) {
  :root { --h-header: 64px; }
  .menu-btn { display: block; }
  .gnav {
    position: fixed; inset: var(--h-header) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(255,255,255,0.98);
    padding: 12px 20px 28px; max-height: calc(100svh - var(--h-header)); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s; border-bottom: 1px solid var(--c-line);
  }
  .gnav.is-open { opacity: 1; transform: none; visibility: visible; }
  .gnav a.nav-link { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--c-line); }
  .gnav a.nav-link::after { display: none; }
  .gnav .btn { margin-top: 18px; }
  .site-header.is-small { height: 56px; }
  .semi-band { grid-template-columns: 1fr; padding: 32px 22px; }
  .path--row { grid-template-columns: 1fr; gap: 0; }
  .path--row::before, .path--row::after { left: 42px; right: auto; top: 30px; bottom: 30px; width: 4px; height: auto; }
  .path--row::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--c-main), var(--c-blue)); }
  .path--row.is-in::after { transform: scaleY(1); }
  .path--row .pstep { display: grid; grid-template-columns: 86px 1fr; gap: 16px; text-align: left; padding: 0 0 28px; }
  .path--row .pstep__dot { margin: 0; }
  .path--row .pstep__txt { padding-top: 6px; }
  .gd-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .toc a { white-space: nowrap; border-left: 0; border-bottom: 3px solid var(--c-line); padding: 8px 12px; }
  .toc a.is-on { background: transparent; }
  .ryo-grid, .manabi-layout { grid-template-columns: 1fr; gap: 28px; }
  .sal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: 76px; font-size: 15.5px; }
  .section { padding: 60px 0; }
  .hero { padding: calc(var(--h-header) + 28px) 0 150px; min-height: 0; }
  .hero__veil { background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.72) 55%, rgba(255,255,255,0.35) 100%); }
  .hero__note { bottom: 134px; }
  .hero__cta .btn { width: 100%; }
  .features { margin-top: -96px; }
  .features__grid, .ggrid, .apply-list { grid-template-columns: 1fr; }
  .stairs { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow__node { display: grid; grid-template-columns: 78px 1fr; text-align: left; align-items: center; gap: 14px; }
  .flow__node + .flow__node::before { display: none; }
  .flow__icon { margin: 0; }
  .flow--big .flow__node { grid-template-columns: 104px 1fr; }
  .path--col .pstep { grid-template-columns: 62px 1fr; gap: 14px; }
  .path--col .pstep__dot { width: 62px; height: 62px; font-size: 24px; }
  .path--col::before, .path__fill { left: 29px; }
  .path--col .pstep__card { padding: 16px 18px; }
  .path--col .pstep__title { font-size: 17px; }
  .months { gap: 3px; }
  .months span { font-size: 12px; padding: 6px 0; }
  .carousel__track { padding-inline: 16px; }
  .faq summary { font-size: 15.5px; padding: 14px 16px; }
  .faq__a { padding: 0 16px 16px 16px; }
  .apply-band .btn { width: 100%; min-width: 0; }
  .site-footer { padding-bottom: 110px; }
  .footer-copy { flex-direction: column; }
  .mbar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); border-top: 1px solid var(--c-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .mbar .btn { min-height: 48px; font-size: 16px; padding: 8px 12px; }
  .shift-axis span:nth-child(even) { display: none; }
}

/* JS が動かない時（無効・読込失敗。head の保険が .js を外した時も同じ）：スマホでもメニューを隠さず、ヘッダーの下に並べる */
@media (max-width: 960px) {
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .site-header__in { height: auto; flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .gnav { position: static; inset: auto; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; max-height: none; padding: 0; opacity: 1; visibility: visible; transform: none; background: transparent; border-bottom: 0; }
  html:not(.js) .gnav a.nav-link { padding: 8px 4px; font-size: 15px; border-bottom: 0; }
  html:not(.js) .gnav .btn { margin-top: 0; }
  html:not(.js) .tx-menu { border-bottom: 0; }
  html:not(.js) .tx-menu > summary { width: auto; min-height: 44px; padding: 8px 6px; }
}
/* 画面の下に固定した「応募・相談／電話」の帯（760px 以下）が、キーボードで移動した先やページ内リンクの先を隠さない */
@media (max-width: 760px) {
  html { scroll-padding-bottom: 96px; }
}

/* 動きを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero-fade, .js .split-char { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .opening { display: none !important; }
  .carousel__track { scroll-snap-type: x proximity; scroll-behavior: auto; }
  .path--row::after { transform: none !important; }
  .shift-row__bar i { transform: none !important; }
  .js .sec-head[data-reveal] .sec-head__en::before { transform: none !important; }
}
