/* ============================================
   株式会社 Xerox - Corporate Website
   Minimal Corporate Style
   ============================================ */

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

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

body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #1a1a2e;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.anim-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--delay, 0s);
}

.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 30px;
  width: auto;
}

/* Hamburger - always visible like FOLIO */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  padding: 4px 0;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background-color: #1a1a2e;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-toggle span:nth-child(1) { width: 32px; }
.nav-toggle span:nth-child(2) { width: 24px; }
.nav-toggle span:nth-child(3) { width: 32px; }

.nav-toggle:hover span:nth-child(2) { width: 32px; }

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Nav Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.nav-overlay-link {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #1a1a2e;
  transition: color 0.3s ease;
}

.nav-overlay-link:hover {
  color: #3a3adc;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: #fafafa;
  overflow: hidden;
}

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 3;
  padding: 0 48px;
  padding-top: 80px;
  max-width: 600px;
}

.hero-heading {
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: #1a1a2e;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-line-2 { transition-delay: 0.15s; }
.hero-line-3 { transition-delay: 0.3s; }

.hero-heading em {
  font-style: normal;
  color: #3a3adc;
}

/* Hero Visual - circle + keywords */
.hero-visual {
  position: absolute;
  left: 63%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 680px;
  height: 680px;
  z-index: 1;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-keywords {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-kw {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #777;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 8px #fafafa, 0 0 16px #fafafa, 0 0 24px #fafafa;
  /* Position keywords around the circle */
  left: 50%;
  top: 50%;
  transform:
    rotate(var(--angle))
    translateY(calc(-320px * var(--dist)))
    rotate(calc(-1 * var(--angle)));
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: calc(var(--angle) / 360 * 0.8s + 0.5s);
}

.hero-kw.visible {
  opacity: 1;
}

.hero-kw-accent {
  color: #3a3adc;
  text-shadow: 0 0 8px #fafafa, 0 0 16px #fafafa, 0 0 24px #fafafa;
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #aaa;
  text-transform: uppercase;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background-color: #ddd;
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a2e;
  animation: scrollDown 2s ease-in-out infinite;
}

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

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: 120px 0;
}

.section-gray {
  background-color: #f7f7f8;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #bbb;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #bbb;
  text-transform: uppercase;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.5;
}

.section-lead {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 64px;
  letter-spacing: 0.04em;
}

/* ============================================
   MVV Cards
   ============================================ */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.mvv-card {
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}


.mvv-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.mvv-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #2a3a9e;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 14px;
  border: 1px solid rgba(42, 58, 158, 0.3);
  border-radius: 3px;
}

.mvv-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  color: #1a1a2e;
  line-height: 1.5;
}

.mvv-text {
  font-size: 0.85rem;
  color: #666;
  line-height: 2;
  flex: 1;
}

.mvv-question {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #999;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.mvv-horizon {
  display: inline-block;
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: #2a3a9e;
  background: rgba(42, 58, 158, 0.06);
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ============================================
   Meaning Block
   ============================================ */
.meaning-block {
  border-top: 1px solid #eee;
  padding-top: 80px;
}

.meaning-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.meaning-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a2e;
  margin-bottom: 40px;
}

.meaning-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.meaning-formula span {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.mf-zero {
  font-size: 2rem;
  color: #1a1a2e;
}

.mf-op {
  font-size: 1.5rem;
  color: #ccc;
  font-weight: 300 !important;
}

.mf-x {
  font-size: 2rem;
  color: #2a3a9e;
}

.mf-x small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  margin-top: -4px;
  color: #aaa;
  letter-spacing: 0.1em;
}

.mf-result {
  font-size: 2.5rem;
  letter-spacing: 0.15em;
  color: #1a1a2e;
}

.meaning-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 2.2;
  margin-bottom: 16px;
}

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

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

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

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

.service-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #bbb;
  display: block;
  margin-bottom: 12px;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: #1a1a2e;
}

.service-text {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.9;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2a3a9e;
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(42, 58, 158, 0.3);
  padding-bottom: 2px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.service-link:hover {
  gap: 10px;
  border-color: #2a3a9e;
}

/* ============================================
   Supporters
   ============================================ */
.supporters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.supporter-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 24px;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.supporter-card:hover {
  transform: translateY(-2px);
}

.supporter-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.supporter-photo-logo {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background-color: transparent;
  padding: 0;
}

.supporter-body {
  flex: 1;
  min-width: 0;
}

.supporter-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #1a1a2e;
}

.supporter-org {
  font-size: 0.7rem;
  color: #2a3a9e;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.supporter-quote {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.8;
}

/* ============================================
   Company
   ============================================ */
.company-table {
  max-width: 760px;
}

.company-info {
  list-style: none;
}

.company-row {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.company-row:first-child {
  border-top: 1px solid #eee;
}

.company-row dt {
  width: 140px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.04em;
}

.company-row dd {
  flex: 1;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
}

.company-row dd a {
  color: #555;
  border-bottom: 1px solid #ddd;
  transition: all 0.3s ease;
}

.company-row dd a:hover {
  color: #2a3a9e;
  border-color: #2a3a9e;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: #1a1a2e;
  color: #ffffff;
  padding: 64px 0 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 1;
}

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

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-nav-group a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.footer-nav-group a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-address {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .mvv-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-nav {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 24px;
  }

  .header-inner {
    height: 60px;
    padding: 0 24px;
  }

  .logo-img {
    height: 24px;
  }

  .hero {
    flex-direction: column;
    justify-content: center;
  }

  .hero-text {
    padding: 100px 24px 0;
    max-width: 100%;
  }

  .hero-heading {
    font-size: 2.2rem;
  }

  .hero-visual {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 320px;
    height: 320px;
    margin: 40px auto 0;
  }

  .hero-kw {
    font-size: 0.55rem;
    transform:
      rotate(var(--angle))
      translateY(calc(-150px * var(--dist)))
      rotate(calc(-1 * var(--angle)));
  }

  .hero-scroll {
    left: 24px;
  }

  .section {
    padding: 80px 0;
  }

  .section-heading {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .section-lead {
    margin-bottom: 40px;
  }

  .mvv-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mvv-card {
    padding: 32px 24px;
  }

  .meaning-block {
    padding-top: 48px;
  }

  .meaning-formula span {
    font-size: 1.5rem;
  }

  .mf-result {
    font-size: 2rem;
  }

  .meaning-formula {
    gap: 12px;
  }

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

  .supporter-card {
    padding: 20px;
  }

  .company-row {
    flex-direction: column;
    gap: 4px;
  }

  .company-row dt {
    width: auto;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-visual {
    width: 260px;
    height: 260px;
  }

  .hero-kw {
    font-size: 0.5rem;
    transform:
      rotate(var(--angle))
      translateY(calc(-120px * var(--dist)))
      rotate(calc(-1 * var(--angle)));
  }

  .meaning-formula span {
    font-size: 1.2rem;
  }

  .mf-result {
    font-size: 1.6rem;
  }
}
