/* ============================================================
   LOCAL VENTURE GROUP — site styles
   Plain HTML/CSS (no build step, no framework).
   Breakpoints: mobile <768 / tablet >=768 (md) / desktop >=1280 (lg)
   Source of truth: Figma 改修2026
   ============================================================ */

:root {
  /* ---- colors ---- */
  --page: #fcfaf5;        /* warm off-white page bg */
  --ink: #111111;         /* logo text + hamburger lines */
  --primary: #2a2622;     /* headings, logo, pills, dark surface */
  --secondary: #5f574c;   /* body copy, nav, hero wordmark */
  --muted: #a89d8c;       /* muted text on DARK surfaces */
  --subtle: #767064;      /* muted text on LIGHT bg (WCAG AA ~4.7:1) */
  --surface: #2a2622;     /* business cards + mobile menu + dark hero */
  --hairline: #ede7db;    /* section dividers */
  --divider: #e6dece;     /* note list-row hairlines */
  --edge: #e1e1e1;        /* header bottom border */
  --consulting: #2e9bff;    /* consulting accent + page-hero eyebrow & pulse dot */
  --academy: #ff5c5c;
  --product: #ffd23f;
  --cream: #f8f4ec;         /* 小面アクセント: 事例ロゴタイル + タグチップ */

  /* ---- fonts ---- */
  --jp: "Noto Sans JP", system-ui, sans-serif;
  --latin: "Inter", system-ui, sans-serif;

  /* ---- layout ---- */
  --maxw: 1440px;
  --gutter: 24px;           /* page side padding (responsive — see below) */

  /* ---- spacing scale (余白 / gap / padding-block / margin) ---- */
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-72: 72px;
  --space-80: 80px;
  --space-88: 88px;
  --space-96: 96px;
  --space-120: 120px;
  --space-140: 140px;
  --space-160: 160px;
  --space-180: 180px;
  --space-200: 200px;
}

/* page gutter grows with the viewport */
@media (min-width: 768px) { :root { --gutter: 48px; } }
@media (min-width: 1280px) { :root { --gutter: 80px; } }

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

html { -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--primary);
  font-family: var(--jp);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { width: 100%; background: var(--page); }

.hairline { width: 100%; height: 1px; background: var(--hairline); }

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  top: var(--space-16);
  left: var(--space-16);
  z-index: 100;
  background: var(--primary);
  color: var(--page);
  padding: var(--space-8) var(--space-16);
  border-radius: 4px;
  font-family: var(--jp);
  font-size: 14px;
}

.eyebrow {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--subtle);
}
.eyebrow--note { font-size: 11px; letter-spacing: 0.16em; }

.heading {
  font-family: var(--jp);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--primary);
}
.heading--note { font-size: 32px; letter-spacing: 0; line-height: 1.2; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--page);
  border-bottom: 1px solid var(--edge);
}
.header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--space-16) var(--space-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-desktop { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 2px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
}

/* ---------- mobile menu (CSS-only) ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  height: 100dvh;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  padding: var(--space-20) var(--space-24) var(--space-40);
  overflow: clip;
}
.menu-toggle:checked ~ .mobile-menu { display: flex; }
html:has(.menu-toggle:checked) { overflow: hidden; }

.mobile-menu__bar {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo--light { color: var(--page); }

.menu-close {
  position: relative;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.8px;
  border-radius: 1px;
  background: var(--page);
}
.menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu__nav {
  margin-top: var(--space-40);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
}
.mobile-menu__nav a {
  width: 100%;
  padding: var(--space-10) 0;
  font-family: var(--latin);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--page);
  white-space: nowrap;
}

/* ---------- hero (P01) ---------- */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: var(--space-56);
}
.hero { overflow: hidden; }
.hero__title {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 48px;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--secondary);
  word-break: break-word;
}
.hero__title span { display: block; }
.hero__lead {
  max-width: 760px;
  font-family: var(--jp);
  font-weight: 400;
  font-size: 14px;
  line-height: 2.4;
  color: var(--secondary);
}

/* ---------- business ---------- */
.business .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
  padding-block: var(--space-96);
}
.section-head { display: flex; flex-direction: column; gap: var(--space-12); }

.bento {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
  min-height: 280px;
  padding: var(--space-24);
  border-radius: 12px;
  background: var(--surface);
}
.card__eyebrow {
  position: relative;
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.28em;
}
.card--consulting .card__eyebrow { color: var(--consulting); }
.card--academy .card__eyebrow { color: var(--academy); }
.card--product .card__eyebrow { color: var(--product); }

.card__title {
  position: relative;
  font-family: var(--jp);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--page);
}
.card__desc {
  position: relative;
  font-family: var(--jp);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.card__link {
  position: relative;
  margin-top: auto;
  font-family: var(--latin);
  font-weight: 500;
  font-size: 11px;
  line-height: 2.1;
  color: var(--consulting);
  white-space: pre;
}
.card__link:hover { opacity: 0.7; }

/* decorative concentric rings (recreated from Figma "ill-pulse"),
   clipped to the card so the card grows freely with text */
.card__rings {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 12px;
}
.card__rings > * {
  position: absolute;
  bottom: -48px;
  right: -48px;
  border-radius: 50%;
}
.ring { border: 1px solid rgba(255, 255, 255, 0.1); }
.ring--1 { width: 180px; height: 180px; }
.ring--2 { width: 135px; height: 135px; bottom: -25px; right: -25px; }
.ring--3 { width: 90px; height: 90px; bottom: -2px; right: -2px; }
.dot { width: 14px; height: 14px; bottom: 36px; right: 36px; }
.card--consulting .dot { background: var(--consulting); }
.card--academy .dot { background: var(--academy); }
.card--product .dot { background: var(--product); }

/* ---------- note ---------- */
.note .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-40);
  padding-block: var(--space-56);
}
.note__head {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-16);
}
.note__head-left { display: flex; flex-direction: column; gap: var(--space-16); }
.note__all {
  flex-shrink: 0;
  font-family: var(--jp);
  font-weight: 500;
  font-size: 14px;
  color: var(--secondary);
  white-space: pre;
}
.note__all:hover { opacity: 0.6; }

.article-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider);
}
.article {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding-block: var(--space-24);
  border-bottom: 1px solid var(--divider);
}
.article__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.article__cat {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--subtle);
}
.article__titlerow {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  width: 100%;
}
.article__title {
  flex: 1;
  min-width: 0;
  font-family: var(--jp);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--primary);
  word-break: break-word;
}
.article__view {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--primary);
  white-space: nowrap;
}
.article__view--pill { display: none; }

.article__thumb {
  flex-shrink: 0;
  width: 100px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
}
.article__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.footer { width: 100%; background: var(--page); }
.footer .container { padding-block: var(--space-96) var(--space-48); }
.copyright {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 10px;
  line-height: 2.1;
  letter-spacing: 0.16em;
  color: var(--subtle);
  white-space: nowrap;
}

/* ---------- placeholder (stub) pages ---------- */
.page-stub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  padding-block: var(--space-96);
}
.page-stub p {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 2;
  color: var(--secondary);
}

/* ============================================================
   Tablet — md (>=768px)
   ============================================================ */
@media (min-width: 768px) {
  .header__inner { height: 64px; padding: 0 var(--space-32); }
  .logo { font-size: 10px; letter-spacing: 0.28em; color: var(--primary); }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-32);
  }
  .nav-desktop a {
    font-family: var(--latin);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--secondary);
  }
  .nav-desktop a:hover { opacity: 0.6; }
  .hamburger { display: none; }

  .hero .container { padding-block: var(--space-96); }
  .hero__title { font-size: 90px; }

  .card { min-height: 300px; padding: var(--space-40); }

  .article { gap: var(--space-48); padding-block: var(--space-32); }
  .article__titlerow { gap: var(--space-24); }
  .article__title { font-size: 20px; line-height: 1.45; }
  .article__thumb { width: 240px; height: 135px; border-radius: 8px; }
}

/* ============================================================
   Desktop — lg (>=1280px)
   ============================================================ */
@media (min-width: 1280px) {
  .hero__title { font-size: 170px; }

  .bento { grid-template-columns: repeat(3, 1fr); }
  .card { min-height: 360px; padding: var(--space-56); }
  .card__rings > * { bottom: -48px; right: -48px; }
  .ring--1 { width: 220px; height: 220px; }
  .ring--2 { width: 165px; height: 165px; bottom: -20px; right: -20px; }
  .ring--3 { width: 110px; height: 110px; bottom: 8px; right: 8px; }
  .dot { width: 16px; height: 16px; bottom: 52px; right: 52px; }

  .article { gap: var(--space-48); padding-block: var(--space-36); }
  .article__titlerow { gap: var(--space-40); }
  .article__title { font-size: 26px; line-height: 1.45; }

  /* desktop: View Details becomes a pill */
  .article__view--text { display: none; }
  .article__view--pill {
    display: inline-flex;
    flex-shrink: 0;
    border: 1px solid var(--primary);
    border-radius: 999px;
    padding: 10px 22px;
    transition: background-color 0.2s, color 0.2s;
  }
  .article:hover .article__view--pill { background: var(--primary); color: var(--page); }
}

/* ============================================================
   P02 /consulting (and other inner pages)
   ============================================================ */
html { scroll-behavior: smooth; }

/* ---------- page hero (dark band) ---------- */
.page-hero { width: 100%; background: var(--surface); overflow: hidden; }
.page-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  padding-block: var(--space-56) var(--space-72);
}
.page-hero__eyebrow {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--consulting);
  white-space: nowrap;
}
.page-hero__title {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--page);
}
.page-hero__lead {
  max-width: 720px;
  margin-top: var(--space-8);
  font-family: var(--jp);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.page-hero__pulse { display: none; }

/* ---------- scope ---------- */
.scope { width: 100%; background: var(--page); }
.scope__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-24);
  padding-block: var(--space-72);
}
.scope__intro-text {
  max-width: 720px;
  font-family: var(--jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--secondary);
}
.scope__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-40);
  padding-block: 0 var(--space-80);
}
.scope-row { display: flex; flex-direction: column; gap: var(--space-16); width: 100%; }
.scope-row__head { display: flex; flex-direction: column; gap: var(--space-8); }
.scope-row__num {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--subtle);
}
.scope-row__title {
  font-family: var(--jp);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  color: var(--primary);
}
.scope-row__body { display: flex; flex-direction: column; gap: var(--space-24); }
.scope-row__body p {
  font-family: var(--jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--secondary);
}
.scope-tags { display: flex; flex-wrap: wrap; gap: var(--space-12) var(--space-8); padding-top: var(--space-8); }
.scope-tag {
  background: var(--cream);
  padding: var(--space-8) 14px;
  border-radius: 6px;
  font-family: var(--jp);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--secondary);
}
.scope-row__divider { width: 100%; height: 1px; background: var(--divider); }

/* ---------- filter tabs (P02) ---------- */
/* ===== unified filter tabs (P02 consulting + P07 note) — 全ページ共通 =====
   モバイル/タブレット = ピル（P07 /note 基準）/ デスクトップ(>=1280) = プレーン文字。
   スクロール時に画面下部へ追従（sticky bottom）。 */
.p02-filter,
.filter-bar {
  width: 100%;
  background: var(--page);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
/* スクロール中だけ画面下部に固定（site.js が .is-fixed を付与） */
.p02-filter.is-fixed,
.filter-bar.is-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
}
.p02-filter__inner,
.filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-12);
  padding-block: var(--space-12);
}
.p02-filter__tab,
.filter-tab {
  font-family: var(--jp);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--primary);
  white-space: nowrap;
  cursor: pointer;
  background: var(--cream);
  padding: var(--space-8) var(--space-16);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.p02-filter__tab:hover,
.filter-tab:hover { background: var(--surface); color: var(--page); }
#f-all:checked ~ .filter-bar [for="f-all"],
#f-consul:checked ~ .filter-bar [for="f-consul"],
#f-startup:checked ~ .filter-bar [for="f-startup"],
#f-product:checked ~ .filter-bar [for="f-product"],
#f-news:checked ~ .filter-bar [for="f-news"] { background: var(--surface); color: var(--page); font-weight: 500; }
@media (min-width: 1280px) {
  .p02-filter__inner,
  .filter-bar__inner { gap: var(--space-32); padding-block: var(--space-24); }
  .p02-filter__tab,
  .filter-tab { background: transparent; padding: 0; border-radius: 0; color: var(--subtle); font-weight: 500; }
  .p02-filter__tab:hover,
  .filter-tab:hover { background: transparent; color: var(--primary); }
  #f-all:checked ~ .filter-bar [for="f-all"],
  #f-consul:checked ~ .filter-bar [for="f-consul"],
  #f-startup:checked ~ .filter-bar [for="f-startup"],
  #f-product:checked ~ .filter-bar [for="f-product"],
  #f-news:checked ~ .filter-bar [for="f-news"] { background: transparent; color: var(--primary); }
}

/* ---------- works grids (cases + creative) ---------- */
.works { width: 100%; background: var(--page); scroll-margin-top: 72px; }
.works .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-40);
  padding-block: var(--space-80);
}
.work-grid { width: 100%; display: grid; grid-template-columns: 1fr; gap: var(--space-40) var(--space-32); }
.works__count { margin: var(--space-48) 0 0; font-family: var(--latin); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; color: var(--subtle); }
.work-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); }
.work-card__tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
}
.work-card__tile--photo { border-radius: 4px; background: transparent; }
.work-card__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card__tag {
  font-family: var(--jp);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--subtle);
}
.work-card__title {
  font-family: var(--jp);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--primary);
}
.works__all { width: 100%; display: flex; justify-content: center; padding-top: var(--space-8); }
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 13px var(--space-32);
  font-family: var(--jp);
  font-weight: 500;
  font-size: 14px;
  color: var(--primary);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.pill:hover { background: var(--primary); color: var(--page); }

/* ---------- P02 tablet (>=768) ---------- */
@media (min-width: 768px) {
  .page-hero__inner { padding-block: var(--space-96) var(--space-120); gap: var(--space-16); }
  .page-hero__title { font-size: 56px; }
  .page-hero__lead { font-size: 16px; }
  .page-hero__pulse {
    display: block;
    position: absolute;
    top: 8px;
    right: 0;
    width: 220px;
    height: 220px;
    pointer-events: none;
  }
  .page-hero__pulse .ring {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    bottom: auto; right: auto;
    border: 1px solid rgba(252, 250, 245, 0.08);
    border-radius: 50%;
  }
  .page-hero__pulse .ring--1 { width: 220px; height: 220px; }
  .page-hero__pulse .ring--2 { width: 150px; height: 150px; }
  .page-hero__pulse .ring--3 { width: 80px; height: 80px; }
  .page-hero__pulse .dot {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    bottom: auto; right: auto;
    width: 18px; height: 18px; border-radius: 50%; background: var(--consulting);
  }

  .scope__intro { padding-block: var(--space-120); gap: var(--space-24); }
  .scope__intro-text { font-size: 16px; line-height: 1.8; }
  .scope__list { gap: var(--space-48); padding-block: 0 var(--space-96); }
  .scope-row { flex-direction: row; gap: var(--space-48); align-items: flex-start; }
  .scope-row__head { flex: 0 0 200px; }
  .scope-row__title { font-size: 28px; line-height: 1.5; }
  .scope-row__body { flex: 1; min-width: 0; }
  .scope-row__body p { font-size: 16px; }
  .scope-tag { font-size: 14px; }

  .works .container { gap: var(--space-56); padding-block: var(--space-120); }
  .work-grid { grid-template-columns: 1fr 1fr; gap: var(--space-48) var(--space-32); }
}

/* ---------- P02 desktop (>=1280) ---------- */
@media (min-width: 1280px) {
  .page-hero__inner { padding-block: var(--space-120) var(--space-160); }
  .page-hero__title { font-size: 80px; line-height: 1.35; }
  .page-hero__pulse { top: 24px; }

  .scope__intro { padding-block: var(--space-180); }
  .scope__list { gap: var(--space-56); padding-block: 0 var(--space-120); }
  .scope-row { gap: var(--space-80); }
  .scope-row__head { flex: 0 0 400px; }
  .scope-row__title { font-size: 32px; }

  .works .container { gap: var(--space-80); padding-block: var(--space-160); }
  .work-grid { gap: var(--space-56) var(--space-32); }
}

/* ============================================================
   P07 /note + P08 /about (inner pages, light heroes)
   ============================================================ */

/* ---------- light page-hero variant ---------- */
.page-hero--light { background: var(--page); }
.page-hero--light .page-hero__eyebrow { color: var(--subtle); }
.page-hero--light .page-hero__title { color: var(--primary); }
.page-hero--light .page-hero__lead { color: var(--secondary); }

/* ---------- P07 note filter (CSS-only category filter) ---------- */
.note-list { width: 100%; background: var(--page); }
.note-filter__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* .filter-bar / .filter-tab / active styles are unified above with .p02-filter (see "unified filter tabs") */
/* category filtering */
#f-consul:checked ~ .note-list__body .article:not(.cat-consul),
#f-startup:checked ~ .note-list__body .article:not(.cat-startup),
#f-product:checked ~ .note-list__body .article:not(.cat-product),
#f-news:checked ~ .note-list__body .article { display: none; }
.note-empty { display: none; padding-block: var(--space-40); font-family: var(--jp); font-size: 14px; color: var(--subtle); }
#f-news:checked ~ .note-list__body .note-empty,
#f-product:checked ~ .note-list__body .note-empty { display: block; }

.note-list__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-28); padding-block: var(--space-56); }
.article-count {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--subtle);
}

/* ---------- P08 about two-column sections (PURPOSE / VISION) ---------- */
.about-section { width: 100%; background: var(--page); }
.about-section .container { display: flex; flex-direction: column; gap: var(--space-24); padding-block: var(--space-72); }
.about-section__eyebrow-col { flex: 0 0 auto; }
.about-section__content { display: flex; flex-direction: column; gap: var(--space-24); min-width: 0; }
.about-section__heading {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.about-section__body {
  max-width: 760px;
  font-family: var(--jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--secondary);
}

/* ---------- P08 brand (dark message) ---------- */
.brand { width: 100%; background: var(--surface); }
.brand .container { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-40); padding-block: var(--space-88); }
.brand__head { display: flex; flex-direction: column; gap: var(--space-16); }
.brand__eyebrow {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--page);
}
.brand__heading { font-family: var(--jp); font-weight: 500; font-size: 24px; line-height: 1.5; color: #ffffff; }
.brand__body { display: flex; flex-direction: column; gap: var(--space-24); max-width: 720px; }
.brand__body p {
  font-family: var(--jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.brand__closing {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* ---------- P08 profile (会社情報 table) ---------- */
.profile { width: 100%; background: var(--page); }
.profile .container { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-40); padding-block: var(--space-88); }
.profile__head { display: flex; flex-direction: column; gap: var(--space-16); }
.profile-table { width: 100%; max-width: 1080px; display: flex; flex-direction: column; }
.profile-row { display: flex; flex-direction: column; gap: var(--space-6); padding-block: var(--space-20); }
.profile-row__label {
  font-family: var(--jp);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--subtle);
}
.profile-row__value {
  font-family: var(--jp);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--primary);
}

/* ---------- inner pages: tablet (>=768) ---------- */
@media (min-width: 768px) {
  .note-list__body { gap: var(--space-28); padding-block: var(--space-64); }

  .about-section .container { flex-direction: row; gap: var(--space-48); padding-block: var(--space-96); }
  .about-section__eyebrow-col { flex: 0 0 200px; }
  .about-section__content { flex: 1; }
  .about-section__heading { font-size: 40px; }
  .about-section__body { font-size: 16px; }

  .brand .container { gap: var(--space-64); padding-block: var(--space-140); }
  .brand__heading { font-size: 28px; }
  .brand__body p { font-size: 16px; }
  .brand__closing { font-size: 40px; }

  .profile .container { gap: var(--space-56); padding-block: var(--space-140); }
  .profile-row { flex-direction: row; gap: var(--space-48); padding-block: var(--space-24); }
  .profile-row__label { flex: 0 0 160px; }
  .profile-row__value { flex: 1; font-size: 15px; }
}

/* ---------- inner pages: desktop (>=1280) ---------- */
@media (min-width: 1280px) {
  .about-section .container { gap: var(--space-80); padding-block: var(--space-120); }
  .about-section__eyebrow-col { flex: 0 0 280px; }
  .about-section__heading { font-size: 56px; }

  .brand .container { gap: var(--space-80); padding-block: var(--space-200); }
  .brand__heading { font-size: 32px; }
  .brand__closing { font-size: 56px; }

  .profile .container { padding-block: var(--space-160); }
  .profile-row { gap: var(--space-80); }
  .profile-row__label { flex: 0 0 180px; }
}

/* ---------- P07b article detail (note post) ----------
   本文以外（タイトル・前後ナビ・戻る）= .container 幅 / アイキャッチ = 全幅(前面) / 本文 = 読み列 */
.post { width: 100%; background: var(--page); }
.post__lead { padding-block: var(--space-56) var(--space-40); }
.post__header { display: flex; flex-direction: column; gap: var(--space-12); }
.post__cat { font-family: var(--latin); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: 0.16em; color: var(--subtle); }
.post__title { font-family: var(--jp); font-weight: 700; font-size: 28px; line-height: 1.5; letter-spacing: -0.01em; color: var(--primary); }
.post__eyecatch { width: 100%; overflow: hidden; }
.post__eyecatch img { width: 100%; height: auto; display: block; }
.post__main { padding-block: var(--space-56) var(--space-120); }
.post__body { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-24); }
.post__body p { font-family: var(--jp); font-weight: 400; font-size: 16px; line-height: 2; letter-spacing: 0.02em; color: var(--secondary); }
.post__body h2 { font-family: var(--jp); font-weight: 700; font-size: 20px; line-height: 1.6; letter-spacing: -0.01em; color: var(--primary); margin-top: var(--space-20); }
.post__body ul { display: flex; flex-direction: column; gap: var(--space-8); padding-left: 1.4em; margin: 0; }
.post__body li { font-family: var(--jp); font-weight: 400; font-size: 16px; line-height: 1.9; color: var(--secondary); list-style: disc; }
.post__note { font-family: var(--jp); font-size: 13px; line-height: 1.8; color: var(--subtle); padding-left: var(--space-16); border-left: 2px solid var(--divider); }
/* prev/next article nav = container width */
.post-nav { margin-top: var(--space-72); }
.post-nav .article-list { width: 100%; }
.post__back { margin-top: var(--space-40); }
.post__back a { font-family: var(--jp); font-weight: 500; font-size: 14px; color: var(--secondary); }
.post__back a:hover { opacity: 0.6; }
@media (min-width: 768px) {
  .post__lead { padding-block: var(--space-72) var(--space-48); }
  .post__main { padding-block: var(--space-72) var(--space-140); }
  .post__title { font-size: 36px; }
  .post__body h2 { font-size: 22px; }
}
@media (min-width: 1280px) {
  .post__title { font-size: 44px; }
}

/* ---------- P03b creative case detail (/consulting/case/<id>/) ----------
   本文以外 = .container 幅 / アイキャッチ = 全幅 / コラージュ = 個別画像のCSSグリッド
   セル比はページごとに --cell-ar で指定（Figmaのセル寸法に合わせる） */
.case { width: 100%; background: var(--page); }
.case__lead { padding-block: var(--space-56) var(--space-40); }
.case__header { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-16); }
.case__cat { font-family: var(--latin); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: 0.16em; color: var(--subtle); }
.case__title { font-family: var(--jp); font-weight: 700; font-size: 28px; line-height: 1.4; letter-spacing: -0.01em; color: var(--primary); }
.case__meta { display: flex; flex-wrap: wrap; gap: var(--space-40); margin: var(--space-8) 0 0; }
.case__meta > div { display: flex; flex-direction: column; gap: var(--space-6); }
.case__meta dt { font-family: var(--latin); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: 0.16em; color: var(--subtle); }
.case__meta dd { margin: 0; font-family: var(--jp); font-weight: 400; font-size: 14px; color: var(--primary); }
.case__prize-pill { display: inline-flex; align-items: center; gap: var(--space-8); font-family: var(--jp); font-weight: 500; font-size: 13px; line-height: 1; color: #6e5526; background: #fbf3e1; border: 1px solid #cba86a; border-radius: 999px; padding: var(--space-8) var(--space-16); }
.case__prize-ico { width: 14px; height: 14px; flex: none; color: #b08d57; }
.case__eyecatch { width: 100%; overflow: hidden; }
.case__eyecatch img { width: 100%; height: auto; display: block; }
.case__eyecatch video { width: 100%; height: auto; display: block; background: #000; }
.case__main { padding-block: var(--space-56) var(--space-120); }
.case__collage { display: grid; grid-template-columns: 1fr; gap: var(--space-16); }
.case__collage figure { margin: 0; border-radius: 4px; overflow: hidden; background: var(--cream); aspect-ratio: var(--cell-ar, 16 / 9); }
.case__collage figure.full { grid-column: 1 / -1; }
.case__collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case__back { margin-top: var(--space-56); }
.case__back a { font-family: var(--jp); font-weight: 500; font-size: 14px; color: var(--secondary); }
.case__back a:hover { opacity: 0.6; }
@media (min-width: 768px) {
  .case__collage { grid-template-columns: 1fr 1fr; }
  .case__title { font-size: 36px; }
  .case__lead { padding-block: var(--space-72) var(--space-48); }
  .case__main { padding-block: var(--space-72) var(--space-140); }
}
@media (min-width: 1280px) { .case__title { font-size: 44px; } }

/* ---------- P03a project case detail (/consulting/cases/<slug>/) ----------
   本文 = PROBLEM / APPROACH / SOLUTION の3ブロック（左:ラベル+小見出し / 右:本文） */
.case__study { display: flex; flex-direction: column; gap: var(--space-48); }
.case__study-row { display: grid; grid-template-columns: 1fr; gap: var(--space-16); align-items: start; }
.case__study-head { display: flex; flex-direction: column; gap: var(--space-12); }
.case__study-label { font-family: var(--latin); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: 0.16em; color: var(--subtle); }
.case__study-title { font-family: var(--jp); font-weight: 700; font-size: 24px; line-height: 1.4; letter-spacing: -0.01em; color: var(--primary); }
.case__study-body { margin: 0; font-family: var(--jp); font-weight: 400; font-size: 15px; line-height: 1.9; color: var(--secondary); }
@media (min-width: 768px) {
  .case__study { gap: var(--space-64); }
  .case__study-row { grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-48); }
  .case__study-title { font-size: 28px; }
}

/* ============================================================
   Motion — scroll reveal / KV title / page transition
   統一感のある上品な演出。.js（JS有効）時のみ適用＝FOUC防止。
   prefers-reduced-motion: reduce では一切動かさない。
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* スクロールで自然に出現：フェード＋軽いスライドアップ＋ぼかし解除 */
  .js .section-head,
  .js .hero__lead,
  .js .page-hero__eyebrow,
  .js .page-hero__title,
  .js .page-hero__lead,
  .js .card,
  .js .work-card,
  .js .scope-row,
  .js .about-section,
  .js .brand,
  .js .profile,
  .js .case__eyecatch,
  .js .case__study-row,
  .js .case__collage > figure,
  .js .article,
  .js .post__header,
  .js .post__eyecatch,
  .js .post__body {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
    transition: opacity .9s cubic-bezier(.22, .61, .36, 1),
                transform .9s cubic-bezier(.22, .61, .36, 1),
                filter .9s ease;
  }
  .js .section-head.in-view,
  .js .hero__lead.in-view,
  .js .page-hero__eyebrow.in-view,
  .js .page-hero__title.in-view,
  .js .page-hero__lead.in-view,
  .js .card.in-view,
  .js .work-card.in-view,
  .js .scope-row.in-view,
  .js .about-section.in-view,
  .js .brand.in-view,
  .js .profile.in-view,
  .js .case__eyecatch.in-view,
  .js .case__study-row.in-view,
  .js .case__collage > figure.in-view,
  .js .article.in-view,
  .js .post__header.in-view,
  .js .post__eyecatch.in-view,
  .js .post__body.in-view {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }

  /* TOP KV：GROW / TOGETHER — ぼかし→鮮明・ふわっと浮上・左から順に */
  .js .hero__title:not(.kv-ready) { opacity: 0; }
  .js .hero__title.kv-ready .kv-char {
    display: inline-block;
    opacity: 0;
    filter: blur(14px);
    transform: translateY(0.36em);
    animation: kvCharIn 1s cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: calc(var(--i, 0) * 55ms + 120ms);
  }
  @keyframes kvCharIn {
    to { opacity: 1; filter: blur(0); transform: none; }
  }
}

/* ページ遷移（TOP → Consulting）：ブランドブルーが画面を覆う／めくれる */
.page-transition {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--consulting, #2e9bff);
  transform: translateY(100%);
  pointer-events: none;
}
.page-transition.is-cover {
  transform: translateY(0);
  transition: transform .62s cubic-bezier(.76, 0, .24, 1);
}
html.pt-incoming::before {
  content: ""; position: fixed; inset: 0; z-index: 99999;
  background: var(--consulting, #2e9bff);
  transform: translateY(0);
  pointer-events: none;
}
html.pt-incoming.pt-reveal::before {
  transform: translateY(-100%);
  transition: transform .72s cubic-bezier(.76, 0, .24, 1);
}
@media (prefers-reduced-motion: reduce) {
  html.pt-incoming::before { display: none; }
}

/* BUSINESS カードの点：常時ループ。外側の円（最外ライン付近）から光の粒が
   ふわっと現れ、円のラインに沿うゆるいカーブで中心へ吸い寄せられる → 中心で軽く
   止まり、フェードアウトして初期位置から繰り返す（scale 0→1・ぼかし→鮮明・ポワーン）。
   中心＝点の定位置（既存 bottom/right、不変）。ループの切れ目は opacity 0 中に位置リセット。 */
@media (prefers-reduced-motion: no-preference) {
  .card--consulting .dot { animation: dotOrbitBL  3.4s cubic-bezier(.4, .1, .25, 1) infinite; }  /* 左下から */
  .card--academy .dot    { animation: dotOrbitTL  3.4s cubic-bezier(.4, .1, .25, 1) infinite; }  /* 左上から */
  .card--product .dot    { animation: dotOrbitTop 3.6s cubic-bezier(.4, .1, .25, 1) infinite; }  /* 上から */

  /* 左下（外側）→ 中心。y が一度上に膨らむゆるい弧 */
  @keyframes dotOrbitBL {
    0%   { opacity: 0; transform: translate(-82px, 30px)  scale(0);   filter: blur(6px); }
    12%  { opacity: 1; transform: translate(-80px, 26px)  scale(.3);  filter: blur(6px); }
    38%  { opacity: 1; transform: translate(-66px, 6px)   scale(.55); filter: blur(3px); }
    60%  { opacity: 1; transform: translate(-34px, -8px)  scale(.82); filter: blur(1px); }
    74%  { opacity: 1; transform: translate(0, 0)         scale(1);   filter: blur(0); }
    82%  { opacity: 1; transform: translate(0, 0)         scale(1);   filter: blur(0); }
    96%  { opacity: 0; transform: translate(0, 0)         scale(1);   filter: blur(0); }
    100% { opacity: 0; transform: translate(0, 0)         scale(1);   filter: blur(0); }
  }
  /* 左上（外側）→ 中心。y が一度下に膨らむゆるい弧 */
  @keyframes dotOrbitTL {
    0%   { opacity: 0; transform: translate(-78px, -42px) scale(0);   filter: blur(6px); }
    12%  { opacity: 1; transform: translate(-76px, -38px) scale(.3);  filter: blur(6px); }
    38%  { opacity: 1; transform: translate(-62px, -14px) scale(.55); filter: blur(3px); }
    60%  { opacity: 1; transform: translate(-30px, 4px)   scale(.82); filter: blur(1px); }
    74%  { opacity: 1; transform: translate(0, 0)         scale(1);   filter: blur(0); }
    82%  { opacity: 1; transform: translate(0, 0)         scale(1);   filter: blur(0); }
    96%  { opacity: 0; transform: translate(0, 0)         scale(1);   filter: blur(0); }
    100% { opacity: 0; transform: translate(0, 0)         scale(1);   filter: blur(0); }
  }
  /* 上（外側）→ 中心。x が一度左に膨らむゆるい弧（縦に降りてくる） */
  @keyframes dotOrbitTop {
    0%   { opacity: 0; transform: translate(-12px, -86px) scale(0);   filter: blur(6px); }
    12%  { opacity: 1; transform: translate(-14px, -82px) scale(.3);  filter: blur(6px); }
    38%  { opacity: 1; transform: translate(-30px, -52px) scale(.55); filter: blur(3px); }
    60%  { opacity: 1; transform: translate(-22px, -22px) scale(.82); filter: blur(1px); }
    74%  { opacity: 1; transform: translate(0, 0)         scale(1);   filter: blur(0); }
    82%  { opacity: 1; transform: translate(0, 0)         scale(1);   filter: blur(0); }
    96%  { opacity: 0; transform: translate(0, 0)         scale(1);   filter: blur(0); }
    100% { opacity: 0; transform: translate(0, 0)         scale(1);   filter: blur(0); }
  }
}

/* ============================================================
   ヘッダー：CONSULTING にホバー/フォーカスで CASES・CREATIVE ドロップダウン。
   header は明るいテーマなので明色カードで表示。nav-desktop 配下＝デスクトップのみ。
   ============================================================ */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item--drop > a { display: inline-flex; align-items: center; gap: 7px; }
.nav-item--drop > a::after {
  content: ""; width: 5px; height: 5px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .45;
  transition: transform .28s ease, opacity .28s ease;
}
.nav-item--drop:hover > a::after,
.nav-item--drop:focus-within > a::after { opacity: .85; transform: translateY(0) rotate(45deg); }

.nav-sub {
  position: absolute; top: 100%; left: 50%; margin-top: 20px;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  min-width: 172px; padding: var(--space-8) 0;
  background: var(--page);
  border: 1px solid rgba(42, 38, 34, 0.06);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(42, 38, 34, 0.07);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
}
.nav-sub::before {   /* ホバーの橋渡し（透明）：リンク〜サブメニュー間で hover が切れないように */
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px;
}
.nav-item--drop:hover .nav-sub,
.nav-item--drop:focus-within .nav-sub {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-sub a {
  width: 100%; padding: var(--space-8) var(--space-24);
  white-space: nowrap; color: var(--secondary);
}
/* ホバーは上のナビと同じ挙動（opacity 0.6・背景色なし）。
   .nav-desktop a:hover { opacity: 0.6 } がサブリンクにも適用される */

@media (prefers-reduced-motion: no-preference) {
  .nav-sub { transform: translateX(-50%) translateY(-6px);
             transition: opacity .28s ease, transform .28s cubic-bezier(.22, .61, .36, 1), visibility .28s; }
  .nav-item--drop:hover .nav-sub,
  .nav-item--drop:focus-within .nav-sub { transform: translateX(-50%) translateY(0); }
}

/* モバイルメニュー：CONSULTING 配下に CASES・CREATIVE をサブ表示（ホバー不可のため常時） */
.mobile-menu__nav a.mobile-menu__sub {
  padding-left: var(--space-24);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
