/* 光伸テクニカルの見た目
 * 旧サイト（Studio 書き出し＋上書きの lp.css）で実際に効いていた値を、部品ごとに1か所へまとめ直したもの。見た目は旧サイトと同じ
 * 決まり：1つの部品は1か所にだけ書く。末尾に足して上書きしない。!important を使わない。色は tokens.css の変数だけ
 * --fit：site.js が 1画面に収まるように入れる縮め率（旧サイトの --panel-fit と同じ計算）
 */

/* ---------- 共通：ヘッダー（紺の帯。動画のページでは隠す） ---------- */
#header {
  gap: 8px; padding: 8px 20px; background: var(--color-main);
}
#header .logo { display: flex; align-items: center; flex: 1 1 auto; width: auto; min-width: 0; }
#header .logo img { width: 150px; max-width: none; height: auto; object-fit: contain; filter: brightness(0) invert(1); }
#header .header-nav { flex: 0 0 auto; align-items: center; gap: 8px; }
#header .hb {
  justify-content: center; height: auto; min-height: 2.7em; padding: 0.6em 0.85em;
  border: 0; border-radius: 0; font-size: 13px; line-height: 1.25; letter-spacing: normal; transition: none;
}
#header .hb--req, #header .hb--req:hover { background: var(--color-base); color: var(--color-main); }
#header .hb--entry { background: var(--color-accent); color: var(--color-main); }

/* ---------- 共通：各ページの中身の箱（ヘッダーの下から画面の下まで） ---------- */
.dna-content {
  margin-top: var(--header-h); height: calc(100% - var(--header-h));
  align-items: flex-start; justify-content: center; gap: calc(20px * var(--fit));
  padding: 28px 20px;
  word-break: normal; line-break: auto;
}
.dna-content > * { flex: none; min-width: 0; max-width: 100%; }

/* 読み上げ用の見えない見出し：行の高さを本文と分けておく（検査が「隠れている」と判定できるように。見た目は変わらない） */
.vh { line-height: 2; }

/* 旧サイトの「文字の部品」と同じ折り返し（どこでも折れる）と語の間 */
.dna-hero-title, .dna-read, .dna-heading, .dna-body, .dna-quote, .dna-message, .dna-tag, .dna-number,
.dna-choice-title, .dna-choice-body, .entry-footer__text, .entry-phone, .entry-status {
  overflow-wrap: anywhere; word-break: break-word; word-spacing: 1px;
}

/* 文節の切れ目（<wbr>）でだけ折る文（最後の行が1〜2字だけにならないように） */
.dna-body.dna-keep { word-break: keep-all; overflow-wrap: anywhere; }

/* 見出し（帯の文字）：既定は紺の帯に白 */
.dna-heading {
  position: relative; display: flex; align-items: center; justify-content: flex-start;
  font-size: max(22px, calc(32px * var(--fit))); font-weight: 600; line-height: 1.25; letter-spacing: -0.08em;
}
.dna-heading-text { padding: 2px; background: var(--color-main); color: var(--color-base); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.dna-band-text { padding: 2px 4px; background: var(--color-base); color: var(--color-main); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* 本文（既定） */
.dna-body {
  position: relative; display: flex; align-items: center; justify-content: flex-start; width: 100%;
  font-size: max(14px, calc(16px * var(--fit))); font-weight: 500; line-height: 1.5; letter-spacing: -0.02em;
}

/* 写真（帯の中の1枚） */
.dna-photo { position: relative; width: 100%; }
.dna-photo img { display: block; width: 100%; height: 100%; object-position: center 40%; }

/* ---------- 1ページ目：動画（全面。素材をそのまま） ---------- */
.intro-video { display: block; width: 100%; height: calc(100% - var(--header-h)); margin-top: var(--header-h); object-fit: cover; object-position: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--color-base); pointer-events: none; text-shadow: 0 1px 5px var(--color-text-shadow);
}
.scroll-cue__label { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.18em; }
.scroll-cue__arrow {
  width: 11px; height: 11px; border-right: 1px solid var(--color-base); border-bottom: 1px solid var(--color-base);
  transform: rotate(45deg); animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.6; } 50% { transform: translateY(7px) rotate(45deg); opacity: 1; } }

/* ---------- p1：FV（紺＋吹き出しの地・足あと・走る人） ---------- */
#hero .dna-content {
  display: block; padding: 0; overflow: hidden;
  background: var(--color-main) url("assets/img/electrician-speech-background.svg") center top / 100% auto repeat-y;
}
.dna-hero-title {
  position: absolute; top: 4%; left: 20px; right: 20px; display: flex; align-items: center; justify-content: flex-start;
  font-size: 32px; font-weight: 600; line-height: 1.5; letter-spacing: -0.1em;
}
.dna-hero-footprint { position: absolute; top: 22%; left: 50%; width: auto; height: 43%; max-width: 42%; object-fit: contain; transform: translateX(-50%); }
.dna-hero-people { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 3; aspect-ratio: 2027 / 776; }
.dna-hero-people img { position: absolute; bottom: 0; left: 0; width: 100%; max-width: none; height: auto; }

/* ---------- p2：一歩先を考える（文字が灰から白へ読まれていく。大きさは site.js が画面に合わせる） ---------- */
#thinking .dna-content { padding: 24px 20px; gap: 18px; background: var(--color-main); }
.dna-quotes { display: flex; flex-direction: column; width: 100%; }
.dna-paragraphs { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.dna-read {
  position: relative; display: block; text-align: left; color: var(--color-base);
  font-size: var(--reading-size, 24px); font-weight: 600; line-height: 1.65; letter-spacing: -0.05em;
}
.dna-read--label { font-size: max(16px, calc(var(--reading-size, 24px) * 0.72)); font-weight: 700; line-height: 1.5; letter-spacing: normal; }
.read-char { color: var(--color-read); }
#thinking.is-reading .read-char { animation: read-white 0.18s ease-out both; animation-delay: calc(var(--i) * 22ms); }
#thinking.is-reading .dna-read--label .read-char { animation-name: read-yellow; }
@keyframes read-white { from { color: var(--color-read); } to { color: var(--color-base); } }
@keyframes read-yellow { from { color: var(--color-read); } to { color: var(--color-accent); } }

/* ---------- p3：守っている設備（紙の点の地＋設備の白い線画） ---------- */
#equipment .dna-content {
  background: url("assets/img/equipment-background-motif.svg") center / 100% 100% no-repeat, var(--bg-dot), var(--color-paper);
}
#equipment .dna-heading-text { padding: 2px; }
#equipment .dna-body { font-weight: 600; font-size: max(15px, calc(16px * var(--fit) + 1px)); letter-spacing: 0.03em; }
.dna-list {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%;
  font-size: max(15px, calc(16px * var(--fit) + 1px)); font-weight: 600; line-height: 1.5; letter-spacing: 0.03em;
}
.dna-list li { max-width: 100%; padding: 5px 8px; background: var(--color-base); }
.dna-list li::before { content: "・"; }

/* ---------- p4：疑問を持つこと（紺。白い帯の見出しと問い） ---------- */
#questions .dna-content { padding: 20px; gap: 12px; background: var(--color-main); color: var(--color-base); }
#questions .dna-heading { font-size: max(24px, calc(30px * var(--fit))); font-weight: 500; line-height: 1.45; }
#questions .dna-heading-text { padding: 2px 4px; background: var(--color-base); color: var(--color-main); }
#questions .dna-photo { margin-top: 8px; aspect-ratio: 2 / 1; }
#questions .dna-photo img { object-fit: contain; }
.dna-quote {
  position: relative; display: flex; align-items: center; justify-content: flex-start;
  font-size: max(16px, calc(21px * var(--fit))); font-weight: 600; line-height: 1.4; letter-spacing: -0.05em;
}

/* ---------- p5：どちらから支える？（紺と黄の斜めの面に、2人の写真） ---------- */
#roles .dna-content { display: block; padding: 0; overflow: hidden; background: var(--color-main); }
#roles .dna-content::before { content: ""; position: absolute; inset: 0; background: var(--color-accent); clip-path: polygon(0 60%, 100% 47%, 100% 88%, 0 100%); pointer-events: none; }
#roles .dna-heading { position: absolute; top: 5%; left: 20px; right: 20px; z-index: 2; font-size: clamp(20px, 5.5vw, 28px); line-height: 1.4; letter-spacing: 0.01em; }
#roles .dna-heading-text { padding: 0; background: none; }
.dna-role-people { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.dna-role-people--electrician {
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 55%, 55% 49%, 26% 49%, 26% 55%, 0 55%);
  transform: translateX(12px) scale(0.9); transform-origin: 70% 35%;
}
.dna-role-people--office { clip-path: polygon(0 55%, 26% 55%, 26% 49%, 55% 49%, 55% 55%, 100% 55%, 100% 100%, 0 100%); }
.dna-choice { position: absolute; left: 0; right: 0; z-index: 2; display: block; text-align: left; }
.dna-choice--electrician { top: 15%; height: 41%; color: var(--color-base); }
.dna-choice--office { top: 57%; height: 43%; color: var(--color-main); }
.dna-role-label { position: absolute; display: flex; flex-direction: column; gap: 8px; }
.dna-choice--electrician .dna-role-label { left: 20px; top: 24%; }
.dna-choice--office .dna-role-label { left: 55%; top: 22%; }
.dna-choice-title { position: relative; display: block; font-size: clamp(26px, 7.5vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -0.05em; }
.dna-choice-body { position: relative; display: flex; align-items: center; font-size: clamp(18px, 4.7vw, 24px); font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; }

/* ---------- p6・p8：職種（#01 電気工事士／#02 事務員）。上に文字、下に写真の切り抜き ---------- */
.dna-role .dna-content { justify-content: flex-start; padding: 20px; gap: 0; }
.dna-number {
  position: absolute; top: 20px; left: 20px; display: flex; align-items: flex-start; justify-content: center;
  font-family: var(--font-en); font-style: italic; font-size: max(36px, calc(48px * var(--fit))); font-weight: 300; line-height: 1; letter-spacing: -0.06em;
}
.dna-number-prefix { margin-right: 3px; font-size: 0.5em; line-height: 1.15; }
.dna-heading--large {
  margin-bottom: calc(24px * var(--fit)); padding-left: 90px;
  font-size: max(32px, calc(44px * var(--fit))); font-weight: 700; line-height: 1.15; letter-spacing: -0.05em;
}
.dna-heading--large .dna-heading-text { padding: 0; background: none; color: inherit; font-weight: inherit; }
.dna-message { position: relative; display: block; margin-bottom: calc(20px * var(--fit)); font-size: max(17px, calc(22px * var(--fit))); font-weight: 600; line-height: 1.4; letter-spacing: -0.05em; }
.dna-role .dna-body { display: block; font-weight: 600; }
.dna-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; margin-block: 14px; }
.dna-tag { position: relative; display: block; font-size: max(14px, calc(16px * var(--fit))); font-weight: 600; line-height: 1.5; letter-spacing: -0.05em; }
.dna-art { position: relative; flex: 1 1 0; width: calc(100% + 40px); max-width: none; min-height: 80px; margin: calc(20px * var(--fit)) -20px 0; overflow: hidden; }
.dna-art__person { position: absolute; max-width: none; }
.dna-art__inset { position: absolute; z-index: 1; width: auto; object-fit: contain; }

#electrician .dna-content {
  color: var(--color-base);
  background: var(--color-main) url("assets/img/electrician-speech-background.svg") center top / 100% auto repeat-y;
}
#electrician .dna-number, #electrician .dna-heading-text { color: var(--color-accent); }
#electrician .dna-art__person {
  top: 10%; right: 0; width: auto; height: 200%; clip-path: inset(0 0 50% 0);
  transform: translateX(-3%) scale(1.222); transform-origin: right center;
}
#electrician .dna-art__inset--a { left: 13%; top: 7.5%; height: 50.4%; max-width: 40.8%; }
#electrician .dna-art__inset--b { left: 2%; top: 54%; height: 42%; max-width: 26%; }

#office .dna-content {
  color: var(--color-main);
  background: var(--color-accent) url("assets/img/office-speech-background.svg") center top / 100% auto repeat-y;
}
#office .dna-art__inset--a { left: 4%; top: 0; height: 78%; max-width: 58%; }
#office .dna-art__inset--b { right: 5%; top: 22%; height: 76%; max-width: 44%; }

/* ---------- p7・p9：2行の見出し（行ごとに幅いっぱい。大きさは site.js） ---------- */
.dna-heading--lines {
  top: 10px; flex-direction: column; align-items: stretch; width: 100%;
  font-size: clamp(20px, 5.65vw, 27px); font-weight: 500; line-height: 1.4; letter-spacing: -0.04em;
}
.dna-title-line {
  display: block; width: 100%; margin-bottom: 4px; padding: 1px 4px; white-space: nowrap; line-height: 1.4;
  background: var(--color-base); color: var(--color-main); box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* p7：全国を回りながら（紺。走る人と2枚の写真） */
#travel .dna-content { padding: 20px 20px 30px; background: var(--color-main); color: var(--color-base); }
#travel .dna-body { top: 10px; }
#travel .dna-art { margin-top: 20px; }
#travel .dna-art__person {
  top: 0; right: -3%; width: 88%; height: 100%; object-fit: contain; object-position: right center;
  transform: rotate(30deg) scale(0.94); transform-origin: center center;
}
#travel .dna-art__inset--a { left: 13%; top: 2%; height: 60.5%; max-width: 49%; }
#travel .dna-art__inset--b { left: 2%; top: 54%; height: 42%; max-width: 26%; }

/* p9：頼られる仕事。自分の時間も（黄。下に流れる文字の帯） */
#office-start .dna-content { justify-content: space-between; padding: 12px 20px 22px; background: var(--color-accent); color: var(--color-main); }
#office-start .dna-body { top: 10px; font-size: max(15px, calc(16px * var(--fit) + 1px)); letter-spacing: 0.03em; }
.dna-txt { display: flex; flex-direction: column; gap: calc(20px * var(--fit)); width: 100%; }
.ticker {
  position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center;
  width: calc(100% + 40px); max-width: none; height: 36px; margin-inline: -20px; border-block: 1px solid var(--color-main); background: var(--color-base);
}
.ticker__track { position: relative; display: flex; flex: none; width: 100%; height: 48px; overflow: hidden; background: var(--color-base); }
.ticker__run { display: flex; flex: none; align-items: center; gap: 16px; animation: ticker var(--ticker-dur, 10s) linear infinite; }
.ticker__set { display: flex; flex: none; align-items: center; gap: 12px; }
.ticker__copy { display: flex; align-items: flex-end; font-size: 28px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--color-main); }
.ticker__copy span { display: block; font-size: calc(1em * var(--s)); line-height: 1; }
.ticker__arrow { flex: none; width: 25px; height: auto; }
@keyframes ticker { from { transform: translateX(calc(-1 * var(--ticker-w, 592px))); } to { transform: translateX(0); } }

/* ---------- p10：一歩先が、誰かの安心に（紙の点の地＋写真） ---------- */
#assurance .dna-content { padding: 22px 20px; gap: 12px; background: var(--bg-dot), var(--color-paper); color: var(--color-main); }
#assurance .dna-heading { font-size: max(24px, calc(32px * var(--fit))); font-weight: 500; line-height: 1.4; }
#assurance .dna-heading-text { padding: 2px 4px; }
#assurance .dna-photo { flex-shrink: 0; height: clamp(100px, 23dvh, 210px); margin-block: 8px 12px; isolation: isolate; }
#assurance .dna-photo::before { content: ""; position: absolute; inset: -7px 3px -7px -3px; z-index: -1; background: var(--color-main); transform: rotate(-2deg); }
#assurance .dna-photo img { object-fit: cover; }
.dna-body--invite { align-self: flex-start; padding: 3px 5px; background: var(--color-accent); font-size: max(16px, calc(16px * var(--fit) + 2px)); }

/* ---------- p11：会社概要（紺の地に白い歯車の半分） ---------- */
#company .dna-content { padding: 20px 20px 40px; gap: 28px; overflow: hidden; background: var(--color-main); color: var(--color-base); }
#company .dna-heading { top: 20px; z-index: 3; }
#company .dna-heading-text, #requirements .dna-heading-text, #entry .dna-heading-text { background: var(--color-accent); color: var(--color-main); }
.dna-facts {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; width: 100%;
  margin-top: 28px; padding: 52px 12px 46px 135px; isolation: isolate; color: var(--color-main);
}
.dna-facts::before {
  content: ""; position: absolute; left: 0; top: 50%; z-index: -1; width: 200%; aspect-ratio: 1; transform: translateY(-50%);
  background: var(--color-base);
  clip-path: polygon(93.00% 50.00%, 99.85% 53.92%, 99.38% 57.82%, 91.81% 60.04%, 90.90% 63.29%, 96.19% 69.13%, 94.55% 72.70%, 86.66% 72.47%, 84.79% 75.27%, 88.02% 82.47%, 85.36% 85.36%, 77.93% 82.70%, 75.27% 84.79%, 76.12% 92.63%, 72.70% 94.55%, 66.46% 89.73%, 63.29% 90.90%, 61.67% 98.62%, 57.82% 99.38%, 53.37% 92.87%, 50.00% 93.00%, 46.08% 99.85%, 42.18% 99.38%, 39.96% 91.81%, 36.71% 90.90%, 30.87% 96.19%, 27.30% 94.55%, 27.53% 86.66%, 24.73% 84.79%, 17.53% 88.02%, 14.64% 85.36%, 17.30% 77.93%, 15.21% 75.27%, 7.37% 76.12%, 5.45% 72.70%, 10.27% 66.46%, 9.10% 63.29%, 1.38% 61.67%, 0.62% 57.82%, 7.13% 53.37%, 7.00% 50.00%, 0.15% 46.08%, 0.62% 42.18%, 8.19% 39.96%, 9.10% 36.71%, 3.81% 30.87%, 5.45% 27.30%, 13.34% 27.53%, 15.21% 24.73%, 11.98% 17.53%, 14.64% 14.64%, 22.07% 17.30%, 24.73% 15.21%, 23.88% 7.37%, 27.30% 5.45%, 33.54% 10.27%, 36.71% 9.10%, 38.33% 1.38%, 42.18% 0.62%, 46.63% 7.13%, 50.00% 7.00%, 53.92% 0.15%, 57.82% 0.62%, 60.04% 8.19%, 63.29% 9.10%, 69.13% 3.81%, 72.70% 5.45%, 72.47% 13.34%, 75.27% 15.21%, 82.47% 11.98%, 85.36% 14.64%, 82.70% 22.07%, 84.79% 24.73%, 92.63% 23.88%, 94.55% 27.30%, 89.73% 33.54%, 90.90% 36.71%, 98.62% 38.33%, 99.38% 42.18%, 92.87% 46.63%);
}
.dna-fact { font-size: max(15px, calc(16px * var(--fit) + 1px)); line-height: 1.6; letter-spacing: 0.03em; }
.dna-fact:not(:last-child) { padding-bottom: 16px; border-bottom: 1px solid var(--color-rule); }
.dna-fact dt { margin-bottom: 4px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.dna-fact dd { font-weight: 500; }
.dna-fact a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 長いページ：中身の箱の上の余白（ヘッダーの高さ）がページの外へ抜けないように ---------- */
#requirements, #entry { display: flow-root; }
#requirements .page__end, #entry .page__end { margin-top: -1px; }   /* 止まる位置の1px で、最下部が旧サイトより1px 下がらないように */

/* ---------- 募集要項（長いページ。白＋淡い吹き出しの地・職種のタブ） ---------- */
#requirements .dna-content {
  height: auto; min-height: calc(100dvh - var(--header-h)); padding: 32px 20px 80px; gap: 48px; color: var(--color-main);
  background: var(--color-base) url("assets/img/requirements-speech-background.svg") center top / 100% auto repeat-y;
}
#requirements .dna-heading, #company .dna-heading { font-size: max(36px, calc(46px * var(--fit))); }
.job-tabs { display: flex; gap: 8px; width: 100%; }
.job-tab {
  flex: 1; padding: 14px 8px; border: 1px solid var(--color-main); border-radius: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; background: var(--color-base); color: var(--color-main);
}
.job-tab[aria-selected="true"] { background: var(--color-main); color: var(--color-base); }
.job-panel { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.job-panel[hidden] { display: none; }
.job-facts { display: flex; flex-direction: column; width: 100%; border-top: 2px solid var(--color-main); }
.job-fact {
  display: grid; grid-template-columns: 5.5em minmax(0, 1fr); align-items: start; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--color-rule-2); font-size: 15px; line-height: 1.5;
}
.job-fact dt { font-size: 17px; font-weight: 700; line-height: 1.6; letter-spacing: 0.03em; }
.job-fact dd { min-width: 0; font-size: 17px; font-weight: 500; line-height: 1.75; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.job-note { display: block; margin-top: 8px; line-height: 1.6; }

/* ---------- エントリー（長いページ。紺＋白いフォーム） ---------- */
#entry .dna-content { height: auto; min-height: calc(100dvh - var(--header-h)); padding: 40px 20px 96px; gap: 32px; background: var(--color-main); color: var(--color-base); }
#entry .dna-heading { font-size: 32px; }
.entry-form { display: flex; flex-direction: column; gap: 24px; width: 100%; padding: 24px 16px; background: var(--color-base); color: var(--color-main); }
.entry-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.entry-label { font-size: 15px; font-weight: 700; line-height: 1.5; }
.entry-field .page__label { display: block; }
.entry-input {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 12px;
  border: 1px solid var(--color-main); border-radius: 0; background: var(--color-base); color: var(--color-main);
  font-family: "Noto Sans JP"; font-size: 16px; font-weight: 500; line-height: 1.5; -webkit-appearance: none; appearance: none;
}
.entry-input::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.entry-input--area { min-height: 160px; resize: vertical; overscroll-behavior-y: contain; }
.entry-input--select { padding-right: 48px; background: var(--color-base) url("assets/img/select-chevron.svg") right 18px center / 12px 8px no-repeat; }
.entry-status { display: flex; justify-content: center; font-size: 14px; line-height: 1.5; color: var(--color-main); }
.entry-status:empty { display: none; }
.entry-footer { display: flex; flex-direction: column; gap: 12px; width: 100%; color: var(--color-base); }
.entry-footer__text { display: block; font-size: 14px; font-weight: 500; line-height: 1.65; letter-spacing: -0.02em; }
.entry-phone { display: flex; justify-content: center; font-family: var(--font-en); font-size: 24px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- ボタン（送信・PCの右の帯）：文字＋右に矢印の四角 ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; min-height: 48px;
  padding: 0 16px 0 24px; border: 0; background: var(--color-main); color: var(--color-base); text-align: left; cursor: pointer;
}
.cta--submit, .cta--accent { background: var(--color-accent); color: var(--color-main); }
.cta__label { font-family: var(--font-body); font-size: 16px; font-weight: 500; line-height: 1.5; }
.cta__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; overflow: hidden; background: var(--color-main); }
.cta__icon::before { content: ""; width: 8px; height: 16px; background: url("assets/img/arrow-white.svg") 50% / cover; }
.cta__icon--submit::before { width: 24px; height: 24px; background: url("assets/img/submit-arrow.svg") center / contain no-repeat; }

/* ---------- 低い画面（旧サイトの高さの段階をそのまま） ---------- */
@media (max-height: 740px) {
  #requirements .dna-content { padding: 20px 20px 72px; }
  #entry .dna-content { padding-top: 32px; gap: 24px; }
  #entry .dna-heading { font-size: 28px; }
  .entry-footer__text { line-height: 1.5; }
}
@media (max-height: 620px) {
  #questions .dna-content { gap: 8px; }
  #questions .dna-photo { aspect-ratio: auto; height: 18dvh; }
  .dna-facts { gap: 12px; margin-top: 12px; padding-top: 26px; padding-bottom: 22px; }
  #office-start .dna-body { line-height: 1.4; }
  #office-start .dna-title-line { margin-bottom: 2px; }
  #requirements .dna-content { padding-top: 16px; padding-bottom: 64px; }
  #entry .dna-content { padding-top: 16px; gap: 12px; }
  #entry .dna-heading { font-size: 24px; }
  .job-fact { font-size: 14px; }
  .cta { height: 48px; }
}
@media (max-width: 359px) {
  .job-fact { grid-template-columns: 5em minmax(0, 1fr); gap: 10px; }
}

/* ---------- スマホ幅：写真の切り抜きの場所を広く取る ---------- */
@media (max-width: 768px) {
  #travel .dna-art, #office .dna-art { flex-shrink: 0; min-height: clamp(140px, 24dvh, 230px); }
  #travel .dna-art__person { right: 0; width: 64%; object-position: center; transform: rotate(15deg); }
  #travel .dna-art__inset--a { left: 3%; top: 0; height: 66%; max-width: 48%; }
  #travel .dna-art__inset--b { top: auto; bottom: 0; height: 48%; max-width: 32%; }
  #office .dna-art__inset--a { left: 8%; height: 100%; max-width: 62%; }
  #office .dna-art__inset--b { right: 10%; top: auto; bottom: 0; height: 82%; max-width: 46%; }
}

/* 縦に長い画面（PC の縦長など）：会社概要は見出しを上・表を下に分けて、中身が画面の約7割に広がるように（上下の余白は同じ） */
@media (min-height: 1000px) {
  #company .dna-content { justify-content: space-between; padding-top: calc(14dvh - 20px); padding-bottom: 14dvh; }
}

/* スマホ幅で低い画面：写真の切り抜きの場所を少し縮めて、文字を1画面に収める */
@media (max-width: 768px) and (max-height: 620px) {
  #travel .dna-art, #office .dna-art { min-height: 90px; }
}

/* ---------- PC：左右の帯（旧サイトと同じく 769px から。背景のイラストは帯だけに見える） ---------- */
@media (min-width: 769px) {
  .stage { grid-template-columns: minmax(0, 1fr) var(--col) minmax(0, 1fr); background: var(--color-base) url("assets/img/desktop-background.png") center / cover no-repeat fixed; }
  .rail { position: relative; display: flex; align-items: center; justify-content: center; height: 100dvh; padding: 0 8px; }
  .rail-brand { display: flex; justify-content: center; width: min(260px, 85%); }
  .rail-brand__logo { width: 100%; height: auto; object-fit: contain; }
  .rail-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
  .cta--rail { width: min(160px, 100%); height: 64px; min-height: 64px; padding: 0 14px 0 22px; }
}

/* ---------- 出現：ページに着いたら、上から順にずらして出す（site.js。動きは旧サイトと同じ） ---------- */
[data-motion].is-pending { visibility: hidden; }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  .read-char { color: var(--color-base); }
  .dna-read--label .read-char { color: var(--color-accent); }
  .ticker__run { animation: none; }
}

/* ---------- SP：見出しの背景帯に左右の余白をつける ---------- */
@media (max-width: 768px) {
  /* 2行見出し：文字サイズは site.js が余白を引いた幅に合わせる */
  .dna-title-line { padding: 4px 14px; }
  /* 背景つき見出し */
  #equipment .dna-heading-text,
  #questions .dna-heading-text,
  #assurance .dna-heading-text { padding: 10px 14px; text-wrap: pretty; }
  /* SPは幅が足りないので、「大切にするのは、」の後の <br> を使わず自然に折り返す */
  #questions .dna-heading-text br { display: none; }
  /* 「私たちが守っているのは〜」「あなたが考える〜」は <br>（SP用の br-sp も）で改行位置を決めて折り返さない */
  #equipment .dna-heading-text,
  #assurance .dna-heading-text { white-space: nowrap; }
  #assurance .dna-heading { font-size: min(max(24px, calc(32px * var(--fit))), 8vw); }
  /* 1行目「私たちが守っているのは、」を1行に収める */
  #equipment .dna-heading { font-size: min(max(22px, calc(32px * var(--fit))), 7.4vw); }
}

/* ---------- PC：「私たちが守っているのは、／「もしも」の時に動く設備です。」を2行に収め、左右に余白をつける ---------- */
@media (min-width: 769px) {
  /* SP専用の改行（front-page.php の <br class="br-sp">） */
  .br-sp { display: none; }
  #equipment .dna-heading-text { padding: 10px 14px; white-space: nowrap; }
  #equipment .dna-heading { font-size: min(max(22px, calc(32px * var(--fit))), 29px); }
  /* 「光伸テクニカルが大切にするのは、／「疑問を持つこと」。」を2行に収める（改行は front-page.php の <br>） */
  #questions .dna-heading-text { padding: 10px 14px; white-space: nowrap; }
  #questions .dna-heading { font-size: min(max(24px, calc(30px * var(--fit))), 27px); }
  /* 「あなたが考える「一歩先」が、／誰かの安心につながる。」を2行に収める（改行は front-page.php の <br>） */
  #assurance .dna-heading-text { padding: 10px 14px; white-space: nowrap; }
  #assurance .dna-heading { font-size: min(max(24px, calc(32px * var(--fit))), 31px); }
}

/* ---------- 「会社概要」「募集要項」の黄色い帯に余白をつける（PC・SP共通） ---------- */
#company .dna-heading-text,
#requirements .dna-heading-text { padding: 6px 16px; }

/* SP：「会社概要」「募集要項」は画面の高さで縮む量がページごとに違うので、大きさを固定してそろえる */
@media (max-width: 768px) {
  #company .dna-heading,
  #requirements .dna-heading { font-size: 40px; }
}

/* SP：電気工事士ページの写真をPCと同じ配置にする
   画像エリアの中央に横長（1.85:1）の枠をとり、3枚をPCと同じ割合で置く。左の写真と人物が重ならないよう、PC（約1.3:1）より横長にしている（cqw/cqh は画像エリア基準） */
@media (max-width: 768px) {
  #electrician .dna-art { flex-shrink: 0; min-height: clamp(140px, 24dvh, 260px); container-type: size; }
  #electrician .dna-art > * {
    --h: min(100cqh, 100cqw / 1.85);
    --w: calc(var(--h) * 1.85);
    --ox: calc((100cqw - var(--w)) / 2);
    --oy: calc((100cqh - var(--h)) / 2);
  }
  #electrician .dna-art__person { top: calc(var(--oy) + var(--h) * 0.1); right: var(--ox); height: calc(var(--h) * 2); }
  #electrician .dna-art__inset--a { left: calc(var(--ox) + var(--w) * 0.13); top: calc(var(--oy) + var(--h) * 0.075); height: calc(var(--h) * 0.504); max-width: calc(var(--w) * 0.408); }
  #electrician .dna-art__inset--b { left: calc(var(--ox) + var(--w) * 0.02); top: calc(var(--oy) + var(--h) * 0.54); height: calc(var(--h) * 0.42); max-width: calc(var(--w) * 0.26); }
}

/* SP：旅のページ（#travel）の写真をPCと同じ配置にする
   画像エリアを高めにとり（写真を大きく見せるため）、その中央に横長（1.7:1）の枠をとり、3枚をPCと同じ割合で置く。地図の写真と人物が重ならないよう、PCより横長にしている（上の SP 用 #travel の指定を上書き） */
@media (max-width: 768px) {
  #travel .dna-art { min-height: clamp(150px, 28dvh, 260px); container-type: size; }
  #travel .dna-art > * {
    --h: min(100cqh, 100cqw / 1.7);
    --w: calc(var(--h) * 1.7);
    --ox: calc((100cqw - var(--w)) / 2);
    --oy: calc((100cqh - var(--h)) / 2);
  }
  #travel .dna-art__person { top: var(--oy); right: calc(var(--ox) - var(--w) * 0.03); width: calc(var(--w) * 0.88); height: var(--h); object-position: right center; transform: rotate(30deg) scale(0.94); }
  #travel .dna-art__inset--a { left: calc(var(--ox) + var(--w) * 0.13); top: calc(var(--oy) + var(--h) * 0.02); height: calc(var(--h) * 0.605); max-width: calc(var(--w) * 0.49); }
  #travel .dna-art__inset--b { left: calc(var(--ox) + var(--w) * 0.02); top: calc(var(--oy) + var(--h) * 0.54); bottom: auto; height: calc(var(--h) * 0.42); max-width: calc(var(--w) * 0.26); }
}
@media (max-width: 768px) and (max-height: 620px) {
  #travel .dna-art, #electrician .dna-art { min-height: 90px; }
}
