/* ===================================
   WorkInSync - IT Consulting
   White Corporate Theme with Navy Accents
   =================================== */

/* reCAPTCHA バッジ非表示（フォーム内に開示文を掲載） */
.grecaptcha-badge { visibility: hidden !important; }

/* ---------- CSS Variables ---------- */
:root {
  /* ---- Corporate Colors ---- */
  --navy:           #0C2461;   /* メインコーポレートネイビー */
  --navy-dark:      #091a47;
  --navy-mid:       #1a3a7a;
  --navy-light:     #2952a3;
  --navy-pale:      #e8eef8;   /* 薄いネイビー（背景・バッジなど） */
  --navy-xpale:     #f0f4fc;

  /* ---- Neutral / Base ---- */
  --white:          #ffffff;
  --gray-50:        #f8f9fb;
  --gray-100:       #f1f3f7;
  --gray-200:       #e4e8f0;
  --gray-300:       #c8d0e0;
  --gray-400:       #9aa3b8;
  --gray-500:       #6b7594;
  --gray-600:       #4a5270;
  --gray-700:       #2d3454;
  --gray-900:       #111827;

  /* ---- Accent ---- */
  --accent:         #0C2461;
  --accent-hover:   #091a47;
  --accent-light:   #3b7de5;   /* リンク・ハイライト用の明るめブルー */

  /* ---- Semantic ---- */
  --color-bg:         var(--white);
  --color-bg-alt:     var(--gray-50);
  --color-bg-navy:    var(--navy);
  --color-text:       var(--gray-900);
  --color-text-2:     var(--gray-600);
  --color-text-inv:   var(--white);
  --color-border:     var(--gray-200);
  --color-border-2:   var(--gray-300);

  /* ---- Typography ---- */
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Spacing ---- */
  --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 ---- */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1.25rem;
  --radius-xl:  1.75rem;

  /* ---- Transitions ---- */
  --trans-fast:  0.2s ease;
  --trans-mid:   0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans-slow:  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* ---- Shadows ---- */
  --shadow-sm:   0 1px 3px rgba(12,36,97,0.06), 0 1px 2px rgba(12,36,97,0.04);
  --shadow-md:   0 4px 16px rgba(12,36,97,0.08), 0 1px 4px rgba(12,36,97,0.04);
  --shadow-lg:   0 12px 40px rgba(12,36,97,0.12), 0 4px 8px rgba(12,36,97,0.06);
  --shadow-xl:   0 24px 60px rgba(12,36,97,0.16);
  --shadow-navy: 0 8px 24px rgba(12,36,97,0.3);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Utility ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy);
  background: var(--navy-pale);
  border: 1px solid rgba(12,36,97,0.15);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-header { text-align: center; margin-bottom: var(--space-2xl); }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-2);
  line-height: 1.8;
}

/* ---------- Scroll Animation ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--trans-slow), transform var(--trans-slow);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--trans-mid);
  border: 2px solid var(--navy);
  cursor: pointer;
}
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-navy); }
.btn-primary.large { padding: 1.1rem 2.5rem; font-size: 1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--trans-mid);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-navy); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--trans-mid);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-outline.large { padding: 1.1rem 2.5rem; font-size: 1rem; }

/* ============================
   NAVIGATION
   ============================ */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 11000;
  padding: 1.1rem 0;
  transition: var(--trans-mid);
}
.nav-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: inherit;
}
.nav-header.scrolled {
  padding: 0.75rem 0;
}
.nav-header.scrolled .nav-bg {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo-icon { display: flex; align-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-company { font-size: 0.7rem; font-weight: 600; color: var(--gray-500); letter-spacing: 0.04em; }
.logo-name { font-size: 1.15rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.logo-primary { font-size: 1rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.logo-sub { font-size: 0.65rem; color: var(--gray-500); letter-spacing: 0.06em; }

/* ---- Logo Image ---- */
.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}
.logo-img--footer {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1) opacity(0.85);
}

/* Desktop Menu */
.nav-menu { flex: 1; }
.nav-mobile-overlay { display: none; }
@media (max-width: 768px) {
  .nav-menu { display: none; }
}
.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--trans-fast);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--navy);
  transition: var(--trans-mid);
  border-radius: 1px;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--trans-mid);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-navy); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--trans-fast);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-top: 5rem;
}

/* 右側のネイビーブロック装飾 */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12,36,97,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,36,97,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* 右側の半円ネイビー装飾（歌设こって非表示） */
.hero-bg::before, .hero-bg::after { content: none; }

/* ネイビーの斜めアクセントライン */
.hero-accent-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent-light) 60%, transparent 100%);
}

/* パーティクルキャンバス（薄く） */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1 1 50%;
  padding: 0 var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--navy-pale);
  border: 1px solid rgba(12,36,97,0.2);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease 0.2s both;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy);
  animation: pulse 2.5s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.6)} }

/* ---- Hero 2-column layout ---- */
.hero-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  gap: 2rem;
}

/* ---- Gear Visual ---- */
.hero-visual {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-scene {
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}

/* Gear rotation (clockwise) */
.gs-gear {
  transform-box: fill-box;
  transform-origin: center;
  animation: gs-spin-cw 22s linear infinite;
}

/* People orbit (clockwise, slower) */
.gs-people {
  transform-box: fill-box;
  transform-origin: 150px 150px;
  animation: gs-spin-cw 18s linear infinite;
}

/* Stars orbit (counter-clockwise) */
.gs-stars {
  transform-box: fill-box;
  transform-origin: 150px 150px;
  animation: gs-spin-ccw 28s linear infinite;
}

@keyframes gs-spin-cw  { to { transform: rotate(360deg);  } }
@keyframes gs-spin-ccw { to { transform: rotate(-360deg); } }

/* Fade-in entrance */
.hero-visual { animation: fadeInUp 0.9s ease 0.5s both; }

/* Mobile: hide visual on small screens */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; padding-top: 1rem; }
  .hero-visual { display: none; }
  .hero-content { flex: 1 1 100%; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 2.25rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1.75rem;
  background: var(--gray-50);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.8s ease 1s both;
  box-shadow: var(--shadow-sm);
}
.stat-item { text-align: left; }
.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-label { font-size: 0.75rem; color: var(--gray-500); }
.stat-divider { width: 1px; height: 36px; background: var(--color-border-2); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  animation: fadeInUp 1s ease 1.2s both;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gray-400), transparent);
}

@keyframes fadeInDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp   { from{opacity:0;transform:translateY(28px)}  to{opacity:1;transform:translateY(0)} }

/* ============================
   SERVICES SECTION
   ============================ */
.services {
  padding: var(--space-3xl) 0;
  background: var(--gray-50);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, transparent 100%);
  opacity: 0.2;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--trans-mid);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--trans-mid);
}
.service-card:hover { border-color: rgba(12,36,97,0.2); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-pale);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  transition: var(--trans-mid);
}
.service-card:hover .service-icon { background: var(--navy); }
.service-card:hover .service-icon svg path,
.service-card:hover .service-icon svg rect,
.service-card:hover .service-icon svg circle,
.service-card:hover .service-icon svg polyline,
.service-card:hover .service-icon svg ellipse { stroke: white; }

.service-title { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.6rem; }

.service-desc { font-size: 0.875rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 1rem; }

.service-features { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.service-features li {
  font-size: 0.82rem;
  color: var(--gray-600);
  padding-left: 1.1rem;
  position: relative;
}
.service-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-size: 0.7rem;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.service-link:hover { color: var(--navy-light); gap: 0.5rem; }

/* ============================
   ABOUT SECTION
   ============================ */
.about {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content .section-tag { margin-bottom: 0.5rem; }
.about-content .section-title { text-align: left; margin-bottom: 1.25rem; }

.about-text { font-size: 0.975rem; color: var(--gray-600); line-height: 1.85; margin-bottom: 1rem; }

.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.tag {
  font-size: 0.8rem;
  color: var(--navy);
  border: 1.5px solid rgba(12,36,97,0.25);
  background: var(--navy-xpale);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  transition: var(--trans-fast);
  font-weight: 500;
}
.tag:hover { background: var(--navy-pale); border-color: rgba(12,36,97,0.5); }

/* About visual — navy accent card stack */
.about-visual { position: relative; height: 380px; }
.about-card-stack { position: relative; width: 100%; height: 100%; }

.about-card {
  position: absolute;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.card-back {
  background: var(--navy-xpale);
  border: 1px solid var(--color-border);
  width: 75%;
  top: 8%;
  right: 0;
  transform: rotate(4deg);
  opacity: 0.7;
}
.card-mid {
  background: var(--navy-pale);
  border: 1px solid rgba(12,36,97,0.15);
  width: 80%;
  top: 25%;
  left: 3%;
  transform: rotate(-2deg);
}
.card-front {
  background: var(--navy);
  border: none;
  width: 78%;
  bottom: 4%;
  right: 2%;
  transform: rotate(1.5deg);
  box-shadow: var(--shadow-xl);
}

.card-inner { position: relative; z-index: 1; }
.mini-stat { text-align: center; padding: 1rem 0; }
.mini-stat-num { display: block; font-size: 2.25rem; font-weight: 800; color: var(--navy); }
.mini-stat-lbl { font-size: 0.8rem; color: var(--gray-500); }
.mini-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-light); text-transform: uppercase; margin-bottom: 0.5rem; }
.card-mid .mini-heading { color: var(--navy); }
.mini-text { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); line-height: 1.6; }
.card-front .mini-text, .card-front .mini-heading { color: rgba(255,255,255,0.8); }
.card-front .mini-text { color: var(--white); font-size: 0.92rem; }
.mini-list { display: flex; flex-direction: column; gap: 0.4rem; }
.mini-list li { font-size: 0.83rem; color: var(--white); opacity: 0.9; }

/* ============================
   STRENGTHS SECTION
   ============================ */
.strengths {
  padding: var(--space-3xl) 0;
  background: var(--navy);
  position: relative;
}

.strengths .section-tag {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.strengths .section-title { color: var(--white); }
.strengths .section-desc { color: rgba(255,255,255,0.7); }

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

.strength-item {
  padding: 1.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  transition: var(--trans-mid);
}
.strength-item:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); transform: translateY(-4px); }

.strength-icon-wrap {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.strength-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.strength-desc { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ============================
   RESULTS SECTION
   ============================ */
.results {
  padding: var(--space-3xl) 0;
  background: var(--gray-50);
}

.results-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.metric-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--trans-mid);
}
.metric-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
}
.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.metric-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.metric-label { font-size: 0.82rem; color: var(--gray-500); }

.results-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.case-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: var(--trans-mid);
  box-shadow: var(--shadow-sm);
}
.case-card:hover { border-color: rgba(12,36,97,0.3); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.case-industry {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--navy-pale);
  border: 1px solid rgba(12,36,97,0.15);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.case-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.6rem; }
.case-desc { font-size: 0.85rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 1rem; }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.case-tags span {
  font-size: 0.72rem;
  color: var(--gray-500);
  border: 1px solid var(--color-border-2);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

/* ============================
   BLOG SECTION
   ============================ */
.blog {
  padding: var(--space-3xl) 0;
  background: var(--white);
  position: relative;
}

/* New Category Box Style */
.blog-category-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 3.5rem;
}

.category-box-title {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  padding-left: 1rem;
}
.category-box-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0.2rem; bottom: 0.2rem;
  width: 4px;
  background: var(--navy);
  border-radius: 2px;
}

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

/* 記事カード化 */
.article-item {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--trans-mid);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.article-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--trans-mid);
}
.article-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(12,36,97,0.2);
}
.article-item:hover::before {
  transform: scaleX(1);
}

/* 青いプレースホルダ枠 */
.article-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a5b82; /* 深みのある青系 */
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  transition: opacity var(--trans-fast);
}
.article-item:hover .article-thumb {
  opacity: 0.9;
}

.article-title-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.6;
  text-decoration: none;
  transition: color var(--trans-fast);
  display: block;
}
.article-item:hover .article-title-link {
  color: var(--navy);
}

.category-link-more {
  text-align: right;
  margin-top: 1rem;
}
.category-link-more a {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--trans-fast);
  display: inline-flex;
  align-items: center;
}
.category-link-more a::after {
  content: '→';
  margin-left: 0.4rem;
}
.category-link-more a:hover {
  opacity: 0.7;
}

/* Old Blog Card Styles - kept for fallback/legacy */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: var(--trans-mid);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.blog-card.featured {
  grid-column: 1 / 3;
  background: var(--navy-xpale);
  border-color: rgba(12,36,97,0.15);
}
.blog-card:hover { border-color: rgba(12,36,97,0.25); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.blog-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.blog-title { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; line-height: 1.5; }
.blog-card.featured .blog-title { font-size: 1.2rem; }
.blog-excerpt { font-size: 0.875rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 1.25rem; flex: 1; }
.blog-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--trans-fast);
  margin-top: auto;
}
.blog-link:hover { color: var(--navy-light); gap: 0.5rem; }

/* ============================
   CONTACT SECTION
   ============================ */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* 装飾的な円 */
.contact-bg { position: absolute; inset: 0; pointer-events: none; }
.contact-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.contact-orb-1 { width: 400px; height: 400px; top: -150px; right: -80px; }
.contact-orb-2 { width: 300px; height: 300px; bottom: -120px; left: -60px; }

.contact-inner {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact .section-tag {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.contact-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.contact-title .gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  margin-bottom: 2.25rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* Contact section primary button (white on navy) */
.contact .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.contact .btn-primary:hover { background: var(--gray-100); border-color: var(--gray-100); }

.contact-note { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  margin-bottom: 3rem;
}

.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo .logo-primary { color: var(--white); }
.footer-logo .logo-sub { color: rgba(255,255,255,0.5); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.75; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: rgba(255,255,255,0.9); text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: var(--trans-fast); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: var(--trans-fast); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--trans-mid);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  box-shadow: var(--shadow-navy);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .hero-content { margin-left: 5%; }
  .about-inner { gap: 3rem; }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .results-metrics { grid-template-columns: repeat(2, 1fr); }
  .results-cases { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 4rem;
  }
  
  /* Blog Category Box Mobile */
  .blog-category-box {
    padding: 2rem 1.5rem;
  }
  .category-articles {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .article-thumb {
    max-width: 320px;
    margin: 0 auto 1.25rem;
  }

  /* Mobile Menu Overlay (Moved to root for fixed poison) */
  .nav-mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; 
    width: 100%;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    z-index: 10000;
    overflow-y: auto;
  }
  .nav-mobile-overlay.open {
    display: flex;
  }
  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
  .mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
  }

  .nav-cta { display: none; }
  .nav-hamburger { 
    display: flex; 
    z-index: 10001; 
    margin-left: auto;
  }
  .nav-hamburger span {
    background: var(--navy);
  }
  .nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-content { margin-left: 0; max-width: 100%; padding: 0 1.5rem; text-align: center; }
  .hero-bg::before, .hero-bg::after { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { flex-direction: column; gap: 1rem; border-left: none; border-top: 4px solid var(--navy); }
  .stat-divider { display: none; }
  .stat-item { text-align: center; }

  .about-inner { grid-template-columns: 1fr; }
  .about-visual { height: auto; }
  .about-card-stack { display: flex; flex-direction: column; gap: 1rem; position: static; height: auto; }
  .about-card { position: static; width: 100%; transform: none; opacity: 1; }
  .about-content .section-title { text-align: center; }

  .services-grid { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: 1fr; }
  .results-metrics { grid-template-columns: repeat(2, 1fr); }
  .results-cases { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-column: 1; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions, .contact-actions { flex-direction: column; align-items: center; }
  .results-metrics { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ============================
   CONTACT MODAL
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 26, 71, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(9,26,71,0.3), 0 8px 24px rgba(9,26,71,0.15);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

/* Custom scrollbar for modal */
.modal-container::-webkit-scrollbar { width: 6px; }
.modal-container::-webkit-scrollbar-track { background: transparent; }
.modal-container::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy);
  background: var(--navy-pale);
  border: 1px solid rgba(12,36,97,0.15);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.modal-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--trans-fast);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-900); }

/* ============================
   CONTACT FORM
   ============================ */
.contact-form {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row.two-col { flex-direction: row; gap: 1rem; }
.form-row.two-col .form-group { flex: 1; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.required-mark {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  background: #c0392b;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.optional-mark {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: var(--trans-fast);
  outline: none;
  line-height: 1.6;
}
.form-input::placeholder { color: var(--gray-400); }
.form-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12,36,97,0.1); }
.form-input.error { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }
.form-input.valid { border-color: #27ae60; }

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

.form-error {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 1em;
  font-weight: 500;
}

/* Custom Checkbox */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

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

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: var(--trans-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.form-checkbox:checked + .checkbox-custom {
  background: var(--navy);
  border-color: var(--navy);
}
.form-checkbox:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.form-checkbox:focus + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(12,36,97,0.15);
}
.checkbox-custom.error { border-color: #c0392b; }

.checkbox-text {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.privacy-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--trans-fast);
}
.privacy-link:hover { color: var(--navy-light); }

/* Submit */
.form-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.5rem;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 3rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--trans-mid);
  width: 100%;
  max-width: 320px;
}
.form-submit-btn:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-navy); }
.form-submit-btn:disabled { background: var(--gray-300); cursor: not-allowed; transform: none; box-shadow: none; }
.form-submit-btn.loading .submit-text::after { content: '…'; }

.form-note {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: center;
}

/* Success State */
.form-success[hidden] {
  display: none;
}
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
  gap: 1rem;
}
.success-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
}
.success-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* Mobile modal */
@media (max-width: 640px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-container {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
  }
  .modal-header { padding: 1.5rem 1.25rem 1rem; }
  .contact-form { padding: 1.25rem 1.25rem 2rem; }
  .form-row.two-col { flex-direction: column; }
}
