/* ============================================================
   common.css – 株式会社UPRO コーポレートサイト 共通スタイル
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700;900&family=Space+Mono:wght@400;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --upro-orange: #fe591c;
  --upro-orange-rgb: 254, 89, 28;
  --upro-dark: #09090b;
  --upro-dim: #f4f4f5;
  --radius: 0.625rem;
  --font-sans: 'DM Sans', 'Noto Sans JP', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  font-size: 1.1rem; /* 14px */
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--mid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.text-balance {
  text-wrap: balance;
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.section--dim {
  background-color: var(--upro-dim);
}

.section--dark {
  background-color: var(--upro-dark);
  color: #fff;
}

/* Ensure muted text inside dark sections is visible */
.section--dark .section-header__desc {
  color: rgba(255, 255, 255, 0.5);
}

.section--dark .section-header__label--mono-xs {
  color: var(--upro-orange);
}

.section--dark .section-header__title {
  color: #fff;
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header__label {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--upro-orange);
}

.section-header__label--mono-xs {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--upro-orange);
  margin-bottom: 1rem;
}

.section-header__title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.3;
}

.section-header__title--white {
  color: #fff;
}

.section-header__desc {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.section-header__desc--white {
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .section-header__title {
    font-size: 1.875rem;
  }
}

/* ---------- Accent Line (small) ---------- */
.accent-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.accent-line__bar {
  height: 2px;
  width: 1.5rem;
  border-radius: 999px;
  background-color: var(--upro-orange);
}

.accent-line__text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--upro-orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--orange {
  background: var(--upro-orange);
  color: #fff;
  padding: 0.875rem 2rem;
  box-shadow: 0 4px 20px rgba(var(--upro-orange-rgb), 0.35);
}

.btn--orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--upro-orange-rgb), 0.45);
}

.btn--white {
  background: #fff;
  color: var(--upro-dark);
  padding: 0.875rem 1.75rem;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--foreground);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
}

.btn--outline:hover {
  background: var(--muted);
}

.btn--outline-dark {
  background: transparent;
  color: rgba(9, 9, 11, 0.7);
  padding: 0.875rem 2rem;
  border: 1px solid rgba(9, 9, 11, 0.2);
}

.btn--outline-dark:hover {
  border-color: rgba(9, 9, 11, 0.4);
  color: var(--upro-dark);
}

.btn__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn:hover .btn__arrow {
  transform: translateX(2px);
}

/* ---------- Icon SVG Inline Helpers ---------- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header--transparent {
  background: transparent;
}

.header--light-bg {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1.5rem;
}

.header__logo img {
  height: 28px;
  width: auto;
}

/* Desktop Nav */
.header__nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.header__link {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}

/* Default: dark text */
.header__link {
  color: rgba(9, 9, 11, 0.8);
}

.header__link:hover,
.header__link--active {
  color: var(--foreground);
  font-weight: 700;
}

/* White text variant (dark hero) */
.header--dark-hero .header__link {
  color: rgba(255, 255, 255, 0.9);
}

.header--dark-hero .header__link:hover,
.header--dark-hero .header__link--active {
  color: #fff;
  font-weight: 700;
}

.header__cta {
  margin-left: 0.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--upro-orange);
  color: #fff;
  box-shadow: 0 2px 12px rgba(var(--upro-orange-rgb), 0.2);
  transition: all 0.2s;
}

.header__cta:hover {
  box-shadow: 0 4px 16px rgba(var(--upro-orange-rgb), 0.3);
}

.header--dark-hero .header__cta {
  box-shadow: 0 2px 12px rgba(var(--upro-orange-rgb), 0.3);
}

/* Mobile toggle */
.header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--foreground);
  transition: background 0.2s;
}

.header__toggle:hover {
  background: var(--muted);
}

.header--dark-hero .header__toggle {
  color: #fff;
}

.header--dark-hero .header__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

/* Hamburger icon */
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s;
}

.hamburger-line + .hamburger-line {
  margin-top: 5px;
}

/* Mobile nav */
.header__mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--background);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.header__mobile-nav.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .header__mobile-nav {
    display: none !important;
  }
}

.header__mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.header__mobile-link:hover,
.header__mobile-link--active {
  background: var(--muted);
  color: var(--foreground);
}

.header__mobile-cta {
  margin-top: 0.5rem;
  display: block;
  text-align: center;
  padding: 0.875rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--upro-orange);
  color: #fff;
  transition: opacity 0.2s;
}

.header__mobile-cta:hover {
  opacity: 0.9;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--foreground);
  color: var(--background);
}

.footer__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

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

.footer__brand-desc {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.footer__nav-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.footer__nav-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__nav-link {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.footer__nav-link:hover {
  color: #fff;
}

.footer__nav-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
  }
}

.footer__copyright {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal-link {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer__legal-link:hover {
  color: #fff;
}

/* Footer logo (inverted) */
.footer__logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ============================================================
   PAGE HERO (Sub-pages) – Dark cinematic style
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--upro-dark);
  padding-top: 7rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: 8rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    padding-bottom: 4rem;
  }
}

/* Parallax background layer */
.page-hero__bg {
  pointer-events: none;
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  height: 160%;
  will-change: transform;
}

/* Animated gradient orbs */
.page-hero__glow1 {
  position: absolute;
  top: -10rem;
  right: -5rem;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--upro-orange);
  opacity: 0.12;
  filter: blur(120px);
  animation: hero-glow 8s ease-in-out infinite;
}

.page-hero__glow2 {
  position: absolute;
  bottom: -8rem;
  left: -8rem;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: hsl(30, 80%, 60%);
  opacity: 0.08;
  filter: blur(100px);
  animation: hero-glow 8s 4s ease-in-out infinite;
}

/* Mesh gradient overlay */
.page-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(var(--upro-orange-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(var(--upro-orange-rgb), 0.04) 0%, transparent 40%);
}

/* Grid pattern */
.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 80%);
}

/* Dot pattern (legacy compat) */
.page-hero__dots {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 32px 32px;
}

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

/* Bottom gradient fade */
.page-hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--upro-dark), transparent);
}

/* Accent bottom line */
.page-hero__bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--upro-orange), transparent);
  opacity: 0.5;
}

/* Content */
.page-hero__content {
  position: relative;
  z-index: 2;
}

/* Breadcrumb */
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2rem;
}

.page-hero__breadcrumb a {
  transition: color 0.2s;
  color: rgba(255, 255, 255, 0.45);
}

.page-hero__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

.page-hero__breadcrumb-current {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* Title row */
.page-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

/* Subtitle (English) */
.page-hero__subtitle {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--upro-orange);
}

/* Main title */
.page-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .page-hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .page-hero__title {
    font-size: 3.75rem;
  }
}

/* Description text */
.page-hero__desc {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
}

/* Accent bar */
.page-hero__accent {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-hero__accent-bar {
  height: 4px;
  width: 3rem;
  border-radius: 9999px;
  background: var(--upro-orange);
}

.page-hero__accent-dot {
  height: 4px;
  width: 0.75rem;
  border-radius: 9999px;
  background: rgba(var(--upro-orange-rgb), 0.3);
}

/* Decorative large number */
.page-hero__deco-number {
  display: none;
  font-family: var(--font-mono);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    180deg,
    rgba(var(--upro-orange-rgb), 0.15) 0%,
    rgba(var(--upro-orange-rgb), 0.03) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 1024px) {
  .page-hero__deco-number {
    display: block;
  }
}

/* Floating decorative shapes */
.page-hero__shapes {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-hero__shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--upro-orange-rgb), 0.1);
}

.page-hero__shape--1 {
  width: 200px;
  height: 200px;
  top: 15%;
  right: 8%;
  animation: float-shape 12s ease-in-out infinite;
}

.page-hero__shape--2 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  right: 25%;
  border-color: rgba(255, 255, 255, 0.04);
  animation: float-shape 10s 3s ease-in-out infinite reverse;
}

.page-hero__shape--3 {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 35%;
  border-color: rgba(var(--upro-orange-rgb), 0.06);
  animation: float-shape 14s 6s ease-in-out infinite;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -15px) rotate(5deg); }
  66% { transform: translate(-8px, 10px) rotate(-3deg); }
}

/* ============================================================
   PAGE HERO – Simplified (Legal pages: privacy, cookie)
   Lower height, no decorative shapes/glow, minimal styling
   ============================================================ */
.page-hero--simple {
  padding-top: 5.25rem;
  padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .page-hero--simple {
    padding-top: 5.5rem;
    padding-bottom: 1rem;
  }
}

/* Hide all decorative elements in simple hero */
.page-hero--simple .page-hero__bg,
.page-hero--simple .page-hero__shapes,
.page-hero--simple .page-hero__fade,
.page-hero--simple .page-hero__bottom-line {
  display: none;
}

/* Smaller title for legal pages */
.page-hero--simple .page-hero__title {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .page-hero--simple .page-hero__title {
    font-size: 1.5rem;
  }
}

/* Tighter spacing */
.page-hero--simple .page-hero__breadcrumb {
  margin-bottom: 0.5rem;
}

.page-hero--simple .page-hero__subtitle {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

/* Simple bottom border instead of accent line */
.page-hero--simple::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   PARALLAX SYSTEM
   ============================================================ */
/* Elements with data-parallax attribute will be moved by JS.
   These CSS rules just set up will-change for performance. */
[data-parallax] {
  will-change: transform;
}

/* Parallax section wrappers */
.parallax-section {
  position: relative;
  overflow: hidden;
}

/* Floating parallax decorations */
.parallax-deco {
  pointer-events: none;
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.parallax-deco--orange-glow {
  background: radial-gradient(circle, rgba(var(--upro-orange-rgb), 0.18) 0%, rgba(var(--upro-orange-rgb), 0) 70%);
  filter: blur(20px);
}

.parallax-deco--warm-glow {
  background: radial-gradient(circle, rgba(245, 180, 80, 0.15) 0%, rgba(245, 180, 80, 0) 70%);
  filter: blur(16px);
}

.parallax-deco--ring {
  border: 2px solid rgba(var(--upro-orange-rgb), 0.18);
  background: rgba(var(--upro-orange-rgb), 0.03);
  filter: none;
}

/* Dark section parallax visibility boost */
.section--dark .parallax-deco--warm-glow {
  background: radial-gradient(circle, rgba(var(--upro-orange-rgb), 0.25) 0%, rgba(var(--upro-orange-rgb), 0) 70%);
}

.section--dark .parallax-deco--ring {
  border-color: rgba(var(--upro-orange-rgb), 0.18);
}

/* Stagger reveal for parallax children */
.parallax-stagger > *:nth-child(1) { transition-delay: 0s; }
.parallax-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.parallax-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.parallax-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.parallax-stagger > *:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  background: hsl(20, 60%, 93%);
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 7rem 0;
  }
}

.cta-section__top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: hsl(20, 40%, 87%);
}

.cta-section__glow {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 192px;
  border-radius: 50%;
  background: var(--upro-orange);
  opacity: 0.04;
  filter: blur(100px);
}

.cta-section__content {
  position: relative;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.cta-section__label {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--upro-orange);
}

.cta-section__title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--upro-dark);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .cta-section__title {
    font-size: 2.25rem;
  }
}

.cta-section__desc {
  margin-top: 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(9, 9, 11, 0.6);
}

.cta-section__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta-section__actions {
    flex-direction: row;
    gap: 1rem;
  }
}

.cta-section__hours {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: rgba(9, 9, 11, 0.45);
}

/* ============================================================
   SVG Arrow Icon (reusable)
   ============================================================ */
.icon-arrow-right {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.icon-arrow-right::after {
  content: '→';
  font-size: 14px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-glow {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.1);
  }
}

.animate-fade-up {
  animation: fade-up 0.7s ease-out both;
}

.animate-fade-up-delay-1 {
  animation: fade-up 0.7s 0.15s ease-out both;
}

.animate-fade-up-delay-2 {
  animation: fade-up 0.7s 0.3s ease-out both;
}

.animate-fade-up-delay-3 {
  animation: fade-up 0.7s 0.45s ease-out both;
}

.animate-hero-glow {
  animation: hero-glow 6s ease-in-out infinite;
}

.animate-hero-glow-2 {
  animation: hero-glow 6s 3s ease-in-out infinite;
}

/* Scroll reveal
   Content is visible by default.
   JS adds .js-ready to <html>, which enables the animation. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}

.js-ready .reveal.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Link with arrow
   ============================================================ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--upro-orange);
  transition: color 0.2s;
}

.link-arrow:hover {
  color: hsl(14, 99%, 45%);
}

.link-arrow span {
  transition: transform 0.2s;
}

.link-arrow:hover span {
  transform: translateX(2px);
}

/* ============================================================
   FIXED BACKGROUND PARALLAX SYSTEM
   各ページの body に .bg-parallax と .bg-parallax--{page} を付与
   ============================================================ */
.bg-parallax {
  background-color: var(--upro-dark);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

.bg-parallax::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.75);
  z-index: 0;
  pointer-events: none;
}

/* Per-page background images */
.bg-parallax--home   { background-image: url('../images/hero-main.jpg'); }
.bg-parallax--company { background-image: url('../images/bg-company.jpg'); }
.bg-parallax--services { background-image: url('../images/bg-services.jpg'); }
.bg-parallax--contact { background-image: url('../images/bg-contact.jpg'); background-position: center 70%; }
.bg-parallax--privacy { background-image: url('../images/bg-privacy.jpg'); }
.bg-parallax--cookie  { background-image: url('../images/bg-privacy.jpg'); }

/* Z-index layering for parallax pages */
.bg-parallax .header { z-index: 50; }
.bg-parallax main,
.bg-parallax .footer { position: relative; z-index: 1; }

/* Semi-transparent section backgrounds (background shows through) */
.bg-parallax .section { background: rgba(255, 255, 255, 0.92); }
.bg-parallax .section--dark { background: rgba(9, 9, 11, 0.88); }
.bg-parallax .section--dim { background: rgba(244, 244, 245, 0.90); }

/* Privacy / Cookie page uses slightly more opaque white */
.bg-parallax--privacy .section,
.bg-parallax--cookie .section { background: rgba(255, 255, 255, 0.95); }

/* Hero sections are transparent to show the background */
.bg-parallax .hero { background: transparent; }
.bg-parallax .page-hero { background: transparent; }

/* CTA section layering */
.bg-parallax .cta-section { position: relative; z-index: 1; }

/* Footer is opaque on parallax pages */
.bg-parallax .footer { background: var(--upro-dark); }

/* Hide hero bg-img on home page (replaced by body fixed background) */
.bg-parallax .hero__bg-img { display: none; }

/* ---------- Utility: hidden-sp ---------- */
.hidden-sp { display: none; }
@media (min-width: 768px) { .hidden-sp { display: inline; } }
