@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;700&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  --bg-primary: #fafaf7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f0eb;
  --text-primary: #1a1a1a;
  --text-secondary: #5f5e5a;
  --text-tertiary: #888780;
  --text-quaternary: #b4b2a9;
  --border-primary: #d4d4d0;
  --border-secondary: #e8e6de;
  --border-tertiary: #f1f0eb;
  --brand: #00949d;
  --brand-hover: #007a82;
  --brand-active: #006168;
  --brand-light: rgba(0, 148, 157, 0.12);
  --brand-glow: rgba(0, 148, 157, 0.55);
  --footer-bg: #1a2e28;
  --shadow-elevated: 0 8px 24px rgba(26,26,26,0.08);
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes text-rise {
  from { clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(10px); }
  to { clip-path: inset(0 0 0 0); opacity: 1; transform: translateY(0); }
}
@keyframes thread-rise {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes underline-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes ring-out {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 800ms cubic-bezier(0.22,0.61,0.36,1), transform 800ms cubic-bezier(0.22,0.61,0.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.text-rise { display: block; animation: text-rise 950ms cubic-bezier(0.22,0.61,0.36,1) both; }
.thread { transform-origin: bottom; animation: thread-rise 2200ms cubic-bezier(0.22,0.61,0.36,1) 200ms both; }
.underline-anim { transform-origin: left; animation: underline-draw 900ms cubic-bezier(0.22,0.61,0.36,1) both; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999; pointer-events: none; }
.scroll-progress__bar { height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }

/* Ambient threads */
.ambient-thread { position: fixed; top: 0; bottom: 0; width: 1px; z-index: 0; pointer-events: none; }
.ambient-thread--1 { right: 8%; background: linear-gradient(to bottom, transparent, rgba(26,26,26,0.08) 20%, rgba(26,26,26,0.08) 80%, transparent); }
.ambient-thread--2 { right: 12%; background: linear-gradient(to bottom, transparent, rgba(26,26,26,0.05) 25%, rgba(26,26,26,0.05) 75%, transparent); }
.ambient-thread--brand { right: 8%; background: linear-gradient(to bottom, transparent, rgba(0,148,157,0.18) 40%, rgba(0,148,157,0.18) 60%, transparent); }
.ambient-halo {
  position: fixed; right: 3%; z-index: 0; height: 160px; width: 16%; pointer-events: none;
  background: radial-gradient(ellipse at 72% 50%, rgba(0,148,157,0.18) 0%, rgba(0,148,157,0.05) 40%, transparent 72%);
  top: calc(var(--scroll-ratio, 0%)); transform: translateY(-50%); transition: top 180ms linear;
}
.ambient-dot {
  position: fixed; right: 8%; z-index: 0; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: var(--brand); box-shadow: 0 0 18px var(--brand-glow);
  top: calc(var(--scroll-ratio, 0%)); transform: translate(-50%, -50%); transition: top 180ms linear;
}

/* ═══════════════════════════════════════
   BASE OVERRIDES
   ═══════════════════════════════════════ */
html { scroll-behavior: smooth; background: var(--bg-primary) !important; }
body,
html { background-image: none !important; }
body { background: var(--bg-primary) !important; color: var(--text-primary); font-family: var(--font-sans); }
body > *:not(.l-header):not(.l-content-wrap):not(.scroll-progress):not(.ambient-thread):not(.ambient-halo):not(.ambient-dot):not(script):not(noscript):not(#wpadminbar) {
  /* Hide any injected overlay divs from old theme */
}

/* Kill the old fixed gradient background */
.l-fixed-bg,
.l-fixed-bg::before,
.l-fixed-bg::after,
.l-fixed-bg .c-circle { display: none !important; opacity: 0 !important; visibility: hidden !important; }
body::before, body::after { background: none !important; }

/* Fix page-home absolute positioning from legacy CSS */
.l-content-wrap.page-home { position: relative !important; padding-top: 0 !important; }

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.l-header {
  background: rgba(250,250,247,0.92) !important;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: none !important;
  border-bottom: 1px solid var(--border-tertiary);
  position: sticky !important; top: 0 !important; z-index: 100 !important;
  height: 72px !important;
}
.c-header {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important; max-width: 1200px !important; margin: 0 auto !important;
  padding: 0 48px !important;
  height: 72px !important;
}
.c-header__logo {
  width: auto !important;
}
.c-header__nav {
  margin-left: auto !important;
}
.c-header__nav__list {
  display: flex !important; align-items: center !important;
  gap: 0 !important;
}
.c-header__nav__list li:not(:first-child) {
  margin-left: 28px !important;
}
.c-header__nav__list li a {
  color: var(--text-secondary) !important;
  transition: color 0.2s ease;
  font-size: 13px !important;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 4px 0 !important;
}
.c-header__nav__list li a:hover { color: var(--text-primary) !important; }
.c-header__nav__list li a::after { background: var(--brand) !important; }

/* Header Text Logo */
.c-header__logo--text {
  display: flex !important; align-items: center !important; gap: 0;
  text-decoration: none !important;
  width: auto !important; flex-shrink: 0;
}
.c-header__logo--text img { display: none !important; }
.logo-mark { display: none; }
.logo-word {
  font-family: var(--font-serif); font-size: 26px; font-weight: 600;
  color: var(--text-primary); letter-spacing: 0.12em; line-height: 1;
  position: relative;
}
/* Subtle brand accent — thin underline on the G */
.logo-word::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 16px; height: 2px;
  background: var(--brand); border-radius: 1px;
}

/* ═══════════════════════════════════════
   HERO (Front Page)
   ═══════════════════════════════════════ */
.l-fixed-bg { display: none !important; }

.p-main-visual {
  height: 100vh; display: flex; justify-content: center; align-items: center;
  background: var(--bg-primary) !important;
  position: relative; overflow: hidden;
}
.p-main-visual img { display: none; }

.hero-content { position: relative; z-index: 10; text-align: left; max-width: 820px; width: 90%; margin: 0 auto; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 40px;
}
.hero-eyebrow span { height: 1px; width: 32px; background: var(--border-primary); }
.hero-content h1 {
  font-family: var(--font-serif); font-size: clamp(36px, 6vw, 64px);
  font-weight: 500; line-height: 1.3; letter-spacing: 0.02em;
  color: var(--text-primary); position: relative;
}
.hero-content h1 .brand-text { color: var(--brand); position: relative; display: inline-block; }
.hero-content h1 .brand-text::after {
  content: ''; position: absolute; bottom: -0.1em; left: 0; right: 0;
  height: 2px; background: var(--brand);
  animation: underline-draw 900ms cubic-bezier(0.22,0.61,0.36,1) 4400ms both;
  transform-origin: left;
}
.hero-pillar {
  position: absolute; top: 12px; bottom: 12px; left: -24px; width: 2px;
  background: var(--brand); transform-origin: top;
  animation: thread-rise 1500ms cubic-bezier(0.22,0.61,0.36,1) 3000ms both;
}
/* Hero Tagline — refined serif with staggered reveal */
.hero-tagline {
  margin-top: 48px; font-family: var(--font-serif);
  font-size: 15px; font-weight: 400; line-height: 2;
  color: var(--text-tertiary); letter-spacing: 0.2em;
  max-width: 480px;
}
.hero-tagline__word {
  display: inline-block; overflow: hidden;
  animation: tagline-reveal 800ms cubic-bezier(0.22,0.61,0.36,1) both;
}
.hero-tagline__word:nth-child(1) { animation-delay: 4800ms; }
.hero-tagline__word:nth-child(2) { animation-delay: 5050ms; }

@keyframes tagline-reveal {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Hero Navigation — minimal text links */
.hero-nav {
  margin-top: 56px; display: flex; gap: 0;
  animation: reveal-up 700ms cubic-bezier(0.22,0.61,0.36,1) 5300ms both;
}
.hero-nav__link {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; position: relative;
  padding: 20px 0; border-top: 1px solid var(--border-secondary);
  width: 220px;
  transition: all 0.4s cubic-bezier(0.22,0.61,0.36,1);
}
.hero-nav__link:first-child {
  margin-right: 40px;
}
.hero-nav__link::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 0; height: 1px; background: var(--brand);
  transition: width 0.5s cubic-bezier(0.22,0.61,0.36,1);
}
.hero-nav__link:hover::before { width: 100%; }

.hero-nav__label {
  font-family: var(--font-serif); font-size: 18px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--text-primary);
  transition: color 0.3s; white-space: nowrap;
}
.hero-nav__desc {
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--text-quaternary);
  transition: color 0.3s; white-space: nowrap;
}
.hero-nav__arrow {
  display: block; width: 32px; height: 1px;
  background: var(--border-primary); position: relative;
  margin-left: auto; flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.22,0.61,0.36,1);
}
.hero-nav__arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 8px; height: 8px; border-right: 1px solid var(--border-primary);
  border-top: 1px solid var(--border-primary);
  transform: rotate(45deg);
  transition: all 0.4s cubic-bezier(0.22,0.61,0.36,1);
}
.hero-nav__link:hover .hero-nav__label { color: var(--brand); }
.hero-nav__link:hover .hero-nav__desc { color: var(--text-secondary); }
.hero-nav__link:hover .hero-nav__arrow {
  width: 40px; background: var(--brand);
  transform: translateX(4px);
}
.hero-nav__link:hover .hero-nav__arrow::after {
  border-color: var(--brand);
}

/* ═══════════════════════════════════════
   OPENING ANIMATION — Cinematic
   ═══════════════════════════════════════ */
.opening-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #0c1a1c;
  background-image: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,148,157,0.06) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.22,0.61,0.36,1);
}
.opening-overlay.is-done {
  opacity: 0; pointer-events: none;
}

/* Scene: stacks lines-area on top, copy below — no overlap */
.op-scene {
  display: flex; flex-direction: column; align-items: center;
  gap: 36px;
}

/* Lines container — self-contained box */
.op-lines {
  position: relative;
  width: 300px; height: 100px;
}

/* Vertical line — drops from top of container */
.op-line--v {
  position: absolute; top: 0; left: 50%;
  width: 1px; height: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,148,157,0.7) 40%, rgba(0,148,157,0.9) 100%);
  transform: translateX(-50%);
  animation: op-v-drop 700ms cubic-bezier(0.33,1,0.68,1) 200ms both;
}

/* Horizontal line — sweeps from center of container */
.op-line--h {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,148,157,0.6) 20%, rgba(0,148,157,0.8) 50%, rgba(0,148,157,0.6) 80%, transparent 100%);
  transform: translate(-50%, -50%);
  animation: op-h-sweep 600ms cubic-bezier(0.33,1,0.68,1) 650ms both;
}

/* Intersection glow — at the cross point */
.op-glow {
  position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,148,157,1);
  box-shadow:
    0 0 16px 6px rgba(0,148,157,0.4),
    0 0 48px 16px rgba(0,148,157,0.15),
    0 0 80px 30px rgba(0,148,157,0.06);
  opacity: 0;
  animation: op-glow-in 1.6s cubic-bezier(0.22,0.61,0.36,1) 850ms both;
}

/* Ring — expands from glow point */
.op-ring {
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0,148,157,0.5);
  opacity: 0;
  animation: op-ring-expand 1.4s cubic-bezier(0.22,0.61,0.36,1) 1100ms both;
}

/* Copy text — separate zone, no position: absolute */
.op-copy {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-serif); letter-spacing: 0.22em;
  text-transform: uppercase;
}
.op-copy__word {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.7);
  opacity: 0;
}
.op-copy__word--1 {
  animation: op-word-left 650ms cubic-bezier(0.22,0.61,0.36,1) 1350ms both;
}
.op-copy__word--2 {
  animation: op-word-right 650ms cubic-bezier(0.22,0.61,0.36,1) 1550ms both;
}
.op-copy__x {
  font-size: 16px; color: var(--brand); font-weight: 300;
  opacity: 0;
  text-shadow: 0 0 14px rgba(0,148,157,0.6);
  animation: op-x-in 550ms cubic-bezier(0.22,0.61,0.36,1) 1150ms both;
}

/* ——— Keyframes ——— */
@keyframes op-v-drop {
  0% { height: 0; opacity: 0; }
  15% { opacity: 1; }
  100% { height: 100px; opacity: 1; }
}
@keyframes op-h-sweep {
  0% { width: 0; opacity: 0; }
  15% { opacity: 1; }
  100% { width: 300px; opacity: 1; }
}
@keyframes op-glow-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 24px 10px rgba(0,148,157,0.35), 0 0 64px 24px rgba(0,148,157,0.12); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8);
    box-shadow: 0 0 20px 8px rgba(0,148,157,0.25), 0 0 48px 16px rgba(0,148,157,0.08); }
}
@keyframes op-ring-expand {
  0% { width: 8px; height: 8px; opacity: 0; border-width: 1.5px; }
  20% { opacity: 0.7; }
  100% { width: 180px; height: 180px; opacity: 0; border-width: 0.5px; }
}
@keyframes op-x-in {
  0% { opacity: 0; transform: scale(2.5) rotate(90deg); }
  60% { opacity: 1; transform: scale(1.05) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes op-word-left {
  0% { opacity: 0; transform: translateX(24px); letter-spacing: 0.1em; }
  100% { opacity: 1; transform: translateX(0); letter-spacing: 0.22em; }
}
@keyframes op-word-right {
  0% { opacity: 0; transform: translateX(-24px); letter-spacing: 0.1em; }
  100% { opacity: 1; transform: translateX(0); letter-spacing: 0.22em; }
}

/* ═══════════════════════════════════════
   SERVICE SECTION (Front Page)
   ═══════════════════════════════════════ */
.p-main-service {
  background: var(--bg-primary) !important; background-image: none !important;
  position: relative;
}
.p-main-service .c-box { padding: 120px 0 80px !important; }
.p-main-service__txtarea h2 { font-family: var(--font-serif) !important; color: var(--text-primary) !important; }
.p-main-service__txtarea p { color: var(--text-secondary) !important; }
.p-main-service__link a { color: var(--brand) !important; }
.p-main-service__link a::before { background: var(--brand) !important; }
.p-main-service__link a::after { border-color: transparent transparent transparent var(--brand) !important; }

/* ═══════════════════════════════════════
   NEWS SECTION (Front Page)
   ═══════════════════════════════════════ */
.p-main-news { background: var(--bg-secondary); }
.p-main-news .c-box { padding: 100px 0 !important; }
.p-main-news__left h3 { color: var(--text-primary) !important; font-family: var(--font-serif) !important; }
.p-main-news__left h3 span { color: var(--text-secondary) !important; }
.p-main-news__btn {
  border-color: var(--border-primary) !important; color: var(--text-primary) !important;
  transition: all 0.2s ease;
}
.p-main-news__btn:hover { border-color: var(--brand) !important; color: var(--brand) !important; }
.p-main-news__btn::before { background: var(--brand) !important; }
.p-main-news__btn::after { border-color: transparent transparent transparent var(--brand) !important; }
.c-main-news-item__head span { background: var(--brand) !important; }

/* Section Divider */
.section-divider { max-width: 960px; width: 92%; margin: 0 auto; height: 1px; background: var(--border-secondary); }

/* Section Eyebrow */
.section-eyebrow {
  display: flex; align-items: center; gap: 16px; margin-bottom: 40px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary);
}
.section-eyebrow__n { font-family: var(--font-serif); font-size: 13px; letter-spacing: 0.08em; color: var(--text-primary); }
.section-eyebrow__line { height: 1px; width: 40px; background: var(--border-primary); }

/* ═══════════════════════════════════════
   PAGE HEADERS
   ═══════════════════════════════════════ */
.c-page-head {
  background-color: var(--bg-primary) !important; background-image: none !important;
  box-shadow: none !important; border-bottom: 1px solid var(--border-secondary);
}
.c-page-head__content { min-height: 200px !important; padding: 60px 0 !important; }
.c-page-head__top h1 {
  font-family: var(--font-serif) !important; font-size: 48px !important;
  color: var(--text-primary) !important; letter-spacing: 0.04em !important;
}
.c-page-head__top h2 { color: var(--text-secondary) !important; }
.c-page-head__top::after { background: var(--brand) !important; width: 40px !important; }

/* ═══════════════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════════════ */
.c-section-head h2 {
  font-family: var(--font-serif) !important;
  color: var(--text-primary) !important;
}
.c-section-head h2::after { background: var(--brand) !important; }

/* ═══════════════════════════════════════
   SERVICE PAGE — Redesigned
   ═══════════════════════════════════════ */

/* Intro section */
.sv-intro { padding: 80px 0 0; }
.sv-intro__heading {
  font-family: var(--font-serif); font-size: clamp(26px, 4vw, 40px);
  font-weight: 500; line-height: 1.6; color: var(--text-primary);
  margin-bottom: 24px; letter-spacing: 0.04em;
}
.sv-intro__heading .brand-text { color: var(--brand); }
.sv-intro__desc {
  font-size: 15px; line-height: 2; color: var(--text-secondary);
  max-width: 640px; letter-spacing: 0.02em;
}

/* Service grid */
.sv-grid { padding: 64px 0 100px; }
.sv-grid .c-box__inner { display: flex; flex-direction: column; gap: 0; }

/* Service card — horizontal layout */
.sv-card {
  display: grid; grid-template-columns: 64px 72px 1fr 2px;
  align-items: start; gap: 0 28px;
  padding: 48px 0; border-bottom: 1px solid var(--border-secondary);
  position: relative;
  transition-delay: var(--delay, 0ms) !important;
}
.sv-card:first-child { border-top: 1px solid var(--border-secondary); }

/* Large number */
.sv-card__number {
  font-family: var(--font-serif); font-size: 40px; font-weight: 300;
  color: var(--border-primary); line-height: 1; padding-top: 4px;
  transition: color 0.4s ease;
}
.sv-card:hover .sv-card__number { color: var(--brand); }

/* Icon */
.sv-card__icon {
  width: 56px; height: 56px; color: var(--text-tertiary);
  padding: 4px; transition: color 0.4s ease;
}
.sv-card__icon svg { width: 100%; height: 100%; }
.sv-card:hover .sv-card__icon { color: var(--brand); }

/* Body */
.sv-card__body { padding-right: 32px; }
.sv-card__title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
  color: var(--text-primary); margin-bottom: 6px; letter-spacing: 0.04em;
}
.sv-card__subtitle {
  font-size: 12px; letter-spacing: 0.1em; color: var(--text-quaternary);
  text-transform: capitalize; display: block; margin-bottom: 16px;
}
.sv-card__desc {
  font-size: 14px; line-height: 1.9; color: var(--text-secondary);
  max-width: 520px; letter-spacing: 0.02em;
}

/* Accent bar — animates on hover */
.sv-card__accent {
  width: 2px; background: var(--brand); align-self: stretch;
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
}
.sv-card:hover .sv-card__accent { transform: scaleY(1); }

/* ═══════════════════════════════════════
   COMPANY PAGE
   ═══════════════════════════════════════ */
.p-company__block { background: var(--bg-primary) !important; }
.c-company-table th::before { background: var(--brand) !important; }
.c-company-table th { color: var(--text-primary); font-weight: 500; }
.c-company-table td { color: var(--text-secondary); }

/* ═══════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════ */
.p-contact__block { background: var(--bg-primary) !important; }
.c-contactform input[type=email]:focus,
.c-contactform input[type=text]:focus,
.c-contactform input[type=url]:focus,
.c-contactform textarea:focus,
.c-contactform select:focus {
  border-color: var(--brand) !important; outline: none;
  box-shadow: 0 0 0 3px var(--brand-light) !important;
}
.c-contactform input[type=submit] {
  background: var(--brand) !important; border-color: var(--brand) !important;
  transition: all 0.2s ease;
}
.c-contactform input[type=submit]:hover {
  background: var(--brand-hover) !important;
  box-shadow: 0 6px 20px -8px var(--brand-glow);
}

/* ═══════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════ */
.c-breadcrumb ul li a { color: var(--text-tertiary); }
.c-breadcrumb ul li a:hover { color: var(--brand); }

/* ═══════════════════════════════════════
   NEWS ARCHIVE
   ═══════════════════════════════════════ */
.c-archive-item--news { border-color: var(--border-secondary) !important; transition: border-color 0.3s; }
.c-archive-item--news:hover { border-color: var(--brand) !important; }
.c-archive-item--news__date { color: var(--brand) !important; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.l-footer {
  background: var(--footer-bg) !important;
  padding: 72px 0 40px !important;
  border-top: 1px solid rgba(0,148,157,0.2);
}

/* Footer grid */
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  max-width: 960px; width: 92%; margin: 0 auto;
  gap: 48px;
}

/* Footer brand column */
.footer-brand { flex-shrink: 0; }
.footer-logo {
  display: block; text-decoration: none !important; margin-bottom: 20px;
}
.footer-logo__svg {
  width: 100px; height: auto; display: block;
}
.footer-tagline {
  font-size: 12px; line-height: 1.8; color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

/* Footer links columns */
.footer-links {
  display: flex; gap: 56px;
}
.footer-links__heading {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 16px; font-weight: 400;
}
.footer-links__list li { margin-bottom: 10px; }
.footer-links__list li a {
  color: rgba(255,255,255,0.7) !important; font-size: 13px;
  text-decoration: none !important; transition: color 0.2s;
  letter-spacing: 0.02em;
}
.footer-links__list li a:hover { color: #fff !important; }

/* Footer bottom */
.footer-bottom {
  max-width: 960px; width: 92%; margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-copy {
  font-size: 11px !important; color: rgba(255,255,255,0.3) !important;
  font-style: normal; letter-spacing: 0.02em;
}

/* Legacy footer nav override */
.c-footer__nav { display: none !important; }
.c-footer__copy { display: none !important; }

/* ═══════════════════════════════════════
   SLIDE MENU
   ═══════════════════════════════════════ */
.c-slidemenu { background: var(--bg-primary) !important; }
.c-slidemenu__list li a { color: var(--text-primary) !important; }
.c-slidemenu__list li::after { background: var(--brand) !important; }

/* ═══════════════════════════════════════
   MESSAGE PAGE
   ═══════════════════════════════════════ */
.p-message__block { background: var(--bg-primary) !important; }
.c-message__content { background: var(--bg-secondary) !important; }

/* ═══════════════════════════════════════
   MISC
   ═══════════════════════════════════════ */
.c-post-content__title { border-color: var(--brand) !important; }
.c-post-content__title__second { border-color: var(--brand) !important; background: var(--brand-light) !important; }
.c-post-content__title__third { border-color: var(--brand) !important; }
.c-post-content__title__fourth { border-color: var(--brand) !important; }

/* ═══════════════════════════════════════
   FLOATING ORBS — Hero Background
   ═══════════════════════════════════════ */
.p-main-visual { position: relative; overflow: hidden; }

.orb-field {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Noise grain overlay for texture/depth */
.orb-field::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  z-index: 5;
  mix-blend-mode: overlay;
}

.hero-content { position: relative; z-index: 10; }

.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* ── Large teal orb — top right ── */
.orb--1 {
  width: 520px; height: 520px;
  top: -12%; right: -6%;
  background: radial-gradient(circle at 40% 40%, rgba(0,148,157,0.32) 0%, rgba(0,148,157,0.08) 50%, transparent 72%);
  filter: blur(45px);
  animation: orbFloat1 16s ease-in-out infinite;
}

/* ── Cyan orb — bottom left ── */
.orb--2 {
  width: 420px; height: 420px;
  bottom: -5%; left: -8%;
  background: radial-gradient(circle at 55% 55%, rgba(0,180,197,0.28) 0%, rgba(0,148,157,0.06) 55%, transparent 75%);
  filter: blur(50px);
  animation: orbFloat2 20s ease-in-out infinite;
}

/* ── Blue accent — center right ── */
.orb--3 {
  width: 320px; height: 320px;
  top: 35%; right: 10%;
  background: radial-gradient(circle at 50% 50%, rgba(74,144,196,0.22) 0%, rgba(0,148,157,0.05) 50%, transparent 72%);
  filter: blur(40px);
  animation: orbFloat3 24s ease-in-out infinite;
}

/* ── Small bright teal — top left ── */
.orb--4 {
  width: 240px; height: 240px;
  top: 8%; left: 15%;
  background: radial-gradient(circle at 50% 50%, rgba(0,168,180,0.25) 0%, rgba(0,148,157,0.04) 55%, transparent 75%);
  filter: blur(35px);
  animation: orbFloat4 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-60px, 50px) scale(1.06); }
  40% { transform: translate(-30px, 80px) scale(1.12); }
  60% { transform: translate(40px, 30px) scale(0.95); }
  80% { transform: translate(50px, -40px) scale(1.04); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(70px, -40px) scale(1.1); }
  50% { transform: translate(40px, -80px) scale(0.92); }
  75% { transform: translate(-30px, 30px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(-50px, 60px) scale(1.15); }
  60% { transform: translate(30px, -40px) scale(0.88); }
}
@keyframes orbFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, 45px) scale(1.1); }
  50% { transform: translate(-20px, 70px) scale(0.93); }
  75% { transform: translate(-35px, -30px) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

/* SP: scale down orbs */
@media screen and (max-width: 767px) {
  .orb--1 { width: 280px; height: 280px; }
  .orb--2 { width: 220px; height: 220px; }
  .orb--3 { width: 180px; height: 180px; }
  .orb--4 { width: 140px; height: 140px; }
}

/* ═══════════════════════════════════════
   PAGE HEAD — Sub-pages (Modern Overrides)
   ═══════════════════════════════════════ */
.c-page-head {
  background: var(--bg-primary) !important;
  background-image: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--border-secondary);
}
.c-page-head__content {
  min-height: 200px !important;
  padding: 60px 0 48px !important;
  background-image: none !important;
  display: flex; align-items: flex-end;
}
.c-page-head__top {
  padding-bottom: 0 !important;
}
.c-page-head__top::after {
  background: var(--brand) !important;
  width: 40px !important; height: 2px !important;
  bottom: -12px !important;
}
.c-page-head__top h1 {
  font-family: var(--font-serif) !important;
  font-size: 48px !important; font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  color: var(--text-primary) !important;
  line-height: 1.1 !important;
}
.c-page-head__top h2 {
  font-family: var(--font-sans) !important;
  font-size: 14px !important; font-weight: 400 !important;
  color: var(--text-tertiary) !important;
  letter-spacing: 0.1em !important;
  margin-top: 8px !important;
}

/* Breadcrumb modernization */
.l-breadcrumb {
  background: transparent !important;
  border-bottom: 1px solid var(--border-tertiary);
}
.c-breadcrumb {
  padding: 10px 0 !important; margin: 0 !important;
}
.c-breadcrumb ul li {
  font-size: 12px !important; color: var(--text-tertiary) !important;
}
.c-breadcrumb ul li a {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
}
.c-breadcrumb ul li a:hover {
  color: var(--brand) !important;
}

/* Company page modernization */
.p-company__block {
  background: var(--bg-primary) !important;
  padding-top: 60px !important;
}
.c-section-head {
  margin-bottom: 48px !important;
}
.c-section-head h2 {
  font-family: var(--font-serif) !important;
  font-size: 28px !important; font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  color: var(--text-primary) !important;
}
.c-section-head h2::after {
  background: var(--brand) !important;
  height: 2px !important; width: 32px !important;
}
.c-company-table {
  max-width: 800px !important; width: 90% !important;
}
.c-company-table th {
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
}
.c-company-table th::before {
  background: var(--brand) !important;
}
.c-company-table tr {
  border-color: var(--border-secondary) !important;
}

/* Archive pages (News/Recruit) modernization */
.p-archive {
  background: var(--bg-primary) !important;
}
.c-archive-item--news {
  border-color: var(--border-secondary) !important;
  background: var(--bg-secondary) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.c-archive-item--news:hover {
  box-shadow: var(--shadow-elevated) !important;
  transform: translateY(-2px);
}
.c-archive-item--news__date {
  color: var(--brand) !important;
  font-size: 14px !important;
}
.c-archive-item--news__ttl {
  color: var(--text-primary) !important;
  font-size: 15px !important; font-weight: 400 !important;
  line-height: 1.7 !important;
}
.c-archive-item--news__category {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  font-size: 12px !important;
  border-radius: 12px !important;
}
.c-archive-item--recruit {
  border-color: var(--border-secondary) !important;
  background: var(--bg-secondary) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.c-archive-item--recruit:hover {
  box-shadow: var(--shadow-elevated) !important;
  transform: translateY(-2px);
}
.c-archive-item--recruit__ttl {
  color: var(--text-primary) !important;
  font-weight: 400 !important;
}
.c-archive-item--recruit__btn {
  background: var(--bg-tertiary) !important;
  color: var(--text-secondary) !important;
  transition: background 0.2s ease;
}
.c-archive-item--recruit:hover .c-archive-item--recruit__btn {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
}

/* Category block modernization */
.c-category-block {
  background: var(--bg-tertiary) !important;
  border-radius: 8px !important;
}
.c-category-block__label {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}
.c-category-block__list__wrap {
  border-color: var(--border-secondary) !important;
}
.c-category-block__list__item a {
  background: var(--bg-secondary) !important;
  color: var(--text-secondary) !important;
  font-size: 13px !important;
  transition: all 0.2s ease;
}
.c-category-block__list__item a:hover {
  background: var(--brand) !important;
  color: #fff !important;
}

/* Pagination modernization */
.c-archive-pagination .page-numbers {
  border-color: var(--border-secondary) !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease;
}
.c-archive-pagination .page-numbers.current {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
.c-archive-pagination .page-numbers:hover:not(.current) {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

/* Page foot links modernization */
.c-page-foot {
  background: var(--bg-tertiary) !important;
}

/* Contact page modernization */
.p-contact__block {
  background: var(--bg-primary) !important;
}
.c-contactform__row__label {
  color: var(--text-primary) !important;
}
.c-contactform__row__value input[type=text],
.c-contactform__row__value input[type=email],
.c-contactform__row__value input[type=url],
.c-contactform__row__value textarea,
.c-contactform__row__value select {
  border-color: var(--border-secondary) !important;
  border-radius: 6px !important;
}
.c-contactform input[type=submit] {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  border-radius: 6px !important;
  transition: background 0.2s ease;
}
.c-contactform input[type=submit]:hover {
  background: var(--brand-hover) !important;
}

/* Single post modernization */
.p-single__block {
  background: var(--bg-primary) !important;
}
.c-single-head__ttl {
  font-family: var(--font-serif) !important;
  color: var(--text-primary) !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE (SP)
   ═══════════════════════════════════════ */
@media screen and (max-width: 767px) {
  .c-header {
    padding: 0 16px !important;
    height: 56px !important;
  }
  .l-header { height: 56px !important; }
  .l-content-wrap { padding-top: 56px !important; }
  .logo-word { font-size: 20px !important; }

  .hero-content h1 { font-size: 32px !important; }
  .hero-pillar { left: -12px; }
  .hero-tagline { font-size: 13px; margin-top: 32px; letter-spacing: 0.12em; }
  .hero-nav { flex-direction: column; gap: 0; margin-top: 40px; }
  .hero-nav__link { width: 100%; margin-right: 0 !important; }
  .hero-nav__link:first-child { margin-right: 0; }
  .ambient-thread, .ambient-halo, .ambient-dot { display: none !important; }

  /* Opening animation SP */
  .op-copy__word { font-size: 10px; }
  .op-scene { width: 240px; height: 100px; }

  .c-page-head__content { min-height: 140px !important; padding: 32px 0 28px !important; }
  .c-page-head__top h1 { font-size: 32px !important; }
  .c-page-head__top h2 { font-size: 12px !important; }

  .c-service-item { width: 100% !important; padding: 32px 24px !important; }

  /* Service cards SP */
  .sv-intro { padding: 48px 0 0; }
  .sv-intro__heading { font-size: 22px; }
  .sv-intro__heading br { display: none; }
  .sv-card {
    grid-template-columns: 1fr; gap: 16px 0; padding: 32px 0;
  }
  .sv-card__number { font-size: 28px; }
  .sv-card__icon { width: 40px; height: 40px; }
  .sv-card__accent { display: none; }
  .sv-card__body { padding-right: 0; }

  /* Footer SP */
  .footer-grid { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-links__col { min-width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .text-rise, .thread, .underline-anim { animation: none !important; }
  .hero-pillar { animation: none !important; }
  .hero-content h1 .brand-text::after { animation: none !important; }
  .hero-tagline__word { animation: none !important; opacity: 1 !important; }
  .opening-overlay { display: none !important; }
}
