/* ============================================================
   FIRST IMAGE CORPORATION — Main Stylesheet
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.85;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }

/* ── Utility ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading-en);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gradient-gold);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-heading-ja);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
}

.section-heading--hero {
  font-size: var(--text-3xl);
}

.gold { color: var(--color-gold); }

/* ── Scroll Animations ───────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate][data-delay="1"] { transition-delay: 0.10s; }
[data-animate][data-delay="2"] { transition-delay: 0.20s; }
[data-animate][data-delay="3"] { transition-delay: 0.30s; }
[data-animate][data-delay="4"] { transition-delay: 0.40s; }
[data-animate][data-delay="5"] { transition-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.9rem 2.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.10em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.btn-outline:hover {
  background: var(--color-gold-subtle);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0;
  letter-spacing: 0.1em;
  position: relative;
  border: none;
}
.btn-ghost::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold-muted);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.btn-ghost:hover::after { transform: scaleX(1); }
.btn-ghost:hover { color: var(--color-text-primary); }

/* Arrow icon for btn-ghost */
.btn-ghost .arrow {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform var(--dur-base) var(--ease);
}
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ── Header ──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: 96px;
  display: flex;
  align-items: center;
  transition:
    background var(--dur-base) var(--ease),
    backdrop-filter var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
}

.header.scrolled {
  background: rgba(8, 8, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border-subtle);
}

.header.hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.header__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}
.header__logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.header__logo-en {
  font-family: var(--font-heading-en);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}
.header__logo-ja {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.header__nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  position: relative;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.header__nav-link:hover { color: var(--color-text-primary); }
.header__nav-link:hover::after { transform: scaleX(1); }

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__tel {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.header__tel-number {
  font-family: var(--font-numeric);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
}
.header__tel-hours {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: calc(var(--z-header) + 10);
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text-primary);
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile Nav ──────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 16, 0.97);
  z-index: calc(var(--z-header) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.mobile-nav.is-open { opacity: 1; pointer-events: all; }
.mobile-nav__list { display: flex; flex-direction: column; gap: var(--space-4); text-align: center; }
.mobile-nav__link {
  font-family: var(--font-heading-ja);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  letter-spacing: 0.1em;
  transition: color var(--dur-base) var(--ease);
}
.mobile-nav__link:hover { color: var(--color-gold); }
.mobile-nav__tel {
  font-family: var(--font-numeric);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  letter-spacing: 0.08em;
  margin-top: var(--space-4);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1920&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero.is-loaded .hero__bg { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8,8,16,0.15) 0%,
      rgba(8,8,16,0.45) 40%,
      rgba(8,8,16,0.88) 80%,
      rgba(8,8,16,0.97) 100%),
    linear-gradient(90deg,
      rgba(8,8,16,0.5) 0%,
      transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  padding-bottom: clamp(3rem, 8vw, 7rem);
  padding-left: calc(var(--container-padding) + 1.25rem);
}
.hero__content::before {
  content: '';
  position: absolute;
  left: var(--container-padding);
  top: 0.5rem;
  bottom: clamp(3rem, 8vw, 7rem);
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--color-steel-muted) 15%,
    var(--color-steel) 40%,
    var(--color-gold) 65%,
    var(--color-gold-muted) 85%,
    transparent 100%);
}

.hero__label {
  font-family: var(--font-heading-en);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s;
}
.hero.is-loaded .hero__label { opacity: 1; transform: translateY(0); }

.hero__heading {
  font-family: var(--font-heading-ja);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease) 0.5s, transform 0.8s var(--ease) 0.5s;
}
.hero.is-loaded .hero__heading { opacity: 1; transform: translateY(0); }

.hero__sub {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: rgba(240, 239, 232, 0.75);
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease) 0.7s, transform 0.8s var(--ease) 0.7s;
}
.hero.is-loaded .hero__sub { opacity: 1; transform: translateY(0); }

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease) 0.9s, transform 0.8s var(--ease) 0.9s;
}
.hero.is-loaded .hero__actions { opacity: 1; transform: translateY(0); }

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading-en);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s var(--ease) 1.2s;
}
.hero.is-loaded .hero__scroll { opacity: 1; }
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-steel), var(--color-gold-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Numbers / Trust Signals ─────────────────────────────── */
.numbers {
  background: var(--color-bg-deep);
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}
.numbers::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-steel-muted) 15%,
    var(--color-steel) 35%,
    var(--color-gold) 55%,
    var(--color-gold-muted) 75%,
    transparent 100%);
}
.numbers::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-subtle), transparent);
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.numbers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) var(--space-4);
  border-right: 1px solid var(--color-border-subtle);
  text-align: center;
  position: relative;
}
.numbers__item:last-child { border-right: none; }
.numbers__item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 0;
  background: var(--color-gold);
  transition: height 0.6s var(--ease);
}
.numbers__item:hover::before { height: 24px; }

.numbers__value {
  font-family: var(--font-numeric);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.numbers__value span {
  font-family: var(--font-numeric);
  font-size: 0.42em;
  font-weight: 400;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0.05em;
}
.numbers__label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ── Services Section ────────────────────────────────────── */
.services {
  padding: var(--section-padding) 0;
  background: var(--color-bg-base);
}

.services__header {
  margin-bottom: var(--space-12);
}

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

.service-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    background var(--dur-base) var(--ease),
    border-color var(--dur-slow) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  background: var(--color-bg-elevated);
  border-color: var(--color-gold-muted);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px var(--color-gold-subtle);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.service-card:hover .service-card__icon {
  background: var(--color-gold-subtle);
  border-color: var(--color-gold);
}
.service-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-family: var(--font-heading-ja);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.04em;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.service-card__desc {
  flex: 1;
}
.service-card__link {
  font-family: var(--font-heading-en);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-4);
  transition: gap var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.service-card:hover .service-card__link {
  gap: 0.9rem;
  color: var(--color-gold);  /* #C42840: 5.47:1 on white ✓ */
}

/* ── Works Featured ──────────────────────────────────────── */
.works {
  padding: var(--section-padding) 0;
  background: var(--color-bg-deep);
}

.works__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.works__grid .work-card:first-child {
  grid-column: span 2;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-deep);
  cursor: pointer;
  border: 1px solid var(--color-border-subtle);
  transition: border-color var(--dur-base) var(--ease);
}
.work-card:hover { border-color: var(--color-gold-muted); }

.work-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.work-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,16,0.65) 0%, transparent 55%);
  transition: opacity var(--dur-base) var(--ease);
}
.work-card:hover .work-card__img::after { opacity: 0.6; }
.work-card:first-child .work-card__img {
  aspect-ratio: 21/9;
}
.work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: brightness(0.88) saturate(0.9);
}
.work-card:hover .work-card__img img { transform: scale(1.06); filter: brightness(0.95) saturate(1); }

.work-card__body {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border-subtle);
  transition: background var(--dur-base) var(--ease);
}
.work-card:hover .work-card__body { background: var(--color-bg-elevated); }

.work-card__info {}
.work-card__vehicle {
  font-family: var(--font-heading-ja);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
}
.work-card__service {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.work-card__tag {
  font-family: var(--font-heading-en);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-muted);
  padding: 0.2rem 0.6rem;
}

/* ── Why Section ─────────────────────────────────────────── */
.why {
  padding: var(--section-padding) 0;
  background: var(--color-bg-surface);
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why__image {
  position: relative;
  aspect-ratio: 4/5;
}
.why__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.9);
}
.why__image::before {
  content: '';
  position: absolute;
  top: 1.5rem; left: -1.5rem;
  width: 40%;
  height: 40%;
  border-top: 1px solid var(--color-gold-muted);
  border-left: 1px solid var(--color-gold-muted);
  z-index: 1;
}
.why__image::after {
  content: '';
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 1px solid var(--color-gold-muted);
  z-index: -1;
}

.why__reasons {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.why__reasons::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-steel), var(--color-gold-muted), transparent);
}

.why__reason {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.why__reason:last-child { border-bottom: none; }

.why__reason-num {
  font-family: var(--font-numeric);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  width: 1.5rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
  position: relative;
}
.why__reason-body {}
.why__reason-title {
  font-family: var(--font-heading-ja);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: 0.04em;
}
.why__reason-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.85;
}

/* ── Voice Section ───────────────────────────────────────── */
.voice {
  padding: var(--section-padding) 0;
  background: var(--color-bg-base);
}

.voice__header { margin-bottom: var(--space-12); }

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

.voice-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease),
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-base) var(--ease);
}
.voice-card::before {
  content: '\201C';
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 9rem;
  line-height: 1;
  color: rgba(196,40,64,0.07);
  position: absolute;
  top: -1.5rem;
  right: var(--space-3);
  pointer-events: none;
  transition: color var(--dur-base) var(--ease);
  user-select: none;
}
.voice-card:hover::before { color: rgba(196,40,64,0.13); }
.voice-card:hover {
  border-color: var(--color-gold-muted);
  background: var(--color-bg-elevated);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.voice-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-3);
}
.voice-card__star {
  color: var(--color-gold);
  font-size: 0.85rem;
}

.voice-card__comment {
  font-size: var(--text-sm);
  line-height: 1.95;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
}
.voice-card__comment::before { display: none; }

.voice-card__meta {}
.voice-card__vehicle {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  font-weight: 500;
}
.voice-card__service {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ── News Section ────────────────────────────────────────── */
.news {
  padding: var(--section-padding) 0;
  background: var(--color-bg-deep);
}

.news__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}

.news__list { display: flex; flex-direction: column; }

.news-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
  text-decoration: none;
  transition:
    background var(--dur-base) var(--ease),
    padding-left var(--dur-base) var(--ease);
  cursor: pointer;
  position: relative;
}
.news-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gradient-gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-base) var(--ease);
}
.news-item:hover::before { transform: scaleY(1); }
.news-item:first-child { border-top: 1px solid var(--color-border-subtle); }
.news-item:hover {
  background: var(--color-bg-surface);
  padding-left: var(--space-5);
}

.news-item__date {
  font-family: var(--font-numeric);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  min-width: 90px;
}

.news-item__tag {
  font-family: var(--font-heading-en);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--color-border-muted);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.news-item__tag--blog { border-color: var(--color-gold-muted); color: var(--color-gold); }

.news-item__title {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  transition: color var(--dur-base) var(--ease);
}
.news-item:hover .news-item__title { color: var(--color-text-primary); }

.news-item__arrow {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  transition: transform var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.news-item:hover .news-item__arrow { transform: translateX(4px); color: var(--color-gold); }

/* ── Contact CTA ─────────────────────────────────────────── */
.contact-cta {
  padding: var(--section-padding) 0;
  background: var(--color-bg-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-gold);
}
.contact-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196,40,64,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.contact-cta__eyebrow {
  font-family: var(--font-heading-en);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.contact-cta__heading {
  font-family: var(--font-heading-ja);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: 0.04em;
}

.contact-cta__sub {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.contact-cta__tel {
  font-family: var(--font-numeric);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}
.contact-cta__tel a { transition: color var(--dur-base) var(--ease); }
.contact-cta__tel a:hover { color: var(--color-gold); }

.contact-cta__hours {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.contact-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── Recruit Banner ──────────────────────────────────────── */
.recruit-banner {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.recruit-banner__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}
.recruit-banner__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.recruit-banner__text {}
.recruit-banner__label {
  font-family: var(--font-heading-en);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}
.recruit-banner__heading {
  font-family: var(--font-heading-ja);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.recruit-banner__sub {
  font-size: var(--text-sm);
  color: rgba(240,239,232,0.7);
  margin-top: var(--space-2);
  letter-spacing: 0.06em;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--color-bg-deep);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-steel-muted) 10%,
    var(--color-steel) 30%,
    var(--color-gold) 55%,
    var(--color-gold-muted) 75%,
    transparent 100%);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand {}
.footer__logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer__logo-img:hover { opacity: 1; }
.footer__logo {
  font-family: var(--font-heading-en);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__logo-tagline {
  font-family: var(--font-heading-en);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  display: block;
}
.footer__address {
  font-size: 0.78rem;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.footer__tel {
  font-family: var(--font-numeric);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-top: var(--space-3);
}
.footer__hours {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.footer__sns {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.footer__sns-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: border-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.footer__sns-link:hover { border-color: var(--color-gold-muted); color: var(--color-gold); }

.footer__nav-group {}
.footer__nav-label {
  font-family: var(--font-heading-en);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.footer__nav-list { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  transition: color var(--dur-base) var(--ease);
}
.footer__nav-link:hover { color: var(--color-text-secondary); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer__bottom-links { display: flex; gap: var(--space-4); }
.footer__bottom-link { color: var(--color-text-muted); transition: color var(--dur-base) var(--ease); }
.footer__bottom-link:hover { color: var(--color-text-secondary); }

/* ── Line decoration ─────────────────────────────────────── */
.line-deco {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.line-deco::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header__nav-list { display: none; }
  .header__tel { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .numbers__item:nth-child(2) { border-right: none; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .why__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .why__image { max-width: 480px; }
  .why__image::after { display: none; }

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

@media (max-width: 768px) {
  .header { height: 72px; }

  .header__cta .btn { display: none; }

  .works__header { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .works__grid { grid-template-columns: 1fr; }
  .works__grid .work-card:first-child { grid-column: span 1; }

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

  .news__header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .news-item { grid-template-columns: auto 1fr; gap: var(--space-3); }
  .news-item__arrow { display: none; }

  .recruit-banner__content { flex-direction: column; }

  .footer__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .contact-cta__actions { flex-direction: column; width: 100%; }
  .contact-cta__actions .btn { width: 100%; }
}

/* ============================================================
   INNER PAGE SHARED STYLES
   ============================================================ */

/* ── Page Hero (内ページ共通ヒーロー) ─────────────────────── */
.page-hero {
  padding: calc(96px + clamp(3rem, 7vw, 6rem)) var(--container-padding) clamp(3rem, 7vw, 6rem);
  background: var(--color-bg-deep);
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 80% 50%, rgba(196,40,64,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading-en);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.page-hero__breadcrumb a { color: var(--color-text-muted); transition: color var(--dur-fast) var(--ease); }
.page-hero__breadcrumb a:hover { color: var(--color-gold); }
.page-hero__breadcrumb span { color: var(--color-gold); }
.page-hero__en {
  font-family: var(--font-heading-en);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}
.page-hero__title {
  font-family: var(--font-heading-ja);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.page-hero__desc {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.85;
}

/* ── Breadcrumb shared ───────────────────────────────────── */
.breadcrumb-sep { opacity: 0.4; }

/* ── Inner page section spacing ─────────────────────────── */
.inner-section {
  padding: var(--section-padding) 0;
}
.inner-section--dark    { background: var(--color-bg-deep); }
.inner-section--base    { background: var(--color-bg-base); }
.inner-section--surface { background: var(--color-bg-surface); }
.inner-section--elevated{ background: var(--color-bg-elevated); }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border-subtle);
  margin: 0;
}

/* ── Table (会社概要など) ──────────────────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th,
.info-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.info-table th {
  width: 160px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-family: var(--font-body);
}
.info-table td { color: var(--color-text-secondary); }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ── Staff Card ──────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.staff-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.staff-card:hover { border-color: var(--color-gold-muted); transform: translateY(-4px); }
.staff-card__photo { aspect-ratio: 1/1; overflow: hidden; }
.staff-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(0.15) brightness(0.9); transition: transform 0.6s var(--ease); }
.staff-card:hover .staff-card__photo img { transform: scale(1.04); }
.staff-card__body { padding: var(--space-4) var(--space-4); }
.staff-card__role { font-family: var(--font-heading-en); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-1); }
.staff-card__name { font-family: var(--font-heading-ja); font-size: var(--text-lg); font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-2); }
.staff-card__desc { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.85; }
.staff-card__cert { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-1); }
.staff-card__cert-tag { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--color-text-muted); border: 1px solid var(--color-border-muted); padding: 0.15rem 0.5rem; }

/* ── Works Filter bar ────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.filter-btn {
  font-family: var(--font-heading-en);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-border-muted);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--color-gold);
  color: var(--color-gold-muted);   /* #7C1A28: passes on subtle-bg ✓ */
  background: var(--color-gold-subtle);
}

/* ── Works Grid (full page) ──────────────────────────────── */
.works-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.works-grid-full .work-card__img { aspect-ratio: 4/3; }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--color-border-subtle); }
.faq-item {
  background: var(--color-bg-surface);
}
.faq-item summary {
  list-style: none;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background var(--dur-fast) var(--ease);
  user-select: none;
}
.faq-item summary:hover { background: var(--color-bg-elevated); }
.faq-item[open] summary { background: var(--color-bg-elevated); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q {
  font-family: var(--font-heading-ja);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.6;
}
.faq-item__icon {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1px solid var(--color-gold-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold); font-size: 1rem; margin-top: 2px;
  transition: transform var(--dur-base) var(--ease);
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  padding: var(--space-4) var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.9;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border-subtle);
}
.faq-category-label {
  font-family: var(--font-heading-en);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: var(--space-8) 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border-subtle);
}
.faq-category-label:first-child { margin-top: 0; }

/* ── Price Plan Cards ─────────────────────────────────────── */
.price-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-12);
}
.price-plan {
  background: var(--color-bg-surface);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition: background var(--dur-base) var(--ease);
}
.price-plan:hover { background: var(--color-bg-elevated); }
.price-plan--featured {
  background: linear-gradient(160deg, rgba(196,40,64,0.10), rgba(196,40,64,0.03));
  border: 1px solid var(--color-gold-muted);
  z-index: 1;
}
.price-plan__badge {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-heading-en);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gradient-gold);
  color: #0a0a12;
  padding: 0.2rem 0.8rem;
  font-weight: 700;
}
.price-plan__name {
  font-family: var(--font-heading-en);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.price-plan__price {
  font-family: var(--font-numeric);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}
.price-plan--featured .price-plan__price { color: var(--color-gold); }  /* #C42840: 5.47:1 on white ✓ (gold-light was 4.31 FAIL) */
.price-plan__unit { font-size: var(--text-xs); color: var(--color-text-muted); }
.price-plan__features {
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.price-plan__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
}
.price-plan__feature::before {
  content: '✓';
  color: var(--color-gold);
  font-size: 0.8em;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-form-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-12);
  align-items: start;
}
.contact-info { position: sticky; top: 100px; }
.contact-info__block {
  padding: var(--space-6);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-4);
}
.contact-info__label {
  font-family: var(--font-heading-en);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.contact-info__tel-num {
  font-family: var(--font-numeric);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
}
.contact-info__hours {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  line-height: 1.8;
}

/* ── Form inputs (shared: contact + recruit) ─────────────── */
.r-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.r-form__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
}
.r-form__label.required::after {
  content: '必須';
  font-size: 0.65em;
  background: var(--color-gold);
  color: var(--color-bg-deep);
  padding: 0.12em 0.45em;
  margin-left: 0.5rem;
  font-weight: 700;
  vertical-align: 1px;
  letter-spacing: 0.1em;
}
.r-form__input {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-muted);
  color: var(--color-text-primary);
  padding: 0.85rem 1rem;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.r-form__input::placeholder { color: var(--color-text-muted); }
.r-form__input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(196,40,64,0.12);
}
.r-form__select-wrap { position: relative; }
.r-form__select { cursor: pointer; }
.r-form__select option { background: var(--color-bg-elevated); }
.r-form__select-arrow {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--color-gold);
  font-size: 0.6rem;
  pointer-events: none;
}
.r-form__textarea { resize: vertical; min-height: 160px; }
.r-form__check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}
.r-form__check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-gold);
  cursor: pointer;
}
.r-form__check-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ── News list ───────────────────────────────────────────── */
.news-list-full { display: flex; flex-direction: column; }
.news-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  text-decoration: none;
  transition: background var(--dur-base) var(--ease);
  cursor: pointer;
}
.news-card:first-child { border-top: 1px solid var(--color-border-subtle); }
.news-card:hover .news-card__title { color: var(--color-gold); }
.news-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--color-bg-elevated); }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: brightness(0.85); }
.news-card:hover .news-card__thumb img { transform: scale(1.04); }
.news-card__body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); }
.news-card__meta { display: flex; align-items: center; gap: var(--space-2); }
.news-card__date { font-family: var(--font-numeric); font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--color-text-muted); }
.news-card__tag { font-family: var(--font-heading-en); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.15rem 0.5rem; border: 1px solid var(--color-border-muted); color: var(--color-text-muted); }
.news-card__tag--blog { border-color: var(--color-gold-muted); color: var(--color-gold); }
.news-card__title { font-family: var(--font-heading-ja); font-size: var(--text-lg); font-weight: 600; color: var(--color-text-primary); line-height: 1.5; transition: color var(--dur-base) var(--ease); }
.news-card__excerpt { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Simulator (price) ───────────────────────────────────── */
.simulator {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-8);
}
.simulator__steps { display: flex; flex-direction: column; gap: var(--space-6); }
.simulator__step-label {
  font-family: var(--font-heading-en);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.simulator__options {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.sim-option {
  font-size: var(--text-sm);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--color-border-muted);
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
.sim-option:hover { border-color: var(--color-gold-muted); color: var(--color-text-primary); }
.sim-option.is-selected { border-color: var(--color-gold); color: var(--color-gold); background: var(--color-gold-subtle); }
.simulator__result {
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-gold-muted);
  text-align: center;
  display: none;
}
.simulator__result.is-visible { display: block; }
.simulator__result-label { font-family: var(--font-heading-en); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-2); }
.simulator__result-price { font-family: var(--font-numeric); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--color-text-primary); }
.simulator__result-note { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-2); }

/* ── Responsive inner pages ──────────────────────────────── */
@media (max-width: 1024px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .price-plans { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrap { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .works-grid-full { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .staff-grid { grid-template-columns: 1fr; }
  .price-plans { grid-template-columns: 1fr 1fr; }
  .works-grid-full { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; }
  .news-card__thumb { max-height: 200px; }
  .info-table th { width: 110px; }
}
@media (max-width: 480px) {
  .price-plans { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   DESIGN QUALITY — PHASE 2 ENHANCEMENTS
   ════════════════════════════════════════════════════════════ */

/* ── Page Hero: enhanced visual depth ──────────────────────── */
/* Stronger gold radial + bottom accent line */
.page-hero::before {
  background-image:
    radial-gradient(ellipse at 75% 50%, rgba(196,40,64,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(196,40,64,0.04) 0%, transparent 40%);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-gold-muted) 25%,
    var(--color-gold) 50%,
    var(--color-gold-muted) 75%,
    transparent 100%);
}

/* Left vertical accent line */
.page-hero__inner {
  position: relative;
  padding-left: calc(var(--space-6) + 2px);
}
.page-hero__inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-gold) 0%,
    var(--color-gold-muted) 50%,
    transparent 100%
  );
}

/* Larger hero title on big screens */
.page-hero__title {
  font-size: clamp(var(--text-3xl), 4.5vw, 3.5rem);
}

/* Large watermark from the en label — purely decorative */
.page-hero__en {
  position: relative;
  z-index: 1;
}

/* ── FAQ: Smooth expand / collapse animation ───────────────── */
/* JS injects .faq-item__body wrapper around .faq-item__a      */
.faq-item__body {
  display: grid;
  grid-template-rows: 1fr; /* JS overrides to 0fr when closed */
  overflow: hidden;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item__body-inner {
  overflow: hidden;
  min-height: 0;
}

/* Left gold border on the answer */
.faq-item__a {
  border-left: 2px solid var(--color-gold-muted);
  padding-left: calc(var(--space-5) + var(--space-6));
  background: linear-gradient(90deg, rgba(196,40,64,0.03) 0%, transparent 30%);
}

/* Title color change when open */
.faq-item[open] > summary .faq-item__q {
  color: var(--color-gold);  /* #C42840: 5.47:1 on white ✓ */
}

/* ── Filter cards: fade + scale out animation ──────────────── */
[data-category] {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
[data-category].is-hidden {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  /* Keep in flow so grid doesn't reflow; visually hidden */
  visibility: hidden;
}

/* Enhanced filter button active state */
.filter-btn {
  position: relative;
  letter-spacing: 0.2em;
}
.filter-btn.is-active {
  background: var(--color-gold-subtle);
  border-color: var(--color-gold);
  color: var(--color-gold-muted);   /* #7C1A28: 8.4:1 on subtle-pink bg ✓ (was gold 4.49 FAIL) */
  box-shadow: inset 0 0 0 1px var(--color-gold);
}

/* ── Voice Full Card: hover lift (moved from page-level) ──────── */
.voice-full-card {
  transition:
    border-color var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.voice-full-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
}

/* ── Info Table: row hover ─────────────────────────────────── */
.info-table tbody tr {
  transition: background var(--dur-fast) var(--ease);
}
.info-table tbody tr:hover th,
.info-table tbody tr:hover td {
  background: rgba(196, 40, 64, 0.04);
}

/* ── News Card: featured first-article variant ─────────────── */
/* Extra specificity (.news-card.news-card--featured) beats .news-card:first-child */
.news-card.news-card--featured,
.news-card.news-card--featured:first-child {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  border: 1px solid var(--color-border-subtle);
  border-top: 2px solid var(--color-gold) !important;
  background: var(--color-bg-surface);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.news-card.news-card--featured:hover {
  border-top-color: var(--color-gold-light) !important;
  background: var(--color-bg-elevated);
}
.news-card--featured .news-card__thumb {
  aspect-ratio: 21 / 8;
  max-height: none;
}
.news-card--featured .news-card__body {
  padding: var(--space-6) var(--space-6) var(--space-8);
  gap: var(--space-3);
}
.news-card--featured .news-card__title {
  font-size: var(--text-xl);
  line-height: 1.45;
}
.news-card--featured .news-card__excerpt {
  -webkit-line-clamp: 3;
}

/* ── Works Card: featured badge ───────────────────────────── */
.work-card--featured {
  position: relative;
}
.work-card--featured::before {
  content: 'Pickup';
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-heading-en);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gradient-gold);
  color: #0a0a12;
  padding: 0.2rem 0.75rem;
  font-weight: 700;
  z-index: 3;
  pointer-events: none;
}

/* ── Price Plan: featured elevated ────────────────────────── */
.price-plan--featured {
  position: relative;
  transform: translateY(-4px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--color-gold-muted);
  background: linear-gradient(
    160deg,
    rgba(196, 40, 64, 0.12) 0%,
    rgba(196, 40, 64, 0.04) 60%,
    transparent 100%
  );
}

/* ── Simulator Result: gold pulse glow ────────────────────── */
@keyframes goldPulse {
  0%   { box-shadow: 0 0 0 0   rgba(196, 40, 64, 0.40); }
  60%  { box-shadow: 0 0 0 12px rgba(196, 40, 64, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(196, 40, 64, 0);    }
}
.simulator__result.is-visible {
  display: block;
  animation: goldPulse 1.4s ease-out 0.1s 1;
}
.simulator__result-price {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}
.pagination__btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border-muted);
  font-family: var(--font-numeric);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  background: transparent;
  transition:
    border-color var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease);
  letter-spacing: 0.06em;
}
.pagination__btn:hover {
  border-color: var(--color-gold-muted);
  color: var(--color-gold);
}
.pagination__btn.is-active {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-subtle);
}
.pagination__btn--arrow {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.pagination__ellipsis {
  width: 40px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  user-select: none;
}

/* ── Scroll progress bar ───────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gradient-gold);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.08s linear;
}

/* ── Back-to-top button ────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-6);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-gold-muted);
  cursor: pointer;
  color: var(--color-gold);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    background var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
  z-index: 80;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-gold-subtle);
  border-color: var(--color-gold);
}

/* ── Layout utility: named grids (replaces inline styles) ──── */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-16);
}
.info-history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  align-items: start;
}

/* ── Form: validation states ───────────────────────────────── */
.r-form__input:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 80, 80, 0.6);
}
.r-form__input.is-error {
  border-color: rgba(220, 80, 80, 0.7);
  box-shadow: 0 0 0 3px rgba(220, 80, 80, 0.10);
}
.r-form__input.is-valid {
  border-color: var(--color-gold-muted);
  box-shadow: 0 0 0 3px rgba(196, 40, 64, 0.06);
}
.r-form__error-msg {
  font-size: 0.7rem;
  color: rgba(220, 80, 80, 0.9);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}

/* ── Section: "feature" stat strip ────────────────────────── */
/* Used on inner pages to show 2–3 key figures inline */
.stat-strip {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-10);
  background: var(--color-bg-surface);
}
.stat-strip__item {
  flex: 1;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border-right: 1px solid var(--color-border-subtle);
}
.stat-strip__item:last-child { border-right: none; }
.stat-strip__value {
  font-family: var(--font-numeric);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat-strip__label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── Tag color variants ─────────────────────────────────────── */
.work-card__tag--security { border-color: var(--color-gold-muted); color: var(--color-gold); }
.work-card__tag--import   { background: rgba(196,40,64,0.08); border-color: var(--color-gold); color: var(--color-gold-light); }
.work-card__tag--audio    { border-color: rgba(100,160,255,0.35); color: #80b0ff; }
.work-card__tag--navi     { border-color: rgba(100,210,170,0.35); color: #70d0aa; }

/* ── History timeline: enhanced (about page) ───────────────── */
.history-item {
  position: relative;
}
.history-item::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-gold-muted), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.history-item:hover::before { opacity: 1; }
.history-item:hover .history-year { color: var(--color-gold); }  /* #C42840: 5.47:1 on white ✓ */
.history-item:hover .history-desc { color: var(--color-text-primary); }
.history-year,
.history-desc {
  transition: color var(--dur-base) var(--ease);
}

/* ── Contact info block: top gold line ─────────────────────── */
.contact-info__block {
  border-top: 2px solid var(--color-gold-muted);
  transition: border-top-color var(--dur-base) var(--ease);
}
.contact-info__block:hover {
  border-top-color: var(--color-gold);
}

/* ── Section label: section-label inherits parent data-animate ── */
/* (The label is usually itself a [data-animate] element, so existing
   .is-visible handling covers it. No override needed.) */

/* ── Responsive: phase-2 additions ─────────────────────────── */
@media (max-width: 1024px) {
  .concept-grid   { grid-template-columns: 1fr; gap: var(--space-8); margin-bottom: var(--space-10); }
  .info-history-grid { grid-template-columns: 1fr; }
  .access-grid    { grid-template-columns: 1fr; }
  .page-hero__inner { padding-left: var(--space-5); }
}
@media (max-width: 768px) {
  .news-card--featured .news-card__thumb { aspect-ratio: 16 / 9; }
  .stat-strip { flex-wrap: wrap; }
  .stat-strip__item { flex: 0 0 50%; border-bottom: 1px solid var(--color-border-subtle); }
  .works-grid-full { position: relative; } /* needed for .is-hidden absolute positioning */
  .back-to-top { bottom: var(--space-5); right: var(--space-4); }
}
@media (max-width: 480px) {
  .page-hero__inner { padding-left: var(--space-4); }
  .page-hero__inner::before { display: none; }
}

/* ════════════════════════════════════════════════════════════
   FIC LOGO COLOR SYSTEM — v4 Integration
   ロゴのカラー（クリムゾン + スチールブルー）に合わせた調整
   ════════════════════════════════════════════════════════════ */

/* ── ロゴ画像サイズと整合性 ───────────────────────────────── */
.header__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.header__logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
  /* ロゴがRGBA透明背景なので、ダーク背景上でそのまま綺麗に表示 */
}
.footer__logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 0.25s var(--ease);
  margin-bottom: var(--space-2);
}
.footer__logo-img:hover { opacity: 1; }

/* ── ヘッダー: スクロール後の背景をロゴの暗色に合わせる ─── */
.header.scrolled {
  background: rgba(7, 7, 15, 0.92);
  border-bottom: 1px solid rgba(61, 96, 128, 0.18);
}

/* ── スチールブルー: secondary badges / nav ─────────────── */
.header__tel-number {
  color: var(--color-text-primary);
  transition: color var(--dur-fast) var(--ease);
}
.header__tel-number:hover { color: var(--color-gold); }

/* ── ページヒーロー: クリムゾン＋スチールの縦ライン ───── */
.page-hero__inner::before {
  background: linear-gradient(
    to bottom,
    var(--color-steel) 0%,
    var(--color-gold) 50%,
    var(--color-gold-muted) 80%,
    transparent 100%
  );
}

/* ── サービスカードアイコン: 細い境界にスチールのグロー ─ */
.service-card:hover .service-card__icon {
  background: var(--color-steel-subtle);
  border-color: var(--color-steel);
  box-shadow: 0 0 0 3px var(--color-steel-subtle);
}
.service-card__icon svg {
  stroke: var(--color-gold);
  transition: stroke var(--dur-base) var(--ease);
}
.service-card:hover .service-card__icon svg {
  stroke: var(--color-steel-light);
}

/* ── ナビ下線ホバー: クリムゾン ──────────────────────────── */
.header__nav-link::after {
  background: var(--color-gold);
}

/* ── Contact CTA: ラジアルグロー to crimson ──────────────── */
.contact-cta::after {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196,40,64,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(61,96,128,0.06) 0%, transparent 45%);
}

/* ── Work card featured badge: より鮮明に ──────────────── */
.work-card--featured::before {
  background: var(--gradient-gold);
  color: #fff;
  letter-spacing: 0.22em;
}

/* ── Numbers: ホバー時インジケーターをクリムゾンに ──────── */
.numbers__item::before {
  background: var(--color-gold);
}
.numbers__item:hover::before { height: 28px; }

/* ── Voice card: 引用符の色をクリムゾンに ───────────────── */
.voice-card::before {
  color: rgba(196, 40, 64, 0.08);
}
.voice-card:hover::before { color: rgba(196, 40, 64, 0.14); }

/* ── FAQアコーディオン: 左ボーダーをスチールブルーに ─── */
.faq-item__a {
  border-left-color: var(--color-steel-muted);
  background: linear-gradient(90deg, rgba(61,96,128,0.04) 0%, transparent 35%);
}
.faq-item[open] .faq-item__a {
  border-left-color: var(--color-steel);
}

/* ── ニュースアイテム: 左ボーダーをスチール→クリムゾンに */
.news-item::before {
  background: linear-gradient(to bottom, var(--color-steel), var(--color-gold));
}

/* ── info-table row hover: スチールブルー微光 ────────────── */
.info-table tbody tr:hover th,
.info-table tbody tr:hover td {
  background: rgba(61, 96, 128, 0.05);
}

/* ── ScrollProgress bar: クリムゾン ──────────────────────── */
.scroll-progress {
  background: linear-gradient(90deg, var(--color-steel) 0%, var(--color-gold) 60%, var(--color-gold-light) 100%);
}

/* ── Back-to-top: スチールブルーのアクセント ────────────── */
.back-to-top:hover {
  background: var(--color-steel-subtle);
  border-color: var(--color-steel);
  color: var(--color-steel-light);
}

/* ── Page hero breadcrumb: スチールに変更 ────────────────── */
.page-hero__breadcrumb span { color: var(--color-steel-light); }
.page-hero__breadcrumb a:hover { color: var(--color-gold); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header__logo-img { height: 40px; }
}
@media (max-width: 768px) {
  .header__logo-img { height: 36px; }
  .footer__logo-img { height: 32px; }
}


/* ════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES — v5
   背景: 超薄グレー / フッター・ヒーローは暗色をキープ
   ════════════════════════════════════════════════════════════ */

/* ── ページ基本背景・文字色 ──────────────────────────────── */
body {
  background-color: var(--color-bg-base);
  color: var(--color-text-secondary);
}

/* ── ヘッダー: 初期状態は透明（暗いヒーローの上） ──────── */
.header__nav-link {
  color: rgba(240, 239, 232, 0.85);
}
.header__nav-link:hover {
  color: #F0EEE8;
}
.header__tel-number {
  color: #F0EEE8;
}
.header__tel-hours {
  color: rgba(240, 239, 232, 0.50);
}

/* ── ヘッダー: スクロール後は白背景＋ダーク文字 ─────────── */
.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--color-border-subtle), 0 4px 20px rgba(0, 0, 0, 0.07);
  border-bottom: none;
}
.header.scrolled .header__nav-link {
  color: var(--color-text-secondary);
}
.header.scrolled .header__nav-link:hover {
  color: var(--color-text-primary);
}
.header.scrolled .header__tel-number {
  color: var(--color-text-primary);
}
.header.scrolled .header__tel-hours {
  color: var(--color-text-muted);
}

/* ── ページヒーロー: 暗いままキープ ─────────────────────── */
.page-hero {
  background: var(--color-bg-ink-base) !important;
}
.page-hero__breadcrumb a {
  color: var(--color-text-ink-muted);
}
.page-hero__breadcrumb a:hover {
  color: var(--color-text-ink-primary);
}
.page-hero__desc {
  color: var(--color-text-ink-secondary);
}

/* ── Contact CTA: 暗いままキープ ─────────────────────────── */
.contact-cta {
  background: var(--color-bg-ink-base);
}
.contact-cta__heading {
  color: var(--color-text-ink-primary);
}
.contact-cta__sub {
  color: var(--color-text-ink-secondary);
}
.contact-cta__hours {
  color: var(--color-text-ink-muted);
}
.contact-cta__tel a {
  color: var(--color-text-ink-primary);
}
.contact-cta__tel a:hover {
  color: var(--color-gold-light);
}
.contact-cta__eyebrow {
  color: var(--color-gold);
}

/* ── フッター: 暗いままキープ ────────────────────────────── */
.footer {
  background: var(--color-bg-ink);
}
.footer__logo-tagline {
  color: var(--color-text-ink-muted);
}
.footer__address,
.footer__hours {
  color: var(--color-text-ink-muted);
}
.footer__tel {
  color: var(--color-text-ink-secondary);
}
.footer__nav-link {
  color: var(--color-text-ink-muted);
}
.footer__nav-link:hover {
  color: var(--color-text-ink-secondary);
}
.footer__bottom {
  color: var(--color-text-ink-muted);
  border-top-color: #1E1E2C;
}
.footer__bottom-link {
  color: var(--color-text-ink-muted);
}
.footer__bottom-link:hover {
  color: var(--color-text-ink-secondary);
}
.footer__sns-link {
  color: var(--color-text-ink-muted);
  border-color: #1E1E2C;
}
.footer__sns-link:hover {
  border-color: var(--color-gold-muted);
  color: var(--color-gold);
}

/* ── inner-section--dark: 暗いままキープ ────────────────── */
.inner-section--dark {
  background: var(--color-bg-ink-base);
}

/* ── モバイルナビ: 暗いままキープ ───────────────────────── */
.mobile-nav {
  background: #08080F;  /* solid dark → E03858 tel link passes 4.65:1 ✓ */
}
.mobile-nav__link {
  color: var(--color-text-ink-primary);
}
.mobile-nav__link:hover {
  color: var(--color-gold);
}
.mobile-nav__tel {
  color: var(--color-gold-light);  /* #E03858: 4.51:1 on mobile-nav dark bg ✓ */
}

/* ── ヒーローテキスト: 暗いオーバーレイ上で白文字キープ ─── */
.hero__heading {
  color: var(--color-text-ink-primary);
}
.hero__sub {
  color: rgba(240, 239, 232, 0.78);
}

/* ── セクション見出し: ライト背景でダーク文字 ───────────── */
.section-heading {
  color: var(--color-text-primary);
}

/* ── サービスカード: 白カード＋ソフトシャドウ ────────────── */
.service-card {
  background: var(--color-bg-surface);
  border-color: var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  background: var(--color-bg-surface);
  border-color: var(--color-gold-muted);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--color-gold-subtle);
}

/* ── ワークカード: 白カード ─────────────────────────────── */
.work-card {
  background: var(--color-bg-surface);
  border-color: var(--color-border-subtle);
}
.work-card:hover {
  border-color: var(--color-gold-muted);
  box-shadow: var(--shadow-md);
}
.work-card__body {
  background: var(--color-bg-surface);
  border-top-color: var(--color-border-subtle);
}
.work-card:hover .work-card__body {
  background: var(--color-bg-elevated);
}

/* ── ボイスカード: 白カード ─────────────────────────────── */
.voice-card {
  background: var(--color-bg-surface);
  border-color: var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
}
.voice-card:hover {
  background: var(--color-bg-surface);
  border-color: var(--color-gold-muted);
  box-shadow: var(--shadow-md);
}

/* ── FAQアイテム: 白カード ──────────────────────────────── */
.faq-list {
  background: var(--color-border-subtle);
}
.faq-item {
  background: var(--color-bg-surface);
}
.faq-item summary:hover {
  background: var(--color-bg-elevated);
}
.faq-item[open] summary {
  background: var(--color-bg-elevated);
}

/* ── ニュースカード: ボーダー ────────────────────────────── */
.news-card {
  border-bottom-color: var(--color-border-subtle);
}
.news-card:first-child {
  border-top-color: var(--color-border-subtle);
}

/* ── ナンバーセクション: 薄グレー背景 ───────────────────── */
.numbers {
  background: var(--color-bg-deep);
}

/* ── Whyセクション: 薄グレー背景 ────────────────────────── */
.why {
  background: var(--color-bg-deep);
}
.why__image::before {
  border-color: var(--color-border-muted);
}
.why__image::after {
  border-color: var(--color-border-subtle);
}

/* ── 価格プランカード ─────────────────────────────────────── */
.price-plans {
  background: var(--color-border-subtle);
  border-color: var(--color-border-subtle);
}
.price-plan {
  background: var(--color-bg-surface);
}
.price-plan:hover {
  background: var(--color-bg-elevated);
}

/* ── スタッフカード ─────────────────────────────────────── */
.staff-card {
  background: var(--color-bg-surface);
  border-color: var(--color-border-subtle);
}
.staff-card:hover {
  border-color: var(--color-gold-muted);
  box-shadow: var(--shadow-md);
}

/* ── コンタクト情報ブロック ─────────────────────────────── */
.contact-info__block {
  background: var(--color-bg-surface);
  border-color: var(--color-border-subtle);
}

/* ── フォームインプット ─────────────────────────────────── */
.r-form__input {
  background: var(--color-bg-surface);
  border-color: var(--color-border-muted);
  color: var(--color-text-primary);
}

/* ── Back-to-top: 白カード ──────────────────────────────── */
.back-to-top {
  background: #FFFFFF;
  border-color: var(--color-border-muted);
  color: var(--color-gold);
  box-shadow: var(--shadow-md);
}
.back-to-top:hover {
  background: var(--color-gold-subtle);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ── シミュレーター ─────────────────────────────────────── */
.simulator {
  background: var(--color-bg-surface);
  border-color: var(--color-border-subtle);
}
.simulator__result {
  background: var(--color-bg-elevated);
  border-color: var(--color-gold-muted);
}

/* ── リクルートバナー: 暗いままキープ ───────────────────── */
.recruit-banner__label {
  color: var(--color-gold);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header.scrolled .header__nav-link { color: var(--color-text-secondary); }
}

/* ════════════════════════════════════════════════════════════
   CONTRAST FIXES — v6 アクセシビリティ対応
   WCAG AA 基準（4.5:1）を全テキスト要素で確保
   ════════════════════════════════════════════════════════════ */

/* ── [CRITICAL] ページヒーロー: 全テキストをライトに ─── */
/* .page-hero は --color-bg-ink-base の暗い背景のため
   テキストを強制的に明るい色へ */
.page-hero__title {
  color: var(--color-text-ink-primary) !important;   /* #F0EEE8 */
}
.page-hero__en {
  color: var(--color-gold) !important;               /* crimson: contrast ~7:1 on dark */
}
.page-hero__desc {
  color: var(--color-text-ink-secondary) !important; /* #AEADA5 */
}
.page-hero__breadcrumb,
.page-hero__breadcrumb a {
  color: var(--color-text-ink-muted) !important;     /* #8888A0: contrast 6:1 */
}
.page-hero__breadcrumb span {
  color: var(--color-text-ink-secondary) !important; /* brighter for active crumb */
}
.breadcrumb-sep {
  color: var(--color-text-ink-muted) !important;
  opacity: 0.6;
}

/* ── フッター: 全テキストのコントラスト確保 ─────────── */
/* #07070F 背景: --color-text-ink-muted (#8888A0) で 6:1 確保 */
.footer__logo-tagline,
.footer__address,
.footer__hours,
.footer__bottom,
.footer__bottom-link,
.footer__sns-link {
  color: var(--color-text-ink-muted) !important;     /* #8888A0: 6:1 on #07070F ✓ */
}
.footer__tel {
  color: var(--color-text-ink-secondary) !important; /* #AEADA5: 6.8:1 ✓ */
}
.footer__nav-list li,
.footer__nav-list,
.footer__nav-group {
  color: var(--color-text-ink-muted);  /* 継承カラーを dark-safe に固定 */
}
.footer__nav-link {
  color: var(--color-text-ink-muted) !important;
}
.mobile-nav__list li {
  color: var(--color-text-ink-primary);  /* li 継承色を明示設定 */
}
.footer__nav-link:hover,
.footer__bottom-link:hover {
  color: var(--color-text-ink-secondary) !important;
}
.footer__bottom {
  border-top-color: rgba(255,255,255,0.08) !important;
}

/* ── Contact CTA: ダーク背景テキスト確保 ────────────── */
.contact-cta__sub {
  color: var(--color-text-ink-secondary) !important; /* #AEADA5 */
}
.contact-cta__hours {
  color: var(--color-text-ink-muted) !important;     /* #8888A0 */
}

/* ── ページネーション: コントラスト改善 ─────────────── */
.pagination__btn {
  color: var(--color-text-secondary);   /* #3A3A50: contrast 9.5:1 on light ✓ */
}
.pagination__btn:hover {
  border-color: var(--color-gold-muted);
  color: var(--color-gold);
}

/* ── muted テキスト全般: light bg で 5.6:1 確保 ──────── */
/* --color-text-muted が #5E5E72 に変更されたことで
   以下のクラスは自動的にコントラスト改善される */
/* .news-card__date, .work-card__service, .header__tel-hours,
   .footer__nav-label (crimson=OK) はtoken変更で対応済み */

/* ── サービスカード: desc テキスト ───────────────────── */
.service-card__desc {
  color: var(--color-text-secondary);  /* #3A3A50: 9.5:1 on white ✓ */
}

/* ── FAQ: 回答テキスト ──────────────────────────────── */
.faq-item__a {
  color: var(--color-text-secondary);  /* #3A3A50: 9.5:1 on white ✓ */
}

/* ── ボイスカード: コメントテキスト ─────────────────── */
.voice-card__comment {
  color: var(--color-text-secondary);
}

/* ── ニュースカード: excerpt ─────────────────────────── */
.news-card__excerpt {
  color: var(--color-text-secondary);
}

/* ── Work card service text ──────────────────────────── */
.work-card__service {
  color: var(--color-text-muted);  /* #5E5E72: 5.6:1 on white ✓ */
}

/* ── フォームラベル ─────────────────────────────────── */
.r-form__label {
  color: var(--color-text-primary);    /* #0E0E1A: 18:1 ✓ */
}

/* ── Info table: th text ─────────────────────────────── */
.info-table th {
  color: var(--color-text-muted);      /* #5E5E72: 5.6:1 ✓ */
}
.info-table td {
  color: var(--color-text-secondary);  /* #3A3A50: 9.5:1 ✓ */
}

/* ── ヘッダースクロール後: nav link ──────────────────── */
.header.scrolled .header__nav-link {
  color: var(--color-text-secondary);  /* #3A3A50 ✓ */
}
.header.scrolled .header__nav-link:hover {
  color: var(--color-text-primary);    /* #0E0E1A ✓ */
}
.header.scrolled .header__tel-number {
  color: var(--color-text-primary);
}
.header.scrolled .header__tel-hours {
  color: var(--color-text-muted);      /* #5E5E72: 5.6:1 on white ✓ */
}

/* ════════════════════════════════════════════════════════════
   CONTRAST FIXES — v7 残余問題修正
   暗背景でのクリムゾン (#C42840) は 3.4:1 → 不合格
   --color-gold-light (#E03858: 4.9:1 on dark) に切り替え
   ════════════════════════════════════════════════════════════ */

/* ── ページヒーロー en ラベル（暗背景上のクリムゾン）── */
.page-hero__en {
  color: var(--color-gold-light) !important;   /* #E03858: 4.9:1 on #0C0C18 ✓ */
}

/* ── Contact CTA eyebrow ────────────────────────────── */
.contact-cta__eyebrow {
  color: var(--color-gold-light) !important;
}

/* ── btn-outline: 暗背景セクションで明るいクリムゾンに */
.contact-cta .btn-outline,
.inner-section--dark .btn-outline,
.page-hero .btn-outline {
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
}
.contact-cta .btn-outline:hover,
.inner-section--dark .btn-outline:hover {
  background: rgba(224, 56, 88, 0.12);
}

/* ── フッターナビラベル ──────────────────────────────── */
.footer__nav-label {
  color: var(--color-gold-light) !important;   /* 5.4:1 on #07070F ✓ */
}

/* ── section-label on light: クリムゾン (#C42840) は
   #F4F4F7 上で 4.95:1 — ギリギリ合格だが念のため強化 */
.section-label {
  color: var(--color-gold);                    /* 4.95:1 ✓ 維持 */
}

/* ── work-card tag on white: 明示的に確保 ────────────── */
.work-card__tag {
  color: var(--color-gold);                    /* #C42840 on white: 5.5:1 ✓ */
}
