/* ===================================
   Halo Corporate Website — Design System
   =================================== */

/* --- CSS Variables --- */
:root {
  --primary: #D4A017;
  --primary-light: #E8C547;
  --primary-dark: #B8860B;
  --primary-glow: rgba(212, 160, 23, 0.15);
  --accent: #6CB4D4;
  --accent-light: #8DC8E0;
  --accent-dark: #4A9BBD;
  --accent-glow: rgba(108, 180, 212, 0.12);
  --text: #2D2D2D;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --bg: #FFFFFF;
  --bg-warm: #F7F5F0;
  --bg-light: #F7F7F5;
  --bg-section: #FAF9F6;
  --border: #E5E5E0;
  --border-light: #F0EFEB;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text);
  line-height: 1.8;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.en {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.05em;
}

/* --- Opening Animation --- */
.opening-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  will-change: clip-path;
  justify-content: center;
  flex-direction: column;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.opening-overlay.fade-out {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.halo-ring-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halo-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary-light);
  border-radius: 50%;
  animation: haloSpin 1.2s ease-in-out forwards;
  opacity: 0;
}

.halo-ring-inner {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid transparent;
  border-bottom-color: var(--accent);
  border-left-color: var(--accent-light);
  border-radius: 50%;
  animation: haloSpinReverse 1.2s 0.15s ease-in-out forwards;
  opacity: 0;
}

.halo-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  animation: haloGlow 1.5s 0.3s ease-out forwards;
  opacity: 0;
}

.opening-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  opacity: 0;
  animation: logoReveal 0.8s 0.8s ease-out forwards;
  position: relative;
  z-index: 1;
}

.opening-logo-img {
  height: 100px;
  width: auto;
  opacity: 0;
  animation: logoReveal 0.8s 0.8s ease-out forwards;
  position: relative;
  z-index: 1;
}

.opening-tagline {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.3em;
  margin-top: 12px;
  opacity: 0;
  animation: logoReveal 0.6s 1.1s ease-out forwards;
}

@keyframes haloSpin {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.5);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: rotate(360deg) scale(1);
  }
}

@keyframes haloSpinReverse {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.5);
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0.8;
    transform: rotate(-360deg) scale(1);
  }
}

@keyframes haloGlow {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0.3;
    transform: scale(1.3);
  }
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.logo-img {
  height: 50px !important;
  width: auto !important;
  max-width: none;
  display: block;
}

.footer-brand .logo-img {
  height: 60px !important;
}

nav ul {
  display: flex;
  gap: 36px;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.header-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.header-cta:hover::before {
  left: 160%;
}

.header-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.25);
  color: var(--white);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: all var(--transition);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1050;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  perspective: 800px;
}

.mobile-nav-overlay.active {
  display: flex;
}

.mobile-nav-overlay ul {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-nav-overlay a {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.mobile-nav-overlay a:hover {
  color: var(--primary);
}

.mobile-nav-cta {
  margin-top: 40px;
}

/* --- Section Common --- */
section {
  padding: 60px 40px;
}

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

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.section-description {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 2;
}

.page-header {
  padding: 60px 40px 60px;
  background-color: #E8F1F3;
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.018) 1px, transparent 1px);
  background-size: 22px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.22);
  filter: blur(70px);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(108, 180, 212, 0.18);
  filter: blur(60px);
  pointer-events: none;
}

/* 追加 orb */
.header-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.header-orb--1 {
  width: 250px;
  height: 250px;
  top: 10%;
  left: 20%;
  background: rgba(212, 160, 23, 0.12);
  filter: blur(80px);
}

.header-orb--2 {
  width: 180px;
  height: 180px;
  bottom: 0;
  right: 25%;
  background: rgba(108, 180, 212, 0.10);
  filter: blur(65px);
}

.header-orb--3 {
  width: 200px;
  height: 200px;
  top: 30%;
  right: 10%;
  background: rgba(212, 160, 23, 0.08);
  filter: blur(90px);
}

.page-header .section-label {
  position: relative;
  z-index: 1;
}

.page-header .section-title {
  position: relative;
  z-index: 1;
  font-size: clamp(32px, 5vw, 48px);
}

.page-header .section-description {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 160%;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.3);
  color: var(--white);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--primary);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.3);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(108, 180, 212, 0.3);
  color: var(--white);
}

/* Arrow icon for buttons */
.arrow-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* --- Hero Section (Top Page) --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-warm);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212, 160, 23, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(108, 180, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 20px 20px;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

.hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.25em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(212, 160, 23, 0.12);
  z-index: 2;
}

.hero-badge .badge-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-badge .badge-value {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.hero-badge .badge-unit {
  font-size: 14px;
  color: var(--text-light);
  margin-left: 4px;
}

/* --- Card Styles --- */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(212, 160, 23, 0.12), var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.card:hover .card-icon {
  background: var(--primary);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  transition: color 0.4s ease;
}

.card:hover .card-icon svg {
  color: white;
}

.card-icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--primary);
  transition: color 0.4s ease;
}

.card:hover .card-icon .material-symbols-outlined {
  color: white;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
}

/* Feature card with number */
.feature-card {
  text-align: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.18);
  border-color: rgba(212, 160, 23, 0.25);
}

.feature-number {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 8px;
}

.feature-unit {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14px;
  line-height: 1.7;
}

/* --- Service Detail Card --- */
.service-detail-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
}

.service-detail-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-detail-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.service-detail-card.featured::after {
  content: 'おすすめ';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.service-detail-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-detail-body {
  padding: 32px;
}

.service-detail-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-detail-body p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

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

.service-tag {
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* --- Flow Steps --- */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  position: relative;
  padding-bottom: 56px;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 80px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--border-light));
}

.flow-step:last-child::before {
  display: none;
}

.flow-number {
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.flow-content {
  flex: 1;
  padding-top: 14px;
}

.flow-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flow-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
}

/* --- Company Table --- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 900px;
  margin: 0 auto;
}

.company-table tr {
  border-bottom: 1px solid var(--border-light);
}

.company-table th,
.company-table td {
  padding: 24px 20px;
  text-align: left;
  font-size: 15px;
}

.company-table th {
  width: 200px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-light);
  border-right: 3px solid var(--primary);
}

.company-table td {
  color: var(--text-light);
}

/* --- Wave Dividers --- */
.section-wave {
  display: block;
  width: 100%;
  height: 80px;
  line-height: 0;
  overflow: hidden;
}

.section-wave--tall {
  height: 100px;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- CTA Gold Zone (shimmer wrapper) --- */
.cta-gold-zone {
  position: relative;
  overflow: hidden;
}


/* --- CTA Banner --- */
.cta-banner {
  background: #D4A017;
  padding: 80px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* 円1: 右上 */
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  filter: blur(50px);
  pointer-events: none;
}

/* 円2: 左下 */
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(60px);
  pointer-events: none;
}

/* 円3: 中央上 */
.cta-gold-zone::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 40%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* 円4: 右下 */
.cta-gold-zone::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 15%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

.cta-banner h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  line-height: 2;
}

.cta-banner .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--primary);
  padding: 18px 42px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* --- Contact Form --- */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.contact-phone {
  font-family: 'Outfit', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-phone a {
  color: inherit;
}

.contact-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  color: var(--text-muted);
  font-size: 13px;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
}

.form-group label .required {
  color: var(--primary);
  margin-left: 4px;
  font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: all var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* form-submit: metaball button overrides */
.form-submit {
  border: none;
  outline: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin-top: 12px;
  align-self: center;
}

/* --- Footer --- */
footer {
  background: #F7F5F0;
  color: var(--text);
  padding: 80px 40px 40px;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

.footer-nav h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

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

.footer-nav a {
  color: var(--text-light);
  font-size: 14px;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 36px;
  text-align: center;
}

.footer-bottom p {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--text-light);
}

/* --- Scroll Reveal Animation --- */
/* GSAP handles all reveal animations — CSS only sets initial state */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image {
    order: -1;
  }

  .hero-image-wrapper img {
    height: 350px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }

  nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  section {
    padding: 72px 20px;
  }

  .container,
  .container-wide {
    padding: 0 20px;
  }

  .hero-inner {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: clamp(28px, 7vw, 36px);
  }

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

  .hero-badge {
    bottom: -16px;
    left: -8px;
    padding: 14px 20px;
  }

  .hero-badge .badge-value {
    font-size: 22px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 110px 20px 40px;
  }

  .page-header .section-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .flow-step {
    flex-direction: column;
    gap: 16px;
  }

  .flow-step::before {
    display: none;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 14px 18px;
  }

  .company-table th {
    border-bottom: none;
    border-right: none;
    border-left: 3px solid var(--primary);
  }

  .contact-box {
    padding: 32px 20px;
  }

  .contact-phone {
    font-size: 30px;
  }

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

  /* Inline grid sections (concept, service detail) */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .cta-banner {
    padding: 60px 20px;
  }

  .halo-ring-container {
    width: 140px;
    height: 140px;
  }

  .halo-ring {
    width: 110px;
    height: 110px;
  }

  .halo-ring-inner {
    width: 76px;
    height: 76px;
  }

  .halo-glow {
    width: 120px;
    height: 120px;
  }

  .opening-logo {
    font-size: 32px;
  }
}

/* ===================================
   Before After Section
   =================================== */
.before-after-section {
  padding: 100px 40px;
  background-color: var(--bg-section);
  background-image:
    linear-gradient(135deg, rgba(212, 160, 23, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(108, 180, 212, 0.03) 25%, transparent 25%),
    radial-gradient(circle, rgba(0, 0, 0, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 18px 18px;
}

.before-after-showcase {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.before-after-case-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 32px 24px 24px;
  color: var(--text);
}

.before-after-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 0 24px;
}

.before-after-side {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.before-after-side img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.before-after-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.before-label {
  background: rgba(45, 45, 45, 0.85);
  color: var(--white);
}

.after-label {
  background: var(--primary);
  color: var(--white);
}

.before-after-caption {
  font-size: 15px;
  line-height: 2;
  color: var(--text-light);
  text-align: center;
  padding: 28px 32px 36px;
}

@media (max-width: 768px) {
  .before-after-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .before-after-side img {
    height: 280px;
  }

  .before-after-section {
    padding: 60px 20px;
  }

  .before-after-case-title {
    font-size: 18px;
    padding: 24px 16px 16px;
  }
}

/* ===================================
   追加スタイル — 高級感・仕上げ演出
   =================================== */

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.scroll-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressGlow 3s linear infinite;
  will-change: transform;
}

@keyframes progressGlow {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* --- Hero Scroll Indicator --- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  animation: indicatorAppear 0.6s 3.2s ease forwards;
}

.hero-scroll-indicator .scroll-text {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(107, 114, 128, 0.5);
  border-radius: 11px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-mouse::after {
  content: '';
  width: 3px;
  height: 6px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  animation: mouseScroll 2s ease-in-out infinite;
}

@keyframes mouseScroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  60% {
    opacity: 0.2;
    transform: translateY(13px);
  }

  61% {
    opacity: 0;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes indicatorAppear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- Interactive Before/After Slider --- */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: ew-resize;
  height: 560px;
  user-select: none;
  touch-action: pan-y;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}

.ba-before img,
.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.ba-handle-btn {
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 2;
  border: 2px solid rgba(212, 160, 23, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ba-slider:active .ba-handle-btn {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(212, 160, 23, 0.35);
}

.ba-handle-btn svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.ba-label {
  position: absolute;
  top: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  z-index: 5;
  pointer-events: none;
}

.ba-label-before {
  left: 16px;
  background: rgba(45, 45, 45, 0.85);
  color: var(--white);
}

.ba-label-after {
  right: 16px;
  background: var(--primary);
  color: var(--white);
}

.ba-drag-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: hintPulse 4s 0.8s ease forwards;
}

@keyframes hintPulse {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .ba-slider {
    height: 340px;
    cursor: pointer;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-image-wrapper {
    animation: none;
  }

  .ba-drag-hint {
    font-size: 10px;
    padding: 5px 12px;
  }
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 4px 28px 0;
  cursor: pointer;
  transition: opacity var(--transition);
}

.faq-question:hover .faq-q-text {
  color: var(--primary);
}

.faq-q-label {
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
  min-width: 24px;
}

.faq-q-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  flex: 1;
  transition: color var(--transition);
}

.faq-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-top: 2px;
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.faq-item.open .faq-icon {
  background: var(--primary);
  transform: rotate(180deg);
}

.faq-item.open .faq-icon svg {
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 4px 28px 40px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 2.1;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* --- Section Title Accent Bar --- */
.section-header .section-title {
  display: inline-block;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 14px auto 0;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section-header:hover .section-title::after {
  width: 60px;
}

/* --- Flow Step enhanced --- */
.flow-number {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover .flow-number {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.4);
}

/* --- Service Detail Card enhanced --- */
.service-detail-card:hover .service-detail-img {
  transform: scale(1.04);
  transition: transform 0.5s ease;
}

.service-detail-img {
  transition: transform 0.5s ease;
}

.service-detail-card {
  overflow: hidden;
}

/* --- Page Header enhanced --- */
.page-header {
  position: relative;
}

.page-header::before {
  animation: bgGlowPulse 8s ease-in-out infinite;
}

@keyframes bgGlowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* --- Footer subtle border accent --- */
.footer-nav h4 {
  position: relative;
  padding-bottom: 10px;
}

.footer-nav h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* --- Global link underline on hover (footer) --- */
.footer-nav a {
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}

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

/* --- Smooth page load fade-in --- */
body:not(.loading) main,
body:not(.loading) header,
body:not(.loading) .hero,
body:not(.loading) section,
body:not(.loading) footer {
  animation: pageFadeIn 0.4s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===================================
   Halo — Button & Layout Extensions
   =================================== */

/* ----------------------------------------
   Metaball Button — blob fusion style
   SVG filter(#mb-filter) + rAF ループ で有機的なエッジ
   ---------------------------------------- */

/*
 * Structure:
 *   <a class="mb-btn [modifier]" href="...">
 *     <span class="mb-btn__bg">          ← filtered layer
 *       <span class="mb-btn__ball"></span> × 4
 *     </span>
 *     <span class="mb-btn__label">Text</span>
 *   </a>
 *
 * __bg に filter:url(#mb-filter) を当て、
 * __ball が rAF で軌道アニメーション → 有機融合エッジ。
 * __label は __bg の外にあるのでフィルタ非適用 → 文字がクリア。
 */

/* ボタン本体 */
.mb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

/* フィルタ付き背景レイヤー */
.mb-btn__bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--primary);
  filter: url(#mb-filter);
  -webkit-filter: url(#mb-filter);
  overflow: visible;   /* ball が外にはみ出して軌道できるよう */
  z-index: 0;
}

/* メタボール球体 × 4 */
.mb-btn__ball {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: var(--primary);
  transform: scale(0);
  pointer-events: none;
}

/* テキスト — フィルタ外、常に上层 */
.mb-btn__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* Small — header */
.mb-btn--sm .mb-btn__label {
  padding: 11px 26px;
  font-size: 14px;
}

/* Large — hero CTA */
.mb-btn--lg .mb-btn__label {
  padding: 18px 52px;
  font-size: 16px;
}

/* White — CTA banner */
.mb-btn--white .mb-btn__bg {
  background-color: var(--white);
}
.mb-btn--white .mb-btn__ball {
  background-color: var(--white);
}
.mb-btn--white .mb-btn__label {
  color: var(--primary);
}

/* Utility margins */
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* Ghost button for hero secondary CTA */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}


/* ----------------------------------------
   Hero — halo Fullwidth Style
   ---------------------------------------- */
.hero-halo {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background-color: #E8F1F3;
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(212, 160, 23, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(108, 180, 212, 0.04) 0%, transparent 50%),
    radial-gradient(circle, rgba(0, 0, 0, 0.013) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
}

/* ----------------------------------------
   Hero — Metaball blob scene
   feGaussianBlur(22) + feColorMatrix threshold → mochi merge
   ---------------------------------------- */
.hero-mb-scene {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  max-width: 680px;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mb-field {
  position: absolute;
  inset: 0;
  filter: url(#hero-mb-filter);
  transform: translateZ(0);
  will-change: transform;
  contain: layout style;
}

.hero-mb-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* Central large blue blob */
.hero-mb-blob.b1 {
  width: 250px; height: 250px;
  background: #5ab2d5;
  top: 50%; left: 50%;
  animation: mb-blob-1 12s ease-in-out infinite;
}
/* Upper-right blue */
.hero-mb-blob.b2 {
  width: 170px; height: 170px;
  background: #5ab2d5;
  top: 18%; left: 58%;
  animation: mb-blob-2 8.5s ease-in-out infinite;
}
/* Lower-left blue */
.hero-mb-blob.b3 {
  width: 150px; height: 150px;
  background: #5ab2d5;
  top: 65%; left: 16%;
  animation: mb-blob-3 10s ease-in-out infinite 1.5s;
}
/* Upper-left gold (logo accent) */
.hero-mb-blob.b4 {
  width: 95px; height: 95px;
  background: #D4A017;
  top: 17%; left: 17%;
  animation: mb-blob-4 7s ease-in-out infinite 0.8s;
}
/* Lower-right blue */
.hero-mb-blob.b5 {
  width: 130px; height: 130px;
  background: #5ab2d5;
  top: 70%; left: 65%;
  animation: mb-blob-5 11s ease-in-out infinite 2.5s;
}
/* Mid-right gold (logo accent) */
.hero-mb-blob.b6 {
  width: 75px; height: 75px;
  background: #D4A017;
  top: 44%; left: 83%;
  animation: mb-blob-6 6.5s ease-in-out infinite 1.2s;
}

/* Logo mark — above blob field, unfiltered */
.hero-mb-logo {
  position: relative;
  z-index: 2;
  width: 160px;
  height: auto;
  opacity: 1;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(212,160,23,0.25));
  animation: heroMbLogoFloat 8s ease-in-out infinite;
}

@keyframes heroMbLogoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* ----------------------------------------
   Hero — Cloth wipe reveal (案2)
   Canvas で拭き跡を積算、布が円弧を描いてヒーローを磨き上げる
   ---------------------------------------- */
.hero-wipe-scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 42%; /* metaball scene の領域のみ */
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.hero-wipe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 布（マイクロファイバークロス風） */
.hero-wipe-cloth {
  position: absolute;
  width: 150px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 32%,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(245, 238, 220, 0.55) 35%,
    rgba(230, 220, 200, 0.2) 65%,
    transparent 100%
  );
  box-shadow: 0 6px 24px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

/* Blob animations — transform only (GPU composited, no layout cost) */
@keyframes mb-blob-1 {
  0%   { transform: translate(-50%,-50%) scale(1); }
  20%  { transform: translate(calc(-50% + 30px),calc(-50% - 40px)) scale(1.06); }
  40%  { transform: translate(calc(-50% - 25px),calc(-50% + 30px)) scale(0.93); }
  60%  { transform: translate(calc(-50% + 38px),calc(-50% + 25px)) scale(1.05); }
  80%  { transform: translate(calc(-50% - 18px),calc(-50% - 30px)) scale(0.97); }
  100% { transform: translate(-50%,-50%) scale(1); }
}
@keyframes mb-blob-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-55px,50px) scale(1.1); }
  66%      { transform: translate(35px,-45px) scale(0.9); }
}
@keyframes mb-blob-3 {
  0%,100% { transform: translate(0,0) scale(1); }
  25%      { transform: translate(65px,-35px) scale(1.08); }
  50%      { transform: translate(45px,55px) scale(0.92); }
  75%      { transform: translate(-35px,25px) scale(1.04); }
}
@keyframes mb-blob-4 {
  0%,100% { transform: translate(0,0) scale(1); }
  30%      { transform: translate(55px,65px) scale(1.12); }
  70%      { transform: translate(-25px,45px) scale(0.88); }
}
@keyframes mb-blob-5 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-55px,-45px) scale(1.1); }
  80%      { transform: translate(25px,-55px) scale(0.9); }
}
@keyframes mb-blob-6 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-65px,35px) scale(1.15); }
}

/* Hero inner content layout */
.hero-halo-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-halo-inner .hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-halo-title {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 640px;
  color: var(--text);
}

.hero-halo-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-halo-sub {
  font-size: 17px;
  color: var(--text-light);
  line-height: 2;
  max-width: 440px;
}

.hero-halo-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* Scroll indicator — halo line style */
.scroll-line-anim {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary) 0%, transparent 100%);
  animation: scrollLineDown 2s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes scrollLineDown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ----------------------------------------
   Concept — halo About Style
   ---------------------------------------- */
.concept-halo {
  padding: 120px 40px;
  background: #ffffff;
}

.concept-halo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.concept-image-col {
  position: relative;
}

.concept-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.concept-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  /* GSAP handles scale on hover and parallax on scroll */
  will-change: transform;
}

.concept-img-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--primary);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.concept-text-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.concept-halo-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-top: 12px;
}

.concept-halo-title em {
  font-style: normal;
  color: var(--primary);
}

.concept-halo-body {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2.2;
}


/* ----------------------------------------
   Services — halo Price Style
   ---------------------------------------- */
.services-halo {
  padding: 120px 40px;
  background: #E8F1F3;
}

.services-halo-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-end;
  margin-bottom: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-light);
}

.services-halo-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.services-halo-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 2;
  max-width: 400px;
}

.services-halo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  perspective: 900px; /* enables 3D tilt on cards */
}

.service-halo-card {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
  /* GSAP controls transform (magnetic tilt) — only colour transitions here */
  transition: background-color 0.35s ease, color 0.35s ease;
  will-change: transform;
  transform-style: preserve-3d;
}

.service-halo-card:hover {
  background: var(--primary);
  color: var(--white);
}

.service-halo-num {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 32px;
  transition: color 0.4s ease;
}

.service-halo-card:hover .service-halo-num {
  color: rgba(255,255,255,0.6);
}

.service-halo-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: color 0.4s ease;
}

.service-halo-card:hover .service-halo-icon {
  color: var(--white);
}

.service-halo-icon svg {
  width: 32px;
  height: 32px;
}

.service-halo-icon .material-symbols-outlined {
  font-size: 32px;
}

.service-halo-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
  transition: color 0.4s ease;
}

.service-halo-card:hover h3 {
  color: var(--white);
}

.service-halo-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-light);
  transition: color 0.4s ease;
}

.service-halo-card:hover p {
  color: rgba(255,255,255,0.85);
}


/* ----------------------------------------
   Projects — halo Large Card Style
   ---------------------------------------- */
.projects-halo {
  padding: 120px 40px;
  background: #ffffff;
}

.projects-halo-header {
  margin-bottom: 60px;
}

.projects-halo-header .section-label {
  text-align: left;
}

.projects-halo-header .section-title {
  text-align: left;
  margin-bottom: 0;
}

.projects-halo-header .section-title::after {
  margin: 14px 0 0;
}

.projects-halo-more {
  margin-top: 56px;
  text-align: center;
}

/* Large asymmetric card */
.project-halo-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
  border: 1px solid var(--border-light);
}

.project-halo-image {
  position: relative;
  overflow: hidden;
}

.project-halo-image .ba-slider {
  height: 540px;
  border-radius: 0;
}

.project-halo-info {
  padding: 60px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: var(--white);
}

.project-halo-category {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  background: var(--primary-glow);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
}

.project-halo-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.project-halo-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
}

.project-halo-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}

.project-halo-meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-halo-meta-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  min-width: 80px;
}

.project-halo-meta-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}


/* ----------------------------------------
   Why Choose Us — halo Card Style
   ---------------------------------------- */
.why-halo {
  padding: 120px 40px;
  background: #1A1A1A;
}

.why-halo .section-label {
  color: rgba(212, 160, 23, 0.8);
}

.why-halo .why-halo-title {
  color: #ffffff;
}

.why-halo-header {
  margin-bottom: 60px;
}

.why-halo-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 12px;
}

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

.why-card {
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* GSAP controls transform (elastic lift) — box-shadow only here */
  transition: box-shadow 0.5s ease;
  position: relative;
  overflow: hidden;
}

.why-card-dark {
  background: #252322;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
}

.why-card-gold {
  background: var(--primary);
  color: var(--white);
}

.why-card-accent {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text);
}

.why-card-icon {
  font-size: 40px !important;
  display: block;
  transform-origin: center;
  /* GSAP handles scale/rotation on hover */
  will-change: transform;
}

.why-card-dark .why-card-icon { color: var(--primary); }
.why-card-gold .why-card-icon { color: rgba(255,255,255,0.9); }
.why-card-accent .why-card-icon { color: var(--primary); }

.why-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.why-card-dark .why-card-title,
.why-card-gold .why-card-title { color: var(--white); }

.why-card-body {
  font-size: 14px;
  line-height: 2;
  flex: 1;
}

.why-card-dark .why-card-body { color: rgba(255,255,255,0.7); }
.why-card-gold .why-card-body { color: rgba(255,255,255,0.85); }
.why-card-accent .why-card-body { color: var(--text-light); }

.why-card-link {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-top: 8px;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.why-card-dark .why-card-link,
.why-card-gold .why-card-link { color: rgba(255,255,255,0.7); }
.why-card-accent .why-card-link { color: var(--primary); }

.why-card-link:hover { opacity: 0.7; }


/* ----------------------------------------
   Footer — halo Deep Dark Style
   ---------------------------------------- */
.footer-halo {
  background: #1A1A1A;
  color: var(--white);
  padding: 0;
}

.footer-halo-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-halo-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-halo {
  height: 52px !important;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-halo-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-halo-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 2;
  max-width: 360px;
  margin-bottom: 12px;
}

.footer-halo-area {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}

.footer-halo-nav-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav-halo h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-nav-halo ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-nav-halo a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-nav-halo a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.footer-nav-halo a:hover::after {
  transform: scaleX(1);
}

.footer-halo-bottom {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}


/* ----------------------------------------
   Responsive — halo sections
   ---------------------------------------- */
@media (max-width: 1200px) {
  .hero-mb-scene {
    width: 60%;
    right: -12%;
    opacity: 0.6;
  }

  .concept-halo-inner {
    gap: 60px;
  }

  .project-halo-card {
    grid-template-columns: 1fr;
  }

  .project-halo-image .ba-slider {
    height: 400px;
  }

  .footer-halo-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-halo-nav-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .why-halo-cards {
    grid-template-columns: 1fr 1fr;
  }

  .services-halo-grid {
    grid-template-columns: 1fr;
  }

  .services-halo-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-halo-inner {
    padding: 80px 24px;
  }

  .hero-halo-title {
    font-size: clamp(36px, 8vw, 52px);
  }

  .hero-mb-scene {
    width: 100%;
    right: -20%;
    top: 60%;
    opacity: 0.25;
  }

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

  .concept-halo {
    padding: 80px 24px;
  }

  .concept-halo-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .concept-img-wrap img {
    height: 320px;
  }

  .concept-img-badge {
    right: 0;
    bottom: -12px;
  }

  .services-halo {
    padding: 80px 24px;
  }

  .services-halo-title {
    font-size: 40px;
  }

  .projects-halo {
    padding: 80px 24px;
  }

  .project-halo-image .ba-slider {
    height: 320px;
  }

  .project-halo-info {
    padding: 40px 28px;
  }

  .why-halo {
    padding: 80px 24px;
  }

  .why-halo-cards {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 40px 32px;
  }

  .footer-halo-inner {
    padding: 0 24px;
  }

  .footer-halo-top {
    padding: 60px 0 40px;
  }

  .footer-halo-nav-group {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* =============================================
   Before / After ギャラリー
   ============================================= */

/* タブ */
.ba-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.ba-tab {
  padding: 10px 28px;
  border: 2px solid #D4A017;
  border-radius: 100px;
  background: transparent;
  color: #D4A017;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ba-tab.active,
.ba-tab:hover {
  background: #D4A017;
  color: #fff;
}

/* グリッド: Before / After 2列 */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* 列ラベル */
.ba-col-head {
  margin-bottom: 14px;
}

.ba-label {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ba-col--before .ba-label {
  background: #e8e8e8;
  color: #555;
}

.ba-col--after .ba-label {
  background: #D4A017;
  color: #fff;
}

.ba-label-ja {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  vertical-align: middle;
}

.ba-col--after .ba-label-ja {
  color: #b8860b;
}

/* メイン画像エリア */
.ba-main-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-main-img-wrap {
  flex: 1;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0ee;
  position: relative;
}

/* 画像オーバーレイラベル */
.ba-img-label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.ba-col--before .ba-img-label {
  background: rgba(40, 40, 40, 0.78);
  color: #fff;
}

.ba-col--after .ba-img-label {
  background: rgba(212, 160, 23, 0.92);
  color: #fff;
}

.ba-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.18s ease;
}

.ba-main-img.ba-img-fade {
  opacity: 0;
}

/* 矢印ボタン */
.ba-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e0ddd7;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ba-arrow:hover {
  border-color: #D4A017;
  color: #D4A017;
  background: #fffaf0;
}

.ba-arrow .material-symbols-outlined {
  font-size: 22px;
}

/* フッター: サムネイル + カウンター */
.ba-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ba-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.ba-thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.55;
}

.ba-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-thumb.active,
.ba-thumb:hover {
  border-color: #D4A017;
  opacity: 1;
}

.ba-counter {
  font-size: 0.85rem;
  color: #999;
  white-space: nowrap;
}

/* Before なし → After を全幅表示 */
.ba-grid--single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

/* スマホ対応 */
@media (max-width: 640px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ba-arrow {
    width: 36px;
    height: 36px;
  }

  .ba-thumb {
    width: 52px;
    height: 40px;
  }
}
