/* =============================================
   work work work株式会社
   Silicon Valley × 三方良し × Modern Tech
   ============================================= */

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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8fa;
  --bg-tertiary: #f0f0f5;
  --accent: #a78bfa;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --accent-glow: rgba(167, 139, 250, 0.15);
  --accent-dim: rgba(167, 139, 250, 0.4);
  --gold: #c0a46e;
  --gradient-1: linear-gradient(135deg, #a78bfa, #818cf8, #c084fc);
  --gradient-2: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
  --gradient-text: linear-gradient(135deg, #4a3a6e, #7c5cbf, #a855f7, #c084fc);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.7);
  --text-muted: rgba(26, 26, 46, 0.45);
  --text-faint: rgba(26, 26, 46, 0.15);
  --text-subtle: rgba(26, 26, 46, 0.06);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(26, 26, 46, 0.08);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* =============================================
   Animated Background Mesh
   ============================================= */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(167, 139, 250, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(192, 132, 252, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 0%, rgba(129, 140, 248, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   Cursor Glow (desktop only)
   ============================================= */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}

@media (hover: hover) {
  .cursor-glow.active { opacity: 1; }
}

/* =============================================
   Header
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 48px;
  transition: all 0.5s var(--ease);
}

.header.scrolled {
  padding: 14px 48px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}

.header.scrolled .logo-img {
  width: 150px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.logo-header { display: flex; align-items: center; gap: 14px; overflow: visible; }
.logo-img { height: auto; width: 180px; object-fit: contain; transition: width 0.4s var(--ease); }
.logo-crest-mark { width: auto; height: 56px; transition: height 0.4s var(--ease); flex-shrink: 0; object-fit: contain; display: block; }
.logo-text { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.logo-text-en { font-family: 'Playfair Display', var(--serif); font-size: 24px; font-weight: 400; letter-spacing: 1.5px; color: var(--text-primary); }
.logo-text-jp { font-family: 'Noto Serif JP', serif; font-size: 11px; font-weight: 400; letter-spacing: 2px; color: var(--text-secondary); }
.header.scrolled .logo-crest-mark { height: 42px; }
.header.scrolled .logo-text-en { font-size: 20px; }
.header.scrolled .logo-text-jp { font-size: 10px; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-list a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.nav-list a:hover { color: var(--text-primary); }
.nav-list a:hover::after { width: 100%; }

.nav-cta {
  background: var(--glass) !important;
  border: 1px solid var(--accent-dim) !important;
  padding: 10px 28px !important;
  border-radius: 100px !important;
  color: var(--accent) !important;
  transition: all 0.4s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.3) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  width: 36px;
  height: 36px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  position: absolute;
  left: 6px;
  transition: all 0.4s var(--ease);
  border-radius: 2px;
}

.hamburger span:first-child { top: 13px; }
.hamburger span:last-child { top: 22px; }

.hamburger.active span:first-child { top: 17px; transform: rotate(45deg); }
.hamburger.active span:last-child { top: 17px; transform: rotate(-45deg); }

/* =============================================
   Hero Visual (handshake image)
   ============================================= */
.hero-visual {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-visual-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 0.75) 100%
  );
}

.hero-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-visual-catch {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero-line {
  width: 80px;
  height: 2px;
  background: var(--gradient-1);
  margin: 0 auto 28px;
  border-radius: 2px;
}

.hero-visual-sub {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  line-height: 2;
  font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  left: 48px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.scroll-indicator span {
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--text-faint);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 2px;
  height: 50px;
  background: var(--gradient-1);
  border-radius: 2px;
  animation: scrollAnim 2.2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { top: -50px; }
  100% { top: 50px; }
}

/* =============================================
   Section Divider
   ============================================= */
.section-divider {
  height: 100px;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-divider::after {
  content: '';
  width: 80px;
  height: 2px;
  background: var(--gradient-1);
  border-radius: 2px;
  opacity: 0.5;
}

/* =============================================
   Section Images
   ============================================= */
.section-image {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.section-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) saturate(0.9);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}

.section-image:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1.1);
}

.message-image {
  margin-top: 32px;
  overflow: hidden;
  border-radius: var(--radius);
}

.message-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) saturate(0.9);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}

.message-image:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1.1);
}

/* =============================================
   Reveal Animation
   ============================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* =============================================
   Sections
   ============================================= */
.section {
  padding: 140px 48px;
  position: relative;
  z-index: 1;
}

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

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* =============================================
   Philosophy
   ============================================= */
.philosophy {
  background: transparent;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phil-card {
  padding: 44px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s, transform 0.5s var(--ease), box-shadow 0.5s;
}

.phil-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.phil-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(167, 139, 250, 0.12);
}

.phil-card:hover::before { opacity: 1; }

.phil-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.phil-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.phil-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

/* =============================================
   Numbers
   ============================================= */
.numbers {
  background: transparent;
  padding: 100px 48px;
  position: relative;
  z-index: 1;
}

.numbers::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  bottom: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  z-index: -1;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.number-item { padding: 20px; }

.number-value {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 200;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.number-suffix {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}

.number-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 12px;
}

/* =============================================
   Service
   ============================================= */
.service {
  background: transparent;
}

.service-list {
  margin-bottom: 80px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 36px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.4s var(--ease);
  cursor: default;
  margin-bottom: 8px;
}

.service-item:first-child { border-top: none; }

.service-item:hover {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: 0 8px 40px rgba(167, 139, 250, 0.05);
}

.service-item:hover .service-num { color: var(--accent); }
.service-item:hover .service-arrow { color: var(--accent); transform: translateX(8px); }

.service-num {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 200;
  color: var(--text-faint);
  transition: color 0.4s;
  flex-shrink: 0;
  width: 48px;
}

.service-body { flex: 1; }

.service-body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.service-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.service-arrow {
  flex-shrink: 0;
  color: var(--text-faint);
  transition: all 0.5s var(--ease);
}

/* Process */
.process { padding-top: 20px; }

.process-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 48px;
}

.process-track { position: relative; }

.process-line {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-subtle);
  border-radius: 2px;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.process-step { text-align: center; flex: 1; }

.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  background: var(--bg-primary);
  margin: 0 auto 16px;
  transition: all 0.4s;
  position: relative;
}

.step-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s var(--ease);
}

.process-step:hover .step-dot {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.process-step:hover .step-dot::after { transform: translate(-50%, -50%) scale(1); }

.step-num {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.process-step h4 {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

/* =============================================
   Message
   ============================================= */
.message {
  background: transparent;
  overflow: hidden;
}

.message-layout {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.message-left {
  flex-shrink: 0;
  width: 380px;
  position: sticky;
  top: 140px;
}

.message-heading {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.message-right { flex: 1; }

.message-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 24px;
}

.message-sign {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--glass-border);
}

.sign-role {
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.sign-name {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
}

/* =============================================
   Contact
   ============================================= */
.contact {
  background: transparent;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.03em;
}

.contact-form {
  max-width: 760px;
  margin: 60px auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full { margin-bottom: 20px; }

label {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.required {
  font-size: 0.6rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 6px;
}

input, select, textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(26,26,46,0.35)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

textarea { resize: vertical; }

.form-submit { text-align: center; margin-top: 48px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-1);
  border: none;
  color: #fff;
  padding: 16px 52px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.2);
}

.btn-submit::before { display: none; }

.btn-submit span, .btn-submit svg { position: relative; z-index: 1; }

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(167, 139, 250, 0.35);
}

.btn-submit:hover svg line { stroke: #fff; }

/* =============================================
   Footer
   ============================================= */
.footer {
  background: transparent;
  border-top: 1px solid var(--glass-border);
  padding: 64px 48px 32px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.footer-crest {
  width: auto;
  height: 48px;
  opacity: 0.6;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.footer-logo-en {
  font-family: 'Playfair Display', var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.footer-logo-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.footer-name {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.footer-address, .footer-tel {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-nav { display: flex; gap: 28px; }

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  text-align: center;
}

.copyright {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* =============================================
   Company Page
   ============================================= */
.page-hero {
  padding: 180px 48px 80px;
  background: transparent;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  margin-top: 16px;
}

.company-section { background: transparent; }

.company-table {
  max-width: 800px;
  margin: 0 auto 80px;
}

.company-row {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  padding: 28px 0;
}

.company-row:first-child { border-top: 1px solid var(--glass-border); }

.company-th {
  width: 160px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-top: 2px;
}

.company-td {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.company-map {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
}

/* =============================================
   Group Companies
   ============================================= */
.group-companies {
  max-width: 800px;
  margin: 0 auto;
}

.group-company-card {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 36px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}

.group-company-card:hover {
  background: var(--bg-secondary);
  border-color: var(--glass-border);
  box-shadow: 0 8px 40px rgba(167, 139, 250, 0.08);
}

.group-company-card:hover .group-company-arrow {
  color: var(--accent);
  transform: translateX(8px);
}

.group-company-body {
  flex: 1;
}

.group-company-body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.group-company-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.group-company-arrow {
  flex-shrink: 0;
  color: var(--text-faint);
  transition: all 0.5s var(--ease);
}

/* =============================================
   Magnetic Hover (service items)
   ============================================= */
.service-item {
  transition: all 0.4s var(--ease);
}

/* =============================================
   Header Solid (subpages)
   ============================================= */
.header-solid {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}

.nav-active {
  color: var(--text-primary) !important;
}

/* =============================================
   Page Hero (subpages)
   ============================================= */
.page-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 2;
  margin-top: 20px;
}

/* =============================================
   Section More / View More Button
   ============================================= */
.section-more {
  margin-top: 60px;
  text-align: center;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: all 0.4s var(--ease);
  padding: 12px 0;
  border-bottom: 1px solid var(--text-faint);
}

.btn-more:hover { color: var(--accent); border-color: var(--accent); }
.btn-more:hover svg { transform: translateX(4px); }
.btn-more svg { transition: transform 0.4s var(--ease); }

.btn-more-accent {
  color: #fff;
  background: var(--gradient-1);
  border: none;
  border-bottom: none;
  padding: 16px 48px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.2);
}

.btn-more-accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(167, 139, 250, 0.35);
  border-color: transparent;
}

/* =============================================
   Contact CTA Section
   ============================================= */
.contact-cta {
  background: transparent;
  position: relative;
  z-index: 1;
}

.cta-inner { text-align: center; }

/* =============================================
   Philosophy Intro (subpage)
   ============================================= */
.philosophy-intro {
  max-width: 800px;
  margin-bottom: 40px;
}

.philosophy-intro p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 24px;
}

/* =============================================
   Service Detail (subpage)
   ============================================= */
.section-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 60px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-detail-card {
  padding: 44px 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color 0.5s, transform 0.5s var(--ease), box-shadow 0.5s;
  position: relative;
}

.service-detail-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(167, 139, 250, 0.12);
}

.service-detail-card .service-num {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 200;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.service-detail-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.service-detail-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.service-features { list-style: none; padding: 0; }

.service-features li {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid var(--text-subtle);
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gradient-1);
  transform: translateY(-50%);
}

/* =============================================
   Process Vertical (service subpage)
   ============================================= */
.process-vertical {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.process-vertical::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-dim), var(--text-subtle));
  border-radius: 2px;
}

.process-v-item {
  display: flex;
  gap: 36px;
  padding: 36px 0;
  position: relative;
}

.process-v-num {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 48px;
  flex-shrink: 0;
  text-align: center;
  position: relative;
  z-index: 1;
  background-color: var(--bg-primary);
  padding: 4px 0;
}

.process-v-content h4 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.process-v-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* =============================================
   Message Page Layout
   ============================================= */
.message-page-layout {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.message-page-image {
  flex-shrink: 0;
  width: 400px;
  position: sticky;
  top: 120px;
}

.message-page-text { flex: 1; }

.message-page-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 24px;
}

/* =============================================
   Contact Info (contact subpage)
   ============================================= */
.contact-info {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-top: 40px;
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 2;
}

.contact-info-tel {
  margin-top: 12px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem !important;
  letter-spacing: 0.06em;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 20px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .message-layout { flex-direction: column; gap: 40px; }
  .message-left { width: 100%; position: static; }
  .message-page-layout { flex-direction: column; gap: 40px; }
  .message-page-image { width: 100%; position: static; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .process-steps { flex-wrap: wrap; gap: 20px; }
  .process-step { flex: 0 0 calc(33.3% - 14px); }
  .process-line { display: none; }
}

@media (max-width: 768px) {
  .section-divider { height: 60px; }
  .section-image img { height: 240px; }
  .message-image img { height: 200px; }
  .section { padding: 100px 24px; }
  .header { padding: 18px 24px; }
  .header.scrolled { padding: 14px 24px; }

  .logo-img { width: 140px; }
  .header.scrolled .logo-img { width: 120px; }
  .logo-crest-mark { height: 44px; }
  .logo-text-en { font-size: 20px; }
  .logo-text-jp { font-size: 9px; }
  .logo-header { gap: 10px; }
  .header.scrolled .logo-crest-mark { height: 36px; }
  .header.scrolled .logo-text-en { font-size: 17px; }

  .page-hero { padding: 140px 24px 60px; }
  .company-row { flex-direction: column; gap: 8px; }
  .company-th { width: 100%; }
  .company-map iframe { height: 280px; }

  .hamburger { display: block; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
  }

  .nav.open { opacity: 1; pointer-events: all; }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .nav-list a { font-size: 1.1rem; color: var(--text-muted); }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .numbers { padding: 80px 24px; }

  .service-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .service-arrow { display: none; }
  .process-step { flex: 0 0 calc(50% - 10px); }
  .form-row { grid-template-columns: 1fr; }
  .scroll-indicator { left: 24px; bottom: 32px; }
  .footer { padding: 48px 24px 24px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
  .phil-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .section-divider { height: 40px; }
  .section-image img { height: 180px; }
  .message-image img { height: 160px; }
  .hero-catch { letter-spacing: 0.06em; }
  .crest-img { width: 60px; }
  .logo-img { width: 120px; }
  .logo-crest-mark { height: 36px; }
  .logo-text-en { font-size: 17px; letter-spacing: 1px; }
  .logo-text-jp { font-size: 8px; }
  .logo-header { gap: 8px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { flex: 0 0 100%; }
  .section { padding: 80px 20px; }
}
