/*
Theme Name: reBau
Theme URI: https://rebau.co.jp
Author: reBau LLC
Author URI: https://rebau.co.jp
Description: reBau合同会社 自作テーマ — BtoB/コンサルティング向けデザインシステム
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rebau
*/

/* ========================================
   reBau LLC — Corporate Website
   BtoB / Consulting Design System
   ======================================== */

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

:root {
  /* Brand */
  --color-brand-primary: #1B2A4A;
  --color-brand-secondary: #C9A96E;

  /* Action */
  --color-action: #1B2A4A;
  --color-action-hover: #2a3d63;

  /* Neutral */
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #5a5a5a;
  --color-text-tertiary: #888;
  --color-bg-base: #ffffff;
  --color-bg-raised: #F7F8FA;
  --color-bg-sunken: #ECEEF2;
  --color-border: #dde0e6;

  /* Aliases */
  --black: var(--color-text-primary);
  --dark: var(--color-action-hover);
  --gray: var(--color-text-secondary);
  --light-gray: var(--color-bg-sunken);
  --off-white: var(--color-bg-raised);
  --white: var(--color-bg-base);
  --accent: var(--color-brand-secondary);
  --accent-dark: #b08f50;
  --navy: var(--color-brand-primary);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 100px;

  /* Layout */
  --section-padding: var(--space-2xl) 0;
  --container-width: 1200px;
  --font-heading: "Noto Serif JP", "游明朝", serif;
  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Helvetica Neue", sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 10px; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
.section-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
}

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

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.header.scrolled { border-bottom-color: var(--color-border); }

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.logo span { font-weight: 700; }

/* --- Navigation --- */
.nav { display: flex; align-items: center; gap: 22px; }

.nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--color-text-primary);
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--navy);
  transition: width var(--transition);
}

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

.nav-cta {
  font-size: 0.75rem !important;
  padding: 8px 18px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 3px;
  transition: background var(--transition) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--color-action-hover); }

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

.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--navy);
  transition: var(--transition);
}

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

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: 100%; height: 100vh;
  background: var(--white);
  z-index: 999;
  transition: right 0.4s ease;
  padding: 100px 40px 40px;
}

.mobile-nav.open { right: 0; }

.mobile-nav a {
  display: block;
  font-size: 1.1rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 3px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

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

.btn-primary:hover {
  background: var(--color-action-hover);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

.btn-accent:hover { background: var(--accent-dark); }

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   HERO — Full-bleed photo
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,0.82) 0%, rgba(27,42,74,0.55) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  color: var(--white);
}

.hero-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero .btn-primary {
  background: var(--accent);
  color: var(--white);
}

.hero .btn-primary:hover { background: var(--accent-dark); }

.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.scroll-indicator span {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

/* ========================================
   NEWS TICKER
   ======================================== */
.news-ticker {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--white);
}

.news-ticker-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--space-lg);
}

.news-ticker-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  white-space: nowrap;
  padding-top: 2px;
}

.news-ticker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-lg);
}

.news-ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.85rem;
}

.news-ticker-item time {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--gray);
  flex-shrink: 0;
}

.news-ticker-more {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--gray);
  white-space: nowrap;
  padding-top: 2px;
  transition: color var(--transition);
}

.news-ticker-more:hover { color: var(--navy); }

/* ========================================
   SECTIONS
   ======================================== */
section { padding: var(--section-padding); }

.section-header { margin-bottom: var(--space-xl); }

.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ========================================
   PAIN POINTS — 2col asymmetric
   ======================================== */
.pain-section { background: var(--white); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.pain-card {
  padding: 28px var(--space-lg);
  background: var(--off-white);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  border-left: 3px solid var(--accent);
}

.pain-icon {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.pain-card p { font-size: 0.95rem; line-height: 1.7; }

/* ========================================
   SERVICES — Featured + 3col
   ======================================== */
.services-section {
  background: var(--navy);
  color: var(--white);
  padding: 120px 0;
}

.services-section .section-label { color: var(--accent); }
.services-section .section-title { color: var(--white); }
.services-section .section-subtitle { color: rgba(255,255,255,0.6); }

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

.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.service-card:hover { border-color: rgba(255,255,255,0.3); }

.service-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-color: var(--accent);
  background: rgba(201,169,110,0.08);
}

.service-card--featured:hover { border-color: var(--accent); }

.service-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.service-card--featured .service-card-img {
  height: 100%;
  min-height: 280px;
}

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

.service-card--featured .service-card-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-number {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--white);
}

.service-card--featured h3 { font-size: 1.3rem; }

.service-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card-link {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  transition: gap var(--transition);
}

.service-card-link:hover { gap: 12px; }
.service-card-link::after { content: "\2192"; }

/* ========================================
   WORKS — Featured first card
   ======================================== */
.works-section {
  background: var(--white);
  padding: 120px 0;
}

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

.work-card {
  background: var(--off-white);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.work-card:hover { box-shadow: 0 8px 32px rgba(27,42,74,0.08); }

.work-card:first-child {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.work-card:first-child .work-card-img {
  height: 100%;
  min-height: 260px;
}

.work-card:first-child .work-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.work-card-body { padding: var(--space-lg) 24px; }

.work-card-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

.work-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: var(--white);
  border-radius: 3px;
  color: var(--gray);
  font-weight: 500;
}

.work-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.work-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ========================================
   RESOURCES — Dark section
   ======================================== */
.resources-section {
  background: var(--color-text-primary);
  color: var(--white);
  padding: 100px 0;
}

.resources-section .section-label { color: var(--accent); }
.resources-section .section-subtitle { color: rgba(255,255,255,0.6); }

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

.resource-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.resource-card:hover { border-color: rgba(255,255,255,0.25); }

.resource-card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.resource-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.resource-card-body { padding: 24px; }

.resource-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.resource-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.resource-card .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  padding: 10px 24px;
  font-size: 0.8rem;
}

.resource-card .btn-outline:hover {
  background: var(--white);
  color: var(--color-text-primary);
}

/* ========================================
   WHY US — Offset layout
   ======================================== */
.why-section {
  background: var(--off-white);
  padding: 120px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.why-item { text-align: left; }

.why-number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 200;
  color: var(--accent);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.why-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.why-item p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.9;
}

/* ========================================
   運用コンテンツ (Blog / Column)
   ======================================== */
.blog-section {
  background: var(--white);
  padding: 100px 0;
}

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

.blog-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--off-white);
  transition: box-shadow var(--transition);
}

.blog-card:hover { box-shadow: 0 6px 24px rgba(27,42,74,0.07); }

.blog-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.blog-card-body { padding: 20px 24px; }

.blog-card-date {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ========================================
   CTA SECTION — with background
   ======================================== */
.cta-section {
  padding: 0;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,42,74,0.85);
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0;
  color: var(--white);
}

.cta-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-inner p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.cta-inner .btn-primary {
  background: var(--accent);
}

.cta-inner .btn-primary:hover { background: var(--accent-dark); }

.cta-inner .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.cta-inner .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

/* ========================================
   PAGE HERO (sub pages)
   ======================================== */
.page-hero {
  padding: 160px 0 80px;
  background: var(--off-white);
}

.page-hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border: 1px solid var(--navy);
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.9;
  max-width: 600px;
}

/* ========================================
   ABOUT / MVV
   ======================================== */
.mvv-item {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.mvv-item:last-child { border-bottom: none; }

.mvv-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mvv-label-jp {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 24px;
}

.mvv-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--navy);
}

.mvv-text {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 2;
  max-width: 680px;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.value-item {
  padding: 24px;
  background: var(--off-white);
  border-radius: 8px;
}

.value-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.value-item p { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }

/* ========================================
   SERVICE DETAIL PAGES
   ======================================== */
.service-detail-section { padding: 80px 0; }
.service-detail-section:nth-child(even) { background: var(--off-white); }

.problems-list { display: grid; gap: 16px; }

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  background: var(--off-white);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-detail-section:nth-child(even) .problem-item { background: var(--white); }

.problem-item::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}

.service-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-menu-card {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.service-detail-section:nth-child(odd) .service-menu-card { background: var(--off-white); }

.service-menu-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }

.service-menu-card ul { display: grid; gap: 8px; }

.service-menu-card li {
  font-size: 0.85rem;
  color: var(--gray);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.service-menu-card li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--color-border);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.flow-step { text-align: center; position: relative; }

.flow-step::after {
  content: "\2192";
  position: absolute;
  right: -16px;
  top: 24px;
  color: var(--color-border);
  font-size: 1.2rem;
}

.flow-step:last-child::after { display: none; }

.flow-step-num {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}

.flow-step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.flow-step p { font-size: 0.8rem; color: var(--gray); }

/* ========================================
   COMPANY
   ======================================== */
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--color-border); }

.company-table th,
.company-table td {
  padding: 16px 0;
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.company-table th { width: 160px; font-weight: 600; color: var(--navy); }
.company-table td { color: var(--gray); }

.timeline { position: relative; padding-left: 32px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--color-border);
}

.timeline-item { position: relative; margin-bottom: 32px; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 8px;
  width: 9px; height: 9px;
  background: var(--navy);
  border-radius: 50%;
}

.timeline-year {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-item p { font-size: 0.9rem; line-height: 1.7; }

/* ========================================
   NEWS LIST
   ======================================== */
.news-list { display: grid; gap: 0; }

.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left var(--transition);
}

.news-item:hover { padding-left: 8px; }

.news-item time {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--gray);
  flex-shrink: 0;
}

.news-category {
  font-size: 0.7rem;
  padding: 2px 10px;
  background: var(--off-white);
  border-radius: 3px;
  flex-shrink: 0;
  font-weight: 500;
}

.news-item span:last-child { font-size: 0.9rem; }

/* ========================================
   SINGLE POST
   ======================================== */
.single-content {
  max-width: 700px;
  margin: 0 auto;
}

.single-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
}

.single-content .post-meta {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.single-content .post-thumbnail {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
}

.single-content .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.single-content .entry-content {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-primary);
}

.single-content .entry-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.single-content .entry-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.single-content .entry-content p {
  margin-bottom: 24px;
}

.single-content .entry-content img {
  border-radius: 10px;
  margin: 32px 0;
}

.single-content .entry-content ul,
.single-content .entry-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.single-content .entry-content li {
  list-style: disc;
  margin-bottom: 8px;
  line-height: 1.8;
}

.single-content .entry-content ol li {
  list-style: decimal;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.form-group { margin-bottom: var(--space-lg); }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group label .required {
  color: #c44;
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  background: var(--white);
}

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

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

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

/* ========================================
   CONTACT FORM 7 OVERRIDE
   ======================================== */
.wpcf7 { max-width: 100%; }

.wpcf7 p {
  margin-bottom: var(--space-lg);
}

.wpcf7 label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-top: 4px;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}

.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 16px 32px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease;
  margin-top: var(--space-md);
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
  background: var(--color-action-hover);
  transform: translateY(-1px);
}

.wpcf7 .wpcf7-response-output {
  margin-top: var(--space-lg) !important;
  padding: 16px !important;
  border-radius: 6px !important;
  font-size: 0.9rem;
  text-align: center;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: #c44;
  font-size: 0.8rem;
  margin-top: 4px;
}

.wpcf7 .wpcf7-spinner {
  margin: 16px auto 0;
  display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 32px;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.footer-logo span { font-weight: 700; }

.footer-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  max-width: 320px;
  line-height: 1.7;
}

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

.footer-nav-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-nav-col a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ========================================
   ANIMATIONS — limited fade-in
   ======================================== */
.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: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: 1 / -1; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .hero { min-height: 90vh; }

  .pain-grid,
  .values-list,
  .service-menu-grid {
    grid-template-columns: 1fr;
  }

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

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

  .service-card--featured .service-card-img { min-height: 200px; }

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

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

  .work-card:first-child .work-card-img { min-height: 200px; }

  .resource-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .flow-step::after { display: none; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-nav { gap: var(--space-lg); flex-wrap: wrap; }

  .news-ticker-list { gap: 20px; }
  .news-ticker-item:nth-child(n+3) { display: none; }

  .section-title { font-size: 1.5rem; }

  .services-section,
  .works-section,
  .why-section { padding: 80px 0; }

  .resources-section,
  .blog-section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

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

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