/* =========================================================
   Design Future — site styles
   ========================================================= */

:root {
  --ink: #0f1b2d;
  --ink-2: #3a4658;
  --ink-3: #6b7686;
  --line: #e3e7ed;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-deep: #0f1b2d;
  --accent: #1f5fd6;
  --accent-ink: #1747a3;
  --accent-soft: #eaf1fd;

  /* 事業ごとの識別色（小さな面積でのみ使用） */
  --c-video: #e0533b;
  --c-design: #e09a1f;
  --c-system: #1a9a8a;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-ja: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-en: "Inter", var(--font-ja);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; letter-spacing: .03em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { height: 30px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-size: 10px; color: var(--ink-3); letter-spacing: .08em; }
.logo-text strong { font-family: var(--font-en); font-size: 18px; font-weight: 600; letter-spacing: .01em; }

.global-nav ul { display: flex; align-items: center; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.global-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.global-nav a[aria-current="page"] { color: var(--accent); }
.global-nav .nav-cta a {
  margin-left: 8px; background: var(--accent); color: #fff; padding: 9px 20px;
}
.global-nav .nav-cta a:hover { background: var(--accent-ink); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  padding: 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle span {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  /* ヘッダーの backdrop-filter が fixed の基準になるため、ヘッダー基準で全画面に広げる */
  .global-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 72px); background: #fff;
    border-top: 1px solid var(--line);
    padding: 16px var(--gutter) 40px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    overflow-y: auto;
  }
  .nav-open .global-nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav a { padding: 18px 4px; border-radius: 0; font-size: 16px; color: var(--ink); }
  .global-nav a:hover { background: none; }
  .global-nav .nav-cta { border: 0; margin-top: 24px; }
  .global-nav .nav-cta a { margin: 0; text-align: center; border-radius: 999px; padding: 16px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .04em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn::after { content: "→"; font-family: var(--font-en); transition: transform .2s; }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent-soft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Section basics ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-soft { background: var(--bg-soft); }

/* ---------- B. 背景のメリハリ：色つきセクションは角丸のパネルにして区切りを明確に ---------- */
.section-soft, .section-dark {
  border-radius: clamp(28px, 5vw, 64px);
  margin-inline: clamp(0px, 1.2vw, 16px);
}
.section-dark { background: var(--bg-deep); color: #fff; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; right: -160px; top: -160px; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(31, 95, 214, .35), transparent 70%);
  pointer-events: none;
}
.section-dark > .container { position: relative; }
.section-dark .eyebrow { color: #7fa6ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark .section-head p, .section-dark .split p { color: #c6cfdc; }
.section-dark .group-statement { color: #fff !important; }
.section-dark .clients-caption { color: #9fb3d6; }
.section-dark .clients-caption::after { background: rgba(255, 255, 255, .15); }
.section-dark .client-grid li { border-color: transparent; }
.section-dark .group-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.section-dark .group-card::after { display: none; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }

/* ---------- A. 番号つきセクション見出し ---------- */
/* main 内の見出しラベルに 01, 02… を自動採番（ページ先頭のヒーローは除く） */
main { counter-reset: sec; }
main .eyebrow { counter-increment: sec; }
.page-hero .eyebrow { counter-increment: none; }

main :is(.section-head, .split, .philosophy) .eyebrow {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
}
main :is(.section-head, .split, .philosophy) .eyebrow::before {
  content: counter(sec, decimal-leading-zero);
  width: auto; height: auto; background: none;
  font-size: clamp(40px, 5vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -.02em;
}
/* 見出し番号の下に伸びる線 */
main :is(.section-head, .split, .philosophy) .eyebrow::after {
  content: ""; flex: 0 0 100%; height: 2px; margin-top: 10px;
  background: linear-gradient(currentColor, currentColor) no-repeat left / 0 100%;
  transition: background-size .9s cubic-bezier(.2, .7, .2, 1) .2s;
}
main .is-visible .eyebrow::after { background-size: 56px 100%; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { background-position: center; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin-top: 14px; }
.section-head p { margin-top: 18px; color: var(--ink-2); }

.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); }

/* ---------- Hero (top) ---------- */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: var(--bg-soft);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tag.video i { background: var(--c-video); }
.tag.design i { background: var(--c-design); }
.tag.system i { background: var(--c-system); }

.hero h1 {
  font-size: clamp(32px, 5vw, 56px); line-height: 1.32; letter-spacing: .02em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 24px; max-width: 34em; }
.hero .btn-row { margin-top: 36px; }

.hero-visual {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 22px;
  background:
    radial-gradient(circle at 80% 15%, rgba(31, 95, 214, .12), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(26, 154, 138, .12), transparent 45%),
    var(--bg-soft);
  overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15, 27, 45, .08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.hv-card {
  position: absolute; background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: 0 2px 4px rgba(15, 27, 45, .04), 0 16px 40px rgba(15, 27, 45, .12);
  animation: hv-float 6s ease-in-out infinite;
}
.hv-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  color: var(--ink-2); margin-bottom: 10px;
}
.hv-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hv-tag.video::before { background: var(--c-video); }
.hv-tag.design::before { background: var(--c-design); }
.hv-tag.system::before { background: var(--c-system); }

.hv-live { left: 7%; top: 8%; width: 58%; }
.hv-live .live-mock { width: 100%; box-shadow: none; }
.hv-web { right: 6%; top: 30%; width: 38%; animation-delay: -2s; }
.hv-web-body .mock-row:first-child { margin-top: 0; }
.hv-web-img {
  margin-top: 10px; aspect-ratio: 16 / 9; border-radius: 6px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-design) 35%, #fff), color-mix(in srgb, var(--c-video) 20%, #fff));
}
.hv-sys { left: 14%; bottom: 7%; width: 46%; animation-delay: -4s; }
.hv-sys .mock-grid { margin-top: 0; }
@keyframes hv-float { 50% { transform: translateY(-6px); } }
@media (max-width: 560px) {
  .hero-visual { aspect-ratio: 1 / 1 !important; }
  .hv-live { left: 5%; top: 6%; width: 64%; }
  .hv-web { right: 5%; top: 34%; width: 42%; }
  .hv-sys { left: 7%; bottom: 5%; width: 50%; }
  .hv-card { padding: 10px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4 / 3.2; }
}

/* ---------- Stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 28px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-en); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1; letter-spacing: -.01em;
}
.stat-num small { font-size: .5em; margin-left: 2px; font-weight: 600; }
.stat-label { margin-top: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.stats-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat { padding: 22px 16px; }
}

/* ---------- Service pillars ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px 32px; color: var(--ink);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.pillar::before {
  content: ""; position: absolute; left: 32px; top: 0; width: 48px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--pc, var(--accent));
}
.pillar.video { --pc: var(--c-video); }
.pillar.design { --pc: var(--c-design); }
.pillar.system { --pc: var(--c-system); }

.pillar-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--pc) 10%, #fff); color: var(--pc);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-en {
  margin-top: 24px; font-family: var(--font-en); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; color: var(--pc); text-transform: uppercase;
}
.pillar h3 { font-size: 22px; margin-top: 6px; }
.pillar p { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.pillar ul { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.pillar li {
  font-size: 12.5px; padding: 4px 10px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2);
}
.pillar-more {
  margin-top: auto; padding-top: 28px; font-weight: 700; font-size: 14px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.pillar-more::after { content: "→"; font-family: var(--font-en); transition: transform .2s; }
.pillar:hover .pillar-more::after { transform: translateX(4px); }

@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Feature list (strengths) ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: feat; }
.feature { padding: 8px 32px 8px 0; counter-increment: feat; }
.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line); }
.feature::before {
  content: "POINT " counter(feat);
  display: block; font-family: var(--font-en); font-weight: 600; font-size: 14px;
  color: var(--accent); letter-spacing: .1em;
}
.feature h3 { font-size: 20px; margin-top: 14px; }
.feature p { margin-top: 14px; color: var(--ink-2); font-size: 15px; }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; gap: 32px; }
  .feature, .feature + .feature { padding: 0; border: 0; }
  .feature + .feature { padding-top: 32px; border-top: 1px solid var(--line); }
}

/* ---------- Works ---------- */

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work {
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.work-visual {
  aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative;
  background: var(--bg-soft); overflow: hidden;
}
.work-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.work-cat {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--pc, var(--accent));
}
.work.video { --pc: var(--c-video); }
.work.design { --pc: var(--c-design); }
.work.system { --pc: var(--c-system); }
.work h3 { font-size: 18px; margin-top: 6px; }
.work p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.work-link { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 700; }

@media (max-width: 960px) { .works { grid-template-columns: 1fr; } }

/* 実績カードの簡易ビジュアル（写真差し替えまでの図版） */
.mock {
  width: 78%; background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  padding: 14px; font-size: 11px; color: var(--ink-2);
}
.mock-bar { display: flex; gap: 5px; margin-bottom: 10px; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.mock-row { height: 8px; border-radius: 4px; background: var(--bg-soft); margin-top: 7px; }
.mock-row.w60 { width: 60%; }
.mock-row.w80 { width: 80%; }
.mock-row.accent { background: color-mix(in srgb, var(--pc) 30%, #fff); width: 40%; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.mock-grid span { aspect-ratio: 1.4; border-radius: 6px; background: var(--bg-soft); }
.mock-grid span:first-child { background: color-mix(in srgb, var(--pc) 22%, #fff); }

.live-mock {
  width: 78%; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--bg-deep);
  position: relative; box-shadow: var(--shadow); overflow: hidden;
}
.live-mock::before {
  content: "LIVE"; position: absolute; left: 10px; top: 10px; font-family: var(--font-en);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #fff;
  background: #e0533b; padding: 2px 8px; border-radius: 4px;
}
.live-mock::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  border-left: 18px solid rgba(255, 255, 255, .9); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  transform: translate(-35%, -50%);
}
.live-mock .pip {
  position: absolute; right: 10px; bottom: 10px; width: 28%; aspect-ratio: 16/9;
  border-radius: 4px; background: #33415a; border: 1.5px solid rgba(255,255,255,.5);
}

/* ---------- Flow ---------- */

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow-step {
  position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); counter-increment: step;
}
.flow-step::before {
  content: "STEP " counter(step, decimal-leading-zero);
  font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--accent);
}
.flow-step h3 { font-size: 17px; margin-top: 10px; }
.flow-step p { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.flow-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) { .flow, .flow-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow, .flow-3 { grid-template-columns: 1fr; } }

/* ---------- Split (text + aside) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 { font-size: clamp(24px, 3.2vw, 34px); margin-top: 14px; }
.split p { margin-top: 18px; color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.group-card {
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  background: var(--bg-deep); color: #fff;
  position: relative; overflow: hidden;
}
.group-card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(31, 95, 214, .55), transparent 70%);
}
a.group-card { display: block; transition: transform .25s, box-shadow .25s; }
a.group-card:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 27, 45, .25); }
.group-card .group-card-text { margin-top: 14px; color: #c6cfdc; position: relative; z-index: 1; }
.group-card-more { display: inline-block; margin-top: 28px; font-weight: 700; font-size: 14px; position: relative; z-index: 1; }
.group-statement { font-weight: 500; color: var(--ink) !important; }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.group-card .label { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; color: #9fb3d6; }
.group-card h3 { font-size: 22px; margin-top: 8px; }
.group-card dl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 28px 0 0; position: relative; z-index: 1; }
.group-card dt { font-size: 12px; color: #9fb3d6; }
.group-card dd { margin: 4px 0 0; font-family: var(--font-en); font-size: 28px; font-weight: 600; }
.group-card dd small { font-size: 14px; }
@media (max-width: 480px) { .group-card dl { grid-template-columns: 1fr 1fr; } }

/* ---------- TVer band ---------- */

.tver-band {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  padding: clamp(32px, 5vw, 56px); border-radius: 22px;
  background: var(--bg-deep); color: #fff; position: relative; overflow: hidden;
}
.tver-band::after {
  content: ""; position: absolute; right: -100px; top: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(31, 95, 214, .5), transparent 70%);
}
.tver-band > * { position: relative; z-index: 1; }
.tver-band .label { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; color: #9fb3d6; }
.tver-band h2 { font-size: clamp(22px, 3vw, 32px); margin-top: 10px; }
.tver-band p { margin-top: 14px; color: #c6cfdc; max-width: 36em; }
.tver-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 28px 0 0; }
.tver-facts dt { font-size: 12px; color: #9fb3d6; }
.tver-facts dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.tver-facts dd small { font-size: 12px; font-weight: 400; color: #9fb3d6; }
@media (max-width: 760px) { .tver-band { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */

.cta {
  background: var(--accent); color: #fff; border-radius: 22px;
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07);
}
.cta h2 { font-size: clamp(24px, 3.2vw, 34px); }
.cta p { margin-top: 14px; color: rgba(255, 255, 255, .85); }
.cta .btn-row { justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; }
  .cta .btn-row { justify-content: flex-start; }
}

/* ---------- Page header (sub pages) ---------- */

.page-hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero.video { --pc: var(--c-video); }
.page-hero.design { --pc: var(--c-design); }
.page-hero.system { --pc: var(--c-system); }
.page-hero .eyebrow { color: var(--pc, var(--accent)); }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 50px); margin-top: 16px; line-height: 1.35; }
.page-hero .lead { margin-top: 20px; max-width: 40em; }
.page-hero .btn-row { margin-top: 32px; }

.breadcrumb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 28px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-3); }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); }
.plan-badge {
  align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  background: var(--bg-soft); color: var(--ink-2);
}
.plan.featured .plan-badge { background: var(--ink); color: #fff; }
.plan h3 { font-size: 19px; margin-top: 14px; }
.plan-price {
  margin-top: 16px; font-family: var(--font-en); font-weight: 600; font-size: 38px;
  letter-spacing: -.01em; line-height: 1.1;
}
.plan-price small { font-family: var(--font-ja); font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.plan ul { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.plan-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.price-table th, .price-table td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 700; width: 40%; }
.price-table td.num { font-family: var(--font-en); font-weight: 600; text-align: right; white-space: nowrap; }
.price-table td small { display: block; font-family: var(--font-ja); font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 560px) {
  .price-table th, .price-table td { padding: 14px 16px; font-size: 14px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; background: #fff; color: var(--ink-2);
}

.note-box {
  border-radius: var(--radius-sm); background: var(--bg-soft); padding: 20px 24px;
  font-size: 14px; color: var(--ink-2);
}
.note-box p + p { margin-top: 6px; }

/* ---------- Cards (generic) ---------- */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
}
.card-num { font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--pc, var(--accent)); letter-spacing: .1em; }
.card h3 { font-size: 19px; margin-top: 8px; }
.card p { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.card ul.dots { margin-top: 16px; display: grid; gap: 6px; }
.card ul.dots li { position: relative; padding-left: 16px; font-size: 14px; color: var(--ink-2); }
.card ul.dots li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--pc, var(--accent)); }
.theme-video { --pc: var(--c-video); }
.theme-design { --pc: var(--c-design); }
.theme-system { --pc: var(--c-system); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .cards, .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Live types ---------- */

.live-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.live-type { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.live-type svg { width: 100%; height: 64px; color: var(--c-video); }
.live-type h3 { font-size: 16px; margin-top: 16px; }
.live-type p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.7; }
@media (max-width: 900px) { .live-types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .live-types { grid-template-columns: 1fr; } }

.voice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.voice blockquote {
  margin: 0; padding: 24px 24px 24px 56px; position: relative; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); font-weight: 500;
}
.voice blockquote::before {
  content: "“"; position: absolute; left: 20px; top: 8px; font-family: Georgia, serif;
  font-size: 48px; color: var(--accent); line-height: 1;
}
@media (max-width: 860px) { .voice { grid-template-columns: 1fr; } }

/* ---------- System showcase ---------- */

.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: #fff; border: 1px solid var(--line);
}
.showcase + .showcase { margin-top: 24px; }
.showcase-visual {
  border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 4 / 3;
  display: grid; place-items: center; --pc: var(--c-system);
}
.showcase h3 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 8px; }
.showcase p { margin-top: 14px; color: var(--ink-2); }
.showcase .chips { margin-top: 20px; }
.showcase .chip { font-size: 13px; padding: 6px 12px; }
.showcase .btn-row { margin-top: 28px; }
.showcase-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }

/* ---------- Company table ---------- */

.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 200px; font-weight: 700; color: var(--ink); padding-right: 24px; }
.info-table td { color: var(--ink-2); }
@media (max-width: 640px) {
  .info-table th, .info-table td { display: block; width: auto; }
  .info-table th { padding: 20px 0 4px; border: 0; font-size: 13px; color: var(--ink-3); }
  .info-table td { padding: 0 0 20px; }
}

.map {
  margin-top: 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
}
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }

.philosophy {
  text-align: center; padding: clamp(40px, 6vw, 72px) var(--gutter);
  border-radius: 22px; background: var(--bg-soft);
}
.philosophy h2 { font-size: clamp(26px, 4vw, 40px); margin-top: 18px; }
.philosophy .sub { margin-top: 10px; font-weight: 500; color: var(--ink-2); }
.philosophy p.body { max-width: 40em; margin: 24px auto 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Forms ---------- */

.form-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.form { display: grid; gap: 22px; }
.field label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.req { font-size: 11px; font-weight: 700; color: #fff; background: var(--c-video); padding: 1px 8px; border-radius: 4px; }
.opt { font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--bg-soft); padding: 1px 8px; border-radius: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-group label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.check-group input { accent-color: var(--accent); }
.check-group label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); }
.agree input { margin-top: 6px; accent-color: var(--accent); }

.form-notice {
  font-size: 13px; color: var(--ink-2); background: #fff7ed; border: 1px solid #fbe3c4;
  border-radius: var(--radius-sm); padding: 14px 18px;
}
.form-status { font-size: 14px; font-weight: 500; }
.form-status.ok { color: var(--c-system); }
.form-status.err { color: var(--c-video); }

.contact-aside { display: grid; gap: 16px; }
.contact-aside .card h3 { font-size: 17px; }
.contact-aside .card p { font-size: 14px; }

/* ---------- Prose (policy) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h2:first-of-type { margin-top: 40px; }
.prose p, .prose ul { margin-top: 14px; color: var(--ink-2); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 4px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-deep); color: #c6cfdc; padding: 72px 0 32px; margin-top: clamp(72px, 10vw, 128px); }
.site-footer a { color: #c6cfdc; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-text small { color: #9fb3d6; }
.footer-brand p { margin-top: 18px; font-size: 13.5px; line-height: 1.9; }
.footer-col h4 { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; color: #fff; text-transform: uppercase; }
.footer-col ul { margin-top: 16px; display: grid; gap: 10px; font-size: 14px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #8b97aa;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- C. 中の要素を時間差で表示（--i は main.js が設定） ---------- */
.stagger > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(var(--i, 0) * 80ms + 150ms);
}
.is-visible.stagger > *, .is-visible .stagger > * { opacity: 1; transform: none; }
.reveal { transition-delay: var(--rd, 0ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  .eyebrow::after { transition: none; }
  .hv-card { animation: none; }
}

/* ---------- Utilities ---------- */

.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 56px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* ---------- Clients (group) ---------- */

.clients { margin-top: clamp(48px, 6vw, 72px); }
.clients-caption {
  font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em;
  display: flex; align-items: center; gap: 16px;
}
.clients-caption::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.client-grid {
  margin-top: 24px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.client-grid li {
  position: relative; background: #fff; border-radius: var(--radius-sm); aspect-ratio: 4 / 3;
  overflow: hidden; border: 1px solid var(--line);
}
/* 元画像は正方形でロゴが中央にあるため、上下の余白だけを切り落として表示 */
.client-grid img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply; /* 画像のわずかなグレー背景を白になじませる */
}
@media (max-width: 960px) { .client-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .client-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* ハニーポット欄：画面外に配置して人には見せない（display:none だと見抜くボットがいるため） */
.hp-field {
  position: absolute !important; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none;
}

/* ---------- Site works (design page) ---------- */

.site-work {
  display: flex; flex-direction: column; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.site-work:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.site-work-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.site-work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.site-work:hover .site-work-shot img { transform: scale(1.03); }
.site-work-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.site-work .work-cat { color: var(--c-design); }
.site-work h3 { font-size: 19px; margin-top: 6px; }
.site-work p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.site-work-url { margin-top: auto; padding-top: 18px; font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- Movie (限定公開ページ) ---------- */

.movie-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.movie { margin: 0; }
.movie-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-deep); }
.movie-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.movie figcaption { margin-top: 12px; font-weight: 700; font-size: 15px; }
@media (max-width: 760px) { .movie-grid { grid-template-columns: 1fr; } }
