/* =========================================================
   TAKEz corporate site — styles
   配色・書体・余白はすべて :root のトークンで管理
   ========================================================= */

:root {
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --white: #ffffff;
  --ink: #1a1c1f;
  --ink-2: #33373d;
  --muted: #5a5f67;
  --line: #d4cdc0;
  --line-soft: #e2dcd1;
  --accent: #b0401a;       /* 朱。紙色上の文字でも 4.5:1 以上 */
  --accent-soft: #f3e1d6;
  --dark: #17191c;
  --dark-2: #22262b;
  --on-dark: #f2efe9;
  --on-dark-muted: #b3b8bf;
  --accent-on-dark: #f08a5d;

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1200px;
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 64px;
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; }

/* 見出しは文節単位で折り返す */
.phrase { display: inline-block; }
.nw { white-space: nowrap; }
@media (max-width: 359px) { .nw { white-space: normal; } }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
p { text-wrap: pretty; }

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

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

.u-sr {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-pc { display: none; }
@media (min-width: 900px) { .u-pc { display: inline; } }

.note {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- skip link / review bar ---------- */
.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.review-bar {
  background: var(--dark);
  color: var(--on-dark);
  font-size: 0.8125rem;
  line-height: 1.6;
  padding: 8px var(--gutter);
  text-align: center;
}
.review-bar__tag {
  display: inline-block;
  border: 1px solid var(--accent-on-dark);
  color: var(--accent-on-dark);
  font-weight: 700;
  padding: 0 8px;
  margin-right: 10px;
  border-radius: 2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.94);
  border-bottom: 1px solid var(--line-soft);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(245, 242, 236, 0.86); backdrop-filter: blur(8px); }
}
.site-header__inner {
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__logo { display: block; flex: none; padding: 6px 0; }
.site-header__logo img { width: auto; height: 34px; }

.menu-button {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}
.menu-button__icon { position: relative; width: 18px; height: 12px; }
.menu-button__icon span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.menu-button__icon span:first-child { top: 1px; }
.menu-button__icon span:last-child { top: 9px; }
.menu-button[aria-expanded="true"] .menu-button__icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__icon span:last-child { top: 5px; transform: rotate(-45deg); }

.global-nav ul { display: flex; align-items: center; gap: 4px; }
.global-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.global-nav a:hover { color: var(--accent); }
.global-nav__cta a {
  margin-left: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
}
.global-nav__cta a:hover { background: var(--accent); color: var(--white); }

@media (max-width: 1023px) {
  .js .menu-button { display: inline-flex; }
  .global-nav { font-size: 1rem; }
  /* JS 有効時のみ開閉式。JS 無効時は下に折り返して常時表示 */
  .no-js .site-header__inner { flex-wrap: wrap; padding-bottom: 8px; }
  .no-js .global-nav ul { flex-wrap: wrap; }
  .js .global-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0,0,0,.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .global-nav.is-open { display: block; }
  .js .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .js .global-nav li { border-bottom: 1px solid var(--line-soft); }
  .js .global-nav a { padding: 14px 4px; font-size: 1.0625rem; }
  .js .global-nav__cta { border-bottom: 0 !important; padding-top: 16px; }
  .js .global-nav__cta a { margin: 0; text-align: center; padding: 14px 20px; }
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.4;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button--primary { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.button--primary:hover { background: var(--accent); border-color: var(--accent); }
.button--ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.button--ghost:hover { background: var(--ink); color: var(--white); }
.button--primary::after { content: "↓"; font-weight: 400; }

/* ---------- section head ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.section-head__label span {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--muted);
  border-right: 1px solid var(--line);
  padding-right: 12px;
  letter-spacing: 0.04em;
}
.section-head__title {
  font-size: clamp(1.625rem, 3.2vw, 2.5rem);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.section-head__lead {
  margin-top: 20px;
  color: var(--ink-2);
}
.section-head--invert .section-head__label,
.section-head__label--invert { color: var(--accent-on-dark); }
.section-head--invert .section-head__label span,
.section-head__label--invert span { color: var(--on-dark-muted); border-color: #454a51; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "photo" "meta";
  gap: 28px;
}
.hero__text { grid-area: text; }
.hero__photo { grid-area: photo; }
.hero__meta { grid-area: meta; }

.hero__eyebrow {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 36em;
}
.hero__lead strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__photo { position: relative; margin: 0 calc(var(--gutter) * -1); }
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 52% 30%;
}
.hero__photo figcaption {
  position: absolute;
  left: var(--gutter); bottom: 0;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 14px 0 0;
}

.hero__stance { color: var(--ink-2); }
.hero__stance strong { color: var(--ink); }
.hero__facts {
  margin-top: 24px;
  border-top: 1px solid var(--ink);
}
.hero__facts > div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.hero__facts dt { color: var(--muted); font-weight: 600; }
.hero__facts dd { font-weight: 600; }
.hero__facts dd span { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas: "text photo" "meta photo";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 80px);
    row-gap: 36px;
  }
  .hero__photo { margin: 0; align-self: stretch; }
  .hero__photo img {
    height: 100%;
    min-height: 520px;
    aspect-ratio: auto;
    object-position: 50% 30%;
    border-radius: var(--radius);
  }
  .hero__photo figcaption { left: 0; padding: 8px 16px 0 0; }
  .hero__meta { align-self: end; }
}

/* =========================================================
   STANCE
   ========================================================= */
.stance { background: var(--white); border-top: 1px solid var(--line-soft); }
.stance__body {
  display: grid;
  gap: 48px;
}
.principles { counter-reset: p; border-top: 1px solid var(--ink); }
.principles li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 2.4em 1fr;
  column-gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.principles li::before {
  content: counter(p, decimal-leading-zero);
  grid-row: span 2;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  font-size: 1.0625rem;
}
.principles h3 { font-size: 1.1875rem; line-height: 1.6; font-weight: 700; }
.principles p { margin-top: 6px; color: var(--ink-2); }

.stance__aside { align-self: start; }

/* ピクトグラム（線画）：墨色の線＋朱のアクセント */
.picto {
  width: 44px; height: 44px; flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.picto .a { stroke: var(--accent); }
.picto .af { fill: var(--accent); stroke: none; }
.picto .w { fill: var(--white); }

.method {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 8px;
}
.method__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.method__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}
.method__steps li + li { border-top: 1px dashed var(--line); }
.method__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px; bottom: -6px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent);
  z-index: 1;
}
.method__name { font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.method__name span {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ink); color: var(--white);
  font-size: 0.8125rem;
  vertical-align: 2px;
}
.method__steps p:not(.method__name) { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-2); margin-top: 2px; }

.stance__quote {
  margin-top: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.stance__quote p {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.6;
  font-weight: 700;
}
.stance__cite { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }

@media (min-width: 900px) {
  .stance__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(48px, 6vw, 96px); }
  .stance__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* =========================================================
   SERVICES
   ========================================================= */
.service-list { border-top: 2px solid var(--ink); }
.service {
  display: grid;
  gap: 24px;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
}
.service__num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.service__head h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  word-break: keep-all;
  line-height: 1.4;
  margin-top: 4px;
}
.service__summary { margin-top: 10px; color: var(--ink-2); }

.service__grid { display: grid; gap: 20px; }
.service__grid dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.service__grid dd { line-height: 1.8; }
.service__grid ul li {
  position: relative;
  padding-left: 1.1em;
  line-height: 1.75;
  margin-bottom: 4px;
}
.service__grid ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.78em;
  width: 6px; height: 6px; background: var(--accent);
}

.flow { display: grid; gap: 10px; counter-reset: none; }
.flow li {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.flow__step {
  grid-row: span 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.9375rem;
}
.flow strong { font-size: 1.0625rem; line-height: 1.5; }
.flow li > span:last-child { font-size: 0.9375rem; line-height: 1.65; color: var(--ink-2); }

@media (min-width: 900px) {
  .service { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
  .service__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .service--coord .service__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service--coord .service__what { grid-column: 1 / -1; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .flow li {
    position: relative;
    grid-template-columns: 1fr;
    border-radius: 0;
    padding: 16px 20px 18px;
    border-left-width: 0;
  }
  .flow li:first-child { border-left-width: 1px; border-radius: var(--radius) 0 0 var(--radius); }
  .flow li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
  .flow li:not(:last-child)::after {
    content: "";
    position: absolute; right: -9px; top: 22px;
    width: 16px; height: 16px;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    transform: rotate(45deg);
    z-index: 1;
  }
  .flow__step { grid-row: auto; margin-bottom: 10px; }
}

/* =========================================================
   ENGAGEMENT
   ========================================================= */
.engagement { background: var(--paper-2); }
.engagement__grid { display: grid; gap: 8px; }
.engagement .section-head { margin-bottom: 32px; }
.modes { display: grid; gap: 12px; }
.modes li {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  padding: 20px 22px;
}
.modes h3 { font-size: 1.1875rem; line-height: 1.5; display: flex; gap: 12px; align-items: baseline; }
.modes__num { font-size: 0.875rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.modes p { margin-top: 6px; color: var(--ink-2); }

@media (min-width: 900px) {
  .engagement__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .engagement .section-head { margin-bottom: 0; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* =========================================================
   CASES
   ========================================================= */
.case {
  display: grid;
  gap: 20px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case__num {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.case__client { font-weight: 700; font-size: 1.0625rem; margin-top: 4px; line-height: 1.6; }
.case__client span { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.case__client .case__owner { display: block; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.case__tags li {
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 3px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
}
.case__role { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.case__logo { margin-top: 20px; width: 220px; max-width: 100%; height: auto; }
.case__logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin-top: 18px;
}
.case__logos img { height: 22px; width: auto; }
.case__logos li:nth-child(5) img { height: 24px; }
.case__logos li:nth-child(2) img { height: 18px; }

.case__title {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.5;
  font-weight: 700;
}
.case__steps { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.case__steps > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.case__steps dt {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--muted);
}
.case__now dt { color: var(--accent); }
.case__main > .note { margin-top: 14px; }

.case--feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 32px 22px;
  margin-bottom: 8px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.case--feature + .case { border-top: 0; }
.case--feature .case__title { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }

.figures { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.figure { display: flex; flex-direction: column; }
.figure__label { font-size: 0.875rem; color: var(--muted); font-weight: 600; line-height: 1.5; }
.figure__value {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.figure__value small { font-size: 0.42em; font-weight: 700; margin-left: 2px; }
.case__now .note { margin-top: 10px; }
.case__link { margin-top: 14px; }

@media (min-width: 900px) {
  .case { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: 48px 0; }
  .case--feature { padding: 48px clamp(32px, 4vw, 56px); }
  .case__steps > div { grid-template-columns: 6em 1fr; gap: 16px; }
}

/* =========================================================
   NETWORK (dark)
   ========================================================= */
.network { background: var(--dark); color: var(--on-dark); }
.network .section-head__title { color: var(--on-dark); }
.network__grid { display: grid; gap: 8px; }
.network__body > p { color: #d9d6cf; }
.network__body > p + p { margin-top: 16px; }

.network__diagram {
  margin: 36px 0;
  display: grid;
  gap: 10px;
}
.node {
  border: 1px solid #454a51;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column;
  text-align: center;
  position: relative;
}
.node__label { font-weight: 700; font-size: 1.0625rem; line-height: 1.5; }
.node__sub { font-size: 0.875rem; color: var(--on-dark-muted); line-height: 1.6; margin-top: 4px; }
.node--takez { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.node--takez .node__label { font-size: 1.25rem; letter-spacing: 0.06em; }
.node--takez .node__sub { color: var(--ink-2); }
.node:not(:last-child)::after {
  content: "↕";
  position: absolute;
  left: 50%; bottom: -17px;
  transform: translateX(-50%);
  color: var(--accent-on-dark);
  font-size: 1rem;
  line-height: 1;
  background: var(--dark);
  padding: 2px 4px;
  z-index: 1;
}
.network__motto {
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  line-height: 1.7;
  font-weight: 700;
  color: var(--on-dark) !important;
  border-left: 3px solid var(--accent-on-dark);
  padding-left: 18px;
}

@media (min-width: 900px) {
  .network__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); }
  .network .section-head { margin-bottom: 0; }
  .network__diagram { grid-template-columns: 1fr 1.2fr 1fr; gap: 24px; align-items: stretch; }
  .node { justify-content: center; }
  .node:not(:last-child)::after { content: "⇄"; left: auto; right: -21px; bottom: auto; top: 50%; transform: translateY(-50%); }
}

/* =========================================================
   FOUNDER
   ========================================================= */
.founder { background: var(--white); }
.founder__grid { display: grid; gap: 36px; }
.founder__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% 22%;
  border-radius: var(--radius);
}
.founder__name {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.founder__name span {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 6px;
}
.founder__title { margin-top: 10px; font-weight: 600; color: var(--ink-2); }
.founder__statement {
  margin: 28px 0 24px;
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  line-height: 1.7;
  font-weight: 700;
  padding: 20px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.founder__body > p:not([class]) + p:not([class]) { margin-top: 16px; }
.founder__body > p:not([class]) { color: var(--ink-2); }

.career__title {
  margin-top: 48px;
  font-size: 1.25rem;
  line-height: 1.5;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
}
.career__title span { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.career { margin-top: 16px; border-top: 1px solid var(--ink); }
.career li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.career__year { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9375rem; line-height: 1.7; }
/* ロゴ列を固定幅にし、社名と説明文の書き出し位置を全行でそろえる */
.career__body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}
.career__org { display: contents; }
.career__logo { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; height: 100%; }
/* ロゴは見た目の面積がそろうよう個別に幅を指定（--cw）し、欄の中央に置く */
.career__logo img { width: var(--cw, 72px); height: auto; max-width: 100%; }
.career__name { grid-column: 2; font-weight: 700; line-height: 1.6; }
.career__body > p:not(.career__org) { grid-column: 2; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.75; }

/* 現在（TAKEz）の行：色だけに頼らず、面・太線・ラベルで区別する */
.career li.career__now {
  margin-top: 12px;
  /* 太線＋余白の分だけ左へ張り出し、社名の書き出し位置を他の行とそろえる */
  margin-left: -20px;
  padding: 18px 16px 18px 16px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-bottom: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.career__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--white);
  background: var(--accent);
  border-radius: 2px;
  vertical-align: 1px;
}
.career__now .career__name { font-size: 1.125rem; }
.career__now .career__body > p:not(.career__org) { color: var(--ink); }
@media (min-width: 600px) {
  .career li { grid-template-columns: 6.2em 1fr; gap: 12px; align-items: center; }
  .career__body { grid-template-columns: 96px minmax(0, 1fr); }
  
}
.founder__body > .note { margin-top: 12px; }

@media (min-width: 900px) {
  .founder__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .founder__photo { position: sticky; top: calc(var(--header-h) + 32px); }
  .founder__photo img { aspect-ratio: 4 / 5; object-position: 62% 20%; }
}

/* =========================================================
   SPEAKING
   ========================================================= */
.speaking__grid { display: grid; gap: 36px; }
.topics {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.topics__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.topics__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  margin-top: 20px;
  border: 1px solid var(--line-soft);
}
.topics__grid li {
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 8px 18px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}
.topics__grid .picto { width: 48px; height: 48px; }
.topics__take {
  margin-top: 20px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
}
.topics__take span { display: block; font-size: 0.875rem; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.talks { border-top: 1px solid var(--ink); }
.talk { padding: 24px 0; border-bottom: 1px solid var(--line); }
.talk__when { font-size: 0.9375rem; font-weight: 700; color: var(--accent); line-height: 1.6; }
.talk__when strong { font-size: 1.125rem; margin-left: 2px; }
.talk__title { font-size: 1.25rem; line-height: 1.55; margin-top: 6px; }
.talk__title span { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.talk__topic {
  display: inline-block;
  margin: 10px 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--paper-2);
  padding: 2px 10px;
  border-radius: 2px;
  line-height: 1.7;
}
.talk > p:not([class]) { color: var(--ink-2); }
.talk > p + p:not([class]) { margin-top: 8px; }
.talk__num { font-size: 1.375rem; color: var(--ink); }

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link::after { content: " ↗"; }
.text-link:hover { color: var(--ink); }

@media (min-width: 900px) {
  .speaking__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
  .topics { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* =========================================================
   RECORD
   ========================================================= */
.record { background: var(--paper-2); }
.record-groups {
  display: grid;
  gap: 16px;
}
.rgroup {
  background: var(--paper);
  border-top: 3px solid var(--ink);
  padding: 22px 22px 24px;
}
.rgroup:first-child { border-top-color: var(--accent); }
.rgroup h3 {
  font-size: 1.1875rem;
  line-height: 1.5;
  margin: 10px 0 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.record__note {
  margin-top: 28px;
  max-width: 880px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.record__note strong { color: var(--ink); margin-right: 6px; }
@media (min-width: 768px) {
  .record-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* =========================================================
   NEWS（お知らせ）
   ========================================================= */
.news { background: var(--white); }
.news__grid { display: grid; gap: 8px; }
.news .section-head { margin-bottom: 28px; }
.news__list { border-top: 1px solid var(--ink); list-style: none; padding: 0; }
.news__item {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.news__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.news__meta time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.news__cat {
  font-size: 0.8125rem;
  line-height: 1.6;
  padding: 1px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.news__title { font-size: 1.125rem; line-height: 1.6; }
.news__body > p:not(.news__link) { margin-top: 6px; font-size: 0.9375rem; line-height: 1.8; color: var(--ink-2); }
.news__link { margin-top: 8px; font-size: 0.9375rem; }
@media (min-width: 900px) {
  .news__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .news .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
  .news__item { grid-template-columns: 9.5em 1fr; gap: 20px; }
  .news__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* =========================================================
   VOICES (準備中)
   ========================================================= */
.voices { padding-block: clamp(56px, 7vw, 88px); }
.voices__box {
  display: grid;
  gap: 24px;
}
.voices__title { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.55; margin-bottom: 12px; }
.voices__box > div > p:not(.section-head__label) { color: var(--ink-2); }
.voices__list { border-top: 1px dashed var(--line); }
.voices__list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  line-height: 1.6;
}
.status {
  flex: none;
  font-size: 0.8125rem;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 1px 10px;
  border-radius: 999px;
}
@media (min-width: 900px) {
  .voices__box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(72px, 9vw, 120px);
}
.contact__grid { display: grid; gap: 36px; }
.contact__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.45;
  font-weight: 800;
}
.contact__lead { margin-top: 20px; color: #d9d6cf; max-width: 34em; }

.button--mail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  padding: 22px 26px;
  position: relative;
}
.button--mail::after {
  content: "→";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
}
.button--mail:hover { background: #c64d23; }
.button--mail__label { font-size: 1.1875rem; }
.button--mail__addr { font-size: 0.9375rem; font-weight: 600; opacity: .92; overflow-wrap: anywhere; padding-right: 32px; }
.contact__hint { margin-top: 16px; font-size: 0.9375rem; color: var(--on-dark-muted); line-height: 1.8; }
.contact :focus-visible { outline-color: var(--accent-on-dark); }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--paper); padding-top: 56px; }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__brand img { width: 132px; height: auto; }
.site-footer__brand p { margin-top: 12px; font-weight: 700; }
.company > div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.company > div:first-child { border-top: 1px solid var(--ink); }
.company dt { color: var(--muted); }
.company a { color: var(--accent); font-weight: 600; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.footer-nav a { display: block; padding: 6px 0; font-size: 0.9375rem; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__bottom {
  margin-top: 40px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  font-size: 0.8125rem; color: var(--muted); line-height: 1.6;
}
.footer-top { margin-left: auto; font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 0; }
.footer-top:hover { color: var(--accent); }

@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 0.8fr 1.4fr 0.8fr; gap: clamp(32px, 5vw, 72px); }
}

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 40;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: opacity .2s ease, visibility .2s ease;
}
.to-top:hover { background: var(--accent); }
.js .to-top:not(.is-visible) { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .to-top, .review-bar { position: static; }
  .to-top, .menu-button { display: none; }
}

/* アンカー移動時にセクションへ移したフォーカスは枠を出さない */
[tabindex="-1"]:focus { outline: none; }

/* JS 無効時、折り返したナビで画面を占有しないよう固定表示を解除 */
@media (max-width: 1023px) { .no-js .site-header { position: static; } }

/* =========================================================
   LEGAL（外部送信・プライバシー）
   ========================================================= */
.legal__back { font-size: 0.9375rem; font-weight: 700; text-decoration: none; padding: 10px 0; }
.legal__back:hover { color: var(--accent); }
.legal__body { max-width: 820px; }
.legal__title { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.45; margin-bottom: 24px; }
.legal__body h2 { font-size: 1.25rem; line-height: 1.5; margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal__body > p { color: var(--ink-2); }
.legal__body > p + p { margin-top: 12px; }
.legal__table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9375rem; line-height: 1.8; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal__table th { width: 9em; padding-right: 16px; color: var(--muted); font-weight: 700; }
@media (max-width: 599px) {
  .legal__table th, .legal__table td { display: block; width: auto; padding: 4px 0; }
  .legal__table th { padding-top: 12px; border-bottom: 0; }
}
.legal__date { margin-top: 40px; font-size: 0.875rem; color: var(--muted); }
