/* =========================================================
   POTEX — 下層ページ共通スタイル
   トップ(potex-particles-light.html)のブランドシステムを継承
   モバイルファースト / レスポンシブ最適化
   ========================================================= */

:root {
  --serif: 'Noto Serif JP', "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "游明朝", YuMincho, serif;
  --navy: #1e3a6e;
  --navy-deep: #16306e;
  --ink: #0b1426;
  --ink-2: #15264a;
  --accent: #24509c;
  --line: rgba(30,58,110,0.10);
  --bg: #f5f6f8;
  --bg-2: #eef2f7;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8; letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 14px; left: 14px; right: 14px;
  margin: 0 auto; max-width: 1180px;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px 7px 20px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(30,58,110,0.10);
  border-radius: 999px; box-shadow: 0 10px 34px rgba(30,58,110,0.10);
}
.site-header .logo {
  font-weight: 800; font-size: 19px; letter-spacing: 0.16em;
  color: var(--navy); display: flex; align-items: center; gap: 9px;
}
.site-header .logo .mark {
  width: 16px; height: 16px; border-radius: 4px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  transform: rotate(45deg);
}
.site-header nav { display: flex; gap: 30px; }
.site-header nav .nav-contact { display: none; }
.site-header nav a {
  font-size: 13px; letter-spacing: 0.08em; color: rgba(30,58,110,0.7);
  transition: color .25s ease;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--navy); }
.site-header .lets-talk {
  font-size: 12px; letter-spacing: 0.06em; font-weight: 700;
  color: #fff; background: var(--navy); padding: 8px 18px;
  border-radius: 999px; transition: background .25s ease;
}
.site-header .lets-talk:hover { background: #2a4a85; }
.site-header .burger {
  display: none; width: 38px; height: 38px; border: 0; background: transparent;
  position: relative; cursor: pointer; padding: 0;
}
.site-header .burger span {
  display: block; width: 20px; height: 1.6px; background: var(--navy);
  margin: 4.5px auto; transition: transform .3s ease, opacity .3s ease;
}
.site-header.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.open .burger span:nth-child(2) { opacity: 0; }
.site-header.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink);
  color: #fff; padding: clamp(140px, 22vh, 220px) 8vw clamp(80px, 12vh, 130px);
  text-align: center;
}
/* 背景写真 ＋ 紺色オーバーレイ（薄く覆う） */
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(13,26,52,0.46) 0%, rgba(12,22,46,0.56) 55%, rgba(11,20,38,0.70) 100%),
    var(--hero-img, none) center / cover no-repeat;
}
.page-geo {
  position: absolute; left: 50%; top: 50%;
  width: min(1180px, 150vw); aspect-ratio: 1;
  transform: translate(-50%,-50%); pointer-events: none; z-index: 1;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 50%, transparent 80%);
  mask: radial-gradient(circle at 50% 50%, #000 50%, transparent 80%);
}
.page-geo svg { width: 100%; height: 100%; display: block; }
/* .page-geo は絶対配置を維持（>* ルールに上書きされないよう除外） */
.page-hero > *:not(.page-geo) { position: relative; z-index: 2; }
.cta-band > *:not(.page-geo) { position: relative; z-index: 1; }
.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin: 0 0 22px;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 54px); line-height: 1.5;
  letter-spacing: 0.08em; margin: 0 auto; max-width: 18em;
}
.page-hero .lead {
  font-family: var(--serif); margin: 26px auto 0; max-width: 38em;
  font-size: clamp(14px, 1.4vw, 17px); line-height: 2.1;
  color: rgba(255,255,255,0.74); letter-spacing: 0.05em;
}

/* ---------- Section ---------- */
.section { padding: clamp(64px, 12vh, 130px) 8vw; }
.section.alt { background: var(--bg-2); }
.section.dark {
  background: radial-gradient(ellipse at 50% 0%, var(--ink-2) 0%, var(--ink) 75%);
  color: #fff;
}
.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.sec-head { margin-bottom: clamp(40px, 7vh, 72px); }
.sec-head.center { text-align: center; }
.sec-label {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(30,58,110,0.45); margin: 0 0 14px;
}
.dark .sec-label { color: rgba(255,255,255,0.45); }
.sec-title {
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.5;
  letter-spacing: 0.06em; margin: 0;
}
.sec-lead {
  font-family: var(--serif); margin: 22px 0 0;
  font-size: clamp(14px, 1.3vw, 16px); line-height: 2.1;
  color: rgba(30,58,110,0.66);
}
.dark .sec-lead { color: rgba(255,255,255,0.7); }

/* ---------- Prose ---------- */
.prose p {
  font-family: var(--serif); font-size: clamp(14px, 1.25vw, 16px);
  line-height: 2.2; letter-spacing: 0.05em; margin: 0 0 1.8em;
  color: rgba(30,58,110,0.78);
}
.dark .prose p { color: rgba(255,255,255,0.78); }
.prose .em {
  display: block; font-size: clamp(18px, 2.2vw, 26px);
  color: var(--navy); margin: 1.6em 0; line-height: 1.8;
}
.dark .prose .em { color: #fff; }
.signature {
  font-family: var(--serif); text-align: right; margin: 2.4em 0 0;
  font-size: 14px; color: rgba(30,58,110,0.6); letter-spacing: 0.12em;
}
.dark .signature { color: rgba(255,255,255,0.6); }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; font-weight: 700;
  font-size: 14px; letter-spacing: 0.06em;
  padding: 16px 34px; border-radius: 999px;
  transition: background .25s ease, transform .25s ease;
}
.btn-pill:hover { background: #2a4a85; transform: translateY(-2px); }
.btn-pill--light { background: #fff; color: var(--navy); }
.btn-pill--light:hover { background: #eaeef5; }
.btn-pill .arrow { transition: transform .25s ease; }
.btn-pill:hover .arrow { transform: translateX(4px); }
.cta-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; letter-spacing: 0.06em; color: var(--navy);
  border-bottom: 1px solid rgba(30,58,110,0.3); padding-bottom: 4px;
  transition: gap .25s ease, border-color .25s ease;
}
.cta-link:hover { gap: 14px; border-color: var(--navy); }
.dark .cta-link { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(26px, 3vw, 40px); box-shadow: 0 18px 48px rgba(30,58,110,0.08);
}
.card h3 { font-size: 19px; letter-spacing: 0.04em; margin: 0 0 12px; color: var(--navy); }
.card p { margin: 0; font-size: 14px; line-height: 1.95; color: rgba(30,58,110,0.66); }
.card .tag {
  font-family: var(--serif); color: var(--accent); font-size: 13.5px;
  margin: 0 0 14px; letter-spacing: 0.04em;
}
.card .num {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  letter-spacing: 0.28em; color: rgba(30,58,110,0.4); margin: 0 0 16px;
}

/* service rows */
.svc-row {
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(28px, 5vw, 70px);
  align-items: center; padding: clamp(40px, 7vh, 78px) 0;
  border-top: 1px solid var(--line);
}
.svc-row:first-child { border-top: 0; }
.svc-row .svc-visual {
  aspect-ratio: 16/11; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg,#e7ecf3,#d6dfec);
  display: flex; align-items: center; justify-content: center;
  color: rgba(30,58,110,0.3); font-size: 12px; letter-spacing: 0.35em;
}
.svc-row .svc-visual img { width: 100%; height: 100%; object-fit: cover; }
.svc-row .num {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  letter-spacing: 0.28em; color: rgba(30,58,110,0.42); margin: 0 0 16px;
}
.svc-row h3 { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.5; margin: 0 0 14px; }
.svc-row .tag { font-family: var(--serif); color: var(--accent); margin: 0 0 16px; font-size: 15px; }
.svc-row .desc { font-size: 14.5px; line-height: 2.05; color: rgba(30,58,110,0.7); margin: 0 0 22px; }

/* steps / flow */
.flow { counter-reset: step; display: grid; gap: 18px; }
.flow .step {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px;
  align-items: start; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 28px;
}
.flow .step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  font-family: ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 700;
  color: #fff; background: var(--navy); width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.flow .step h3 { font-size: 17px; margin: 0 0 8px; }
.flow .step p { margin: 0; font-size: 14px; color: rgba(30,58,110,0.66); line-height: 1.9; }

/* definition table (会社概要 / 募集要項) */
.dl { border-top: 1px solid var(--line); }
.dl .row {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.dl dt { font-weight: 700; color: var(--navy); font-size: 14px; letter-spacing: 0.06em; margin: 0; }
.dl dd { margin: 0; font-size: 14px; color: rgba(30,58,110,0.72); line-height: 1.9; }

/* CTA band */
.cta-band {
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, var(--ink-2) 0%, var(--ink) 75%);
  color: #fff; padding: clamp(70px, 13vh, 130px) 8vw; position: relative; overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(24px, 3.6vw, 40px); line-height: 1.6;
  letter-spacing: 0.08em; margin: 0 0 16px;
}
.cta-band p { color: rgba(255,255,255,0.7); margin: 0 0 36px; font-family: var(--serif); }

/* ---------- Form ---------- */
.form { display: grid; gap: 22px; }
.form .field { display: grid; gap: 9px; }
.form label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--navy); }
.form label .req { color: #c0392b; font-size: 11px; margin-left: 6px; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 15px; color: var(--navy);
  background: #fff; border: 1px solid rgba(30,58,110,0.18);
  border-radius: 12px; padding: 14px 16px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(36,80,156,0.12);
}
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form .submit { margin-top: 10px; justify-self: start; border: 0; cursor: pointer; }
.form-note { font-size: 12.5px; color: rgba(30,58,110,0.55); line-height: 1.9; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #fff; padding: 70px 8vw 40px; }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; display: flex;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.foot-logo { font-weight: 800; font-size: 22px; letter-spacing: 0.18em; color: #fff; }
.foot-brand p { margin: 16px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.5); }
.foot-nav { display: flex; gap: 64px; }
.foot-nav div { display: flex; flex-direction: column; gap: 15px; }
.foot-nav a { font-size: 13px; color: rgba(255,255,255,0.62); transition: color .2s ease; }
.foot-nav a:hover { color: #fff; }
.foot-copy {
  max-width: var(--maxw); margin: 50px auto 0; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11.5px; letter-spacing: 0.1em; color: rgba(255,255,255,0.4);
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 920px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 1fr; gap: 26px; }
  .svc-row .svc-visual { order: -1; }
  .dl .row { grid-template-columns: 160px 1fr; gap: 16px; }
}

@media (max-width: 720px) {
  /* スマホ: ヘッダーをハンバーガー化 */
  .site-header { top: 10px; left: 10px; right: 10px; padding: 11px 12px 11px 18px; }
  .site-header .burger { display: block; position: relative; z-index: 2; }
  .site-header nav {
    position: fixed; inset: 0; height: 100vh; flex-direction: column;
    justify-content: center; align-items: center; gap: 30px;
    background: rgba(244,246,248,0.98);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
    z-index: 1;
  }
  .site-header.open nav { opacity: 1; pointer-events: auto; }
  .site-header nav a { font-size: 21px; font-family: var(--serif); color: var(--navy); }
  .site-header nav .nav-contact {
    display: inline-block; margin-top: 10px;
    background: var(--navy); color: #fff;
    padding: 14px 32px; border-radius: 999px; font-size: 16px;
  }
  .site-header .lets-talk { display: none; }

  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .form .row-2 { grid-template-columns: 1fr; }
  .dl .row { grid-template-columns: 1fr; gap: 6px; padding: 18px 2px; }
  .flow .step { grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 20px; }
  .flow .step::before { width: 36px; height: 36px; font-size: 13px; }
  .foot-inner { flex-direction: column; gap: 30px; }
  .foot-nav { gap: 44px; }
  .page-hero { padding-top: 120px; }
  .btn-pill { padding: 15px 28px; }
}

@media (max-width: 400px) {
  .section { padding-left: 22px; padding-right: 22px; }
  .page-hero { padding-left: 22px; padding-right: 22px; }
  .card { padding: 22px; }
}
