/* SDガレージ（会社）側の見た目（2026-10-31 作り直し・黒基調）
   依頼主「先進性、かっこよさ」「黒ベースを増やしてもOK」。お手本はアリカノのコーポレートサイト（読み込みの演出・見出しのせり上がり・流れる帯・細い線の見出し）。
   - theme が garage のページ（トップ・採用・代行開業支援・お礼・404）だけで読む。site.css の決まりは .theme-garage を付けて上書きする
   - 色: 黒（--g-bg）に、ロゴのオレンジ（--g-or）。会社概要とアクセスだけ白地（.g-light）にして、上の角を丸めて重ねる
   - 動き: CSS で完結させ、JS が止まっても中身は必ず見える（html.g-js のときだけ隠し、g-fail・noscript で全部出す）。
     「視差効果を減らす」の設定では、読み込みの演出は出さず、ほかの動きも止める（いちばん下） */

.theme-garage {
  --g-bg: #060709;
  --g-bg-2: #0b0d10;
  --g-panel: #101318;
  --g-line: rgba(255, 255, 255, .09);
  --g-line-2: rgba(255, 255, 255, .2);
  --g-text: #eef1f5;
  --g-body: #cfd5dd;
  --g-mute: #a3acb9;
  --g-dim: #6f7886;
  --g-or: #ff7a1a;
  --g-or-2: #ffa15a;
  --g-paper: #f2f1ed;
  --g-ink: #0c0e11;
  --g-ease: cubic-bezier(.16, 1, .3, 1);
  --g-ease-io: cubic-bezier(.77, 0, .18, 1);
  --g-r: 4px;
  --container: 1240px;
  --accent: var(--g-or);
  --brand: var(--g-or);
  --boot: .1s;              /* ファーストビューの動きを始める時刻（読み込みの演出があるページだけ長くする） */
  background: var(--g-bg); color: var(--g-text);
}
.g-loader ~ * { --boot: 1.75s; }
.g-seen .g-loader ~ * { --boot: .1s; }
.theme-garage main { color: var(--g-body); }
.theme-garage ::selection { background: var(--g-or); color: #000; }
.theme-garage :focus-visible { outline: 2px solid var(--g-or); outline-offset: 3px; border-radius: 2px; }
.theme-garage a { color: var(--g-or-2); }
.theme-garage a:hover { color: #fff; }

/* 日本語の改行: 見出しは文節（<wbr>・.pz）の切れ目だけ。本文は文節で折る（Chrome は auto-phrase、ほかは garage.js が切れ目を入れて .g-kw） */
.theme-garage h1, .theme-garage h2, .theme-garage h3, .theme-garage h4,
.g-hero-lead, .g-rec-lead, .g-fcband-note, .g-about-sub, .g-stat-s, .g-kpi, .g-lic, .g-phero-lead, .g-big, .g-sup-h {
  word-break: keep-all; overflow-wrap: anywhere;
}
.theme-garage main p, .theme-garage main li, .theme-garage main td, .theme-garage main th, .theme-garage main dd, .theme-garage .site-footer p {
  word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict;
}
.theme-garage .g-kw { word-break: keep-all; }
.theme-garage .nowrap { white-space: nowrap; }

/* ---------- ボタン（角を立てて、押すと光が走る） ---------- */
.theme-garage .btn {
  --b: #fff; --t: #0b0c0e;
  border-radius: var(--g-r); border: 1px solid var(--b); background: var(--b); color: var(--t);
  padding: 15px 26px; font-weight: 700; letter-spacing: .08em; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--g-ease), background .3s, color .3s, border-color .3s, box-shadow .35s;
}
.theme-garage .btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--g-ease);
}
.theme-garage .btn:hover { color: var(--t); transform: translateY(-2px); box-shadow: 0 16px 34px -16px var(--b); }
.theme-garage .btn:hover::after { transform: translateX(120%); }
.theme-garage .btn-accent { --b: var(--g-or); --t: #0b0c0e; }
.theme-garage .btn-white { --b: #fff; --t: #0b0c0e; }
.theme-garage .btn-dark { --b: #0b0c0e; --t: #fff; }
.theme-garage .btn-dark::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 122, 26, .55) 50%, transparent 70%); }
.theme-garage .btn-outline-white, .theme-garage .btn-ghost { --b: rgba(255, 255, 255, .55); --t: #fff; background: rgba(255, 255, 255, .03); }
.theme-garage .btn-outline-white:hover, .theme-garage .btn-ghost:hover { background: #fff; border-color: #fff; color: #0b0c0e; box-shadow: none; }
.theme-garage .btn-lg { padding: 18px 32px; font-size: 16px; }
.theme-garage .btn-sm { padding: 10px 18px; font-size: 13.5px; }
.theme-garage .btn .arrow { width: 1.15em; height: 1.15em; }
@media (max-width: 480px) { .theme-garage main .btn-row .btn { width: 100%; } }

/* ---------- 頭（ヘッダー）: 動画の上では透明・スクロールしたら黒いガラス ---------- */
.theme-garage .site-header { color: #fff; }
.theme-garage .site-header::before {
  content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .62), transparent); transition: opacity .4s;
}
.theme-garage .site-header.is-solid::before, .theme-garage.no-hero .site-header::before, .theme-garage .site-header.is-open::before { opacity: 0; }
.theme-garage .site-header.is-solid, .theme-garage.no-hero .site-header {
  background: rgba(6, 7, 9, .74); color: #fff; box-shadow: 0 1px 0 var(--g-line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
/* メニューを開いたらぼかしを外す（ぼかしがあると中の position:fixed のメニューがヘッダーに閉じ込められる） */
.theme-garage .site-header.is-open { background: #07080a; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* 頭が上から降りてくる。終わったあとに transform を残さない（残るとスマホのメニュー（position:fixed）がヘッダーの中に閉じ込められる）ので backwards */
.g-loader ~ .site-header { animation: g-down 1s var(--g-ease) backwards; animation-delay: calc(var(--boot) + .3s); }
.theme-garage .brand-text small { opacity: .7; }
.theme-garage .gnav ul { gap: 2px; }
.theme-garage .gnav ul a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px 8px; border-radius: 0; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.3;
}
.theme-garage .gnav .gn-en { font: 600 9.5px/1 var(--font-en); letter-spacing: .24em; color: var(--g-or); }
.theme-garage .gnav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px; background: var(--g-or);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--g-ease);
}
.theme-garage .gnav ul a:hover { background: none; color: #fff; }
.theme-garage .gnav ul a:hover::after, .theme-garage .gnav ul a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.theme-garage .gnav ul a[aria-current="page"] { color: #fff; }
.theme-garage .menu-btn { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; color: #fff; }
.g-prog { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; pointer-events: none; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--g-or), #ffd29a); }
@media (max-width: 1020px) {
  .theme-garage .is-open .gnav { background: #07080a; padding: 8px 20px 40px; }
  .theme-garage .is-open .gnav ul a {
    flex-direction: row-reverse; justify-content: space-between; align-items: baseline;
    padding: 18px 2px; font-size: 19px; font-weight: 800; color: #fff; border-bottom: 1px solid var(--g-line);
    animation: g-up .6s var(--g-ease) both;
  }
  .theme-garage .is-open .gnav ul a::after { display: none; }
  .theme-garage .is-open .gnav .gn-en { font-size: 11px; }
  .theme-garage .is-open .gnav li:nth-child(2) a { animation-delay: .04s; }
  .theme-garage .is-open .gnav li:nth-child(3) a { animation-delay: .08s; }
  .theme-garage .is-open .gnav li:nth-child(4) a { animation-delay: .12s; }
  .theme-garage .is-open .gnav li:nth-child(5) a { animation-delay: .16s; }
  .theme-garage .is-open .gnav li:nth-child(6) a { animation-delay: .2s; }
  .theme-garage .is-open .gnav .drawer-extra { animation: g-up .6s var(--g-ease) .26s both; }
}

/* ---------- 読み込みの演出（トップだけ）: マークと SD GARAGE → シャッターが上がる ---------- */
.g-loader { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #050608; color: #fff; animation: gl-open .95s var(--g-ease-io) 1.55s forwards; }
.g-seen .g-loader { display: none; }
.g-loader.gl-skip { animation: gl-open .6s var(--g-ease-io) forwards; }
.gl-slats { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 28px); animation: g-fade .8s ease both; }
.gl-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; animation: gl-out .5s ease 1.35s forwards; }
.g-loader.gl-skip .gl-in { animation: gl-out .25s ease forwards; }
.gl-mark { width: 56px; height: 56px; opacity: 0; transform: scale(.6) rotate(-8deg); filter: blur(8px); animation: gl-mark .8s var(--g-ease) .1s forwards; }
.gl-word { display: flex; margin-top: 22px; padding-left: .16em; overflow: hidden; font: 700 clamp(30px, 5vw, 46px)/1.05 var(--font-en); letter-spacing: .16em; }
.gl-word span { display: inline-block; transform: translateY(105%); animation: gl-up .8s var(--g-ease) forwards; }
.gl-word .gl-sp { width: .3em; }
.gl-word span:nth-child(1) { animation-delay: .30s; } .gl-word span:nth-child(2) { animation-delay: .35s; }
.gl-word span:nth-child(4) { animation-delay: .42s; } .gl-word span:nth-child(5) { animation-delay: .47s; }
.gl-word span:nth-child(6) { animation-delay: .52s; } .gl-word span:nth-child(7) { animation-delay: .57s; }
.gl-word span:nth-child(8) { animation-delay: .62s; } .gl-word span:nth-child(9) { animation-delay: .67s; }
.gl-bar { width: min(240px, 60vw); height: 1px; margin-top: 26px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.gl-bar i { display: block; height: 100%; background: var(--g-or); transform: scaleX(0); transform-origin: left; animation: gl-bar 1.05s var(--g-ease-io) .25s forwards; }
.gl-meta { display: flex; justify-content: space-between; width: min(240px, 60vw); margin-top: 12px; font: 600 10.5px/1 var(--font-en); letter-spacing: .24em; color: var(--g-dim); opacity: 0; animation: g-fade .6s ease .6s forwards; }
.gl-handle { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--g-or); box-shadow: 0 0 28px 3px rgba(255, 122, 26, .55); transform: scaleX(0); animation: gl-bar .7s var(--g-ease-io) 1s forwards; }
@keyframes gl-open { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes gl-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes gl-mark { to { opacity: 1; transform: none; filter: none; } }
@keyframes gl-up { to { transform: none; } }
@keyframes gl-bar { to { transform: scaleX(1); } }

/* ---------- 共通の動き ---------- */
@keyframes g-fade { from { opacity: 0; } }
@keyframes g-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes g-down { from { opacity: 0; transform: translateY(-14px); } }
@keyframes g-rise { from { transform: translateY(112%); } }
@keyframes g-zoom { from { opacity: 0; transform: scale(1.12); } }
@keyframes g-marq { to { transform: translateX(-50%); } }
@keyframes g-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 122, 26, 0); } }
@keyframes g-slide { from { opacity: 0; transform: translateX(6%); } }

/* 見出しの1文字ずつのせり上がり（_garage_macros.html の split）。文節（.pz）の中では折り返さない */
.g-split .pz { white-space: nowrap; }
.g-split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.g-split .c { display: inline-block; transition: transform 1s var(--g-ease); transition-delay: calc(var(--i) * 32ms + .08s); }
.g-js:not(.g-fail) [data-reveal]:not(.in) .g-split .c { transform: translateY(112%); }

/* 写真を横からめくって出す（data-fx="clip"） */
/* 写真を幕でめくって出す（data-fx="clip"）。clip-path で隠すと IntersectionObserver が「見えていない」と判断して .in が付かないので、
   上にかぶせた幕（::before・背景と同じ色）を横へ縮めて見せる */
.theme-garage [data-reveal][data-fx="clip"] { opacity: 1; transform: none; }
[data-fx="clip"]::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--cur, var(--g-bg)); transform: scaleX(0); transform-origin: right; transition: transform 1.25s var(--g-ease-io); transition-delay: inherit; }
.g-js:not(.g-fail) [data-fx="clip"]:not(.in)::before { transform: scaleX(1); }
.theme-garage [data-fx="clip"] img { transition: transform 1.8s var(--g-ease), filter .6s; }
.g-js:not(.g-fail) [data-fx="clip"]:not(.in) img { transform: scale(1.18); }
.g-light { --cur: var(--g-paper); }
.g-fail [data-reveal] { opacity: 1 !important; transform: none !important; }

/* 写真をスクロールに合わせてずらす（garage.js が --py を入れる。枠より上下 8% 大きくしておく） */
.g-par { position: absolute; inset: -8% 0; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.g-par img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- セクションの頭（細い線・番号・英字・大きな見出し） ---------- */
.g-sec { position: relative; padding: clamp(96px, 12vw, 168px) 0; overflow-x: clip; }
.g-label {
  position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding-top: 16px;
  border-top: 1px solid var(--g-line-2); font: 600 13px/1 var(--font-en); letter-spacing: .3em; text-transform: uppercase; color: var(--g-mute);
}
.g-label::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 1px; background: var(--g-or); transform-origin: left; transition: transform 1.1s var(--g-ease) .1s; }
.g-js:not(.g-fail) [data-reveal]:not(.in) .g-label::before, .g-js:not(.g-fail) .g-label[data-reveal]:not(.in)::before { transform: scaleX(0); }
.g-label-no { color: var(--g-or); }
.g-head { margin-bottom: clamp(44px, 6vw, 84px); }
.g-title { margin: 26px 0 0; font-size: clamp(36px, 6vw, 84px); font-weight: 900; line-height: 1.15; letter-spacing: .02em; color: #fff; }
/* 2つ並びの中・長い見出しは小さめに（文節ごとに1行になりすぎない） */
.g-split2 .g-title, .g-head.is-md .g-title { font-size: clamp(30px, 4vw, 56px); line-height: 1.25; }
.g-h3 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1.3; letter-spacing: .03em; color: #fff; }
.g-no { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font: 600 12px/1 var(--font-en); letter-spacing: .28em; color: var(--g-mute); }
.g-no b { font: 700 15px/1 var(--font-en); letter-spacing: .08em; color: var(--g-or); }
.theme-garage main p.g-kind { display: inline-block; margin: 0 0 14px; padding: 5px 10px; border: 1px solid var(--g-line-2); border-radius: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; color: #fff; }
.g-link { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; color: #fff; font-weight: 700; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid var(--g-line-2); }
.theme-garage .g-link { color: #fff; }
.g-link::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--g-or); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--g-ease); }
.g-link:hover::after { transform: scaleX(1); transform-origin: left; }
.g-link .arrow { width: 18px; height: 18px; transition: transform .4s var(--g-ease); }
.g-link:hover .arrow { transform: translateX(4px); }
.g-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--g-or); animation: g-pulse 2.2s infinite; }

/* ---------- ファーストビュー ---------- */
.g-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(640px, 100svh); color: #fff; background: #030405; }
.g-hero-media { position: absolute; inset: 0; z-index: -3; animation: g-zoom 2.4s var(--g-ease) both; animation-delay: var(--boot); }
.g-hero-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.12) brightness(.85); }
.g-hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); }
.g-hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(3, 4, 5, .6) 0%, rgba(3, 4, 5, .1) 28%, rgba(3, 4, 5, .35) 62%, rgba(3, 4, 5, .96) 100%),
    linear-gradient(90deg, rgba(3, 4, 5, .78) 0%, rgba(3, 4, 5, .15) 62%, rgba(3, 4, 5, .45) 100%);
}
.g-hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.g-grid {
  position: absolute; inset: 0; animation: g-fade 2s ease both; animation-delay: calc(var(--boot) + .4s);
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 88px 88px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(75% 70% at 72% 35%, #000, transparent 75%); mask-image: radial-gradient(75% 70% at 72% 35%, #000, transparent 75%);
}
/* 光の筋（テールランプとヘッドライト） */
.g-streaks { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.g-streaks i { position: absolute; left: 0; width: 34vw; max-width: 520px; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 122, 26, .2) 30%, rgba(255, 150, 70, .95) 88%, #fff); animation: g-streak 4.6s linear infinite; }
.g-streaks i:nth-child(even) { background: linear-gradient(270deg, transparent, rgba(150, 190, 255, .2) 30%, rgba(190, 215, 255, .95) 88%, #fff); animation-name: g-streak-r; }
.g-streaks i:nth-child(1) { top: 56%; animation-delay: calc(var(--boot) + .2s); }
.g-streaks i:nth-child(2) { top: 61%; animation-delay: calc(var(--boot) + 1.4s); animation-duration: 5.4s; }
.g-streaks i:nth-child(3) { top: 69%; animation-delay: calc(var(--boot) + 2.3s); animation-duration: 3.8s; }
.g-streaks i:nth-child(4) { top: 74%; animation-delay: calc(var(--boot) + .8s); animation-duration: 6s; }
.g-streaks i:nth-child(5) { top: 82%; animation-delay: calc(var(--boot) + 3.1s); animation-duration: 4.2s; height: 2px; }
.g-streaks i:nth-child(6) { top: 86%; animation-delay: calc(var(--boot) + 2s); animation-duration: 5s; }
@keyframes g-streak { 0% { transform: translateX(-100%); opacity: 0; } 12%, 78% { opacity: .9; } 100% { transform: translateX(100vw); opacity: 0; } }
@keyframes g-streak-r { 0% { transform: translateX(100vw); opacity: 0; } 12%, 78% { opacity: .9; } 100% { transform: translateX(-100%); opacity: 0; } }
.g-corner { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, .45); animation: g-fade 1.2s ease both; animation-delay: calc(var(--boot) + .5s); }
.g-corner.tl { top: calc(var(--header-h) + 18px); left: 18px; border-right: 0; border-bottom: 0; }
.g-corner.tr { top: calc(var(--header-h) + 18px); right: 18px; border-left: 0; border-bottom: 0; }
.g-corner.bl { bottom: 70px; left: 18px; border-right: 0; border-top: 0; }
.g-corner.br { bottom: 70px; right: 18px; border-left: 0; border-top: 0; }
@media (max-width: 760px) { .g-corner { display: none; } }

.g-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; padding-top: calc(var(--header-h) + 56px); padding-bottom: 104px; }
@media (min-width: 1100px) { .g-hero-in { grid-template-columns: minmax(0, 1fr) 300px; } }
.g-hero-eb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; font: 600 13px/1.2 var(--font-en); letter-spacing: .3em; color: rgba(255, 255, 255, .78); animation: g-up .9s var(--g-ease) both; animation-delay: calc(var(--boot) + .1s); }
.g-sep { color: var(--g-dim); }
.g-hero-h { margin: 0 0 24px; font-size: clamp(44px, calc(9.2vw + 8px), 136px); font-weight: 900; line-height: 1.08; letter-spacing: .01em; }
.g-hero-h .c, .g-phero-h .c { background: linear-gradient(180deg, #fff 0%, #fff 48%, #b4bcc7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-hero-h .pz:last-child .w:last-child .c { background: none; color: var(--g-or); }
.g-hero-h .c { animation: g-rise 1.1s var(--g-ease) both; animation-delay: calc(var(--boot) + .15s + var(--i) * 55ms); }
.g-hero-en { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 22px; font: 600 clamp(13px, 1.3vw, 16px)/1.2 var(--font-en); letter-spacing: .32em; color: rgba(255, 255, 255, .86); animation: g-up .9s var(--g-ease) both; animation-delay: calc(var(--boot) + .55s); }
.g-hero-en i { width: 5px; height: 5px; background: var(--g-or); transform: rotate(45deg); }
.g-hero-lead { max-width: 34em; margin: 0 0 30px; font-size: clamp(15px, 1.5vw, 18px); color: rgba(255, 255, 255, .88); animation: g-up .9s var(--g-ease) both; animation-delay: calc(var(--boot) + .65s); }
.g-hero-btns { animation: g-up .9s var(--g-ease) both; animation-delay: calc(var(--boot) + .75s); }

/* 右の目次（PC だけ） */
.g-hud { display: none; }
@media (min-width: 1100px) {
  .g-hud { display: block; position: relative; padding: 18px 18px 8px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(8, 10, 13, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: g-up 1s var(--g-ease) both; animation-delay: calc(var(--boot) + .6s); }
}
.g-hud::before { content: ""; position: absolute; left: -1px; top: -1px; width: 32px; height: 2px; background: var(--g-or); }
.g-hud-h { display: flex; justify-content: space-between; margin: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); font: 600 11px/1 var(--font-en); letter-spacing: .28em; color: var(--g-mute); }
.g-hud ol { list-style: none; margin: 0; padding: 0; }
.g-hud li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.g-hud a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 11px 4px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .3s, padding .4s var(--g-ease); }
.g-hud a b { font: 600 12px/1 var(--font-en); letter-spacing: .1em; color: var(--g-or); }
.g-hud a small { font-size: 11px; font-weight: 500; color: var(--g-mute); white-space: nowrap; }
.g-hud a:hover { padding-left: 10px; background: rgba(255, 255, 255, .06); color: #fff; }

/* 下の帯（認可と数字が流れる） */
.g-tk { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; display: flex; align-items: center; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(5, 6, 8, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: g-fade 1s ease both; animation-delay: calc(var(--boot) + .9s); }
.g-tk-t { display: flex; width: max-content; animation: g-marq 70s linear infinite; }
.g-tk-g { display: flex; gap: 52px; padding-right: 52px; white-space: nowrap; }
.g-tk-g > span { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.g-tk-g b { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.g-tk-g b::before { content: ""; width: 5px; height: 5px; background: var(--g-or); transform: rotate(45deg); }
.g-scroll { display: none; }
@media (min-width: 1360px) {
  .g-scroll { position: absolute; right: 28px; bottom: 84px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255, 255, 255, .7); text-decoration: none; font: 600 11px/1 var(--font-en); letter-spacing: .3em; writing-mode: vertical-rl; animation: g-fade 1s ease both; animation-delay: calc(var(--boot) + 1s); }
  .g-scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(#fff, transparent); animation: cue 2s infinite var(--ease); }
  .g-scroll:hover { color: var(--g-or); }
}
@media (max-width: 640px) {
  .g-hero { min-height: max(600px, 100svh); }
  .g-hero-in { padding-top: calc(var(--header-h) + 40px); padding-bottom: 88px; }
  .g-hero-eb { margin-bottom: 18px; font-size: 11.5px; letter-spacing: .24em; }
  .g-hero-en { letter-spacing: .22em; }
  .g-tk { height: 46px; }
  .g-streaks { inset: 16% 0 auto; height: 32%; }  /* スマホは文字とボタンが下にあるので、光の筋は上の写真の所だけに */
}

/* ---------- 会社をひとこと（文節ごとに明るくなる） ---------- */
.g-about-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.g-about-grid > .g-label { margin-top: 18px; }
.g-stmt { margin: 0; font-size: clamp(24px, 3.5vw, 50px); font-weight: 800; line-height: 1.55; letter-spacing: .02em; color: #fff; word-break: keep-all; overflow-wrap: anywhere; }
.g-stmt .f { white-space: nowrap; transition: color .5s, opacity .5s; }
.g-fill-on .f { opacity: .2; }
.g-fill-on .f.on { opacity: 1; }
.g-stmt .f:last-child { color: var(--g-or); }
.theme-garage main p.g-about-sub { margin: 36px 0 0; font-size: 15px; color: var(--g-mute); }
@media (max-width: 760px) { .g-about-grid { grid-template-columns: minmax(0, 1fr); } .g-about-grid > .g-label { margin-top: 0; } }

/* ---------- 流れる大きな帯 ---------- */
.g-marq { position: relative; overflow: hidden; padding: clamp(18px, 2.4vw, 30px) 0; border-block: 1px solid var(--g-line); white-space: nowrap; }
.g-marq-t { display: flex; width: max-content; animation: g-marq 40s linear infinite; }
.g-marq.is-rev .g-marq-t { animation-direction: reverse; animation-duration: 48s; }
.g-marq-g { display: flex; align-items: center; gap: clamp(28px, 3.4vw, 56px); padding-right: clamp(28px, 3.4vw, 56px); font: 700 clamp(44px, 7.4vw, 112px)/1 var(--font-en); letter-spacing: .02em; text-transform: uppercase; color: #fff; transform: skewX(var(--skew, 0deg)); transition: transform .4s var(--g-ease); }
.g-marq-g .o { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .5); }
.g-marq-g i { flex: none; width: .3em; height: .3em; background: var(--g-or); transform: rotate(45deg); }
.g-marq.is-small .g-marq-g { font-size: clamp(30px, 4.6vw, 64px); }

/* ---------- 事業内容 ---------- */
.g-services { padding-bottom: 0; }
.g-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.g-feat-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--g-r); background: #111; }
.g-feat-media img { filter: saturate(.85) contrast(1.06); }
.g-feat-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 45%, rgba(3, 4, 5, .75)); pointer-events: none; }
.g-feat-tag { position: absolute; left: 20px; bottom: 14px; z-index: 1; font: 700 clamp(30px, 4.4vw, 64px)/1 var(--font-en); letter-spacing: .05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .8); }
.g-feat-body p:not([class]) { color: var(--g-body); }
@media (max-width: 860px) { .g-feat { grid-template-columns: minmax(0, 1fr); } }

/* 開業支援（オレンジの帯） */
.g-fcband { position: relative; isolation: isolate; overflow: hidden; margin-bottom: clamp(64px, 9vw, 120px); padding: clamp(36px, 6vw, 80px) clamp(22px, 5vw, 72px); border-radius: var(--g-r); background: var(--g-or); color: #0b0c0e; }
.g-fcband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .07) 0 14px, transparent 14px 28px); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000); }
.g-fcband-word { position: absolute; right: -.03em; bottom: -.18em; z-index: -1; font: 700 clamp(80px, 16vw, 240px)/1 var(--font-en); letter-spacing: .02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(0, 0, 0, .16); pointer-events: none; }
.g-fcband-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.g-fcband .g-no, .g-fcband .g-no b { color: #0b0c0e; }
.g-fcband .g-no span { color: rgba(0, 0, 0, .62); }
.theme-garage main p.g-fcband-note { margin: 0; font-size: clamp(24px, 3.2vw, 42px); font-weight: 900; line-height: 1.4; color: #0b0c0e; }
.theme-garage .g-fcband p.g-kind { color: #0b0c0e; border-color: rgba(0, 0, 0, .4); }
.g-fcband .g-h3 { color: #0b0c0e; }
.theme-garage .g-fcband p { color: rgba(0, 0, 0, .84); }
.g-fcband .btn { margin-top: 8px; }
@media (max-width: 860px) { .g-fcband-in { grid-template-columns: minmax(0, 1fr); } }

/* ロードサービス・整備・中古車（3枚のカード） */
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: clamp(80px, 10vw, 140px); }
.g-card { --dl: 0s; position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--g-line); border-radius: var(--g-r); background: var(--g-panel); transition: border-color .4s, opacity .9s var(--ease) var(--dl), transform .9s var(--ease) var(--dl); }
.g-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 26, .13), transparent 60%); }
.g-card:hover { border-color: rgba(255, 122, 26, .5); }
.g-card:hover::before { opacity: 1; }
.g-cards .g-card:nth-child(2) { --dl: .1s; }
.g-cards .g-card:nth-child(3) { --dl: .2s; }
.g-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.g-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.1) brightness(.82); transition: filter .7s, transform 1.2s var(--g-ease); }
.g-card:hover .g-card-media img { filter: none; transform: scale(1.05); }
@media (hover: none) { .g-card-media img { filter: saturate(.9) contrast(1.05); } }
.g-card-body { position: relative; z-index: 2; padding: 26px 24px 30px; }
.g-card .g-h3 { font-size: clamp(22px, 2.2vw, 28px); }
.g-card-body p:not([class]) { margin-bottom: 0; font-size: 15px; color: var(--g-mute); }
@media (max-width: 1000px) and (min-width: 641px) {
  .g-cards { grid-template-columns: minmax(0, 1fr); }
  .g-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .g-card-media { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 640px) { .g-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* 呑もかな（画面いっぱいの写真） */
.g-nomo { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(520px, 72vh, 780px); padding: clamp(64px, 8vw, 112px) 0; }
.g-nomo-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.g-nomo-media .g-par { inset: -10% 0; }
.g-nomo-media img { filter: saturate(.95) brightness(.72); }
.g-nomo::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--g-bg) 0%, rgba(6, 7, 9, .15) 26%, rgba(6, 7, 9, .5) 62%, rgba(6, 7, 9, .96) 100%), linear-gradient(90deg, rgba(6, 7, 9, .8), transparent 70%); }
.g-nomo-word { position: absolute; left: 0; right: 0; top: 16%; z-index: -1; text-align: center; white-space: nowrap; pointer-events: none; font: 700 clamp(72px, 17vw, 260px)/1 var(--font-en); letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .3); }
.g-nomo-body { max-width: 580px; }
.theme-garage .g-nomo-body p:not([class]) { color: rgba(255, 255, 255, .86); }

/* ---------- 数字 ---------- */
.g-nums { background: radial-gradient(900px 520px at 88% 0%, rgba(79, 140, 255, .09), transparent 60%), radial-gradient(760px 420px at 0% 100%, rgba(255, 122, 26, .08), transparent 60%), var(--g-bg-2); border-block: 1px solid var(--g-line); }
.g-nums::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.g-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--g-line-2); }
.g-stat { padding: 30px 24px 6px; border-right: 1px solid var(--g-line); }
.g-stat:first-child { padding-left: 0; }
.g-stat:last-child { border-right: 0; }
.g-stats .g-stat:nth-child(2) { transition-delay: .08s; }
.g-stats .g-stat:nth-child(3) { transition-delay: .16s; }
.g-stats .g-stat:nth-child(4) { transition-delay: .24s; }
.theme-garage main p.g-stat-k { margin: 0 0 26px; font: 600 11.5px/1.4 var(--font-en); letter-spacing: .24em; color: var(--g-mute); }
.theme-garage main p.g-stat-n { display: flex; align-items: baseline; gap: 6px; margin: 0 0 22px; white-space: nowrap; font: 700 clamp(56px, 6.4vw, 96px)/.9 var(--font-en); letter-spacing: .01em; color: #fff; }
.g-stat-n small { font: 800 clamp(15px, 1.4vw, 19px)/1 var(--font-jp); color: var(--g-or); }
.g-meter { position: relative; height: 3px; margin-bottom: 20px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.g-meter i { position: absolute; inset: 0; transform: scaleX(var(--v, 1)); transform-origin: left; transition: transform 1.8s var(--g-ease) .3s; background: linear-gradient(90deg, var(--g-or), #ffc285); }
.g-js:not(.g-fail) .g-stat:not(.in) .g-meter i { transform: scaleX(0); }
.g-meter.is-ticks { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .24) 0 1px, transparent 1px 7px); }
.g-meter.is-ticks i { inset: 0 auto 0 0; width: 30%; transform: none; background: linear-gradient(90deg, transparent, rgba(255, 122, 26, .9), transparent); animation: g-scan 3.2s linear infinite; }
@keyframes g-scan { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.theme-garage main p.g-stat-l { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #fff; }
.theme-garage main p.g-stat-s { margin: 0; font-size: 13px; line-height: 1.7; color: var(--g-mute); }
@media (max-width: 960px) {
  .g-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-stat, .g-stat:first-child { padding: 26px 18px 22px; }
  .g-stat:nth-child(odd) { padding-left: 0; }
  .g-stat:nth-child(2n) { border-right: 0; }
  .g-stat:nth-child(-n+2) { border-bottom: 1px solid var(--g-line); }
}
@media (max-width: 480px) {
  .g-stat, .g-stat:first-child { padding: 22px 14px 18px; }
  .g-stat:nth-child(odd) { padding-left: 0; }
  .theme-garage main p.g-stat-n { font-size: 44px; }
  .theme-garage main p.g-stat-k { letter-spacing: .14em; font-size: 10.5px; margin-bottom: 18px; }
}

/* ---------- 採用情報 ---------- */
.g-recruit { padding-top: 0; }
.g-rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: clamp(80px, 10vw, 140px); }
.g-rec-txt .g-head { margin-bottom: 40px; }
.theme-garage main p.g-rec-lead { margin: 0 0 22px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 900; line-height: 1.35; color: #fff; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0 32px; padding: 0; }
.theme-garage main .g-chips li { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--g-line-2); border-radius: 2px; background: rgba(255, 255, 255, .03); font-size: 13.5px; font-weight: 700; color: #fff; word-break: keep-all; }
.g-chips li::before { content: ""; width: 5px; height: 5px; background: var(--g-or); transform: rotate(45deg); }
.g-rec-photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.g-ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--g-r); background: #111; }
.g-ph.a { grid-row: span 2; }
.g-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.05); }
.g-ph.b { transition-delay: .15s; }
.g-ph.c { transition-delay: .3s; }
@media (max-width: 860px) { .g-rec-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 白地の段（会社概要・アクセス・表） ---------- */
.g-light { --lr: clamp(20px, 3vw, 40px); position: relative; z-index: 1; margin-top: calc(-1 * var(--lr)); border-radius: var(--lr) var(--lr) 0 0; background: var(--g-paper); color: var(--g-ink); }
.theme-garage .g-light p, .theme-garage .g-light li, .theme-garage .g-light td { color: #363d47; }
.g-light .g-label { color: #5b6370; border-top-color: rgba(0, 0, 0, .16); }
.g-light .g-title, .g-light .g-h3 { color: var(--g-ink); }
.theme-garage .g-light a:not(.btn) { color: #b84a00; }
.theme-garage .g-light a:not(.btn):hover { color: var(--g-ink); }
.g-light .g-sec + .g-sec { padding-top: 0; }
.theme-garage .g-light .dl-table { border-top: 1px solid rgba(0, 0, 0, .85); font-size: 15px; }
.theme-garage .g-light .dl-table th { width: 32%; padding: 22px 16px 22px 0; background: none; color: var(--g-ink); font-weight: 800; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.theme-garage .g-light .dl-table td { padding: 22px 0 22px 16px; color: #2d333b; border-bottom: 1px solid rgba(0, 0, 0, .12); }
@media (max-width: 640px) {
  .theme-garage .g-light .dl-table th { width: 100%; padding: 16px 0 2px; border-bottom: 0; color: #b84a00; font-size: 13.5px; }
  .theme-garage .g-light .dl-table td { padding: 0 0 16px; }
}
.g-co { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.g-co-side { position: sticky; top: calc(var(--header-h) + 32px); }
.g-lic { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.theme-garage .g-light .g-lic li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid rgba(0, 0, 0, .08); border-left: 3px solid var(--g-or); border-radius: 2px; background: #fff; }
.g-lic b { font-size: 14px; color: var(--g-ink); }
.g-lic span { font-size: 13px; color: #5b6370; }
@media (max-width: 960px) { .g-co { grid-template-columns: minmax(0, 1fr); } .g-co-side { position: static; } }
.g-acc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.theme-garage .g-light p.g-acc-addr { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; line-height: 1.5; color: var(--g-ink); }
.g-acc-st { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.g-map { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--g-r); background: #d9d8d3; }
.g-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.g-map:hover iframe { filter: none; }
.g-map-pin { position: absolute; left: 12px; top: 12px; padding: 7px 10px; background: var(--g-ink); color: #fff; font: 600 11px/1 var(--font-en); letter-spacing: .2em; pointer-events: none; }
@media (max-width: 860px) { .g-acc { grid-template-columns: minmax(0, 1fr); } .g-map { aspect-ratio: 4 / 3; } }

/* ---------- お問い合わせ（黒に戻して、白の上に重ねる） ---------- */
.g-contact, .g-darkover { --lr: clamp(20px, 3vw, 40px); z-index: 2; margin-top: calc(-1 * var(--lr)); border-radius: var(--lr) var(--lr) 0 0; background: var(--g-bg); }
.g-contact-lead { max-width: 820px; margin-bottom: 52px; }
.theme-garage main .g-contact-lead p:not(.g-warn) { color: var(--g-body); }
.theme-garage main p.g-warn { margin: 18px 0 0; padding: 14px 18px; border: 1px solid rgba(255, 122, 26, .35); border-left: 3px solid var(--g-or); border-radius: 2px; background: rgba(255, 122, 26, .07); font-size: 14px; color: #fff; }
.g-warn b { color: var(--g-or-2); }
.g-h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 10px; font-size: clamp(18px, 2vw, 22px); font-weight: 800; color: #fff; }
.g-h4 span { padding: 6px 8px; background: var(--g-or); color: #0b0c0e; font: 600 11px/1 var(--font-en); letter-spacing: .26em; }
.g-h4-form { margin-top: clamp(56px, 7vw, 88px); margin-bottom: 22px; }
.theme-garage .tel-cards { gap: 14px; margin-top: 24px; }
.theme-garage .tel-card { position: relative; overflow: hidden; padding: 26px 24px; border: 1px solid var(--g-line); border-radius: var(--g-r); background: var(--g-panel); box-shadow: none; }
.theme-garage .tel-card::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 2px; background: var(--g-or); }
.theme-garage .tel-card h3 { margin-bottom: 8px; font-size: 15px; letter-spacing: .08em; color: #fff; }
.theme-garage .tel-card .sub, .theme-garage .tel-card .hours { color: var(--g-mute); }
.theme-garage .tel-card a.tel { color: #fff; font: 700 clamp(28px, 3vw, 34px)/1.3 var(--font-en); letter-spacing: .04em; transition: color .3s; }
.theme-garage .tel-card a.tel:hover { color: var(--g-or); }
.theme-garage .tel-card a.tel small { color: var(--g-or-2); }

/* フォーム（黒い欄） */
.theme-garage .form-card { padding: clamp(22px, 4vw, 48px); border: 1px solid var(--g-line); border-radius: var(--g-r); background: var(--g-panel); box-shadow: none; color: var(--g-text); }
.theme-garage .form-card form > p:first-child { font-size: 14px; color: var(--g-mute); }
.theme-garage .field { border-bottom-color: var(--g-line); }
.theme-garage .field:first-of-type { border-top-color: var(--g-line); }
.theme-garage .field > label, .theme-garage .field > .label { color: #fff; }
.theme-garage .field input[type=text], .theme-garage .field input[type=email], .theme-garage .field input[type=tel], .theme-garage .field input[type=number], .theme-garage .field select, .theme-garage .field textarea {
  border: 1px solid #2c323c; border-radius: var(--g-r); background: #0a0c0f; color: #fff;
}
.theme-garage .field input::placeholder, .theme-garage .field textarea::placeholder { color: #737c8a; }
.theme-garage .field input:focus, .theme-garage .field select:focus, .theme-garage .field textarea:focus { border-color: var(--g-or); background: #0d1014; box-shadow: 0 0 0 3px rgba(255, 122, 26, .22); }
.theme-garage .field input:-webkit-autofill, .theme-garage .field textarea:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #0a0c0f inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.theme-garage .req { background: var(--g-or); color: #0b0c0e; }
.theme-garage .opt { background: #262b33; color: #c5ccd6; }
.theme-garage .field .err, .theme-garage .form-status.error { color: #ff8f85; }
.theme-garage .field.invalid input, .theme-garage .field.invalid select, .theme-garage .field.invalid textarea { border-color: #ff6b5e; }
.theme-garage .form-status { color: #fff; }

/* ---------- 足（フッター） ---------- */
.theme-garage .site-footer { position: relative; overflow: hidden; padding: 0; border-top: 1px solid var(--g-line); background: #040506; color: var(--g-mute); }
.theme-garage .site-footer a { color: #e3e8ee; }
.theme-garage .site-footer a:hover { color: var(--g-or); }
.g-foot-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; padding: clamp(52px, 7vw, 96px) 0; border-bottom: 1px solid var(--g-line); text-decoration: none; }
.theme-garage .site-footer a.g-foot-cta { color: #fff; }
.g-foot-cta-en { grid-column: 1 / -1; font: 700 clamp(56px, 12vw, 168px)/.9 var(--font-en); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .5); transition: color .5s, -webkit-text-stroke-color .5s; }
.g-foot-cta:hover .g-foot-cta-en { color: var(--g-or); -webkit-text-stroke-color: var(--g-or); }
.g-foot-cta-jp { display: flex; flex-direction: column; gap: 4px; font-size: clamp(18px, 2vw, 24px); font-weight: 800; }
.g-foot-cta-jp small { font-size: 13px; font-weight: 500; color: var(--g-mute); }
.g-foot-cta-ar { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--g-line-2); border-radius: 50%; transition: background .4s, border-color .4s, color .4s, transform .6s var(--g-ease); }
.g-foot-cta-ar svg { width: 22px; height: 22px; }
.g-foot-cta:hover .g-foot-cta-ar { transform: rotate(-45deg); border-color: var(--g-or); background: var(--g-or); color: #0b0c0e; }
.theme-garage .footer-grid { padding-top: 64px; }
.theme-garage .footer-grid h4 { margin-bottom: 16px; font-size: 13px; letter-spacing: .12em; color: #fff; }
.theme-garage .footer-grid h4::before { content: ""; display: inline-block; width: 14px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--g-or); }
.theme-garage .site-footer .g-foot-tel { font: 700 20px/1 var(--font-en); letter-spacing: .06em; }
.theme-garage .footer-bottom { align-items: center; margin-top: 56px; border-top-color: var(--g-line); color: var(--g-dim); }
.theme-garage .site-footer a.g-totop { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 600 11px/1 var(--font-en); letter-spacing: .26em; }
.g-totop svg { width: 14px; height: 14px; }
.g-foot-word { margin-top: 28px; overflow: hidden; line-height: .8; pointer-events: none; user-select: none; }
.g-foot-word span { display: block; text-align: center; white-space: nowrap; transform: translateY(16%); font: 700 clamp(64px, 19.5vw, 300px)/.8 var(--font-en); letter-spacing: .01em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .2); background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 85%); -webkit-background-clip: text; background-clip: text; }

/* ---------- 下層ページの頭（採用情報・代行開業支援） ---------- */
.g-phero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(80svh, 760px); padding: calc(var(--header-h) + 72px) 0 clamp(56px, 7vw, 96px); background: #030405; color: #fff; }
.g-phero-media { position: absolute; inset: 0; z-index: -3; animation: g-zoom 2.2s var(--g-ease) both; }
.g-phero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.1) brightness(.72); }
.g-phero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(3, 4, 5, .6) 0%, rgba(3, 4, 5, .15) 35%, rgba(3, 4, 5, .92) 100%), linear-gradient(90deg, rgba(3, 4, 5, .82), rgba(3, 4, 5, .1) 75%); }
.g-phero-word { position: absolute; right: -.04em; top: calc(var(--header-h) + 12px); z-index: -1; white-space: nowrap; pointer-events: none; font: 700 clamp(80px, 17vw, 270px)/1 var(--font-en); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .2); animation: g-slide 1.6s var(--g-ease) .15s both; }
.g-phero-in { position: relative; }
.theme-garage .crumbs { margin-bottom: 22px; font-size: 12.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .7); animation: g-up .8s var(--g-ease) both; }
.theme-garage .crumbs a { color: #fff; }
.g-phero .g-hero-eb { animation-delay: .1s; }
.g-phero-h { margin: 0 0 22px; font-size: clamp(40px, 7vw, 100px); font-weight: 900; line-height: 1.12; letter-spacing: .01em; }
.g-phero-h .c { animation: g-rise 1s var(--g-ease) both; animation-delay: calc(.2s + var(--i) * 50ms); }
.g-phero-lead { max-width: 40em; margin: 0; font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .9); animation: g-up .9s var(--g-ease) .55s both; }
.g-phero .btn-row { margin-top: 30px; animation: g-up .9s var(--g-ease) .7s both; }

/* 大きな文（文節ごと） */
.theme-garage main .g-big { margin: 0 0 26px; font-size: clamp(28px, 4vw, 56px); font-weight: 900; line-height: 1.35; letter-spacing: .02em; color: #fff; }
.g-big em { font-style: normal; color: var(--g-or); }

/* 2つ並び（文と写真） */
.g-split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.g-split2-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--g-r); background: #111; }
.g-split2-media img { filter: saturate(.85) contrast(1.06); }
@media (max-width: 860px) { .g-split2 { grid-template-columns: minmax(0, 1fr); } }

/* 要点のタイル */
.g-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--g-line); background: var(--g-line); }
.theme-garage main .g-points li { display: flex; align-items: center; gap: 14px; padding: 24px 22px; background: var(--g-bg); color: #fff; font-size: 16px; font-weight: 800; }
.g-points li b { font: 700 13px/1 var(--font-en); letter-spacing: .1em; color: var(--g-or); }
@media (max-width: 760px) { .g-points { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 761px) and (max-width: 1000px) { .g-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 黒地の呼びかけの帯 */
.g-cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 84px) clamp(22px, 5vw, 72px); border: 1px solid var(--g-line); border-radius: var(--g-r); background: radial-gradient(700px 360px at 100% 0%, rgba(255, 122, 26, .2), transparent 60%), var(--g-panel); }
.g-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.g-cta .g-title { margin: 0 0 18px; font-size: clamp(28px, 4vw, 52px); }
.theme-garage main .g-cta p { max-width: 640px; color: var(--g-body); }
.g-cta.is-or { border: 0; background: var(--g-or); color: #0b0c0e; }
.g-cta.is-or::before { background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .07) 0 14px, transparent 14px 28px); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.g-cta.is-or .g-title { color: #0b0c0e; }
.theme-garage main .g-cta.is-or p { color: rgba(0, 0, 0, .82); }

/* ---------- 代行開業支援（LP） ---------- */
.g-fchero { min-height: min(92svh, 860px); }
.g-fchero .g-phero-h { font-size: clamp(36px, 6.4vw, 92px); }
.g-fchero .g-phero-media img { filter: grayscale(.2) contrast(1.1) brightness(.62); }
.g-fchero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 60% at 85% 20%, rgba(255, 122, 26, .3), transparent 70%); }
.g-phero-lead b { color: var(--g-or-2); }
.g-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .22); animation: g-up 1s var(--g-ease) .85s both; }
.theme-garage main .g-kpis li { padding: 18px 20px 0 0; color: #fff; }
.g-kpis li + li { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .14); }
.g-kpis small { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.g-kpis b { display: block; font: 700 clamp(30px, 3.6vw, 48px)/1 var(--font-en); letter-spacing: .02em; white-space: nowrap; }
.g-kpis b span { margin-left: 4px; font: 800 clamp(13px, 1.3vw, 16px)/1 var(--font-jp); color: var(--g-or); }
.g-kpis em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .62); }
@media (max-width: 640px) {
  .g-kpis { grid-template-columns: minmax(0, 1fr); }
  .theme-garage main .g-kpis li, .g-kpis li + li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 12px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .g-kpis small { margin: 0; }
  .g-kpis em { grid-column: 2; margin-top: 0; }
}

/* 5つのメリット */
.g-lead-box { max-width: 860px; margin-bottom: clamp(40px, 5vw, 64px); }
.theme-garage main .g-lead-box p { font-size: clamp(15px, 1.5vw, 17px); color: var(--g-body); }
.g-merits { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--g-line-2); }
.theme-garage main .g-merits li { position: relative; display: grid; grid-template-columns: clamp(76px, 11vw, 150px) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px); padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--g-line); color: #fff; font-size: clamp(16px, 1.8vw, 21px); font-weight: 600; line-height: 1.7; transition: background .4s; }
.g-merits li::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--g-or); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--g-ease); }
.g-merits li:hover::before { transform: scaleX(1); }
.g-merits .n { font: 700 clamp(52px, 7.5vw, 104px)/.85 var(--font-en); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); transition: color .4s, -webkit-text-stroke-color .4s; }
.g-merits li:hover .n { color: var(--g-or); -webkit-text-stroke-color: var(--g-or); }
.g-merits strong { color: #fff; background: linear-gradient(transparent 64%, rgba(255, 122, 26, .5) 64%); }
.g-sup { margin-top: clamp(56px, 7vw, 96px); }
.g-sup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; }
.theme-garage main .g-sup-grid li { display: flex; align-items: center; gap: 12px; padding: 18px 18px; border: 1px solid var(--g-line); border-radius: var(--g-r); background: var(--g-panel); color: #fff; font-weight: 700; font-size: 15px; }
.g-sup-grid li span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--g-or); color: #0b0c0e; }
.g-sup-grid li span svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .g-sup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .g-sup-grid { grid-template-columns: minmax(0, 1fr); } }
.theme-garage main .g-sup-h { margin: 0; font-size: clamp(26px, 4vw, 54px); font-weight: 900; line-height: 1.35; color: #fff; }
.g-sup-h em { font-style: normal; color: var(--g-or); }
.g-sup-h .mk { background: linear-gradient(transparent 66%, rgba(255, 122, 26, .55) 66%); }

/* こんな方に（3枚のカードを縦長に） */
.g-cards.is-persona .g-card-media { aspect-ratio: 4 / 3; }
.g-cards.is-persona .g-card-media img { filter: grayscale(.6) contrast(1.08) brightness(.85); }
.g-cards.is-persona .g-card:hover .g-card-media img { filter: none; }

/* 契約の表（白地に2つ） */
.g-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.g-tables .g-head { margin-bottom: 28px; }
.g-tables .g-title { font-size: clamp(26px, 3.2vw, 40px); }
@media (max-width: 860px) { .g-tables { grid-template-columns: minmax(0, 1fr); } }

/* 開業までの流れ（左の線がスクロールに合わせて伸びる・garage.js が --p） */
.g-flow { position: relative; display: grid; gap: 0; margin: 0; padding: 0 0 0 clamp(56px, 8vw, 96px); list-style: none; counter-reset: gflow; }
.g-flow::before, .g-flow::after { content: ""; position: absolute; left: clamp(19px, 3vw, 31px); top: 8px; bottom: 8px; width: 2px; background: var(--g-line); }
.g-flow::after { background: linear-gradient(180deg, var(--g-or), #ffc285); transform-origin: top; transform: scaleY(var(--p, 1)); }
.g-js .g-flow::after { transform: scaleY(var(--p, 0)); }
.g-fail .g-flow::after { transform: none; }
.g-flow > li { position: relative; padding: 0 0 clamp(36px, 5vw, 56px); counter-increment: gflow; }
.g-flow > li:last-child { padding-bottom: 0; }
.g-flow > li::before { content: counter(gflow, decimal-leading-zero); position: absolute; left: calc(-1 * clamp(56px, 8vw, 96px)); top: 0; display: grid; place-items: center; width: clamp(40px, 6vw, 64px); height: clamp(40px, 6vw, 64px); border: 1px solid var(--g-line-2); border-radius: 50%; background: var(--g-bg); color: #fff; font: 700 clamp(15px, 1.8vw, 20px)/1 var(--font-en); letter-spacing: .04em; transition: background .5s, color .5s, border-color .5s; }
.g-flow > li.on::before { border-color: var(--g-or); background: var(--g-or); color: #0b0c0e; }
.g-flow h3 { margin: clamp(6px, 1.4vw, 16px) 0 12px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; color: #fff; }
.theme-garage main .g-flow p { margin: 0; color: var(--g-body); }
.theme-garage .g-flow .mark, .theme-garage .g-fc .mark { background: linear-gradient(transparent 64%, rgba(255, 122, 26, .45) 64%); color: #fff; }

/* スマホの下に出る固定のボタン（代行開業支援）。お問い合わせの欄が見えている間は隠す */
.theme-garage .fix-cta.g-fix { background: rgba(6, 7, 9, .92); border-top: 1px solid var(--g-line); }
.theme-garage .fix-cta.g-fix .btn { padding: 13px 12px; }
.theme-garage .fix-cta.g-fix.g-hide { transform: translateY(110%); }

/* ---------- お礼・404 ---------- */
.g-center { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: max(640px, 92svh); padding: calc(var(--header-h) + 64px) 0 96px; text-align: center; }
.g-center::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 75%); }
.g-center::after { content: ""; position: absolute; left: 50%; top: 40%; z-index: -1; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, .16), transparent 65%); }
.g-center .container { max-width: 820px; }
.g-check { width: 92px; height: 92px; margin: 0 auto 28px; }
.g-check circle { fill: none; stroke: var(--g-or); stroke-width: 2; stroke-dasharray: 290; stroke-dashoffset: 0; animation: g-draw 1.2s var(--g-ease) .1s both; }
.g-check path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: square; stroke-dasharray: 60; stroke-dashoffset: 0; animation: g-draw2 .7s var(--g-ease) .8s both; }
@keyframes g-draw { from { stroke-dashoffset: 290; } }
@keyframes g-draw2 { from { stroke-dashoffset: 60; } }
.g-center h1 { margin: 0 0 24px; font-size: clamp(26px, 4.2vw, 48px); font-weight: 900; line-height: 1.35; color: #fff; animation: g-up .9s var(--g-ease) .2s both; }
.g-center .g-box { margin: 0 auto 36px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--g-line); border-radius: var(--g-r); background: rgba(16, 19, 24, .8); text-align: left; animation: g-up .9s var(--g-ease) .35s both; }
.theme-garage main .g-box p { color: var(--g-body); }
.g-box p:last-child { margin: 0; }
.g-center .btn-row { animation: g-up .9s var(--g-ease) .5s both; }
.g-404 { position: relative; width: fit-content; margin: 0 auto 10px; font: 700 clamp(120px, 30vw, 300px)/.85 var(--font-en); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .4); animation: g-fade 1.2s ease both; }
.g-404::after { content: ""; position: absolute; left: 10%; right: 10%; top: 52%; height: 2px; background: linear-gradient(90deg, transparent, var(--g-or), #fff); transform-origin: left; animation: gl-bar 1.2s var(--g-ease-io) .3s both; transform: scaleX(0); }

/* ---------- 「視差効果を減らす」: 読み込みの演出は出さず、ほかの動きもすぐ終える ---------- */
@media (prefers-reduced-motion: reduce) {
  .g-loader { display: none !important; }
  .theme-garage *, .theme-garage *::before, .theme-garage *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  .g-streaks, .g-meter.is-ticks i { display: none; }
  .g-js [data-reveal]:not(.in) .g-split .c, .g-js [data-fx="clip"]:not(.in) img { transform: none; }
  .g-js [data-fx="clip"]:not(.in)::before { transform: scaleX(0); }
  .g-js [data-reveal]:not(.in) .g-label::before, .g-js .g-label[data-reveal]:not(.in)::before { transform: none; }
  .g-js .g-stat:not(.in) .g-meter i { transform: scaleX(var(--v, 1)); }
  .g-js .g-flow::after { transform: none; }
  .g-par { transform: none !important; }
}

/* ---------- 代行開業支援: 写真を入れる・字を少し細く（2026-10-31 依頼主「画像がなくてAI感」「字が太すぎる」） ---------- */
.g-lead-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.g-lead-split .g-lead-box { margin-bottom: 0; }
.g-lead-media { border-radius: var(--g-r); overflow: hidden; aspect-ratio: 4 / 3; }
.g-lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .g-lead-split { grid-template-columns: minmax(0, 1fr); } }
.theme-garage main .g-merits li { grid-template-columns: clamp(64px, 9vw, 130px) minmax(0, 1fr) clamp(96px, 18vw, 220px); }
.g-merit-img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.g-merit-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); transition: transform .6s var(--g-ease); }
.g-merits li:hover .g-merit-img img { transform: scale(1.05); }
.g-sup-media { border-radius: var(--g-r); overflow: hidden; aspect-ratio: 21 / 8; margin-bottom: 20px; }
.g-sup-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .g-sup-media { aspect-ratio: 16 / 9; } }
body.g-fc h1, body.g-fc h2, body.g-fc h3, body.g-fc .g-sup-h { font-weight: 700 !important; }
body.g-fc .g-merits li > span:nth-child(2) { font-weight: 500; }
/* 一番上の3サイトのタブ: ほかのサイトと同じ色に */
.theme-garage .sb-in a { color: #6a6159; }
.theme-garage .sb-in a:hover { color: #16120f; }
.theme-garage .sb-in a[aria-current] { color: #16120f; }
