/* ============================================
   Y's Agent Corporate Site — Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-white: #ffffff;
  --color-snow: #fafafa;
  --color-silver: #f2f2f7;
  --color-grey-100: #e8e8ed;
  --color-grey-200: #d2d2d7;
  --color-grey-300: #aeaeb2;
  --color-grey-500: #86868b;
  --color-grey-700: #48484a;
  --color-grey-800: #333336;
  --color-grey-900: #1d1d1f;
  --color-black: #0a0a0c;

  --color-accent: #3b82f6;
  --color-accent-light: #60a5fa;
  --color-accent-dark: #2563eb;
  --color-accent-glow: rgba(59, 130, 246, 0.15);
  --color-accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --color-cyan: #06b6d4;
  --color-cyan-light: #22d3ee;
  --color-coral: #f97066;
  --color-coral-light: #fca5a1;
  --color-coral-dark: #e8453a;
  --color-coral-glow: rgba(249, 112, 102, 0.15);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Noto Sans JP', 'Outfit', sans-serif;

  --header-height: 72px;
  --section-padding: 120px;
  --container-width: 1120px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-base: 0.3s var(--ease-out-quart);
  --transition-slow: 0.6s var(--ease-out-expo);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-grey-900);
  background: var(--color-white);
  overflow-x: hidden;
  overflow-wrap: break-word;
  line-break: strict;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* :focus-visible でカスタムフォーカスリングを表示 */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--color-grey-900);
  line-height: 1.4;
  margin-bottom: 20px;
  word-break: keep-all;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--color-grey-500);
  line-height: 1.9;
  max-width: 640px;
}

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

.section-header .section-lead {
  margin: 0 auto;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.logo svg {
  display: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-grey-900);
}

.site-header:not(.scrolled) .logo-text {
  color: var(--color-grey-900);
}

.site-header:not(.scrolled) .logo svg .logo-mark {
  fill: var(--color-grey-900);
}

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-grey-700);
  position: relative;
  padding: 4px 0;
}

.site-header:not(.scrolled) .nav-links a {
  color: var(--color-grey-700);
}

.site-header:not(.scrolled) .nav-links a:hover {
  color: var(--color-grey-900);
}

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

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

.nav-links .nav-cta {
  font-size: 0.8rem;
  padding: 8px 20px;
  border: 1px solid var(--color-grey-200);
  border-radius: 100px;
  transition: all var(--transition-base);
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white) !important;
}

.site-header:not(.scrolled) .nav-links .nav-cta {
  border-color: var(--color-grey-200);
  color: var(--color-grey-700);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  border: none;
  background: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-grey-900);
  transition: all var(--transition-base);
  transform-origin: center;
}

.site-header:not(.scrolled) .menu-toggle span {
  background: var(--color-grey-900);
}

.menu-toggle.active span {
  background: var(--color-grey-900);
}

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

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

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

/* Mobile Nav */
/* モバイルナビ: 背景オーバーレイ */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* モバイルナビ: 右サイドパネル */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 100px 32px 40px;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out-expo);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-grey-900);
  padding: 12px 0;
  width: 100%;
  border-bottom: 1px solid var(--color-grey-100);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), color 0.2s;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }

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

/* タッチデバイスでのホバー無効化 */
@media (hover: none) {
  .service-card:hover {
    transform: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  }
  .btn-primary:hover {
    transform: none;
  }
}

/* ============================================
   HERO — Top Page
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-snow);
}

/* テック感のグリッドパターン */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  animation: gridFade 8s ease-in-out infinite alternate;
}

/* 大胆なグラデーションメッシュ */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(59, 130, 246, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 35%, rgba(249, 112, 102, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 50% 85%, rgba(6, 182, 212, 0.1) 0%, transparent 65%);
  z-index: 0;
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.06); }
}

@keyframes gridFade {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(250, 250, 250, 0.4) 100%);
  z-index: 2;
}

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

.hero-catch {
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  background: linear-gradient(135deg, #0a0a0c 0%, #1a1a2e 40%, #2563eb 80%, #e8453a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 1.2s var(--ease-out-expo) 0.4s forwards;
  word-break: keep-all;
}

.hero-sub {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: var(--color-grey-700);
  line-height: 2.2;
  max-width: 580px;
  margin: 0 auto 44px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 1.2s var(--ease-out-expo) 0.8s forwards;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 1.2s var(--ease-out-expo) 1.2s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out-expo) 1.4s forwards;
}

.hero-scroll-indicator span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey-500);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-grey-200);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 2s ease-in-out infinite;
}

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

/* --- Page Hero (Sub pages) --- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--color-snow);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 40%, rgba(249, 112, 102, 0.06) 0%, transparent 65%);
  z-index: 0;
}

.page-hero-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  z-index: 1;
}

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

.page-hero .section-label {
  color: var(--color-accent);
}

.page-hero .section-title {
  color: var(--color-grey-900);
}

.page-hero .section-lead {
  color: var(--color-grey-500);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 40%, #f97066 100%);
  background-size: 200% 200%;
  color: var(--color-white);
  box-shadow: 0 2px 16px rgba(59, 130, 246, 0.3);
  transition: all var(--transition-base), background-position 0.6s ease;
}

.btn-primary:hover {
  background-position: 100% 100%;
  box-shadow: 0 4px 28px rgba(249, 112, 102, 0.4), 0 0 60px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--color-grey-200);
  color: var(--color-grey-700);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(59, 130, 246, 0.04);
}

.btn-outline-dark {
  border: 1px solid var(--color-grey-200);
  color: var(--color-grey-700);
}

.btn-outline-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform var(--transition-base);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================
   SECTIONS — Top Page
   ============================================ */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--color-snow);
}

/* --- Services Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-grey-100);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all var(--transition-slow);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #f97066 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(59, 130, 246, 0.08);
  transform: translateY(-6px);
}

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

.service-card:hover .service-card-title {
  color: var(--color-accent-dark);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.service-card-en {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-grey-900);
  margin-bottom: 12px;
  transition: color var(--transition-base);
}

.service-card-desc {
  font-size: 0.875rem;
  color: var(--color-grey-500);
  line-height: 1.8;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: gap var(--transition-base);
}

.service-card:hover .service-card-link {
  gap: 10px;
}

/* --- About Section --- */
.about-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--color-grey-500);
  line-height: 2;
  margin-bottom: 32px;
}

.about-visual {
  flex: 1;
  position: relative;
}

.about-visual-inner {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-grey-100) 0%, var(--color-silver) 100%);
  overflow: hidden;
  position: relative;
}

/* --- CTA Band --- */
.cta-band {
  background: linear-gradient(180deg, #0c1222 0%, var(--color-black) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background:
    radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(249, 112, 102, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: meshShift 10s ease-in-out infinite alternate;
}

.cta-band-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

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

/* ============================================
   SERVICE PAGE
   ============================================ */
.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-grey-100);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.service-detail-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-grey-100);
  line-height: 1;
  flex-shrink: 0;
}

.service-detail-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-detail-en {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.service-detail-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-grey-900);
}

.service-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.service-detail-desc {
  font-size: 0.925rem;
  color: var(--color-grey-500);
  line-height: 2;
}

.service-detail-list h3,
.service-detail-list h4,
.service-detail-pain h3,
.service-detail-pain h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey-700);
  margin-bottom: 16px;
  padding: 10px 12px;
  border-bottom: none;
  border-left: 2px solid var(--color-accent);
  background: linear-gradient(90deg, var(--color-accent-glow) 0%, transparent 100%);
  display: flex;
  align-items: center;
}

.service-detail-pain {
  margin-top: 40px;
}

.service-detail-list li,
.service-detail-pain li {
  font-size: 0.875rem;
  color: var(--color-grey-500);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.service-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.service-detail-pain li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-grey-300);
}

/* ============================================
   COMPANY PAGE
   ============================================ */
.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.company-table-row {
  display: flex;
  border-bottom: 1px solid var(--color-grey-100);
  padding: 20px 0;
}

.company-table-label {
  width: 160px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-grey-900);
}

.company-table-value {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-grey-500);
  line-height: 1.8;
}

/* Map */
.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-grey-100);
}

.map-container iframe {
  width: 100%;
  height: 360px;
  border: none;
  display: block;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-grey-900);
  margin-bottom: 8px;
}

.form-group label .required {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-accent);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-group label .optional {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-grey-500);
  background: var(--color-grey-100);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.925rem;
  border: 1px solid var(--color-grey-200);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-grey-900);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

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

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--color-grey-500);
  line-height: 1.8;
}

.form-privacy-note a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-submit {
  padding-top: 8px;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 0.95rem;
}

/* Contact sidebar */
.contact-sidebar {
  padding-top: 8px;
}

.contact-info-card {
  background: var(--color-snow);
  border-radius: 16px;
  padding: 32px;
}

.contact-info-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-grey-900);
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item p {
  font-size: 0.85rem;
  color: var(--color-grey-500);
  line-height: 1.7;
}

.contact-info-item a {
  color: var(--color-accent);
  font-weight: 500;
}

/* Form messages */
.form-message {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-message.show {
  display: block;
}

.form-message-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-message-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.form-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-grey-900);
  margin-bottom: 8px;
}

.form-message p {
  font-size: 0.9rem;
  color: var(--color-grey-500);
}

/* ============================================
   PRIVACY POLICY
   ============================================ */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2,
.policy-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-grey-900);
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--color-accent);
}

.policy-content p {
  font-size: 0.9rem;
  color: var(--color-grey-500);
  line-height: 2;
  margin-bottom: 16px;
}

.policy-content ul {
  margin-bottom: 16px;
}

.policy-content li {
  font-size: 0.9rem;
  color: var(--color-grey-500);
  line-height: 2;
  padding-left: 16px;
  position: relative;
}

.policy-content li::before {
  content: '\30FB';
  position: absolute;
  left: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-grey-900);
  padding: 64px 0 32px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 35%, rgba(249, 112, 102, 0.3) 65%, transparent 100%) 1;
}

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

.footer-brand .logo-text {
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-nav a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-base);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

  .about-content {
    flex-direction: column;
    gap: 40px;
  }

  .service-detail-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --section-padding: 64px;
  }

  .about-visual {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-catch {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .page-hero {
    padding: 120px 0 56px;
  }

  .company-table-row {
    flex-direction: column;
    gap: 4px;
  }

  .company-table-label {
    width: auto;
    font-size: 0.8rem;
    color: var(--color-accent);
  }

  .service-detail-header {
    flex-direction: column;
    gap: 8px;
  }

  .service-detail-num {
    font-size: 2rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  .cta-band {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .hero-sub br,
  .section-lead br {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-info-card {
    padding: 24px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-canvas, .page-hero-canvas {
    display: none;
  }
  .fade-in, .fade-in-left, .fade-in-right {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-80 { margin-top: 80px; }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-grey-300); font-size: 0.85rem; }
