/* ==========================================================================
   株式会社CSS ホームページ
   Tokens (実ロゴより採取): navy #364860 / slate #4B5E72 / teal #6F7E84 / mist #C9C9C7
   Type: Zen Old Mincho (JP見出し) / Noto Sans JP (本文) / EB Garamond (英欧文タグライン)
   ========================================================================== */

:root {
  --navy-deep: #1E2A38;
  --navy: #364860;
  --slate: #4B5E72;
  --teal: #6F7E84;
  --mist: #C9C9C7;
  --ink: #26313F;
  --paper: #FFFFFF;
  --paper-soft: #F6F6F4;
  --paper-line: rgba(54, 72, 96, 0.14);
  --dark-line: rgba(255, 255, 255, 0.14);

  /* living accent: a saturated extension of the logo's own teal facet */
  --accent: #1F7A88;
  --accent-deep: #17606B;
  --accent-light: #6FBAC4;

  /* category colors — one per service field, used to color-code cards & the hero diagram */
  --cat-power: #C08A3E;
  --cat-lease: #1F7A88;
  --cat-estate: #B2593F;
  --cat-insurance: #4C7A5D;
  --cat-other: #6D5A82;

  --font-display: "Zen Old Mincho", serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-utility: "EB Garamond", "Zen Old Mincho", serif;

  --container: 1160px;
  --gutter: clamp(24px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  font-family: var(--font-utility);
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 128px) var(--gutter);
}

.eyebrow {
  font-family: var(--font-utility);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--accent-light);
  margin: 0 0 20px;
}
.eyebrow-dark { color: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.5;
  margin: 0 0 24px;
  color: var(--navy);
}
.section-title-light { color: var(--paper); }

.section-lead {
  max-width: 640px;
  font-size: 15.5px;
  color: rgba(38, 49, 63, 0.72);
  margin: 0 0 56px;
  text-wrap: pretty;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(30, 42, 56, 0.08); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 34px;
  height: auto;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
  font-size: 14px;
}
.nav a {
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after { right: 0; }

.nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  font-size: 13.5px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav a.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 620px 460px at 88% 12%, rgba(192, 138, 62, 0.16), transparent 62%),
    radial-gradient(ellipse 560px 460px at 68% 78%, rgba(178, 89, 63, 0.14), transparent 62%),
    radial-gradient(ellipse 700px 560px at 78% 45%, rgba(31, 122, 136, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), #16202B 60%, var(--navy-deep));
  color: var(--paper);
  padding-top: 90px;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.hero-text { max-width: 560px; min-width: 0; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.35;
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-utility);
  font-size: 15px;
  letter-spacing: 0.03em;
  border-radius: 2px;
  background: none;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn-large { padding: 17px 38px; font-size: 15.5px; }

.hero-graphic { width: 100%; }
.bridge-svg { width: 100%; height: auto; overflow: visible; }

.bridge-svg .link {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.6;
  opacity: 0.55;
}
.bridge-svg .link-out { stroke-dasharray: 3 7; stroke: var(--accent-light); opacity: 0.6; }
.bridge-svg .link-in {
  stroke-dasharray: 5 260;
  animation: flow 5s linear infinite;
  opacity: 0.95;
}
.bridge-svg .link-in.cat-power { stroke: var(--cat-power); }
.bridge-svg .link-in.cat-lease { stroke: var(--cat-lease); }
.bridge-svg .link-in.cat-estate { stroke: var(--cat-estate); }
.bridge-svg .link-in.cat-insurance { stroke: var(--cat-insurance); }
.bridge-svg .link-in.cat-other { stroke: var(--cat-other); }
.bridge-svg .link-in:nth-child(2) { animation-delay: -1.1s; }
.bridge-svg .link-in:nth-child(3) { animation-delay: -2.3s; }
.bridge-svg .link-in:nth-child(4) { animation-delay: -3.6s; }
.bridge-svg .link-in:nth-child(5) { animation-delay: -4.8s; }

@keyframes flow {
  to { stroke-dashoffset: -530; }
}
@media (prefers-reduced-motion: reduce) {
  .bridge-svg .link-in { animation: none; stroke-dasharray: none; opacity: 0.5; }
}

.node-need circle {
  fill: rgba(255, 255, 255, 0.07);
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.4;
}
.node-need.cat-power circle { stroke: var(--cat-power); }
.node-need.cat-lease circle { stroke: var(--cat-lease); }
.node-need.cat-estate circle { stroke: var(--cat-estate); }
.node-need.cat-insurance circle { stroke: var(--cat-insurance); }
.node-need.cat-other circle { stroke: var(--cat-other); }
.node-need text {
  fill: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 13px;
  text-anchor: middle;
}
.node-hub circle {
  fill: var(--paper);
}
.node-hub text {
  fill: var(--navy-deep);
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.04em;
  text-anchor: middle;
}
.node-dot { fill: var(--accent-light); opacity: 0.9; }
.partner-label {
  fill: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--accent-light);
  border-radius: 2px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}

/* ---------- Topics ---------- */

.topics { background: var(--paper-soft); }

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-item {
  border-top: 1px solid var(--paper-line);
}
.topic-item:last-child { border-bottom: 1px solid var(--paper-line); }

.topic-toggle {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.topic-date {
  flex: 0 0 110px;
  font-family: var(--font-utility);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--slate);
}

.topic-heading {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
}

.topic-chevron {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.topic-toggle[aria-expanded="true"] .topic-chevron {
  transform: rotate(-135deg);
}
.topic-toggle:hover .topic-heading { color: var(--accent); }

.topic-panel {
  padding: 0 0 28px 134px;
}

.topic-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(38, 49, 63, 0.78);
}

.topic-image {
  width: 100%;
  max-width: 480px;
  border-radius: 2px;
  margin: 18px 0;
}

.topic-more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-utility);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.topic-more:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- Services ---------- */

.services { background: var(--paper); }

.service-grid {
  display: flex;
  flex-wrap: wrap;
  border-left: 1px solid var(--paper-line);
  border-top: 1px solid var(--paper-line);
  background: var(--paper);
}

.service-card {
  flex: 1 1 20%;
  max-width: 20%;
  background: var(--paper-soft);
  padding: 28px 20px 32px;
  border-top: 3px solid transparent;
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  transition: background 0.25s ease;
}
.service-card:hover { background: #FFFFFF; }
.service-card.cat-power { border-top-color: var(--cat-power); }
.service-card.cat-lease { border-top-color: var(--cat-lease); }
.service-card.cat-estate { border-top-color: var(--cat-estate); }
.service-card.cat-insurance { border-top-color: var(--cat-insurance); }
.service-card.cat-other { border-top-color: var(--cat-other); }

.service-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate);
  border-radius: 50%;
  margin-bottom: 22px;
}
.service-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat-power .service-icon { border-color: var(--cat-power); }
.cat-power .service-icon svg { stroke: var(--cat-power); }
.cat-lease .service-icon { border-color: var(--cat-lease); }
.cat-lease .service-icon svg { stroke: var(--cat-lease); }
.cat-estate .service-icon { border-color: var(--cat-estate); }
.cat-estate .service-icon svg { stroke: var(--cat-estate); }
.cat-insurance .service-icon { border-color: var(--cat-insurance); }
.cat-insurance .service-icon svg { stroke: var(--cat-insurance); }
.cat-other .service-icon { border-color: var(--cat-other); }
.cat-other .service-icon svg { stroke: var(--cat-other); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--navy);
}
.service-card p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(38, 49, 63, 0.68);
  margin: 0;
}

/* ---------- Process ---------- */

.process { background: var(--navy); color: var(--paper); }

.process-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--dark-line);
}

.step-num {
  display: block;
  font-family: var(--font-utility);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  margin-bottom: 18px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 12px;
}
.process-step p {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

/* ---------- Strengths ---------- */

.strengths { background: var(--paper-soft); }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.strength-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.strength-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--navy);
}
.strength-item p {
  font-size: 14px;
  color: rgba(38, 49, 63, 0.68);
  margin: 0 0 16px;
}

.field-dots { display: inline-flex; gap: 7px; }
.field-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.field-dots .cat-power { background: var(--cat-power); }
.field-dots .cat-lease { background: var(--cat-lease); }
.field-dots .cat-estate { background: var(--cat-estate); }
.field-dots .cat-insurance { background: var(--cat-insurance); }
.field-dots .cat-other { background: var(--cat-other); }

/* ---------- Company ---------- */

.company { background: var(--paper); }

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.company-table tr { border-top: 1px solid var(--paper-line); }
.company-table tr:last-child { border-bottom: 1px solid var(--paper-line); }
.company-table th, .company-table td {
  text-align: left;
  padding: 18px 20px;
  font-weight: 400;
  vertical-align: top;
}
.company-table th {
  width: 160px;
  font-family: var(--font-utility);
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--slate);
  font-size: 14px;
}
.company-table td.placeholder,
.contact-line.placeholder {
  color: rgba(38, 49, 63, 0.42);
  font-style: italic;
}

/* ---------- Contact ---------- */

.contact {
  background: linear-gradient(180deg, var(--navy-deep), #16202B);
  color: var(--paper);
  text-align: center;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-lead {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  margin: 0 0 40px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-utility);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
}
.contact-inner .contact-line.placeholder { color: rgba(255, 255, 255, 0.42); }

.contact-form {
  width: 100%;
  max-width: 640px;
  margin: 0 0 32px;
  padding: clamp(28px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.contact-form label {
  font-family: var(--font-utility);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
}
.contact-form .required { color: var(--accent-light); margin-left: 3px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  background: rgba(255, 255, 255, 0.09);
}
.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.contact-form select option { color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
.form-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px;
}
.contact-form .btn { width: 100%; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.confirm-list { margin: 0 0 8px; }
.confirm-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.confirm-row:first-child { border-top: none; }
.confirm-row dt {
  font-family: var(--font-utility);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
}
.confirm-row dd {
  margin: 0;
  font-size: 15px;
  color: var(--paper);
  word-break: break-word;
}
.confirm-row-full dd { white-space: pre-wrap; line-height: 1.8; }

.form-confirm-actions { display: flex; gap: 14px; }
.form-confirm-actions .btn { width: auto; flex: 1; }

.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 1.4em;
}
.form-status.is-success { color: var(--accent-light); }
.form-status.is-error { color: #E0A96D; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .confirm-row { grid-template-columns: 1fr; gap: 4px; }
  .form-confirm-actions { flex-direction: column; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-soft); color: var(--ink); border-top: 1px solid var(--paper-line); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--gutter) 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-utility);
  font-style: italic;
  font-size: 12.5px;
  color: rgba(38, 49, 63, 0.55);
  margin: 0;
  width: 100%;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-copy { width: auto; text-align: right; }
}

/* ---------- Responsive ---------- */

.br-desktop { display: inline; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hero-graphic { max-width: 480px; width: 100%; opacity: 0.9; }
  .service-card { flex-basis: 50%; max-width: 50%; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .br-desktop { display: none; }

  .nav {
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--paper-line); }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }

  .company-table th { width: 108px; font-size: 13px; padding: 16px 12px; }
  .company-table td { padding: 16px 12px; }
}

@media (max-width: 600px) {
  .service-card { flex-basis: 100%; max-width: 100%; }
  .process-list { grid-template-columns: 1fr; }
  .topic-toggle { flex-wrap: wrap; gap: 6px 24px; }
  .topic-date { flex: 0 0 100%; order: -1; }
  .topic-panel { padding-left: 0; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
