/* 株式会社八千代通商 会社サイト 共通の見た目 */
  /* 構成: ウチダのトップと販促品ページの並び（業務の一言 → 最初の画面 → 私たちについて → こんなご依頼に → 業務内容 → 扱える物 → 強み → 写真の帯 → 採用 → お問い合わせ）。
     白地に青緑の1テーマ。スマホは1列、広い画面はカードを2〜3列にする */
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: #eef8f7;
    --fg: #1d3446;
    --muted: #51697a;
    --line: #d3e8e6;
    --accent: #14a3a0;
    --accent-ink: #0b7a77;
    --accent-soft: #c9ecea;
    --accent-2: #ff7a59;
    --accent-2-soft: #ffe0d6;
    --accent-2-ink: #b84a2e;
    --white: #ffffff;
    --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    --en: "Outfit", "Helvetica Neue", Arial, sans-serif;

  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--jp); font-size: 15px; line-height: 1.9; overflow-x: clip; }
  .band { position: relative; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .inner { position: relative; max-width: 1120px; margin: 0 auto; }
  section.band { padding-block: clamp(64px, 10vw, 112px); overflow: hidden; }
  section.band.soft { background: var(--bg-soft); }
  a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

  /* ヘッダー（社名の上に業務の一言、電話番号、お問い合わせ・採用のボタン） */
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
  .site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); padding-block: 10px; transition: box-shadow .3s; }
  .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(29, 52, 70, .08); }
  .site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .brand { display: grid; line-height: 1.3; text-decoration: none; color: var(--fg); }
  .brand small { font-size: 11px; font-weight: 700; color: var(--accent-ink); letter-spacing: .04em; }
  .brand strong { font-size: 18px; letter-spacing: .06em; }
  .head-actions { display: none; align-items: center; gap: 10px; }
  .tel { display: inline-flex; align-items: center; gap: 6px; font-family: var(--en); font-size: 20px; font-weight: 600; color: var(--fg); text-decoration: none; letter-spacing: .02em; }
  .tel svg { width: 18px; height: 18px; color: var(--accent); }
  .pill { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .2s, background-color .2s; }
  .pill:hover { transform: translateY(-2px); }
  .pill.contact-pill { background: var(--accent-2); color: var(--white); }
  .pill.recruit-pill { background: var(--accent); color: var(--white); }
  .nav { display: none; gap: 26px; font-size: 14px; }
  .nav a { position: relative; color: var(--fg); text-decoration: none; padding-block: 4px; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .menu-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--accent); display: grid; place-content: center; gap: 5px; cursor: pointer; flex: none; }
  .menu-btn i { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .drawer { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
  .drawer.is-open { max-height: 560px; }
  .drawer ul { list-style: none; margin: 0; padding: 8px 0 0; display: grid; }
  .drawer li a { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
  .drawer li a::after { content: "→"; color: var(--accent); }
  .drawer .drawer-actions { display: grid; gap: 10px; padding: 16px 0 18px; }
  .drawer .pill { justify-content: center; padding: 12px; font-size: 15px; }
  .drawer .tel { justify-content: center; }

  /* 最初の画面：倉庫の動画（縦 9:16）を置き、その上に文字を重ねる。文字は白い縁取りで、動画の上でも読めるようにする。
     動画の地は白に近いので、掛け合わせ（multiply）で置くと白い部分が紙の白になじみ、枠が見えない。
     コマ送りの版は index-anim.html にそのまま残してある（2026-11-01） */
  .hero { padding-block: 12px 24px; overflow: hidden; }
  .hero .inner { position: relative; display: grid; gap: 12px; }
  .film-box { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100svh - 120px); }
  .film-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
  .film-box .copy { position: absolute; left: 0; right: 0; top: 14px; z-index: 1; display: grid; gap: 12px; }
  .hero .meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .hero .meta span { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 12px; border-radius: 999px; box-shadow: 0 0 0 3px #fff; }
  .hero h1 { margin: 0; font-size: clamp(20px, 5vw, 32px); font-weight: 700; line-height: 1.5; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere;
    text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 0 12px #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 -3px 0 #fff, 0 3px 0 #fff, -3px 0 0 #fff, 3px 0 0 #fff; }
  .hero h1 .nw { white-space: nowrap; }
  .hero .text { display: grid; gap: 2px; max-width: 38em; }
  .hero .text p { margin: 0; color: var(--muted); }
  .hero-in { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * .12s + .1s); }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  /* スクロールの印：イラストの下の余白に重ねて真ん中に置き、縦の線を下向きに流す（向きは大坪電気と同じ）。
     イラストの下に並べると、高さの低い画面で線がはみ出す。現れる動きが transform を使うので、真ん中は margin で揃える（2026-11-02 KJ 指摘） */
  .scroll-cue { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 1; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; font-family: var(--en); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
  .scroll-cue span { position: relative; width: 2px; height: 44px; background: var(--line); overflow: hidden; border-radius: 2px; }
  .scroll-cue span::after { content: ""; position: absolute; inset: 0; height: 45%; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
  @keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(230%); } }

  /* 浮かぶ飾り */
  .deco { position: absolute; border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; pointer-events: none; opacity: .7; animation: blob 14s ease-in-out infinite alternate; }
  .deco.teal { background: var(--accent-soft); }
  .deco.coral { background: var(--accent-2-soft); animation-duration: 18s; animation-direction: alternate-reverse; }
  @keyframes blob {
    0% { transform: translate(0, 0) rotate(0deg); border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; }
    50% { transform: translate(14px, -18px) rotate(40deg); border-radius: 58% 42% 39% 61% / 55% 61% 39% 45%; }
    100% { transform: translate(-10px, 10px) rotate(80deg); border-radius: 50% 50% 45% 55% / 40% 60% 40% 60%; }
  }

  /* 見出し（日本語の小見出し＋英語の大見出し。英語は表示されると色が流れて変わる） */
  .head { position: relative; display: grid; gap: 4px; align-content: start; margin-bottom: clamp(28px, 5vw, 44px); }
  .head p { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent-ink); letter-spacing: .12em; }
  .head h2, .head h1 { margin: 0; font-family: var(--en); font-weight: 600; font-size: clamp(42px, 11vw, 76px); line-height: 1.05; letter-spacing: .01em;
    background: linear-gradient(90deg, var(--fg) 0 50%, var(--accent) 50% 100%); background-size: 200% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.1s cubic-bezier(.6, 0, .2, 1) .15s; }
  .head.is-in h2, .head.is-in h1 { background-position: 0 0; }
  .section-lead { margin: -12px 0 28px; color: var(--muted); max-width: 40em; }

  /* スクロールで下から出る */
  .js [data-reveal] { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * .08s); }
  .js [data-reveal].is-out { opacity: 0; transform: translateY(32px); }

  /* 私たちについて */
  .about-body { display: grid; gap: 28px; }
  .prose { display: grid; gap: 16px; max-width: 40em; }
  .prose p { margin: 0; color: var(--muted); }
  .prose .lead { font-size: clamp(19px, 3.6vw, 24px); font-weight: 700; line-height: 1.7; color: var(--fg); }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
  .facts div { background: var(--bg); padding: 16px; min-width: 0; }
  .facts dt { font-size: 12px; color: var(--muted); }
  .facts dd { margin: 2px 0 0; font-weight: 700; line-height: 1.5; }
  .facts .num { font-family: var(--en); font-size: 34px; font-weight: 600; color: var(--accent-ink); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
  .facts .wide { grid-column: 1 / -1; }

  /* こんなご依頼に */
  .cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .cases li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--bg-soft); font-weight: 700; line-height: 1.6; }
  .cases li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
  .cases-note { margin: 22px 0 0; color: var(--muted); }

  /* 業務内容 */
  .works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work { display: grid; gap: 8px; align-content: start; padding: 20px 16px; border-radius: 20px; background: var(--bg); border: 1.5px solid var(--line); min-width: 0; transition: transform .3s, box-shadow .3s, border-color .3s, opacity .8s ease; }
  .work:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(20, 163, 160, .12); }
  .work .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-content: center; background: var(--accent-soft); color: var(--accent-ink); transition: transform .4s; }
  .work:hover .icon { transform: rotate(-8deg) scale(1.06); }
  .work .icon svg { width: 28px; height: 28px; }
  .work h3 { margin: 0; font-size: 18px; }
  .work p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

  .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .btn { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 700; text-decoration: none; overflow: hidden; isolation: isolate; }
  .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-ink); transform: translateX(-101%); transition: transform .45s cubic-bezier(.6, 0, .2, 1); }
  .btn:hover::before { transform: none; }
  .btn::after { content: "→"; transition: transform .3s; }
  .btn:hover::after { transform: translateX(6px); }
  .btn:active { transform: scale(.97); }

  /* 扱える物 */
  .items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .items li { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent-ink); font-weight: 700; background: var(--bg); transition: background-color .3s, color .3s; }
  .items li:hover { background: var(--accent); color: var(--white); }

  /* 強み（写真と文を交互に） */
  .strengths { display: grid; gap: 40px; }
  .strength { display: grid; gap: 18px; align-items: center; }
  .strength figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 120px 22px 120px 22px; transition: border-radius 1.2s cubic-bezier(.2, .7, .2, 1) .1s, opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .strength.is-in figure, .no-js .strength figure { border-radius: 22px; }
  .strength img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
  .strength.is-in img { transform: scale(1); }
  .strength .no { font-family: var(--en); font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: .12em; }
  .strength h3 { margin: 2px 0 8px; font-size: clamp(20px, 4.4vw, 26px); }
  .strength p { margin: 0; color: var(--muted); }

  /* 写真の帯（横に流れ続ける） */
  section.band.loop { padding: 0; }
  .loop-track { display: flex; gap: 10px; width: max-content; animation: loop 48s linear infinite; }
  .loop:hover .loop-track { animation-play-state: paused; }
  .loop figure { margin: 0; width: clamp(220px, 42vw, 380px); aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; flex: none; }
  .loop img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; }
  @keyframes loop { to { transform: translateX(calc(-50% - 5px)); } }

  /* 採用 */
  .recruit h3.title { margin: 0 0 8px; font-size: clamp(20px, 4vw, 26px); }
  .recruit-lead { margin: 0 0 18px; color: var(--muted); max-width: 40em; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
  .chips li { padding: 4px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
  .jobs { display: grid; gap: 14px; }
  .job { border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; background: var(--bg); display: grid; gap: 6px; min-width: 0; transition: border-color .3s, transform .3s, opacity .8s ease; }
  .job:hover { border-color: var(--accent); transform: translateY(-4px); }
  .job .tag { justify-self: start; font-size: 12px; font-weight: 700; padding: 1px 12px; border-radius: 999px; background: var(--accent-2-soft); color: var(--accent-2-ink); }
  .job h4 { margin: 0; font-size: 18px; }
  .job p { margin: 0; color: var(--muted); font-size: 14px; }

  /* お問い合わせ（住所・電話番号・フォーム） */
  section.band.contact { background: var(--accent); color: var(--white); }
  .contact .head p { color: var(--white); }
  .contact .head h2, .contact .head h1 { background-image: linear-gradient(90deg, var(--white) 0 50%, var(--accent-soft) 50% 100%); }
  .contact-grid { display: grid; gap: 22px; }
  .contact p.lead-text { margin: 0; max-width: 40em; }
  .contact-box { display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); }
  .contact-box .label { margin: 0; font-size: 13px; font-weight: 700; }
  .contact-box .tel { color: var(--white); font-size: 30px; }
  .contact-box .tel svg { color: var(--white); width: 24px; height: 24px; }
  .contact-box .addr { margin: 0; font-size: 14px; }
  .contact .btn { background: var(--white); color: var(--accent-ink); justify-self: start; }
  .contact .btn::before { background: var(--accent-soft); }
  .contact .deco.teal { background: rgba(255, 255, 255, .16); opacity: 1; }

  /* フッター */
  .site-footer { padding-block: 44px; border-top: 1px solid var(--line); }
  .site-footer .inner { display: grid; gap: 14px; }
  .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
  .site-footer a { color: var(--fg); text-decoration: none; }
  .address { margin: 0; font-size: 14px; color: var(--muted); }
  .site-footer small { color: var(--muted); }

  @media (min-width: 761px) {
    .head-actions, .nav { display: flex; }
    .menu-btn, .drawer { display: none !important; }
    .site-header .inner { flex-wrap: wrap; row-gap: 6px; }
    .nav { order: 3; width: 100%; justify-content: flex-end; }
    /* 広い画面では横長の動画を使う。絵が全面に入っていて文字を重ねられないので、見出しを動画の上に置き、合わせて最初の画面に収める */
    .hero { padding-block: 16px 16px; }
    .film-box { aspect-ratio: auto; max-height: none; display: grid; gap: 14px; }
    .film-box video { position: static; display: block; justify-self: center; width: min(100%, max(560px, calc((100vh - 240px) * 16 / 9))); height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
    .film-box .copy { position: static; order: -1; gap: 8px; }
    .two-col { display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); gap: 56px; }
    .two-col .head { margin-bottom: 0; }
    .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .facts .wide { grid-column: auto; }
    .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .work { padding: 26px 22px; }
    .strength { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
    .strength:nth-child(even) figure { order: 2; }
    .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 48px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .js [data-reveal].is-out { transform: none; }
    .hero-in, .film-in { animation-name: fade; }
    @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  }

  /* 最初の画面の動画：開いたときに静かに現れる。視差効果を減らす設定では、script で動画を止めて最初のコマだけを出す */
  .film-in { animation: fade 1s ease .2s both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  /* 下層ページ共通：題名、パンくず、日本語だけの節見出し */
  .page-head { position: relative; padding-block: 26px 10px; overflow: hidden; }
  .crumbs { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
  .crumbs a { color: var(--muted); text-decoration: none; }
  .crumbs a:hover { color: var(--accent-ink); }
  .page-lead { margin: 4px 0 0; color: var(--muted); max-width: 40em; }
  .sec-title { margin: 0 0 24px; padding-left: 14px; border-left: 4px solid var(--accent); font-size: clamp(20px, 4.4vw, 26px); line-height: 1.4; }
  .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  /* 項目へ飛ぶリンクで、固定のヘッダーに見出しが隠れないようにする */
  section[id], .page-head[id] { scroll-margin-top: 76px; }
  .page-photo { margin: 28px 0 0; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; }
  .page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .band .page-photo { margin-top: 36px; }

  /* 事業・サービス紹介：業務の中身、発送の形（カードを縦に並べ、広い画面で2列） */
  .details { display: grid; gap: 14px; }
  .details .work { padding: 22px 20px; }
  .details .work p { font-size: 15px; }
  .details .work:hover { transform: none; }

  /* ご依頼の流れ */
  .flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .flow li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--bg); border: 1.5px solid var(--line); }
  .flow .step { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-content: center; font-family: var(--en); font-size: 16px; font-weight: 600; }
  .flow h3 { margin: 6px 0 4px; font-size: 17px; }
  .flow p { margin: 0; color: var(--muted); font-size: 14px; }
  .note { margin: 20px 0 0; color: var(--muted); max-width: 40em; }

  /* よくあるご質問（押すと答えが開く） */
  .qa { border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); padding: 0 18px; }
  .qa + .qa { margin-top: 10px; }
  .qa summary { cursor: pointer; padding: 16px 0; font-weight: 700; line-height: 1.6; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after { content: "+"; flex: none; color: var(--accent); font-family: var(--en); font-size: 24px; line-height: 1; }
  .qa[open] summary::after { content: "−"; }
  .qa p { margin: 0 0 16px; color: var(--muted); }

  @media (min-width: 761px) {
    .page-head { padding-block: 36px 16px; }
    section[id], .page-head[id] { scroll-margin-top: 112px; }
    .page-photo { aspect-ratio: 16 / 7; margin-top: 36px; }
    .details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .flow { gap: 14px; }
  }

  /* 求人情報：募集要項の表（項目名と内容の2列） */
  .job-list { display: grid; gap: 20px; }
  .job-block { border: 1.5px solid var(--line); border-radius: 20px; background: var(--bg); padding: 22px 20px; display: grid; gap: 16px; min-width: 0; }
  .job-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .job-head .tag { font-size: 12px; font-weight: 700; padding: 1px 12px; border-radius: 999px; background: var(--accent-2-soft); color: var(--accent-2-ink); }
  .job-head h3 { margin: 0; font-size: 20px; }
  .job-table { margin: 0; border-top: 1px solid var(--line); }
  .job-table div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .job-table dt { font-size: 13px; font-weight: 700; color: var(--accent-ink); line-height: 1.8; }
  .job-table dd { margin: 0; font-size: 14px; line-height: 1.8; }
  .job-block .btn-row { margin-top: 4px; }
  .lead-btn { margin-top: 20px; }
  @media (min-width: 761px) {
    .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .job-table div { grid-template-columns: 8em minmax(0, 1fr); }
  }

  /* 会社概要：会社概要の表、沿革、地図 */
  .spec-table { margin: 0; border-top: 1px solid var(--line); }
  .spec-table div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .spec-table dt { font-size: 13px; font-weight: 700; color: var(--accent-ink); line-height: 1.8; }
  .spec-table dd { margin: 0; line-height: 1.8; }
  .history { margin: 0; display: grid; gap: 10px; }
  .history div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; padding: 14px 18px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); }
  .history dt { font-family: var(--en); font-weight: 600; color: var(--accent-ink); }
  .history dd { margin: 0; }
  .map { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--bg-soft); }
  .map iframe { width: 100%; height: 100%; border: 0; display: block; }
  .access-text { margin: 18px 0 0; color: var(--muted); }
  @media (min-width: 761px) {
    .spec-table div, .history div { grid-template-columns: 10em minmax(0, 1fr); }
    .map { aspect-ratio: 16 / 7; }
  }

  /* お問い合わせ：電話の枠、フォーム（入力 → 確認 → 送信）、送信完了。誤りは欄のすぐ下、送信の失敗は送信ボタンのすぐ上に出す */
  .tel-box { display: grid; gap: 2px; justify-items: start; margin-top: 24px; padding: 16px 22px; border-radius: 20px; background: var(--bg-soft); max-width: 40em; }
  .tel-box .label { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
  .tel-box .tel { font-size: 28px; }
  .tel-box .tel svg { width: 22px; height: 22px; }
  .form { max-width: 760px; }
  .form-step { display: grid; gap: 22px; }
  .form-step[hidden] { display: none; }
  .form-intro { display: grid; gap: 4px; }
  .form-intro p { margin: 0; color: var(--muted); }
  .field { display: grid; gap: 8px; min-width: 0; }
  .field > label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
  .req, .opt { flex: none; font-size: 11px; font-weight: 700; line-height: 20px; padding: 0 8px; border-radius: 999px; }
  .req { background: var(--accent-2-soft); color: var(--accent-2-ink); }
  .opt { background: var(--line); color: var(--muted); }
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.6; color: var(--fg); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
  .field textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
  .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent-2); }
  .field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--accent-2-soft); }
  .hint { margin: 0; font-size: 13px; color: var(--muted); }
  .field-error { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent-2-ink); }
  .field-error::before { content: "！ "; }
  .agree { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
  .agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
  .agree a { color: var(--accent-ink); }
  .agree input[aria-invalid="true"] { outline: 2px solid var(--accent-2); outline-offset: 2px; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-actions { margin-top: 6px; }
  button.btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
  .btn.ghost { background: var(--white); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
  .btn.ghost::before { background: var(--accent-soft); }
  .btn.ghost::after { content: none; }
  .btn:disabled { opacity: .6; cursor: default; }
  .confirm-title { margin: 0; font-size: 20px; outline: none; }
  .confirm-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .confirm-list dd { overflow-wrap: anywhere; }
  .confirm-list dd.pre { white-space: pre-wrap; }
  /* Turnstile の枠（300×65）。出る前から場所を取っておき、ボタンがずれないようにする */
  .turnstile-box.is-on { min-height: 65px; }
  .form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-2-soft); color: var(--accent-2-ink); font-weight: 700; }
  .thanks-body { display: grid; gap: 8px; margin: 8px 0 48px; max-width: 40em; }
  .thanks-body p { margin: 0; color: var(--muted); }
  .thanks-body .lead { font-size: clamp(17px, 3.6vw, 20px); font-weight: 700; color: var(--fg); }
  .thanks-body .btn-row { margin-top: 20px; }
  @media (min-width: 761px) {
    .confirm-list div { grid-template-columns: 10em minmax(0, 1fr); gap: 10px; }
  }

  /* 応募フォーム：希望職種の選択と生年月日（ほかはお問い合わせと同じ） */
  fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
  fieldset.field legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
  .choices { display: grid; gap: 8px; }
  .choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 700; cursor: pointer; }
  .choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
  .choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .choice:has(input[aria-invalid="true"]) { border-color: var(--accent-2); }
  .birth { display: flex; align-items: center; gap: 6px; }
  .field .birth input { width: 4.2em; font: inherit; font-size: 16px; line-height: 1.6; color: var(--fg); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; }
  .field .birth input.y { width: 5.6em; }
  .field .birth input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .field .birth input[aria-invalid="true"] { border-color: var(--accent-2); }

  /* プライバシーポリシー：番号付きの節を 1 つの帯に並べる。表は会社概要と同じ形 */
  .policy > section { max-width: 820px; }
  .policy > section + section { margin-top: 40px; }
  .policy h2 { margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); font-size: clamp(17px, 3.8vw, 20px); line-height: 1.5; }
  .policy p { margin: 0 0 12px; }
  .policy ul { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 6px; }
  .policy .spec-table { margin-bottom: 12px; }
  .policy a:not(.btn) { color: var(--accent-ink); overflow-wrap: anywhere; }
  .policy .btn-row { margin-top: 20px; }
