/* ===== IREP-LEVEL BRAND SYSTEM — From Diamond to Society ===== */
/* Final layer: typography, palette, components, motion hooks */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy-deep: #0f1a2a;
  --ink: #111111;
  --off-white: #f7f4ee;
  --warm-gray: #e8e3da;
  --light-line: #d8d2c8;
  --tokiwa-red: #8f1d1d;
  --gold-muted: #b08a3c;
  --ground-brown: #6f4e37;
  --green-dark: #1f3a2e;
  --gray-text: #6b7280;
  --white: #ffffff;
  --font-en: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --navy: var(--navy-deep);
  --navy-light: #1a2d45;
  --text: var(--ink);
  --text-muted: var(--gray-text);
  --bg: var(--off-white);
  --bg-alt: var(--warm-gray);
  --border: var(--light-line);
  --gold: var(--gold-muted);
  --gold-light: #c9a85a;
  --accent: var(--tokiwa-red);
  --cream: var(--off-white);
  --cream-warm: var(--warm-gray);
  --section-pad: clamp(120px, 14vw, 180px);
}

body {
  background: var(--off-white);
  color: var(--ink);
}

/* ===== English Display Typography ===== */
.display-en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 clamp(24px, 4vw, 40px);
}

.display-en span {
  display: block;
}

.display-en-light {
  color: var(--white);
}

.display-en-sm {
  font-size: clamp(2rem, 6vw, 4.5rem);
  margin-bottom: clamp(16px, 3vw, 28px);
}

.section-en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-en-light {
  color: rgba(255, 255, 255, 0.55);
}

.section-en-accent::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--tokiwa-red);
  margin-right: 16px;
  vertical-align: middle;
}

/* ===== Hero — irep layout ===== */
.hero-full.has-visual {
  background: var(--off-white) !important;
  min-height: min(100vh, 960px);
  padding: clamp(140px, 16vw, 200px) 0 clamp(100px, 12vw, 140px);
  border-bottom: 1px solid var(--light-line);
}

.hero-full .hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vw, 80px);
}

@media (min-width: 901px) {
  .hero-full .hero-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
}

.hero-full .display-en {
  opacity: 0.92;
}

.hero-full .display-heading {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  max-width: 16em;
}

.hero-full .lead {
  max-width: 28em;
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 2;
  color: var(--gray-text);
}

.hero-tagline {
  display: none;
}

/* ===== Buttons — brand CTA ===== */
.btn-gold,
.btn-irep-primary {
  background: var(--tokiwa-red) !important;
  border-color: var(--tokiwa-red) !important;
  color: var(--white) !important;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  background: #a52424 !important;
  border-color: #a52424 !important;
}

.btn-irep {
  background: var(--ink) !important;
  color: var(--white) !important;
  border: 1px solid var(--ink) !important;
  font-family: var(--font-en) !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  padding: 12px 24px !important;
  position: relative;
}

.btn-irep::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-muted);
  transition: width 0.35s ease;
}

.btn-irep:hover::after {
  width: 100%;
}

.btn-irep-outline {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
}

.btn-irep-outline:hover {
  background: var(--ink) !important;
  color: var(--white) !important;
}

.btn-arrow::after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.25s ease;
  display: inline-block;
}

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

.hero-full .btn-outline-white {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  background: transparent !important;
}

.hero-full .btn-outline-white:hover {
  background: var(--ink) !important;
  color: var(--white) !important;
}

/* ===== Header ===== */
.site-header {
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(247, 244, 238, 0.97);
  border-bottom-color: var(--light-line);
  box-shadow: none;
}

.logo-mark {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-family: var(--font-en);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.625rem;
}

.header-nav a {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--ink);
}

/* ===== Brand Statement / WHO WE ARE ===== */
.brand-statement-dark.has-visual {
  background: var(--navy-deep) !important;
  padding: var(--section-pad) 0;
}

.brand-statement-dark .section-en {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 48px;
}

.brand-statement-dark p {
  color: var(--white) !important;
  font-size: clamp(2rem, 5vw, 3.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
}

.brand-statement-dark .accent {
  color: var(--white) !important;
  text-decoration: underline;
  text-decoration-color: var(--gold-muted);
  text-underline-offset: 10px;
  text-decoration-thickness: 2px;
}

.brand-statement-body {
  margin-top: clamp(40px, 5vw, 56px);
  max-width: 560px;
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.65);
}

.chalk-line {
  background: var(--gold-muted);
  width: 48px;
  height: 2px;
}

/* ===== Page Hero ===== */
.page-hero-large.has-visual {
  background: var(--off-white) !important;
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 120px);
  border-bottom: 1px solid var(--light-line);
}

.page-hero-large .section-en {
  margin-bottom: 24px;
}

.page-hero-large h1 {
  font-size: clamp(2.25rem, 5vw, 4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.12 !important;
  max-width: 14em;
}

.page-hero-large .lead {
  color: var(--gray-text);
  max-width: 32em;
}

.vision-hero.has-visual {
  background: var(--navy-deep) !important;
}

.vision-hero.has-visual h1,
.vision-hero.has-visual .lead {
  color: var(--white) !important;
}

.vision-hero.has-visual .lead {
  color: rgba(255, 255, 255, 0.7) !important;
}

.vision-hero.has-visual .breadcrumb,
.vision-hero.has-visual .breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Section ===== */
.section,
.section-spacious {
  padding: var(--section-pad) 0;
}

.section-header .section-label {
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  color: var(--gray-text);
}

.display-heading-sm {
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

/* ===== Platform ===== */
.platform-col.center {
  background: var(--navy-deep) !important;
  border-color: var(--navy-deep) !important;
}

.platform-label {
  font-family: var(--font-en);
  color: var(--gold-muted);
}

.platform-col.center .platform-label {
  color: var(--gold-light);
}

.platform-list li::before {
  background: var(--gold-muted);
  border-radius: 0;
}

/* ===== Solution Steps (Service) ===== */
.solution-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--light-line);
  margin-bottom: var(--section-pad);
}

@media (min-width: 768px) {
  .solution-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .solution-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.solution-step {
  padding: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--light-line);
  border-right: 1px solid var(--light-line);
  transition: background 0.3s ease;
}

.solution-step:hover {
  background: rgba(15, 26, 42, 0.03);
}

.solution-step-num {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--light-line);
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.solution-step-en {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.solution-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.solution-step p {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.85;
}

/* ===== Business Phases ===== */
.phase-roadmap-irep {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--light-line);
}

@media (min-width: 768px) {
  .phase-roadmap-irep {
    grid-template-columns: repeat(3, 1fr);
  }
}

.phase-block-irep {
  padding: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--light-line);
  border-right: 1px solid var(--light-line);
  position: relative;
}

.phase-block-irep::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tokiwa-red);
  transition: width 0.6s ease;
}

.phase-block-irep.visible::before {
  width: 100%;
}

.phase-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-muted);
  margin-bottom: 12px;
}

.phase-block-irep h3 {
  font-family: var(--font-en);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.phase-block-irep .phase-ja {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.phase-block-irep p {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.85;
}

/* ===== Proclaim / Problem ===== */
.section-proclaim.has-visual {
  background: var(--ink) !important;
  padding: var(--section-pad) 0;
}

.section-proclaim .proclaim-text {
  color: var(--white) !important;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem) !important;
}

.section-proclaim .proclaim-text .highlight {
  color: var(--gold-muted) !important;
}

.section-proclaim .proclaim-text .muted {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* ===== Value grid on diamond ===== */
.value-grid-v2 {
  position: relative;
}

.value-card-v2 {
  border: none !important;
  border-top: 1px solid var(--light-line) !important;
  background: transparent !important;
  padding: clamp(36px, 4vw, 48px) 0 !important;
}

.value-card-v2-icon {
  color: var(--gold-muted) !important;
}

.value-card-v2::before {
  display: none !important;
}

/* ===== Why pillars — horizontal rich ===== */
.why-pillars-irep {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--light-line);
}

@media (min-width: 900px) {
  .why-pillars-irep {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-pillar-irep {
  padding: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--light-line);
  border-right: 1px solid var(--light-line);
}

.why-pillar-irep-num {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-muted);
  margin-bottom: 16px;
}

.why-pillar-irep h3 {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.why-pillar-irep .why-ja {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-pillar-irep p {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.85;
}

/* ===== Player questions — stagger display ===== */
.question-list-irep {
  list-style: none;
  border-top: 1px solid var(--light-line);
}

.question-list-irep li {
  font-size: clamp(1.125rem, 2.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--light-line);
  border-left: none !important;
  background: transparent !important;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.question-list-irep.visible li {
  opacity: 1;
  transform: translateY(0);
}

.question-list-irep.visible li:nth-child(1) { transition-delay: 0.05s; }
.question-list-irep.visible li:nth-child(2) { transition-delay: 0.15s; }
.question-list-irep.visible li:nth-child(3) { transition-delay: 0.25s; }
.question-list-irep.visible li:nth-child(4) { transition-delay: 0.35s; }

/* ===== Promise ===== */
.section-promise.has-visual {
  background: var(--navy-deep) !important;
}

.section-promise .section-en {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

.section-promise h2 {
  text-align: center;
  color: var(--white) !important;
}

/* ===== Dual path ===== */
.dual-path-panel.dual-path-company {
  background: var(--navy-deep) !important;
  color: var(--white) !important;
}

.dual-path-panel.dual-path-company .dual-path-question,
.dual-path-panel.dual-path-company .dual-path-link {
  color: var(--white) !important;
}

.dual-path-panel.dual-path-company .dual-path-label {
  color: var(--gold-muted) !important;
}

.dual-path-panel.dual-path-company .dual-path-supplement {
  color: rgba(255, 255, 255, 0.72) !important;
}

.dual-path-panel.dual-path-company .dual-path-link {
  border-bottom-color: var(--gold-muted) !important;
}

.dual-path-panel.dual-path-player {
  background: var(--off-white) !important;
  color: var(--ink) !important;
}

.dual-path-company {
  background: var(--navy-deep) !important;
  color: var(--white);
}

.dual-path-company .dual-path-question,
.dual-path-company .dual-path-link {
  color: var(--white);
}

.dual-path-company .dual-path-supplement {
  color: rgba(255, 255, 255, 0.65);
}

.dual-path-player {
  background: var(--off-white) !important;
}

.dual-path-link {
  border-bottom-color: var(--tokiwa-red);
}

/* ===== CTA Banner ===== */
.cta-banner.has-visual {
  background: var(--ink) !important;
}

/* ===== Footer marquee ===== */
.footer-marquee {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-marquee-track {
  display: flex;
  gap: 64px;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
}

.footer-marquee-track span {
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-brand-message {
  padding: clamp(80px, 10vw, 120px) 0 clamp(48px, 6vw, 64px);
}

.footer-en {
  font-family: var(--font-en);
  font-size: clamp(0.6875rem, 1vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 24px;
}

.footer-tagline {
  font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.15 !important;
}

.footer-cta-bar {
  margin-top: 48px;
}

.site-footer {
  background: var(--ink) !important;
}

/* ===== Contact closing brand ===== */
.contact-brand-close {
  text-align: center;
  padding: var(--section-pad) 0;
  background: var(--navy-deep);
  color: var(--white);
}

.contact-brand-close .display-en-sm {
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}

.contact-brand-close p {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ===== Flow timeline ===== */
.flow-steps-irep {
  position: relative;
  padding-left: 48px;
}

.flow-steps-irep::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--light-line);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-steps-irep.visible::before {
  transform: scaleY(1);
}

/* ===== SVG accent colors ===== */
.visual-vector-hero-bg,
.visual-vector-page {
  opacity: 0.75;
}

/* Override modern blue back to brand */
:root {
  --tokiwa-red: #8f1d1d;
  --accent: #0055ff;
}

.btn-gold {
  background: var(--tokiwa-red) !important;
  border-color: var(--tokiwa-red) !important;
}

circle[fill="#0055ff"],
.visual-vector svg circle[fill="#0055ff"] {
  fill: var(--gold-muted);
}

/* ===== Accent line scroll ===== */
.scroll-line {
  display: block;
  width: 1px;
  height: 80px;
  background: var(--light-line);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--tokiwa-red);
  animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0% { height: 0; top: 0; }
  50% { height: 100%; top: 0; }
  100% { height: 0; top: 100%; }
}

@media (max-width: 768px) {
  .display-en {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .header-cta .btn-irep {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle {
    position: relative;
    z-index: 201;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-marquee-track,
  .scroll-line::after {
    animation: none !important;
  }
}

/* ===== CONTRAST FIX — diagrams & graphics ===== */

/* For Players: 価値の翻訳 — hide redundant faint side SVG, strengthen flow steps */
.visual-flow-split {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0 auto;
}

.visual-flow-split .visual-vector-flow {
  display: none;
}

.vertical-flow {
  max-width: 100%;
  width: 100%;
}

.vertical-flow-step {
  background: var(--white) !important;
  border: 2px solid var(--navy-deep) !important;
  padding: clamp(28px, 4vw, 36px) clamp(24px, 3vw, 32px) !important;
  box-shadow: 0 2px 0 rgba(15, 26, 42, 0.06);
}

.vertical-flow-step h4 {
  color: var(--ink) !important;
  font-weight: 800;
  font-size: 1.05rem;
}

.vertical-flow-step p {
  color: var(--gray-text) !important;
}

.vertical-flow-step.highlight {
  background: var(--navy-deep) !important;
  border-color: var(--navy-deep) !important;
  box-shadow: none;
}

.vertical-flow-step.highlight h4 {
  color: var(--white) !important;
}

.vertical-flow-step.highlight p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.vertical-flow-arrow {
  background: var(--navy-deep) !important;
  width: 2px !important;
  height: 28px !important;
  opacity: 0.35;
}

.vertical-flow-arrow::after {
  border-top-color: var(--navy-deep) !important;
}

.section-alt {
  background: var(--warm-gray) !important;
}

/* Business / TOP: platform diagram */
.visual-platform-wrap {
  background: var(--white);
  border: 2px solid var(--navy-deep);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(48px, 6vw, 64px);
}

.visual-vector-platform {
  opacity: 1 !important;
}

.platform-diagram {
  margin-top: 0;
}

.platform-col:not(.center) {
  background: var(--white) !important;
  border: 2px solid var(--navy-deep) !important;
}

.platform-col.center {
  background: var(--navy-deep) !important;
  border: 2px solid var(--navy-deep) !important;
}

.platform-col.center .platform-list li::before {
  background: var(--gold-muted) !important;
}

.platform-connector::after {
  background: var(--navy-deep) !important;
  height: 2px !important;
  opacity: 0.35;
}

.platform-connector::before {
  background: var(--tokiwa-red) !important;
}

/* Phase roadmap */
.phase-roadmap-irep {
  border: 2px solid var(--navy-deep);
  background: var(--white);
}

.phase-block-irep {
  background: var(--white);
}

.phase-block-irep:nth-child(2) {
  background: rgba(15, 26, 42, 0.03);
}

.visual-phase-wrap {
  background: var(--white);
  border: 2px solid var(--navy-deep);
  padding: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.visual-vector-phase {
  opacity: 1 !important;
}

/* Hide duplicate old phase list on business */
.phase-roadmap[style*="display:none"],
.phase-roadmap[aria-hidden="true"] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Compare table contrast */
.compare-table .col-us {
  background: rgba(15, 26, 42, 0.04) !important;
  border-left: 3px solid var(--tokiwa-red) !important;
}

/* Hero / page background vectors — stronger on light bg */
.hero-full.has-visual .visual-vector-hero-bg {
  opacity: 0.92 !important;
}

.page-hero-large.has-visual .visual-vector-page {
  opacity: 0.55 !important;
}

/* Service map & team ring */
.visual-vector-service,
.visual-vector-team-ring {
  opacity: 1 !important;
  filter: contrast(1.15);
}

.section.has-visual-grid,
.section-diamond.has-visual-grid {
  background: var(--warm-gray);
}

.section.has-visual-grid .platform-col:not(.center),
.section-diamond.has-visual-grid .platform-col:not(.center) {
  background: var(--white) !important;
}

/* Grid pattern subtle on warm gray only */
.has-visual-grid .visual-bg-grid {
  opacity: 0.25 !important;
}

/* ===== TEAM PAGE ===== */
.team-page-section {
  background: var(--warm-gray) !important;
}

.team-page-section .section-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.team-page-section .section-header .text-muted {
  color: var(--gray-text) !important;
}

.team-diamond-layout {
  max-width: 560px;
  margin: 0 auto;
}

.team-diamond-layout .diamond-outline {
  display: block !important;
  border: 2px solid rgba(15, 26, 42, 0.2) !important;
  opacity: 1 !important;
}

.team-diamond-center {
  background: var(--navy-deep) !important;
  color: var(--white) !important;
  border-radius: 0 !important;
  width: 104px !important;
  height: 104px !important;
  font-family: var(--font) !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  box-shadow: none !important;
}

a.team-diamond-node,
.team-diamond-node {
  background: var(--white) !important;
  border: 2px solid var(--navy-deep) !important;
  border-top-width: 3px !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 2px 0 rgba(15, 26, 42, 0.06);
  cursor: pointer;
}

a.team-diamond-node .q-label,
.team-diamond-node .q-label {
  color: var(--gold-muted) !important;
  font-family: var(--font-en);
  font-size: 0.625rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

a.team-diamond-node .q-name,
.team-diamond-node .q-name {
  color: var(--ink) !important;
  font-family: var(--font) !important;
  font-weight: 800 !important;
  font-size: 0.9375rem !important;
}

.team-diamond-node.td-home { border-top-color: var(--gold-muted) !important; }
.team-diamond-node.td-first { border-top-color: var(--tokiwa-red) !important; }
.team-diamond-node.td-second { border-top-color: #2d6a4f !important; }
.team-diamond-node.td-third { border-top-color: var(--navy-deep) !important; }

a.team-diamond-node:hover,
.team-diamond-node:hover {
  background: var(--white) !important;
  box-shadow: 0 8px 24px rgba(15, 26, 42, 0.12) !important;
  transform: translateY(-2px);
}

.team-diamond-node.td-home:hover { transform: translateX(-50%) translateY(-2px) !important; }
.team-diamond-node.td-second:hover { transform: translateX(-50%) translateY(-2px) !important; }
.team-diamond-node.td-first:hover { transform: translateY(calc(-50% - 2px)) !important; }
.team-diamond-node.td-third:hover { transform: translateY(calc(-50% - 2px)) !important; }

.team-grid-enhanced {
  gap: clamp(24px, 3vw, 32px);
}

.team-card-v2 {
  border: 2px solid var(--navy-deep) !important;
  border-radius: 0 !important;
  background: var(--white) !important;
  scroll-margin-top: calc(var(--header-h, 72px) + 24px);
}

.team-card-v2:target {
  outline: 2px solid var(--tokiwa-red);
  outline-offset: 4px;
}

.team-card-v2-header {
  background: var(--navy-deep) !important;
  padding: clamp(28px, 4vw, 40px) !important;
}

.team-card-v2-header h3 {
  color: var(--white) !important;
  font-family: var(--font) !important;
  font-weight: 800 !important;
}

.team-card-v2-role {
  color: var(--gold-muted) !important;
  font-weight: 700 !important;
}

.team-card-v2-tagline {
  color: rgba(255, 255, 255, 0.82) !important;
  font-style: normal !important;
  line-height: 1.7 !important;
}

.team-card-v2-body {
  padding: clamp(24px, 3vw, 32px) !important;
}

.team-card-v2-section-label {
  color: var(--ink) !important;
  font-family: var(--font-en);
  font-size: 0.6875rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}

.team-card-v2-section p {
  color: var(--gray-text) !important;
  line-height: 1.85 !important;
}

.team-tag {
  background: rgba(15, 26, 42, 0.04) !important;
  border: 1px solid rgba(15, 26, 42, 0.15) !important;
  color: var(--ink) !important;
  font-size: 0.75rem !important;
}

.visual-vector-team-ring {
  opacity: 0.35 !important;
}

@media (max-width: 768px) {
  .team-diamond-layout {
    max-width: 340px;
  }

  .team-diamond-node {
    width: 42% !important;
    padding: 12px 8px !important;
  }

  a.team-diamond-node .q-name,
  .team-diamond-node .q-name {
    font-size: 0.8125rem !important;
  }

  .team-grid-enhanced {
    grid-template-columns: 1fr !important;
  }

  .team-page-section .section-header .display-heading-sm {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
  }
}

/* ===== HOME PAGE ===== */
.page-home .hero-tagline {
  display: block !important;
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 16px;
}

.page-home .hero-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--gray-text);
  line-height: 1.6;
}

.page-home .lead strong {
  color: var(--ink);
  font-weight: 700;
}

.home-key-points {
  padding: clamp(40px, 6vw, 56px) 0;
  background: var(--white);
  border-bottom: 1px solid var(--light-line);
}

.home-key-list {
  list-style: none;
  display: grid;
  gap: 0;
  border: 2px solid var(--navy-deep);
}

@media (min-width: 768px) {
  .home-key-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-key-item {
  display: flex;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--light-line);
  background: var(--white);
}

@media (min-width: 768px) {
  .home-key-item {
    border-bottom: none;
    border-right: 1px solid var(--light-line);
  }

  .home-key-item:last-child {
    border-right: none;
  }
}

.home-key-item:last-child {
  border-bottom: none;
}

.home-key-num {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--tokiwa-red);
  flex-shrink: 0;
  padding-top: 2px;
}

.home-key-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.home-key-item p {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin: 0;
}

.platform-step-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tokiwa-red);
  margin-bottom: 8px;
}

.platform-col.center .platform-step-badge {
  color: var(--gold-muted);
}

.platform-step-desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--gray-text);
  margin: 0 0 16px;
}

.platform-col.center .platform-step-desc {
  color: rgba(255, 255, 255, 0.78);
}

.platform-diagram-note {
  margin-top: clamp(24px, 4vw, 40px);
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: center;
}

.platform-diagram-note a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.platform-flow-arrow {
  font-size: 1.25rem;
  color: var(--navy-deep);
  opacity: 0.45;
}

.home-diff-section {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.home-diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border: 2px solid var(--navy-deep);
}

@media (min-width: 768px) {
  .home-diff-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
}

.home-diff-col {
  padding: clamp(28px, 4vw, 40px);
  background: var(--white);
}

.home-diff-col:first-child {
  border-bottom: 1px solid var(--light-line);
}

@media (min-width: 768px) {
  .home-diff-col:first-child {
    border-bottom: none;
    border-right: 1px solid var(--light-line);
  }
}

.home-diff-col h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
}

.home-diff-us {
  background: rgba(15, 26, 42, 0.03);
  border-left: 3px solid var(--tokiwa-red);
}

@media (min-width: 768px) {
  .home-diff-us {
    border-left: none;
    box-shadow: inset 3px 0 0 var(--tokiwa-red);
  }
}

.home-diff-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-diff-col li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.65;
}

.home-diff-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 6px;
  background: var(--gold-muted);
}

.home-diff-us li::before {
  background: var(--tokiwa-red);
}

.home-services-section {
  background: var(--warm-gray) !important;
}

.home-solution-steps {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.home-solution-steps .solution-step {
  background: var(--white);
}

.home-services-link {
  text-align: center;
}

@media (max-width: 900px) {
  .page-home .visual-platform-wrap {
    display: none !important;
  }

  .page-home .hero-visual {
    display: none;
  }

  .page-home .hero-full.has-visual .visual-vector-hero-bg {
    opacity: 0.35 !important;
  }

  .page-home .hero-full {
    min-height: auto;
    padding: clamp(100px, 14vw, 120px) 0 clamp(64px, 10vw, 80px);
  }

  .page-home .display-en {
    font-size: clamp(2rem, 12vw, 3rem);
    margin-bottom: 8px;
  }

  .page-home .platform-diagram {
    margin: 32px 0 0;
  }

  .page-home .platform-connector {
    display: flex !important;
    width: 100%;
    height: 36px;
    justify-content: center;
    align-items: center;
  }

  .page-home .platform-flow-arrow {
    transform: rotate(90deg);
  }

  .page-home .platform-col {
    background: var(--white) !important;
    border: 2px solid var(--navy-deep) !important;
  }

  .page-home .platform-col.center {
    background: var(--navy-deep) !important;
  }

  .page-home .platform-list li {
    color: var(--gray-text) !important;
  }

  .page-home .platform-col.center .platform-list li {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .page-home .home-solution-steps {
    grid-template-columns: 1fr !important;
  }

  .page-home .dual-path-panel {
    padding: clamp(40px, 8vw, 56px) clamp(24px, 5vw, 32px);
  }

  .page-home .dual-path-question {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }
}

@media (max-width: 480px) {
  .page-home .btn-group {
    width: 100%;
  }

  .page-home .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
}
