/* ========================================
   TSUTAWARU CUSTOM STYLES
   theme.json では表現できないスタイル
   ======================================== */

/* ===== Z-INDEX SCALE ===== */
:root {
  --z-base: 0;
  --z-content: 1;
  --z-above: 2;
  --z-mobile-menu: 90;
  --z-nav: 100;
}

/* ===== STICKY FOOTER ===== */
.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wp-site-blocks > .wp-block-template-part:last-child {
  margin-top: auto;
}

/* ===== RESET ADDITIONS ===== */
*, *::before, *::after { min-width: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1148px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--wp--custom--header-height);
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav-brand {
  display: flex;
  align-items: center;
}
.nav-brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--wp--preset--font-family--en);
  font-size: 14px;
  font-weight: 500;
  color: var(--wp--preset--color--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--wp--custom--transition);
}
.nav-links a:hover { color: var(--wp--preset--color--text-heading); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-dark);
  padding: 0 24px;
  height: 40px;
  border-radius: var(--wp--custom--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--wp--custom--transition);
}
.nav-cta:hover {
  background: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--on-dark);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wp--preset--color--text-heading);
  position: absolute;
  left: 11px;
  transition: var(--wp--custom--transition);
}
.nav-hamburger span:nth-child(1) { top: 16px; }
.nav-hamburger span:nth-child(2) { top: 22px; }
.nav-hamburger span:nth-child(3) { top: 28px; }
.nav-hamburger.active span:nth-child(1) { top: 22px; rotate: 45deg; }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { top: 22px; rotate: -45deg; }

/* ===== MOBILE MENU ===== */
.nav-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  background: var(--wp--preset--color--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--wp--custom--ease-reveal), visibility 0.4s;
}
.nav-mobile-menu.open { opacity: 1; visibility: visible; }
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.nav-mobile-links a {
  font-family: var(--wp--preset--font-family--en);
  font-size: 24px;
  font-weight: 600;
  color: var(--wp--preset--color--text-heading);
  letter-spacing: 0.04em;
  padding: 12px 0;
  opacity: 0;
  translate: 0 16px;
  position: relative;
  transition: opacity 0.5s var(--wp--custom--ease-reveal),
              translate 0.5s var(--wp--custom--ease-reveal),
              color 0.3s;
}
.nav-mobile-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 2px;
  background: var(--wp--preset--color--primary);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--wp--custom--ease-reveal);
}
.nav-mobile-links a:hover { color: var(--wp--preset--color--primary); }
.nav-mobile-links a:hover::after { transform: scaleX(1); }
.nav-mobile-menu.open .nav-mobile-links a { opacity: 1; translate: 0 0; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(1) { transition-delay: 80ms; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(2) { transition-delay: 160ms; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(3) { transition-delay: 240ms; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(4) { transition-delay: 320ms; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(5) { transition-delay: 400ms; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(6) { transition-delay: 480ms; }

/* ===== SECTION LABEL ===== */
.section-label {
  font-family: var(--wp--preset--font-family--en);
  font-size: 14px;
  font-weight: 600;
  color: var(--wp--preset--color--text-secondary);
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 8px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-dark);
  padding: 0 32px;
  height: 52px;
  border-radius: var(--wp--custom--radius-pill);
  font-family: var(--wp--preset--font-family--jp);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background var(--wp--custom--transition);
}
.btn-primary:hover { background: var(--wp--preset--color--primary-dark); color: var(--wp--preset--color--on-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--wp--preset--color--text-heading);
  padding: 0 32px;
  height: 52px;
  border-radius: var(--wp--custom--radius-pill);
  border: 1px solid var(--wp--preset--color--text-heading);
  font-family: var(--wp--preset--font-family--jp);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--wp--custom--transition);
}
.btn-outline:hover { background: var(--wp--preset--color--surface); }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wp--preset--color--primary);
  font-size: 15px;
  font-weight: 500;
  transition: opacity var(--wp--custom--transition);
}
.btn-text:hover { opacity: 0.7; }
.btn-text::after { content: "\2192"; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-heading);
  font-feature-settings: "palt" 1;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 16px;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.8s var(--wp--custom--ease-reveal),
              translate 0.8s var(--wp--custom--ease-reveal),
              filter 0.8s var(--wp--custom--ease-reveal);
}
.reveal.active { opacity: 1; translate: 0 0; filter: none; }
.reveal-blur { filter: blur(8px); }
.reveal-d1 { transition-delay: 100ms; }
.reveal-d2 { transition-delay: 200ms; }
.reveal-d3 { transition-delay: 300ms; }
.reveal-d4 { transition-delay: 400ms; }
.reveal-d5 { transition-delay: 500ms; }
.reveal-d6 { transition-delay: 600ms; }

/* ===== HERO ===== */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: var(--z-above);
}
.hero .section-label { margin-bottom: 16px; }
.hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-heading);
  font-feature-settings: "palt" 1;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--wp--preset--color--text-body);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Blob */
.hero-blob {
  position: absolute;
  top: -10%;
  right: -8%;
  z-index: var(--z-content);
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
  background: radial-gradient(ellipse at 30% 40%, #e8792f 0%, #c85f22 40%, #a84d1a 100%);
  opacity: 0;
  filter: blur(2px);
  animation: blobMorph 12s ease-in-out infinite,
             blobFloat 8s ease-in-out infinite,
             blobEnter 1.2s var(--wp--custom--ease-reveal) 0.3s forwards;
}
.hero-blob::after {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  background: radial-gradient(ellipse at 60% 30%, rgba(255, 243, 232, 0.5) 0%, transparent 60%);
  animation: blobMorph 12s ease-in-out infinite reverse;
}

@keyframes blobEnter {
  from { opacity: 0; scale: 0.8; filter: blur(20px); }
  to { opacity: 0.18; scale: 1; filter: blur(2px); }
}
@keyframes blobMorph {
  0% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
  25% { border-radius: 45% 55% 62% 38% / 53% 41% 59% 47%; }
  50% { border-radius: 55% 45% 38% 62% / 42% 58% 42% 58%; }
  75% { border-radius: 38% 62% 55% 45% / 58% 42% 55% 45%; }
  100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
}
@keyframes blobFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: -20px 16px; }
}

/* Watermark */
.hero-watermark {
  position: absolute;
  bottom: 8%;
  left: 50%;
  z-index: var(--z-base);
  translate: -50% 0;
  font-family: var(--wp--preset--font-family--en);
  font-size: 10vw;
  font-weight: 700;
  color: var(--wp--preset--color--text-heading);
  opacity: 0;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  animation: watermarkEnter 1.4s var(--wp--custom--ease-reveal) 0.6s forwards;
}
@keyframes watermarkEnter {
  from { opacity: 0; translate: -50% 20px; filter: blur(8px); }
  to { opacity: 0.03; translate: -50% 0; filter: none; }
}

/* Hero entrance */
.hero-enter {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.9s var(--wp--custom--ease-reveal),
              translate 0.9s var(--wp--custom--ease-reveal),
              filter 0.9s var(--wp--custom--ease-reveal);
}
.hero-enter.active { opacity: 1; translate: 0 0; filter: none; }
.hero-enter-blur { filter: blur(10px); }
.hero-enter-d1 { transition-delay: 200ms; }
.hero-enter-d2 { transition-delay: 400ms; }
.hero-enter-d3 { transition-delay: 600ms; }
.hero-enter-d4 { transition-delay: 800ms; }

/* ===== ABOUT ===== */
.about { padding: 120px 0; }
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-heading);
  font-feature-settings: "palt" 1;
  margin-bottom: 24px;
}
.about-text p {
  font-size: 16px;
  line-height: 2;
  color: var(--wp--preset--color--text-body);
  margin-bottom: 16px;
}

/* ===== SERVICE ===== */
.service { padding: 120px 0; }
.service h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-heading);
  font-feature-settings: "palt" 1;
  margin-bottom: 16px;
}
.service-lead {
  font-size: 16px;
  color: var(--wp--preset--color--text-secondary);
  margin-bottom: 48px;
  max-width: 560px;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: var(--wp--preset--color--background);
  border: 1px solid var(--wp--preset--color--border-light);
  border-radius: var(--wp--custom--radius-card);
  box-shadow: var(--wp--preset--shadow--shadow-1);
  transition: box-shadow var(--wp--custom--transition), translate var(--wp--custom--transition);
  padding: 0;
  overflow: hidden;
}
.service-card:hover { box-shadow: var(--wp--preset--shadow--shadow-2); translate: 0 -4px; }
.service-card-img { aspect-ratio: 2 / 1; overflow: hidden; }
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--wp--custom--transition);
}
.service-card:hover .service-card-img img { scale: 1.03; }
.service-card-body { padding: 24px 32px 32px; }
.service-card-label {
  font-family: var(--wp--preset--font-family--en);
  font-size: 12px;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--text-heading);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1.8;
}
.service-card-divider {
  border: none;
  border-top: 1px solid var(--wp--preset--color--border-light);
  margin: 20px 0;
}
.service-card-category {
  font-family: var(--wp--preset--font-family--jp);
  font-size: 13px;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  letter-spacing: 0.04em;
  margin-top: 16px;
  margin-bottom: 12px;
}
.service-card-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wp--preset--color--text-body);
  line-height: 1.6;
}
.service-card-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--wp--preset--color--primary);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ===== PROCESS ===== */
.process {
  background: var(--wp--preset--color--surface-warm);
  padding: 120px 0;
  overflow: hidden;
}
.process h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-heading);
  font-feature-settings: "palt" 1;
  margin-bottom: 64px;
}
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.process-track {
  position: absolute;
  top: 31px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: rgba(200, 95, 34, 0.12);
  z-index: var(--z-base);
}
.process-track-fill {
  position: absolute;
  top: 31px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--wp--preset--color--primary);
  z-index: var(--z-content);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 2s var(--wp--custom--ease-reveal);
}
.process-timeline.active .process-track-fill { transform: scaleX(1); }
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.process-step-indicator {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wp--preset--color--surface-warm);
  border: 2px solid rgba(200, 95, 34, 0.15);
  position: relative;
  z-index: var(--z-above);
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.6s var(--wp--custom--ease-reveal);
}
.process-step.active .process-step-indicator {
  opacity: 1;
  transform: scale(1);
  border-color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--primary);
  box-shadow: 0 6px 24px rgba(200, 95, 34, 0.3);
}
.process-step-num {
  font-family: var(--wp--preset--font-family--en);
  font-size: 18px;
  font-weight: 600;
  color: rgba(200, 95, 34, 0.3);
  transition: color 0.6s var(--wp--custom--ease-reveal);
}
.process-step.active .process-step-num { color: var(--wp--preset--color--on-dark); }
.process-step-body {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.7s var(--wp--custom--ease-reveal),
              translate 0.7s var(--wp--custom--ease-reveal);
}
.process-step.active .process-step-body { opacity: 1; translate: 0 0; }
.process-step-tag {
  font-family: var(--wp--preset--font-family--en);
  font-size: 11px;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.process-step h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wp--preset--color--text-heading);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1.8;
  max-width: 220px;
  margin: 0 auto;
}

/* ===== NEWS ===== */
.news-section {
  padding: 48px 0;
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.news-header h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-heading);
  font-feature-settings: "palt" 1;
}
.news-list { list-style: none; padding: 0; margin: 0; width: 100%; }
.news-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--wp--preset--color--border-light);
  transition: padding-left var(--wp--custom--transition);
}
.news-item:first-child { border-top: 1px solid var(--wp--preset--color--border-light); }
.news-item:hover { padding-left: 8px; }
.news-date {
  font-family: var(--wp--preset--font-family--en);
  font-size: 13px;
  font-weight: 400;
  color: var(--wp--preset--color--text-muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 96px;
}
.news-title {
  font-size: 15px;
  font-weight: 400;
  color: var(--wp--preset--color--text-body);
  transition: color var(--wp--custom--transition);
}
.news-item:hover .news-title { color: var(--wp--preset--color--primary); }

/* ===== COMPANY ===== */
.company-section {
  padding: 120px 0;
}
.company-section h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--text-heading);
  font-feature-settings: "palt" 1;
  margin-bottom: 48px;
}
.company-table { width: 100%; max-width: 700px; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--wp--preset--color--border-light); }
.company-table th {
  text-align: left;
  padding: 16px 24px 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--wp--preset--color--text-secondary);
  white-space: nowrap;
  width: 140px;
  vertical-align: top;
}
.company-table td {
  padding: 16px 0;
  font-size: 15px;
  color: var(--wp--preset--color--text-body);
}

/* ===== CONTACT CTA ===== */
.contact-cta {
  background: var(--wp--preset--color--dark-bg);
  padding: 100px 0;
}
.contact-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.contact-cta .section-label { color: var(--wp--custom--on-dark-muted); }
.contact-cta h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--on-dark);
  font-feature-settings: "palt" 1;
  margin-bottom: 16px;
}
.contact-cta p {
  color: var(--wp--custom--on-dark-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 15px;
  line-height: 1.8;
}
.contact-cta .btn-primary { font-size: 15px; }

/* Marquee */
.contact-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 24px 0;
  margin-bottom: 48px;
}
.contact-marquee-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
.contact-marquee-text {
  font-family: var(--wp--preset--font-family--en);
  font-size: 72px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: 0.02em;
  display: inline;
  padding-right: 48px;
}
@keyframes marquee {
  from { translate: 0 0; }
  to { translate: -50% 0; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--wp--preset--color--dark-bg);
  padding: 48px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--wp--preset--color--on-dark);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.footer-copy {
  font-family: var(--wp--preset--font-family--en);
  font-size: 12px;
  color: var(--wp--custom--on-dark-muted);
}
.footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a {
  font-size: 13px;
  color: var(--wp--custom--on-dark-muted);
  transition: color var(--wp--custom--transition);
}
.footer-links a:hover { color: var(--wp--preset--color--on-dark); }

/* ===== BACK LINK ===== */
.back-to-top { text-align: center; padding: 48px 0 120px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--wp--preset--color--text-secondary);
  transition: color var(--wp--custom--transition);
}
.back-link:hover { color: var(--wp--preset--color--primary); }
.back-link svg { transition: translate var(--wp--custom--transition); }
.back-link:hover svg { translate: -3px 0; }

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 48px;
  overflow: hidden;
}
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]),
.contact-form .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius-input);
  font-family: var(--wp--preset--font-family--jp);
  font-size: 16px;
  color: var(--wp--preset--color--text-body);
  background: var(--wp--preset--color--background);
  transition: border-color var(--wp--custom--transition);
  outline: none;
}
.contact-form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]) { height: 48px; }
.contact-form .wpcf7-form textarea { resize: vertical; min-height: 160px; line-height: 1.8; }
.contact-form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):focus,
.contact-form .wpcf7-form textarea:focus { border-color: var(--wp--preset--color--primary); }
.contact-form .wpcf7-form input::placeholder,
.contact-form .wpcf7-form textarea::placeholder { color: var(--wp--preset--color--text-muted); }
.form-group { margin-bottom: 32px; }
.form-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--wp--preset--color--text-heading);
  margin-bottom: 8px;
}
.form-required {
  color: var(--wp--preset--color--error);
  margin-left: 4px;
  font-size: 14px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius-input);
  font-family: var(--wp--preset--font-family--jp);
  font-size: 16px;
  color: var(--wp--preset--color--text-body);
  background: var(--wp--preset--color--background);
  transition: border-color var(--wp--custom--transition);
  outline: none;
}
.form-input { height: 48px; }
.form-textarea { resize: vertical; min-height: 160px; line-height: 1.8; }
.form-input:focus,
.form-textarea:focus { border-color: var(--wp--preset--color--primary); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--wp--preset--color--text-muted); }
.form-group.has-error .form-input,
.form-group.has-error .form-textarea { border-color: var(--wp--preset--color--error); }
.form-error {
  color: var(--wp--preset--color--error);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}
.form-group.has-error .form-error { display: block; }

/* Privacy container */
.privacy-section-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--wp--preset--color--text-heading);
  margin-bottom: 12px;
}
.privacy-container {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius-input);
  max-height: 300px;
  overflow-y: auto;
  padding: 24px;
  margin-bottom: 16px;
  background: var(--wp--preset--color--surface);
}
.privacy-container h3 { font-size: 17px; font-weight: 600; color: var(--wp--preset--color--text-heading); margin-bottom: 16px; line-height: 1.4; }
.privacy-container h4 { font-size: 15px; font-weight: 600; color: var(--wp--preset--color--text-heading); margin: 24px 0 8px; line-height: 1.4; }
.privacy-container p { font-size: 14px; line-height: 1.8; color: var(--wp--preset--color--text-body); margin-bottom: 8px; }
.privacy-container ol { padding-left: 24px; font-size: 14px; line-height: 1.8; color: var(--wp--preset--color--text-body); margin-bottom: 8px; }
.privacy-container ol li { margin-bottom: 4px; }
.privacy-container ol ol { margin-top: 4px; margin-bottom: 4px; }
.privacy-contact-info { font-size: 14px; line-height: 1.8; color: var(--wp--preset--color--text-body); margin-top: 16px; }
.privacy-contact-info dt { font-weight: 500; display: inline; }
.privacy-contact-info dd { display: inline; margin-left: 0; }
.privacy-contact-info div { margin-bottom: 2px; }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--wp--preset--color--text-body);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--wp--preset--color--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Form submit */
.form-submit { text-align: center; margin-top: 48px; }
.form-submit .btn-primary { min-width: 200px; }
.contact-form .wpcf7-form [type="submit"] {
  display: block;
  margin: 48px auto 0;
  min-width: 200px;
  height: 52px;
  padding: 0 32px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-dark);
  border: none;
  border-radius: var(--wp--custom--radius-pill);
  font-family: var(--wp--preset--font-family--jp);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--wp--custom--transition);
}
.contact-form .wpcf7-form [type="submit"]:hover { background: var(--wp--preset--color--primary-dark); }
.contact-form .wpcf7-form [type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

/* Form message */
.form-message {
  text-align: center;
  padding: 24px;
  border-radius: var(--wp--custom--radius-input);
  margin-top: 24px;
  display: none;
  font-size: 15px;
  line-height: 1.8;
}
.form-message.visible { display: block; }
.form-message.success {
  background: var(--wp--preset--color--success-light);
  color: var(--wp--preset--color--success);
  border: 1px solid var(--wp--custom--success-border);
}
.form-message.error {
  background: var(--wp--preset--color--error-light);
  color: var(--wp--preset--color--error);
  border: 1px solid var(--wp--custom--error-border);
}

/* ===== NEWS PAGE ===== */
.news-page-list {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 120px;
}
.wp-block-post-template.news-list { list-style: none; padding: 0; margin: 0; max-width: none; width: 100%; }
.wp-block-post-template.news-list > li { list-style: none; max-width: none; }
.news-section + .wp-block-group .wp-block-query { max-width: none; width: 100%; }
.news-item .wp-block-post-date,
.news-item .wp-block-post-title { margin-top: 0; margin-bottom: 0; }
.news-item .wp-block-post-title a { color: inherit; text-decoration: none; }
.news-item .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 48px 0 0;
}
.pagination-btn,
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers .current,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--wp--preset--font-family--en);
  font-size: 14px;
  font-weight: 500;
  color: var(--wp--preset--color--text-secondary);
  background: none;
  border: 1px solid var(--wp--preset--color--border-light);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--wp--custom--transition), color var(--wp--custom--transition), border-color var(--wp--custom--transition);
}
.pagination-btn:hover,
.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
  background: var(--wp--preset--color--surface);
  border-color: var(--wp--preset--color--border);
}
.pagination-btn.active,
.wp-block-query-pagination-numbers .current {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-dark);
  border-color: var(--wp--preset--color--primary);
  pointer-events: none;
}
.pagination-btn:disabled { opacity: 0.3; pointer-events: none; }

/* ===== TEMPLATE LAYOUT CLASSES ===== */
.page-main-content {
  padding-top: 160px;
  padding-bottom: 80px;
}
.single-post-body {
  padding-top: 48px;
  padding-bottom: 80px;
}
.error-page-actions {
  padding-bottom: 120px;
  text-align: center;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-cta { margin-left: auto; }
  .nav { padding: 0 24px; }

  .hero { padding: 150px 0 80px; min-height: auto; }
  .hero h1 { font-size: 36px; }
  .hero-blob { width: 60vw; height: 60vw; }

  .about { padding: 100px 0; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }

  .service { padding: 100px 0; }
  .service-grid { grid-template-columns: 1fr; }

  .process { padding: 100px 0; }
  .process h2 { margin-bottom: 48px; }

  .news-section { padding: 40px 0; }
  .news-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .company-section { padding: 100px 0; }

  .contact-cta { padding: 80px 0; }

  .page-header { padding: 140px 0 64px; }
  .page-header h1 { font-size: 30px; }

  .page-main-content { padding-top: 140px; padding-bottom: 64px; }
  .single-post-body { padding-top: 40px; padding-bottom: 64px; }
  .error-page-actions { padding-bottom: 80px; }

  .nav { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 540px) {
  .nav { padding: 0 16px; gap: 12px; }
  .nav-cta { margin-left: auto; padding: 0 16px; height: 36px; font-size: 12px; }
  .nav-brand img { height: 40px; width: 40px; }

  .container { padding: 0 20px; }

  .page-header { padding: 120px 0 48px; }
  .page-header h1 { font-size: 26px; }
  .page-header p { font-size: 15px; }

  .news-item { flex-direction: column; gap: 4px; }

  .back-to-top { padding: 32px 0 80px; }

  .footer-inner { flex-direction: column; gap: 24px; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; gap: 8px 16px; justify-content: center; }

  .btn-primary, .btn-outline { height: 48px; padding: 0 28px; font-size: 14px; }

  .hero { padding: 130px 0 64px; min-height: auto; }
  .hero-inner { padding: 0 20px; }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .hero-blob { width: 70vw; height: 70vw; top: -5%; right: -20%; }
  .hero-watermark { font-size: 12vw; }

  .about { padding: 80px 0; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .about h2 { font-size: 26px; }

  .service { padding: 80px 0; }
  .service h2 { font-size: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card-body { padding: 20px; }
  .service-card-list { gap: 4px 12px; }
  .service-card-divider { margin: 16px 0; }

  .process { padding: 80px 0; }
  .process h2 { font-size: 26px; margin-bottom: 48px; }
  .process-timeline { grid-template-columns: 1fr; }
  .process-step {
    flex-direction: row;
    gap: 20px;
    text-align: left;
    padding-bottom: 0;
    position: relative;
  }
  .process-step:not(:last-child) { padding-bottom: 48px; }
  .process-step-indicator { flex-shrink: 0; width: 48px; height: 48px; margin-bottom: 0; }
  .process-step-num { font-size: 14px; }
  .process-step-body { padding-top: 2px; }
  .process-step p { max-width: none; margin: 0; }
  .process-step-tag { font-size: 10px; }
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: 0;
    width: 2px;
    background: rgba(200, 95, 34, 0.12);
    transition: background 0.6s var(--wp--custom--ease-reveal);
  }
  .process-step.active:not(:last-child)::after { background: var(--wp--preset--color--primary); }
  .process-track, .process-track-fill { display: none; }

  .news-section { padding: 32px 0; }
  .news-header h2 { font-size: 26px; }
  .news-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .company-section { padding: 80px 0; }
  .company-section h2 { font-size: 26px; }
  .company-table th { display: block; padding: 16px 0 4px; }
  .company-table td { display: block; padding: 0 0 16px; }

  .contact-cta { padding: 64px 0; }
  .contact-cta h2 { font-size: 26px; }
  .contact-cta p { font-size: 14px; }

  .page-main-content { padding-top: 120px; padding-bottom: 48px; }
  .single-post-body { padding-top: 32px; padding-bottom: 48px; }
  .error-page-actions { padding-bottom: 64px; }

  .contact-form { padding-bottom: 32px; }
  .form-group { margin-bottom: 24px; }
  .privacy-container { max-height: 200px; padding: 16px; }
  .form-submit .btn-primary { width: 100%; }
  .contact-form .wpcf7-form [type="submit"] { width: auto; min-width: 200px; max-width: 100%; }

  .news-page-list { padding-bottom: 48px; }
  .pagination { gap: 6px; }
  .pagination-btn,
  .wp-block-query-pagination-numbers a,
  .wp-block-query-pagination-numbers .current,
  .wp-block-query-pagination-previous,
  .wp-block-query-pagination-next { width: 40px; height: 40px; font-size: 13px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; filter: none; }
  .reveal-blur { filter: none; }
  .hero-blob { animation: none; }
  .hero-watermark { animation: none; opacity: 1; translate: none; filter: none; }
  .contact-marquee-track { animation: none; }
  .hero-enter { opacity: 1; translate: none; filter: none; }
}
