/* ============================================================
   株式会社UNIT0 — 2026 コーポレートサイト

   ダークグレーの地に写真を大きく敷き、白い文字・淡いブルー・
   細い罫線・余白だけで組む。箱と影と角丸は使わない。

   サイトの全ページがこのファイルだけを読む。
   事業の詳細ページ（自動車販売・イベント・ソフトウェア・キッチンカー）は
   body.detail-page で地を黒 #050505 に切り替える。
   ============================================================ */

:root {
  /* 指定の配色。ここだけ書き換えれば全体が変わる。
     地は紺ではなく、色味を持たないグレーにする（2026-10 指示）。
     写真の上の幕（--veil-left など）も同じグレー 17,18,19 で引く */
  --bg: #111213;
  --bg-sub: #1A1B1D;
  --fg: #FFFFFF;
  --fg-sub: #B9C1CA;
  --accent: #6BBEFF;
  --rule: rgba(255, 255, 255, 0.25);

  --max: 1440px;
  --gutter: 48px;

  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --latin: "Montserrat", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* 写真の上に文字を置くときに必ず敷く幕。可読性のための黒 */
  --veil-left: linear-gradient(90deg,
      rgba(17, 18, 19, 0.94) 0%,
      rgba(17, 18, 19, 0.86) 32%,
      rgba(17, 18, 19, 0.45) 62%,
      rgba(17, 18, 19, 0.18) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 固定ヘッダーの下に見出しが潜らないようにする */
  scroll-padding-top: 88px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 見出しの折れ目。<span class="nb"> の中では折らない。
   字数で折れると「ちゃんと形にす／る。」のように語の途中で割れる。
   Safari は word-break: auto-phrase を持たないので、こちらで決めておく。 */
.nb { display: inline-block; }

/* 読み上げだけに渡す文字 */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   セクション見出し
   BUSINESS / ABOUT / COMPANY は、字体も大きさも太さも同じにする。
   左の短いブルーラインまで含めて1つの部品にしてある。
   ============================================================ */

.sec-label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--fg);
}

.sec-label::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

/* 日本語の大見出し */
.sec-title {
  margin-top: 28px;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

/* 社名の 0 だけをブルーに。見出しの中でも、ロゴでも同じ扱い */
.zero { color: var(--accent); }

/* ============================================================
   ヘッダー
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

/* スクロール後と、写真の無いページ（data-solid）では地を敷く */
.site-header.is-scrolled,
.site-header[data-solid] {
  background: rgba(17, 18, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--latin);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--fg);
}

.brand-wordmark {
  display: block;
  width: clamp(112px, 11vw, 158px);
  line-height: 0;
}

.brand-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.gnav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.gnav a {
  position: relative;
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg);
  padding: 10px 0;
  transition: color 0.3s ease;
}

.gnav a:hover { color: var(--accent); }

/* 開いているページの印。細いブルーの下線 */
.gnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--accent);
}

/* 三本線。PC では出さない（指定）。小さい画面でだけ現れる */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle i {
  position: absolute;
  left: 8px;
  width: 28px; height: 1px;
  background: var(--fg);
  opacity: 0.82;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.nav-toggle i:nth-child(1) { top: 17px; }
.nav-toggle i:nth-child(2) { top: 22px; }
.nav-toggle i:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 小さい画面で開く面。header の中に置くと backdrop-filter が
   固定配置の基準になり、inset:0 が画面ではなくヘッダの高さを指す。 */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(14, 15, 16, 0.985);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: clamp(108px, 14vh, 150px) clamp(28px, 6vw, 72px);
  visibility: hidden;
  transform: translateX(100%);
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.62s;
}

.nav-panel[hidden] { display: none; }

.nav-panel.is-open {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}

.nav-panel nav {
  width: min(100%, 300px);
}

.nav-panel a {
  display: block;
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.26em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: color 0.3s ease, padding-left 0.35s ease;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--accent);
  padding-left: 10px;
}

.nav-panel a .jp {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--fg-sub);
  margin-top: 5px;
}

/* ============================================================
   MAIN VISUAL
   ============================================================ */

.mv {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 写真は要素を分けて敷く。文字と同じ要素に背景を持たせると、
   スマホで背景位置だけを調整したいときに動かせなくなる。 */
.mv-photo {
  position: absolute;
  inset: 0;
  background-image: var(--mv-image);
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
}

/* 左に黒を重ねて、文字を読めるようにする */
.mv-veil {
  position: absolute;
  inset: 0;
  background: var(--veil-left);
}

.mv .wrap { position: relative; z-index: 2; padding-top: 88px; }

.mv-body { max-width: 640px; }

.mv-en {
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--fg-sub);
}

.mv-title {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: 0.07em;
  color: var(--fg);
}

.mv-lead {
  margin-top: 40px;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 2.3;
  letter-spacing: 0.06em;
  color: var(--fg-sub);
}

/* ============================================================
   BUSINESS
   4枚の写真を、隙間ゼロで横に連続させる。
   ============================================================ */

/* 見出しとカードの間を詰め、カードを上へ寄せる */
.business { padding: 96px 0 0; }

.business .wrap { padding-bottom: 32px; }

.bcards,
.business-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100%;
}

.bcard,
.business-card {
  --card-pad: clamp(7px, 2.35vw, 34px);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  min-height: 0;
  /* 縦長。幅は画面の 1/4 で決まるので、大きく見せるには高さで稼ぐ */
  aspect-ratio: 0.34;
  padding: 0;
  overflow: hidden;
}

.business-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 写真と幕の上に文字を置く。負の z-index は使わない。
   親が重ね合わせ文脈を作らないと、背面へ抜けてしまう。 */
.bcard > :not(.bcard-photo):not(.bcard-veil) {
  z-index: 2;
}

/* 背景写真。拡大するのはこの層だけ。カードごと拡大すると
   隣との継ぎ目に隙間が出る。 */
.bcard-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--card-image);
  background-size: cover;
  /* 縦長の枠に横長の写真を入れると、既定の center では主役が切れる。
     カードごとに HTML 側から --card-pos で寄せ先を指定できるようにする。 */
  background-position: var(--card-pos, center);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.bcard-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(17, 18, 19, 0.30) 0%,
      rgba(17, 18, 19, 0.55) 46%,
      rgba(17, 18, 19, 0.90) 100%);
}

.bcard:hover .bcard-photo,
.bcard:focus-visible .bcard-photo {
  transform: scale(1.03);
  filter: brightness(1.12);
}

.bcard-no {
  position: absolute;
  top: clamp(8px, 3.3vw, 48px);
  left: var(--card-pad);
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  line-height: 1;
}

.bcard-rule {
  position: absolute;
  top: clamp(28px, 7.6vw, 110px);
  right: var(--card-pad);
  left: var(--card-pad);
  height: 1px;
  margin: 0;
  background: var(--rule);
}

/* 事業名。4枚とも同じ字体・大きさ・字間に揃える */
.bcard-en {
  position: absolute;
  top: 17%;
  right: var(--card-pad);
  left: var(--card-pad);
  font-family: var(--latin);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--fg);
}

.bcard-jp {
  position: absolute;
  top: 30%;
  right: var(--card-pad);
  left: var(--card-pad);
  margin-top: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.bcard-arrow {
  position: absolute;
  bottom: clamp(8px, 3.6vw, 52px);
  left: var(--card-pad);
  margin-top: 0;
  font-family: var(--latin);
  font-size: 17px;
  line-height: 1;
  color: var(--fg);
  transition: transform 0.4s ease;
}

.bcard:hover .bcard-arrow,
.bcard:focus-visible .bcard-arrow { transform: translateX(8px); }

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  position: relative;
  padding: 150px 0 160px;
  overflow: hidden;
}

.about-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--about-image);
  background-size: cover;
  background-position: center;
}

.about-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--veil-left);
}

.about .wrap { position: relative; z-index: 2; }

.about-title { margin-top: 28px; }

.about-name {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 56px;
  max-width: 880px;
  margin-top: 76px;
}

/* UNIT と 0 のあいだの細い縦線 */
.about-divider { background: var(--rule); }

.about-name h3 {
  font-family: var(--latin);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--fg);
}

/* 0 だけはブルー。.zero より .about-name h3 の方が強いので、
   ここで指定し直さないと白いままになる。 */
.about-name h3.zero { color: var(--accent); }

.about-name p {
  margin-top: 24px;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: var(--fg-sub);
}

/* 選ばれる理由へ。背景の付いたボタンにはしない */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 76px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.text-link .line {
  display: block;
  width: 120px;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.text-link .arrow {
  font-family: var(--latin);
  margin-left: -14px;
  transition: transform 0.4s ease;
}

.text-link:hover { color: var(--accent); }
.text-link:hover .line { width: 150px; }
.text-link:hover .arrow { transform: translateX(6px); }

/* ============================================================
   UNIT0について — DARK EDITORIAL
   ============================================================ */

.about-editorial {
  background: var(--bg);
}

.about-editorial-hero {
  min-height: 82svh;
  padding: clamp(180px, 25vh, 280px) 0 120px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 82% 20%, rgba(163, 92, 41, 0.24), transparent 34%),
    linear-gradient(145deg, #111213 15%, #17181A 58%, #1C1D1F 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.about-editorial-title {
  /* 「ちゃんと形にする。」(9字) が 100px でも1行に入る幅。900px だと
     「ちゃんと／形にする。」と3行に割れていた */
  max-width: 1000px;
  margin-top: 46px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.about-editorial-intro {
  max-width: 680px;
  margin-top: 56px;
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: var(--fg-sub);
}

.about-story {
  padding: clamp(110px, 14vw, 200px) 0;
}

.about-story-grid,
.about-work-head {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.5fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: start;
}

.about-story-index {
  padding-top: 10px;
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.about-story-copy {
  max-width: 760px;
}

.about-story-copy p {
  margin-bottom: 38px;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 2.25;
  letter-spacing: 0.045em;
  color: var(--fg-sub);
}

.about-story-copy .about-story-emphasis {
  margin: 70px 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.75;
  color: var(--fg);
}

.about-work {
  padding: clamp(100px, 12vw, 170px) 0 0;
  background: var(--bg-sub);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-work-head {
  padding-bottom: clamp(70px, 9vw, 130px);
}

.about-work-head h2,
.about-cta h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.about-work-head div > p {
  max-width: 680px;
  margin-top: 36px;
  color: var(--fg-sub);
  font-weight: 300;
  line-height: 2.1;
}

.about-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.about-work-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 0.68;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.about-work-card:last-child { border-right: 0; }

.about-work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 19, 0.1), rgba(17, 18, 19, 0.88));
}

.about-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.about-work-card:hover img { transform: scale(1.035); }

.about-work-card span {
  position: absolute;
  z-index: 1;
  right: clamp(14px, 2.5vw, 38px);
  bottom: clamp(18px, 3vw, 44px);
  left: clamp(14px, 2.5vw, 38px);
  font-family: var(--latin);
  font-size: clamp(10px, 1vw, 14px);
  letter-spacing: 0.16em;
}

.about-work-card b {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 400;
  color: var(--accent);
}

.about-cta {
  padding: clamp(120px, 15vw, 220px) 0;
  background:
    linear-gradient(90deg, rgba(17, 18, 19, 0.97), rgba(17, 18, 19, 0.72)),
    url("/images/image-01.jpg") center / cover;
}

.about-cta h2 {
  margin-top: 42px;
}

.about-cta .text-link { margin-top: 58px; }

/* ============================================================
   COMPANY
   ============================================================ */

.company {
  position: relative;
  padding: 150px 0 170px;
  overflow: hidden;
}

.company-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--company-image);
  background-size: cover;
  background-position: center;
}

/* 左の情報を読ませたいので、ABOUT より暗くする（指定） */
.company-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
      rgba(17, 18, 19, 0.97) 0%,
      rgba(17, 18, 19, 0.93) 44%,
      rgba(17, 18, 19, 0.62) 74%,
      rgba(17, 18, 19, 0.30) 100%);
}

.company .wrap { position: relative; z-index: 2; }

/* 指定：表は画面全体の 55〜60%。残りは背景写真を見せる */
.company-table {
  width: 62%;
  margin-top: 72px;
}

.company-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.company-table > div:first-child { border-top: 1px solid rgba(255, 255, 255, 0.16); }

.company-table dt {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--fg-sub);
}

.company-table dd {
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--fg);
}

/* ============================================================
   お問い合わせページ
   ============================================================ */

.page-head {
  padding: 196px 0 72px;
  background: var(--bg-sub);
}

.page-title {
  margin-top: 28px;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.page-lead {
  margin-top: 28px;
  max-width: 620px;
  font-size: 14px;
  line-height: 2.2;
  color: var(--fg-sub);
}

.contact-body {
  padding: 96px 0 140px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 88px;
  align-items: start;
}

.cf-field { display: block; margin-bottom: 32px; }

.cf-field > span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--fg-sub);
  margin-bottom: 12px;
}

.cf-field i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: 14px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
  transition: border-color 0.3s ease;
}

.cf-field select option { background: var(--bg-sub); color: var(--fg); }

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.cf-field textarea { resize: vertical; }

/* 罠。人には見せない */
.cf-hp { position: absolute; left: -9999px; }

.cf-send {
  margin-top: 16px;
  padding: 18px 56px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--fg);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cf-send:hover { border-color: var(--accent); color: var(--accent); }

.cf-note {
  margin-top: 28px;
  font-size: 12px;
  line-height: 2;
  color: var(--fg-sub);
}

.contact-aside dt {
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-aside dd {
  font-size: 14px;
  line-height: 2.1;
  color: var(--fg-sub);
  margin-bottom: 36px;
}

.contact-aside dd a { color: var(--fg); }
.contact-aside dd a:hover { color: var(--accent); }

/* ============================================================
   フッター
   ============================================================ */

.site-footer {
  background: var(--bg-sub);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}

.footer-mark { width: clamp(108px, 9vw, 132px); }

.footer-address {
  margin-top: 20px;
  font-style: normal;
  font-size: 13px;
  line-height: 2.1;
  color: var(--fg-sub);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 56px;
  font-size: 13px;
  color: var(--fg-sub);
}

.footer-nav a:hover { color: var(--accent); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1 1 680px;
  max-width: 780px;
  gap: clamp(28px, 5vw, 72px);
}

.footer-group h2 {
  margin-bottom: 18px;
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.footer-group a {
  display: block;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--fg-sub);
}

.footer-group a:hover { color: var(--fg); }

.company-page-body {
  padding: 0 0 120px;
}

.company-page-body .company-table {
  width: min(100%, 860px);
  margin-top: 0;
}

.footer-bottom {
  margin-top: 56px;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(185, 193, 202, 0.6);
}

/* ============================================================
   スクロールでの出現。控えめに。
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   事業の詳細ページ — 自動車販売・イベント・ソフトウェア・キッチンカー

   4ページとも同じ部品で組む。違うのは中身だけにする。
     見出し  .detail-hero（ラベル・大見出し・キャッチ・説明）
     本文    .detail-body（PC は左右2カラム、中央に細い縦線）
     写真    .detail-gallery（キッチンカーの製作事例、イベントの実績）
     問合せ  .detail-cta（上に細い罫線、左揃え、.text-link で /contact/ へ）

   **地は一面の黒 #050505。** 他のページ（トップ・会社案内など）は
   --bg のダークグレーのままなので、上書きは body.detail-page に閉じてある。
   グラデーション・円形の装飾・発光は敷かない。
   ============================================================ */

.detail-page {
  --bg: #050505;
  --rule: rgba(255, 255, 255, 0.22);
}

.detail-page main { background: var(--bg); }

/* ── 見出し ───────────────────────────────────────────── */

.detail-hero {
  position: relative;
  padding: clamp(160px, 22vh, 250px) 0 clamp(90px, 10vw, 140px);
  background: var(--bg);
}

.detail-title {
  margin-top: 46px;
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 78px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.detail-catch {
  margin-top: clamp(36px, 4vw, 54px);
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.detail-intro { max-width: 720px; margin-top: clamp(28px, 3vw, 40px); }
.detail-intro p {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--fg-sub);
}
.detail-intro p + p { margin-top: 18px; }

/* ── 本文（左右2カラム） ─────────────────────────────── */

.detail-body {
  padding: clamp(110px, 14vw, 200px) 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

/* 中央の縦線。区切り用の空要素を置かず、右カラムの左辺で引く。
   1カラムに落ちたら下の @media で消す。 */
.detail-col + .detail-col {
  padding-left: clamp(48px, 6vw, 96px);
  border-left: 1px solid var(--rule);
}

.detail-col h2,
.detail-gallery h2,
.detail-cta h2 {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.detail-prose { margin-top: clamp(40px, 4vw, 60px); }
.detail-prose p {
  margin-bottom: 34px;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 2.25;
  letter-spacing: 0.045em;
  color: var(--fg-sub);
}
.detail-prose p:last-child { margin-bottom: 0; }
/* 締めの一文だけ白・やや太字 */
.detail-prose .detail-emphasis { color: var(--fg); font-weight: 500; }

/* 番号・名前・説明の3列。説明が長い行は minmax(0,1fr) で自然に折り返す。
   名前の列は「Webアプリケーション開発」が途中で折れない幅を確保する。 */
.detail-list {
  margin-top: clamp(40px, 4vw, 60px);
  border-top: 1px solid var(--rule);
}
.detail-list li {
  display: grid;
  grid-template-columns: 30px minmax(120px, 188px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.detail-list span {
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 2.2;
  color: var(--accent);
}
.detail-list h3 { font-size: 15px; font-weight: 500; line-height: 1.9; }
.detail-list p {
  color: var(--fg-sub);
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
}

/* ── 写真 ─────────────────────────────────────────────── */

.detail-gallery {
  padding: clamp(110px, 14vw, 200px) 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

/* 写真の枠。比率はここで決め、写真はその中に cover で収める。
   写真が無い間は img が外れ、黒より少し明るい地に data-label が見える。 */
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #16181a;
}
.photo[data-label]::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--fg-sub);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* PC は横一列。枚数は列数に合わせる（キッチンカーは3枚） */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(48px, 5vw, 72px);
}
.photo-row li:hover img { transform: scale(1.03); }

/* 枚数の多い実績は、どの幅でも横に送って見る。
   はみ出しはリストの中だけで流し、ページは横に揺らさない。 */
.photo-strip {
  display: flex;
  gap: 12px;
  margin-top: clamp(48px, 5vw, 72px);
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.photo-strip li { flex: 0 0 clamp(280px, 34vw, 520px); scroll-snap-align: start; }
.photo-strip li:hover img { transform: scale(1.03); }

.gallery-hint {
  margin-top: 18px;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-sub);
}

/* ── お問い合わせ ─────────────────────────────────────── */

.detail-cta {
  padding: clamp(120px, 15vw, 220px) 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.detail-cta h2 { margin-top: 42px; }
.detail-cta > .wrap > p:not(.sec-label) { margin-top: 28px; color: var(--fg-sub); }
.detail-cta .text-link { margin-top: 58px; }

/* ── キッチンカー：見出しの右に車両写真 ───────────────── */

.kitchen-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
/* 半分の幅に入るので、8文字が1行に収まる大きさにする */
.kitchen-hero-grid .detail-title { font-size: clamp(36px, 4.4vw, 66px); }
/* 車体の上下が切れにくいよう、やや下を基準にする */
.kitchen-hero-grid .photo img { object-position: center 60%; }

/* ── イベント：見出しの背後の夜空（クリックで花火） ───── */

.event-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.detail-hero .wrap { position: relative; }
.event-hint {
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(185, 193, 202, 0.65);
}

/* ============================================================
   送信完了・法務ページ — 会社概要と同じ .page-head の下に本文
   ============================================================ */

.doc-body { padding: 0 0 clamp(110px, 12vw, 160px); }
.doc-body .wrap > * { max-width: 860px; }

.doc-body .company-table { width: 100%; margin: 0 0 72px; }

.doc-prose h2 {
  margin: 64px 0 22px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.doc-prose h2:first-child { margin-top: 0; }
.doc-prose p,
.doc-prose li {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--fg-sub);
}
.doc-prose p + p { margin-top: 14px; }
.doc-prose ul,
.doc-prose ol { margin: 14px 0; }
.doc-prose li { position: relative; padding-left: 1.4em; }
.doc-prose li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 1.05em;
  width: 0.55em;
  height: 1px;
  background: var(--accent);
}
.doc-prose strong { color: var(--fg); font-weight: 500; }
.doc-prose a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.doc-prose a:hover { color: var(--accent); }
.doc-prose .company-table { margin: 24px 0 0; }
.doc-date {
  margin-top: 56px;
  font-size: 13px;
  color: var(--fg-sub);
}

/* ============================================================
   画面幅
   ============================================================ */

/* タブレット */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }

  .gnav { display: none; }
  .nav-toggle { display: block; }

  .company-table { width: 100%; }
  .company-table > div { grid-template-columns: 150px 1fr; gap: 24px; }

  .contact-body { grid-template-columns: 1fr; gap: 64px; }

  /* 事業詳細は左右2カラムをやめて縦に積む。
     **中央の縦線もここで消す。**1カラムになると、ただの左の飾り線になる。 */
  .detail-columns { grid-template-columns: 1fr; gap: clamp(72px, 10vw, 110px); }
  .detail-col + .detail-col { padding-left: 0; border-left: 0; }
  .kitchen-hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* スマートフォン */
@media (max-width: 720px) {
  :root { --gutter: 22px; }

  body { font-size: 14px; }
  html { scroll-padding-top: 68px; }

  .header-inner { height: 68px; }
  .brand { font-size: 18px; }
  .brand-wordmark { width: 118px; }

  .mv { min-height: 92svh; }
  /* 車と文字が重ならないよう、写真を右へ寄せる */
  .mv-photo { background-position: 78% center; }
  .mv-veil {
    background: linear-gradient(180deg,
        rgba(17, 18, 19, 0.90) 0%,
        rgba(17, 18, 19, 0.74) 42%,
        rgba(17, 18, 19, 0.52) 68%,
        rgba(17, 18, 19, 0.88) 100%);
  }
  .mv .wrap { padding-top: 68px; }
  .mv-title { margin-top: 26px; line-height: 1.6; }
  .mv-lead { margin-top: 30px; line-height: 2.1; }

  .business { padding-top: 64px; }
  .business .wrap { padding-bottom: 22px; }
  /* スマートフォンでは幅が 94px 前後しかない。高さを伸ばして写真を見せる */
  .bcard { aspect-ratio: 0.27; }
  .bcard-en { font-size: 12px; letter-spacing: 0.08em; }
  .bcard-jp { font-size: 10px; line-height: 1.55; }
  .bcard-no { font-size: 12px; }
  .bcard-arrow { font-size: 13px; }

  .about, .company { padding: 96px 0 104px; }

  .about-editorial-hero {
    min-height: 78svh;
    padding: 150px 0 80px;
  }
  .about-editorial-title {
    margin-top: 34px;
    font-size: clamp(34px, 9.6vw, 42px);
    line-height: 1.45;
  }
  .about-editorial-intro {
    margin-top: 38px;
    font-size: 14px;
    line-height: 2;
  }
  .about-story { padding: 92px 0; }
  .about-story-grid,
  .about-work-head {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .about-story-copy p {
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 2.1;
  }
  .about-story-copy .about-story-emphasis {
    margin: 52px 0;
    font-size: 27px;
    line-height: 1.8;
  }
  .about-work { padding-top: 88px; }
  .about-work-head { padding-bottom: 64px; }
  .about-work-head h2,
  .about-cta h2 { font-size: 30px; }
  .about-work-head div > p { margin-top: 28px; font-size: 13px; }
  .about-work-card { aspect-ratio: 0.58; }
  .about-work-card span {
    right: 7px;
    bottom: 14px;
    left: 7px;
    font-size: 8px;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }
  .about-work-card b { margin-bottom: 5px; font-size: 8px; }
  .about-cta { padding: 100px 0 110px; }

  /* UNIT と 0 は縦並び。あいだの縦線は横線に置き換える */
  .about-name {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 48px;
  }
  .about-divider { height: 1px; width: 100%; }
  .about-name h3 { font-size: 24px; }

  .text-link { margin-top: 48px; gap: 14px; font-size: 14px; }
  .text-link .line { width: 64px; }
  .text-link:hover .line { width: 80px; }

  .company-table { margin-top: 44px; }
  .company-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }
  /* 住所が長いので、途中で自然に折り返す */
  .company-table dd { word-break: break-word; line-height: 1.9; }

  .page-head { padding: 136px 0 52px; }
  .contact-body { padding: 64px 0 96px; }
  .cf-send { width: 100%; padding: 18px 0; }

  .footer-nav { grid-template-columns: 1fr; gap: 10px; }

  /* フッター。3列のまま詰めると 8〜9px まで縮んで読めない。
     2列にして、お問い合わせ・方針の段は下に全幅で置く。 */
  .footer-grid { gap: 48px; }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-basis: 100%;
    gap: 40px 20px;
  }
  .footer-group:last-child { grid-column: 1 / -1; }
  .footer-group h2 { margin-bottom: 12px; }
  .footer-group a { padding: 7px 0; font-size: 13px; line-height: 1.6; }
  .footer-bottom { margin-top: 48px; }

  /* 事業詳細。番号だけ横に出し、名前と説明はその右へ縦に積む。
     3列のまま狭めると、説明が1文字ずつ折れて読めなくなる。 */
  .detail-hero { padding: 132px 0 84px; }
  .detail-title { margin-top: 32px; }
  .detail-catch { margin-top: 30px; }
  .detail-intro { margin-top: 24px; }
  .detail-body,
  .detail-gallery { padding: 84px 0; }
  /* 「まずはご相談ください。」の11文字が 360px 幅でも1行に収まる大きさ */
  .detail-col h2,
  .detail-gallery h2,
  .detail-cta h2 { font-size: 26px; }
  .detail-col h2,
  .detail-gallery h2 { margin-top: 26px; }

  .detail-list li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 22px 0;
  }
  .detail-list h3,
  .detail-list p { grid-column: 2; }

  .detail-cta { padding: 96px 0 110px; }
  .detail-cta h2 { margin-top: 28px; }
  .detail-cta .text-link { margin-top: 44px; }

  /* キッチンカー。メイン写真は横幅いっぱい、GALLERY は横スワイプで1枚ずつ。 */
  .kitchen-hero-grid { gap: 44px; }
  .kitchen-hero-grid .photo { margin: 0 calc(-1 * var(--gutter)); }

  .photo-row {
    display: flex;
    gap: 12px;
    margin: 40px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .photo-row::-webkit-scrollbar { display: none; }
  .photo-row li { flex: 0 0 86%; scroll-snap-align: start; }

  .photo-strip { margin-top: 40px; padding: 0 var(--gutter); scrollbar-width: none; }
  .photo-strip::-webkit-scrollbar { display: none; }
  .photo-strip li { flex-basis: 86%; }

  .doc-body .company-table { margin-bottom: 56px; }
  .doc-prose h2 { margin-top: 52px; }
}

@media (max-width: 480px) {
  /* 375pxでは各カードが約93.75px。4枚を折り返さず画面内に収める。 */
  /* 「AUTOMOTIVE」が 360px 幅（カード約73pxの内側）でも1行に入る大きさ。
     「KITCHEN CAR」は空白で2行に折れる。語の途中では折らない */
  .bcard-en {
    font-size: 9.5px;
    line-height: 1.35;
    letter-spacing: 0.02em;
  }
  .bcard-jp {
    font-size: 8px;
    line-height: 1.35;
    letter-spacing: 0;
  }
  .bcard-no { font-size: 11px; }
  .bcard-arrow { font-size: 11px; }
}

/* 動きを減らす設定の人には、出現も拡大も見せない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal { opacity: 1; transform: none; transition: none; }

  .nav-panel { transition: none; }

  .bcard-photo,
  .bcard-arrow,
  .text-link .line,
  .text-link .arrow,
  .photo img { transition: none; }

  .photo-row li:hover img,
  .photo-strip li:hover img { transform: none; }

  .bcard:hover .bcard-photo,
  .bcard:focus-visible .bcard-photo { transform: none; }

  .bcard:hover .bcard-arrow,
  .bcard:focus-visible .bcard-arrow { transform: none; }
}
