/*
Theme Name: EIGHT Corporate
Theme URI: https://88eight88.com
Author: EIGHT
Author URI: https://88eight88.com
Description: EIGHT コーポレートサイト専用カスタムテーマ。ものづくり・EC・AIの3事業を軸にした現場実証型事業会社のブランドを体現します。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Proprietary
License URI: https://88eight88.com
Text Domain: eight-corporate
*/

/* ==========================================================================
   EIGHT Corporate Design System
   Source: eight-corporate-site.zip (package design tokens)
   ========================================================================== */

:root {
  /* Base colors */
  --background: #FFFFFF;
  --offwhite: #F7F7F5;
  --surface: #EFEFEC;
  --border: #D9D9D4;
  --input: #D9D9D4;

  /* Text hierarchy */
  --foreground: #1E1E1C;
  --text-sub: #575753;
  --text-muted: #7A7A75;

  /* Brand accent — grounded warm terracotta */
  --brand: #B5622A;
  --brand-foreground: #FAFAFA;

  /* Primary = deep charcoal */
  --primary: #3A3A38;
  --primary-foreground: #FAFAFA;

  /* Secondary */
  --secondary: #EFEFEC;
  --secondary-foreground: #3A3A38;

  /* Muted */
  --muted: #F7F7F5;
  --muted-foreground: #7A7A75;

  /* Accent */
  --accent: #EFEFEC;
  --accent-foreground: #3A3A38;

  /* Status labels */
  --status-live-bg: #E8F5E9;
  --status-live-fg: #2E7D32;
  --status-proving-bg: #FFF8E1;
  --status-proving-fg: #F57F17;
  --status-demo-bg: #E3F2FD;
  --status-demo-fg: #1565C0;
  --status-dev-bg: #EFEFEC;
  --status-dev-fg: #575753;
  --status-new-bg: #FFF3E0;
  --status-new-fg: #E65100;

  /* Spacing */
  --radius: 0.5rem;
  --radius-sm: 0.3rem;
  --radius-md: 0.4rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.7rem;
  --radius-2xl: 0.9rem;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'palt' 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.ec-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .ec-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ec-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.ec-container--narrow {
  max-width: 800px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.ec-heading-xl {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.ec-heading-lg {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--foreground);
}

.ec-heading-md {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
}

.ec-heading-sm {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
}

.ec-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ec-body {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-sub);
}

.ec-body-sm {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==========================================================================
   Header
   ========================================================================== */

.ec-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ec-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.ec-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .ec-header__inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ec-header__inner {
    padding: 0 2rem;
  }
}

.ec-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ec-header__logo-mark {
  width: 28px;
  height: 28px;
  background-color: var(--foreground);
  color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.ec-nav {
  display: none;
}

@media (min-width: 1024px) {
  .ec-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.ec-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.ec-nav__link:hover {
  color: var(--foreground);
}

.ec-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ec-btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.ec-btn-contact:hover {
  opacity: 0.85;
}

.ec-btn-contact:active {
  transform: scale(0.97);
}

/* Mobile menu toggle */
.ec-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 1024px) {
  .ec-menu-toggle {
    display: none;
  }
}

.ec-menu-toggle span {
  display: block;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile nav drawer */
.ec-mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  z-index: 99;
  padding: 1.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.ec-mobile-nav.open {
  display: block;
}

.ec-mobile-nav__link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.ec-mobile-nav__link:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ec-footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0 1.5rem;
}

.ec-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .ec-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.ec-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--background);
  margin-bottom: 0.75rem;
}

.ec-footer__brand-mark {
  width: 28px;
  height: 28px;
  background-color: var(--background);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}

.ec-footer__tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ec-footer__col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}

.ec-footer__link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.ec-footer__link:hover {
  color: var(--background);
}

.ec-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .ec-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ec-footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.ec-footer__privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.ec-footer__privacy:hover {
  color: rgba(255,255,255,0.8);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.ec-btn:active {
  transform: scale(0.97);
}

.ec-btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.ec-btn--primary:hover {
  opacity: 0.85;
  color: var(--primary-foreground);
}

.ec-btn--secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

.ec-btn--secondary:hover {
  background-color: var(--surface);
  color: var(--secondary-foreground);
}

.ec-btn--brand {
  background-color: var(--brand);
  color: var(--brand-foreground);
}

.ec-btn--brand:hover {
  opacity: 0.88;
  color: var(--brand-foreground);
}

.ec-btn--ghost {
  background-color: transparent;
  color: var(--text-sub);
  padding-left: 0;
  padding-right: 0;
}

.ec-btn--ghost:hover {
  color: var(--foreground);
}

.ec-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.ec-btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* Arrow icon */
.ec-btn .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.ec-btn:hover .arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Section Layout
   ========================================================================== */

.ec-section {
  padding: 5rem 0;
}

.ec-section--sm {
  padding: 3rem 0;
}

.ec-section--lg {
  padding: 6rem 0;
}

.ec-section--offwhite {
  background-color: var(--offwhite);
}

.ec-section--surface {
  background-color: var(--surface);
}

.ec-section--dark {
  background-color: var(--foreground);
  color: var(--background);
}

.ec-section-header {
  margin-bottom: 3rem;
}

.ec-section-header--center {
  text-align: center;
}

/* ==========================================================================
   Section Heading Component
   ========================================================================== */

.ec-section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ec-section-heading__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.ec-section-heading__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--foreground);
}

.ec-section-heading--dark .ec-section-heading__label {
  color: rgba(255,255,255,0.5);
}

.ec-section-heading--dark .ec-section-heading__title {
  color: var(--background);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.ec-hero {
  padding-top: calc(60px + 3.5rem);
  padding-bottom: 3.5rem;
  background-color: var(--offwhite);
  border-bottom: 1px solid var(--border);
}

.ec-hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ec-hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}

.ec-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background-color: var(--background);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}

.ec-hero__title {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.ec-hero__lead {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-sub);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.ec-hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .ec-hero__cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.ec-hero__sub-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.ec-hero__sub-cta a {
  color: var(--brand);
  text-decoration: none;
}

.ec-hero__sub-cta a:hover {
  text-decoration: underline;
}

.ec-hero__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ec-hero__note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ec-hero__note a:hover {
  color: var(--text-sub);
}

.ec-hero__image-wrap {
  position: relative;
}

.ec-hero__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ec-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-hero__badge-card {
  display: none;
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 11rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (min-width: 640px) {
  .ec-hero__badge-card {
    display: block;
  }
}

.ec-hero__badge-card-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.ec-hero__badge-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.ec-hero__badge-card-sub {
  font-size: 0.6875rem;
  color: var(--text-sub);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.ec-stats {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.ec-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

@media (min-width: 768px) {
  .ec-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ec-stats__item {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ec-stats__item:nth-child(2n) {
  border-right: none;
}

@media (min-width: 768px) {
  .ec-stats__item:nth-child(2n) {
    border-right: 1px solid var(--border);
  }
  .ec-stats__item:last-child {
    border-right: none;
  }
}

.ec-stats__item:nth-last-child(-n+2) {
  border-bottom: none;
}

@media (min-width: 768px) {
  .ec-stats__item:nth-last-child(-n+4) {
    border-bottom: none;
  }
}

.ec-stats__value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.ec-stats__value span {
  font-size: 0.875em;
  color: var(--brand);
}

.ec-stats__label {
  font-size: 0.8125rem;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
}

.ec-stats__note {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Businesses Section
   ========================================================================== */

.ec-businesses {
  padding: 5rem 0;
}

.ec-businesses__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .ec-businesses__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ec-business-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ec-business-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ec-business-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--surface);
}

.ec-business-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ec-business-card:hover .ec-business-card__image img {
  transform: scale(1.03);
}

.ec-business-card__body {
  padding: 1.5rem;
}

.ec-business-card__key {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.ec-business-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.625rem;
}

.ec-business-card__lead {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 1rem;
}

.ec-business-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.ec-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  color: var(--text-sub);
}

.ec-business-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.15s ease;
}

.ec-business-card__cta:hover {
  gap: 0.5rem;
  color: var(--foreground);
}

/* ==========================================================================
   Difference Section
   ========================================================================== */

.ec-difference {
  padding: 5rem 0;
  background-color: var(--offwhite);
}

.ec-difference__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .ec-difference__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ec-diff-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.ec-diff-card__num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.ec-diff-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.ec-diff-card__body {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-sub);
}

/* ==========================================================================
   Cases Section
   ========================================================================== */

.ec-cases {
  padding: 5rem 0;
}

.ec-cases__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .ec-cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ec-cases__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ec-case-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.ec-case-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.ec-case-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.ec-case-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.4;
}

.ec-case-card__body {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 1rem;
}

.ec-case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* Status Badge */
.ec-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.ec-status::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.ec-status--live {
  background-color: var(--status-live-bg);
  color: var(--status-live-fg);
}

.ec-status--proving {
  background-color: var(--status-proving-bg);
  color: var(--status-proving-fg);
}

.ec-status--demo {
  background-color: var(--status-demo-bg);
  color: var(--status-demo-fg);
}

.ec-status--dev {
  background-color: var(--status-dev-bg);
  color: var(--status-dev-fg);
}

.ec-status--new {
  background-color: var(--status-new-bg);
  color: var(--status-new-fg);
}

/* ==========================================================================
   Concierge Section
   ========================================================================== */

.ec-concierge {
  padding: 4rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ec-concierge__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .ec-concierge__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ec-concierge__title {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.ec-concierge__body {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 32rem;
}

/* ==========================================================================
   Initiatives Teaser
   ========================================================================== */

.ec-initiatives {
  padding: 5rem 0;
  background-color: var(--offwhite);
}

.ec-initiatives__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ec-initiatives__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.ec-initiatives__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background-color: var(--status-new-bg);
  color: var(--status-new-fg);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
}

.ec-initiatives__title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.ec-initiatives__body {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

.ec-initiatives__card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.ec-initiatives__card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.ec-initiatives__card-body {
  font-size: 0.8125rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */

.ec-contact-cta {
  padding: 5rem 0;
  background-color: var(--foreground);
  color: var(--background);
  text-align: center;
}

.ec-contact-cta__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

.ec-contact-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--background);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.ec-contact-cta__body {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.ec-contact-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .ec-contact-cta__actions {
    flex-direction: row;
  }
}

.ec-btn--outline-white {
  background-color: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}

.ec-btn--outline-white:hover {
  background-color: rgba(255,255,255,0.08);
  color: var(--background);
  border-color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Page Hero (inner pages)
   ========================================================================== */

.ec-page-hero {
  padding-top: calc(60px + 3rem);
  padding-bottom: 3rem;
  background-color: var(--offwhite);
  border-bottom: 1px solid var(--border);
}

.ec-page-hero__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.ec-page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}

.ec-page-hero__lead {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 36rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.ec-contact-section {
  padding: 5rem 0;
}

.ec-contact-section__inner {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .ec-contact-section__inner {
    grid-template-columns: 1fr 1.5fr;
  }
}

.ec-contact-info__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.ec-contact-info__body {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

.ec-contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.ec-contact-info__item:last-child {
  border-bottom: 1px solid var(--border);
}

.ec-contact-info__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ec-contact-info__value {
  font-size: 0.9375rem;
  color: var(--foreground);
}

/* Form styles */
.ec-form {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.ec-form__field {
  margin-bottom: 1.25rem;
}

.ec-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.ec-form__label .required {
  color: #C0392B;
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

.ec-form__input,
.ec-form__select,
.ec-form__textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--foreground);
  background-color: var(--background);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.ec-form__input:focus,
.ec-form__select:focus,
.ec-form__textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 98, 42, 0.12);
}

.ec-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.ec-form__submit {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.ec-form__submit:hover {
  opacity: 0.85;
}

.ec-form__submit:active {
  transform: scale(0.98);
}

.ec-form__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* CF7 overrides */
.wpcf7-form .ec-form__input,
.wpcf7-form .ec-form__select,
.wpcf7-form .ec-form__textarea {
  width: 100%;
}

.wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #C0392B;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.wpcf7-mail-sent-ok {
  background-color: var(--status-live-bg);
  color: var(--status-live-fg);
  border: 1px solid var(--status-live-fg);
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background-color: #FFF5F5;
  color: #C0392B;
  border: 1px solid #C0392B;
}

/* ==========================================================================
   Company Info Table
   ========================================================================== */

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

.ec-company-table tr {
  border-bottom: 1px solid var(--border);
}

.ec-company-table th {
  width: 8rem;
  padding: 1rem 1rem 1rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .ec-company-table th {
    width: 10rem;
  }
}

.ec-company-table td {
  padding: 1rem 0;
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.7;
}

/* ==========================================================================
   Privacy Policy
   ========================================================================== */

.ec-prose {
  max-width: 48rem;
}

.ec-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.ec-prose h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.ec-prose p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 1rem;
}

.ec-prose ul, .ec-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.ec-prose ul li {
  list-style: disc;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 0.375rem;
}

.ec-prose ol li {
  list-style: decimal;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 0.375rem;
}

.ec-prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   AI Concierge FAB
   ========================================================================== */

.ec-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.ec-fab__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.ec-fab__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  color: var(--primary-foreground);
}

.ec-fab__btn:active {
  transform: scale(0.97);
}

.ec-fab__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ec-fab__tooltip {
  display: none;
  background-color: var(--foreground);
  color: var(--background);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.ec-404 {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  text-align: center;
}

.ec-404__code {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--surface);
  line-height: 1;
  margin-bottom: 1rem;
}

.ec-404__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.ec-404__body {
  font-size: 0.9375rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.ec-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Animations */
@keyframes ec-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ec-animate-in {
  animation: ec-fade-in 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Scroll reveal */
.ec-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.ec-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.ec-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.ec-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.ec-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 60ms; }
.ec-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 120ms; }
.ec-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 180ms; }
.ec-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 240ms; }
.ec-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 300ms; }

/* Responsive helpers */
.ec-hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .ec-hide-mobile {
    display: block;
  }
}

.ec-hide-desktop {
  display: block;
}

@media (min-width: 768px) {
  .ec-hide-desktop {
    display: none;
  }
}

/* WordPress admin bar offset */
.admin-bar .ec-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .ec-header {
    top: 46px;
  }
}

.admin-bar .ec-hero,
.admin-bar .ec-page-hero {
  padding-top: calc(60px + 32px + 3.5rem);
}

@media screen and (max-width: 782px) {
  .admin-bar .ec-hero,
  .admin-bar .ec-page-hero {
    padding-top: calc(60px + 46px + 3rem);
  }
}

/* ============================================================
   EIGHT Corporate — Phase 1 追加スタイル
   事例詳細・EIGHT LAB・パンくず・フィルター
   Version: 1.0.0 (2026-07-20)
   ============================================================ */

/* --- パンくずリスト --- */
.ec-breadcrumb {
  margin-bottom: 1.5rem;
}
.ec-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.ec-breadcrumb__item a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}
.ec-breadcrumb__item a:hover {
  color: var(--brand);
}
.ec-breadcrumb__item + .ec-breadcrumb__item::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}
.ec-breadcrumb__item--current {
  color: var(--foreground);
}

/* --- 事例詳細セクション --- */
.ec-case-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.ec-case-section:last-child {
  border-bottom: none;
}
.ec-case-section--highlight {
  background-color: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: none;
  margin: 2.5rem 0;
}
.ec-case-section__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}
.ec-case-section__num {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--brand);
  letter-spacing: 0.05em;
  border: 1px solid var(--brand);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
}
.ec-case-section__body p {
  margin-bottom: 0.875rem;
  line-height: 1.8;
}
.ec-case-section__body p:last-child {
  margin-bottom: 0;
}
.ec-case-section__body ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}
.ec-case-section__body ul li {
  margin-bottom: 0.375rem;
  line-height: 1.7;
}

/* --- 事例一覧フィルター --- */
.ec-cases-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.ec-filter-btn {
  padding: 0.4375rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 100px;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted-foreground);
  font-family: var(--font-sans);
}
.ec-filter-btn:hover,
.ec-filter-btn.active {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* --- 事例カードグリッド --- */
.ec-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .ec-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ec-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ec-case-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.ec-case-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.ec-case-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}
.ec-case-card__num {
  font-size: 0.6875rem;
  font-family: var(--font-mono, monospace);
  color: var(--muted-foreground);
  letter-spacing: 0.1em;
}
.ec-case-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  font-family: var(--font-serif);
  margin: 0;
}
.ec-case-card__summary {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  flex: 1;
}
.ec-case-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.ec-case-card__metric {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.ec-case-card__metric strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.02em;
}
.ec-case-card__arrow {
  font-size: 0.8125rem;
  color: var(--brand);
  font-weight: 600;
  margin-top: auto;
}

/* --- EIGHT LABページ --- */
.ec-lab-intro {
  padding: 2rem 0;
}
.ec-lab-intro__title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
}
.ec-lab-intro__body {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.ec-lab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .ec-lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ec-lab-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ec-lab-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  background: var(--background);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ec-lab-card--concept {
  background: var(--surface);
  border-style: dashed;
}
.ec-lab-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}
.ec-lab-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin: 0;
  line-height: 1.5;
}
.ec-lab-card__body {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  flex: 1;
}
.ec-lab-card__status {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border-left: 2px solid var(--brand);
}
.ec-lab-card--concept .ec-lab-card__status {
  background: var(--background);
}
.ec-lab-card__status-label {
  display: block;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.ec-lab-card__link {
  font-size: 0.8125rem;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.ec-lab-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ec-lab-policy {
  padding: 2rem 0;
}
.ec-lab-policy__title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 1.25rem;
}
.ec-lab-policy__list {
  padding-left: 1.25rem;
  margin: 0;
}
.ec-lab-policy__list li {
  margin-bottom: 0.625rem;
  line-height: 1.75;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* --- ナビゲーション更新（実績・事例 / EIGHT LAB） --- */
.ec-nav__item--lab .ec-nav__link {
  color: var(--brand);
}
.ec-nav__item--lab .ec-nav__link:hover {
  color: var(--brand-dark, #1a5c3a);
}

/* --- 事例カード非表示（フィルター） --- */
.ec-case-card[data-hidden="true"] {
  display: none;
}

/* --- コンテナ narrow バリアント --- */
.ec-container--narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- ページヒーロー lead テキスト --- */
.ec-page-hero__lead {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 600px;
}

