/* =========================================================
   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;
}
@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; }
}

.service-card {
  position: relative;
  isolation: isolate;
  padding: 48px 44px 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  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(--accent);
  -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(--accent);
  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: 2px;
  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: 2px;
  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(--accent);
  -webkit-background-clip: text;
          background-clip: text;
}
.reason__num::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 14px;
  background: var(--accent);
}
.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: 2px;
  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: 2px;
  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)
   =================================================================== */
/* Editorial full-width numbered rows (no boxes) — replaces the old card grid. */
.sub-services {
  margin-top: 44px;
  border-top: 1px solid var(--ink);
}
.sub-service {
  position: relative;
  padding: 44px 0 44px 104px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 640px) { .sub-service { padding: 32px 0 32px 56px; } }
.sub-service--clickable { cursor: pointer; }
.sub-service--clickable:hover h3 { color: var(--accent); }
/* clickable rows show only a corner ↗ arrow (the "詳しく見る" text link is hidden). */
.sub-service--clickable::after {
  content: "";
  position: absolute;
  top: 46px;
  right: 4px;
  width: 15px;
  height: 15px;
  background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 2V3.2L11.954 3.2L2 13.154L2.846 14L12.8 4.046L12.8 11.6H14L14 2L4.4 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 2V3.2L11.954 3.2L2 13.154L2.846 14L12.8 4.046L12.8 11.6H14L14 2L4.4 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .3s ease, background .2s ease;
}
@media (max-width: 640px) { .sub-service--clickable::after { top: 34px; } }
.sub-service--clickable:hover::after { transform: translate3d(3px, -3px, 0); background: var(--accent); }
.sub-service > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.sub-service__num {
  position: absolute;
  left: 0;
  top: 42px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--accent);
}
@media (max-width: 640px) { .sub-service__num { top: 30px; font-size: 26px; } }
.sub-service__cat {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.sub-service header h3 {
  flex: 1 1 100%;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 0;
  letter-spacing: -.01em;
  transition: color .2s ease;
}
.sub-service > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-3);
  margin: 0;
  max-width: 780px;
}
.sub-service__list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 40px;
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 780px;
}
@media (max-width: 640px) { .sub-service__list { grid-template-columns: 1fr; } }
.sub-service__list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.75;
}
.sub-service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 1px;
  background: var(--accent);
}
.sub-service__use {
  padding-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ===================================================================
   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: 2px;
  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(--accent) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 24px 48px -28px rgba(10,10,10,.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: 2px;
  color: var(--ink-3);
}
.plan--featured .plan__tag {
  border-color: transparent;
  color: #fff;
  background: var(--accent);
}
.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: 2px;
  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(--accent);
  -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: 2px;
  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 { display: none; }
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 60% at 10% 20%, rgba(10,10,10,.05), transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(10,10,10,.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; }
}
.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(--accent);
  -webkit-background-clip: text;
          background-clip: text;
}


/* === Services hub — editorial category sections ====================== */
.services-cat-section {
  position: relative;
}
.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(--accent);
  -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;
}
/* Borderless editorial rows (no cards) with a corner NE (↗) arrow. */
.services-lp {
  position: relative;
  display: block;
  padding: 26px 46px 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.services-lp::after {
  content: "";
  position: absolute;
  top: 30px;
  right: 6px;
  width: 15px;
  height: 15px;
  background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 2V3.2L11.954 3.2L2 13.154L2.846 14L12.8 4.046L12.8 11.6H14L14 2L4.4 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 2V3.2L11.954 3.2L2 13.154L2.846 14L12.8 4.046L12.8 11.6H14L14 2L4.4 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .3s ease, background .2s ease;
}
.services-lp:hover::after { transform: translate3d(3px, -3px, 0); background: var(--accent); }
.services-lp:hover h4 { color: var(--accent); }
/* PDF ダウンロード行 (/downloads/): NE 矢印の代わりに DL アイコン、hover は下方向 */
.services-lp--dl::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.4 1.6h1.2v7.05l3.18-3.18.85.85L8 10.95 3.37 6.32l.85-.85 3.18 3.18V1.6z'/%3E%3Cpath d='M2 12.8h12V14H2z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.4 1.6h1.2v7.05l3.18-3.18.85.85L8 10.95 3.37 6.32l.85-.85 3.18 3.18V1.6z'/%3E%3Cpath d='M2 12.8h12V14H2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.services-lp--dl:hover::after { transform: translate3d(0, 3px, 0); }
.services-lp__label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.services-lp h4 {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.4;
  transition: color .2s ease;
}
.services-lp p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-3);
  margin: 0;
  max-width: 640px;
}
/* テキストリンク（詳しく見る等）は出さず、右上の ↗ 矢印のみを affordance にする。 */
.services-lp__cta { display: none; }

/* === News article body — link styling ================================ */
.news-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(10,10,10,.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: var(--accent);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

/* === 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(--accent);
  -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: 2px;
  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: 2px;
  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: 2px;
  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__badge { display: block; margin-top: 12px; width: 140px; height: auto; }
.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: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  line-height: 1.5;
}
.bio-btn {
  display: none; /* 経歴ボタンは一旦非表示（モーダルの仕組みは残置） */
  flex: 0 0 auto;
  margin-left: 12px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  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: 2px;
  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: 2px;
  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-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ===================================================================
   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: 2px;
  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(10,10,10,.55);
  box-shadow: 0 0 0 4px rgba(10,10,10,.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: var(--accent);
}
.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: 2px;
  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(10,10,10,.4);
  background: rgba(10,10,10,.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(10,10,10,.55);
  background: rgba(10,10,10,.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: 2px;
  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(10,10,10,.4);
  background: rgba(10,10,10,.03);
}
.wpcf7-form .contact-consent .wpcf7-list-item > label:has(input[type="checkbox"]:checked) {
  border-color: rgba(10,10,10,.55);
  background: rgba(10,10,10,.06);
  box-shadow: 0 0 0 3px rgba(10,10,10,.08);
}
.wpcf7-form .contact-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
  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: var(--accent); }

/* 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(--accent);
  background-size: 220% 100%;
  background-position: 30% 50%;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
  box-shadow: 0 14px 28px -12px rgba(10,10,10,.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(10,10,10,.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: 2px;
  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: 2px;
  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(10,10,10,.08), rgba(10,10,10,.08) 50%, rgba(10,10,10,.08));
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(10,10,10,.18);
}
.tabset__tab.is-active::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.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: 2px;
  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: 2px;
  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: 2px;
  overflow: hidden;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  --accent: #0a0a0a;
}
.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(10,10,10,.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(--accent);
  -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(--accent);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.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 {
  margin-left: auto;
  display: inline-flex; align-items: center;
  color: var(--ink-3);
  transition: color .2s ease, transform .3s ease;
}
.case-card:hover .case-card__arrow {
  color: var(--ink);
  transform: translate3d(3px, -3px, 0);
}

@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;
  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(--ink); color: #fff; border-color: var(--ink); }
.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 {
  flex: 0 0 clamp(280px, 30vw, 360px);
  scroll-snap-align: start;
}
.works-scroll::-webkit-scrollbar { height: 6px; }
.works-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }
.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:hover::after { transform: translate3d(3px, -3px, 0); }
.news-card::after {
  content: "";
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'><path d='M4 10L10 4M10 4H6M10 4V8' stroke='%2374757B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform .2s ease;
}
.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: 2px;
  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: #0a0a0a;
  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 { display: none; }
.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(10,10,10,.06), transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(10,10,10,.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(--accent);
  padding: 4px 10px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  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(--accent);
  -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: 2px;
  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(--accent);
  -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: 2px;
  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(--accent);
  -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; }
}

/* ===================================================================
   RADIAL VALUES — minimal geometric / line-only (about page)
   =================================================================== */
.radial-values {
  position: relative;
  margin-top: 72px;
  width: 100%;
  height: 560px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  color: #0A0C16;
}
.radial-values__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: #0A0C16;
}

/* ----- Entry animations (fired when .is-in is added by IntersectionObserver) ----- */
/* Lines: drawn via stroke-dashoffset */
.rv-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.rv-line--v { stroke-dasharray: 560; stroke-dashoffset: 560; }
.radial-values.is-in .rv-line { stroke-dashoffset: 0; }
.radial-values.is-in .rv-line--v { transition-delay: 120ms; }

/* Ring: scale up from 0 + draw */
.rv-ring {
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.6);
  opacity: 0;
  transition:
    stroke-dashoffset 1200ms cubic-bezier(0.22, 0.61, 0.36, 1) 280ms,
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1) 280ms,
    opacity 600ms ease 280ms;
}
.radial-values.is-in .rv-ring {
  stroke-dashoffset: 0;
  transform: scale(1);
  opacity: 0.18;
}

/* Dots: scale-in stagger */
.rv-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  transition: transform 480ms cubic-bezier(0.22, 1.5, 0.36, 1), opacity 320ms ease;
}
.radial-values.is-in .rv-dot { transform: scale(1); opacity: 1; }
.radial-values.is-in .rv-dot--1 { transition-delay: 700ms; }
.radial-values.is-in .rv-dot--2 { transition-delay: 820ms; }
.radial-values.is-in .rv-dot--3 { transition-delay: 940ms; }
.radial-values.is-in .rv-dot--4 { transition-delay: 1060ms; }

/* Dot pulse loop (after entry settles) */
@keyframes rv-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.7); opacity: 0.5; }
}
.radial-values.is-in .rv-dot--1 { animation: rv-dot-pulse 3.6s ease-in-out 1.6s infinite; }
.radial-values.is-in .rv-dot--2 { animation: rv-dot-pulse 3.6s ease-in-out 2.5s infinite; }
.radial-values.is-in .rv-dot--3 { animation: rv-dot-pulse 3.6s ease-in-out 3.4s infinite; }
.radial-values.is-in .rv-dot--4 { animation: rv-dot-pulse 3.6s ease-in-out 4.3s infinite; }

/* Center core — thin ring only */
.radial-values__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(10, 12, 22, 0.45);
  background: #ffffff;
  z-index: 2;
  opacity: 0;
  transition:
    transform 700ms cubic-bezier(0.22, 1.4, 0.36, 1) 200ms,
    opacity 500ms ease 200ms;
  animation: rv-core-breathe 5s ease-in-out 1500ms infinite;
}
.radial-values.is-in .radial-values__core {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
@keyframes rv-core-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10,12,22,0); border-color: rgba(10, 12, 22, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(10,12,22,0.025); border-color: rgba(10, 12, 22, 0.7); }
}

/* Nodes — text only, no card */
.radial-values__node {
  position: absolute;
  width: 240px;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 600ms ease, transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.radial-values.is-in .radial-values__node { opacity: 1; }

.radial-values__node-num,
.radial-values__node-en,
.radial-values__node h3,
.radial-values__node p {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.radial-values.is-in .radial-values__node-num,
.radial-values.is-in .radial-values__node-en,
.radial-values.is-in .radial-values__node h3,
.radial-values.is-in .radial-values__node p {
  opacity: 1;
  transform: translateY(0);
}

/* Per-line stagger inside each node */
.radial-values__node-num { transition-delay: var(--node-delay, 0ms); }
.radial-values__node-en  { transition-delay: calc(var(--node-delay, 0ms) + 90ms); }
.radial-values__node h3  { transition-delay: calc(var(--node-delay, 0ms) + 180ms); }
.radial-values__node p   { transition-delay: calc(var(--node-delay, 0ms) + 270ms); }

/* Per-node base delay (after lines+dots) */
.radial-values__node--top    { --node-delay: 1300ms; }
.radial-values__node--right  { --node-delay: 1450ms; }
.radial-values__node--bottom { --node-delay: 1600ms; }
.radial-values__node--left   { --node-delay: 1750ms; }

.radial-values__node-num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(10, 12, 22, 0.4);
  margin-bottom: 4px;
}
.radial-values__node-en {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0A0C16;
  margin-bottom: 6px;
}
.radial-values__node h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: #0A0C16;
}
.radial-values__node p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(10, 12, 22, 0.65);
  margin: 0;
}

/* Position each node — top/right/bottom/left, sitting just outside the anchor dots */
.radial-values__node--top {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  width: 280px;
}
.radial-values__node--top h3,
.radial-values__node--bottom h3,
.radial-values__node--top .radial-values__node-en,
.radial-values__node--bottom .radial-values__node-en,
.radial-values__node--top .radial-values__node-num,
.radial-values__node--bottom .radial-values__node-num {
  text-align: center;
}
.radial-values__node--top { top: 80px; }
.radial-values__node--top h3 { display: none; }
.radial-values__node--top,
.radial-values__node--bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.radial-values__node--top h3 { display: block; order: -1; margin: 0 0 4px; }

.radial-values__node--right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  padding-left: 0;
}

.radial-values__node--bottom {
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  width: 280px;
}
.radial-values__node--bottom h3 { order: -1; margin: 0 0 4px; }

.radial-values__node--left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

/* Reduced motion: skip animations */
@media (prefers-reduced-motion: reduce) {
  .rv-line, .rv-line--v, .rv-ring, .rv-dot,
  .radial-values__core, .radial-values__node,
  .radial-values__node-num, .radial-values__node-en,
  .radial-values__node h3, .radial-values__node p {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .radial-values.is-in .radial-values__core { transform: translate(-50%, -50%) scale(1) !important; }
  .radial-values.is-in .rv-ring { opacity: 0.18 !important; }
}

/* Mobile fallback: stack vertically */
@media (max-width: 760px) {
  .radial-values {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 0;
    margin-top: 32px;
  }
  .radial-values__lines { display: none; }
  .radial-values__core {
    position: relative;
    left: auto; top: auto;
    transform: none;
    width: 0;
    height: 0;
    border: 0;
    margin: 0;
  }
  .radial-values__node,
  .radial-values__node--top,
  .radial-values__node--right,
  .radial-values__node--bottom,
  .radial-values__node--left {
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    transform: none;
    width: 100%;
    max-width: 420px;
    text-align: left;
    display: block;
    --node-delay: 0ms;
  }
  .radial-values__node--top h3,
  .radial-values__node--bottom h3 {
    display: block;
    order: 0;
    text-align: left;
    margin: 8px 0 8px;
  }
  .radial-values__node--top .radial-values__node-num,
  .radial-values__node--bottom .radial-values__node-num,
  .radial-values__node--top .radial-values__node-en,
  .radial-values__node--bottom .radial-values__node-en {
    text-align: left;
  }
}

/* ===================================================================
   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(--accent);
  -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: 2px;
  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(--accent) 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(--accent);
  -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: 2px;
  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(--accent);
  -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: linear-gradient(var(--accent), var(--accent));
  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: 2px;
  background: #fff;
  color: var(--ink);
}
.speed-form__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(10,10,10,.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: 2px; 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: 2px; 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(2, 1fr);
  gap: 36px 28px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .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);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.insight-card:hover {
  border-color: var(--ink);
  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);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.dl-card:hover {
  border-color: var(--ink);
  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; }
