/* ========================================
   京匠庵 - Kyosho-an Renovation
   Japanese Modern Design System
   ======================================== */

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

:root {
  --ink: #1A1A1A;
  --cream: #FAFAF5;
  --gold: #B8956A;
  --gold-light: #D4B896;
  --gold-dark: #96754A;
  --gray-100: #F5F4F0;
  --gray-200: #E8E6E0;
  --gray-300: #D0CEC6;
  --gray-500: #8A8880;
  --gray-700: #4A4A46;
  --white: #FFFFFF;
  --font-mincho: 'Shippori Mincho', 'Yu Mincho', serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.6s var(--ease);
}

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.section {
  padding: 120px 0;
}

/* --- Sample Banner --- */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}

.sample-banner a {
  color: var(--gold);
  text-decoration: underline;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, top 0.4s;
}

.header.scrolled {
  top: 32px;
  background: rgba(250, 250, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink);
}

.header:not(.scrolled) .logo-text {
  color: var(--cream);
}

.header:not(.scrolled) .logo-icon circle,
.header:not(.scrolled) .logo-icon path,
.header:not(.scrolled) .logo-icon line {
  stroke: var(--cream);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gray-700);
  transition: color 0.3s;
  position: relative;
}

.header:not(.scrolled) .nav-desktop a {
  color: rgba(250,250,245,0.85);
}

.nav-desktop a:hover {
  color: var(--gold);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

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

.nav-cta {
  padding: 8px 24px !important;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 12px !important;
  letter-spacing: 0.1em;
  transition: all 0.3s !important;
}

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

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

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease);
}

.header:not(.scrolled) .hamburger span {
  background: var(--cream);
}

.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span { background: var(--ink); }
.hamburger.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

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

.nav-mobile-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-mobile-link {
  font-family: var(--font-mincho);
  font-size: 22px;
  letter-spacing: 0.15em;
  color: var(--ink);
  transition: color 0.3s;
}

.nav-mobile-link:hover {
  color: var(--gold);
}

.nav-mobile-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 48px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.nav-mobile-cta:hover {
  background: var(--gold);
  color: var(--white);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg img.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,26,0.45) 0%,
    rgba(26,26,26,0.3) 50%,
    rgba(26,26,26,0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 0 24px;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.25em;
  margin-bottom: 24px;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-mincho);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 15px;
  line-height: 2;
  opacity: 0.85;
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

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

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--gold);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,149,106,0.3);
}

.btn-outline {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid rgba(250,250,245,0.6);
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: all 0.3s var(--ease);
}

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

.btn-full {
  width: 100%;
  text-align: center;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--cream);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* --- Numbers --- */
.numbers {
  padding: 80px 0;
  background: var(--ink);
  color: var(--cream);
}

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

.number-value {
  font-family: var(--font-mincho);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.number-unit {
  font-family: var(--font-mincho);
  font-size: 18px;
  color: var(--gold-light);
  margin-left: 4px;
}

.number-label {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* --- Section Common --- */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-mincho);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.section-desc {
  text-align: center;
  font-size: 15px;
  line-height: 2;
  color: var(--gray-700);
  max-width: 600px;
  margin: 0 auto 60px;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.about-visual {
  position: relative;
}

.about-icon-wrap {
  position: absolute;
  top: -30px;
  left: -30px;
  z-index: 2;
  background: var(--cream);
  padding: 10px;
  opacity: 0.7;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.85);
}

.about-subtitle {
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}

.about-text p {
  font-size: 15px;
  line-height: 2;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-quote {
  margin-top: 28px;
  padding: 24px 28px;
  border-left: 2px solid var(--gold);
  background: var(--gray-100);
}

.about-quote p {
  font-family: var(--font-mincho);
  font-size: 15px;
  font-style: normal;
  line-height: 2;
  color: var(--ink) !important;
  margin-bottom: 8px !important;
}

.about-quote cite {
  font-size: 12px;
  color: var(--gray-500);
  font-style: normal;
  letter-spacing: 0.08em;
}

/* --- Before/After --- */
.before-after {
  background: var(--gray-100);
}

.ba-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.ba-card {
  background: var(--white);
  overflow: hidden;
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ba-before, .ba-after {
  position: relative;
  overflow: hidden;
}

.ba-before img, .ba-after img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ba-card:hover .ba-before img,
.ba-card:hover .ba-after img {
  transform: scale(1.03);
}

.ba-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(26,26,26,0.6);
  backdrop-filter: blur(4px);
}

.ba-info {
  padding: 36px 40px;
}

.ba-info h3 {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.ba-info p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 16px;
}

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

.ba-tags span {
  padding: 4px 14px;
  font-size: 11px;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

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

.service-card {
  padding: 48px 40px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 12px 40px rgba(184,149,106,0.08);
  transform: translateY(-4px);
}

.service-icon {
  margin-bottom: 24px;
}

.service-name {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.service-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.service-list li {
  font-size: 13px;
  color: var(--gray-500);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* --- Works --- */
.works {
  background: var(--gray-100);
}

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

.work-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.work-image {
  position: relative;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(26,26,26,0.6));
}

.work-cat {
  font-size: 11px;
  color: var(--cream);
  letter-spacing: 0.1em;
}

.work-info {
  padding: 24px;
}

.work-info h3 {
  font-family: var(--font-mincho);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.work-info p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 14px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500);
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background: var(--gold);
  color: var(--white);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-title {
  font-family: var(--font-mincho);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.cta-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.9;
}

.cta-actions {
  flex-shrink: 0;
  text-align: center;
}

.cta-actions .btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.cta-actions .btn-primary:hover {
  background: var(--gray-700);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-note {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 10px;
}

.sp-only { display: none; }

/* --- Commitment --- */
.commitment {
  background: var(--white);
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.commitment-item {
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: border-color 0.3s;
}

.commitment-item:hover {
  border-color: var(--gold-light);
}

.commitment-num {
  font-family: var(--font-mincho);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 16px;
}

.commitment-item h3 {
  font-family: var(--font-mincho);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.commitment-item p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-700);
}

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

.flow-step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.flow-number {
  font-family: var(--font-mincho);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 20px;
}

.flow-step h3 {
  font-family: var(--font-mincho);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.flow-step p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray-700);
}

/* --- Voices --- */
.voices {
  background: var(--ink);
  color: var(--cream);
}

.voices .section-label { color: var(--gold-light); }
.voices .section-title { color: var(--cream); }

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.voice-card {
  padding: 40px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s;
}

.voice-card:hover {
  border-color: rgba(184,149,106,0.3);
}

.voice-quote {
  font-family: var(--font-mincho);
  font-size: 48px;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 8px;
}

.voice-text {
  font-size: 14px;
  line-height: 2;
  opacity: 0.85;
  margin-bottom: 24px;
}

.voice-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.voice-initial {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mincho);
  font-size: 16px;
  color: var(--gold);
}

.voice-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.voice-detail {
  font-size: 12px;
  opacity: 0.5;
}

/* --- Company --- */
.company-table {
  max-width: 800px;
  margin: 40px auto 0;
}

.company-table table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.company-table td {
  color: var(--ink);
  line-height: 1.7;
}

.company-access {
  max-width: 800px;
  margin: 40px auto 0;
}

.map-placeholder {
  width: 100%;
  height: 200px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.map-placeholder p {
  font-family: var(--font-mincho);
  font-size: 16px;
  color: var(--gray-500);
}

.map-placeholder span {
  font-size: 12px;
  color: var(--gray-300);
}

/* --- Contact --- */
.contact {
  background: var(--gray-100);
}

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

.contact-box {
  padding: 32px;
  background: var(--white);
  margin-bottom: 20px;
}

.contact-box h3 {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.contact-phone {
  font-family: var(--font-mincho);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}

.contact-box p {
  font-size: 13px;
  color: var(--gray-500);
}

.contact-form {
  background: var(--white);
  padding: 48px;
}

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

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.required {
  font-size: 10px;
  color: var(--gold);
  margin-left: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: 1px solid var(--gray-200);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8880' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
  color: var(--cream);
}

.footer-brand .logo-icon circle,
.footer-brand .logo-icon path {
  stroke: var(--gold);
}

.footer-tagline {
  font-family: var(--font-mincho);
  font-size: 13px;
  opacity: 0.5;
  margin-top: 12px;
  letter-spacing: 0.12em;
}

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

.footer-links a {
  font-size: 13px;
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
  letter-spacing: 0.04em;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  opacity: 0.4;
}

.footer-bottom a {
  transition: opacity 0.3s;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

/* --- Animations --- */
.animate-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.animate-fade.visible,
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }

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

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

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

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

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

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

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

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

  .ba-images {
    grid-template-columns: 1fr;
  }

  .ba-info {
    padding: 24px;
  }

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

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow-step {
    text-align: left;
    padding: 24px 0;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0 16px;
  }

  .flow-number {
    grid-row: 1 / 3;
    font-size: 32px;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
  }

  .contact-form {
    padding: 28px;
  }

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

  .company-table th {
    display: block;
    padding-bottom: 4px;
    border-bottom: none;
  }

  .company-table td {
    display: block;
    padding-top: 0;
  }

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

  .sp-hide { display: none; }
  .sp-only { display: inline; }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .btn-primary, .btn-outline {
    padding: 14px 32px;
    font-size: 13px;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .header-inner {
    padding: 14px 20px;
  }
}
