/* ============================================
   define株式会社 — Service Detail Page Styles
   Shared by all service detail pages (案A / 案B)
   ============================================ */
:root {
  --c-navy: #1A2332;
  --c-navy-2: #2B3548;
  --c-navy-3: #475063;
  --c-red: #C8102E;
  --c-red-2: #A8001F;
  --c-cream: #F5F1E8;
  --c-cream-2: #EFEADD;
  --c-white: #FFFFFF;
  --c-ink: #1A2332;
  --c-ink-2: #4A5568;
  --c-ink-3: #8B939F;
  --c-line: #E5E5DD;
  --c-line-2: #DDD8C8;
  --c-bg: #FFFFFF;

  --t-h-display: 64px;
  --t-h-hero: 56px;
  --t-h2: 38px;
  --t-h3: 26px;
  --t-body: 16px;
  --t-small: 14px;
  --t-micro: 14px;

  --sec-gap: 96px;
  --container: 1280px;
  --pad-x: 64px;
  --radius: 4px;

  --f-min: "Shippori Mincho B1", "Noto Serif JP", "Yu Mincho", serif;
  --f-cg: "Cormorant Garamond", "Shippori Mincho B1", serif;
  --f-sans: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", sans-serif;
  --f-lat: "Inter", "Noto Sans JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-size: var(--t-body);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============ Typography utilities ============ */
.eyebrow {
  font-family: var(--f-lat);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--c-red);
  text-transform: uppercase;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-red);
  display: inline-block;
}
.h-section {
  font-family: var(--f-min);
  font-size: var(--t-h2);
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}
.h-section .en {
  display: block;
  font-family: var(--f-cg);
  font-size: 18px;
  color: var(--c-ink-3);
  font-weight: 400;
  letter-spacing: 0.18em;
  font-style: italic;
  margin-top: 12px;
}
.lead {
  font-size: var(--t-body);
  line-height: 2;
  color: var(--c-ink-2);
  max-width: 720px;
}
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .eyebrow { justify-content: center; }
.section-head .h-section { line-height: 1.6; }
.section-head .lead { margin: 0 auto; }

/* Balance line breaks on titles/headings so Japanese text wraps cleanly */
.h-section,
.subpage-hero h1,
.menu-card .mttl,
.problem-item .pttl,
.strength-row .srttl,
.flow-step .fttl,
.case-card .cttl,
.tl-item .h3,
.cta-band h2 {
  text-wrap: balance;
  line-break: strict;
  word-break: normal;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 200px;
  white-space: nowrap;
}
.btn-primary { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }
.btn-primary:hover { background: var(--c-navy-2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: var(--c-white); }
.btn-accent { background: var(--c-red); color: var(--c-white); border-color: var(--c-red); }
.btn-accent:hover { background: var(--c-red-2); }
.btn-ghost-light { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { border-color: var(--c-white); }
.btn .arr { font-family: var(--f-lat); font-weight: 400; }
.btn-sm { padding: 10px 20px; min-width: 0; font-size: 13px; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(229,229,221,0.5);
  height: 76px;
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  padding: 0 40px;
}
.brand img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 40px; align-items: center; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-2);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--c-red); }
.site-nav a.active { color: var(--c-navy); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-red);
}
.site-nav a.en {
  font-family: var(--f-lat);
  font-size: 12px;
  color: var(--c-ink-3);
  letter-spacing: 0.16em;
  white-space: nowrap;
}

/* ============ NAV DROPDOWN ============ */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-trigger::after {
  content: "\25BE";
  font-size: 10px;
  margin-left: 6px;
  color: var(--c-ink-3);
  transition: transform 0.2s, color 0.2s;
  display: inline-block;
}
.nav-dd:hover .nav-dd-trigger::after { transform: rotate(180deg); color: var(--c-red); }
.nav-dd-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(26,35,50,0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: block;
  padding: 11px 16px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-2);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: var(--c-cream); color: var(--c-navy); }

/* ============ SUBPAGE HERO ============ */
.subpage-hero {
  position: relative;
  padding: 180px 0 96px;
  background: var(--c-cream);
  overflow: hidden;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  right: -120px; top: 80px;
  width: 520px; height: 520px;
  border: 1px solid rgba(26,35,50,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.subpage-hero::after {
  content: "";
  position: absolute;
  right: 60px; top: 240px;
  width: 280px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,16,46,0.4));
}
.subpage-hero .container {
  position: relative; z-index: 2;
  max-width: 1440px;
  padding: 0 40px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-lat);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: 40px;
}
.breadcrumb a { color: var(--c-ink-3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--c-red); }
.breadcrumb .sep { color: var(--c-ink-3); opacity: 0.5; }
.breadcrumb .here { color: var(--c-navy); font-weight: 600; }

.subpage-hero .num {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 22px;
  color: var(--c-red);
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.subpage-hero .en-name {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  color: var(--c-navy-3);
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}
.subpage-hero h1 {
  font-family: var(--f-min);
  font-size: 60px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin: 0 0 28px;
  max-width: 880px;
}
.subpage-hero h1 .accent { color: var(--c-red); }
.subpage-hero .sub {
  font-size: 17px;
  line-height: 2;
  color: var(--c-ink-2);
  max-width: 720px;
  margin: 0;
}

/* Variation switcher */
.var-switch {
  position: absolute;
  top: 100px;
  right: 40px;
  display: inline-flex;
  border: 1px solid var(--c-navy);
  border-radius: 999px;
  padding: 4px;
  background: var(--c-white);
  z-index: 3;
  font-family: var(--f-lat);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.var-switch a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--c-navy);
  font-weight: 600;
  transition: all 0.2s;
}
.var-switch a.on {
  background: var(--c-navy);
  color: var(--c-white);
}

/* ============ PROBLEMS (案A: editorial list) ============ */
.problems-editorial {
  padding: var(--sec-gap) 0;
  background: var(--c-white);
}
.problems-editorial .section-head { text-align: left; max-width: 720px; margin: 0 0 64px; }
.problems-editorial .section-head .eyebrow { justify-content: flex-start; }
.problems-list {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 980px;
}
.problem-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}
.problem-item:first-child { border-top: 1px solid var(--c-line); }
.problem-item .pnum {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 42px;
  color: var(--c-red);
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.problem-item .pq::before {
  content: "“";
  font-family: var(--f-cg);
  color: var(--c-red);
  font-size: 36px;
  line-height: 1;
  margin-right: 6px;
  vertical-align: -4px;
  font-style: italic;
}
.problem-item .pttl {
  font-family: var(--f-min);
  font-size: 27px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.problem-item .pbody {
  font-size: 15px;
  color: var(--c-ink-2);
  line-height: 1.95;
  margin: 0;
}

/* PROBLEMS — card grid variant (IT page) */
.problems-cards .problems-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: none;
}
.problems-cards .problem-item {
  display: block;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: 34px 40px 30px;
  box-shadow: 0 12px 30px rgba(26,35,50,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.problems-cards .problem-item:hover {
  box-shadow: 0 18px 40px rgba(26,35,50,0.10);
  transform: translateY(-3px);
}
.problems-cards .ptop {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.problems-cards .ptop .pnum {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 40px;
  font-weight: 500;
  color: var(--c-red);
  line-height: 1;
  letter-spacing: 0.02em;
}
.problems-cards .ptop .pquote {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 40px;
  color: var(--c-red);
  line-height: 1;
}
.problems-cards .problem-item .pttl { margin: 0 0 12px; }
.problems-figure {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.problems-figure img {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
}
@media (max-width: 720px) {
  .problems-cards .problems-list { grid-template-columns: 1fr; }
  .problems-cards .problem-item { padding: 28px 26px 26px; }
}

/* ============ PROBLEMS (案B: chip grid) ============ */
.problems-grid {
  padding: var(--sec-gap) 0;
  background: var(--c-cream);
}
.problems-grid .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.problem-chip {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-red);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  gap: 18px;
  align-items: start;
}
.problem-chip .ico {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.problem-chip .ico svg { width: 24px; height: 24px; stroke: var(--c-red); fill: none; stroke-width: 1.6; }
.problem-chip p {
  margin: 0;
  font-family: var(--f-min);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* ============ STRENGTHS ============ */
.strengths {
  padding: var(--sec-gap) 0;
  background: var(--c-white);
}
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
  margin-top: 32px;
}
.strength-cell {
  padding: 40px 48px;
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
}
.strength-cell .sn {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 18px;
  color: var(--c-red);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.strength-cell .sttl {
  font-family: var(--f-min);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 0;
}
.strength-cell .sbody {
  font-size: 15px;
  color: var(--c-ink-2);
  line-height: 1.9;
  margin: 0;
}

/* Strengths as a numbered vertical list */
.strength-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.strength-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px 36px;
  box-shadow: 0 1px 3px rgba(26,35,50,0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.strength-row:hover { box-shadow: 0 10px 26px rgba(26,35,50,0.08); transform: translateY(-2px); }
.strength-row .sricon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
}
.strength-row .srttl {
  font-family: var(--f-min);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin: 0 0 8px;
}
.strength-row .srdesc {
  font-size: 15px;
  color: var(--c-ink-2);
  line-height: 1.85;
  margin: 0;
}
@media (max-width: 720px) {
  .strength-row { padding: 22px 22px; gap: 18px; }
  .strength-row .srttl { font-size: 18px; }
  .strength-row .sricon { width: 64px; height: 64px; }
}

/* Strengths — zigzag (alternating image / text) variant */
.strength-zigzag { gap: 72px; }
.strength-zigzag .strength-row {
  grid-template-columns: 400px 1fr;
  gap: 56px;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.strength-zigzag .strength-row:nth-child(even) {
  grid-template-columns: 1fr 400px;
}
.strength-zigzag .strength-row:hover { transform: none; box-shadow: none; }
.strength-zigzag .strength-row:nth-child(even) .sr-media { order: 2; justify-self: end; }
.strength-zigzag .strength-row:nth-child(odd) .sr-media { justify-self: start; }
.strength-zigzag .sr-media {
  background: transparent;
  border: none;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.strength-zigzag .sr-media img.sricon {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  flex-shrink: 1;
}
.strength-zigzag .sr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  background: var(--c-navy);
  color: var(--c-white);
  font-family: var(--f-lat);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 6px;
  margin-bottom: 18px;
}
.strength-zigzag .srttl { margin-bottom: 18px; font-size: 36px; line-height: 1.5; }
.strength-zigzag .srdesc { font-size: 20px; line-height: 1.95; }
@media (max-width: 820px) {
  .strength-zigzag { gap: 44px; }
  .strength-zigzag .strength-row { grid-template-columns: 1fr; gap: 22px; }
  .strength-zigzag .strength-row:nth-child(even) .sr-media { order: 0; }
}

/* Alt variation: strengths as alternating large image/text rows */
.strengths-alt-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 24px;
}
.strength-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.strength-alt.flip { direction: rtl; }
.strength-alt.flip > * { direction: ltr; }
.strength-alt .img {
  aspect-ratio: 4 / 3;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-cg);
  font-style: italic;
  color: var(--c-ink-3);
  font-size: 14px;
  letter-spacing: 0.14em;
}
.strength-alt .img::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--c-line-2);
}
.strength-alt .copy .sn {
  font-family: var(--f-cg);
  font-style: italic;
  color: var(--c-red);
  font-size: 20px;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  display: block;
}
.strength-alt .copy .sttl {
  font-family: var(--f-min);
  font-size: 28px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}
.strength-alt .copy .sbody {
  font-size: 16px;
  line-height: 2;
  color: var(--c-ink-2);
  margin: 0;
}

/* ============ MENU CARDS ============ */
.menu {
  padding: var(--sec-gap) 0;
  background: var(--c-cream);
}
.menu.on-white { background: var(--c-white); }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.menu-card {
  background: var(--c-white);
  border: 1px solid #eaedf1;
  border-radius: 18px;
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(26,35,50,0.07);
}
.menu.on-white .menu-card { background: var(--c-white); border-color: #eaedf1; }
.menu-card .mn {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 18px;
  color: var(--c-red);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.menu-card .mhead {
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu-card .mico {
  width: 60px; height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-card .mico svg { width: 36px; height: 36px; stroke: var(--c-navy); fill: none; stroke-width: 1.4; }
.menu-card .mico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.menu-card .mttl {
  font-family: var(--f-min);
  font-size: 21px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 0;
}
.menu-card .mbody {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-ink-3);
  line-height: 1.9;
  margin: 0;
  flex: 1;
}

/* ============ PROCESS (horizontal connected circles) ============ */
.process {
  padding: var(--sec-gap) 0;
  background: var(--c-white);
}
.process.on-cream { background: var(--c-cream); }
.process-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
  position: relative;
}
.process-row::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, var(--c-line-2), var(--c-red), var(--c-line-2));
  z-index: 1;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 12px;
}
.process-step .circle {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--c-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--f-cg);
  font-style: italic;
  color: var(--c-navy);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}
.process.on-cream .process-step .circle { background: var(--c-cream); }
.process-step .circle .lab {
  font-family: var(--f-lat);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.24em;
  color: var(--c-ink-3);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.process-step .circle .pnum {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}
.process-step:hover .circle {
  border-color: var(--c-red);
  background: var(--c-red);
  color: var(--c-white);
}
.process-step:hover .circle .lab { color: rgba(255,255,255,0.7); }
.process-step .pttl {
  font-family: var(--f-min);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin: 0 0 10px;
}
.process-step .pbody {
  font-size: 13px;
  color: var(--c-ink-2);
  line-height: 1.85;
  margin: 0;
}

/* ============ PROCESS FLOW (connected cards) ============ */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  margin-top: 48px;
}
.flow-step {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  background: var(--c-white);
  border: 1px solid #eaedf1;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(26,35,50,0.07);
  padding: 26px 12px 24px;
  margin: 0 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(26,35,50,0.12); }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #b9c1cd;
  border-right: 2px solid #b9c1cd;
  transform: translate(7px, -50%) rotate(45deg);
  z-index: 2;
}
.flow-step .fnum {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: inset 0 0 0 1.5px #e3e8ee, inset 0 0 0 5px #f3f5f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-lat);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 2px;
}
.flow-step .fttl {
  font-family: var(--f-min);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin: 0;
}
.flow-step .fsub {
  font-size: 13px;
  color: var(--c-ink-2);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin: -4px 0 0;
}
.flow-step .ftag-wrap {
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.flow-step .ftag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: var(--c-navy);
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.flow-step .ftag.is-red { background: var(--c-red); }
@media (max-width: 980px) {
  .process-flow { flex-wrap: wrap; justify-content: flex-start; gap: 16px; }
  .flow-step { flex: 1 1 calc(33.333% - 16px); margin: 0; }
  .flow-step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) {
  .flow-step { flex: 1 1 calc(50% - 16px); }
}

/* ============ CASE STUDIES ============ */
.cases {
  padding: var(--sec-gap) 0;
  background: var(--c-cream);
}
.cases.on-white { background: var(--c-white); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.case-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.cases.on-white .case-card { background: var(--c-cream); border-color: var(--c-line-2); }
.case-card:hover {
  border-color: var(--c-navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,35,50,0.08);
}
.case-card .ph {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--c-cream-2) 0%, var(--c-cream) 100%);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-cg);
  font-style: italic;
  color: var(--c-ink-3);
  font-size: 13px;
  letter-spacing: 0.16em;
  position: relative;
}
.case-card .ph::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(26,35,50,0.06);
}

.case-card .ph img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.case-card .ph:has(img)::before { display:none; }
.case-card .body {
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.case-card .tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-family: var(--f-lat);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-ink-2);
  text-transform: uppercase;
}
.case-card .cttl {
  font-family: var(--f-min);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 0;
}
.case-card .metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--c-line);
}
.case-card .metric .val {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  color: var(--c-red);
  letter-spacing: 0.02em;
  line-height: 1;
}
.case-card .metric .lab {
  font-size: 12px;
  color: var(--c-ink-3);
  letter-spacing: 0.06em;
}
.case-card .cbody {
  font-size: 13px;
  line-height: 1.85;
  color: var(--c-ink-2);
  margin: 0;
}
.case-card .more {
  margin-top: auto;
  font-family: var(--f-lat);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-navy);
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  display: inline-flex;
  gap: 8px;
}
.case-card .more::after { content: "→"; color: var(--c-red); }

/* ============ CTA ============ */
.cta-band {
  padding: var(--sec-gap) 0;
  background: var(--c-navy);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -200px; top: 50%; transform: translateY(-50%);
  width: 700px; height: 700px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -50px; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px;
  border: 1px solid rgba(200,16,46,0.15);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.cta-band .eyebrow { color: var(--c-red); }
.cta-band .eyebrow::before { background: var(--c-red); }
.cta-band h2 {
  font-family: var(--f-min);
  font-size: var(--t-h2);
  font-weight: 600;
  color: var(--c-white);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0 0 24px;
}
.cta-band p {
  font-size: var(--t-body);
  color: rgba(255,255,255,0.75);
  line-height: 2;
  margin: 0;
  max-width: 540px;
}
.cta-band .ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cta-band .ctas .btn { width: 100%; max-width: 320px; }

/* ============ Section divider (small) ============ */
.divider-band {
  background: var(--c-navy);
  padding: 56px 0;
  color: var(--c-white);
}
.divider-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.divider-band .quote {
  font-family: var(--f-min);
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 0;
  max-width: 720px;
  line-height: 1.7;
}
.divider-band .quote .en {
  display: block;
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.16em;
  margin-top: 8px;
}
.divider-band .sig {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .lockup {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.footer-brand img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-brand .corp {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
}
.footer-brand .corp strong { color: var(--c-white); font-weight: 500; }
.footer-col .col-ttl {
  font-family: var(--f-lat);
  font-size: 11px;
  color: var(--c-red);
  letter-spacing: 0.24em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.footer-col ul a:hover { color: var(--c-white); }
.footer-col ul a.muted { color: rgba(255,255,255,0.35); }
.footer-col ul a.on { color: var(--c-white); position: relative; padding-left: 14px; }
.footer-col ul a.on::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 1px;
  background: var(--c-red);
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-lat);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}
.footer-bottom .legal { display: flex; gap: 28px; }
.footer-bottom .legal a:hover { color: var(--c-white); }

/* ============ RELATED SERVICES ============ */
.related {
  padding: var(--sec-gap) 0;
  background: var(--c-white);
}
.related .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.related-card:hover {
  border-color: var(--c-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,35,50,0.06);
}
.related-card .ico {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.related-card .ico svg { width: 44px; height: 44px; stroke: var(--c-red); fill: none; stroke-width: 1.5; }
.related-card .body { flex: 1; }
.related-card .en {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 13px;
  color: var(--c-ink-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.related-card .ttl {
  font-family: var(--f-min);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-navy);
  letter-spacing: 0.04em;
  margin: 0;
}
.related-card .arr {
  font-family: var(--f-lat);
  color: var(--c-red);
  font-size: 18px;
  transition: transform 0.2s;
}
.related-card:hover .arr { transform: translateX(4px); }

/* ============ responsive ============ */
@media (max-width: 980px) {
  .menu-grid, .cases-grid, .strengths-grid { grid-template-columns: 1fr; }
  .problems-grid .grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; gap: 32px; }
  .process-row::before { display: none; }
  .strength-alt { grid-template-columns: 1fr; gap: 24px; }
  .strength-alt.flip { direction: ltr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .subpage-hero h1 { font-size: 40px; }
  .related .grid { grid-template-columns: 1fr; }
  .var-switch { position: static; margin-bottom: 24px; }
}

/* ============ STORY / 沿革 ============ */
.story {
  padding: var(--sec-gap) 0;
  background: var(--c-navy);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.story::before {
  content: "";
  position: absolute;
  left: -120px; top: 80px;
  width: 400px; height: 400px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.story .container { position: relative; z-index: 2; }
.story-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.story-head .lhs .h-section { margin: 0; color: var(--c-white); }
.story-head .lhs .h-section .en { color: rgba(255,255,255,0.5); }
.story-head .rhs .lead { margin: 0; color: rgba(255,255,255,0.85); }

.timeline {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  position: relative;
}
.timeline-aside {
  position: sticky;
  top: 120px;
  align-self: start;
  font-family: var(--f-cg);
  color: rgba(255,255,255,0.5);
}
.timeline-aside .label {
  font-family: var(--f-lat);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--c-red);
  text-transform: uppercase;
  margin-bottom: 14px;
  white-space: nowrap;
}
.timeline-aside .count {
  font-family: var(--f-cg);
  font-size: 64px;
  font-style: italic;
  color: var(--c-white);
  line-height: 1;
  letter-spacing: 0.02em;
}
.timeline-aside .count .total { color: rgba(255,255,255,0.4); font-size: 32px; }
.timeline-aside .nm { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }

.tl-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: 56px;
  position: relative;
}
.tl-list::before {
  content: "";
  position: absolute;
  left: 7px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--c-navy);
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -56px; top: 14px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--c-navy);
  border: 2px solid var(--c-red);
}
.tl-item.current::before {
  background: var(--c-red);
  box-shadow: 0 0 0 6px rgba(200,16,46,0.12);
}
.tl-item .era {
  font-family: var(--f-cg);
  font-size: 14px;
  color: var(--c-red);
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tl-item .h3 {
  font-family: var(--f-min);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0 0 10px;
}
.tl-item .body {
  font-size: var(--t-body);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 640px;
}
@media (max-width: 980px) {
  .story-head { grid-template-columns: 1fr; gap: 24px; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline-aside { position: static; }
  .tl-list { padding-left: 28px; }
  .tl-item::before { left: -28px; }
}
