/* ==========================================
   ChigiX Creative - Main Stylesheet
   WP臭を消した世界観の母艦サイト
   全クラスに cx- プレフィックス
   ========================================== */

/* ========== CSS Variables（デザイントークン） ========== */
:root {
  /* Colors */
  --bg: #ffffff;
  --surface: #f6fbff;
  --surface-2: #eef6ff;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  
  --brand: #2563eb;
  --brand-soft: #dbeafe;
  --accent: #fff3bf;
  --accent-ink: #6b5b00;
  
  /* Radius */
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 16px;
  
  /* Shadow */
  --sh-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --sh-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  
  /* Spacing */
  --gap-xs: 12px;
  --gap-sm: 16px;
  --gap-md: 20px;
  --gap-lg: 28px;
  --gap-xl: 40px;
  --gap-2xl: 60px;
  
  /* Layout */
  --max: 1120px;
  --max-narrow: 800px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --lh-tight: 1.4;
  --lh-normal: 1.75;
  --lh-loose: 1.85;
}

/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--lh-tight);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin-bottom: 1em;
}

.cx-text-muted {
  color: var(--muted);
}

.cx-text-lg {
  font-size: 1.125rem;
}

.cx-text-sm {
  font-size: 0.875rem;
}

.cx-text-xs {
  font-size: 0.8125rem;
}

/* ========== Layout Utilities ========== */
.cx-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

.cx-wrap-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

.cx-section {
  padding: var(--gap-2xl) 0;
}

@media (max-width: 768px) {
  .cx-section {
    padding: var(--gap-xl) 0;
  }
}

.cx-section-bg {
  background: var(--surface);
}

.cx-section-bg-2 {
  background: var(--surface-2);
}

/* ========== Header ========== */
.cx-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-md) var(--gap-md);
  max-width: var(--max);
  margin: 0 auto;
}

.cx-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.cx-logo:hover {
  opacity: 1;
  color: var(--brand);
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.custom-logo {
  max-height: 60px;
  width: auto;
}

.cx-nav {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.cx-nav-list {
  display: flex;
  gap: var(--gap-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cx-nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem;
}

.cx-nav-link:hover {
  color: var(--brand);
}

.cx-nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.cx-nav-cta:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.cx-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--ink);
}

@media (max-width: 768px) {
  .cx-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--gap-xl) var(--gap-md);
    box-shadow: var(--sh-md);
    transition: right 0.3s ease;
  }
  
  .cx-nav.is-open {
    right: 0;
  }
  
  .cx-nav-list {
    flex-direction: column;
    gap: 0;
  }
  
  .cx-nav-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }
  
  .cx-nav-cta {
    margin-top: var(--gap-md);
    text-align: center;
    display: block;
  }
  
  .cx-mobile-toggle {
    display: block;
    z-index: 101;
  }
  
  .cx-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
  
  .cx-mobile-overlay.is-open {
    display: block;
  }
}

/* ========== Footer ========== */
.cx-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: var(--gap-2xl) 0 var(--gap-xl);
}

.cx-footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}

@media (max-width: 768px) {
  .cx-footer-content {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
}

.cx-footer-about h3 {
  font-size: 1.125rem;
  margin-bottom: var(--gap-sm);
}

.cx-footer-nav h4 {
  font-size: 1rem;
  margin-bottom: var(--gap-sm);
}

.cx-footer-nav ul {
  list-style: none;
}

.cx-footer-nav li {
  margin-bottom: 0.5rem;
}

.cx-footer-bottom {
  padding-top: var(--gap-md);
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ========== Cards ========== */
.cx-card {
  background: var(--bg);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: var(--gap-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.cx-card {
  display: block;
  color: inherit;
}

a.cx-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  opacity: 1;
}

.cx-card-img {
  width: 100%;
  border-radius: var(--r-sm);
  margin-bottom: var(--gap-md);
  overflow: hidden;
}

.cx-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.cx-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cx-card-text {
  color: var(--muted);
  line-height: var(--lh-normal);
}

/* ========== Badges ========== */
.cx-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink);
}

.cx-badge-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.cx-badge-brand {
  background: var(--brand-soft);
  color: var(--brand);
}

.cx-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--gap-sm) 0;
}

/* ========== Buttons ========== */
.cx-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cx-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.cx-btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.cx-btn-brand {
  background: var(--brand);
  color: white;
}

.cx-btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.cx-btn-secondary:hover {
  background: var(--brand);
  color: white;
}

.cx-btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.cx-btn-block {
  display: block;
  width: 100%;
}

/* ========== Grid Layouts ========== */
.cx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

.cx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

.cx-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-lg);
}

@media (max-width: 1024px) {
  .cx-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cx-grid-2, .cx-grid-3, .cx-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========== Hero Section ========== */
.cx-hero {
  text-align: center;
  padding: var(--gap-2xl) 0;
}

.cx-hero-title {
  font-size: 2.5rem;
  margin-bottom: var(--gap-md);
  line-height: var(--lh-tight);
}

.cx-hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto var(--gap-xl);
  line-height: var(--lh-loose);
}

.cx-hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cx-hero-title {
    font-size: 1.875rem;
  }
  
  .cx-hero-subtitle {
    font-size: 1rem;
  }
  
  .cx-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========== Section Header ========== */
.cx-section-header {
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.cx-section-title {
  font-size: 2rem;
  margin-bottom: var(--gap-sm);
}

.cx-section-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ========== Filter UI ========== */
.cx-filter-panel {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-xl);
  box-shadow: var(--sh-sm);
}

.cx-filter-group {
  margin-bottom: var(--gap-md);
  border: none;
  padding: 0;
}

.cx-filter-group:last-child {
  margin-bottom: 0;
}

.cx-filter-group legend {
  font-weight: 600;
  margin-bottom: var(--gap-sm);
  color: var(--ink);
  padding: 0;
}

.cx-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.cx-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.cx-filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cx-filter-actions {
  display: flex;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--line);
}

.cx-filter-active {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--gap-md);
}

.cx-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
}

.cx-filter-chip button {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.cx-filter-results {
  margin-bottom: var(--gap-md);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ========== Two Lanes (Top) ========== */
.cx-two-lanes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-xl);
}

@media (max-width: 768px) {
  .cx-two-lanes {
    grid-template-columns: 1fr;
  }
}

.cx-lane-card {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: var(--gap-xl);
  box-shadow: var(--sh-md);
  text-align: center;
  transition: transform 0.2s ease;
  display: block;
  color: inherit;
}

.cx-lane-card:hover {
  transform: translateY(-4px);
  opacity: 1;
}

.cx-lane-icon {
  font-size: 3rem;
  margin-bottom: var(--gap-md);
}

.cx-lane-title {
  font-size: 1.5rem;
  margin-bottom: var(--gap-sm);
}

.cx-lane-desc {
  color: var(--muted);
  margin-bottom: var(--gap-lg);
  line-height: var(--lh-normal);
}

/* ========== Capabilities Grid ========== */
.cx-capability-card {
  text-align: center;
  padding: var(--gap-lg);
}

.cx-capability-icon {
  font-size: 2.5rem;
  margin-bottom: var(--gap-sm);
}

.cx-capability-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cx-capability-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: var(--lh-normal);
}

/* ========== Process Steps ========== */
.cx-process-card {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: var(--gap-xl);
  box-shadow: var(--sh-sm);
}

.cx-process-title {
  font-size: 1.5rem;
  margin-bottom: var(--gap-md);
}

.cx-process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cx-process-step {
  display: flex;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--line);
}

.cx-process-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cx-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cx-step-content h4 {
  margin-bottom: 0.25rem;
}

.cx-step-content p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: var(--lh-normal);
}

/* ========== Contact Form ========== */
.cx-contact-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}

@media (max-width: 768px) {
  .cx-contact-types {
    grid-template-columns: 1fr;
  }
}

.cx-contact-type-card {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--gap-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cx-contact-type-card:hover {
  border-color: var(--brand);
}

.cx-contact-type-card.is-selected {
  border-color: var(--brand);
  background: var(--surface);
}

.cx-contact-type-icon {
  font-size: 2.5rem;
  margin-bottom: var(--gap-sm);
}

.cx-contact-type-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cx-contact-type-desc {
  font-size: 0.875rem;
  color: var(--muted);
}

.cx-contact-form {
  display: none;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: var(--gap-xl);
  box-shadow: var(--sh-sm);
}

.cx-contact-form.is-visible {
  display: block;
}

.cx-form-group {
  margin-bottom: var(--gap-md);
}

.cx-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.cx-form-label-required::after {
  content: " *";
  color: #dc2626;
}

.cx-form-input,
.cx-form-select,
.cx-form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.cx-form-input:focus,
.cx-form-select:focus,
.cx-form-textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.cx-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.cx-form-help {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.cx-form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--r-sm);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cx-form-submit:hover {
  transform: translateY(-2px);
}

/* ========== Detail Pages ========== */
.cx-detail-hero {
  background: var(--surface-2);
  padding: var(--gap-2xl) 0;
}

.cx-detail-header {
  margin-bottom: var(--gap-xl);
}

.cx-detail-title {
  font-size: 2.5rem;
  margin-bottom: var(--gap-sm);
}

.cx-detail-logline {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: var(--gap-md);
  line-height: var(--lh-normal);
}

.cx-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.cx-detail-section {
  margin-bottom: var(--gap-2xl);
}

.cx-detail-section:last-child {
  margin-bottom: 0;
}

.cx-detail-section h2 {
  margin-bottom: var(--gap-md);
}

.cx-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--gap-md);
  color: var(--brand);
  font-weight: 500;
}

.cx-back-link::before {
  content: "←";
}

/* ========== Table (Capabilities) ========== */
.cx-table-wrapper {
  overflow-x: auto;
  margin: var(--gap-xl) 0;
}

.cx-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.cx-table th,
.cx-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.cx-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--ink);
}

.cx-table tbody tr:hover {
  background: var(--surface);
}

.cx-table tbody tr:last-child td {
  border-bottom: none;
}

/* ========== Notice Box ========== */
.cx-notice {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  padding: var(--gap-lg);
  border-radius: var(--r-sm);
  margin: var(--gap-lg) 0;
}

.cx-notice-brand {
  border-left-color: var(--brand);
  background: var(--brand-soft);
}

/* ========== Alert Messages ========== */
.cx-alert {
  padding: var(--gap-md);
  border-radius: var(--r-sm);
  margin-bottom: var(--gap-md);
}

.cx-alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.cx-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ========== Pagination ========== */
.cx-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--gap-xl);
  list-style: none;
}

.cx-pagination .page-numbers {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: background 0.2s ease;
}

.cx-pagination .page-numbers:hover {
  background: var(--surface);
}

.cx-pagination .page-numbers.current {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* ========== LINE CTA特別スタイル ========== */
.cx-line-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #06c755;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.2s ease;
}

.cx-line-cta:hover {
  transform: translateY(-2px);
  opacity: 1;
  background: #05b04d;
}

.cx-line-cta::before {
  content: "💬";
  font-size: 1.25rem;
}

/* ========== Philosophy Page特別スタイル ========== */
.cx-philosophy-intro {
  font-size: 1.125rem;
  line-height: var(--lh-loose);
  color: var(--muted);
  margin-bottom: var(--gap-xl);
}

.cx-philosophy-section {
  margin-bottom: var(--gap-2xl);
}

.cx-philosophy-section h2 {
  margin-bottom: var(--gap-md);
  color: var(--ink);
}

.cx-philosophy-section h3 {
  margin-top: var(--gap-lg);
  margin-bottom: var(--gap-sm);
  color: var(--ink);
}

.cx-philosophy-list {
  padding-left: 1.5rem;
  line-height: var(--lh-loose);
}

.cx-philosophy-list li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

/* ========== Utility Classes ========== */
.cx-mt-xs { margin-top: var(--gap-xs); }
.cx-mt-sm { margin-top: var(--gap-sm); }
.cx-mt-md { margin-top: var(--gap-md); }
.cx-mt-lg { margin-top: var(--gap-lg); }
.cx-mt-xl { margin-top: var(--gap-xl); }

.cx-mb-xs { margin-bottom: var(--gap-xs); }
.cx-mb-sm { margin-bottom: var(--gap-sm); }
.cx-mb-md { margin-bottom: var(--gap-md); }
.cx-mb-lg { margin-bottom: var(--gap-lg); }
.cx-mb-xl { margin-bottom: var(--gap-xl); }

.cx-text-center { text-align: center; }
.cx-text-left { text-align: left; }
.cx-text-right { text-align: right; }

.cx-hidden { display: none; }

/* ========== Empty State ========== */
.cx-empty-state {
  text-align: center;
  padding: var(--gap-2xl) var(--gap-md);
  color: var(--muted);
}

.cx-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--gap-md);
  opacity: 0.5;
}

.cx-empty-message {
  font-size: 1.125rem;
  line-height: var(--lh-normal);
}

/* ========== WordPress Core（最小限） ========== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 200px;
}

/* ==========================================
   2026 Home Redesign
   ========================================== */
:root {
  --cxp-cream: #f7f3eb;
  --cxp-paper: #efe9dd;
  --cxp-card: #faf7f1;
  --cxp-white-card: #fffdf8;
  --cxp-ink: #2e2a25;
  --cxp-ink-mid: #55504a;
  --cxp-ink-light: #8a857e;
  --cxp-pencil: #b5aea5;
  --cxp-ruled: rgba(74, 128, 196, 0.08);
  --cxp-ruled-margin: rgba(196, 90, 90, 0.12);
  --cxp-red: #c24b4b;
  --cxp-amber: #b8872e;
  --cxp-blue: #4571a0;
  --cxp-blue-bg: rgba(69, 113, 160, 0.06);
  --cxp-green: #4a7a5c;
  --cxp-green-light: #6aab7e;
  --cxp-tape: #e6d590;
  --cxp-tape-shadow: rgba(200, 180, 120, 0.3);
  --cxp-postit: #fef3b0;
  --cxp-lane-ip: #2e6b4a;
  --cxp-lane-ip-bg: rgba(46, 107, 74, 0.06);
  --cxp-lane-client: #8b5a2e;
  --cxp-lane-client-bg: rgba(139, 90, 46, 0.06);
  --cxp-font-ja: "Zen Kaku Gothic New", sans-serif;
  --cxp-font-mincho: "Kaisei Opti", serif;
  --cxp-font-display: "Playfair Display", serif;
  --cxp-font-hand: "Caveat", cursive;
  --cxp-font-mono: "Source Code Pro", monospace;
}

/* Header */
.cx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 58px;
  background: rgba(247, 243, 235, 0.92);
  border-bottom: 2px solid var(--cxp-paper);
  backdrop-filter: blur(12px);
}

body.admin-bar .cx-header {
  top: 32px;
}

.cx-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cx-nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cx-logo {
  color: var(--cxp-ink);
}

.cx-logo-text {
  font-family: var(--cxp-font-hand);
  font-size: 24px;
  font-weight: 700;
  color: var(--cxp-ink);
}

.custom-logo {
  max-height: 40px;
}

.cx-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cx-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.cx-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-family: var(--cxp-font-ja);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cxp-ink-mid);
  border-radius: 4px;
}

.cx-nav-link:hover {
  background: var(--cxp-blue-bg);
  color: var(--cxp-blue);
  opacity: 1;
}

.cx-nav-cta-wrap {
  flex-shrink: 0;
}

.cx-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--cxp-green);
  color: #fff;
  border-radius: 3px;
  font-family: var(--cxp-font-ja);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 1px 2px 6px rgba(74, 122, 92, 0.2);
}

.cx-nav-cta:hover {
  background: var(--cxp-green-light);
  opacity: 1;
}

.cx-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px 12px;
  font-family: var(--cxp-font-hand);
  font-size: 22px;
  color: var(--cxp-ink-mid);
  cursor: pointer;
}

.cx-nav-mobile {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(247, 243, 235, 0.97);
  border-bottom: 2px solid var(--cxp-paper);
  backdrop-filter: blur(12px);
  padding: 16px;
  flex-direction: column;
  gap: 8px;
}

body.admin-bar .cx-nav-mobile {
  top: 90px;
}

.cx-nav-mobile.is-open {
  display: flex;
}

.cx-nav-mobile-link {
  display: block;
  font-family: var(--cxp-font-ja);
  font-size: 15px;
  color: var(--cxp-ink-mid);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
}

.cx-nav-mobile-link:hover {
  background: var(--cxp-blue-bg);
  opacity: 1;
}

.cx-nav-mobile-cta {
  color: #fff;
  background: var(--cxp-green);
}

.cx-nav-mobile-cta:hover {
  background: var(--cxp-green-light);
}

.cx-header + main {
  padding-top: 76px;
}

body.home .cx-header + main {
  padding-top: 0;
}

.cx-header + .cx-page {
  padding-top: 0;
}

/* Footer */
.cx-footer {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 40px 28px 88px;
  border-top: 2px dashed rgba(0, 0, 0, 0.06);
  background: transparent;
}

.cx-footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cx-footer-name {
  font-family: var(--cxp-font-hand);
  font-size: 18px;
  color: var(--cxp-ink-mid);
}

.cx-footer-desc {
  font-size: 12px;
  color: var(--cxp-ink-light);
  line-height: 1.7;
  margin-top: 4px;
}

.cx-footer-note {
  font-size: 11px;
  color: var(--cxp-ink-mid);
  line-height: 1.7;
  margin-top: 6px;
}

.cx-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cx-foot-link {
  font-family: var(--cxp-font-ja);
  font-size: 12px;
  font-weight: 500;
  color: var(--cxp-blue);
  border: 1px solid rgba(69, 113, 160, 0.2);
  border-radius: 3px;
  padding: 6px 14px;
}

.cx-foot-link:hover {
  background: var(--cxp-blue-bg);
  opacity: 1;
}

.cx-footer-copy {
  font-family: var(--cxp-font-mono);
  font-size: 10px;
  color: var(--cxp-ink-light);
}

/* Home base */
body.home {
  font-family: var(--cxp-font-ja);
  background: var(--cxp-cream);
  color: var(--cxp-ink);
  overflow-x: hidden;
  line-height: 1.85;
}

body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 31px,
    var(--cxp-ruled) 31px,
    var(--cxp-ruled) 32px
  );
  pointer-events: none;
  z-index: 0;
}

body.home::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 72px;
  width: 1px;
  background: var(--cxp-ruled-margin);
  pointer-events: none;
  z-index: 0;
}

body.home .cx-home,
body.home .cx-footer,
body.home .cx-header {
  position: relative;
  z-index: 2;
}

body.home .grain {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Not-home paper background */
body:not(.home) {
  font-family: var(--cxp-font-ja);
  background: var(--cxp-cream);
  color: var(--cxp-ink);
  overflow-x: hidden;
}

body:not(.home)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 31px,
    rgba(74, 128, 196, 0.05) 31px,
    rgba(74, 128, 196, 0.05) 32px
  );
  pointer-events: none;
  z-index: 0;
}

body:not(.home)::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 72px;
  width: 1px;
  background: rgba(196, 90, 90, 0.08);
  pointer-events: none;
  z-index: 0;
}

body:not(.home) .cx-page::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

body:not(.home) .cx-page,
body:not(.home) .cx-footer {
  position: relative;
  z-index: 2;
}

/* Home photo components */
body.home .polaroid {
  background: #fff;
  padding: 10px 10px 36px;
  box-shadow: 2px 4px 14px rgba(0, 0, 0, 0.08);
  position: relative;
  display: inline-block;
}

body.home .polaroid img,
body.home .polaroid .photo-placeholder {
  width: 100%;
  display: block;
  object-fit: cover;
}

body.home .polaroid .caption {
  font-family: var(--cxp-font-hand);
  font-size: 15px;
  color: var(--cxp-ink-mid);
  text-align: center;
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
}

body.home .taped-photo {
  position: relative;
  display: inline-block;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.06);
}

body.home .taped-photo::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 70px;
  height: 20px;
  background: var(--cxp-tape);
  opacity: 0.65;
  box-shadow: 0 1px 3px var(--cxp-tape-shadow);
  z-index: 3;
}

body.home .taped-photo img,
body.home .taped-photo .photo-placeholder {
  display: block;
  width: 100%;
  object-fit: cover;
}

body.home .photo-placeholder {
  background: linear-gradient(135deg, #e8e2d8 0%, #d8d2c8 50%, #e0dbd2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cxp-ink-light);
  font-family: var(--cxp-font-hand);
  overflow: hidden;
  position: relative;
}

body.home .photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.3) 49%, rgba(255, 255, 255, 0.3) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.3) 49%, rgba(255, 255, 255, 0.3) 51%, transparent 52%);
  background-size: 20px 20px;
  opacity: 0.3;
}

body.home .photo-placeholder .ph-icon {
  font-size: 28px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

body.home .photo-placeholder .ph-label {
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* Hero */
body.home .hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 48px;
  padding: 120px 40px 80px;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

body.home .hero-content {
  max-width: 580px;
}

body.home .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

body.home .hero-tag .mono {
  font-family: var(--cxp-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cxp-blue);
  background: var(--cxp-blue-bg);
  padding: 4px 12px;
  border-radius: 2px;
}

body.home .hero-tag .hand {
  font-family: var(--cxp-font-hand);
  font-size: 18px;
  color: var(--cxp-red);
  transform: rotate(-2deg);
  display: inline-block;
}

body.home .hero h1 {
  font-family: var(--cxp-font-ja);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.55;
  color: var(--cxp-ink);
  margin-bottom: 12px;
}

body.home .hero h1 .em {
  position: relative;
  display: inline;
  color: var(--cxp-blue);
}

body.home .hero h1 .em::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 6px;
  height: 12px;
  background: rgba(69, 113, 160, 0.12);
  z-index: -1;
  transform: rotate(-0.5deg);
  border-radius: 2px;
}

body.home .hero-subtitle {
  font-family: var(--cxp-font-hand);
  font-size: 22px;
  color: var(--cxp-amber);
  margin-bottom: 28px;
  transform: rotate(-1deg);
  display: inline-block;
}

body.home .hero-subtitle::before {
  content: "✎ ";
}

body.home .hero-body {
  font-size: 16px;
  line-height: 2.2;
  color: var(--cxp-ink-mid);
}

body.home .hero-body strong {
  color: var(--cxp-ink);
  font-weight: 700;
}

body.home .hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

body.home .hero-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(69, 113, 160, 0.28);
  color: var(--cxp-blue);
  padding: 14px 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 700;
}

body.home .hero-link-btn:hover {
  background: var(--cxp-blue-bg);
  opacity: 1;
}

body.home .hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

body.home .hero-photos .polaroid:nth-child(1) {
  transform: rotate(-3deg);
  grid-column: 1;
}

body.home .hero-photos .polaroid:nth-child(2) {
  transform: rotate(2deg);
  margin-top: 30px;
  grid-column: 2;
}

body.home .hero-photos .postit-note {
  grid-column: 1 / -1;
  background: var(--cxp-postit);
  padding: 14px 16px;
  font-family: var(--cxp-font-hand);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cxp-ink);
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.06);
  transform: rotate(1.5deg);
  max-width: 200px;
  margin: -8px auto 0;
}

body.home .scroll-h {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: cx-bob 2.5s ease-in-out infinite;
}

body.home .scroll-h span {
  font-family: var(--cxp-font-hand);
  font-size: 16px;
  color: var(--cxp-pencil);
}

@keyframes cx-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Dividers */
body.home .divider-hand {
  max-width: 1240px;
  margin: 40px auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

body.home .divider-hand .squiggle {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--cxp-pencil) 0px, var(--cxp-pencil) 10px, transparent 10px, transparent 16px);
  opacity: 0.25;
}

body.home .divider-hand .tag {
  font-family: var(--cxp-font-hand);
  font-size: 20px;
  font-weight: 600;
  color: var(--cxp-blue);
  white-space: nowrap;
}

body.home .divider-hand .tag-num {
  font-family: var(--cxp-font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--cxp-pencil);
  margin-right: 4px;
}

/* Visual strip */
body.home .visual-strip {
  max-width: 1240px;
  margin: 0 auto 20px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

body.home .home-block {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

body.home .home-narrow {
  max-width: 920px;
  margin: 0 auto;
}

body.home .home-note {
  font-family: var(--cxp-font-hand);
  font-size: 14px;
  color: var(--cxp-ink-light);
  margin-top: 10px;
  transform: rotate(-0.5deg);
  display: inline-block;
}

/* ── Paper board (big card with tape) ── */
body.home .paper-board {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.05);
  padding: 28px 28px 24px;
  position: relative;
  margin-bottom: 18px;
}

body.home .paper-board-hand {
  font-family: var(--cxp-font-hand);
  font-size: 18px;
  font-weight: 600;
  color: var(--cxp-red);
  margin-bottom: 14px;
  transform: rotate(-0.5deg);
  display: inline-block;
}

body.home .tape-top::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 80px;
  height: 22px;
  background: var(--cxp-tape);
  opacity: 0.6;
  box-shadow: 0 1px 3px var(--cxp-tape-shadow);
  z-index: 3;
}

body.home .tape-lr::before,
body.home .tape-lr::after {
  content: "";
  position: absolute;
  width: 68px;
  height: 20px;
  background: var(--cxp-tape);
  opacity: 0.55;
  box-shadow: 0 1px 3px var(--cxp-tape-shadow);
  z-index: 3;
}

body.home .tape-lr::before {
  top: -8px;
  left: 20px;
  transform: rotate(-3deg);
}

body.home .tape-lr::after {
  top: -8px;
  right: 20px;
  transform: rotate(2deg);
}

body.home .tape-corner::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 44px;
  height: 16px;
  background: var(--cxp-tape);
  opacity: 0.5;
  transform: rotate(3deg);
  z-index: 3;
}

/* ── Postit wide ── */
body.home .postit-wide {
  background: var(--cxp-postit);
  padding: 18px 22px;
  font-family: var(--cxp-font-hand);
  font-size: 17px;
  line-height: 1.6;
  color: var(--cxp-ink);
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.06);
  transform: rotate(0.8deg);
  max-width: 640px;
  margin-bottom: 18px;
  position: relative;
}

body.home .postit-wide.postit-blue {
  background: #d4e8f7;
}

/* ── Problem list ── */
body.home .problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.home .problem-list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  margin-bottom: 8px;
  color: var(--cxp-ink-mid);
  line-height: 1.8;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-left: 3px solid var(--cxp-red);
  transition: transform 0.2s;
}

body.home .problem-list li:hover {
  transform: translateX(4px);
}

body.home .prob-q {
  position: absolute;
  left: 12px;
  top: 12px;
  font-family: var(--cxp-font-hand);
  font-size: 18px;
  font-weight: 700;
  color: var(--cxp-red);
}

/* ── Concept items ── */
body.home .concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body.home .concept-item {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.04);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--cxp-ink-mid);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

body.home .concept-item:hover {
  transform: translateY(-3px) rotate(0deg) !important;
  box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.07);
}

/* ── Deliverable chips ── */
body.home .deliverable-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.home .dv-chip {
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(69, 113, 160, 0.25);
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--cxp-font-ja);
  color: var(--cxp-ink-mid);
  border-radius: 3px;
  transition: transform 0.2s, background 0.2s;
}

body.home .dv-chip:hover {
  background: var(--cxp-blue-bg);
  transform: translateY(-2px);
}

/* ── Process track ── */
body.home .process-track {
  display: flex;
  gap: 0;
  position: relative;
  padding-bottom: 8px;
}

body.home .process-track::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--cxp-pencil) 0, var(--cxp-pencil) 12px, transparent 12px, transparent 20px);
  opacity: 0.25;
}

body.home .p-node {
  flex: 1;
  text-align: center;
  position: relative;
}

body.home .p-num {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 10px;
  align-items: center;
  justify-content: center;
  background: var(--clr);
  color: #fff;
  font-family: var(--cxp-font-display);
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.home .p-label {
  display: block;
  font-family: var(--cxp-font-ja);
  font-size: 14px;
  font-weight: 700;
  color: var(--cxp-ink);
  margin-bottom: 2px;
}

body.home .p-desc {
  display: block;
  font-size: 12px;
  color: var(--cxp-ink-light);
  line-height: 1.6;
}

body.home .home-inline-cta {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Fit / Not Fit ── */
body.home .fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.home .fit-card {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.05);
  padding: 24px 22px;
  position: relative;
  transition: transform 0.3s;
}

body.home .fit-card:hover {
  transform: rotate(0deg) !important;
}

body.home .fit-card h3 {
  font-family: var(--cxp-font-hand);
  font-size: 24px;
  margin-bottom: 12px;
}

body.home .fit-card.fit h3 {
  color: var(--cxp-green);
}

body.home .fit-card.not-fit h3 {
  color: var(--cxp-red);
}

body.home .fit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.home .fit-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.9;
  color: var(--cxp-ink-mid);
  font-size: 14px;
}

body.home .fit-card li:last-child {
  margin-bottom: 0;
}

body.home .fit-card.fit li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--cxp-font-hand);
  font-weight: 700;
  font-size: 16px;
  color: var(--cxp-green);
}

body.home .fit-card.not-fit li::before {
  content: "×";
  position: absolute;
  left: 0;
  font-family: var(--cxp-font-hand);
  font-weight: 700;
  font-size: 16px;
  color: var(--cxp-red);
}

body.home .vs-card {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.04);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s;
  border-radius: 2px;
}

body.home .vs-card:hover {
  transform: translateY(-3px);
}

body.home .vs-card svg {
  margin-bottom: 14px;
}

body.home .vs-card h4 {
  font-family: var(--cxp-font-ja);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

body.home .vs-card p {
  font-size: 13px;
  color: var(--cxp-ink-mid);
  line-height: 1.8;
}

/* Works gallery */
body.home .photo-gallery {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: end;
}

body.home .gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

body.home .gallery-item:hover {
  opacity: 1;
}

body.home .photo-gallery .taped-photo {
  width: 100%;
}

body.home .photo-gallery .gallery-item:nth-child(1) .taped-photo {
  transform: rotate(-1.5deg);
}

body.home .photo-gallery .gallery-item:nth-child(2) .taped-photo {
  transform: rotate(1deg);
}

body.home .photo-gallery .gallery-item:nth-child(3) .taped-photo {
  transform: rotate(-0.5deg);
}

body.home .photo-gallery .gallery-item:nth-child(4) .taped-photo {
  transform: rotate(2deg);
}

body.home .photo-gallery .taped-photo .photo-placeholder {
  height: 160px;
}

body.home .photo-gallery .photo-label {
  font-family: var(--cxp-font-hand);
  font-size: 13px;
  color: var(--cxp-ink-light);
  text-align: center;
  margin-top: 6px;
}

/* Dual lane */
body.home .dual-lane {
  padding: 32px 40px 72px;
  max-width: 1240px;
  margin: 0 auto;
}

body.home .dl-head {
  margin-bottom: 44px;
}

body.home .dl-head h2 {
  font-family: var(--cxp-font-mincho);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 8px;
}

body.home .dl-head .sub {
  font-family: var(--cxp-font-hand);
  font-size: 20px;
  color: var(--cxp-ink-mid);
}

body.home .lanes-c {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 0;
}

body.home .lane-c-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.home .lane-c-mid .dashed {
  flex: 1;
  width: 1px;
  border-left: 2px dashed var(--cxp-pencil);
  opacity: 0.2;
}

body.home .lane-c-mid .circ {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--cxp-amber);
  background: var(--cxp-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cxp-font-hand);
  font-size: 14px;
  font-weight: 700;
  color: var(--cxp-amber);
  margin: 8px 0;
}

body.home .lane-card {
  display: block;
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
}

body.home .lane-card:hover {
  box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
  opacity: 1;
}

body.home .tape-l::before,
body.home .tape-r::before {
  content: "";
  position: absolute;
  top: -9px;
  width: 74px;
  height: 22px;
  background: var(--cxp-tape);
  opacity: 0.6;
  box-shadow: 0 1px 3px var(--cxp-tape-shadow);
  z-index: 3;
}

body.home .tape-l::before {
  left: 24px;
  transform: rotate(-2deg);
}

body.home .tape-r::before {
  right: 24px;
  transform: rotate(2deg);
}

body.home .lane-photo img,
body.home .lane-photo .photo-placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

body.home .lane-body {
  padding: 28px 28px 32px;
}

body.home .lc-badge {
  display: inline-block;
  font-family: var(--cxp-font-ja);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 3px;
}

body.home .lane-ip-c .lc-badge {
  color: var(--cxp-lane-ip);
  background: var(--cxp-lane-ip-bg);
  border: 1px solid rgba(46, 107, 74, 0.12);
}

body.home .lane-client-c .lc-badge {
  color: var(--cxp-lane-client);
  background: var(--cxp-lane-client-bg);
  border: 1px solid rgba(139, 90, 46, 0.12);
}

body.home .lane-card h3 {
  font-family: var(--cxp-font-mincho);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

body.home .lane-ip-c h3 {
  color: var(--cxp-lane-ip);
}

body.home .lane-client-c h3 {
  color: var(--cxp-lane-client);
}

body.home .lane-card p {
  font-size: 15px;
  line-height: 2;
  color: var(--cxp-ink-mid);
}

body.home .lane-ann {
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  border-radius: 2px;
}

body.home .lane-ip-c .lane-ann {
  color: var(--cxp-lane-ip);
  border-left: 3px solid var(--cxp-lane-ip);
  background: var(--cxp-lane-ip-bg);
}

body.home .lane-client-c .lane-ann {
  color: var(--cxp-lane-client);
  border-left: 3px solid var(--cxp-lane-client);
  background: var(--cxp-lane-client-bg);
}

body.home .lane-ann .hand-label {
  font-family: var(--cxp-font-hand);
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}

/* Capabilities */
body.home .cap {
  padding: 32px 40px 72px 88px;
  max-width: 1240px;
  margin: 0 auto;
}

body.home .cap-head h2 {
  font-family: var(--cxp-font-mincho);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 8px;
}

body.home .cap-head .sub {
  font-family: var(--cxp-font-hand);
  font-size: 20px;
  color: var(--cxp-amber);
  margin-bottom: 40px;
  transform: rotate(-0.8deg);
  display: inline-block;
}

body.home .cap-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

body.home .cap-card {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

body.home .cap-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.07);
}

body.home .cap-photo .photo-placeholder {
  width: 100%;
  height: 100px;
}

body.home .cap-body {
  padding: 18px 18px 22px;
}

body.home .cap-num {
  font-family: var(--cxp-font-display);
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.2;
}

body.home .cap-card h4 {
  font-family: var(--cxp-font-ja);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cxp-ink);
}

body.home .cap-card p {
  font-size: 13px;
  color: var(--cxp-ink-mid);
  line-height: 1.9;
}

body.home .cap-card:nth-child(1) .cap-photo .photo-placeholder {
  background: linear-gradient(135deg, #d4e8f7 0%, #b8d0e8 100%);
}

body.home .cap-card:nth-child(2) .cap-photo .photo-placeholder {
  background: linear-gradient(135deg, #d4f0dd 0%, #b8e0c8 100%);
}

body.home .cap-card:nth-child(3) .cap-photo .photo-placeholder {
  background: linear-gradient(135deg, #fef3b0 0%, #f0e098 100%);
}

body.home .cap-card:nth-child(4) .cap-photo .photo-placeholder {
  background: linear-gradient(135deg, #f7d4dd 0%, #e8b8c4 100%);
}

body.home .cap-card:nth-child(5) .cap-photo .photo-placeholder {
  background: linear-gradient(135deg, #e8d4f0 0%, #d0b8e0 100%);
}

body.home .cap-card:nth-child(6) .cap-photo .photo-placeholder {
  background: linear-gradient(135deg, #d4e8f7 0%, #a8c8e0 100%);
}

body.home .cap-card:nth-child(7) .cap-photo .photo-placeholder {
  background: linear-gradient(135deg, #d4f0dd 0%, #a8d8b8 100%);
}

body.home .cap-card:nth-child(8) .cap-photo .photo-placeholder {
  background: linear-gradient(135deg, #fef3b0 0%, #e8d8a0 100%);
}

/* Stance */
body.home .stance {
  padding: 32px 40px 60px 88px;
  max-width: 1240px;
  margin: 0 auto;
}

body.home .stance-box {
  max-width: 840px;
  margin: 0 auto;
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.05);
  padding: 44px 40px;
  position: relative;
}

body.home .stance-box::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 36%;
  width: 90px;
  height: 22px;
  background: var(--cxp-tape);
  opacity: 0.6;
  transform: rotate(-1deg);
  box-shadow: 0 1px 3px var(--cxp-tape-shadow);
}

body.home .stance-red {
  position: absolute;
  top: -22px;
  right: 28px;
  font-family: var(--cxp-font-hand);
  font-size: 18px;
  font-weight: 600;
  color: var(--cxp-red);
  transform: rotate(2deg);
  background: var(--cxp-cream);
  padding: 2px 10px;
}

body.home .stance-illust {
  text-align: center;
  margin-bottom: 24px;
}

body.home .stance-box h3 {
  font-family: var(--cxp-font-mincho);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

body.home .stance-box p {
  font-size: 16px;
  line-height: 2.1;
  color: var(--cxp-ink-mid);
  margin-bottom: 14px;
}

body.home .stance-items {
  list-style: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed rgba(0, 0, 0, 0.06);
}

body.home .stance-items li {
  font-size: 15px;
  color: var(--cxp-ink-mid);
  line-height: 2.1;
  padding-left: 24px;
  position: relative;
}

body.home .stance-items li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--cxp-font-hand);
  font-size: 18px;
  font-weight: 700;
}

body.home .stance-items li:nth-child(1)::before {
  color: var(--cxp-blue);
}

body.home .stance-items li:nth-child(2)::before {
  color: var(--cxp-green);
}

body.home .stance-items li:nth-child(3)::before {
  color: var(--cxp-amber);
}

body.home .stance-items li:nth-child(4)::before {
  color: #7a5aaa;
}

/* CTA */
body.home .cta {
  padding: 80px 40px;
  text-align: center;
}

body.home .cta-photo {
  display: inline-block;
  margin-bottom: 28px;
}

body.home .cta-photo .polaroid {
  transform: rotate(-2deg);
}

body.home .cta h2 {
  font-family: var(--cxp-font-mincho);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 10px;
}

body.home .cta .sub {
  font-family: var(--cxp-font-hand);
  font-size: 22px;
  color: var(--cxp-amber);
  margin-bottom: 36px;
  display: inline-block;
  transform: rotate(-1deg);
}

body.home .cta .sub::before {
  content: "✍️ ";
}

body.home .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--cxp-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--cxp-font-ja);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 2px 3px 10px rgba(74, 122, 92, 0.25);
}

body.home .cta-btn:hover {
  background: var(--cxp-green-light);
  opacity: 1;
}

body.home .cta-link {
  display: block;
  margin-top: 16px;
  font-family: var(--cxp-font-hand);
  font-size: 18px;
  color: var(--cxp-ink-mid);
}

body.home .cta-link:hover {
  color: var(--cxp-blue);
  opacity: 1;
}

/* ==========================================
   About Page Styles
   ========================================== */

/* ── About Hero ── */
.cx-about .about-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 60px;
  position: relative;
  overflow: hidden;
}

.cx-about .about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 40%, rgba(69, 113, 160, 0.05) 0%, transparent 100%),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(184, 135, 46, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(74, 122, 92, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

.cx-about .about-hero-inner {
  max-width: 780px;
  position: relative;
}

.cx-about .about-title {
  font-family: var(--cxp-font-ja);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.5;
  color: var(--cxp-ink);
  margin-bottom: 20px;
}

.cx-about .about-x {
  font-family: var(--cxp-font-display);
  font-style: italic;
  color: var(--cxp-blue);
  position: relative;
}

.cx-about .about-x::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 8px;
  height: 14px;
  background: rgba(69, 113, 160, 0.12);
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: 2px;
}

.cx-about .about-lead {
  font-family: var(--cxp-font-hand);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--cxp-amber);
  margin-bottom: 24px;
  transform: rotate(-0.5deg);
  display: inline-block;
}

.cx-about .about-body {
  font-size: 16px;
  line-height: 2.3;
  color: var(--cxp-ink-mid);
  max-width: 640px;
  margin: 0 auto;
}

.cx-about .about-body strong {
  color: var(--cxp-ink);
  font-weight: 700;
}

/* ── About Section ── */
.cx-about .about-section {
  padding: 20px 40px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.cx-about .about-narrow {
  max-width: 840px;
  margin: 0 auto;
}

.cx-about .about-text {
  font-size: 15px;
  line-height: 2.1;
  color: var(--cxp-ink-mid);
  margin-bottom: 12px;
}

.cx-about .about-text strong {
  color: var(--cxp-ink);
}

/* ── Three-column pills ── */
.cx-about .about-three-col {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cx-about .about-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--pill-clr, var(--cxp-blue));
  padding: 12px 18px;
  flex: 1;
  min-width: 200px;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cx-about .about-pill:hover {
  transform: translateY(-3px);
  box-shadow: 3px 5px 14px rgba(0, 0, 0, 0.07);
}

.cx-about .about-pill-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.cx-about .about-pill-label {
  font-family: var(--cxp-font-ja);
  font-size: 14px;
  font-weight: 700;
  color: var(--cxp-ink);
}

/* ── Chip row (used in lineage, etc.) ── */
.cx-about .about-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

/* ── Strength cards grid ── */
.cx-about .about-strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.cx-about .about-str-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(0, 0, 0, 0.08);
  padding: 18px 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--cxp-ink-mid);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.cx-about .about-str-card:hover {
  transform: translateY(-3px) rotate(0deg) !important;
  box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.85);
}

.cx-about .about-str-card strong {
  display: block;
  font-family: var(--cxp-font-ja);
  color: var(--cxp-ink);
  margin-bottom: 2px;
}

.cx-about .about-str-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

/* ── Ecosystem cards ── */
.cx-about .about-eco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cx-about .about-eco-card {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.04);
  padding: 20px 18px;
  position: relative;
  transition: transform 0.3s;
}

.cx-about .about-eco-card:hover {
  transform: translateY(-2px) rotate(0deg) !important;
}

.cx-about .about-eco-card h4 {
  font-family: var(--cxp-font-ja);
  font-size: 16px;
  font-weight: 700;
  color: var(--cxp-ink);
  margin-bottom: 6px;
}

.cx-about .about-eco-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--cxp-ink-mid);
}

/* ── Postit pink ── */
body.home .postit-wide.postit-pink {
  background: #fce4ec;
}

/* ── About photo strip ── */
.cx-about .about-photo-strip {
  max-width: 1240px;
  margin: 10px auto 20px;
  padding: 0 40px;
  display: flex;
  align-items: end;
  gap: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cx-about .about-photo-strip::-webkit-scrollbar {
  display: none;
}

.cx-about .about-photo-strip-alt {
  justify-content: flex-end;
}

/* ── Hero decorations ── */
.cx-about .about-hero-deco {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.cx-about .about-hero-pol-1 {
  position: absolute;
  top: 15%;
  left: 5%;
  transform: rotate(-4deg);
  opacity: 0.85;
}

.cx-about .about-hero-pol-2 {
  position: absolute;
  bottom: 18%;
  right: 6%;
  opacity: 0.8;
}

/* ── Name row (side-by-side) ── */
.cx-about .about-name-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cx-about .about-name-photo {
  flex-shrink: 0;
}

/* ── Lineage row (photo + board) ── */
.cx-about .about-lineage-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cx-about .about-lineage-photo {
  flex-shrink: 0;
}

/* ── Deliverables row ── */
.cx-about .about-deliv-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cx-about .about-deliv-photos {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* ── CTA photos ── */
.cx-about .about-cta-photos {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 28px;
}

/* ── Howto section ── */
.cx-about .about-howto {
  padding-top: 10px;
  padding-bottom: 36px;
}

/* Bubble intro */
.cx-about .howto-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
}

.cx-about .howto-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cxp-white-card);
  border: 2px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.06);
  animation: cx-about-float 3s ease-in-out infinite;
}

@keyframes cx-about-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cx-about .howto-bubble {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.05);
  padding: 18px 22px;
  border-radius: 2px 14px 14px 14px;
  font-size: 15px;
  line-height: 2;
  color: var(--cxp-ink-mid);
  position: relative;
  max-width: 480px;
}

.cx-about .howto-bubble strong {
  color: var(--cxp-ink);
}

.cx-about .howto-bubble::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--cxp-white-card);
}

/* Howto track */
.cx-about .howto-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 32px;
}

.cx-about .howto-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cx-about .howto-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--h-clr, var(--cxp-blue));
  color: #fff;
  font-family: var(--cxp-font-display);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.cx-about .howto-card {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.05);
  padding: 18px 16px 16px;
  position: relative;
  width: 100%;
  max-width: 260px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cx-about .howto-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.08);
}

.cx-about .howto-card-title {
  font-family: var(--cxp-font-ja);
  font-size: 15px;
  font-weight: 700;
  color: var(--cxp-ink);
  margin-bottom: 4px;
}

.cx-about .howto-card-sub {
  font-family: var(--cxp-font-hand);
  font-size: 14px;
  color: var(--cxp-ink-light);
  margin-bottom: 10px;
}

.cx-about .howto-card-ex {
  font-size: 12px;
  color: var(--cxp-ink-light);
  line-height: 1.7;
  background: rgba(69, 113, 160, 0.04);
  padding: 8px 10px;
  border-radius: 3px;
  font-style: italic;
}

/* Connector arrows */
.cx-about .howto-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  width: 36px;
  flex-shrink: 0;
}

.cx-about .howto-dash {
  width: 1px;
  height: 20px;
  border-left: 2px dashed var(--cxp-pencil);
  opacity: 0.3;
}

.cx-about .howto-arrow {
  font-family: var(--cxp-font-hand);
  font-size: 20px;
  font-weight: 700;
  color: var(--cxp-amber);
  margin: 4px 0;
  animation: cx-about-bounce 2s ease-in-out infinite;
}

@keyframes cx-about-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Reply bubble */
.cx-about .howto-reply {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  justify-content: flex-end;
}

.cx-about .howto-avatar-reply {
  animation-delay: 0.5s;
}

.cx-about .howto-bubble-reply {
  border-radius: 14px 2px 14px 14px;
  background: rgba(69, 113, 160, 0.06);
  border-color: rgba(69, 113, 160, 0.1);
  max-width: 520px;
}

.cx-about .howto-bubble-reply::before {
  left: auto;
  right: -8px;
  border-right: none;
  border-left: 8px solid rgba(69, 113, 160, 0.06);
}

.cx-about .howto-reply-hand {
  display: block;
  margin-top: 8px;
  font-family: var(--cxp-font-hand);
  font-size: 15px;
  color: var(--cxp-amber);
  transform: rotate(-0.5deg);
}

/* ── About dual-lane override ── */
.cx-about .dual-lane {
  padding: 20px 40px 36px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── About CTA override ── */
.cx-about .cta {
  padding: 60px 40px 80px;
}

/* Animation */
.fi {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fi.vis {
  opacity: 1;
  transform: translateY(0);
}

/* Inner pages */
.cx-page {
  background: var(--cxp-cream);
  min-height: 100vh;
  color: var(--cxp-ink);
}

.cx-page .cx-section {
  padding: 24px 0 56px;
}

.cx-page .cx-section-bg,
.cx-page .cx-section-bg-2 {
  background: transparent;
}

.cx-page-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 112px 40px 40px 88px;
}

.cx-page-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--cxp-blue-bg);
  color: var(--cxp-blue);
  font-family: var(--cxp-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cx-page-title {
  font-family: var(--cxp-font-mincho);
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 12px;
  color: var(--cxp-ink);
}

.cx-page-lead {
  max-width: 920px;
  font-size: 16px;
  line-height: 2;
  color: var(--cxp-ink-mid);
}

.cx-page-results {
  margin-bottom: 14px;
  color: var(--cxp-ink-light);
}

.cx-page-grid {
  gap: 20px;
}

.cx-page .cx-card,
.cx-page .cx-filter-panel,
.cx-page .cx-notice,
.cx-page .cx-table-wrapper {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

.cx-page .cx-card {
  padding: 24px;
}

.cx-page .cx-paper-card {
  background: linear-gradient(180deg, #fffdf8 0%, #fffaf3 100%);
}

.cx-page .cx-card:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.cx-page .cx-section-title,
.cx-page .cx-card h2,
.cx-page .cx-card h3,
.cx-page .cx-card h4 {
  color: var(--cxp-ink);
}

.cx-page .cx-section-subtitle,
.cx-page .cx-card-text,
.cx-page .cx-text-muted,
.cx-page .cx-card p,
.cx-page .cx-card li {
  color: var(--cxp-ink-mid);
}

.cx-page .cx-table {
  box-shadow: none;
  border-radius: 0;
}

.cx-page .cx-table th {
  background: #f3ede1;
}

.cx-page .cx-filter-panel {
  margin-bottom: 18px;
}

.cx-page .cx-filter-group legend {
  color: var(--cxp-ink);
}

.cx-page .cx-btn-brand {
  background: var(--cxp-blue);
}

.cx-page .cx-btn-secondary {
  border-color: rgba(69, 113, 160, 0.4);
  color: var(--cxp-blue);
}

.cx-page .cx-btn-secondary:hover {
  background: var(--cxp-blue-bg);
  color: var(--cxp-blue);
}

.cx-page .cx-badge {
  background: #f0ebe2;
  color: var(--cxp-ink-mid);
}

.cx-page .cx-badge-accent {
  background: #fef3b0;
  color: #8a6118;
}

.cx-page .cx-badge-brand {
  background: rgba(69, 113, 160, 0.15);
  color: var(--cxp-blue);
}

.cx-page .cx-philosophy-section {
  background: var(--cxp-white-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  padding: 24px;
  margin-bottom: 18px;
}

.cx-page .cx-philosophy-section h2 {
  margin-bottom: 12px;
}

.cx-page .cx-philosophy-section h3 {
  margin-top: 14px;
}

.cx-page .cx-philosophy-section p:last-child {
  margin-bottom: 0;
}

.cx-page .cx-paper {
  padding: 12px;
}

.cx-page .cx-back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cxp-blue);
  font-size: 14px;
  font-weight: 600;
}

.cx-page .cx-back-link::before {
  content: "← ";
}

.cx-page .cx-hero-badges {
  margin-top: 8px;
}

.cx-detail-card {
  overflow: hidden;
}

.cx-rich {
  line-height: 1.9;
  color: var(--cxp-ink-mid);
}

.cx-rich p:last-child {
  margin-bottom: 0;
}

.cx-page ul.cx-rich {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cx-page ul.cx-rich li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
}

.cx-page ul.cx-rich li:last-child {
  margin-bottom: 0;
}

.cx-page ul.cx-rich li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--cxp-blue);
}

.cx-member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cx-member-card {
  text-align: center;
}

.cx-member-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #d4e8f7 0%, #f7f3eb 100%);
  border: 1px solid rgba(69, 113, 160, 0.2);
}

.cx-member-role {
  font-family: var(--cxp-font-hand);
  font-size: 18px;
  color: var(--cxp-blue);
  margin-bottom: 8px;
}

.cx-inline-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cx-card-ph {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e2d8 0%, #d8d2c8 100%);
}

.cx-card-ph span {
  font-size: 34px;
}

/* Responsive */
@media (max-width: 960px) {
  body.admin-bar .cx-header {
    top: 46px;
  }

  body.admin-bar .cx-nav-mobile {
    top: 104px;
  }

  .cx-header-inner {
    padding: 0 16px;
  }

  .cx-nav {
    display: none;
  }

  .cx-mobile-toggle {
    display: block;
  }

  body.home::after {
    left: 24px;
  }

  body:not(.home)::after {
    left: 24px;
  }

  body.home .hero,
  body.home .dual-lane,
  body.home .cap,
  body.home .stance,
  body.home .photo-gallery,
  body.home .visual-strip,
  body.home .divider-hand,
  body.home .home-block,
  body.home .home-inline-cta {
    padding-left: 40px;
    padding-right: 40px;
  }

  .cx-footer {
    padding-left: 40px;
  }

  body.home .hero {
    grid-template-columns: 1fr;
  }

  body.home .hero-photos {
    display: none;
  }

  body.home .lanes-c {
    grid-template-columns: 1fr;
  }

  body.home .lane-c-mid {
    flex-direction: row;
    padding: 10px 0;
  }

  body.home .lane-c-mid .dashed {
    width: auto;
    height: 0;
    border-left: 0;
    border-top: 2px dashed var(--cxp-pencil);
    flex: 1;
    opacity: 0.2;
  }

  body.home .cap-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  body.home .visual-strip {
    grid-template-columns: 1fr;
  }

  body.home .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  body.home .concept-grid,
  body.home .fit-grid {
    grid-template-columns: 1fr;
  }

  .cx-member-grid {
    grid-template-columns: 1fr;
  }

  body.home .process-track {
    flex-direction: column;
    gap: 8px;
  }

  body.home .process-track::before {
    display: none;
  }

  body.home .p-node {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    text-align: left;
    gap: 0 12px;
    align-items: center;
  }

  body.home .p-num {
    grid-row: 1 / 3;
    margin: 0;
  }

  body.home .p-desc {
    grid-column: 2;
  }

  .cx-page-hero {
    padding-left: 40px;
  }
}

@media (max-width: 600px) {
  body.home::after {
    display: none;
  }

  body:not(.home)::after {
    display: none;
  }

  body.home .hero,
  body.home .dual-lane,
  body.home .cap,
  body.home .stance,
  body.home .photo-gallery,
  body.home .visual-strip,
  body.home .divider-hand,
  body.home .home-block,
  body.home .home-inline-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cx-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.home .cap-cards {
    grid-template-columns: 1fr;
  }

  body.home .photo-gallery {
    grid-template-columns: 1fr;
  }

  body.home .lane-body {
    padding: 22px 18px 26px;
  }

  body.home .stance-box {
    padding: 32px 22px;
  }

  .cx-page-hero {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 92px;
  }

  body.admin-bar .cx-page-hero {
    padding-top: 122px;
  }

  .cx-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── About responsive 960 ── */
@media (max-width: 960px) {
  .cx-about .about-hero {
    padding: 120px 28px 48px;
    min-height: 55vh;
  }

  .cx-about .about-hero-pol-1 {
    top: 10%;
    left: 2%;
    transform: rotate(-3deg) scale(0.75);
  }

  .cx-about .about-hero-pol-2 {
    bottom: 12%;
    right: 2%;
    transform: rotate(2deg) scale(0.7);
  }

  .cx-about .about-section,
  .cx-about .dual-lane {
    padding-left: 28px;
    padding-right: 28px;
  }

  .cx-about .about-photo-strip {
    padding: 0 28px;
    gap: 14px;
  }

  .cx-about .about-eco-grid {
    grid-template-columns: 1fr;
  }

  .cx-about .about-three-col {
    flex-direction: column;
  }

  .cx-about .about-pill {
    min-width: 0;
  }

  .cx-about .about-name-row,
  .cx-about .about-lineage-row,
  .cx-about .about-deliv-row {
    flex-direction: column;
  }

  .cx-about .about-name-photo,
  .cx-about .about-lineage-photo {
    align-self: center;
  }

  .cx-about .about-deliv-photos {
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cx-about .howto-track {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .cx-about .howto-connector {
    flex-direction: row;
    width: auto;
    height: 36px;
    padding-top: 0;
    gap: 4px;
  }

  .cx-about .howto-dash {
    width: 20px;
    height: 1px;
    border-left: none;
    border-top: 2px dashed var(--cxp-pencil);
  }

  .cx-about .howto-arrow {
    transform: rotate(90deg);
  }

  @keyframes cx-about-bounce {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(4px); }
  }

  .cx-about .howto-card {
    max-width: 100%;
  }
}

/* ── About responsive 600 ── */
@media (max-width: 600px) {
  .cx-about .about-hero {
    padding: 100px 20px 36px;
    min-height: 50vh;
  }

  .cx-about .about-hero-deco {
    display: none;
  }

  .cx-about .about-section,
  .cx-about .dual-lane,
  .cx-about .divider-hand {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cx-about .about-photo-strip {
    padding: 0 20px;
    gap: 12px;
  }

  .cx-about .about-strength-grid {
    grid-template-columns: 1fr;
  }

  .cx-about .about-eco-grid {
    grid-template-columns: 1fr;
  }

  .cx-about .about-body {
    font-size: 14px;
    line-height: 2;
  }

  .cx-about .howto-intro,
  .cx-about .howto-reply {
    gap: 10px;
  }

  .cx-about .howto-avatar {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .cx-about .howto-bubble {
    font-size: 14px;
  }

  .cx-about .about-cta-photos {
    flex-direction: column;
    align-items: center;
  }

  .cx-about .cta {
    padding: 40px 20px 60px;
  }
}
