:root {
  --teal: #0f766e;
  /* Slightly darker teal for professionalism */
  --teal-light: #14b8a6;
  --navy: #1e293b;
  /* Slate 800 */
  --bg: #f8fafc;
  /* Slate 50 */
  --text: #334155;
  /* Slate 700 */
  --card: #ffffff;
  --muted: #64748b;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 2.0;
  /* Increased line-height for better readability */
  letter-spacing: 0.02em;
  /* Slight spacing for clarity */
  -webkit-font-smoothing: antialiased;
}

/* ... (skipping unchanged parts) ... */

.card {
  background: var(--card);
  border-radius: 16px;
  /* Slightly softer corners */
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ... */

.card-content {
  padding: 48px 40px;
  /* More padding for spacious feel */
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  /* Ensure left alignment */
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.card-desc {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.9;
  text-align: left;
  /* Explicitly left align */
}

/* Why Gimerio Cards (Floating) */
.card.floating {
  padding: 48px 40px;
  text-align: left;
  /* Changed from center to left for better readability */
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  background: #fff;
}

.card.floating h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card.floating h3::before {
  content: '';
  display: block;
  width: 6px;
  height: 24px;
  background: var(--teal);
  border-radius: 3px;
}

.card.floating p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

/* CTA Section - Ensure Dark Background */
.cta {
  background: linear-gradient(135deg, #0f172a 0%, #115e59 100%) !important;
  /* Enforce dark background */
  color: #fff;
  text-align: center;
  padding: 120px 6vw;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
  font-weight: 800;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

main {
  padding-top: 80px;
}

section {
  padding: 120px 6vw;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  /* More space below header */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header .logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  box-shadow: 0 4px 6px rgba(15, 118, 110, 0.2);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn.primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero,
.page-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.65));
  /* Darker overlay for better contrast */
  z-index: 0;
}

.hero-content {
  position: relative;
  max-width: 800px;
  text-align: center;
  padding: 40px 24px;
  /* More padding */
  z-index: 1;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Text shadow for readability */
}

/* Smaller font for page-hero headings (dx.html, career.html) */
.page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.hero .sub-copy {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  /* Whiter text */
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dual-cards .card-grid,
.service-cards .card-grid,
.pricing .card-grid,
.services .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  /* Sharper corners */
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.card-content {
  padding: 40px;
  /* Increased padding */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.card-desc {
  font-size: 1.05rem;
  color: var(--text);
  /* Darker than muted for better readability */
  margin-bottom: 32px;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: bold;
}

.card.hoverable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-weight: 600;
  font-size: 1rem;
  margin-top: auto;
}

.text-link::after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.guide-steps {
  background: rgba(255, 255, 255, 0.6);
}

.step-list {
  list-style: none;
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.step-list li {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  align-items: center;
}

.step-list span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  min-width: 54px;
}

.workflow-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.resource-grid article {
  background: var(--card);
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Utility Classes for Text Balance */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.ib {
  display: inline-block;
}

/* Process Section (Visual Diagram) */
.process {
  background: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
  padding: 120px 6vw;
}

.process-flow {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding-top: 60px;
}

/* Timeline horizontal line */
.process-flow::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 10%, var(--teal) 90%, transparent 100%);
  z-index: 0;
  opacity: 0.4;
}

.step-item {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical connector from timeline to circle */
.step-item::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--teal);
  z-index: 1;
  opacity: 0.5;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 3px solid var(--teal);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.15);
  transition: all 0.3s ease;
}

.step-item:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.25);
  border-width: 4px;
}

.step-content {
  width: 100%;
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.4;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}

/* Remove arrows - no longer needed */
.step-arrow {
  display: none;
}

.okinawa-grid .grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.okinawa-grid .grid img,
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  padding: 80px 6vw;
}

.stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats .number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--teal-light);
  font-feature-settings: "tnum";
}

.stats .suffix {
  font-size: 2rem;
  color: var(--teal-light);
}

.stats p {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

.cta {
  background: linear-gradient(135deg, #0f172a, #0f766e);
  color: #fff;
  text-align: center;
  padding: 100px 6vw;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.capability-grid .card {
  text-align: center;
  font-weight: 600;
}

.story-content,
.timeline,
.profile-grid,
.gallery-grid,
.contact-form-section,
.stripe-links {
  max-width: 960px;
  margin: 0 auto;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  padding: 24px;
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.gallery img {
  height: 240px;
  object-fit: cover;
}

.contact-form-section {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-size: 1rem;
  background: #fff;
}

.site-footer {
  padding: 40px 6vw;
  background: #0b1120;
  color: rgba(248, 250, 252, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: #a5f3fc;
}

[data-background] {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(15, 23, 42, 0.03));
  transition: background 0.8s ease;
}

[data-background].is-visible {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(15, 23, 42, 0.08));
}

.parallax {
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=80');
  /* Modern corporate office abstract */
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .site-header nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .page-hero {
    min-height: 70vh;
  }

  section {
    padding: 72px 5vw;
  }

  .parallax {
    background-attachment: scroll;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  /* Process flow mobile layout */
  .process-flow {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-item {
    max-width: 100%;
    width: 100%;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 12px 0;
    padding-top: 0;
  }

  .step-item:last-child .step-arrow {
    display: none;
  }
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="slide-up"] {
  transform: translateY(40px);
}

[data-animate="fade-in"] {
  transform: translateY(0);
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="slide-up"].visible,
[data-animate="fade-in"].visible,
[data-animate="fade-up"].visible {
  transform: translateY(0);
}