/* =============================================================
   unified.css — 統合案（kashinoya.co.jp 集約）オーバーレイ
   v48.css（トークン + k8- コンポーネント）を前提に読み込み、
   共通ヘッダ/フッタ/ヒーロー/事業内容/コンセプト/事例（uni-）を定義。
   中華フォント不使用・フォールバック先頭は日本語フォント（CLAUDE.md §10）。
   ============================================================= */

.uni-btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--sans); font-weight: 700; font-size: .98rem; line-height: 1; padding: .9rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, color .18s; white-space: nowrap; }
.uni-btn .k8-arr { transition: transform .2s; }
.uni-btn:hover .k8-arr { transform: translateX(3px); }
.uni-btn-primary { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(200,160,78,.32); }
.uni-btn-primary:hover { transform: translateY(-2px); background: var(--gold-deep); }
.uni-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.uni-btn-ghost:hover { border-color: var(--ink); }
.uni-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.uni-btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.uni-btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }
.uni-btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header（ブランド＋メディア横断の単一ナビ） ---------- */
.uni-header { position: sticky; top: 0; z-index: 100; background: rgba(251,250,247,.85); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.uni-header.is-scrolled { box-shadow: var(--shadow-s); }
.uni-header-inner { max-width: var(--maxw); margin: 0 auto; padding: .65rem clamp(1.1rem,4vw,2rem); display: flex; align-items: center; gap: 1.2rem; }
.uni-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.uni-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.uni-brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.uni-brand-text b { font-family: var(--en); font-weight: 800; letter-spacing: .04em; font-size: 1.02rem; }
.uni-brand-text small { font-size: .64rem; color: var(--ink-mute); }
.uni-nav { display: flex; gap: clamp(.5rem,1.6vw,1.5rem); margin-left: auto; }
.uni-nav a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); padding: .4rem .1rem; border-bottom: 2px solid transparent; }
.uni-nav a:hover { color: var(--ink); }
.uni-nav a[aria-current] { color: var(--ink); border-color: var(--gold); }
.uni-header-actions { display: flex; align-items: center; gap: .55rem; }
.uni-burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.uni-burger span { width: 20px; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.uni-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.uni-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.uni-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.uni-drawer { display: none; flex-direction: column; gap: .1rem; padding: 1rem clamp(1.1rem,4vw,2rem) 1.6rem; border-top: 1px solid var(--line); background: var(--paper); }
.uni-drawer a { padding: .85rem .2rem; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.uni-drawer a.uni-btn { border: 1.5px solid transparent; margin-top: .6rem; justify-content: center; }
.uni-drawer.is-open { display: flex; }

/* ---------- Hero ---------- */
.uni-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #0b1220, #122033 55%, #1a2c40); color: #fff; text-align: center; }
.uni-hero-bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 18% 28%, rgba(8,145,178,.30), transparent 42%),
  radial-gradient(circle at 84% 72%, rgba(200,160,78,.28), transparent 46%); }
.uni-hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000, transparent); mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000, transparent); }
.uni-hero-inner { position: relative; max-width: 960px; margin: 0 auto; padding: clamp(3.6rem,8vw,6.5rem) clamp(1.1rem,4vw,2rem); }
.uni-hero-eyebrow { display: inline-flex; align-items: center; gap: .7em; font-family: var(--en); font-weight: 700; letter-spacing: .2em; font-size: .8rem; color: var(--gold-soft); margin-bottom: 1.3rem; }
.uni-hero-eyebrow span { width: 30px; height: 1px; background: currentColor; opacity: .5; }
.uni-hero-title { font-family: var(--serif); font-size: clamp(2.1rem,5.6vw,3.9rem); font-weight: 700; line-height: 1.34; letter-spacing: .02em; }
.uni-grad-tech { background: linear-gradient(100deg, var(--tech-bright), #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uni-grad-touch { background: linear-gradient(100deg, var(--gold-soft), var(--touch-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uni-hero-lead { max-width: 40em; margin: 1.5rem auto 2.1rem; color: #cdd6e2; font-size: clamp(1rem,1.6vw,1.16rem); }
.uni-hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.uni-hero-stats { display: flex; gap: clamp(1.4rem,5vw,3.6rem); justify-content: center; margin-top: 2.8rem; padding-top: 1.9rem; border-top: 1px solid rgba(255,255,255,.14); }
.uni-hero-stats dt { font-family: var(--en); font-size: clamp(1.7rem,4vw,2.6rem); font-weight: 800; color: var(--gold-soft); line-height: 1; }
.uni-hero-stats dt span { font-size: .5em; }
.uni-hero-stats dd { margin-top: .35rem; font-size: .8rem; color: #9fb0c2; }

/* ---------- Split Hero：ふたつの入口（Tech × Touch・ポインター追従フォーカス） ---------- */
/* SEO 用 h1 は視覚的に隠す（読み上げ・検索には残す） */
.uni-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.uni-sh { position: relative; display: flex; min-height: clamp(440px, 70vh, 600px); background: #0b1220; overflow: hidden; }
.uni-sh-clip { position: absolute; width: 0; height: 0; }
.uni-sh-side { position: relative; flex: 1 1 0; display: flex; align-items: center; overflow: hidden; color: #fff; text-decoration: none;
  transition: flex-grow .5s cubic-bezier(.4,0,.2,1), opacity .35s ease, filter .35s ease; }
/* ポインターを合わせた側を拡大し、他方を減光＝そちらに焦点 */
.uni-sh-side { will-change: flex-grow; }
.uni-sh-side:hover { flex-grow: 1.4; }
.uni-sh:hover .uni-sh-side:not(:hover) { opacity: .55; filter: saturate(.7); }
.uni-sh:hover .uni-sh-side:not(:hover) .uni-sh-desc { opacity: .3; }
.uni-sh-side:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: -6px; }

.uni-sh-tech { background: linear-gradient(150deg, #0a1424, #0f2336 58%, #0b2b3a); z-index: 1; }
.uni-sh-touch { background: linear-gradient(150deg, #1b1407, #2a1d09 55%, #3a2a10); z-index: 2;
  clip-path: url(#uni-sh-curve); -webkit-clip-path: url(#uni-sh-curve); }
.uni-sh-bg { position: absolute; inset: 0; pointer-events: none; }
.uni-sh-bg-tech { background:
  radial-gradient(circle at 32% 30%, rgba(8,145,178,.42), transparent 50%),
  linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: cover, 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 38% 42%, #000, transparent); mask-image: radial-gradient(ellipse 80% 70% at 38% 42%, #000, transparent); }
.uni-sh-bg-touch { background: radial-gradient(circle at 70% 66%, rgba(200,160,78,.45), transparent 52%); }
/* 波線エッジの発光（clip でカーブした左端＝波形に沿って光る。焦点側がより明るく） */
.uni-sh-touch::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(231,200,115,.55), rgba(231,200,115,.10) 12%, transparent 20%); transition: opacity .35s ease; }
.uni-sh-tech::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 90px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(8,145,178,.34)); transition: opacity .35s ease; }
.uni-sh:hover .uni-sh-tech:not(:hover)::after, .uni-sh:hover .uni-sh-touch:not(:hover)::before { opacity: .35; }

.uni-sh-content { position: relative; z-index: 2; display: flex; flex-direction: column; max-width: 460px; padding: clamp(2.4rem,5vw,3.4rem) clamp(1.6rem,4vw,3rem); }
.uni-sh-content-left { margin-left: auto; margin-right: clamp(1rem, 4%, 5rem); align-items: flex-start; }
.uni-sh-content-right { margin-left: clamp(2rem, 9%, 7rem); align-items: flex-start; }
.uni-sh-eyebrow { display: inline-flex; align-items: center; gap: .55em; font-family: var(--en); font-weight: 700; letter-spacing: .16em; font-size: .76rem; margin-bottom: 1rem; }
.uni-sh-eyebrow-tech { color: var(--tech-bright); }
.uni-sh-eyebrow-touch { color: var(--gold-soft); }
.uni-sh-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.uni-sh-title { font-family: var(--serif); font-size: clamp(1.85rem,3.4vw,2.85rem); font-weight: 700; line-height: 1.3; letter-spacing: .01em; }
.uni-sh-desc { margin: 1.1rem 0 1.7rem; color: #cdd6e2; font-size: .98rem; line-height: 1.85; transition: opacity .35s ease; }
.uni-sh-desc b { color: #fff; font-weight: 800; }
.uni-sh-cta { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; font-size: .98rem; padding: .85rem 1.5rem; border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.uni-sh-cta .k8-arr { transition: transform .2s; }
.uni-sh-cta-tech { background: var(--tech-bright); color: #04222b; }
.uni-sh-cta-touch { background: var(--gold); color: #fff; }
.uni-sh-side:hover .uni-sh-cta { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.55); }
.uni-sh-side:hover .uni-sh-cta .k8-arr { transform: translateX(3px); }
/* 動きを抑える設定の尊重（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
  .uni-sh-side, .uni-sh-cta, .uni-sh-desc, .uni-sh-touch::before, .uni-sh-tech::after { transition: none; }
  .uni-sh-side:hover { flex-grow: 1.15; }
}

@media (max-width: 900px) {
  .uni-sh { flex-direction: column; min-height: 0; }
  .uni-sh-side { flex: 1 1 auto !important; opacity: 1 !important; filter: none !important; min-height: 320px; }
  .uni-sh-touch { clip-path: none; -webkit-clip-path: none; }
  .uni-sh-content, .uni-sh-content-left, .uni-sh-content-right { max-width: 600px; margin: 0 auto !important; }
  .uni-sh:hover .uni-sh-side:not(:hover) .uni-sh-desc { opacity: 1; }
}

/* ---------- 検索バンド（ヒーロー直下＝集客の入口） ---------- */
.uni-searchband { background: var(--ink-2); }
.uni-searchband-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.6rem,3vw,2.2rem) clamp(1.1rem,4vw,2rem); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 1.5rem; align-items: center; }
.uni-searchband-copy h2 { color: #fff; font-size: clamp(1.2rem,2.4vw,1.6rem); font-weight: 800; }
.uni-searchband-copy p { color: #9fb0c2; font-size: .9rem; margin-top: .3rem; }
.uni-searchband .k8-search { margin: 0; }

/* ---------- 事業内容 ---------- */
.uni-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.2rem; }
.uni-service { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-s); transition: transform .2s, box-shadow .2s; border-top: 4px solid var(--gold); }
.uni-service--tech { border-top-color: var(--tech-bright); }
.uni-service--touch { border-top-color: var(--gold); }
.uni-service--gov { border-top-color: var(--emerald); }
.uni-service:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.uni-service-n { font-family: var(--en); font-weight: 800; font-size: 2rem; color: var(--line); line-height: 1; }
.uni-service h3 { font-size: 1.12rem; font-weight: 800; margin: .4rem 0 .6rem; }
.uni-service p { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.uni-service-m { margin-top: 1.1rem; display: flex; align-items: baseline; gap: .5rem; }
.uni-service-m strong { font-family: var(--en); font-size: 1.4rem; color: var(--gold-deep); }
.uni-service--tech .uni-service-m strong { color: var(--tech); }
.uni-service--gov .uni-service-m strong { color: var(--emerald); }
.uni-service-m span { font-size: .78rem; color: var(--ink-mute); }

/* ---------- コンセプト ---------- */
.uni-concept { background: linear-gradient(135deg, #0b1220, #16202f 60%, #233247); color: #fff; }
.uni-concept-inner { max-width: 980px; margin: 0 auto; padding: clamp(3.4rem,6vw,5.5rem) clamp(1.1rem,4vw,2rem); text-align: center; }
.uni-c-eyebrow { display: inline-flex; align-items: center; gap: .7em; justify-content: center; font-family: var(--en); font-weight: 700; letter-spacing: .18em; font-size: .8rem; color: var(--gold-soft); margin-bottom: 1rem; }
.uni-c-eyebrow span { width: 30px; height: 1px; background: currentColor; opacity: .5; }
.uni-concept h2 { font-family: var(--serif); font-size: clamp(1.6rem,3.6vw,2.4rem); font-weight: 700; }
.uni-c-lead { max-width: 40em; margin: 1.1rem auto 0; color: #cdd6e2; }
.uni-fusion { display: flex; align-items: stretch; justify-content: center; gap: 1.2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.uni-fcard { flex: 1 1 300px; max-width: 400px; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 1.6rem; border-top: 4px solid; }
.uni-fcard--tech { border-top-color: var(--tech-bright); }
.uni-fcard--touch { border-top-color: var(--gold); }
.uni-fcard > span { font-family: var(--en); font-weight: 800; letter-spacing: .1em; font-size: .8rem; color: var(--gold-soft); }
.uni-fcard strong { display: block; font-size: 1.2rem; margin: .25rem 0 .9rem; }
.uni-fcard ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.uni-fcard li { position: relative; padding-left: 1.5rem; color: #cdd6e2; font-size: .92rem; }
.uni-fcard li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; }
.uni-fcard--tech li::before { background: var(--tech-bright); }
.uni-fcard--touch li::before { background: var(--gold-soft); }
.uni-fx { display: grid; place-items: center; font-family: var(--en); font-size: 2.4rem; font-weight: 300; color: rgba(255,255,255,.5); }

/* ---------- 事例 ---------- */
.uni-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.4rem; }
.uni-case { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .2s, box-shadow .2s; }
.uni-case:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.uni-case-v { aspect-ratio: 16/9; display: grid; place-items: center; }
.uni-case--1 .uni-case-v { background: linear-gradient(135deg, #0f172a, #0891b2); }
.uni-case--2 .uni-case-v { background: linear-gradient(135deg, #1e293b, #22d3ee); }
.uni-case--3 .uni-case-v { background: linear-gradient(135deg, #064e3b, #047857); }
.uni-case-v span { font-family: var(--en); font-weight: 800; font-size: 2rem; color: #fff; }
.uni-case-v small { font-size: .5em; }
.uni-case-np { font-size: 1.1rem !important; }
.uni-case-b { padding: 1.3rem 1.5rem 1.5rem; }
.uni-case-tag { font-size: .76rem; color: var(--ink-mute); font-weight: 600; }
.uni-case-b h3 { font-size: 1.08rem; margin: .5rem 0 1rem; }
.uni-case-sub { display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; font-weight: 700; color: var(--gold-deep); }

/* ---------- Footer ---------- */
.uni-footer { background: var(--ink); color: #aab8c8; margin-top: auto; }
.uni-footer-top { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.6rem,5vw,3.6rem) clamp(1.1rem,4vw,2rem) 2rem; display: grid; grid-template-columns: 1.4fr 2fr; gap: 2.5rem; }
.uni-footer-brand .uni-brand { color: #fff; }
.uni-footer-brand .uni-mark { background: #1d2940; }
.uni-footer-brand p { margin: 1rem 0; font-size: .9rem; max-width: 30em; }
.uni-footer-info { display: flex; flex-direction: column; gap: .4rem; font-size: .84rem; }
.uni-footer-info div { display: flex; gap: .8rem; }
.uni-footer-info dt { color: var(--gold-soft); width: 56px; flex: none; }
.uni-footer-info dd { margin: 0; }
.uni-footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.uni-footer-cols h2 { font-family: var(--en); font-size: .78rem; letter-spacing: .1em; color: var(--gold-soft); margin-bottom: .9rem; }
.uni-footer-cols a { display: block; padding: .32rem 0; font-size: .88rem; color: #aab8c8; }
.uni-footer-cols a:hover { color: #fff; }
.uni-footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 1.2rem clamp(1.1rem,4vw,2rem); border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: #8b9bad; }

@media (max-width: 900px) {
  .uni-nav, .uni-header-actions { display: none; }
  .uni-burger { display: flex; }
  .uni-searchband-inner, .uni-footer-top { grid-template-columns: 1fr; }
  .uni-fx { transform: rotate(90deg); }
}
