@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ============================================================
   Artclick — web & system development company
   Light, warm, elegant. Brand: a red/orange/blue/green crystal.
   ============================================================ */

:root {
  /* Brand red (primary action color, from the crystal's dominant facet) */
  --red-700: #a8112a;
  --red-600: #c8102e;
  --red-500: #e5102e;
  --red-400: #ef4d56;
  --red-300: #f58a90;
  --red-100: #fbdcde;
  --red-50:  #fdf2f3;

  /* Crystal accents (used sparingly, for the brand motif) */
  --c-orange: #f5821f;
  --c-blue:   #1e7fd1;
  --c-green:  #2bb673;

  /* Warm neutrals (never cold/blue-grey) */
  --ink-950: #1c1614;
  --ink-900: #26201d;
  --ink-800: #322b27;
  --ink-700: #4b423d;
  --ink-600: #6b615b;
  --ink-500: #8b817b;
  --ink-400: #a99f99;
  --ink-300: #cabfb9;
  --ink-200: #e6ded8;
  --ink-100: #f1ebe6;
  --ink-50:  #faf6f3;

  --paper: #ffffff;
  --warm:  #faf6f3;

  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  /* Display face for English headings — modern, premium, geometric.
     Japanese glyphs gracefully fall back to Noto Sans JP. */
  --font-display: "Plus Jakarta Sans", "Noto Sans JP", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(28,22,20,0.04), 0 6px 20px -12px rgba(28,22,20,0.18);
  --shadow-md: 0 18px 50px -28px rgba(28,22,20,0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--red-100); color: var(--ink-950); }
:focus-visible { outline: 2px solid var(--red-500); outline-offset: 3px; border-radius: 3px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 1024px) { .container { padding-inline: 40px; } }

.section { padding-block: 72px; }
@media (min-width: 768px) { .section { padding-block: 104px; } }
.section--sm { padding-block: 56px; }
.section--lg { padding-block: 88px; }
@media (min-width: 768px) { .section--lg { padding-block: 132px; } }
.section--muted { background: var(--warm); }
.section--ink { background: var(--warm); }  /* legacy class → warm, never dark */

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; }
.skip-link:focus { left: 16px; top: 16px; background: var(--ink-950); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 14px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink-950); line-height: 1.32; letter-spacing: -0.015em; }
.display-xl { font-family: var(--font-display); font-size: clamp(2.7rem, 5.8vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.display-lg { font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.display-md { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.16; letter-spacing: -0.025em; }
.text-balance { text-wrap: balance; }
.lead { font-size: 1.1rem; line-height: 1.8; color: var(--ink-600); font-weight: 400; }
@media (min-width: 768px) { .lead { font-size: 1.2rem; } }
.muted { color: var(--ink-600); }

/* Refined centered/eyebrow label — the studio's quiet section marker */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.28em; color: var(--red-600);
}
.eyebrow--light { color: var(--red-500); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; line-height: 1;
  border-radius: var(--radius-full); padding: 0 24px; height: 46px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn svg { width: 17px; height: 17px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 0.98rem; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 0.85rem; }
.btn--primary { background: var(--red-600); color: #fff;
  box-shadow: 0 1px 1px rgba(168,17,42,0.2), 0 10px 24px -10px rgba(200,16,46,0.55); }
.btn--primary:hover { background: var(--red-700); transform: translateY(-2px);
  box-shadow: 0 1px 1px rgba(168,17,42,0.2), 0 16px 30px -12px rgba(200,16,46,0.6); }
.btn--secondary { background: #fff; color: var(--ink-900); border: 1px solid var(--ink-200); }
.btn--secondary:hover { border-color: var(--ink-900); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--inverse { background: var(--ink-950); color: #fff; }
.btn--inverse:hover { background: var(--ink-800); }
.btn--ghost { color: var(--ink-700); }
.btn--ghost:hover { color: var(--red-600); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- badge ---------- */
.badge {
  display: inline-flex; align-items: center; padding: 5px 13px;
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.04em; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-700);
}
.badge--inverse { background: rgba(255,255,255,0.92); border-color: transparent; color: var(--ink-900);
  box-shadow: var(--shadow-sm); }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent; }
.header { padding-top: 14px; padding-inline: 16px; }
@media (min-width: 768px) { .header { padding-top: 18px; } }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px;
  padding: 0 12px 0 22px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 10px 30px -14px rgba(28,22,20,0.22); transition: box-shadow 0.3s, background 0.3s; }
@media (min-width: 1024px) { .header__inner { height: 66px; } }
.header.is-scrolled .header__inner { background: rgba(255,255,255,0.92); box-shadow: 0 14px 36px -16px rgba(28,22,20,0.30); }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__img { height: 22px; width: auto; }
@media (min-width: 1024px) { .logo__img { height: 24px; } }

.nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1120px) { .nav { display: flex; } }
.nav a { padding: 8px 12px; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--ink-600);
  letter-spacing: 0.01em; transition: color 0.2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--red-600); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease); }
.nav a:hover { color: var(--ink-950); }
.nav a:hover::after { transform: scaleX(0.5); }
.nav a.is-active { color: var(--red-600); }
.nav a.is-active::after { transform: scaleX(1); }

.header__cta { display: none; }
@media (min-width: 1120px) { .header__cta { display: block; } }
.menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; color: var(--ink-900); }
.menu-toggle:hover { background: var(--ink-50); }
@media (min-width: 1120px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 24px; height: 24px; }

.mobile-menu { display: none; margin-top: 10px; border-radius: 18px; background: #fff; padding: 16px 18px 24px;
  border: 1px solid rgba(28,22,20,0.06); box-shadow: 0 14px 36px -16px rgba(28,22,20,0.28); }
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 13px 12px; font-weight: 500; color: var(--ink-700); border-radius: 10px; }
.mobile-menu nav a:hover { background: var(--ink-50); }
.mobile-menu nav a.is-active { color: var(--red-600); }
/* Sub-pages of Services — indented to show hierarchy */
.mobile-menu nav a.is-sub { margin-left: 14px; padding-left: 18px; font-size: 0.92rem; font-weight: 400;
  color: var(--ink-600); border-left: 2px solid rgba(28,22,20,0.10); border-radius: 0 10px 10px 0; }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ---------- hero (soft gradient mesh, centered, bold) ---------- */
.hero { position: relative; z-index: 1;
  background: linear-gradient(180deg, #fdf8f5 0%, #ffffff 78%); }
/* clip only the decorative background — the stats card may overhang the hero */
.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
/* a single soft wash of brand light — restrained, premium, not a rainbow */
.hero__blobs { position: absolute; inset: -18%; z-index: 0; pointer-events: none; filter: blur(90px); }
.hero__blobs span { position: absolute; border-radius: 50%; opacity: 0.3; will-change: transform; }
.hero__blobs .b-r { width: 52%; height: 52%; left: -4%;  top: -6%;
  background: radial-gradient(circle, rgba(229,16,46,0.55), rgba(229,16,46,0) 68%); animation: heroDrift1 32s ease-in-out infinite; }
.hero__blobs .b-o { width: 40%; height: 40%; left: 36%; top: -12%;
  background: radial-gradient(circle, rgba(245,130,31,0.42), rgba(245,130,31,0) 68%); animation: heroDrift2 38s ease-in-out infinite; }
.hero__blobs .b-b { width: 48%; height: 48%; right: -6%;  top: 20%;
  background: radial-gradient(circle, rgba(30,127,209,0.4), rgba(30,127,209,0) 68%); animation: heroDrift3 36s ease-in-out infinite; }
.hero__blobs .b-g { width: 40%; height: 40%; right: 10%;  bottom: -14%;
  background: radial-gradient(circle, rgba(43,182,115,0.36), rgba(43,182,115,0) 68%); animation: heroDrift4 42s ease-in-out infinite; }
@keyframes heroDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(16%, 12%) scale(1.12); } }
@keyframes heroDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-14%, 18%) scale(1.1); } }
@keyframes heroDrift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-12%, -10%) scale(1.14); } }
@keyframes heroDrift4 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14%, -14%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero__blobs span { animation: none !important; } }
.hero__tex {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(28,22,20,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,22,20,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000, transparent 66%);
  mask-image: radial-gradient(circle at 50% 32%, #000, transparent 66%);
  opacity: 0.32;
}
.hero__inner { position: relative; z-index: 2; text-align: center; padding-top: 132px; padding-bottom: 0; }
.hero__tex { z-index: 1; }
@media (min-width: 768px) { .hero__inner { padding-top: 168px; } }
.hero h1 { margin: 28px auto 0; max-width: 17ch; }
.hero .lead { margin: 26px auto 0; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; justify-content: center; }
.hero__trust { margin-top: 44px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-500); max-width: 560px; margin-inline: auto; }

/* stats / trust bar — white card overlapping the gradient bottom */
.hero-stats {
  position: relative; margin-top: 64px; transform: translateY(40px);
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px -30px rgba(28,22,20,0.22);
  display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden;
}
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stats__item { padding: 26px 18px; text-align: center; border-top: 1px solid var(--ink-100); border-left: 1px solid var(--ink-100); }
.hero-stats__item:nth-child(-n+2) { border-top: none; }
@media (min-width: 768px) { .hero-stats__item { border-top: none; } .hero-stats__item:first-child { border-left: none; } }
.hero-stats__item:nth-child(odd) { border-left: none; }
@media (min-width: 768px) { .hero-stats__item:nth-child(odd) { border-left: 1px solid var(--ink-100); } .hero-stats__item:first-child { border-left: none; } }
.hero-stats__value { font-family: var(--font-display); font-size: clamp(1.3rem, 1.7vw, 1.6rem); font-weight: 800; color: var(--ink-950); letter-spacing: -0.03em; white-space: nowrap; }
.hero-stats__label { font-size: 0.8rem; color: var(--ink-500); margin-top: 5px; line-height: 1.5; }
/* let the stats card sit half-out of the hero */
.hero + section, .hero + .section { padding-top: 96px; }

/* ---------- page hero (light, refined) ---------- */
.page-hero { position: relative; background: var(--warm); overflow: hidden; border-bottom: 1px solid var(--ink-100); }
.page-hero__inner { padding-top: 128px; padding-bottom: 56px; max-width: 720px; }
@media (min-width: 768px) { .page-hero__inner { padding-top: 168px; padding-bottom: 76px; } }
.page-hero h1 { margin-top: 16px; }
.page-hero .lead { margin-top: 20px; max-width: 620px; }
/* Keyword-rich subheading directly under a punchy hero H1 */
.hero-subhead { margin-top: 14px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  line-height: 1.35; color: var(--ink-800); max-width: 640px; }
@media (min-width: 768px) { .hero-subhead { font-size: 1.5rem; } }
.page-hero__crystal { position: absolute; right: -60px; top: 40px; width: 320px; height: 320px;
  opacity: 0.5; border-radius: 50%; overflow: hidden; filter: blur(2px); pointer-events: none; }
@media (max-width: 900px) { .page-hero__crystal { display: none; } }
/* legacy hero helper elements → hidden in light theme */
.hero__bg-grid, .hero__glow, .page-hero__bg-grid, .page-hero__glow, .cta-band__glow { display: none; }

/* ---------- section header (centered, elegant) ---------- */
.heading { max-width: 620px; }
.heading--center { margin-inline: auto; text-align: center; }
.heading h2 { margin-top: 14px; }
.heading p { margin-top: 16px; color: var(--ink-600); line-height: 1.9; }
.heading--light h2 { color: var(--ink-950); }
.heading--light p { color: var(--ink-600); }
.section-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 56px; }
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
/* "All work / All services" CTA: beside the heading on desktop, but below the
   section content on mobile (so the projects/services come first). */
.section-cta-mobile { display: none; }
@media (max-width: 767px) {
  .section-head > .btn--secondary { display: none; }
  .section-cta-mobile { display: flex; justify-content: center; margin-top: 40px; }
}

/* ---------- grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
/* Auto-reflowing, centered grid — add more cards over time and it stays
   responsive without touching the markup: a single card centers on its own,
   and extra cards reflow into a centered row that wraps as space allows. */
.grid--auto { display: flex; flex-wrap: wrap; justify-content: center; }
.grid--auto > * { flex: 1 1 300px; max-width: 420px; }
.plugin-card { display: flex; flex-direction: column; }
.plugin-card .plugin-card__cta { margin-top: auto; align-self: flex-start; }

/* ---------- cards (minimal, calm) ---------- */
.card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-xl);
  padding: 34px 30px; height: 100%; box-shadow: 0 1px 2px rgba(28,22,20,0.03);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card--interactive:hover { border-color: var(--ink-200); transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Thin circular line-icon (the studio's quiet icon treatment) */
.feature-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--ink-200); color: var(--red-600);
  background: linear-gradient(160deg, var(--red-50), #fff); }
.feature-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-top: 22px; }
.card__summary { margin-top: 12px; color: var(--ink-600); font-size: 0.95rem; line-height: 1.85; }
.card__list { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ink-100); display: flex; flex-direction: column; gap: 11px; }
.card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-700); }
.card__list svg { width: 17px; height: 17px; color: var(--red-500); flex-shrink: 0; margin-top: 4px; }

/* capabilities — quiet inline list, not heavy cards */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; margin-top: 52px; }
@media (min-width: 768px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
.cap { text-align: left; }
.cap__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--ink-200); color: var(--red-600); }
.cap__icon svg { width: 24px; height: 24px; }
.cap h3 { font-size: 1rem; margin-top: 18px; font-weight: 600; }
.cap p { font-size: 0.9rem; color: var(--ink-600); margin-top: 6px; line-height: 1.8; }

/* differentiators / values rows */
.feature-row { display: flex; gap: 18px; }
.feature-row__icon { display: grid; place-items: center; width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--ink-200); color: var(--red-600); }
.feature-row__icon svg { width: 23px; height: 23px; }
.feature-row h3 { font-size: 1.02rem; font-weight: 600; }
.feature-row p { font-size: 0.93rem; color: var(--ink-600); margin-top: 8px; line-height: 1.85; }

/* ---------- process timeline ---------- */
.timeline { position: relative; }
.timeline__rail { position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: var(--ink-200); }
@media (min-width: 640px) { .timeline__rail { left: 23px; } }
.timeline__list { display: flex; flex-direction: column; gap: 36px; }
.step { position: relative; display: flex; gap: 22px; }
.step__num { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px;
  flex-shrink: 0; border-radius: 50%; background: #fff; border: 1px solid var(--ink-200);
  color: var(--red-600); font-weight: 600; font-size: 0.9rem; }
@media (min-width: 640px) { .step__num { width: 48px; height: 48px; } }
.step__body { padding-top: 8px; }
.step h3 { font-size: 1.12rem; }
.step p { margin-top: 8px; color: var(--ink-600); font-size: 0.95rem; max-width: 560px; line-height: 1.85; }
.timeline--light .timeline__rail { background: var(--ink-200); }
.timeline--light .step__num { background: #fff; }
.timeline--light .step h3 { color: var(--ink-950); }
.timeline--light .step p { color: var(--ink-600); }

/* ---------- works ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 18px; border-radius: var(--radius-full); font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--ink-200); background: #fff; color: var(--ink-600);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s; letter-spacing: 0.01em; }
.chip:hover { border-color: var(--ink-400); color: var(--ink-950); transform: translateY(-1px); }
.chip.is-active { background: var(--red-600); border-color: var(--red-600); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(200,16,46,0.6); }

.project-card { display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--ink-100); border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(28,22,20,0.03);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease); height: 100%; }
.project-card:hover { border-color: var(--ink-200); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-50); }
.project-card__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28,22,20,0.18)); opacity: 0; transition: opacity 0.35s var(--ease); }
.project-card:hover .project-card__media::after { opacity: 1; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__media-fallback { width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--warm); color: var(--ink-300); }
.project-card__badge { position: absolute; top: 14px; left: 14px; }
.project-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-card__body h3 { font-size: 1.05rem; font-weight: 500; transition: color 0.2s; line-height: 1.6; }
.project-card:hover .project-card__body h3 { color: var(--red-600); }
.project-card__excerpt { margin-top: 10px; font-size: 0.875rem; color: var(--ink-600); line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card__link { margin-top: 20px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--red-600); letter-spacing: 0.02em; }
.project-card .project-card__link { margin-top: auto; padding-top: 18px; }
.project-card__link svg { width: 15px; height: 15px; transition: transform 0.2s; }
.project-card:hover .project-card__link svg { transform: translateX(3px); }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 88px 24px; border: 1px solid var(--ink-100); border-radius: var(--radius-xl);
  background: var(--warm); color: var(--ink-500); font-size: 0.95rem; }
.empty-state svg { width: 44px; height: 44px; color: var(--ink-300); margin-bottom: 16px; }

.skeleton { position: relative; overflow: hidden; background: var(--ink-100); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent); animation: shimmer 1.6s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-card { border: 1px solid var(--ink-100); border-radius: var(--radius-xl); overflow: hidden; background: #fff; }
.skeleton-card__media { aspect-ratio: 4/3; }
.skeleton-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--ink-100); }
.pager-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-full);
  background: #fff; border: 1px solid var(--ink-200); color: var(--ink-800);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s; }
.pager-btn:hover:not(:disabled) { border-color: var(--ink-400); color: var(--ink-950); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pager-btn:disabled { color: var(--ink-300); border-color: var(--ink-100); cursor: not-allowed; }
.pager-btn svg { width: 15px; height: 15px; }
.pagination__info { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--ink-600); letter-spacing: 0.02em; }

/* ---------- project detail ---------- */
.detail-hero { background: var(--warm); border-bottom: 1px solid var(--ink-100); }
.detail-hero__inner { padding-top: 120px; padding-bottom: 48px; }
@media (min-width: 768px) { .detail-hero__inner { padding-top: 150px; } }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500;
  color: var(--ink-600); transition: color 0.2s; }
.back-link:hover { color: var(--red-600); }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }
.detail-hero h1 { margin-top: 22px; max-width: 880px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.detail-hero .lead { margin-top: 20px; max-width: 640px; }
.detail-meta { font-size: 0.85rem; color: var(--ink-500); margin-top: 22px; }
.detail-figure { position: relative; aspect-ratio: 16/9; margin-top: 40px; border-radius: var(--radius-xl);
  overflow: hidden; background: var(--ink-50); box-shadow: var(--shadow-md); }
.detail-figure img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; gap: 48px; min-width: 0; }
/* Grid items default to min-width:auto, so a wide child (e.g. a table with a
   540px min-width) inflates the .prose column past the viewport and the whole
   page scrolls sideways on mobile. min-width:0 lets the column shrink; wide
   tables still scroll inside their own .table-wrap. */
.detail-layout > * { min-width: 0; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: 1.9fr 1fr; gap: 64px; } }
.detail-aside { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .detail-aside { position: sticky; top: 110px; align-self: start; } }
.aside-box { border: 1px solid var(--ink-100); border-radius: var(--radius-xl); padding: 28px; }
.aside-box--muted { background: var(--warm); }
.aside-box h2 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-500); font-weight: 600; }
.aside-box dl { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; font-size: 0.9rem; }
.aside-box dt { color: var(--ink-500); }
.aside-box dd { color: var(--ink-900); font-weight: 500; margin-top: 3px; }
.aside-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 500; color: var(--red-600); }
.aside-link svg { width: 16px; height: 16px; }

/* ---------- resources: listing meta + sidebar widgets ---------- */
/* Small date line above a listing card title. */
.post-meta { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-500);
  text-transform: uppercase; }
.project-card__body .post-meta + h3 { margin-top: 8px; }

/* Category tag lives at the bottom of the body, just above "Read article"
   (not overlapping the thumbnail). It hugs its text rather than stretching. */
.project-card__cat { align-self: flex-start; margin-top: auto; }
.project-card__body .project-card__cat + .project-card__link { margin-top: 14px; padding-top: 0; }

/* Sidebar: clickable category list with optional counts. */
.cat-list { margin-top: 16px; display: flex; flex-direction: column; }
.cat-list li + li { border-top: 1px solid var(--ink-100); }
.cat-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; font-size: 0.92rem; color: var(--ink-700); transition: color 0.2s; }
.cat-list__item:hover, .cat-list__item.is-active { color: var(--red-600); }
.cat-list__item span { font-size: 0.78rem; color: var(--ink-400); }

/* Sidebar: "Recent posts" — thumbnail + title + date. */
.post-list { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.post-list a { display: flex; gap: 14px; align-items: flex-start; }
.post-list__thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  background: var(--ink-50); }
.post-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list__thumb--empty { display: grid; place-items: center; color: var(--ink-300); }
.post-list__thumb--empty svg { width: 24px; height: 24px; }
.post-list__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.post-list__title { font-size: 0.92rem; font-weight: 500; line-height: 1.5; color: var(--ink-900);
  transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list a:hover .post-list__title { color: var(--red-600); }
.post-list__date { font-size: 0.76rem; color: var(--ink-500); }

/* WordPress content body */
.prose { color: var(--ink-700); line-height: 1.95; font-size: 1.02rem; }
.prose h2 { font-size: 1.4rem; margin: 44px 0 16px; }
.prose h3 { font-size: 1.18rem; margin: 32px 0 12px; }
.prose p { margin-bottom: 20px; }
.prose a { color: var(--red-600); text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius-lg); margin: 32px 0; height: auto; }
.prose blockquote { border-left: 2px solid var(--red-500); padding-left: 20px; font-style: italic; color: var(--ink-600); margin: 24px 0; }

/* Article tables (CMS content) — warm site palette, rounded, mobile-scrollable.
   resources.js wraps each <table> in .table-wrap for the rounded frame + scroll. */
.prose .table-wrap { margin: 30px 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ink-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.92rem; min-width: 540px; }
.prose th, .prose td { padding: 13px 18px; text-align: left; vertical-align: top; line-height: 1.65;
  border-bottom: 1px solid var(--ink-100); }
.prose thead th, .prose th { background: var(--warm); font-family: var(--font-display); font-weight: 600;
  color: var(--ink-950); border-bottom: 1px solid var(--ink-200); letter-spacing: -0.005em; }
.prose td { color: var(--ink-700); }
.prose tbody tr:nth-child(even) td { background: var(--ink-50); }
.prose tbody tr:last-child td { border-bottom: none; }
/* A leading row-header cell (first column <th>) reads as a label, left-aligned. */
.prose tbody th { color: var(--ink-900); }
/* On narrow screens the table (min-width 540px) scrolls inside .table-wrap —
   show a sticky "⇄ Scroll" affordance so it's clear the table can pan sideways. */
@media (max-width: 560px) {
  .prose .table-wrap { position: relative; }
  .prose .table-wrap::after { content: "\21C4 Scroll"; position: sticky; left: 0; display: block; width: max-content;
    padding: 7px 13px; font-size: 0.74rem; line-height: 1; color: var(--ink-500); letter-spacing: 0.02em;
    background: var(--warm); border-top: 1px solid var(--ink-100); }
}

/* FAQ accordion (native <details>, no JS) */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--ink-200); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 24px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink-950); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--red-600); }
.faq__icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--red-600); transition: transform 0.25s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { color: var(--ink-700); line-height: 1.85; margin: 0; padding: 0 4px 26px; max-width: 68ch; }
.faq__item a { color: var(--red-600); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact form ---------- */
/* honeypot — visually & physically hidden, only bots fill it */
.hp-wrap { position: absolute !important; left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--ink-800); margin-bottom: 8px; }
.field label .req { color: var(--red-600); margin-left: 2px; }
.field label .opt { color: var(--ink-400); font-weight: 400; font-size: 0.75rem; margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 11px;
  border: 1px solid var(--ink-200); background: #fff; color: var(--ink-900); font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-500); box-shadow: 0 0 0 3px var(--red-100); }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-500); }
.field__error { color: var(--red-600); font-size: 0.85rem; margin-top: 7px; display: none; }
.field.has-error .field__error { display: block; }

/* Attachment drag & drop zone */
.dropzone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 26px 20px; border: 1.5px dashed var(--ink-200); border-radius: 14px; background: var(--ink-50);
  cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.dropzone:hover { border-color: var(--ink-400); }
.dropzone:focus-visible { outline: none; border-color: var(--red-500); box-shadow: 0 0 0 3px var(--red-100); }
.dropzone.is-dragover { border-color: var(--red-500); background: var(--red-50); }
.dropzone__icon { width: 28px; height: 28px; color: var(--ink-500); }
.dropzone__text { font-size: 0.92rem; color: var(--ink-700); }
.dropzone__text strong { font-weight: 600; color: var(--ink-900); }
.dropzone__browse { color: var(--red-600); text-decoration: underline; text-underline-offset: 2px; }
.dropzone__hint { font-size: 0.78rem; color: var(--ink-500); }
.field.has-error .dropzone { border-color: var(--red-500); }

.filelist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.filelist:empty { margin: 0; }
.filelist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--ink-200); border-radius: 10px; background: #fff; font-size: 0.88rem; }
.filelist__icon { flex: none; width: 18px; height: 18px; color: var(--ink-500); }
.filelist__name { flex: 1 1 auto; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist__size { flex: none; color: var(--ink-500); font-size: 0.8rem; }
.filelist__remove { flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 7px; color: var(--ink-500); transition: background 0.2s, color 0.2s; }
.filelist__remove:hover { background: var(--red-50); color: var(--red-600); }
.filelist__remove svg { width: 15px; height: 15px; }
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 40px;
  border: 1px solid var(--ink-100); border-radius: var(--radius-xl); background: #fff; }
.form-success__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--red-100); color: var(--red-600); }
.form-success__icon svg { width: 28px; height: 28px; }
.form-success h3 { margin-top: 20px; font-size: 1.2rem; }
.form-success p { margin-top: 10px; color: var(--ink-600); max-width: 360px; }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.form-foot small { font-size: 0.78rem; color: var(--ink-400); }
.form-error-msg { color: var(--red-600); font-size: 0.85rem; display: none; }

/* ---------- CTA band (light, warm — crystal accent) ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(245,86,99,0.1), rgba(245,130,31,0.05) 32%, transparent 60%),
    linear-gradient(180deg, #fff, var(--warm));
  border: 1px solid var(--ink-100); text-align: center; padding: 64px 24px;
  box-shadow: 0 30px 70px -40px rgba(28,22,20,0.25); }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 120%, rgba(30,127,209,0.08), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(43,182,115,0.08), transparent 40%); }
@media (min-width: 768px) { .cta-band { padding: 92px 48px; } }
.cta-band__crystal { position: absolute; left: 50%; top: -120px; width: 280px; height: 280px;
  transform: translateX(-50%); opacity: 0.18; border-radius: 50%; overflow: hidden; pointer-events: none; }
.cta-band__inner { position: relative; max-width: 600px; margin-inline: auto; }
.cta-band h2 { color: var(--ink-950); }
.cta-band p { color: var(--ink-600); margin-top: 16px; font-size: 1.05rem; line-height: 1.9; }
.cta-band__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ---------- pricing ---------- */
.price-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.price-card { flex: 1 1 340px; max-width: 540px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl); padding: 38px 34px; box-shadow: 0 1px 2px rgba(28,22,20,0.03);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.price-card:hover { border-color: var(--ink-200); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card__tag { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--ink-950); letter-spacing: -0.01em; }
.price-card__scope { display: inline-block; margin-left: 8px; vertical-align: middle; padding: 3px 9px;
  border-radius: var(--radius-full); background: var(--red-50); color: var(--red-600);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.price-card__price { margin-top: 16px; display: flex; align-items: baseline; gap: 9px; color: var(--ink-950); }
.price-card__price .from { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-500); }
.price-card__price .amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.price-card__desc { margin-top: 16px; color: var(--ink-600); font-size: 0.95rem; line-height: 1.8; }
.price-card__list { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--ink-100);
  display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--ink-700); line-height: 1.6; }
.price-card__list svg { width: 17px; height: 17px; color: var(--red-500); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { margin-top: 28px; width: 100%; }

/* two separate priced services inside one card */
.price-card__tiers { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; list-style: none; }
.price-card__tiers li { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--ink-100); }
.price-card__tiers li:last-child { border-bottom: none; padding-bottom: 0; }
.price-card__tier-name { display: flex; flex-direction: column; gap: 3px; font-size: 0.98rem; font-weight: 600; color: var(--ink-900); }
.price-card__tier-name small { font-size: 0.8rem; font-weight: 400; color: var(--ink-500); }
.price-card__tier-price { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink-950); letter-spacing: -0.03em; white-space: nowrap; }
.price-card__tier-price .from { font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-500); margin-right: 5px; }

.price-note { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding: 30px 34px; border: 1px solid var(--ink-100); border-radius: var(--radius-xl); background: var(--warm); }
.price-note h3 { font-size: 1.1rem; }
.price-note p { margin-top: 6px; color: var(--ink-600); font-size: 0.95rem; line-height: 1.7; }
.price-note .btn { flex-shrink: 0; }

/* ---------- about narrative ---------- */
.about-home { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .about-home { grid-template-columns: 1.08fr 0.92fr; gap: 76px; } }
.about-home__copy { margin-top: 22px; max-width: 680px; }
.about-quote { margin-top: 30px; padding: 6px 0 6px 24px; max-width: 620px;
  border-left: 3px solid var(--red-500);
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; line-height: 1.5;
  color: var(--ink-950); letter-spacing: -0.015em; }
.about-proof {
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}
.about-proof__item {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; row-gap: 8px;
  padding: 28px 0; border-top: 1px solid var(--ink-100);
}
.about-proof__item:first-child { border-top: none; }
.about-proof__item span {
  grid-column: 1; grid-row: 1;
  color: var(--red-600); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; padding-top: 3px;
}
.about-proof__item h3 { grid-column: 2; grid-row: 1; font-size: 1.08rem; }
.about-proof__item p { grid-column: 2; grid-row: 2; color: var(--ink-600); font-size: 0.95rem; line-height: 1.85; }

/* ---------- two-column ---------- */
.two-col { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; } }
.two-col--start { align-items: start; }
.sticky-col {}
@media (min-width: 1024px) { .sticky-col { position: sticky; top: 110px; } }

.work-points { display: flex; flex-direction: column; gap: 16px; max-width: 460px;
  padding-top: 28px; border-top: 1px solid var(--ink-200); }
.work-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--ink-700); line-height: 1.7; }
.work-points svg { width: 19px; height: 19px; color: var(--red-500); flex-shrink: 0; margin-top: 4px; }

.pill-list { display: grid; gap: 14px; }
@media (min-width: 640px) { .pill-list { grid-template-columns: repeat(2, 1fr); } }
.pill { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); background: #fff; font-size: 0.9rem; font-weight: 500; color: var(--ink-800); }
.pill svg { width: 19px; height: 19px; color: var(--red-500); flex-shrink: 0; margin-top: 3px; }

.stat-box-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink-100);
  border: 1px solid var(--ink-100); border-radius: var(--radius-xl); overflow: hidden; }
.stat-box { background: #fff; padding: 30px 28px; }
.stat-box__value { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--ink-950); letter-spacing: -0.02em; }
.stat-box__label { font-size: 0.85rem; color: var(--ink-500); margin-top: 8px; line-height: 1.6; }

/* ---------- footer (light, warm) ---------- */
.footer { position: relative; background: var(--warm); color: var(--ink-600); border-top: 1px solid var(--ink-100); }
.footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red-500), var(--c-orange) 34%, var(--c-green) 67%, var(--c-blue));
  opacity: 0.55; }
.footer__inner { padding-block: 76px; }
.footer__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1.2fr 1.4fr; } }
.footer p { font-size: 0.88rem; color: var(--ink-600); margin-top: 18px; max-width: 290px; line-height: 1.85; }
.footer h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-950); font-weight: 600; margin-bottom: 18px; }
.footer ul { display: flex; flex-direction: column; gap: 13px; }
.footer ul a { font-size: 0.9rem; color: var(--ink-600); transition: color 0.2s; }
.footer ul a:hover { color: var(--red-600); }
.footer__mail { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 500; color: var(--ink-950); }
.footer__mail svg { width: 18px; height: 18px; color: var(--red-600); }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ink-200); display: flex; flex-direction: column; gap: 14px; font-size: 0.82rem; color: var(--ink-500); }
@media (min-width: 640px) { .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer__bottom a:hover { color: var(--red-600); }

/* ---------- reveal ---------- */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* graceful cascade for grids of cards / capabilities / value rows */
html.js .grid > .reveal:nth-child(2),
html.js .cap-grid > .reveal:nth-child(2) { transition-delay: 0.09s; }
html.js .grid > .reveal:nth-child(3),
html.js .cap-grid > .reveal:nth-child(3) { transition-delay: 0.18s; }
html.js .grid > .reveal:nth-child(4),
html.js .cap-grid > .reveal:nth-child(4) { transition-delay: 0.27s; }
html.js .grid > .reveal:nth-child(5) { transition-delay: 0.18s; }
html.js .grid > .reveal:nth-child(6) { transition-delay: 0.27s; }

/* ---------- utilities ---------- */
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.flex-gap { display: flex; flex-wrap: wrap; gap: 12px; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Article diagrams (headless CMS / WordStock content)
   The CMS authors diagrams in article bodies using these
   .diagram-* / .article-cta classes. The previous front-end
   never loaded the CMS-side CSS, so diagrams rendered unstyled.
   This standard diagram stylesheet is shared by all articles
   (see /resources/<slug>). Class names are prefixed so they
   don't collide with the site design system above.
   ============================================================ */

/* 図解共通スタイル */
.diagram-wrapper { margin: 2em 0; padding: 1.5em; background: #f8f9fa; border-radius: 8px; }
.diagram-title { font-weight: bold; font-size: 1.1em; color: #0e2a47; margin-bottom: 1em; padding-bottom: 0.5em; border-bottom: 2px solid #0e2a47; }

/* 2列対比レイアウト */
.diagram-compare { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 1em; width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .diagram-compare { grid-template-columns: 1fr !important; } }

/* ボックス */
.diagram-box { border: 2px solid #0e2a47; border-radius: 8px; overflow: hidden; background: #fff; min-width: 0; }
.diagram-box--primary { border-color: #0e2a47; }
.diagram-box--secondary { border-color: #d99834; }
.diagram-box--danger { border-color: #D94141; }
.diagram-box__header { background: #0e2a47; color: #fff; padding: 0.75em 1em; font-weight: bold; }
.diagram-box--secondary .diagram-box__header { background: #d99834; }
.diagram-box--danger .diagram-box__header { background: #D94141; }
.diagram-box__content { padding: 1em; text-align: left; }
.diagram-box__content p { margin: 0 0 0.75em; }
.diagram-box__content ul { margin: 0; padding: 0; list-style: none; }
.diagram-box__content li { position: relative; padding-left: 1.2em; margin: 0.4em 0; line-height: 1.5; }
.diagram-box__content li::before { content: "•"; position: absolute; left: 0; color: #0e2a47; font-weight: bold; }

/* グリッドレイアウト */
.diagram-grid { display: grid !important; gap: 1em; width: 100%; box-sizing: border-box; }
.diagram-grid--2 { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 1em; width: 100%; box-sizing: border-box; }
.diagram-grid--3 { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 1em; width: 100%; box-sizing: border-box; }
.diagram-grid--4 { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 1em; width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .diagram-grid--2, .diagram-grid--3, .diagram-grid--4 { grid-template-columns: 1fr !important; } }

/* ステップ（カードスタイル） */
.diagram-step { background-color: #ffffff; border: 2px solid #d1d5db; border-radius: 12px; padding: 1.5em 1em; text-align: center; min-width: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); margin: 0; }
.diagram-step__number { width: 48px; height: 48px; background-color: #0e2a47; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.3em; margin: 0 auto 0.75em; box-shadow: 0 2px 6px rgba(14,42,71,0.3); }
.diagram-step__title { font-weight: bold; color: #0e2a47; margin-bottom: 0.5em; font-size: 1.05em; }
.diagram-step__content { font-size: 0.9em; color: #6b7280; line-height: 1.5; }

/* フロー図（横型） */
.diagram-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.75em; }
.diagram-flow__item { background: #0e2a47; color: #fff; padding: 0.75em 1.5em; border-radius: 8px; font-weight: bold; text-align: center; }
.diagram-flow__arrow { font-size: 1.5em; color: #0e2a47; font-weight: bold; display: inline-flex; align-items: center; }

/* 強調パネル */
.diagram-highlight { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-left: 4px solid #f59e0b; padding: 1.5em; border-radius: 0 8px 8px 0; }
.diagram-highlight__title { font-weight: bold; font-size: 1.1em; margin-bottom: 0.5em; color: #92400e; }
.diagram-highlight__content { line-height: 1.6; color: #78350f; }

/* チェックリスト（後方互換用） */
.diagram-list { display: flex; flex-direction: column; gap: 0.75em; }
.diagram-list__item { display: flex; align-items: center; gap: 1em; background: #fff; padding: 1em 1.25em; border-radius: 10px; border: 1px solid #e5e7eb; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
.diagram-list__icon { width: 32px; height: 32px; min-width: 32px; background: linear-gradient(135deg, #0e2a47 0%, #1a4a7a 100%); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; box-shadow: 0 2px 6px rgba(14,42,71,0.25); }
.diagram-list__text { flex: 1; font-size: 0.95em; color: #374151; line-height: 1.5; font-weight: 500; }

/* 縦型ステップ（フロー図） */
.diagram-steps-vertical { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 600px; margin: 0 auto; }
.diagram-step-vertical { display: flex; align-items: flex-start; gap: 1em; padding: 1.25em; background: #ffffff; border: 2px solid #0e2a47; border-radius: 12px; }
.diagram-step-vertical__number { width: 40px; height: 40px; background-color: #0e2a47; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2em; flex-shrink: 0; }
.diagram-step-vertical__body { flex: 1; min-width: 0; }
.diagram-step-vertical__title { font-weight: bold; color: #0e2a47; font-size: 1.1em; margin-bottom: 0.5em; }
.diagram-step-vertical__content { color: #4b5563; font-size: 0.95em; line-height: 1.6; }
.diagram-step-vertical__content ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.diagram-step-vertical__content li { position: relative; padding-left: 1.2em; margin: 0.3em 0; list-style: none !important; list-style-type: none !important; }
.diagram-step-vertical__content li::before { content: "•"; position: absolute; left: 0; color: #0e2a47; }
.diagram-step-vertical__arrow { text-align: center; color: #0e2a47; font-size: 0; padding: 0; margin: 0; line-height: 1; font-family: serif; }
.diagram-step-vertical__arrow::after { content: "↓"; font-size: 1.5rem; display: block; margin: 1em 0; font-family: serif; }

/* ポイントリスト */
.diagram-points { display: flex; flex-direction: column; gap: 0.75em; }
.diagram-point { display: flex; align-items: flex-start; gap: 1em; background: #fff; padding: 1em 1.25em; margin: 0 0 10px 0; border-radius: 10px; border: 1px solid #e5e7eb; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
.diagram-point__icon { width: 32px; height: 32px; min-width: 32px; background: linear-gradient(135deg, #0e2a47 0%, #1a4a7a 100%); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; box-shadow: 0 2px 6px rgba(14,42,71,0.25); }
.diagram-point__body { flex: 1; min-width: 0; }
.diagram-point__title { font-weight: bold; color: #0e2a47; font-size: 1em; margin-bottom: 0.25em; }
.diagram-point__description { color: #6b7280; font-size: 0.9em; line-height: 1.5; }

/* 縦型フロー（シンプル） */
.diagram-flow-vertical { display: flex; flex-direction: column; align-items: center; gap: 0.5em; }
.diagram-flow-vertical__item { padding: 0.75em 1.5em; background: #0e2a47; color: #fff; border-radius: 8px; font-weight: 500; text-align: center; min-width: 200px; }
.diagram-flow-vertical__arrow { color: #9ca3af; font-size: 1.5em; font-weight: bold; line-height: 1; }

/* CTA（コールトゥアクション）セクション - 既定 article-cta（自前スタイル付き） */
.article-cta { margin: 3em 0 2em; padding: 2.5em 2em; background: linear-gradient(135deg, #0e2a47 0%, #1a4a7a 100%); border-radius: 16px; text-align: center; color: #fff; }
.article-cta h2 { color: #fff !important; border: none !important; margin: 0 0 0.75em !important; padding: 0 !important; font-size: 1.5em !important; }
.article-cta p { margin: 0 0 1.5em !important; opacity: 0.95; line-height: 1.7; font-size: 1.05em; }
.article-cta a, .article-cta .cta-button { display: inline-block !important; background: #d99834 !important; color: #fff !important; padding: 0.9em 2.5em !important; border-radius: 8px !important; text-decoration: none !important; font-weight: bold !important; font-size: 1.1em !important; transition: background 0.3s ease !important; box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important; }
.article-cta a:hover, .article-cta .cta-button:hover { background: #c5872e !important; }

/* サイクル図（縦型カードスタイル） */
.diagram-cycle { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 0 !important; width: 100%; max-width: 600px; margin: 0 auto; }
.diagram-cycle__item { display: flex; align-items: flex-start; gap: 1em; padding: 1.25em; background: #ffffff; border: 2px solid #0e2a47; border-radius: 12px; width: 100%; box-sizing: border-box; margin: 0 !important; }
.diagram-cycle__number { width: 40px; height: 40px; background-color: #0e2a47; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2em; flex-shrink: 0; }
.diagram-cycle__content { font-weight: bold; color: #0e2a47; font-size: 1.1em; }
.diagram-cycle__arrow { text-align: center; color: #0e2a47; font-size: 0; padding: 0; margin: 0; line-height: 1; font-family: serif; }
.diagram-cycle__arrow::after { content: "↓"; font-size: 1.5rem; display: block; margin: 1em 0; font-family: serif; }
.diagram-cycle__return { text-align: center; color: #0e2a47; font-size: 0; padding: 0; margin: 0; line-height: 1; font-family: serif; }
.diagram-cycle__return::after { content: "↵"; font-size: 1.5rem; display: block; margin: 1em 0; font-family: serif; }
