:root {
  --blue: #21418b;
  --blue-deep: #152d65;
  --ink: #172031;
  --muted: #626a78;
  --border: #d9d8d2;
  --paper: #fffefa;
  --band: #eef1f7;
  --footer: #101f43;
  --white: #ffffff;
  --danger: #8d2a2a;
  --container: 1180px;
  --header-h: 80px;
  --diagram-rise: 10px;
  --diagram-stagger: 80ms;
  --diagram-icon-duration: 760ms;
  --diagram-wire-duration: 680ms;
  --diagram-ease: cubic-bezier(.22, 1, .36, 1);
  --diagram-wire-stroke: 2.4px;
  --radius: 8px;
  --shadow: 0 12px 32px rgba(23, 32, 49, 0.05);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Japanese body copy: avoid ー / small kana at line start (Hero excluded below). */
main {
  line-break: strict;
  word-break: normal;
}

section.hero,
section.hero * {
  line-break: auto;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: auto;
  z-index: 80;
  padding: 10px 14px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  transform: translateY(-120%);
}

.skip-link:focus-visible {
  transform: none;
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* BudouX <wbr> phrase breaks in ja-prose markup */
.about-principles p,
.about-principles h3,
.about-rest,
.member-bio,
.member-tags li,
.service-overview,
#services .service-bullets li,
.member-record-list li,
.members-lede,
.company-table td,
.company-table li,
.privacy p,
.contact-intro .lede,
.thanks h1,
.check label,
.cases-card__name-inner,
.cases-card__area,
#services .sec-message span,
.not-found h1,
.not-found p {
  word-break: keep-all;
  text-wrap: pretty;
  line-break: strict;
}

@media (max-width: 374px) {
  .about-principles p,
  .member-record-list li,
  #services .service-bullets li,
  .company-table li,
  .privacy p,
  .contact-intro .lede,
  .check label,
  .cases-card__name-inner,
  .cases-card__area {
    overflow-wrap: anywhere;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #102254;
  background: #fff;
  border-bottom: 1px solid #e3e7ef;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

body.has-hero main {
  margin-top: calc(-1 * var(--header-h));
}

body.has-hero .site-header.is-over-hero {
  color: #fff;
  background: transparent;
  border-bottom-color: transparent;
}

body.has-hero .site-header.is-over-hero .brand-mark {
  background: #fff;
}

body.has-hero .site-header.is-scrolled {
  color: #102254;
  background: #fff;
  border-bottom-color: #e3e7ef;
}

body.has-hero .site-header.is-scrolled .brand-mark {
  background: var(--blue);
}

body.has-hero .site-header.is-over-hero .nav-cta {
  background: #fff;
  border-color: #fff;
  color: var(--blue);
}

body.has-hero .site-header.is-scrolled .nav-cta {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

body.is-menu-open {
  overflow: hidden;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-mark {
  display: block;
  width: 148px;
  height: 32px;
  background: var(--blue);
  -webkit-mask: url("/assets/logo-rayzon.webp") left center / contain no-repeat;
  mask: url("/assets/logo-rayzon.webp") left center / contain no-repeat;
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
}

.menu-lines {
  position: relative;
  display: block;
  width: 24px;
  height: 14px;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-lines::before { top: 3px; }
.menu-lines::after { bottom: 3px; }

.menu-lines--close::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-lines--close::after {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.site-nav--desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  padding: 6px 0;
  min-height: 44px;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-link-en {
  font-family: "Noto Sans JP Nav", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.nav-link-ja {
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  opacity: 0.72;
}

.site-nav--desktop .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-cta:hover .nav-cta-arrow {
  transform: translateX(4px);
}

.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

body.is-menu-open .site-header .header-inner {
  visibility: hidden;
  pointer-events: none;
}

.sp-menu:not([hidden]) {
  pointer-events: auto;
  background: #21418b;
}

.sp-menu-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0 24px 40px;
  background: #21418b;
  color: #fff;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}

.sp-menu.is-open .sp-menu-panel {
  clip-path: inset(0 0 0 0);
}

.sp-menu.is-closing .sp-menu-panel {
  clip-path: inset(0 0 100% 0);
  transition-duration: 0.25s;
}

.sp-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: var(--header-h);
  margin: 0 -24px;
  padding: 0 20px;
  background: #21418b;
}

.sp-menu-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.sp-menu-brand-mark {
  display: block;
  width: 148px;
  height: 32px;
  background: #fff;
  -webkit-mask: url("/assets/logo-rayzon.webp") left center / contain no-repeat;
  mask: url("/assets/logo-rayzon.webp") left center / contain no-repeat;
}

.sp-menu-close {
  position: static;
  flex-shrink: 0;
  color: #fff;
}

.sp-menu-nav {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sp-menu-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  transition-delay: calc(var(--menu-i, 0) * 0.04s);
}

.sp-menu.is-open .sp-menu-link {
  opacity: 1;
  transform: none;
}

.sp-menu-link-en {
  display: block;
  font-family: "Noto Sans JP Nav", "Noto Sans JP", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sp-menu-link-ja {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.75;
}

.sp-menu-link-arrow {
  font-size: 14px;
  opacity: 0.6;
}

.sp-menu-foot {
  margin-top: auto;
}

.sp-menu-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #102254;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sp-menu-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.sp-menu-cta:hover .sp-menu-cta-arrow {
  transform: translateX(4px);
}

.sp-menu-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.sp-menu-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }

.btn-secondary {
  background: var(--paper);
  color: var(--blue);
  border-color: #c9cdd6;
}
.btn-secondary:hover { border-color: var(--blue); background: var(--white); }

.btn-outline {
  min-height: 44px;
  padding: 0 16px;
  border-color: #c5cad3;
  color: var(--ink);
  font-weight: 500;
  background: var(--paper);
}
.btn-outline:hover,
.btn-outline[aria-current="page"] {
  border-color: var(--blue);
  color: var(--blue);
}

.btn:disabled { opacity: 0.65; cursor: default; }

/* Hero, cases, about, and contact rules are in assets/sections/ and load after this file. */

.section { padding: 160px 0; }
.section-tight-top { padding-top: 8px; }

#about.section {
  padding-top: 200px;
}

#about,
#cases-logos,
#services,
#members,
#company,
#contact,
#privacy,
#confirm-heading {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section-band { background: var(--band); }

.kicker {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker .kicker-ja {
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}

.kicker .kicker-ja::before {
  content: "|";
  margin-right: 8px;
  color: #9aa6bd;
  font-weight: 400;
}

.section h2:not(.sec-desc),
.contact-intro h1,
.thanks h1,
.not-found h1 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 42em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

#confirm-heading {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.section-head { margin-bottom: 48px; }

.sec-head { margin-bottom: 48px; }

.sec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 20px;
}

.sec-en {
  display: inline-block;
  color: #16224a;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.sec-message {
  margin: 28px 0 0;
  max-width: 42em;
  color: #16224a;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.sec-message span {
  display: block;
}

@media (min-width: 1024px) {
  #services .sec-message {
    max-width: none;
    white-space: nowrap;
  }

  #services .sec-message span {
    display: inline;
  }

  #services .sec-message span + span::before {
    content: "\00a0";
  }
}

.sec-message--sp {
  display: none;
}

@media (max-width: 767px) {
  .sec-message--pc:not(:only-child) {
    display: none;
  }

  .sec-message--sp {
    display: block;
  }
}

.sec-ja {
  margin: 0;
  color: #21418b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

h2.sec-ja {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.sec-ja-suffix {
  font-size: 0.75em;
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.cases-list h2.sec-ja {
  word-break: keep-all;
  text-wrap: pretty;
}

h2.sec-desc,
.section h2.sec-desc,
.cta-panel h2.sec-desc,
#services h2.sec-desc,
.sec-desc {
  margin: 0;
  max-width: 42em;
  color: #102254;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  text-wrap: balance;
}

.sec-desc span { display: block; }

@media (min-width: 1024px) {
  .sec-desc span {
    display: inline;
  }

  .sec-desc span + span::before {
    content: " ";
  }

  #about .sec-desc {
    max-width: none;
    white-space: nowrap;
  }

  #contact .sec-desc.contact-desc {
    max-width: none;
    white-space: nowrap;
  }

  .sec-desc.contact-desc .contact-desc--sp {
    display: none;
  }
}

@media (max-width: 1023px) {
  #about .sec-desc {
    white-space: normal;
  }

  .sec-desc.contact-desc .contact-desc--pc {
    display: none;
  }

  .sec-desc.contact-desc .contact-desc--sp {
    display: contents;
  }

  #contact .sec-desc.contact-desc {
    max-width: none;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .section h2.sec-ja {
    font-size: clamp(20px, 5.4vw, 21px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
  }

  .sec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }
}

#company {
  position: relative;
  overflow-x: clip;
}

#company .b-deco {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  margin: 0;
  color: rgba(33, 65, 139, 0.06);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(var(--b-deco-x, 160px), -50%);
}

#company .company-layout {
  position: relative;
  z-index: 1;
}

.about-figure,
.mech,
.process-figure {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.diagram {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--blue);
  fill: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.diagram .wire,
.diagram .rule {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.diagram .wire { stroke-width: var(--diagram-wire-stroke); }
.diagram .rule { stroke-width: 1.5px; }

.diagram text { dominant-baseline: central; }

.diagram .quiet {
  fill: none;
  stroke: #c8c7c0;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.diagram .plate {
  fill: var(--band);
  stroke: none;
}

.diagram .knock {
  fill: var(--paper);
  stroke: none;
}

.diagram .icon,
.diagram .icon * {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.diagram .end { fill: var(--blue); }

.diagram .sub,
.diagram .fine {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.diagram .lane,
.diagram .arc-label,
.diagram .verb,
.diagram .compact-verb {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.diagram .tick {
  fill: var(--blue);
  font-size: 13px;
  font-weight: 500;
}

.diagram .verb.end,
.diagram .compact-verb.end {
  fill: var(--blue);
  font-weight: 700;
}

.diagram .fine { font-size: 11px; }
.diagram .compact-title { font-size: 11px; }
.diagram .compact-verb { font-size: 11px; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 64px;
}

.member-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  padding: 32px;
  border: 1px solid #e6e9f0;
  border-radius: 6px;
  background: var(--white);
  box-shadow: none;
}

.member-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}

.member-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  overflow: clip;
  border-radius: 4px;
  background: #f3f5f8;
  contain: paint;
}

.member-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.member-photo-ichisugi img {
  transform: scale(1);
  transform-origin: 50% 38%;
}

.member-photo-ueda img {
  transform: scale(1.45);
  transform-origin: 50% 38%;
}

.member-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 32px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #16224a;
}

.member-role {
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  list-style: none;
}

.member-tags li {
  padding: 4px 10px;
  border: 1px solid #c9d2e6;
  border-radius: 2px;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.member-tags li.is-placeholder {
  border-style: dashed;
  color: #8a93a8;
}

.member-bio {
  margin: 18px 0 0;
  color: #2b3552;
  font-size: 14px;
  line-height: 1.9;
}

#members .member-card {
  min-width: 0;
}

#members .lede,
#members .member-bio,
#members .member-record-list li {
  min-width: 0;
  max-width: 100%;
  text-wrap: pretty;
  line-break: strict;
}

#members .lede {
  overflow-wrap: anywhere;
}

.text-keep {
  white-space: nowrap;
}

.member-record-block {
  margin-top: 22px;
}

.member-record-label {
  margin: 0 0 6px;
  color: #8a93a8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.member-record { margin: 8px 8px 10px; border-top: 1px solid var(--border); }

.member-record summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.member-record summary::-webkit-details-marker { display: none; }

.member-record summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-2px);
}

.member-record[open] summary::after { transform: rotate(225deg) translateY(-2px); }

.member-record-list {
  display: grid;
  gap: 8px;
  margin: 8px 8px 10px;
  padding: 0;
  list-style: none;
}

.member-record ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.member-record li,
.member-record-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}

.member-record li::before,
.member-record-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--blue);
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.company-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.company-table td {
  min-width: 0;
}

.company-table th,
.company-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
}

.company-table tr:first-child th,
.company-table tr:first-child td { border-top: 1px solid var(--border); }

.company-table th {
  width: 8.5em;
  padding-right: 16px;
  color: var(--muted);
  font-weight: 500;
}

.company-table ul { list-style: none; }
.company-table a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.cta-band { padding: 28px 0 104px; }

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 44px;
  border-radius: 16px;
  background: var(--band);
}

.cta-panel--form {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 40px 44px 44px;
}

.cta-panel--form .contact-layout--embedded {
  padding: 32px 0 0;
  grid-template-columns: 1fr;
}

.cta-panel--form .contact-layout--embedded .form-card {
  margin: 0;
}

.cta-panel h2:not(.sec-desc) {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.cta-panel p {
  max-width: 40em;
  margin-top: 10px;
  color: var(--muted);
}

.site-footer {
  background: #21418b;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 28px;
}

.footer-compact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

@media (max-width: 374px) {
  .footer-top {
    gap: 8px;
  }

  .btn-footer-cta {
    padding: 0 8px;
    gap: 4px;
    letter-spacing: -0.03em;
    flex-shrink: 0;
    max-width: calc(100% - 126px);
  }
}

.footer-brand {
  display: inline-flex;
}

.footer-logo {
  display: block;
  width: 148px;
  height: 32px;
  margin: 0;
  background: #fff;
  -webkit-mask: url("/assets/logo-rayzon.webp") left center / contain no-repeat;
  mask: url("/assets/logo-rayzon.webp") left center / contain no-repeat;
}

.btn-footer-cta,
.site-nav--desktop .nav-cta {
  white-space: nowrap;
}

.btn-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.btn-footer-cta .btn-arrow {
  transition: transform 0.2s ease;
}

.btn-footer-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  opacity: 0.8;
}

.footer-nav-row a {
  color: inherit;
  text-decoration: none;
}

.footer-nav-row a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.thanks,
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 280px);
  padding: 88px 0;
  text-align: center;
}

.thanks h1,
.not-found h1 {
  max-width: 100%;
  text-wrap: balance;
}
.thanks p,
.not-found p { margin: 16px 0 28px; color: var(--muted); }

@media (max-width: 1080px) {
  :root {
    --header-h: 64px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav--desktop {
    display: none;
  }

  body.has-hero .site-header.is-over-hero .menu-button,
  body.has-hero .site-header.is-over-hero .brand-mark {
    color: #fff;
  }

  body.has-hero .site-header.is-scrolled .menu-button {
    color: var(--ink);
  }
}

@media (max-width: 767px) {
  .section {
    padding: 96px 0;
  }

  #about.section {
    padding-top: 96px;
  }

  .member-grid {
    gap: 28px;
    margin-top: 40px;
  }

  .member-card {
    padding: 20px;
  }

  .member-name {
    margin-top: 32px;
  }

  .member-bio {
    margin-top: 18px;
  }
}

@media (max-width: 800px) {
  .container { width: min(var(--container), calc(100% - 40px)); }
  .section { padding: 72px 0; }
  .member-grid,
  .company-layout { grid-template-columns: 1fr; }
  .cta-panel,
  .cta-band { padding-bottom: 0; }
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
    margin-bottom: 72px;
  }
  .cta-panel--form {
    padding: 28px 22px 32px;
  }
  .cta-panel--form .contact-layout--embedded {
    padding-top: 24px;
  }
  .cta-panel .btn { width: 100%; }
  .company-table th,
  .company-table td { display: block; width: 100%; }
  .company-table th { padding-bottom: 0; border-bottom: 0; }
  .company-table td { padding-top: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.no-js) .sec-message.motion-fade,
  html:not(.no-js) .sec-desc.motion-fade {
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  html:not(.no-js) .sec-message.motion-fade.is-motion-in,
  html:not(.no-js) .sec-desc.motion-fade.is-motion-in {
    opacity: 1;
    transition-delay: 0.8s;
  }

  html:not(.no-js) .member-photo-frame:not(.is-motion-in) .member-photo {
    opacity: 0;
    transform: translateY(8px);
  }

  html:not(.no-js) .member-photo-frame.is-motion-in .member-photo {
    animation: member-photo-in 0.6s ease forwards;
  }

  html:not(.no-js) .diagram [data-diagram-icon],
  html:not(.no-js) .diagram [data-diagram-plate] {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transform: translateY(var(--diagram-rise));
    transition:
      opacity var(--diagram-icon-duration) var(--diagram-ease),
      transform var(--diagram-icon-duration) var(--diagram-ease);
    transition-delay: calc(var(--diagram-stagger) * var(--i, 0));
  }
  html:not(.no-js) .diagram.is-inview [data-diagram-icon],
  html:not(.no-js) .diagram.is-inview [data-diagram-plate] {
    opacity: 1;
    transform: none;
  }
  html:not(.no-js) .diagram .wire[data-wire] {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  html:not(.no-js) .diagram:not(.is-drawn) .wire-end {
    marker-end: none;
  }
  html:not(.no-js) .diagram.is-inview .wire[data-wire] {
    animation: rayzon-wire-draw var(--diagram-wire-duration) var(--diagram-ease) forwards;
  }
  .rise.is-armed {
    opacity: 0;
    transform: translateY(8px);
  }
  .rise.is-in {
    animation: rise-in 0.9s ease-out 1 forwards;
  }
}

@keyframes rayzon-wire-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes rise-in {
  to { opacity: 1; transform: none; }
}

@keyframes member-photo-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sec-message.motion-fade,
  .sec-desc.motion-fade {
    opacity: 1;
    clip-path: none;
    animation: none;
    transition: none;
  }
  .member-photo {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .sp-menu-panel {
    clip-path: none;
    transition: none;
  }
  .sp-menu-link {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .rise.is-armed,
  .rise.is-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .arc-label { animation: none; opacity: 1; }
  .diagram [data-diagram-icon],
  .diagram [data-diagram-plate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .diagram .wire[data-wire] {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Mobile: Hero h1 > h2.sec-ja > h3 (cascade order after base h3 sizes). */
@media (max-width: 767px) {
  .member-name,
  #services .service-title,
  .about-principles h3,
  .process-steps h3 {
    font-size: clamp(14px, 4.2vw, 19px);
  }
}
