/* ===================================
   CLONIT Corporate Site — Styles
   Tone: Emerging Strategy & Technology
   =================================== */

/* ===================================
   1. CSS Variables
   =================================== */
:root {
  /* Brand colors (from clonit.co.jp) */
  --primary:        #0A1F3C;   /* deep navy */
  --primary-mid:    #122F5C;
  --accent:         #0072CE;   /* vivid blue */
  --accent-light:   #3395E8;
  --accent-glow:    rgba(0, 114, 206, 0.35);

  /* Highlight palette */
  --violet:         #6C3EF0;
  --violet-light:   #9B70FF;
  --orange:         #FF6B35;
  --orange-light:   #FF9265;

  /* Neutrals */
  --white:          #FFFFFF;
  --off-white:      #F6F8FC;
  --gray-100:       #F0F3F8;
  --gray-200:       #DDE3EF;
  --gray-400:       #9AA3B8;
  --gray-600:       #5C6880;
  --gray-800:       #1E2B40;
  --dark:           #080E1A;

  /* Gradients */
  --grad-hero:      linear-gradient(135deg, #080E1A 0%, #0A1F3C 45%, #0D2A52 100%);
  --grad-accent:    linear-gradient(135deg, #0072CE 0%, #3395E8 100%);
  --grad-vivid:     linear-gradient(135deg, #6C3EF0 0%, #0072CE 100%);
  --grad-warm:      linear-gradient(135deg, #FF6B35 0%, #FF9265 100%);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:      0 6px 24px rgba(0,0,0,0.14);
  --shadow-lg:      0 16px 56px rgba(0,0,0,0.22);
  --shadow-glow:    0 0 40px rgba(0, 114, 206, 0.3);

  /* Shapes */
  --radius:         8px;
  --radius-lg:      18px;
  --radius-xl:      28px;

  /* Motion */
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --transition:     0.3s var(--ease);
  --transition-slow:0.6s var(--ease);

  /* Typography */
  --font-sans:      'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --font-display:   'Space Grotesk', 'Noto Sans JP', sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul { list-style: none; }
button { cursor: pointer; }

/* ===================================
   3. Typography
   =================================== */
h1, h2, h3, h4, h5 {
  line-height: 1.25;
  font-weight: 700;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.85;
  max-width: 580px;
}

/* ===================================
   4. Layout
   =================================== */

.container {
  width: min(92%, 1180px);
  margin-inline: auto;
}

section {
  padding-block: 120px;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .section-eyebrow {
  justify-content: center;
}

.section-header .section-eyebrow::before {
  display: none;
}

.section-header .section-desc {
  margin-inline: auto;
}

/* ===================================
   5. Skip Link
   =================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ===================================
   6. Header / Navigation
   =================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#header.scrolled {
  background: rgba(8, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 14px 0;
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}

.nav-logo-img:hover { opacity: 0.8; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* CTA button in nav */
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition) !important;
}

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

.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================
   7. Hero Section
   =================================== */
#hero {
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: 160px 100px;
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,114,206,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,114,206,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridScroll 24s linear infinite;
}

@keyframes gridScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(64px); }
}

/* Floating geometric shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  animation: shapeFloat 12s ease-in-out infinite;
}

.shape-1 {
  width: 480px; height: 480px;
  border: 1px solid rgba(0,114,206,0.15);
  border-radius: 50%;
  top: -80px; right: -80px;
  animation-duration: 14s;
}

.shape-2 {
  width: 240px; height: 240px;
  border: 1px solid rgba(108,62,240,0.2);
  border-radius: 50%;
  top: 20%; right: 15%;
  animation-duration: 10s;
  animation-delay: -3s;
}

.shape-3 {
  width: 120px; height: 120px;
  background: rgba(0,114,206,0.08);
  border-radius: 50%;
  top: 30%; right: 22%;
  animation-duration: 8s;
  animation-delay: -6s;
}

.shape-4 {
  width: 360px; height: 360px;
  border: 1px solid rgba(0,114,206,0.08);
  border-radius: 50%;
  bottom: -100px; left: -60px;
  animation-duration: 16s;
  animation-delay: -2s;
}

.shape-5 {
  width: 80px; height: 80px;
  background: rgba(108,62,240,0.12);
  border-radius: 16px;
  transform: rotate(45deg);
  top: 60%; left: 5%;
  animation-duration: 9s;
  animation-delay: -5s;
}

@keyframes shapeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(3deg); }
}

/* Hero inner */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s var(--ease) both;
}

.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  margin-bottom: 28px;
  animation: fadeInUp 0.6s 0.1s var(--ease) both;
}

.hero-title-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-title-main em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-title-main em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.4;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
  line-height: 1.85;
  animation: fadeInUp 0.6s 0.2s var(--ease) both;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.6s 0.3s var(--ease) both;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* Hero pillars */
.hero-pillars {
  display: flex;
  gap: 14px;
  animation: fadeInUp 0.6s 0.45s var(--ease) both;
}

.pillar-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  transition: background var(--transition), border-color var(--transition);
}

.pillar-card:hover {
  background: rgba(0,114,206,0.15);
  border-color: rgba(0,114,206,0.3);
}

.pillar-icon {
  font-size: 1rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  animation: fadeIn 1s 1s var(--ease) both;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(1.2); opacity: 1; }
}

/* ===================================
   8. Marquee Strip
   =================================== */
.marquee-strip {
  background: var(--primary);
  border-top: 1px solid rgba(0,114,206,0.25);
  border-bottom: 1px solid rgba(0,114,206,0.25);
  overflow: hidden;
  padding-block: 14px;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding-inline: 24px;
}

.marquee-track .sep {
  color: var(--accent);
  opacity: 0.6;
  padding-inline: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

/* ===================================
   9. About Section
   =================================== */
#about {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.about-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 200px);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,114,206,0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Visual side */
.about-visual {
  position: relative;
  height: 480px;
}

.about-visual-main {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--grad-hero); /* fallback */
}

/* Grid pattern — only when no image present */
.about-visual-main:not(:has(.about-main-img))::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,114,206,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,114,206,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.about-big-number {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 128px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-radius: -0.04em;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s var(--ease) both;
}

.about-big-number span {
  color: var(--accent);
}

.about-big-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 8px;
  line-height: 1.5;
}

/* Stat cards overlapping */
.about-visual-cards {
  position: absolute;
  bottom: -24px;
  left: -24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
}

.about-stat-card.accent {
  background: var(--grad-accent);
  color: var(--white);
}

.asc-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.about-stat-card.accent .asc-value { color: var(--white); }

.asc-suffix {
  font-size: 1.25rem;
}

.asc-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 4px;
  font-weight: 500;
}

.about-stat-card.accent .asc-label { color: rgba(255,255,255,0.75); }

/* Decorative rings */
.about-deco-ring {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(0,114,206,0.2);
  border-radius: 50%;
}

.about-deco-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

/* Content side */
.about-content .section-title {
  text-align: left;
}

.about-content .section-desc {
  margin-bottom: 40px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.value-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
}

.value-item:first-child {
  border-top: 1px solid var(--gray-200);
}

.value-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  min-width: 28px;
  padding-top: 3px;
}

.value-body h4 {
  font-size: 0.9375rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.value-body p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* About Tabs */
.about-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0;
}

.about-tab {
  padding: 0.6rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
  white-space: nowrap;
}

.about-tab:hover {
  color: var(--gray-200);
}

.about-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.about-tab-panel {
  display: none;
  padding-top: 1.5rem;
}

.about-tab-panel.active {
  display: block;
}

.atp-lead {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.member-photo {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.company-table-wrap {
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.company-table th,
.company-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
  line-height: 1.7;
}

.company-table tbody tr:last-child th,
.company-table tbody tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 40%;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
}

.company-table td {
  color: #000;
}

@media (max-width: 480px) {
  .company-table th {
    width: 45%;
    font-size: 0.8rem;
  }
  .company-table td {
    font-size: 0.8rem;
  }
}

/* ===================================
   Service Detail Sections
   =================================== */
#consulting {
  padding: var(--section-py) 0;
  margin-top: var(--section-py);
  background: var(--primary);
}

#consulting .section-header {
  padding-top: 2rem;
}

#consulting .section-title {
  color: var(--white);
}

#consulting .section-desc {
  color: var(--gray-400);
}

#consulting .section-eyebrow {
  color: var(--accent-light);
}

#consulting .section-eyebrow::before {
  background: var(--accent-light);
}

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

.detail-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition), background var(--transition);
}

.detail-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(0,114,206,0.35);
}

.detail-card-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.detail-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.detail-card p {
  font-size: 0.8125rem;
  color: var(--gray-400);
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   10. Services Section
   =================================== */
#services {
  background: var(--white);
}

.services-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Service block */
.service-block {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 28px;
}

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

/* Alternate layout */
.service-block-alt {
  grid-template-columns: 1fr 380px;
}

.service-block-alt .service-block-visual {
  order: 2;
}

.service-block-alt .service-block-content {
  order: 1;
}

/* Visual panel */
.service-block-visual {
  position: relative;
  min-height: 280px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-block-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,114,206,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,114,206,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.sb-icon-wrap {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-block:hover .sb-icon-wrap {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0,114,206,0.3);
}

.sb-deco-num {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Content panel */
.service-block-content {
  padding: 48px 52px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sb-category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-block-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.service-block-content p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 24px;
}

.sb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.sb-tags span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(0,114,206,0.08);
  border: 1px solid rgba(0,114,206,0.15);
  padding: 4px 12px;
  border-radius: 100px;
}

.sb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 2px;
  width: fit-content;
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}

.sb-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 10px;
}

/* ===================================
   11. AI & DX Section
   =================================== */
#ai-dx {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.ai-bg-shape {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,114,206,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ai-focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-focus-content .section-title {
  color: var(--white);
  text-align: left;
}

.ai-title .highlight-text {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.ai-focus-content .section-desc {
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}

.ai-focus-content .section-eyebrow {
  color: var(--accent-light);
}

.ai-focus-content .section-eyebrow::before {
  background: var(--accent-light);
}

.ai-capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ac-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.ac-item:hover {
  background: rgba(0,114,206,0.15);
  border-color: rgba(0,114,206,0.3);
  transform: translateY(-2px);
}

.ac-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.ac-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.ac-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* AI Visual */
.ai-visual {
  position: relative;
}

.ai-graph-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px;
}

#aiGraph {
  width: 100%;
  height: auto;
  display: block;
}

.ai-graph-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
}

/* ===================================
   12. Process Section
   =================================== */
#process {
  background: var(--off-white);
}

.process-visual {
  position: relative;
  padding-top: 20px;
}

.process-line {
  position: absolute;
  top: 56px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(to right,
    var(--accent) 0%,
    var(--accent) 25%,
    var(--gray-200) 25%,
    var(--gray-200) 100%
  );
  z-index: 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.ps-marker {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.ps-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
  transition: all var(--transition-slow);
}

.process-step.active .ps-ring {
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: 0 0 0 6px rgba(0,114,206,0.12);
}

.ps-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-400);
  transition: color var(--transition-slow);
  z-index: 1;
}

.process-step.active .ps-num {
  color: var(--white);
}

.ps-body h3 {
  font-size: 0.9375rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.ps-body p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===================================
   13. CTA Section
   =================================== */
#cta {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: 120px;
}

.cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,114,206,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,114,206,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.cta-shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(0,114,206,0.15);
  top: -100px;
  left: -100px;
}

.cta-shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(108,62,240,0.12);
  bottom: -80px;
  right: -60px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 700;
  border: 2px solid var(--white);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.7);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.18);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* ===================================
   14. Contact Section
   =================================== */
#contact {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

/* Info side */
.contact-info-inner {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: var(--white);
  position: sticky;
  top: 100px;
}

.contact-info-inner h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-info-inner > p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.cd-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cd-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(0,114,206,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cd-text strong {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.cd-text span,
.cd-text a {
  font-size: 0.9375rem;
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition);
}

.cd-text a:hover { color: var(--accent-light); }

/* Service tags in contact */
.cs-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 12px;
  border-radius: 100px;
}

/* Form side */
.contact-form-wrap {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
}

.form-group {
  margin-bottom: 22px;
}

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

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

label .required {
  color: #DC3545;
  margin-left: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,114,206,0.12);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239AA3B8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--accent);
}

.btn-submit {
  background: var(--grad-accent);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.form-notice {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
}

/* Validation styles */
.input-error {
  border-color: #DC3545 !important;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.1) !important;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: #DC3545;
  margin-top: 5px;
  font-weight: 500;
}

/* ===================================
   15. Footer
   =================================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
}

.footer-top {
  padding-top: 80px;
  padding-bottom: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.85;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.45);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-block: 24px;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.6);
}

/* ===================================
   16. Page Top Button
   =================================== */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
  z-index: 900;
}

.page-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.page-top:hover { background: var(--accent); }

/* ===================================
   17. Toast
   =================================== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  z-index: 9999;
  max-width: 360px;
  border-left: 4px solid var(--accent);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast .toast-icon { font-size: 1.25rem; flex-shrink: 0; }

/* ===================================
   18. Keyframe Animations
   =================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===================================
   19. Scroll Reveal
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================================
   20. Mobile Responsive
   =================================== */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-visual {
    height: 380px;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block-alt {
    grid-template-columns: 1fr;
  }

  .service-block-alt .service-block-visual,
  .service-block-alt .service-block-content {
    order: unset;
  }

  .service-block-visual {
    min-height: 220px;
  }

  .ai-focus-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .process-line { display: none; }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-inner {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  section { padding-block: 80px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 32px;
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.25rem; }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero-pillars {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-capability-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap { padding: 32px 24px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .form-row { grid-template-columns: 1fr; }

  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .about-visual { height: 320px; }
  .about-visual-cards { left: -12px; bottom: -12px; }

  .service-block-content { padding: 32px 24px; }

  .page-top { bottom: 20px; right: 20px; }
}

/* ===================================
   21. Hero Video Background
   =================================== */

/* Video wrapper — sits behind everything */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Each video fills the frame */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.hero-video.hero-video-active {
  opacity: 1;
}

/* Dark gradient overlay for text legibility */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(8, 14, 26, 0.82) 0%,
      rgba(8, 14, 26, 0.55) 55%,
      rgba(8, 14, 26, 0.35) 100%
    ),
    linear-gradient(
      to top,
      rgba(8, 14, 26, 0.6) 0%,
      transparent 40%
    );
}

/* Grid pattern on top of video */
.hero-video-wrap ~ .hero-bg {
  z-index: 1;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Ensure hero content sits above video */
#hero .container {
  position: relative;
  z-index: 2;
}

#hero .hero-scroll {
  z-index: 2;
}


/* ===================================
   22. About — mainimg.png styles
   =================================== */

/* Image: absolute fill, object-fit cover, rounded corners clip by parent */
.about-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* 人物が上寄り → 顔が切れにくい */
  display: block;
  transition: transform 0.8s var(--ease);
  z-index: 0;
}

/* ホバーで微かにズーム */
.about-visual:hover .about-main-img {
  transform: scale(1.04);
}

/* 下から暗くなるグラデーション（テキスト可読性） */
.about-visual-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,14,26,0.08) 0%,
    rgba(8,14,26,0.45) 100%
  );
  border-radius: var(--radius-xl);
  z-index: 1;
  pointer-events: none;
}

/* バッジ — 画像の上に乗せる */
.about-img-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(8, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  z-index: 2;
}

.aib-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.aib-num small {
  font-size: 1.25rem;
  color: var(--accent);
}

.aib-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* ===================================
   23. Services — photo styles
   =================================== */

/* Photo fills the visual panel */
.sb-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--ease);
}

.service-block:hover .sb-photo {
  transform: scale(1.05);
}

/* Dark gradient overlay so deco number stays readable */
.sb-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 14, 26, 0.55) 0%,
    rgba(8, 14, 26, 0.2) 60%,
    transparent 100%
  );
  z-index: 1;
}

/* Keep deco number above overlay */
.service-block-visual .sb-deco-num {
  z-index: 2;
}

/* Fallback background if image not found */
.service-block-visual:not(:has(.sb-photo)) {
  background: var(--primary);
}
