/*
Theme Name: Comhuman-Quality
Theme URI: https://comhuman-quality.com/
Author: Comhuman-Quality Inc.
Author URI: https://comhuman-quality.com/
Description: Warm IT corporate theme for Comhuman-Quality. Comfort × Humanity × Quality.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comhuman-quality
*/

/* ========================================
   Comhuman-Quality — Warm IT Theme
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  /* Warm palette */
  --cream: #fdfaf3;
  --warm-bg: #f7ede0;
  --warm-beige: #efe1c9;
  --accent: #d97757;          /* terracotta */
  --accent-dark: #b85a3c;
  --accent-light: #e89473;
  --amber: #e89c5b;
  --honey: #f0b87a;
  --warm-black: #2a211b;
  --warm-dark: #3d2f25;
  --warm-gray: #6b5d52;
  --warm-light: #9a8b7e;
  --border: #ead9be;
  --border-light: #f2e6d2;
  --white: #ffffff;
  --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--warm-dark);
  line-height: 1.8;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(184, 90, 60, 0.08);
}

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

.header-logo img {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 26px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--warm-dark);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--warm-dark);
  transition: 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 600px;
  margin-top: 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(240, 184, 122, 0.45) 0%, rgba(240, 184, 122, 0) 50%),
    radial-gradient(circle at 15% 85%, rgba(217, 119, 87, 0.28) 0%, rgba(217, 119, 87, 0) 55%),
    linear-gradient(135deg, #fdf6e9 0%, #fae3ca 60%, #f5d4ad 100%);
  display: flex;
  align-items: flex-end;
  padding: 80px 20px 64px;
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: top left;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(253, 246, 233, 0.22) 0%, rgba(245, 212, 173, 0.18) 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 380px;
  height: 380px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(232, 156, 91, 0.32), rgba(232, 156, 91, 0));
  animation: float-slow 14s ease-in-out infinite;
}

.hero::after {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.22), rgba(217, 119, 87, 0));
  animation: float-slow 16s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-deco span {
  position: absolute;
  border-radius: 50%;
  background: rgba(217, 119, 87, 0.15);
  animation: bubble-rise 12s linear infinite;
}

.hero-deco span:nth-child(1) { width: 12px; height: 12px; left: 12%; bottom: -20px; animation-delay: 0s; animation-duration: 14s; }
.hero-deco span:nth-child(2) { width: 18px; height: 18px; left: 28%; bottom: -20px; animation-delay: 3s; animation-duration: 16s; background: rgba(240, 184, 122, 0.22); }
.hero-deco span:nth-child(3) { width: 8px; height: 8px; left: 45%; bottom: -20px; animation-delay: 6s; animation-duration: 11s; }
.hero-deco span:nth-child(4) { width: 14px; height: 14px; left: 65%; bottom: -20px; animation-delay: 1s; animation-duration: 13s; background: rgba(232, 156, 91, 0.2); }
.hero-deco span:nth-child(5) { width: 10px; height: 10px; left: 82%; bottom: -20px; animation-delay: 5s; animation-duration: 15s; }
.hero-deco span:nth-child(6) { width: 16px; height: 16px; left: 92%; bottom: -20px; animation-delay: 8s; animation-duration: 17s; background: rgba(240, 184, 122, 0.18); }

@keyframes bubble-rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-700px) translateX(40px);
    opacity: 0;
  }
}

.hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  color: var(--warm-black);
}

.hero-tagline {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  color: var(--accent-dark);
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(217, 119, 87, 0.25);
  border-radius: 100px;
  font-weight: 500;
}

.hero-title {
  font-family: 'Zen Old Mincho', 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
  color: var(--warm-black);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 20px rgba(255, 255, 255, 0.7),
    0 2px 4px rgba(255, 255, 255, 0.9);
}

.hero-title .accent {
  display: inline-block;
  font-style: italic;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.02em;
  padding-right: 0.08em;
}

.hero-text {
  font-size: 15px;
  line-height: 2;
  color: var(--warm-dark);
  margin-bottom: 36px;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.7),
    0 1px 3px rgba(255, 255, 255, 0.9);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 100px;
  box-shadow: 0 6px 18px rgba(217, 119, 87, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-btn::after {
  content: '→';
  transition: transform 0.2s;
}

.hero-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 90, 60, 0.32);
}

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

/* --- Sections --- */
.section {
  padding: 90px 0;
}

.section--gray {
  background: var(--warm-bg);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  color: var(--warm-black);
}

.section-sub {
  text-align: center;
  color: var(--warm-gray);
  font-size: 14px;
  margin-bottom: 56px;
  line-height: 1.9;
}

/* --- About --- */
.about-body {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.about-lead {
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  margin-bottom: 16px;
  color: var(--warm-black);
}

.about-body p:last-child {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 2;
}

.about-body--split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  max-width: 1000px;
  align-items: center;
  text-align: left;
  margin-bottom: 64px;
}

.about-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(184, 90, 60, 0.28);
}

.about-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 230, 199, 0) 55%, rgba(217, 119, 87, 0.18) 100%);
  pointer-events: none;
}

.about-visual:hover img {
  transform: scale(1.04);
}

.about-visual-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 100px;
  border: 1px solid rgba(217, 119, 87, 0.25);
  box-shadow: 0 6px 18px rgba(184, 90, 60, 0.15);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--warm-black);
}

.about-visual-badge span:nth-child(2) {
  color: var(--accent);
  font-weight: 700;
}

.about-text .about-lead {
  text-align: left;
  font-size: 17px;
  margin-bottom: 20px;
}

.about-text p:last-child {
  text-align: left;
  font-size: 14px;
}

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

.value {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.value::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--honey));
  opacity: 0;
  transition: opacity 0.3s;
}

.value:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(184, 90, 60, 0.1);
}

.value:hover::before {
  opacity: 1;
}

.value-num {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--honey));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
  margin-bottom: 12px;
  font-family: Georgia, serif;
  font-style: italic;
}

.value h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--warm-black);
  letter-spacing: 0.02em;
}

.value p {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.9;
}

/* --- Philosophy --- */
.philosophy-lead-block {
  max-width: 780px;
  margin: 0 auto 56px;
  padding: 56px 48px;
  background: linear-gradient(135deg, #fff8ec 0%, #fde6cd 100%);
  border-radius: 22px;
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.philosophy-lead-block::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 140px;
  color: var(--accent);
  opacity: 0.18;
  line-height: 1;
  font-style: italic;
}

.philosophy-quote {
  font-family: 'Zen Old Mincho', 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--warm-black);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.philosophy-quote .philosophy-accent {
  display: inline-block;
  font-style: italic;
  color: var(--accent);
  font-weight: 900;
}

.philosophy-tagline {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

.philosophy-body {
  max-width: 760px;
  margin: 0 auto;
}

.philosophy-body p {
  font-size: 14.5px;
  color: var(--warm-dark);
  line-height: 2.15;
  margin-bottom: 22px;
}

.philosophy-body p:last-child {
  margin-bottom: 0;
}

.philosophy-body strong {
  color: var(--accent-dark);
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(232, 156, 91, 0.28) 65%);
}

.sp-only { display: none; }

/* --- Message --- */
.message-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 860px;
  margin: 0 auto;
  align-items: start;
}

.message-wrap--noimage {
  grid-template-columns: 1fr;
  max-width: 760px;
  background: var(--white);
  padding: 48px 56px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(184, 90, 60, 0.06);
}

.message-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.message-text p {
  font-size: 14px;
  color: var(--warm-dark);
  line-height: 2.1;
  margin-bottom: 16px;
}

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

.message-sign {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--warm-black);
  line-height: 1.8;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px 30px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(184, 90, 60, 0.1);
}

.service-card-num {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--amber));
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--warm-black);
  letter-spacing: 0.02em;
}

.service-card-sub {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}

.service-card > p {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.95;
  margin-bottom: 22px;
}

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

.service-tags li {
  font-size: 11px;
  padding: 5px 12px;
  background: var(--warm-bg);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--warm-gray);
}

/* Partners */
.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
  padding-top: 56px;
  border-top: 1px dashed var(--border);
}

.partners-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--warm-black);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.partners-list li {
  font-size: 14px;
  color: var(--warm-gray);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.partners-list li:last-child {
  border-bottom: none;
}

.partners-list a {
  color: var(--warm-dark);
  transition: color 0.2s;
}

.partners-list a:hover {
  color: var(--accent);
}

/* --- Service Badge --- */
.service-badge {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 18px;
  background: linear-gradient(135deg, #fff5e9, #fdebd6);
  border: 1px solid var(--honey);
  border-radius: 12px;
}

.badge-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  margin-top: 2px;
  box-shadow: 0 4px 10px rgba(217, 119, 87, 0.3);
}

.badge-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--warm-black);
  margin-bottom: 4px;
}

.badge-text {
  font-size: 12px;
  color: var(--warm-gray);
  line-height: 1.85;
}

/* --- Service Featured Card --- */
.service-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--white) 0%, #fff8ec 100%);
  border: 1px solid var(--honey);
}

.service-clients {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.service-clients-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.service-clients-names {
  font-size: 12px;
  color: var(--warm-gray);
  line-height: 1.9;
}

/* --- Works / Portfolio --- */
.strength {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  padding: 48px;
  background: linear-gradient(135deg, #fff8ec 0%, #fdecd6 100%);
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.strength-text h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--warm-black);
}

.strength-text p {
  font-size: 14px;
  color: var(--warm-dark);
  line-height: 2;
  margin-bottom: 22px;
}

.strength-tools {
  display: flex;
  gap: 8px;
}

.strength-tools span {
  font-size: 12px;
  padding: 5px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--warm-gray);
}

.strength-credits h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--warm-black);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  letter-spacing: 0.04em;
}

.strength-credits h4:nth-of-type(2) {
  margin-top: 24px;
}

.strength-credits ul {
  margin-bottom: 8px;
}

.strength-credits li {
  font-size: 13px;
  color: var(--warm-gray);
  padding: 5px 0;
  padding-left: 14px;
  position: relative;
}

.strength-credits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.works-heading {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 36px;
  color: var(--warm-black);
  letter-spacing: 0.04em;
}

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

.works-item {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}

.works-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(184, 90, 60, 0.1);
}

.works-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #1a1a1a;
}

.works-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.works-info {
  padding: 18px;
}

.works-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--warm-black);
  margin-bottom: 6px;
  line-height: 1.6;
}

.works-role {
  font-size: 11px;
  color: var(--warm-light);
  line-height: 1.75;
}

/* --- Company --- */
.company-hero {
  margin-bottom: 48px;
  border-radius: 16px;
  overflow: hidden;
  max-height: 300px;
}

.company-hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.company-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 48px;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(184, 90, 60, 0.06);
}

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

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

.company-table th {
  width: 140px;
  font-weight: 600;
  color: var(--warm-black);
  background: var(--warm-bg);
}

.company-table td {
  color: var(--warm-dark);
}

.map {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(184, 90, 60, 0.06);
}

/* --- Contact --- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  max-width: 840px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(184, 90, 60, 0.06);
}

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

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--warm-dark);
  margin-bottom: 8px;
}

.form-row label span {
  color: var(--accent);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--warm-dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.12);
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23b85a3c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

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

.submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.28);
}

.submit-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(184, 90, 60, 0.32);
}

/* --- Contact Form 7 overrides --- */
.contact-form .wpcf7 { margin: 0; }

.contact-form .wpcf7-form p {
  margin: 0 0 20px;
}

.contact-form .wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--warm-dark);
  margin-bottom: 8px;
}

.contact-form .wpcf7-form .required,
.contact-form .wpcf7-form .req {
  color: var(--accent);
  margin-left: 4px;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form input[type="url"],
.contact-form .wpcf7-form input[type="number"],
.contact-form .wpcf7-form select,
.contact-form .wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--warm-dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form select:focus,
.contact-form .wpcf7-form textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.12);
}

.contact-form .wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23b85a3c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  padding-right: 36px;
}

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

.contact-form .wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.28);
  -webkit-appearance: none;
  appearance: none;
}

.contact-form .wpcf7-form input[type="submit"]:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(184, 90, 60, 0.32);
}

.contact-form .wpcf7-form input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form .wpcf7-spinner {
  vertical-align: middle;
  margin-left: 10px;
}

.contact-form .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  border-width: 1px !important;
}

.contact-form .wpcf7 form.sent .wpcf7-response-output {
  background: #f1f8e9;
  border-color: #8bc34a !important;
  color: #4a7a23 !important;
}

.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.failed .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form .wpcf7 form.payment-required .wpcf7-response-output {
  background: #fceaea;
  border-color: var(--accent) !important;
  color: var(--accent-dark) !important;
}

.contact-form .wpcf7-not-valid-tip {
  color: var(--accent-dark) !important;
  font-size: 12px !important;
  margin-top: 6px !important;
  display: block;
}

.contact-form .wpcf7-form input.wpcf7-not-valid,
.contact-form .wpcf7-form select.wpcf7-not-valid,
.contact-form .wpcf7-form textarea.wpcf7-not-valid {
  border-color: var(--accent) !important;
  background: #fdf5f1;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-block {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(184, 90, 60, 0.04);
}

.contact-block h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.contact-block p {
  font-size: 13px;
  color: var(--warm-dark);
  line-height: 1.75;
}

/* --- Footer --- */
.footer {
  background: var(--white);
  color: var(--warm-gray);
  padding: 48px 0 28px;
  border-top: 1px solid var(--border-light);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--border);
}

.footer-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
}

.footer-logo p {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--warm-gray);
}

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

.footer-nav a {
  font-size: 12px;
  color: var(--warm-gray);
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 11px;
  color: var(--warm-light);
}

/* --- Scroll Reveal --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    padding: 14px 20px;
    border-top: 1px solid var(--border-light);
  }

  .menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: 480px;
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: 0;
    line-height: 1.45;
  }

  .hero-title .accent {
    letter-spacing: 0.01em;
  }

  .hero-text br {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .philosophy-lead-block {
    padding: 36px 24px;
    margin-bottom: 40px;
  }

  .philosophy-lead-block::before {
    font-size: 90px;
    top: -6px;
    left: 10px;
  }

  .philosophy-quote {
    font-size: 22px;
    letter-spacing: 0.02em;
  }

  .philosophy-body p {
    font-size: 14px;
  }

  .sp-only { display: inline; }

  .message-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .message-wrap--noimage {
    padding: 32px 24px;
  }

  .message-photo img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
  }

  .message-text {
    text-align: left;
  }

  .about-body--split {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
  }

  .about-visual img {
    height: 280px;
  }

  .about-text .about-lead {
    font-size: 15px;
  }

  .values {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .value {
    padding: 28px 22px;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

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

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

  .contact-form {
    padding: 28px 22px;
  }

  .contact-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-block {
    flex: 1;
    min-width: 160px;
  }

  .company-table th,
  .company-table td {
    padding: 14px 16px;
  }

  .company-table th {
    width: 110px;
  }

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

  .footer-nav {
    gap: 16px;
  }
}
