/* ============================================================
   合同会社舞台裏 — Corporate HP Styles
   Design: Monochrome / Mincho / Clean Corporate
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors — Monochrome palette */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-bg-dark: #1a1a1a;
  --color-bg-hero: #0d0d0d;
  --color-bg-card: #ffffff;
  --color-surface: #f2f2f2;
  --color-border: #e0e0e0;
  --color-border-hover: #bbb;

  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-text-dim: #bcbcbc;

  --color-black: #0d0d0d;
  --color-white: #ffffff;
  --color-accent: #333333;

  --color-success: #2d8a56;
  --color-error: #c0392b;

  /* Typography — Mincho (Serif) */
  --font-mincho: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'ヒラギノ明朝 Pro', 'Hiragino Mincho Pro', 'MS P明朝', serif;
  --font-gothic: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading-en: 'Cormorant Garamond', 'Times New Roman', serif;

  --fs-xs: 0.7rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-5xl: 4rem;
  --fs-hero: 5rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 10rem;

  /* Layout */
  --container-max: 1100px;
  --container-narrow: 800px;
  --container-padding: 2rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.6s ease;
  --transition-spring: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-mincho);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:hover {
  opacity: 0.7;
}

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

ul {
  list-style: none;
}

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

/* ---- Utility ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---- Section Common ---- */
.section {
  padding: var(--space-6xl) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section__label {
  display: block;
  font-family: var(--font-heading-en);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-regular);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.section__title {
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
  font-weight: var(--fw-regular);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.1em;
}

.section__subtitle {
  font-family: var(--font-mincho);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 2;
}

/* Section divider */
.section__header::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-black);
  margin: var(--space-xl) auto 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

/* When on hero (dark bg), invert nav text */
.header--on-hero .header__logo-main,
.header--on-hero .header__logo-sub,
.header--on-hero .header__nav-link {
  color: var(--color-white);
}

.header--on-hero .header__hamburger span {
  background: var(--color-white);
}

.header--scrolled .header__logo-main,
.header--scrolled .header__logo-sub,
.header--scrolled .header__nav-link {
  color: var(--color-text);
}

.header--scrolled .header__hamburger span {
  background: var(--color-text);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 0;
}

.header__logo-main {
  font-family: var(--font-mincho);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  letter-spacing: 0.15em;
  transition: color var(--transition-base);
}

.header__logo-sub {
  font-family: var(--font-heading-en);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: color var(--transition-base);
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.header__nav-link {
  font-family: var(--font-heading-en);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition-base);
}

.header__nav-link:hover {
  opacity: 1;
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-link--cta {
  border: 1px solid currentColor;
  padding: var(--space-xs) var(--space-lg);
}

.header__nav-link--cta::after {
  display: none;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-white);
  transition: all var(--transition-base);
  transform-origin: center;
}

.header__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.header__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.mobile-nav__list {
  text-align: center;
}

.mobile-nav__link {
  display: block;
  font-family: var(--font-heading-en);
  font-size: var(--fs-xl);
  font-weight: var(--fw-regular);
  color: var(--color-black);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: var(--space-lg);
  transition: opacity var(--transition-fast);
}

.mobile-nav__link:hover {
  opacity: 0.5;
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.5);
  transition: transform 10s ease;
}

/* Fallback gradient when no hero image */
.hero__bg:not([style]) {
  background-image: none;
  background:
    linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #1a1a2e 100%);
  filter: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero__content {
  position: relative;
  text-align: center;
  padding: var(--space-5xl) var(--container-padding);
  max-width: 900px;
}

.hero__tagline {
  font-family: var(--font-mincho);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--color-white);
  letter-spacing: 0.4em;
  margin-bottom: var(--space-3xl);
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero__title {
  font-family: var(--font-heading-en);
  font-size: var(--fs-hero);
  font-weight: var(--fw-regular);
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.04em;
}

.hero__title-line {
  display: block;
  font-family: var(--font-mincho);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

#heroLine1 { animation-delay: 0.5s; }
#heroLine2 { animation-delay: 0.7s; }
#heroLine3 { animation-delay: 0.9s; }

.hero__title-line--accent {
  font-size: 1.1em;
}

.hero__subtitle {
  font-family: var(--font-heading-en);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--fw-light);
  letter-spacing: 0.2em;
  font-style: italic;
  opacity: 0;
  animation: fadeInUp 1s ease 1.2s forwards;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-3xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  opacity: 0;
  animation: fadeInUp 1s ease 1.6s forwards;
}

.hero__scroll-text {
  font-family: var(--font-heading-en);
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  animation: bounceDown 2.5s ease-in-out infinite;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-4xl);
  align-items: start;
  margin-bottom: var(--space-5xl);
}

.about__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition-slow);
}

.about__image-wrapper:hover img {
  filter: grayscale(30%);
}

.about__image-border {
  position: absolute;
  inset: -1px;
  border: none;
  pointer-events: none;
}

.about__name {
  font-family: var(--font-mincho);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  color: var(--color-black);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.15em;
}

.about__name-en {
  display: block;
  font-family: var(--font-heading-en);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.about__role {
  font-family: var(--font-mincho);
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.1em;
}

.about__bio p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
  line-height: 2.2;
  font-size: var(--fs-sm);
}

/* Ecosystem */
.ecosystem {
  text-align: center;
  padding: var(--space-4xl) var(--space-2xl);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.ecosystem__title {
  font-family: var(--font-mincho);
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  color: var(--color-black);
  margin-bottom: var(--space-3xl);
  letter-spacing: 0.15em;
}

.ecosystem__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.ecosystem__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.ecosystem__icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  filter: grayscale(100%);
}

.ecosystem__step-label {
  font-family: var(--font-mincho);
  font-size: var(--fs-sm);
  color: var(--color-black);
  font-weight: var(--fw-medium);
  letter-spacing: 0.15em;
}

.ecosystem__step-name {
  font-family: var(--font-heading-en);
  font-size: var(--fs-md);
  color: var(--color-text-light);
  font-weight: var(--fw-regular);
  letter-spacing: 0.1em;
}

.ecosystem__arrow {
  color: var(--color-text-dim);
}

.ecosystem__tagline {
  font-family: var(--font-mincho);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--color-bg-alt);
}

.services__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  transition: all var(--transition-spring);
  border: 1px solid var(--color-border);
}

.service-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* 偶数カードは画像を右側に */
.service-card:nth-child(even) {
  direction: rtl;
}
.service-card:nth-child(even) > * {
  direction: ltr;
}

.service-card__spotlight {
  display: none;
}

.service-card__image {
  position: relative;
  overflow: hidden;
}

.service-card__image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.6) grayscale(60%);
}

.service-card__image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(60%);
  transition: all var(--transition-slow);
}

.service-card:hover .service-card__image::before {
  filter: blur(18px) brightness(0.7) grayscale(0%);
}

.service-card:hover .service-card__image img {
  filter: grayscale(0%);
}

.service-card__content {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-white);
}

.service-card__number {
  font-family: var(--font-heading-en);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.service-card__title {
  font-family: var(--font-heading-en);
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  color: var(--color-black);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.service-card__tagline {
  font-family: var(--font-mincho);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  letter-spacing: 0.08em;
}

.service-card__body {
  flex: 1;
}

.service-card__body p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.service-card__features {
  list-style: none;
  margin-bottom: var(--space-md);
}

.service-card__features li {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  padding: 3px 0;
  padding-left: var(--space-lg);
  position: relative;
  line-height: 1.6;
}

.service-card__features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-text-dim);
}

.service-card__actions {
  margin-top: var(--space-md);
}

/* ============================================================
   WORKS
   ============================================================ */
.works {
  background: var(--color-bg);
}

.works__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  transition: all var(--transition-spring);
  border: 1px solid var(--color-border);
}

.work-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.work-card:nth-child(even) {
  direction: rtl;
}

.work-card:nth-child(even) > * {
  direction: ltr;
}

.work-card__image {
  position: relative;
  min-height: 320px;
  background: var(--color-surface);
  overflow: hidden;
}

.work-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading-en);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, var(--color-surface) 0%, #e8e8e8 100%);
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
  transition: all var(--transition-slow);
}

.work-card:hover .work-card__image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.work-card__content {
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-white);
}

.work-card__title {
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-black);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.08em;
}

.work-card__description {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 2.2;
  margin-bottom: var(--space-xl);
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  font-family: var(--font-gothic);
  font-size: 0.6875rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-light);
  background: var(--color-surface);
  padding: 4px 14px;
  border: 1px solid var(--color-border);
}

.work-card__actions {
  margin-top: var(--space-xl);
}

/* ============================================================
   RESULTS
   ============================================================ */
.results {
  background: var(--color-bg-alt);
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
}

.result-card {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-white);
  border-right: 1px solid var(--color-border);
  transition: all var(--transition-spring);
}

.result-card:last-child {
  border-right: none;
}

.result-card:hover {
  background: var(--color-bg-alt);
}

.result-card__number {
  font-family: var(--font-heading-en);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-light);
  color: var(--color-black);
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.result-card__label {
  font-family: var(--font-mincho);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  letter-spacing: 0.08em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--color-bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-mincho);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.1em;
}

.required {
  color: var(--color-error);
  font-size: var(--fs-xs);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-mincho);
  font-size: var(--fs-sm);
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-black);
}

.form-input::placeholder {
  color: var(--color-text-dim);
}

.form-select {
  cursor: pointer;
  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='%23999' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

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

.contact__success {
  text-align: center;
  color: var(--color-success);
  font-family: var(--font-mincho);
  font-size: var(--fs-sm);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--color-success);
}

.contact__error {
  text-align: center;
  color: var(--color-error);
  font-family: var(--font-mincho);
  font-size: var(--fs-sm);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--color-error);
}

.contact__info-card {
  padding: var(--space-3xl);
  border: 1px solid var(--color-border);
}

.contact__info-card h3 {
  font-family: var(--font-mincho);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--color-black);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.15em;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

.contact__info-item svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
  margin-top: 2px;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading-en);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid var(--color-black);
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-black);
  color: var(--color-white);
  opacity: 1;
}

.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn--primary:hover {
  background: var(--color-text-light);
  border-color: var(--color-text-light);
  color: var(--color-white);
}

.btn--full {
  width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-4xl) 0 var(--space-2xl);
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
}

.footer__logo {
  font-family: var(--font-mincho);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  letter-spacing: 0.15em;
}

.footer__tagline {
  font-family: var(--font-heading-en);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
  font-style: italic;
  margin-top: 6px;
}

.footer__nav {
  display: flex;
  gap: var(--space-2xl);
}

.footer__nav a {
  font-family: var(--font-heading-en);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.footer__nav a:hover {
  color: var(--color-white);
  opacity: 1;
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  font-family: var(--font-heading-en);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* Scroll-triggered animations */
.fade-in,
.fade-in-left,
.fade-in-right {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in {
  transform: translateY(30px);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .results__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-card:nth-child(2) {
    border-right: none;
  }

  .result-card:nth-child(3),
  .result-card:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }

  .result-card:nth-child(4) {
    border-right: none;
  }

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

  .service-card:nth-child(even) {
    direction: ltr;
  }

  .service-card__content {
    padding: var(--space-2xl);
  }

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

  .work-card:nth-child(even) {
    direction: ltr;
  }

  .work-card__image {
    min-height: 250px;
  }

  .about__grid {
    grid-template-columns: 280px 1fr;
    gap: var(--space-3xl);
  }
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 2.5rem;
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
    --container-padding: 1.25rem;
  }

  .section {
    padding: var(--space-5xl) 0;
  }

  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about__image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .ecosystem__flow {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .ecosystem__arrow {
    transform: rotate(90deg);
  }

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

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

  .footer__inner {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

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

@media (max-width: 480px) {
  :root {
    --fs-hero: 2rem;
    --container-padding: 1rem;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .section__label {
    font-size: var(--fs-2xl);
  }
}
