/* =============================================
   Generate Trees, Inc. — style.css
   Design: Clean, trustworthy, Apple/Stripe-inspired
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --color-white: #FFFFFF;
  --color-bg-gray: #F4F9F6;
  --color-navy: #0D1F14;
  --color-navy-mid: #12281A;
  --color-accent: #2A7A4B;
  --color-accent-light: #E8F5EE;
  --color-text: #0F1E14;
  --color-text-mid: #3D4463;
  --color-text-muted: #6B7280;
  --color-border: #E8EAF2;
  --color-success: #059669;

  --font-serif: 'Noto Serif JP', Georgia, serif;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(10,15,30,0.06), 0 1px 2px rgba(10,15,30,0.04);
  --shadow-md: 0 4px 16px rgba(10,15,30,0.08), 0 2px 6px rgba(10,15,30,0.04);
  --shadow-lg: 0 12px 40px rgba(10,15,30,0.12), 0 4px 12px rgba(10,15,30,0.06);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1140px;
  --container-narrow: 760px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container--narrow {
  max-width: var(--container-narrow);
}

/* ===== SECTION ===== */
.section {
  padding: var(--space-3xl) 0;
}
.section--white { background: var(--color-white); }
.section--gray  { background: var(--color-bg-gray); }
.section--navy  { background: var(--color-navy); }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.section-label--light { color: rgba(255,255,255,0.45); }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}
.section-heading--center { text-align: center; }
.section-heading--light  { color: var(--color-white); }

.section-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 540px;
  margin: -1rem auto var(--space-xl);
  line-height: 1.8;
}
.section-sub--light { color: rgba(255,255,255,0.6); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(42,122,75,0.25);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #1F6038;
  box-shadow: 0 4px 16px rgba(42,122,75,0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-full { width: 100%; padding: 1rem 2rem; font-size: 1rem; }

.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* ===== BODY TEXT ===== */
.body-text {
  color: var(--color-text-mid);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: var(--space-sm);
}

/* =============================================
   HEADER / NAV
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.75; }
.logo-icon { flex-shrink: 0; }
.logo-text { letter-spacing: 0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--color-text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--color-text); background: var(--color-bg-gray); }

.nav-link--cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.5rem 1.1rem;
  font-weight: 500;
}
.nav-link--cta:hover { background: #1F6038; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--color-bg-gray); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  background: var(--color-white);
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,122,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,122,75,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(42,122,75,0.15);
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}
.hero-heading em {
  font-style: normal;
  color: var(--color-accent);
  position: relative;
}
.hero-heading em::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 0.08em;
  background: currentColor;
  opacity: 0.25;
  border-radius: 2px;
}

.hero-sub {
  font-size: clamp(0.97rem, 2.2vw, 1.1rem);
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat-unit {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-accent);
}
.stat-label {
  font-size: 0.77rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   ABOUT
   ============================================= */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  align-items: start;
}

.about-card {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.about-card-item div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.about-card-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-card-icon svg { display: block; }
.about-card-item strong { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.about-card-item span  { font-size: 0.8rem; color: var(--color-text-muted); }

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(42,122,75,0.15);
}

.service-card--featured {
  background: var(--color-navy);
  border-color: transparent;
  color: var(--color-white);
}
.service-card--featured .service-desc { color: rgba(255,255,255,0.7); }
.service-card--featured .service-list li { color: rgba(255,255,255,0.75); }
.service-card--featured .service-list li::before { background: rgba(255,255,255,0.4); }
.service-card--featured:hover { border-color: transparent; }

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon--white { background: rgba(255,255,255,0.12); }

.service-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-border);
  letter-spacing: -0.04em;
}
.service-num--white { color: rgba(255,255,255,0.15); }

.service-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.service-desc {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}
.service-card--featured .service-list { border-color: rgba(255,255,255,0.1); }

.service-list li {
  font-size: 0.83rem;
  color: var(--color-text-mid);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.service-list li::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* =============================================
   PROFILE / TIMELINE
   ============================================= */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  position: sticky;
  top: 100px;
}
.avatar-placeholder {
  width: 160px;
  height: 160px;
  background: var(--color-bg-gray);
  border-radius: 50%;
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-name-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.profile-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}
.profile-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Timeline — the signature element */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 92px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent) 0%, var(--color-border) 100%);
  border-radius: 2px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  text-align: right;
  padding-top: 0.05rem;
  padding-right: 20px;
  position: relative;
}
.timeline-year::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(42,122,75,0.2);
  z-index: 1;
}ar(--color-accent);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(42,122,75,0.15);
}

.timeline-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.timeline-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* =============================================
   STRENGTHS
   ============================================= */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.strength-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: background var(--transition), border-color var(--transition);
}
.strength-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.strength-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.strength-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.65rem;
}
.strength-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-sub { margin-bottom: var(--space-xl); }

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
}

.form-label {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--color-text);
}
.required { color: #E53E3E; font-size: 0.75rem; }

.form-input {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--color-text);
  background: var(--color-bg-gray);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  background: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(42,122,75,0.12);
}
.form-input.error { border-color: #E53E3E; box-shadow: 0 0 0 3px rgba(229,62,62,0.1); }
.form-input::placeholder { color: var(--color-text-muted); }

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

.form-error {
  font-size: 0.8rem;
  color: #E53E3E;
  min-height: 1.2em;
}

.form-submit { margin-top: var(--space-sm); }

.form-success {
  text-align: center;
  padding: var(--space-lg);
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}
.success-icon {
  font-size: 1.8rem;
  color: var(--color-success);
  margin-bottom: 0.5rem;
  display: block;
}
.form-success strong {
  display: block;
  color: var(--color-success);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.form-success p { font-size: 0.88rem; color: var(--color-text-muted); }

.form-note {
  margin-top: var(--space-sm);
  font-size: 0.77rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
}

/* =============================================
   COMPANY TABLE
   ============================================= */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.company-table tr {
  border-bottom: 1px solid var(--color-border);
}
.company-table tr:last-child { border-bottom: none; }
.company-table th,
.company-table td {
  padding: 1.1rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 140px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-right: 1.5rem;
}
.company-table td { color: var(--color-text-mid); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.55);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 280px;
}
.footer-logo .logo-text { color: rgba(255,255,255,0.85); }
.footer-tagline {
  font-size: 0.83rem;
  line-height: 1.7;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}
.footer-nav a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  font-size: 0.78rem;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 900px) {
  .section { padding: var(--space-2xl) 0; }
  .hero { padding: var(--space-2xl) 0; }

  .about-layout { grid-template-columns: 1fr; }
  .about-visual { order: -1; }

  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

  .profile-layout { grid-template-columns: 1fr; }
  .profile-avatar { position: static; flex-direction: row; text-align: left; }

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

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 640px) {
  :root {
    --space-xl:  2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .nav-links.open {
    max-height: 400px;
    padding: var(--space-sm) 0;
  }
  .nav-link {
    display: block;
    padding: 0.75rem var(--space-md);
    border-radius: 0;
    font-size: 0.95rem;
  }
  .nav-link--cta { margin: 0.5rem var(--space-md); border-radius: var(--radius-sm); }

  /* Hero */
  .hero-heading { font-size: 1.8rem; }
  .sp-br { display: block; }
  .hero-stats { gap: var(--space-md); }
  .stat-num { font-size: 1.6rem; }

  /* Contact form */
  .contact-form { padding: var(--space-lg) var(--space-md); }

  /* Company table */
  .company-table th { width: 100px; font-size: 0.78rem; padding-right: 0.75rem; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: var(--space-lg); }
  .footer-nav ul { flex-direction: column; gap: 0.3rem; }

  /* Profile */
  .profile-avatar { flex-direction: column; align-items: flex-start; }
  .avatar-placeholder { width: 100px; height: 100px; }

  /* Timeline */
  .timeline::before { left: 80px; }
  .timeline-item { grid-template-columns: 68px 1fr; gap: var(--space-sm); }
  .timeline-year { font-size: 0.87rem; }
  .timeline-year::after { right: -20px; width: 8px; height: 8px; top: 6px; }

  /* Back to top */
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 360px) {
  .hero-heading { font-size: 1.55rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* =============================================
   DIFFERENCE SECTION (追加)
   ============================================= */
.section--accent-light { background: var(--color-accent-light); }

.diff-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.9rem;
  min-width: 500px;
}
.diff-table thead tr {
  background: var(--color-navy);
  color: var(--color-white);
}
.diff-table th,
.diff-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.diff-table thead th { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.diff-table tbody tr:last-child td { border-bottom: none; }
.diff-table tbody tr:hover td { background: var(--color-bg-gray); }
.diff-table tbody tr:hover td.diff-us { background: var(--color-accent-light); }

.diff-table td:first-child {
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  width: 160px;
}
.diff-table td:nth-child(2) { color: var(--color-text-muted); }

th.diff-us, td.diff-us {
  color: var(--color-accent);
  background: rgba(42,122,75,0.04);
}
th.diff-us { color: #8ec4a0; background: rgba(42,122,75,0.15); }
td.diff-us strong { color: var(--color-accent); font-weight: 600; }

/* =============================================
   SERVICE FLOW (追加)
   ============================================= */
.service-flow {
  margin-top: var(--space-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.flow-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  text-align: center;
}
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.flow-num {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-serif);
}
.flow-label {
  font-size: 0.78rem;
  color: var(--color-text-mid);
  font-weight: 500;
  line-height: 1.4;
}
.flow-arrow {
  font-size: 1.1rem;
  color: var(--color-border);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* =============================================
   PROFILE QUOTE (追加)
   ============================================= */
.profile-pitch {
  margin-bottom: var(--space-lg);
}
.profile-quote {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-mid);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-gray);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
}

/* =============================================
   SERVICE EN LABEL (追加)
   ============================================= */
.service-en {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-top: -0.3rem;
  margin-bottom: 0.25rem;
}
.service-en--white { color: rgba(255,255,255,0.45); }

/* =============================================
   RESPONSIVE additions
   ============================================= */
@media (max-width: 640px) {
  .flow-steps { gap: 0.25rem; }
  .flow-arrow { display: none; }
  .flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .diff-table td:first-child { width: 100px; }
  .profile-quote { font-size: 0.92rem; }
}

/* =============================================
   IMAGE STYLES
   ============================================= */

/* Hero background image */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.22;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,33,24,0.82) 0%,
    rgba(13,33,24,0.65) 40%,
    rgba(13,33,24,0.25) 70%,
    rgba(13,33,24,0.10) 100%
  );
}

/* About image */
.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-sm);
  aspect-ratio: 3/2;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.about-img-wrap:hover .about-img {
  transform: scale(1.03);
}

/* Profile city image */
.profile-location {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-sm);
  aspect-ratio: 3/2;
}
.profile-city-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .hero-bg-img { opacity: 0.05; }
  .profile-location { max-width: 260px; }
}
@media (max-width: 640px) {
  .profile-location { display: none; }
}

/* Hero dark-bg text adjustments */
.hero .hero-badge {
  background: rgba(255,255,255,0.12);
  color: #a8dfc0;
  border-color: rgba(168,223,192,0.3);
}
.hero .hero-badge::before {
  background: #4CAF7D;
}
.hero .hero-heading {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero .hero-heading em {
  color: #4CAF7D;
}
.hero .hero-sub {
  color: rgba(255,255,255,0.78);
}
.hero .btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}
.hero .btn-ghost:hover {
  border-color: #4CAF7D;
  color: #4CAF7D;
  background: rgba(255,255,255,0.05);
}
.hero .stat-num { color: #ffffff; }
.hero .stat-label { color: rgba(255,255,255,0.6); }
.hero .stat-divider { background: rgba(255,255,255,0.2); }
.hero-scroll .scroll-line {
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

/* =============================================
   CONSENT CHECKBOX
   ============================================= */
.form-group--consent { margin-bottom: var(--space-md); }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.consent-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  transition: all 0.18s ease;
  position: relative;
}

/* チェック後のスタイル */
.consent-checkbox:checked + .consent-box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.consent-checkbox:checked + .consent-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* フォーカス */
.consent-checkbox:focus-visible + .consent-box {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* エラー時 */
.consent-checkbox.error + .consent-box {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

.consent-label:hover .consent-box {
  border-color: var(--color-accent);
}

.consent-text {
  font-size: 0.88rem;
  color: var(--color-text-mid);
  line-height: 1.6;
}
.consent-text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-text a:hover { opacity: 0.75; }

/* Footer privacy link */
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.85); }

/* =============================================
   LOGO IMAGE
   ============================================= */
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* フッター：白抜きロゴ（brightness反転＋白化） */
.logo-img--white {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* ナビロゴのテキスト非表示（画像で代替） */
.nav-logo .logo-icon { display: none; }

@media (max-width: 640px) {
  .logo-img { height: 28px; }
}

/* =============================================
   LOGO MARK (logo-only image + text)
   ============================================= */
.logo-mark {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
/* ヘッダー: logo-textを表示 */
.nav-logo .logo-text {
  display: inline !important;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.footer-logo .logo-text {
  color: rgba(255,255,255,0.85) !important;
}

/* =============================================
   FLOW STEPS — 横並び完全揃え
   ============================================= */
.flow-steps {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center;
  gap: 0 !important;
  flex-wrap: nowrap;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
  flex: 1;
  max-width: 120px;
}
.flow-num {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.flow-label {
  font-size: 0.78rem;
  color: var(--color-text-mid);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-arrow {
  font-size: 1rem;
  color: var(--color-border);
  padding-top: 12px; /* flow-numの中心に合わせる */
  flex-shrink: 0;
  margin: 0 4px;
}

/* =============================================
   PROFILE CITY IMAGE (name-card下)
   ============================================= */
.profile-city-img-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-sm);
  aspect-ratio: 3/2;
}
.profile-city-img-wrap .profile-city-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .logo-mark { height: 28px; width: 28px; }
  .flow-steps {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem !important;
  }
  .flow-arrow { display: none; }
  .profile-city-img-wrap { display: none; }
}

/* フッターロゴ：白抜き全体ロゴ画像 */
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* =============================================
   FOOTER MARK + TEXT (black bg logo)
   ============================================= */
.footer-mark-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
/* 旧footer-logo-imgを上書き */
.footer-logo-img { display: none; }
