/* =========================================================
   スパイラル産業株式会社 コーポレートサイト
   PC基準のデザイン。配置はどの画面でも同じで、
   スマホ・タブレットは表示幅を1200px相当に固定して全体を縮小表示する
   （切替は各ページ先頭のスクリプト）
   ========================================================= */

:root {
  color-scheme: dark;

  --ink:      #F1F4F7;
  --ink-2:    #B4BDC5;
  --muted:    #8A949C;
  --paper:    #1D2026;
  --panel:    #282C33;
  --panel-2:  #33373F;
  --line:     #373C45;
  --line-2:   #4A505A;

  --cy:       #4FC8E8;
  --cy-hot:   #7BDDF7;
  --aqua:     #A8E9FB;
  --blue:     #1D5FE0;
  --on-cy:    #05161E;

  --hair: 1px solid var(--line);
  --gut: clamp(20px, 5vw, 56px);
  --max: 80rem;
  --grad: linear-gradient(90deg, var(--blue) 0%, var(--cy-hot) 58%, rgba(123,221,247,0) 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, #24272F 0%, #1D2026 42%, #181A1F 100%) fixed;
  color: var(--ink);
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cy-hot); outline-offset: 3px;
}
img { max-width: 100%; }

h1, h2, h3 {
  font-family: "Zen Kaku Gothic New", "Archivo", system-ui, sans-serif;
  font-weight: 900; letter-spacing: -.015em;
  text-wrap: balance; word-break: auto-phrase; margin: 0;
}

.en {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800; font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cy); margin: 0;
}
.num { font-variant-numeric: tabular-nums; }

/* ================= ヘッダー ================= */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 60;
  transition: background 1.2s, border-color 1.2s, backdrop-filter 1.2s;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
.bar.fixed-solid,
.bar.solid {
  background: rgba(30,33,39,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line);
}
.bar.sub { position: sticky; }
.bar-in {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gut);
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; }
.brand img { display: block; height: clamp(26px, 3.4vw, 34px); width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); }
.nav a.lk { font-size: .84rem; font-weight: 500; white-space: nowrap; transition: color .3s; }
.nav a.lk:hover { color: var(--cy); }
.nav .cta {
  background: var(--cy); color: var(--on-cy); border-radius: 8px;
  padding: 10px 20px; font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.nav .cta:hover { background: var(--cy-hot); }

/* ================= 共通 ================= */
.sec, .rec, .banner, footer, .page { position: relative; }
.sec::before, .rec::before, .banner::before, .page::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; z-index: 4;
  background: var(--grad);
}
.sec-head {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) var(--gut) clamp(20px, 2.6vw, 34px);
}
.sec-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); margin-top: .35em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; padding: 16px 32px;
  border-radius: 10px; background: var(--cy); color: var(--on-cy); border: 0;
  cursor: pointer; transition: background .25s;
}
.btn:hover { background: var(--cy-hot); }

.pic { position: relative; margin: 0; border-radius: 14px; overflow: hidden; }
.pic::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px; background: var(--grad);
}
.pic img { display: block; width: 100%; height: auto; }
.ph {
  width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 6px, transparent 6px 13px),
    var(--panel);
  display: flex; align-items: flex-end;
}
.ph span {
  font-family: "JetBrains Mono", monospace; font-size: .6rem; letter-spacing: .1em;
  color: var(--muted); padding: 9px 12px;
}

/* ================= ヒーロー ================= */
.hero {
  position: relative; z-index: 1; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: env(safe-area-inset-top);
}
/* ファーストビューの背景は、メッセージ節の終わりまで画面に貼り付いたまま */
.top { position: relative; z-index: 0; }
.top-bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
/* メッセージ以降は不透明な1枚で覆い、固定した球体を隠す（下地は body と同じ） */
.rest {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #24272F 0%, #1D2026 42%, #181A1F 100%) fixed;
}
.top-bg-in { position: absolute; inset: 0; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* ladder.co.jp と同じ 12 秒のゆっくりしたズームアウト（背景を往復させて継ぎ目を無くす） */
.top-bg-in { animation: fvZoom 24s cubic-bezier(.19,1,.22,1) infinite; will-change: transform; }
@keyframes fvZoom {
  0%   { transform: scale(1.06); }
  50%  { transform: scale(1); }
  100% { transform: scale(1.06); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(94deg, rgba(36,39,47,.94) 0%, rgba(36,39,47,.82) 24%, rgba(36,39,47,.34) 44%, rgba(36,39,47,0) 62%),
    linear-gradient(180deg, rgba(33,36,44,.9) 0%, rgba(33,36,44,0) 14%);
}
.hero-in {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(100px, 16vh, 180px) var(--gut) clamp(80px, 12vh, 128px);
  pointer-events: none;
}
.hero h1 {
  font-family: "Archivo", "Zen Kaku Gothic New", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.14; letter-spacing: -.025em;
}
.hero h1 .ln { display: block; }
.hero h1 .ln > span { display: block; }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
/* ladder.co.jp と同じ blur(100px) からの合焦。1.2 秒・0.2 秒待ってから */
.hero .tagline { animation: fvBlur 1.2s cubic-bezier(.19,1,.22,1) .2s both; }
@keyframes fvBlur {
  from { opacity: 0; filter: blur(100px); }
  to   { opacity: 1; filter: blur(0); }
}
.hot {
  display: inline-block;
  background: linear-gradient(96deg, var(--cy-hot) 6%, var(--aqua) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--cy-hot);
}
.hero .jp {
  margin-top: clamp(14px, 2vw, 22px);
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700;
  font-size: clamp(.95rem, 1.5vw, 1.12rem); letter-spacing: .04em; color: var(--ink-2);
}

/* ヘッダーもロード後にそっと出す */
.bar { animation: fvFade 1s ease .1s both; }

/* ================= 事業内容 ================= */
.biz { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(48px, 7vw, 88px); }
.row {
  position: relative;
  display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 3.4vw, 46px); align-items: center;
  padding: clamp(26px, 3.6vw, 44px) 0; border-top: var(--hair);
}
.row:first-child { border-top: 1px solid var(--line-2); }
/* 偶数行は写真を左に（右→左→右→左→右→左） */
.row:nth-child(even) { grid-template-columns: 4.6rem minmax(0, 1.1fr) minmax(0, 1fr); }
.row:nth-child(even) .shot { order: 2; }
.row:nth-child(even) .txt  { order: 3; }
.idx {
  font-family: "Archivo", sans-serif; font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1; letter-spacing: -.04em; color: transparent;
  -webkit-text-stroke: 1.5px var(--line-2); align-self: start;
}
.row:hover .idx { -webkit-text-stroke-color: var(--cy); }
.row .txt { display: flex; flex-direction: column; gap: 13px; }
.row .en { font-size: .64rem; }
.row h3 { font-size: clamp(1.25rem, 2.4vw, 1.62rem); }
.row .claim {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.14rem); line-height: 1.7; color: var(--ink);
  border-left: 3px solid var(--aqua); padding-left: 15px;
}
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--panel); }
.shot .ph { height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; z-index: 1;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.row:hover .shot::before { transform: scaleX(1); }
.more {
  font-size: .82rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
}
/* 行のどこを押しても詳細ページへ飛ぶようにする */
.row .more::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.more::after { content: ""; width: 26px; height: 1px; background: var(--ink-2); transition: width .25s, background .25s; }
.more:hover { color: var(--cy); }
.row:hover .more::after, .more:hover::after { width: 44px; background: var(--cy); }

/* ================= 会社情報 ================= */
.co { max-width: var(--max); margin: 0 auto; padding: clamp(52px, 7vw, 96px) var(--gut) clamp(52px, 7vw, 92px); }
/* 見出しを左、表を右に置く */
.co-grid { display: grid; grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr); gap: clamp(26px, 5vw, 72px); align-items: start; }
.co-head { padding: 0; margin: 0; max-width: none; }
.co-table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.co-table th, .co-table td { text-align: left; padding: 15px 0; border-bottom: var(--hair); vertical-align: top; line-height: 1.85; }
.co-table th { width: 9.5rem; font-weight: 500; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.co-table td { color: var(--ink-2); }
.co-table td b { color: var(--ink); font-weight: 700; }
.co-table .sub {
  font-family: "Archivo", system-ui, sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: .08em; color: var(--muted);
}

/* ================= 採用情報 ================= */
.rec-in {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 5vw, 72px); align-items: center;
}
.rec-photo { max-width: 460px; }
.rec-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 48%; background: var(--panel); }
.rec-body h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); margin-top: .35em; }
.rec-body .lede {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.18rem); line-height: 1.85;
  color: var(--ink-2); margin-top: clamp(14px, 1.8vw, 20px); max-width: 32rem;
}
.rec-act { margin-top: clamp(26px, 3.4vw, 40px); }

/* ================= お問い合わせバナー ================= */
.banner {
  text-align: center;
  padding: clamp(46px, 6vw, 76px) var(--gut);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.34) 100%);
}
.banner b {
  display: block; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900;
  font-size: clamp(1.25rem, 2.8vw, 1.9rem); letter-spacing: -.02em; margin: 10px 0 24px;
}

/* ================= フッター ================= */
footer {
  background: linear-gradient(180deg,
    rgba(0,0,0,.34) 0%, rgba(0,0,0,.46) 42%, rgba(0,0,0,.56) 78%, #0E1014 100%);
}
.foot-in {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) var(--gut) calc(clamp(26px, 3vw, 36px) + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between;
}
.foot-name { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: .9rem; }
.foot-nav {
  display: flex; flex-wrap: wrap; justify-content: flex-end; text-align: right;
  gap: 10px 24px; font-size: .83rem; margin-left: auto;
}
.foot-nav a { color: var(--ink-2); }
.foot-nav a:hover { color: var(--cy); }
.copy {
  width: 100%; text-align: right; border-top: 1px solid var(--line); padding-top: 22px;
  font-family: "JetBrains Mono", monospace; font-size: .6rem; letter-spacing: .1em; color: var(--muted);
}

/* ================= 下層ページ ================= */
.page-in { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 92px) var(--gut) clamp(56px, 8vw, 104px); }
.page-head { margin-bottom: clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: .35em; }
.page-head .claim {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7;
  border-left: 3px solid var(--aqua); padding-left: 15px; margin-top: 1em;
}
.page-head .sub { margin-top: .8em; color: var(--muted); font-size: .9rem; max-width: 40rem; }

.hero-pic .ph { aspect-ratio: 16 / 7; }
.hero-pic img { aspect-ratio: 16 / 7; object-fit: cover; background: var(--panel); }
.body { max-width: 52rem; padding-top: clamp(34px, 4.5vw, 54px); }
.body h2 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-bottom: 1em; padding-bottom: .6em; border-bottom: 1px solid var(--line-2); }
.items { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.item {
  background: rgba(255,255,255,.04); padding: 18px 20px;
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 4px 24px; align-items: baseline;
}
.item b { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: .98rem; }
.item span { font-size: .89rem; color: var(--ink-2); }
.body .note { margin-top: clamp(24px, 3vw, 34px); font-size: .92rem; color: var(--ink-2); border-left: 3px solid var(--line-2); padding-left: 16px; }
/* 事業ページの「3つの特長」 */
.points {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(12px, 1.6vw, 18px); margin-bottom: clamp(30px, 4vw, 46px);
}
.point {
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(255,255,255,.05); padding: clamp(18px, 2.2vw, 24px);
  display: flex; flex-direction: column; gap: 8px;
}
.point b {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700;
  font-size: clamp(.95rem, 1.5vw, 1.06rem); line-height: 1.6;
  padding-left: 13px; border-left: 3px solid var(--aqua);
}
.point span { font-size: .86rem; color: var(--ink-2); }

.spec { margin-top: clamp(34px, 4.5vw, 52px); }
a.dl { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a.dl:hover { color: var(--cy); }
.spec dl { margin: 0; display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); }
.spec dt, .spec dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .92rem; }
.spec dt { color: var(--muted); }
.spec dd { color: var(--ink-2); }
.cta-row { margin-top: clamp(34px, 4.5vw, 52px); display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.cta-row.center { justify-content: center; }
.back { font-size: .86rem; font-weight: 700; }
/* 下層ページ左上の戻り導線 */
.back-top {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .84rem; font-weight: 700; color: var(--ink-2);
  margin-bottom: clamp(18px, 2.6vw, 30px); transition: color .25s;
}
.back-top:hover { color: var(--cy); }
.back:hover { color: var(--cy); }
.others { margin-top: clamp(48px, 7vw, 84px); padding-top: clamp(24px, 3vw, 34px); border-top: 1px solid var(--line-2); }
.others .en { margin-bottom: 16px; }
.oth-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.oth { background: rgba(255,255,255,.04); padding: 16px 18px; font-weight: 700; font-size: .92rem; display: flex; align-items: baseline; gap: 10px; transition: background .25s; }
.oth:hover { background: rgba(255,255,255,.09); color: var(--cy); }
.oth .n { font-family: "Archivo", sans-serif; font-weight: 900; font-size: .78rem; color: var(--muted); }

/* ================= プライバシーポリシー ================= */
.doc { max-width: 46rem; }
.doc section { padding-top: clamp(28px, 3.4vw, 40px); }
.doc h2 { font-size: clamp(1.05rem, 1.9vw, 1.22rem); margin-bottom: .7em; padding-left: 15px; border-left: 3px solid var(--aqua); border-bottom: 0; line-height: 1.6; }
.doc p { margin-bottom: 1.1em; color: var(--ink-2); font-size: .93rem; }
.doc p:last-child { margin-bottom: 0; }
.doc ol, .doc ul { margin: 0 0 1.1em; padding-left: 1.4em; color: var(--ink-2); font-size: .93rem; }
.doc li { margin-bottom: .45em; }
.doc b { color: var(--ink); }
.office { margin-top: clamp(30px, 4vw, 44px); border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.05); padding: clamp(20px, 2.6vw, 28px); }
.office h2 { border: 0; padding: 0; margin-bottom: .5em; }
.office dl { margin: 0; display: grid; grid-template-columns: 6.5rem 1fr; gap: 8px 16px; font-size: .9rem; }
.office dt { color: var(--muted); }
.office dd { margin: 0; color: var(--ink-2); }
.meta { margin-top: clamp(30px, 4vw, 44px); padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }

/* ================= お問い合わせ ================= */
.grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.direct { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 28px); }
.card { border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.05); padding: clamp(20px, 2.6vw, 28px); }
.card .lab { font-family: "Archivo", sans-serif; font-weight: 800; font-size: .66rem; letter-spacing: .2em; color: var(--cy); }
.card .tel { display: block; font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; font-variant-numeric: tabular-nums; margin-top: 6px; }
.card .mail { display: block; font-family: "Archivo", sans-serif; font-weight: 700; font-size: clamp(.95rem, 1.5vw, 1.06rem); line-height: 1.5; word-break: break-all; margin-top: 6px; }
.card .tel:hover, .card .mail:hover { color: var(--cy); }
.card p { margin-top: 8px; font-size: .84rem; color: var(--muted); }
/* TEL と MAIL をひとつの枠にまとめる */
.contact-card { display: flex; flex-direction: column; }
.contact-card .ct-row + .ct-row {
  margin-top: clamp(16px, 2vw, 22px); padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--line);
}
.contact-card .lab { margin-top: 0; }
.info dl { margin: 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: 10px 16px; font-size: .88rem; }
.info dt { color: var(--muted); }
.info dd { margin: 0; color: var(--ink-2); }
.note-box { border-left: 3px solid var(--aqua); padding-left: 15px; font-size: .84rem; color: var(--ink-2); }
.form { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.req, .any { font-family: "Archivo", sans-serif; font-size: .58rem; font-weight: 800; letter-spacing: .1em; border-radius: 4px; padding: 2px 6px; }
.req { color: var(--on-cy); background: var(--cy); }
.any { color: var(--muted); border: 1px solid var(--line-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .92rem; color: var(--ink); width: 100%;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.85; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cy); background: var(--panel-2); }
.field .hint { font-size: .78rem; color: var(--muted); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--ink-2); }
.agree input {
  width: 18px; height: 18px; margin-top: 5px; flex: none;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 4px;
  display: grid; place-content: center;
}
.agree input::before {
  content: ""; width: 11px; height: 11px; transform: scale(0);
  transition: transform .15s ease; background: var(--cy);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.agree input:checked::before { transform: scale(1); }
.agree input:checked { border-color: var(--cy); }
.agree input:focus-visible { outline: 2px solid var(--cy); outline-offset: 2px; }
.agree a { text-decoration: underline; text-underline-offset: 3px; }
.result { border-radius: 10px; padding: 14px 16px; font-size: .88rem; line-height: 1.8; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); }
.result.ok { border-color: var(--cy-hot); background: rgba(79,200,232,.10); }
.result.ng { border-color: #7A3A38; background: rgba(242,114,106,.10); color: #F2726A; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .ln > span, .hero .jp { transform: none; }
  .hero .tagline { opacity: 1; filter: none; }
  .top-bg-in { transform: none; }
  .bar { opacity: 1; }
}

/* =========================================================
   スクロール演出（JSが動くときだけ効く。無効時は最初から表示）
   ========================================================= */
html.rv .rv-i {
  opacity: 0; transform: translateY(1.6rem);
  transition: opacity .8s cubic-bezier(.16,.84,.34,1), transform .8s cubic-bezier(.16,.84,.34,1);
  will-change: opacity, transform;
}
html.rv .rv-i.rv-in { opacity: 1; transform: none; }

/* 画像はわずかにズームアウトしながら出る */
html.rv .rv-i .shot .ph,
html.rv .rv-i .shot img,
html.rv .rv-i .pic img,
html.rv .rv-i.pic img {
  transform: scale(1.07); transition: transform 1.3s cubic-bezier(.16,.84,.34,1);
}
html.rv .rv-i.rv-in .shot .ph,
html.rv .rv-i.rv-in .shot img,
html.rv .rv-i.rv-in .pic img,
html.rv .rv-i.rv-in.pic img { transform: none; }

/* セクション頭のグラデ線は左から伸びる */
html.rv .sec::before, html.rv .rec::before,
html.rv .banner::before, html.rv .page::before {
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.16,.84,.34,1);
}
html.rv .rv-line::before { transform: scaleX(1); }

/* 罫線も左から */
html.rv .row { background-image: linear-gradient(90deg, var(--line-2), var(--line-2)); background-repeat: no-repeat; background-size: 0 1px; background-position: 0 0; transition: background-size 1s cubic-bezier(.16,.84,.34,1); border-top-color: transparent; }
html.rv .row.rv-in { background-size: 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  html.rv .rv-i { opacity: 1 !important; transform: none !important; }
  html.rv .rv-i .shot .ph, html.rv .rv-i .pic img { transform: none !important; }
  html.rv .sec::before, html.rv .rec::before, html.rv .banner::before, html.rv .page::before { transform: none !important; }
  html.rv .row { background-size: 100% 1px; border-top-color: var(--line); }
}

/* =========================================================
   メッセージ（ladder.co.jp の top-about と同じ組み方・同じ演出）
   ・画面全体を覆う固定レイヤーが 1.6 秒かけて沈む
   ・本文は blur(100px) から 1.2 秒で合焦（0.2 秒待ってから）
   ========================================================= */
.msg { position: relative; z-index: 1; overflow: hidden; }

.msg-sec { padding: clamp(196px, 32vw, 384px) 0 clamp(200px, 50vw, 600px); }
.msg-wrap { width: 1200px; max-width: calc(100% - var(--gut) * 2); margin: 0 auto; }

.msg-main { transition: opacity 1.2s cubic-bezier(.19,1,.22,1) .2s, filter 1.2s cubic-bezier(.19,1,.22,1) .2s; }
html.mg .msg-main { opacity: 0; filter: blur(100px); }
html.mg .msg-main.mg-in { opacity: 1; filter: blur(0); }

.msg-main h2 {
  margin: 0 0 .8em; color: var(--ink); font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 3.125rem); line-height: 1.5; letter-spacing: .01em;
}
.msg-main h2 > * { display: block; }
.msg-text { width: 960px; max-width: 100%; }
.msg-text p {
  margin: 0 0 2em; color: var(--ink-2); font-weight: 400;
  font-size: clamp(1rem, 2.17vw, 1.625rem); line-height: 2.2; letter-spacing: .05em;
}
.msg-text p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html.mg .msg-main { opacity: 1; filter: none; }
}

/* =========================================================
   NEXT WALL 固有の追加分
   ここから下は spiral-japan.com の site.css には無い部分
   ========================================================= */

/* ロゴ画像が未支給のため、ヘッダーは文字組みで表示する */
.brand .wm {
  font-family: "Archivo", system-ui, sans-serif; font-weight: 900;
  font-size: clamp(1.05rem, 1.9vw, 1.32rem); letter-spacing: .1em;
  color: var(--ink); line-height: 1;
}
.brand .wm em { font-style: normal; color: var(--cy); }

/* 採用情報は写真なしのため1カラム */
.rec-in.nophoto { grid-template-columns: minmax(0, 1fr); }

/* =========================================================
   サービス（定額制採用支援／スーパー人事くん）
   スパイラルは6事業を1行ずつ並べるが、NEXT WALLは1事業なので
   その枠の中をミニLPとして組む
   ========================================================= */
.svc {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gut) clamp(48px, 7vw, 88px);
  display: grid; gap: clamp(34px, 4.6vw, 58px);
}

.svc-lead { display: grid; gap: 13px; }
.svc-lead .svc-kind {
  margin: 0; justify-self: center; text-align: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted);
}
.svc-lead h3.svc-name {
  margin: clamp(2px, .6vw, 8px) 0 clamp(8px, 1.4vw, 16px);
  text-align: center; color: var(--cy);
  font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1.2;
}
.svc-lead .svc-claim {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.14rem); line-height: 1.7; color: var(--ink);
  border-left: 3px solid var(--cy); padding-left: 15px; max-width: 47rem;
}
.svc-lead .svc-desc { font-size: .89rem; color: var(--ink-2); max-width: 47rem; }

.blk-h { margin-bottom: clamp(15px, 2vw, 20px); }
.blk-h h4 {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900;
  font-size: clamp(1rem, 1.7vw, 1.14rem); margin: 0; letter-spacing: -.01em;
}

/* サービス節の上段ボタン（中央） */
.svc-cta { display: flex; justify-content: center; }

/* 採用の困りごと */
.pains {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.pain {
  background: rgba(255,255,255,.04); padding: clamp(17px, 2.3vw, 23px);
  display: grid; gap: 9px; align-content: start;
}
.pain .mk {
  font-family: "JetBrains Mono", monospace; font-size: .6rem;
  letter-spacing: .14em; color: var(--cy);
}
.pain b { font-weight: 700; font-size: .93rem; line-height: 1.7; }

/* すべて引き受けます（4ステップ） */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 30px); }
.step { display: grid; gap: 9px; align-content: start; padding-top: 15px; border-top: 2px solid var(--line-2); }
.step:hover { border-top-color: var(--cy); }
.step .idx {
  font-family: "Archivo", sans-serif; font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1; letter-spacing: -.04em; color: transparent;
  -webkit-text-stroke: 1.5px var(--line-2); align-self: start;
}
.step:hover .idx { -webkit-text-stroke-color: var(--cy); }
.step h5 {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900;
  font-size: 1.02rem; margin: 0; letter-spacing: -.01em; color: var(--ink);
}
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.step li { font-size: .85rem; line-height: 1.7; color: var(--ink-2); }
.step li::before { content: "—"; color: var(--cy); margin-right: .55em; }

/* 貴社に残る仕事（.rest はスパイラル側で別用途に使われているため .only にしている） */
.only {
  margin: clamp(18px, 2.4vw, 26px) auto 0; max-width: 42rem;
  border: 1px solid var(--cy); background: rgba(79,200,232,.08); border-radius: 14px;
  padding: clamp(15px, 2.1vw, 21px) clamp(18px, 2.6vw, 26px);
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: center; text-align: center; gap: 4px 18px;
}
.only .lb { font-size: .82rem; color: var(--ink-2); }
.only b {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900;
  font-size: clamp(1.04rem, 1.9vw, 1.26rem); color: var(--cy-hot); letter-spacing: -.01em;
}

/* 選ばれている理由 */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 34px); max-width: 47rem; }
.stat { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.stat .lb { font-size: .76rem; color: var(--muted); line-height: 1.6; }
.stat .v {
  font-family: "Archivo", system-ui, sans-serif; font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -.03em;
  color: var(--cy); font-variant-numeric: tabular-nums;
}
.stat .v small {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: .44em; font-weight: 700; letter-spacing: 0; margin-left: .1em;
}
.stat .v small.pre { margin: 0 .16em 0 0; }

/* 料金 */
.plan {
  border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.04);
  padding: clamp(22px, 3.2vw, 38px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 52px); align-items: center;
}
.plan .price { display: grid; gap: 11px; align-content: start; }
.plan .price .amt {
  font-family: "Archivo", system-ui, sans-serif; font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1; letter-spacing: -.045em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.plan .price .amt small {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: .34em; font-weight: 700; letter-spacing: 0; margin-left: .2em;
}
.plan .price p { font-size: .84rem; color: var(--ink-2); }
.plan .incl { display: grid; gap: 9px; }
.plan .incl .cap { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.plan li { font-size: .87rem; line-height: 1.6; color: var(--ink); display: flex; gap: 9px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--cy); font-size: .82em; font-weight: 700; }
.plan .act {
  grid-column: 1 / -1; display: flex; justify-content: center;
  margin-top: clamp(6px, 1vw, 12px);
  padding-top: clamp(20px, 2.8vw, 30px); border-top: 1px solid var(--line-2);
}

/* 送信完了 */
.thanks {
  max-width: 44rem; margin: 0 auto;
  border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.04);
  padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 48px);
  display: grid; gap: clamp(15px, 2.2vw, 21px); justify-items: center; text-align: center;
}
.thanks .big {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.9; color: var(--ink);
}
.thanks .sub { font-size: .85rem; color: var(--ink-2); max-width: 32rem; }
.thanks-contact {
  width: 100%; margin-top: clamp(4px, 1vw, 8px); padding-top: clamp(16px, 2.4vw, 24px);
  border-top: var(--hair);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(24px, 4vw, 48px);
}
.thanks-contact span { display: grid; gap: 1px; }
.thanks-contact em { font-style: normal; font-size: .71rem; letter-spacing: .06em; color: var(--muted); }
.thanks-contact a {
  font-family: "Archivo", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(.95rem, 1.8vw, 1.1rem); letter-spacing: -.01em;
  color: var(--cy); word-break: break-all;
}
.thanks-contact a:hover { color: var(--cy-hot); text-decoration: underline; }
