/* CA Finance Associates - Japanese professional style */
:root {
  --color-primary: #0f2744;
  --color-primary-light: #1a365d;
  --color-primary-soft: #2c5282;
  --color-accent: #c4902a;
  --color-accent-light: #e0a83d;
  --color-accent-soft: rgba(196, 144, 42, 0.12);
  --color-text: #1a202c;
  --color-text-light: #4a5568;
  --color-bg: #f7f8fa;
  --color-white: #ffffff;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-serif: "Noto Serif JP", serif;
  --shadow: 0 4px 14px rgba(15, 39, 68, 0.06), 0 2px 6px rgba(15, 39, 68, 0.04);
  --shadow-lg: 0 12px 28px rgba(15, 39, 68, 0.1), 0 4px 12px rgba(15, 39, 68, 0.06);
  --shadow-glow: 0 8px 32px rgba(196, 144, 42, 0.2);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Subtle fade-in for sections */
.section {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 39, 68, 0.06);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Simple header (landing + optional: no nav) */
.header-simple .nav,
.header-simple .menu-toggle {
  display: none;
}

.btn-header {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a:hover {
  color: var(--color-primary);
}

.nav-current {
  color: var(--color-primary) !important;
  font-weight: 600;
}

/* Nav & link icons (SVG via mask, inherits text color) */
.nav a .icon,
.footer-nav a .icon,
.page-link-card .icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.nav a .icon { width: 1.05em; height: 1.05em; }

.icon-home { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E"); }
.icon-services { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z'/%3E%3C/svg%3E"); }
.icon-about { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E"); }
.icon-patent { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-9V3.5L18.5 9H13z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-9V3.5L18.5 9H13z'/%3E%3C/svg%3E"); }
.icon-credentials { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E"); }
.icon-flow { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/%3E%3C/svg%3E"); }
.icon-faq { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z'/%3E%3C/svg%3E"); }
.icon-contact { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 40%, #1e4a7a 100%);
  opacity: 0.3;
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(15, 39, 68, 0.82) 0%, rgba(26, 54, 93, 0.78) 100%);
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 120%, rgba(196, 144, 42, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 4v4M24 40v4M4 24h4M40 24h4M8.5 8.5l2.8 2.8M36.7 36.7l2.8 2.8M8.5 39.5l2.8-2.8M36.7 11.3l2.8-2.8' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  text-align: center;
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Stats strip */
.stats-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 2.5rem 0;
  margin-top: -1px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  color: var(--color-white);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  display: inline-block;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.95;
}

.stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

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

.btn-white:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Main sub-pages (below fixed header) */
.main-page {
  padding-top: 64px;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

/* Page links grid (home) */
.page-links {
  background: var(--color-white);
}

.page-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--color-bg);
  color: var(--color-primary);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.page-link-card .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.page-link-card:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.page-link-card-accent {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.page-link-card-accent:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.flow-cta,
.faq-cta {
  text-align: center;
  margin-top: 2rem;
}

.flow-cta .btn,
.faq-cta .btn {
  display: inline-block;
}

/* Services preview (landing) */
.services-preview {
  background: var(--color-white);
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.services-preview-item {
  padding: 1.75rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
  transition: transform var(--transition);
}

.services-preview-item:hover {
  transform: translateY(-2px);
}

.services-preview-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.services-preview-item h3 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.services-preview-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Flow preview (landing) */
.flow-preview {
  background: var(--color-bg);
}

.flow-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.flow-preview-step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.flow-preview-step:hover {
  transform: translateY(-3px);
}

.flow-preview-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.flow-preview-step h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.flow-preview-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* FAQ preview (landing) */
.faq-preview {
  background: var(--color-white);
}

.faq-preview-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-preview-item {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary-soft);
}

.faq-preview-item h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.faq-preview-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Company info (landing) */
.company-info {
  background: var(--color-bg);
}

.company-info-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.company-info-block {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.company-info-block h4 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.company-info-block p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.company-info-note {
  margin-top: 0.75rem !important;
  font-size: 0.9rem !important;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: 0.03em;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

/* Why Us */
.why-us {
  background: var(--color-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--color-white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.why-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

/* About - address block */
.about-address {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-address h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.about-address p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Patent / Trademark */
.patent {
  background: var(--color-bg);
}

.patent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.patent-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.patent-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
  font-weight: 600;
}

.patent-card dl {
  margin: 0;
}

.patent-card dt {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.patent-card dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

.patent-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.patent-note a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.patent-note a:hover {
  text-decoration: underline;
}

/* Content internal links */
.content-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.content-link:hover {
  color: var(--color-accent);
}

.content-link-inverse {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-link-inverse:hover {
  color: var(--color-white);
}

.hero .content-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero .content-link:hover {
  color: var(--color-white);
}

/* Mission */
.mission {
  background: var(--color-white);
}

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.mission-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title-left {
  text-align: left;
  margin-bottom: 1.25rem;
}

.mission-content p {
  color: var(--color-text-light);
  margin: 0 0 1rem;
  line-height: 1.8;
}

.mission-values {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.mission-values li {
  padding: 0.5rem 0;
  color: var(--color-text);
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.mission-values li:last-child {
  border-bottom: none;
}

.mission-values strong {
  color: var(--color-primary);
  margin-right: 0.5rem;
}

.mission-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mission-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.mission-card {
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.mission-card:hover {
  transform: translateX(8px);
}

.mission-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.mission-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.mission-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Services CTA */
.services-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.services-cta p {
  margin: 0 0 1rem;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 0;
  border: 1px solid rgba(15, 39, 68, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--color-accent-soft);
  box-shadow: var(--shadow);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: "\201C";
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.5;
  display: block;
  margin-bottom: -0.5rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  margin: 0 0 1rem;
  font-style: normal;
}

.testimonial-card footer {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: normal;
}

/* Cases */
.cases {
  background: var(--color-bg);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--color-white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--color-accent);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.case-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.case-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

/* CTA Banner */
.cta-banner {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary-soft) 100%);
  background-image: url("https://images.pexels.com/photos/4386431/pexels-photo-4386431.jpeg?auto=compress&cs=tinysrgb&w=1920"), linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  background-size: cover, 100% 100%;
  background-position: center, 0 0;
  opacity: 0.92;
}

.cta-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.88) 0%, rgba(26, 54, 93, 0.85) 100%);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.cta-content p {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Flow */
.flow {
  background: var(--color-white);
}

.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.flow-list li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.flow-list li:last-child {
  border-bottom: none;
}

.flow-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.flow-list h3 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.flow-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* FAQ */
.faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  font-size: 1.25rem;
  color: var(--color-accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.75;
  border-top: 1px solid #e2e8f0;
}

/* Services */
.services {
  background: var(--color-white);
  padding-top: 0;
}

.services-banner {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.services-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.services-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(15, 39, 68, 0.9), transparent);
  color: var(--color-white);
}

.services-banner-overlay p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.service-card-img {
  width: 100%;
  height: 140px;
  min-height: 140px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2rem -1.5rem 1rem -1.5rem;
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-primary) 100%);
}

.service-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 144, 42, 0.2);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

/* About */
.about {
  background: var(--color-bg);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content-with-img {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.about-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 6rem;
}

.about-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--color-text-light);
}

.about-points {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--color-text-light);
}

.about-points li {
  margin-bottom: 0.5rem;
}

/* Credentials */
.credentials {
  background: var(--color-white);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cred-card {
  padding: 1.75rem;
  background: linear-gradient(145deg, var(--color-bg) 0%, var(--color-white) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.cred-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.cred-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Contact */
.contact {
  background: var(--color-bg);
}

.contact-box {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.contact-info {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-info p {
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.contact-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 1rem !important;
}

.contact-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.required {
  color: #c53030;
  font-size: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.footer-tagline {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-nav a .icon {
  width: 1em;
  height: 1em;
}

.footer-nav a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-details {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.95;
}

.footer-details p {
  margin: 0 0 0.5rem;
}

.footer-details strong {
  font-weight: 600;
  margin-right: 0.25rem;
}

.footer-address {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 75vh;
    padding: 6rem 0 3rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-num {
    font-size: 2rem;
  }

  .services-banner {
    max-height: 280px;
    margin-bottom: 1.5rem;
  }

  .service-card-img {
    height: 120px;
    margin: -2rem -1.5rem 1rem -1.5rem;
  }

  .about-content-with-img {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-image-wrap {
    position: static;
    max-height: 240px;
  }

  .about-image-wrap img {
    aspect-ratio: 16 / 9;
  }

  .mission-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title-left {
    text-align: center;
  }

  .mission-tag {
    display: block;
    text-align: center;
  }

  .mission-content {
    text-align: center;
  }

  .mission-values {
    text-align: left;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .flow-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .flow-preview-grid {
    grid-template-columns: 1fr;
  }
}
