/* =========================================================
   JANCTION - Common Design System
   B2B Japan / Trust-first / Clarity-first
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --bg-navy: #F7F7F7;
  --bg-navy-2: #F0F0F0;

  --ink: #333333;
  --ink-2: #444444;
  --ink-mute: #58595B;
  --ink-soft: #8C8C8C;
  --ink-faint: #B8B8B8;

  --rule: #E0E0E0;
  --rule-soft: #EFEFEF;

  --accent: #F7941C;
  --accent-strong: #E07E00;
  --accent-soft: #FFF2D5;
  --accent-line: #FFD79B;

  --ok: #047857;
  --ok-bg: #ECFDF5;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --bad: #B91C1C;
  --bad-bg: #FEF2F2;

  --gpx-accent: #E07E00;
  --gpx-accent-strong: #C86F00;
  --gpx-soft: #FFF2D5;

  --container: 1200px;
  --gutter: 24px;

  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;

  --sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
  --display: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(51,51,51,0.06);
  --shadow-md: 0 4px 12px rgba(51,51,51,0.08);
  --shadow-lg: 0 8px 24px rgba(51,51,51,0.10);
  --shadow-xl: 0 20px 48px rgba(51,51,51,0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
button { font: inherit; cursor: pointer; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3vw, 36px); letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 2vw, 24px); }
p { margin: 0 0 1em; color: var(--ink-mute); }
small { font-size: 13px; color: var(--ink-soft); }
.mono { font-family: var(--mono); }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow.ink { color: var(--ink-2); }
.eyebrow.light { color: var(--accent-strong); }

.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-mute);
}

/* Section heading block */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { margin: 0; }

/* Accent bar above section headings */
.section-head .eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 14px;
}
.section-head.center .eyebrow::before {
  margin-left: auto;
  margin-right: auto;
}
.bg-navy .section-head .eyebrow::before { background: rgba(247,148,28,.8); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: 96px 0;
}
section.tight { padding: 72px 0; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.bg-soft { background: var(--bg-soft); }
.bg-navy {
  background: var(--bg-navy);
  color: #E0E0E0;
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--ink); }
.bg-navy p { color: var(--ink-mute); }
.bg-navy .lead { color: var(--ink-mute); }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--accent);
  color: rgba(255,255,255,.9);
  font-size: 12px;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.utility-bar .ub-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.utility-bar .ub-company {
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
}
.utility-bar a {
  color: rgba(255,255,255,.78);
  font-weight: 500;
}
.utility-bar a:hover { color: #fff; }
.utility-bar .ub-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.utility-bar .lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.6);
  font-family: var(--display);
  font-weight: 600;
}
.utility-bar .lang strong { color: #fff; }
@media (max-width: 640px) {
  .utility-bar .ub-left a:not(.ub-company) { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(51,51,51,0.06);
  border-bottom-color: transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 32px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-cta .btn-outline { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  display: none;
  flex-direction: column;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
}
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
  flex: 1;
}
.mobile-drawer-nav a {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-drawer-foot {
  padding: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 4px; }
.btn-lg { padding: 16px 28px; font-size: 15px; border-radius: 3px; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-strong);
  color: #fff;
}
.btn-outline {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--rule);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.bg-navy .btn-outline {
  background: transparent;
  color: #fff;
  border-color: var(--rule);
}
.bg-navy .btn-outline:hover {
  background: #fff;
  color: #fff;
  border-color: #fff;
}
.btn-ghost-doc {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost-doc:hover {
  color: var(--accent);
  background: transparent;
}
.btn-arrow::after {
  content: "→";
  font-family: var(--display);
}
.btn-arrow:hover::after { transform: none; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card.interactive:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-line);
}
.card.dark {
  background: var(--bg-navy-2);
  border-color: var(--rule);
  color: #E0E0E0;
}
.card.flush { padding: 0; overflow: hidden; }

/* ---------- Badges / Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--display);
}
.tag.industry {
  background: var(--bg-soft);
  color: var(--ink-2);
  border: 1px solid var(--rule);
}
.tag.service-pool { background: var(--accent-soft); color: var(--accent-strong); }
.tag.service-gpx  { background: var(--gpx-soft); color: var(--gpx-accent-strong); }
.tag.category { background: var(--bg-soft); color: var(--ink-2); }
.tag.dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 3px solid var(--accent);
  color: var(--ink-mute);
  padding: 64px 0 28px;
  font-size: 14px;
}
.site-footer h4 {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.site-footer .footer-brand img {
  height: 32px;
  margin-bottom: 14px;
}
.site-footer .footer-brand p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer a {
  color: var(--ink-mute);
}
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-faint);
}
@media (max-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.form-field label .req {
  color: var(--bad);
  font-weight: 700;
  margin-left: 4px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 640px) {
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Icon stub ---------- */
.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-wrap svg { width: 22px; height: 22px; }
.icon-wrap.gpx { background: var(--gpx-soft); color: var(--gpx-accent-strong); }

/* ---------- Numbered list (flow) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }
.flow-step {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  counter-increment: step;
}
.flow-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
}
.flow-step h3 {
  font-size: 16px;
  margin: 8px 0 8px;
}
.flow-step p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  margin-top: 12px;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.85;
}

/* ---------- Comparison table ---------- */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.compare thead th {
  background: var(--bg-soft);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: .04em;
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.label { font-weight: 600; color: var(--ink); background: #FBFCFE; }
.compare .col-jct { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.compare .col-jct thead { background: var(--accent); color: #fff; }

/* ---------- Pricing cards ---------- */
.price-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(247,148,28,.14);
}
.price-card .ribbon {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.price-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}
.price-card .price {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 16px 0 4px;
}
.price-card .price small {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
.price-card .price-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.price-card ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-mute);
}
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }

/* ---------- Hero rack/figure (SVG illustration trim) ---------- */
.figure-frame {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #F7F7F7 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.bg-navy .figure-frame {
  background: linear-gradient(180deg, #fff 0%, #F7F7F7 100%);
  border-color: var(--rule);
}

/* ---------- News card ---------- */
.news-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.news-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-line);
}
.news-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
}
.news-thumb.alt { background: var(--bg-soft); }
.news-thumb.dim { background: var(--bg-soft); }
.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: .04em;
}
.news-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
  color: var(--ink);
}
.news-card p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-mute);
  margin: 0;
  flex: 1;
}

/* ---------- Case Study card ---------- */
.case-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.case-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-line);
}
.case-card .case-head {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.case-card h3 {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0;
}
.case-card dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-card dt {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.case-card dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-mute);
}

/* ---------- Service card (services on index) ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-line);
}
.service-card .svc-eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.service-card h3 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0;
}
.service-card .svc-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0;
}
.service-card p { font-size: 14px; line-height: 1.85; margin: 0; }
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
}
.service-card ul li {
  padding-left: 18px;
  position: relative;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .65em;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
}
.service-card.gpx ul li::before { background: var(--gpx-accent-strong); }
.service-card .svc-figure {
  height: 160px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}
.service-card.gpx .svc-figure {
  background: var(--bg-soft);
}
.service-card .svc-figure img { filter: saturate(0.85) brightness(0.98); }

/* ---------- Stat / trust mini items ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 640px) { .trust-row { grid-template-columns: 1fr; } }
.trust-row .trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-mute);
}
.bg-soft .trust-row .trust-item,
section:not(.bg-navy) .trust-row .trust-item {
  background: #fff;
  border-color: var(--rule);
  color: var(--ink-mute);
}
.trust-row .trust-item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}
.bg-navy .trust-row .trust-item svg { color: #F0A379; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(247,148,28,.05), transparent 70%),
    #fff;
  overflow: hidden;
}
.hero.dark {
  background-color: var(--bg-soft);
  background-image:
    radial-gradient(60% 60% at 80% 10%, rgba(247,148,28,.12), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(252,211,77,.10), transparent 70%);
  color: var(--ink);
}
.hero.dark h1, .hero.dark h2 { color: var(--ink); }
.hero.dark p { color: var(--ink-mute); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { margin-bottom: 20px; }
.hero .hero-sub {
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 28px;
  max-width: 640px;
}
.hero .hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Hero inner / stats */
.hero-inner {
  max-width: 760px;
  margin-bottom: 56px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hero-stat {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent);
}
.hero-stat-num {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.hero-stat-num span {
  font-size: 30px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero-stat-num small {
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
}
.hero-stat-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.hero-stat-icon svg { width: 24px; height: 24px; }
.hero-stat-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}
.hero-stat-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
}
@media (max-width: 960px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-inner { margin-bottom: 40px; }
}

/* ---------- Misc helpers ---------- */
.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 6px;
  color: var(--ink-2);
}
.hr {
  height: 1px;
  background: var(--rule);
  margin: 24px 0;
  border: none;
}
.text-soft { color: var(--ink-soft) !important; }
.text-ink { color: var(--ink) !important; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ---------- Contact grid ---------- */
.contact-grid {
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Company info dl ---------- */
.company-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px 16px;
  margin: 0;
  font-size: 14px;
}
@media (max-width: 480px) {
  .company-dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .company-dl dt { margin-top: 14px; }
  .company-dl dt:first-child { margin-top: 0; }
}

/* ---------- Anchor offset ---------- */
section[id], div[id] { scroll-margin-top: 96px; }

/* ---------- Photo slots ---------- */
image-slot { display: block; }
.case-card image-slot { margin-bottom: 4px; }
.news-card image-slot { border-bottom: 1px solid var(--rule-soft); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .bc-sep { color: var(--ink-faint); font-size: 12px; }
.breadcrumb .bc-current { color: var(--ink-2); font-weight: 600; }

/* ---------- Hero photo ---------- */
.hero-photo-wrap {
  position: relative;
}
.hero-photo-wrap .hero-photo-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-photo-wrap .hero-photo-caption::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ---------- Image tone (全Unsplash写真の色味統一) ---------- */
image-slot { filter: saturate(0.85) brightness(0.98); }

/* ---------- Company section – paper style ---------- */
.company-dl dt {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: start;
  padding-top: 2px;
}
.company-dl dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}
.company-links {
  font-size: 13px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.company-links a {
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.company-links a:hover { color: var(--accent); }
.rep-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.rep-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 2px;
  font-family: var(--display);
}
.rep-title {
  font-size: 13px;
  color: var(--ink-mute);
}
.rep-bio {
  margin-top: 24px;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.95;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(120deg, #E07E00, var(--accent));
  padding: 56px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band-label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.cta-band h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(20px, 2.8vw, 30px);
}
.cta-band-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-cta-primary {
  background: #fff;
  color: #E07E00;
  font-weight: 700;
}
.btn-cta-primary:hover { background: #FFF3E0; color: #E07E00; }
.btn-cta-secondary {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.25);
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

/* ---------- Sub-page hero layout ---------- */
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

/* ---------- GPU cards (gpu.html) ---------- */
.gpu-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gpu-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-line);
}
.gpu-card .gpu-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}
.gpu-card .gpu-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0 12px;
  letter-spacing: -0.01em;
}
.gpu-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 16px 0;
  font-size: 13px;
}
.gpu-spec dt { color: var(--ink-soft); font-family: var(--display); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.gpu-spec dd { margin: 0; color: var(--ink); font-weight: 600; font-family: var(--mono); }
.use-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.use-tags .tag { font-size: 11px; }

/* ---------- News filter (news.html) ---------- */
.news-page-hero {
  background: var(--bg-soft);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.news-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.news-filter button {
  padding: 7px 14px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.news-filter button:hover { border-color: var(--accent); color: var(--accent); }
.news-filter button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.18));
}
.float-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 600px) {
  .float-cta { bottom: 16px; right: 16px; }
}


/* ===== FB2026-07: 文字を大きく ===== */
body { font-size: 16px; }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
