/* =========================================================
   Shannon LLC — page-specific styles (hero, services, etc.)
   ========================================================= */

/* ----------------- Reveal on scroll (subtle fade + rise) ----------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity .8s cubic-bezier(.2, .6, .2, 1),
    transform .8s cubic-bezier(.2, .6, .2, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* When JS is disabled, show everything — no need to scroll-trigger */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(17,19,24,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,19,24,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  animation: gridDrift 24s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, #000 55%, transparent 100%);
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 72px 72px; }
}
.hero__bg svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1600px, 160vw);
  height: auto;
  opacity: .85;
  filter: blur(.2px);
}
.hero__bg::before {
  /* very soft vignette in the very center only, to avoid grid interfering with headline */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 28% at 50% 45%, rgba(255,255,255,.6), transparent 70%);
  pointer-events: none;
}

/* Hero particle layer (particles.js canvas) */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__particles canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none !important; }
  .hero__particles { display: none; }
}

.hero__inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.hero__headline {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 32px;
  text-wrap: balance;
}
.hero__headline .line { display: block; }
.hero__headline .grad-text { display: inline; }

.hero__sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 48px;
  text-wrap: pretty;
  line-height: 1.9;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .hero__ctas { flex-wrap: nowrap; }
  .hero__ctas .btn { flex: 1 1 0; padding: 0 14px; min-width: 0; font-size: 13px; }
  .hero__ctas .btn .arrow { width: 12px; height: 12px; }
}

/* ===================================================================
   SERVICES (2-up)
   =================================================================== */
.services-foot {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.services {
  /* 6-col base so 5 cards lay out as 3 + 2 with the bottom row centered.
     Each card spans 2 cols → 3 cards = 6 cols (full row);
     2 cards in last row also span 2 cols each (4 cols), and the first
     of those is offset to start at column 2 to center it. */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.services > .service-card { grid-column: span 2; }
.services > .service-card:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 1080px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services > .service-card { grid-column: auto; }
  .services > .service-card:nth-child(4) { grid-column: auto; }
  /* Last (5th) card spans both columns so it doesn't sit alone */
  .services > .service-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .services > .service-card:last-child { grid-column: auto; }

  /* 採用ページの募集職種だけは、スマホで横スクロールにする。
     縦に積むと1枚が画面いっぱいになり、他に何を募集しているかが見えない。
     画面の端まで送れるよう、コンテナの余白ぶん外へ広げてから戻す。 */
  #openings .services {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--pad));
    /* overflow で上下も切れるので、ホバー枠と影のぶん上下に余白を持つ */
    margin-block: -12px;
    padding: 12px var(--pad) 16px;
    scroll-padding-inline: var(--pad); /* スナップしても左右の余白を保つ */
  }
  #openings .services > .service-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
}

/* 日本語の見出しは既定だとどこでも改行され、「インフラエンジ／ニア」のように
   語の途中で割れる。対応ブラウザでは文節で折り返す（未対応でも従来どおり）。 */
.section-title, .service-card h3 { word-break: auto-phrase; }

/* 採用ページの募集職種。サービス紹介と同じ大きさだと、職種が増えるほど
   1枚が画面を占めて一覧性がなくなる。ここだけ詰める。 */
#openings .service-card { padding: 28px 26px 24px; }
#openings .service-card__num { margin-bottom: 14px; }
#openings .service-card h3 { font-size: 21px; margin: 0 0 10px; }
#openings .service-card p { font-size: 14.5px; line-height: 1.75; margin: 0 0 16px; }
#openings .service-card ul { margin: 0 0 16px; font-size: 13.5px; }
#openings .service-card li { padding: 8px 0; gap: 10px; align-items: flex-start; }

.service-card {
  position: relative;
  isolation: isolate;
  padding: 48px 44px 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  /* As a link */
  color: inherit;
  text-decoration: none;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17,19,24,.14);
  box-shadow: 0 30px 60px -30px rgba(17,19,24,.22);
}
/* Gradient outline frame slides in from the left on hover (whole-card affordance) */
.service-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s cubic-bezier(.22,.61,.36,1);
}
.service-card:hover::after { clip-path: inset(0 0 0 0); }
/* The CTA inside the card is just a visual pointer — the card itself is the link */
.service-card__cta {
  margin-top: auto;
  border-bottom: 0 !important;
  background-image: none !important;
  padding-bottom: 0 !important;
}
.service-card:hover .service-card__cta { gap: 12px; }

.service-card__num {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-card__num::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
  display: inline-block;
}

.service-card h3 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.service-card p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 32px;
  line-height: 1.85;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-top: 1px solid var(--line-soft, #ececec);
}
.service-card li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft, #ececec);
}
.service-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex: 0 0 5px;
  opacity: .4;
}

/* 募集終了バッジ（募集職種の一覧カード・個別ページ head で共用） */
.job-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink-3);
  color: #fff;
}
.service-card .job-badge { margin: 0 0 18px; }
.page-head .job-badge { margin: 0 0 20px; }

/* 募集終了カードは減光し、hover のアクセント枠・浮きを止める（クリックは可） */
.service-card.is-closed { opacity: .6; }
.service-card.is-closed:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.service-card.is-closed:hover::after { clip-path: inset(0 100% 0 0); }

/* ===================================================================
   REASONS
   =================================================================== */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

.reason {
  background: #fff;
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reason__num {
  font-family: var(--font-ui);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
}
.reason__num::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 14px;
  background: var(--grad);
}
.reason h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.reason p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
}

/* ===================================================================
   TECH STACK — tag chips
   =================================================================== */
.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
a.tag:hover { border-color: rgba(17,19,24,.18); background: var(--bg-alt, #f7f7f8); }

/* ===================================================================
   NEWS TICKER — single-line latest news between hero and services
   =================================================================== */
.news-ticker {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.news-ticker__inner {
  display: flex;
  align-items: center;
  padding: 18px 0;
  font-size: 14px;
}
.news-ticker__link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
.news-ticker__link:hover { color: var(--ink-3); }
.news-ticker__link:hover .news-ticker__arrow { transform: translateX(3px); }
.news-ticker__date {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.news-ticker__cat {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  background: #fff;
  white-space: nowrap;
}
.news-ticker__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}
.news-ticker__link:hover .news-ticker__title {
  text-decoration-color: currentColor;
}
.news-ticker__arrow {
  flex: 0 0 auto;
  transition: transform .2s ease;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  .news-ticker { padding: 0 16px; }
  .news-ticker__inner { padding: 12px 0; gap: 10px; font-size: 13px; }
  .news-ticker__link { gap: 10px; }
  .news-ticker__date { font-size: 12px; }
  .news-ticker__cat { display: none; }
  .news-ticker__title { font-size: 13px; }
  .news-ticker__arrow { width: 12px; height: 12px; }
}

/* ===================================================================
   SUB-SERVICES — Detailed sub-offerings on a service page (e.g. Infra)
   =================================================================== */
.sub-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.sub-services > .sub-service:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .sub-services { grid-template-columns: 1fr; }
  .sub-services > .sub-service:nth-last-child(1):nth-child(odd) { grid-column: auto; }
}
.sub-service {
  position: relative;
  isolation: isolate;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.sub-service--clickable { cursor: pointer; }
.sub-service--clickable::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s cubic-bezier(.22,.61,.36,1);
}
.sub-service--clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(17,19,24,.14);
  box-shadow: 0 30px 60px -30px rgba(17,19,24,.22);
}
.sub-service--clickable:hover::after { clip-path: inset(0 0 0 0); }
.sub-service--clickable:hover .sub-service__more { gap: 12px; }
.sub-service > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.sub-service__num {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
}
.sub-service__cat {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.sub-service header h3 {
  flex: 1 1 100%;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 0;
}
.sub-service > p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}
.sub-service__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
}
@media (max-width: 520px) { .sub-service__list { grid-template-columns: 1fr; } }
.sub-service__list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.7;
}
.sub-service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .35;
}
.sub-service__use {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ===================================================================
   PLAN CARDS — Pricing tiers on service pages
   =================================================================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.plan-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .plan-grid, .plan-grid--2 { grid-template-columns: 1fr; } }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.plan:hover {
  border-color: rgba(17,19,24,.16);
  box-shadow: 0 18px 40px -28px rgba(17,19,24,.18);
}
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 24px 48px -28px rgba(91,108,255,.4);
}
.plan__tag {
  align-self: flex-start;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
}
.plan--featured .plan__tag {
  border-color: transparent;
  color: #fff;
  background: #5B6CFF;
}
.plan h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.plan__price {
  font-family: var(--font-ui);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0;
}
.plan__unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 6px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.plan li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft, #ececec);
}
.plan li:last-child { border-bottom: 0; }

/* ===================================================================
   LOGO MARQUEE — infinite horizontal scroll for Tech Stack
   =================================================================== */
.logo-marquee {
  margin-top: 56px;
  position: relative;
  /* Soft edge fade so chips don't pop in/out abruptly */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee__row {
  overflow: hidden;
  padding: 14px 0;
}
.logo-marquee__row + .logo-marquee__row { margin-top: 8px; }

.logo-marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  animation-play-state: running;
}
.logo-marquee__row--rtl .logo-marquee__track {
  animation-direction: reverse;
  animation-duration: 70s; /* slightly different speed for visual variety */
}

.logo-marquee:hover .logo-marquee__track,
.logo-marquee__track:focus-within {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  /* Track holds the list duplicated, so -50% loops seamlessly */
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Marquee chip styling (reuses .tech-logo from the original markup) */
.logo-marquee .tech-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.logo-marquee .tech-logo__icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; }
}

/* ===================================================================
   FLOW STEPS
   =================================================================== */
.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.flow-row {
  display: grid;
  grid-template-columns: 160px 1fr 200px;
  gap: 40px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
@media (max-width: 860px) {
  .flow-row { grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0; }
  .flow-row__meta { grid-column: 1 / -1; padding-left: 92px; margin-top: -4px; text-align: left; }
}
.flow-row__num {
  font-family: var(--font-ui);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.flow-row__body h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -.005em;
}
.flow-row__body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  max-width: 540px;
}
.flow-row__meta {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
  text-align: right;
}

/* ===================================================================
   FAQ
   =================================================================== */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.is-open { border-color: #dadce2; }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-jp);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q .icon {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  position: relative;
}
.faq-q .icon::before,
.faq-q .icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.faq-q .icon::before { width: 12px; height: 1.5px; }
.faq-q .icon::after  { width: 1.5px; height: 12px; }
.faq-item.is-open .icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s cubic-bezier(.22, .61, .36, 1);
}
.faq-item.is-open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* ===================================================================
   PAGE HEADER (subpages)
   =================================================================== */
.page-head {
  padding: clamp(80px, 10vw, 120px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17,19,24,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,19,24,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, #000 55%, transparent 100%);
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 60% at 10% 20%, rgba(0,212,228,.05), transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(255,61,154,.05), transparent 60%);
}
.page-head__breadcrumb {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: .04em;
}
.page-head__breadcrumb a:hover { color: var(--ink); }
.page-head__breadcrumb span { margin: 0 8px; opacity: .5; }
.page-head__breadcrumb span.page-head__breadcrumb__current {
  display: inline-block;
  max-width: min(60ch, 70%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  opacity: 1;
  margin: 0;
}
@media (max-width: 640px) {
  .page-head__breadcrumb span.page-head__breadcrumb__current { max-width: 55%; }
}
.page-head h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -.015em;
  line-height: 1.2;
  text-wrap: balance;
  word-break: auto-phrase;
}
@media (max-width: 720px) {
  .page-head h1 { font-size: 28px; line-height: 1.3; }
}
/* hero.image を持つ LP: 画像を全面背景にしたダークヒーロー（ヘッダーは data-nav-dark で白反転） */
.page-head--cover {
  min-height: clamp(440px, 52vh, 600px);
  display: flex;
  align-items: center;
  padding: clamp(140px, 14vw, 188px) 0 clamp(56px, 7vw, 80px);
  border-bottom: 0;
  color: #fff;
  background: var(--ink);
}
@media (max-width: 720px) { .page-head--cover { padding-top: 80px; min-height: 420px; } }
.page-head--cover::after { display: none; }
.page-head--cover > .container { position: relative; z-index: 1; width: 100%; }
.page-head__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.page-head__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,15,30,.60) 0%, rgba(0,15,30,.42) 45%, rgba(0,15,30,.85) 100%); }
.page-head--cover h1, .page-head--cover h1 .grad-text, .page-head--cover > .container > p { color: #fff; }
.page-head--cover .page-head__breadcrumb, .page-head--cover .page-head__breadcrumb a { color: rgba(255,255,255,.72); }
.page-head--cover .page-head__breadcrumb a:hover { color: #fff; }
.page-head--cover .page-head__breadcrumb span { color: rgba(255,255,255,.5); }
.page-head--cover .page-head__breadcrumb__current { color: rgba(255,255,255,.9); }
.page-head__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
/* SP: 2ボタンが折り返して縦積みにならないよう、横並びを維持できるサイズに詰める */
@media (max-width: 640px) {
  .page-head__cta, .hero__ctas { gap: 8px; flex-wrap: nowrap; }
  /* 長いラベル(診断系)でも2ボタンが横並びに収まるサイズ。矢印はSPでは省略。
     flex等分 + min-width:0 で、狭い端末でも折り返さず行幅を分け合う */
  .page-head__cta .btn, .hero__ctas .btn { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 8px; font-size: 12px; gap: 0; }
  .page-head__cta .btn .arrow, .hero__ctas .btn .arrow { display: none; }
}
.page-head p {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.85;
}
@media (max-width: 720px) {
  .page-head p { font-size: 14px; line-height: 1.75; }
}

/* ===================================================================
   Pain points list (subpages)
   =================================================================== */
.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  row-gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  counter-reset: pain;
}
@media (max-width: 720px) { .pain-list { grid-template-columns: 1fr; column-gap: 0; } }
.pain {
  counter-increment: pain;
  position: relative;
  padding: 28px 0 28px 76px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
}
.pain::before {
  content: counter(pain, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
}


/* === Services hub — editorial category sections ====================== */
.services-cat-section {
  position: relative;
  /* 透過スティッキーヘッダー(88px)の下にアンカー先が潜らないようオフセット。
     トップの「インフラ構築」「エンジニアリングエージェンシー」から #infrastructure / #agency で飛ぶ。 */
  scroll-margin-top: 96px;
}
.services-cat__works[id] { scroll-margin-top: 96px; }
.services-cat {
  display: grid;
  gap: 40px;
}
.services-cat__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: flex-start;
  max-width: 880px;
}
.services-cat__num {
  font-family: var(--font-ui);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.services-cat__headtext .eyebrow { margin-bottom: 12px; }
.services-cat__title {
  font-family: var(--font-jp);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 16px;
}
.services-cat__lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0;
  max-width: 640px;
}

.services-cat__body {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
  gap: 56px;
  padding-top: 8px;
}
.services-cat__body--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}
@media (max-width: 860px) {
  .services-cat__body { grid-template-columns: 1fr; gap: 36px; }
  .services-cat__head { grid-template-columns: 1fr; gap: 16px; }
}

/* カテゴリ配下の関連事例（プロダクトの警備サイン/規程ログ等） */
.services-cat__works {
  margin-top: 56px;
}
@media (max-width: 860px) {
  .services-cat__works { margin-top: 40px; }
}

.services-cat__sub {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.services-cat__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}
.services-cat__list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2, #eef0f3);
  position: relative;
  padding-left: 18px;
}
.services-cat__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 1px;
  background: var(--ink-3);
  opacity: .5;
}
.services-cat__list li:last-child { border-bottom: 0; }

.services-cat__col .btn--ghost {
  align-self: flex-start;
}

/* Deep LP cards within a category */
.services-lp-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.services-lp {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.services-lp::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s cubic-bezier(.22,.61,.36,1);
}
.services-lp:hover {
  transform: translateY(-2px);
  border-color: rgba(17,19,24,.14);
  box-shadow: 0 30px 60px -30px rgba(17,19,24,.22);
}
.services-lp:hover::after { clip-path: inset(0 0 0 0); }
.services-lp__label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.services-lp h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.45;
}
.services-lp p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 14px;
}
.services-lp__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background-image: var(--grad);
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: gap .2s ease;
}
.services-lp:hover .services-lp__cta { gap: 12px; }

/* === News article body — link styling ================================ */
.news-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(91,108,255,.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
  /* 長い URL をリンクテキストにしても SP 幅で右に突き抜けないよう折り返す */
  overflow-wrap: anywhere;
}
.news-body a:hover {
  color: #5B6CFF;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

/* === News article body — table ======================================= */
/* Markdown の表。thead/tbody を display:block の中に置くと匿名の table 箱に
   まとめて包まれるので、列は揃ったまま狭い画面では表ごと横スクロールになる。 */
.news-body table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.7;
}
.news-body th,
.news-body td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.news-body th {
  background: var(--bg-alt, #f6f8fa);
  font-weight: 700;
  color: var(--ink);
}

/* === News article — back-to-list ===================================== */
.news-back {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.btn .arrow--back { transition: transform .2s ease; }
.btn:hover .arrow--back { transform: translateX(-3px); }

/* === Recruit page — restructured layouts ============================= */

/* H3 subsection title (within an H2 section) */
.subsection-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 48px 0 16px;
}

/* feature-list — lightweight 2-column dl/dt/dd grid (no card chrome) */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 0;
  margin: 36px 0 0;
  padding: 0;
}
.feature-list > div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feature-list > div:nth-last-child(-n+2) { /* keep bottom border on last row */ }
.feature-list > div:last-child,
.feature-list > div:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}
.feature-list dt {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -.005em;
}
.feature-list dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .feature-list { grid-template-columns: 1fr; column-gap: 0; }
}

/* 入社後の役割 — シンプルな2項目レイアウト */
.recruit-onboard {
  display: grid;
  gap: 24px;
  margin: 32px 0 48px;
}
.recruit-onboard__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.recruit-onboard__item:last-child { border-bottom: 1px solid var(--line); }
.recruit-onboard__num {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.recruit-onboard__item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.recruit-onboard__item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  margin: 0;
}

/* 技術スタック方針 */
.recruit-stack {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt, #f7f7f8);
}
.recruit-stack h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  margin: 0 0 12px;
}
.recruit-stack p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
  margin: 0;
}

/* 働き方・環境 — コンパクトな4列カードグリッド */
.perk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
@media (max-width: 1024px) { .perk-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .perk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .perk-grid { grid-template-columns: 1fr; } }
.perk {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.perk h4 {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 6px;
}
.perk p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0;
}

/* ===================================================================
   ABOUT PAGE
   =================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.about-grid dt,
.about-grid dd { padding: 20px 24px; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; line-height: 1.7; }
.about-grid dt {
  background: var(--bg-alt);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.about-grid dd { color: var(--ink-3); }
.about-grid__note { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.about-grid__list { list-style: none; margin: 0; padding: 0; }
.about-grid__list li { position: relative; padding-left: 16px; }
.about-grid__list li + li { margin-top: 6px; }
.about-grid__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 1px; background: var(--accent); }
.about-alert {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-left: 2px solid var(--ink);
  background: var(--bg-muted);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-3);
  max-width: 680px;
}
.about-grid dt:last-of-type,
.about-grid dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid dt { border-right: 0; }
}

/* 役員プロフィール — 経歴ボタン + モーダル */
.about-grid__officers { display: flex; flex-direction: column; gap: 12px; }
.about-grid__officers .officer {
  display: grid;
  grid-template-columns: 5em 1fr auto;
  align-items: center;
  column-gap: 12px;
  line-height: 1.5;
}
.about-grid__officers .officer__name { min-width: 0; }
.bio-btn {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 0;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  vertical-align: middle;
  transition: border-color .2s ease, color .2s ease;
}
.bio-btn:hover { border-color: var(--accent); color: var(--ink); }

.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bio-modal.is-open { display: flex; }
.bio-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 10, 20, .55); }
.bio-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 20px;
  padding: 40px 36px 36px;
}
.bio-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
}
.bio-modal__close:hover { color: var(--ink); }
.bio-modal__role {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.bio-modal__name {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
}
.bio-modal__name span {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--muted);
  margin-left: 10px;
}
.bio-modal__text {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0;
}
.bio-modal__quals {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bio-modal__quals dt {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.bio-modal__quals dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ===================================================================
   CONTACT PAGE FORM
   =================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-side {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  height: fit-content;
  font-family: var(--font-ui);
}
.contact-side h4 {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}
.contact-side .row .k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.contact-side .row .v { font-size: 15px; color: var(--ink); font-weight: 500; word-break: break-all; }
.contact-side .divider { height: 1px; background: var(--line); }

/* ===================================================================
   reCAPTCHA — hide floating badge (disclaimer is shown inside the form)
   =================================================================== */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* ===================================================================
   CONTACT INTRO / NOTICE — copy blocks above the CF7 form
   =================================================================== */
.contact-intro {
  margin: 0 0 56px;
}
.contact-intro p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.contact-intro p:last-child { margin-bottom: 0; }

/* ===================================================================
   CONTACT FORM 7 — match site typography / inputs
   =================================================================== */
.wpcf7 {
  font-family: var(--font-jp);
}
.wpcf7-form > p {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}
.wpcf7-form > p:last-of-type { margin-bottom: 0; }
.wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.wpcf7-form-control-wrap {
  display: block;
  margin-top: 4px;
}
input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
textarea.wpcf7-form-control,
select.wpcf7-form-control {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
textarea.wpcf7-form-control:focus,
select.wpcf7-form-control:focus {
  outline: none;
  border-color: rgba(91,108,255,.55);
  box-shadow: 0 0 0 4px rgba(91,108,255,.10);
}
.wpcf7-form textarea.wpcf7-form-control {
  height: 120px;
  min-height: 80px;
  resize: vertical;
}
.wpcf7-form-control[type="checkbox"],
.wpcf7-form-control[type="radio"] {
  margin-right: 6px;
  accent-color: #5B6CFF;
}
.wpcf7-list-item {
  display: inline-block;
  margin: 0 16px 0 0;
  font-size: 14px;
}

/* Required marker — small red badge */
.wpcf7-form .wpcf7-required-marker,
.wpcf7-form span.required,
.wpcf7-form .required {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  color: #fff;
  background: #e25060;
  border-radius: 4px;
  text-indent: 0;
}

/* Group label (radio header) */
.wpcf7-form .form-group-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
  margin-bottom: 10px !important;
}

/* Radio group as card-style choice list */
.wpcf7-form .contact-radio-group {
  margin: 0 0 22px !important;
}
.wpcf7-form .contact-radio-group .wpcf7-radio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .wpcf7-form .contact-radio-group .wpcf7-radio { grid-template-columns: 1fr; }
}
.wpcf7-form .contact-radio-group .wpcf7-list-item {
  display: block;
  margin: 0;
  padding: 0;
}
.wpcf7-form .contact-radio-group .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  margin: 0;
}
.wpcf7-form .contact-radio-group .wpcf7-list-item label:hover {
  border-color: rgba(91,108,255,.4);
  background: rgba(91,108,255,.03);
  color: var(--ink);
}
.wpcf7-form .contact-radio-group input[type="radio"] {
  margin: 0;
  flex: 0 0 auto;
}
.wpcf7-form .contact-radio-group input[type="radio"]:checked + .wpcf7-list-item-label,
.wpcf7-form .contact-radio-group label:has(input[type="radio"]:checked) {
  border-color: rgba(91,108,255,.55);
  background: rgba(91,108,255,.06);
  color: var(--ink);
}

/* Privacy consent — large clickable card */
.wpcf7-form .contact-consent {
  margin: 32px 0 12px !important;
  padding: 0;
}
.wpcf7-form .contact-consent .wpcf7-list-item {
  display: block;
  margin: 0;
  padding: 0;
}
.wpcf7-form .contact-consent .wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.wpcf7-form .contact-consent .wpcf7-list-item > label:hover {
  border-color: rgba(91,108,255,.4);
  background: rgba(91,108,255,.03);
}
.wpcf7-form .contact-consent .wpcf7-list-item > label:has(input[type="checkbox"]:checked) {
  border-color: rgba(91,108,255,.55);
  background: rgba(91,108,255,.06);
  box-shadow: 0 0 0 3px rgba(91,108,255,.08);
}
.wpcf7-form .contact-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #5B6CFF;
  cursor: pointer;
}
.wpcf7-form .contact-consent .wpcf7-list-item-label {
  flex: 1 1 auto;
  line-height: 1.5;
}
.wpcf7-form .contact-consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.wpcf7-form .contact-consent a:hover { color: #5B6CFF; }

/* Submit button — match .btn--primary visually */
.wpcf7-form p:has(input.wpcf7-submit) {
  text-align: center;
  margin-top: 32px;
  position: relative;
}
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: var(--grad);
  background-size: 220% 100%;
  background-position: 30% 50%;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
  box-shadow: 0 14px 28px -12px rgba(91,108,255,.45);
  transition: background-position .25s ease, transform .15s ease, box-shadow .2s ease;
}
.wpcf7-submit:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -12px rgba(91,108,255,.5);
}
.wpcf7-submit:active { transform: translateY(0); }
.wpcf7-submit[disabled] { opacity: .6; cursor: not-allowed; }

/* Error / response messages */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #d54158;
  font-weight: 500;
}
.wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 16px !important;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 10px;
  border-width: 1px !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background: #fef2f3;
  border-color: #f0c2c8 !important;
  color: #b13040;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #eef9f1;
  border-color: #cfeacf !important;
  color: #1f7a3f;
}

/* Spinner — positioned absolutely so it doesn't offset the centered submit button */
.wpcf7-spinner {
  position: absolute;
  top: 50%;
  margin-left: 12px;
  transform: translateY(-50%);
}

/* ===================================================================
   PLATFORM TABSET — keep only the JS-referenced selectors
   (.tabset__tab and .tabset__panel are queried by app.js)
   =================================================================== */
.tabset__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  position: relative;
}
.tabset__tab:hover { background: var(--bg-muted); color: var(--ink); }
.tabset__tab.is-active {
  background: linear-gradient(135deg, rgba(0,212,228,.08), rgba(91,108,255,.08) 50%, rgba(255,61,154,.08));
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(91,108,255,.18);
}
.tabset__tab.is-active::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--grad);
  border-radius: var(--radius);
}
.tabset__panel {
  display: none;
  animation: tabFade .3s ease both;
}
.tabset__panel.is-active { display: block; }
@keyframes tabFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ===================================================================
   CASES — list grid & detail
   =================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip:hover { background: var(--bg-muted); color: var(--ink); }
.filter-chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.filter-chip__n {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(17,19,24,.08);
  color: inherit;
}
.filter-chip.is-active .filter-chip__n { background: rgba(255,255,255,.18); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  --accent: #5B6CFF;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(17,19,24,.14), 0 4px 12px -6px rgba(17,19,24,.08);
  border-color: rgba(91,108,255,.25);
}
/* Gradient outline frame slides in from the left on hover */
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 3;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s cubic-bezier(.22,.61,.36,1);
}
.case-card:hover::after { clip-path: inset(0 0 0 0); }
.case-card.is-hidden { display: none; }
.case-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-muted);
  position: relative;
}
.case-card__img svg,
.case-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-card__img img {
  transition: transform .6s ease;
}
.case-card:hover .case-card__img img { transform: scale(1.04); }
.case-card__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.case-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-card__industry {
  display: inline-flex;
  align-items: center;
  color: var(--ink-3);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.case-card__title {
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}
.case-card__summary {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.75;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.case-card__tags .tag {
  font-size: 11px;
  padding: 3px 9px;
}
.case-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-2);
}
.case-card__arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-muted);
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.case-card:hover .case-card__arrow {
  background: var(--ink);
  color: #fff;
  transform: translateX(2px);
}

@media (max-width: 980px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Related cases (used on service pages) ===== */
.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .related-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .related-cases-grid > :nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .related-cases-grid { grid-template-columns: 1fr; }
  .related-cases-grid > :nth-child(3) { display: block; }
  .cases-grid { grid-template-columns: 1fr; }
}

/* Works / 支援実績 — horizontal-scroll carousel (home + services) */
.works-carousel { position: relative; }
.works-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}
.works-nav__btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.works-nav__btn:hover { background: var(--grad); color: #fff; border-color: transparent; }
.works-nav__btn[disabled] { opacity: .28; cursor: default; }
.works-nav__btn[disabled]:hover { background: transparent; color: var(--ink); border-color: var(--line); }
.works-scroll {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* bleed to the right edge of the viewport so cards run off-screen */
  padding: 4px calc(50vw - 50%) 20px 0;
  margin-right: calc(50% - 50vw);
  scrollbar-color: var(--line) transparent;
}
.works-scroll > .case-card,
.works-scroll > .insight-card,
.works-scroll > .rel-card {
  flex: 0 0 clamp(280px, 30vw, 360px);
  scroll-snap-align: start;
}
/* 関連サービス（related ブロック）の横スクロール用テキストカード */
.rel-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.rel-card:hover { border-color: rgba(91,108,255,.4); transform: translateY(-2px); box-shadow: var(--shadow); }
.rel-card:hover .rel-card__title,
.rel-card:hover .rel-card__more { color: var(--accent); }
.rel-card__cat {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rel-card__title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.rel-card__body { font-size: 14px; line-height: 1.7; color: var(--ink-2); flex: 1 1 auto; }
.rel-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.rel-card__more svg { width: 13px; height: 13px; }
.works-scroll::-webkit-scrollbar { height: 6px; }
.works-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.works-scroll::-webkit-scrollbar-track { background: transparent; }
.works-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ===================================================================
   NEWS LIST (お知らせ一覧)
   =================================================================== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.news-list > li {
  border-bottom: 1px solid var(--line);
}
.news-card {
  display: grid;
  grid-template-columns: 110px 96px 1fr 24px;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
  position: relative;
}
.news-card:hover { background: var(--bg-alt, #f7f7f8); }
.news-card:hover .news-card__title { color: var(--ink); text-decoration-color: currentColor; }
.news-card::after { display: none; }
.news-card__date {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.news-card__cat {
  justify-self: start;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  background: #fff;
  white-space: nowrap;
}
.news-card__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}
@media (max-width: 720px) {
  .news-card {
    grid-template-columns: 1fr 16px;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 18px 4px;
  }
  .news-card__date { grid-column: 1 / 2; grid-row: 1; font-size: 12px; }
  .news-card__cat { grid-column: 1 / 2; grid-row: 1; justify-self: end; }
  .news-card__title { grid-column: 1 / 2; grid-row: 2; font-size: 14.5px; }
  .news-card::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* ===================================================================
   CASE DETAIL — long-form article layout
   =================================================================== */
.case-article {
  --accent: #5B6CFF;
  background: #fff;
}
.case-article__header {
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px);
  background: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.case-article__header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17,19,24,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,19,24,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, #000 55%, transparent 100%);
}
.case-article__header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 60% at 10% 20%, rgba(0,212,228,.06), transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(255,61,154,.06), transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.case-article__breadcrumb {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.case-article__breadcrumb a { color: var(--ink-3); text-decoration: none; }
.case-article__breadcrumb a:hover { color: var(--ink); }
.case-article__breadcrumb span { margin: 0 8px; opacity: .55; }
.case-article__industry {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.case-article__title {
  font-family: var(--font-jp);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 20px;
  text-wrap: balance;
}
.case-article__client {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 20px;
  letter-spacing: .01em;
}
.case-article__lead {
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 820px;
}
.case-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-article__body {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.case-article__section {
  margin-bottom: 64px;
}
.case-article__section:last-of-type { margin-bottom: 0; }
.case-article__section h2 {
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}
.case-article__section > p {
  font-size: 17px;
  line-height: 2;
  color: var(--ink-2);
  margin: 0;
}

/* Approach steps — numbered ordered list */
.case-article__steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}
.case-article__steps > li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.case-article__step-num {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  letter-spacing: -.02em;
}
.case-article__step-text {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* KSF as plain definition list with row dividers */
.case-article__ksf { margin: 0; }
.case-article__ksf > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2, #eef0f3);
}
.case-article__ksf > div:first-child { padding-top: 0; }
.case-article__ksf > div:last-child { border-bottom: 0; padding-bottom: 0; }
.case-article__ksf dt {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.case-article__ksf dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* Inline CTA — minimal, centered, separated by a thin top rule */
.case-article__inline-cta {
  margin-top: 64px;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.case-article__inline-cta h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--ink);
}
.case-article__inline-cta p {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--muted);
}

/* Before / After list */
.ba-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.ba-list__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.ba-list__row:last-child { border-bottom: 0; }
.ba-list__k {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ba-list__values {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.ba-list__before {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(17,19,24,.18);
  text-underline-offset: 4px;
}
.ba-list__arrow {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-3);
  opacity: .55;
}
.ba-list__after {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
}
@media (max-width: 720px) {
  .ba-list__row { grid-template-columns: 1fr; gap: 8px; padding: 20px 22px; }
  .ba-list__after { font-size: 19px; }
}

/* ===================================================================
   PAGINATION (the_posts_pagination / paginate_links)
   =================================================================== */
.pagination,
nav.pagination,
.navigation.pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.pagination .nav-links,
.navigation.pagination { margin-top: 36px; }
.navigation.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 14px;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.page-numbers:hover { border-color: rgba(17,19,24,.18); color: var(--ink); background: var(--bg-alt, #f7f7f8); }
.page-numbers.current {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}
.page-numbers.dots { border: 0; background: transparent; }
.page-numbers.prev,
.page-numbers.next {
  font-weight: 500;
  letter-spacing: .04em;
}
.pagination .screen-reader-text,
.navigation.pagination .screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
/* ===================================================================
   APPROACH LIST — numbered ordered list (service pages)
   =================================================================== */
.approach-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}
.approach-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}
.approach-list__num {
  font-family: var(--font-ui);
  font-size: 32px;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 720px) {
  .approach-list li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .approach-list__num { font-size: 24px; }
}

/* ===================================================================
   404 PAGE
   =================================================================== */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.page-404__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.page-404__code {
  font-family: var(--font-ui);
  font-size: clamp(96px, 16vw, 200px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  margin-bottom: 24px;
}
.page-404__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}
.page-404__lead {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.95;
  margin: 0 0 36px;
}
.page-404__ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===================================================================
   COMPARISON GRID (Products LPs)
   =================================================================== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 860px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col {
  border: 1px solid rgba(17,19,24,.08);
  border-radius: 14px;
  padding: 24px 22px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.compare-col--win {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--grad) border-box;
  color: var(--ink);
}
.compare-col--win .compare-col__tag {
  color: var(--ink-3);
  background: transparent;
}
.compare-col--win h3 { color: var(--ink); }
.compare-col--win ul { color: var(--ink-2); }
.compare-col--win ul li::before {
  content: "✓";
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  opacity: 1;
  font-weight: 700;
}
.compare-col__tag {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
}
.compare-col h3 {
  font-size: 18px;
  margin: 6px 0 14px;
  font-weight: 600;
  line-height: 1.45;
}
.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.75;
}
.compare-col ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.compare-col ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  opacity: .65;
}
.compare-col--win ul li::before { content: "✓"; opacity: .9; }

/* ===================================================================
   GUARANTEE BAR (above final CTA)
   =================================================================== */
.guarantee-bar {
  border: 1px solid rgba(17,19,24,.08);
  border-radius: 16px;
  padding: 28px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  background: var(--bg);
  margin-top: 24px;
}
@media (max-width: 860px) { .guarantee-bar { grid-template-columns: 1fr; padding: 22px; } }
.guarantee-bar__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.guarantee-bar__num {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 600;
}
.guarantee-bar__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.guarantee-bar__desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* ===================================================================
   SUB-SERVICE: "詳しく見る" link (deep-LP entry from absorbed cards)
   =================================================================== */
.sub-service__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background-image: var(--grad);
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: gap .2s ease;
  align-self: flex-start;
}
.sub-service__more:hover { gap: 12px; }
.sub-service__more svg { width: 14px; height: 14px; }

/* ============ サイト表示速度 無料診断ツール（/speed-check/） ============ */
.speed-form { margin: 0 0 12px; }
.speed-form__row { display: flex; gap: 12px; flex-wrap: wrap; }
.speed-form__input {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.speed-form__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(91,108,255,.08); }
.speed-form__btn { flex: 0 0 auto; }
.speed-form__opts { display: flex; gap: 22px; margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.speed-form__opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.speed-note { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin: 0 0 8px; }

.speed-result { margin-top: 40px; }
.speed-loading { display: flex; align-items: center; gap: 12px; padding: 40px 4px; color: var(--ink-3); font-size: 15px; }
.speed-loading__spin {
  width: 20px; height: 20px; flex: 0 0 auto;
  border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: speed-spin .8s linear infinite;
}
@keyframes speed-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .speed-loading__spin { animation: none; } }
.speed-error {
  padding: 18px 20px; border-left: 2px solid #c0392b; background: var(--bg-muted);
  font-size: 14px; line-height: 1.8; color: var(--ink-2);
}

.speed-score { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.speed-score__gauge {
  --deg: calc(var(--sc, 0) * 3.6deg);
  position: relative;
  width: 128px; height: 128px; flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--col, var(--accent)) var(--deg), var(--line) 0);
  display: grid; place-items: center;
}
.speed-score__gauge::before {
  content: ""; position: absolute; inset: 11px; background: var(--bg); border-radius: 50%;
}
.speed-score__num {
  position: relative; font-family: var(--font-ui); font-size: 38px; font-weight: 700;
  color: var(--col, var(--ink)); line-height: 1;
}
.speed-score__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.speed-score__cap { font-size: 17px; font-weight: 600; color: var(--ink); }
.speed-score__sub { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); word-break: break-all; }

.speed-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; margin: 32px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.speed-metric { background: var(--bg); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.speed-metric__k { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.speed-metric__v { font-family: var(--font-ui); font-size: 18px; font-weight: 700; color: var(--ink); }

.speed-ops__title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 36px 0 12px; }
.speed-ops { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.speed-op {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.speed-op__t { color: var(--ink-2); line-height: 1.6; }
.speed-op__s { flex: 0 0 auto; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; color: var(--accent); font-style: normal; white-space: nowrap; }

.speed-cta { margin: 40px 0 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-muted); }
.speed-cta__lead { margin: 0 0 20px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.speed-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .speed-form__btn { width: 100%; justify-content: center; }
  .speed-score { gap: 18px; }
  .speed-score__gauge { width: 108px; height: 108px; }
  .speed-score__num { font-size: 32px; }
  .speed-cta { padding: 22px; }
}


/* ===================================================================
   INSIGHTS (実務ガイド記事) — お知らせのリストと差別化した画像カードグリッド
   =================================================================== */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  margin-top: 8px;
}
@media (max-width: 980px) {
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .insight-grid { grid-template-columns: 1fr; gap: 28px; }
}
.insight-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.insight-card:hover {
  border-color: rgba(91,108,255,.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 15, 30, .08);
}
.insight-card__media {
  position: relative;
  overflow: hidden;
  background: #eef1f4;
}
/* aspect-ratioはコンテナではなくimg自体に持たせる。
   flexカード内でコンテナのratioが効かず画像が素の縦横比で伸びるため */
.insight-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.insight-card:hover .insight-card__media img { transform: scale(1.03); }
.insight-card__media-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(120deg, #e9edf2 0%, #f6f8fa 60%, #eef1f4 100%);
}
.insight-card__label {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 5px 12px;
}
.insight-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 18px;
  flex: 1;
}
.insight-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}
.insight-card__excerpt {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insight-card__meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted-2);
}
.insight-card__more {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
}
.insight-card__more::after { content: " →"; }

/* 記事ページのアイキャッチ */
.insight-hero-image {
  margin: 0 0 36px;
}
.insight-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

/* ===================================================================
   INSIGHT ARTICLE BODY — 長文実務ガイド用のタイポグラフィ
   =================================================================== */
.insight-body {
  max-width: 760px;
  font-size: 16px;
  line-height: 2.0;
  color: var(--ink-2);
}
.insight-body > * + * { margin-top: 1.2em; }
.insight-body h2 {
  margin-top: 2.6em;
  margin-bottom: .9em;
  padding-left: 14px;
  border-left: 3px solid var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.insight-body h3 {
  margin-top: 2em;
  margin-bottom: .6em;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
}
.insight-body ul,
.insight-body ol { padding-left: 1.5em; }
.insight-body li { margin: .45em 0; }
.insight-body li::marker { color: var(--muted-2); }
.insight-body strong { color: var(--ink); }
.insight-body blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  background: var(--bg-alt, #f6f8fa);
  border-left: 3px solid var(--line);
  font-size: 15px;
}
/* 表: セルが潰れて縦に折り返すのを防ぐ。狭い画面では表ごと横スクロール */
.insight-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}
.insight-body tbody {
  display: table;
  width: 100%;
  min-width: 560px;
}
.insight-body th,
.insight-body td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.insight-body th {
  background: var(--bg-alt, #f6f8fa);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .insight-body { font-size: 15px; }
  .insight-body h2 { font-size: 19px; }
  .insight-body h3 { font-size: 16px; }
}

/* ===================================================================
   DOWNLOADS — 資料表紙をアイキャッチにしたカードグリッド
   =================================================================== */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-top: 8px;
}
@media (max-width: 960px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .dl-grid { grid-template-columns: 1fr; gap: 24px; } }
.dl-card {
  scroll-margin-top: 96px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.dl-card:hover {
  border-color: rgba(91,108,255,.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 15, 30, .08);
}
.dl-card__cover {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
  background: #f6f8fa;
}
.dl-card__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.dl-card__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 4px 10px;
}
.dl-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 16px;
  flex: 1;
}
.dl-card__body h4 { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0; }
.dl-card__body p { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin: 0; }
.dl-card__cta {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
}
.dl-card__cta .arrow { flex: none; }

/* ===================================================================
   HISTORY（沿革） — 中央の線に沿って吹き出しを左右交互に並べる
   =================================================================== */
.history {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px;
  position: relative;
  display: grid;
  gap: 28px;
}
.history::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--cyan), var(--blue) 50%, var(--magenta));
  opacity: .55;
}
.history__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  align-items: start;
}
.history__item::after { /* 線上の点 */
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  box-sizing: border-box; /* 擬似要素は * の border-box が効かないので明示（枠込みで 14px にして線の真上に） */
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 4px #fff;
}
.history__date {
  grid-column: 2;
  padding-top: 14px;
  font-family: var(--font-ui);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.history__y { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.history__m { font-size: 14px; font-weight: 600; color: var(--muted); }
.history__bubble {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 16px 40px -24px rgba(17,19,24,.25);
}
.history__bubble::before { /* 吹き出しのしっぽ（線の側に向く） */
  content: "";
  position: absolute;
  top: 22px;
  right: -9px;
  width: 16px; height: 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.history__item--right .history__date { grid-column: 1; justify-content: flex-end; }
.history__item--right .history__bubble { grid-column: 2; }
.history__item--right .history__bubble::before { right: auto; left: -9px; transform: rotate(-135deg); }
.history__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.history__body { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-3); }
.history__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  background-image: var(--grad); background-size: 100% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px;
}
.history__link .arrow { transition: transform .2s ease; }
.history__link:hover .arrow { transform: translateX(3px); }
.history__note { margin: 40px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.history__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .history::before { left: 14px; }
  .history { gap: 22px; }
  .history__item, .history__item--right .history__date, .history__item--right .history__bubble { grid-template-columns: 1fr; grid-column: 1; }
  .history__item { padding-left: 44px; }
  .history__item::after { left: 14px; top: 18px; width: 12px; height: 12px; margin-left: -6px; }
  .history__date { grid-column: 1; grid-row: 1; padding-top: 0; justify-content: flex-start; margin-bottom: 10px; }
  .history__item--right .history__date { justify-content: flex-start; }
  .history__bubble, .history__item--right .history__bubble { grid-column: 1; grid-row: 2; padding: 18px 20px; }
  .history__bubble::before, .history__item--right .history__bubble::before { right: auto; left: -9px; top: 18px; transform: rotate(-135deg); }
  .history__y { font-size: 22px; }
}

/* ===================================================================
   MVV — Mission / Vision statement blocks (philosophy page)
   Cinematic line-by-line mask reveal on a white ground, with a slow
   brand-gradient aura drifting behind the type.
   =================================================================== */
.mvv {
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 11vw, 150px);
  padding-bottom: clamp(80px, 11vw, 150px);
}
.mvv .container { position: relative; z-index: 1; }

/* Soft brand aura — the only "motion background" on the page */
.mvv__aura {
  position: absolute;
  left: 22%;
  top: 50%;
  width: min(980px, 120%);
  aspect-ratio: 2 / 1;
  border-radius: 50%;
  background: var(--grad);
  opacity: .08;
  filter: blur(80px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: mvv-drift 22s ease-in-out infinite alternate;
}
.mvv--vision .mvv__aura { left: 78%; animation-duration: 26s; animation-direction: alternate-reverse; }
@keyframes mvv-drift {
  from { transform: translate(-54%, -56%) scale(1); }
  to   { transform: translate(-46%, -44%) scale(1.14); }
}

/* Statement — masked lines that rise into place, one after another */
.mvv__statement {
  margin: 20px 0 0;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(28px, 6.4vw, 72px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mvv__line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}
.mvv__line > span {
  display: block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1000ms cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--l, 0ms);
  will-change: transform;
}
.mvv.is-in .mvv__line > span { transform: translate3d(0, 0, 0); }
.mvv__line:nth-child(2) > span { --l: 150ms; }
.mvv__line:nth-child(3) > span { --l: 300ms; }

/* Eyebrow + supporting line fade in around the statement */
.mvv .eyebrow,
.mvv__sub {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22, .61, .36, 1);
}
.mvv.is-in .eyebrow { opacity: 1; transform: none; }
.mvv.is-in .mvv__sub { opacity: 1; transform: none; transition-delay: 650ms; }
.mvv__sub {
  margin: 26px 0 0;
  max-width: 44em;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-3);
}

/* Values: tighter frame now that the nodes carry the word only */
.radial-values--lean { height: 460px; margin-top: 56px; }
.radial-values--lean .radial-values__node--top { top: 58px; }
.radial-values--lean .radial-values__node--bottom { bottom: 58px; }

@media (max-width: 760px) {
  .mvv__sub { font-size: 16px; }
  .mvv__aura { filter: blur(56px); }
  .radial-values--lean { height: auto; margin-top: 32px; }
  .radial-values--lean .radial-values__node--top,
  .radial-values--lean .radial-values__node--bottom { top: auto; bottom: auto; }
}

/* Mission / Vision illustrations — unDraw art, recoloured to the brand blue.
   They sit in the empty half of the statement block on wide screens so the
   type keeps its full size, and drop below the text on narrow ones. */
.mvv__art {
  position: absolute;
  right: var(--pad);
  top: 50%;
  width: min(32%, 340px);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease 400ms;
  animation: mvv-float 9s ease-in-out infinite;
}
.mvv.is-in .mvv__art { opacity: 1; }
.mvv__art--vision { width: min(30%, 330px); animation-delay: -3s; }
@keyframes mvv-float {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 8px)); }
}
@media (max-width: 900px) {
  .mvv__art,
  .mvv__art--vision {
    position: static;
    width: min(300px, 70%);
    margin: 40px auto 0;
    display: block;
    transform: none;
    animation: none;
  }
}

/* ===================================================================
   CORE VALUES — four illustrated values, no card chrome
   =================================================================== */
.core-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 64px);
}
.core-value { text-align: center; }
.core-value__art {
  display: block;
  width: 100%;
  max-width: 190px;
  height: clamp(96px, 11vw, 124px);
  object-fit: contain;
  margin: 0 auto 22px;
}
.core-value__num {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}
.core-value__en {
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 8px;
}
.core-value h3 {
  margin: 7px 0 0;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
@media (max-width: 860px) {
  .core-values { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}
@media (max-width: 420px) {
  .core-values { grid-template-columns: 1fr; gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .mvv__art { opacity: 1 !important; transition: none !important; }
  .mvv__art { animation: none !important; }
}
.no-js .mvv__art { opacity: 1; }

/* No JS / reduced motion: land everything in its final position */
.no-js .mvv__line > span,
.no-js .mvv .eyebrow,
.no-js .mvv__sub { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mvv__line > span,
  .mvv .eyebrow,
  .mvv__sub {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .mvv__aura { animation: none; }
}
