/* ===================================
   Base Styles
   =================================== */
:root {
  /* Colors - Medical B2B Design System */
  --color-primary: #1E90FF;        /* 深いネイビー */
  --color-primary-dark: #0F2340;
  --color-primary-light: #EBF4FF;
  --color-secondary: #3182CE;      /* メディカルブルー */
  --color-accent: #00B5AD;         /* ターコイズ */
  --color-text: #2D3748;           /* ダークグレー */
  --color-text-muted: #3D4852;
  --color-bg: #FFFFFF;             /* 白 */
  --color-bg-gray: #F7FAFC;        /* ごく淡いグレー */
  --color-border: #E2E8F0;

  /* Typography */
  --font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-family-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --letter-spacing-ja: 0.04em; /* 日本語用字間 */

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Spacing (8px grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 120px;

  /* Border Radius (統一) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: var(--letter-spacing-ja);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* フォーカス状態（アクセシビリティ） */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* スキップリンク（アクセシビリティ） */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* ===================================
   Header
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-list a:hover {
  color: var(--color-primary);
}

.nav-list a:hover::after {
  width: 100%;
}

.btn-contact {
  display: inline-block;
  padding: 10px 24px;
  background: #1a1a1a;
  color: #fff;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease 0.1s;
}

.btn-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 50%, #fff 50%, #fff 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  z-index: -1;
  transition: background-position 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn-contact::after {
  display: none;
}

.btn-contact:hover {
  color: #1a1a1a;
}

.btn-contact:hover::before {
  background-position: 0% 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
}

/* Hero Splash Logo */
.hero-splash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: splashFadeOut 0.8s ease 1.5s forwards;
}

.hero-splash-logo {
  height: clamp(48px, 10vw, 100px);
  width: auto;
  opacity: 0;
  animation: splashLogoIn 0.8s ease 0.2s forwards;
}

@keyframes splashLogoIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Hero Split Text */
.hero-split {
  background: var(--color-primary-dark);
}

.hero-split .hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.hero-split .hero-title-line {
  display: block;
  font-size: clamp(40px, 10vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(100%);
}

.hero-split .hero-title-line.line-1 {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
}

.hero-split .hero-title-line.line-2 {
  color: var(--color-secondary);
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.4s forwards;
}

.hero-split .hero-title-line.line-3 {
  color: var(--color-accent);
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.6s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-split .hero-desc {
  color: var(--color-text-muted);
  opacity: 0;
  animation: fadeInUp 0.6s ease 3s forwards;
}

.hero-split .hero-cta {
  opacity: 0;
  animation: fadeInUp 0.6s ease 3.2s forwards;
}

.hero-split .hero-scroll {
  opacity: 0;
  animation: fadeInUpCenter 0.6s ease 3.4s forwards;
}

@keyframes fadeInUpCenter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero-split .hero-scroll::before {
  color: var(--color-text-muted);
}

.hero-split .scroll-line {
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
}

.hero-split .scroll-line::after {
  background: var(--color-primary);
}

.hero-split .btn-primary {
  background: #1a1a1a;
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--space-md);
  max-width: 900px;
  opacity: 0;
  transform: translateX(-60px);
  animation: slideInFromLeft 0.8s ease 2s forwards;
}

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-title-main {
  display: block;
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.15em;
}

.hero-cta {
  display: flex;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--color-primary);
  z-index: -1;
  transition: none;
}

.btn-primary::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-primary:hover::after {
  transform: translateX(4px);
}

.btn-primary:hover {
  animation: btnFillToWhite 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.btn-primary:hover::before {
  animation: btnBlueFillThenHide 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes btnBlueFillThenHide {
  0% { width: 0%; opacity: 1; }
  60% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

@keyframes btnFillToWhite {
  0%, 55% { background: #1a1a1a; color: #fff; box-shadow: inset 0 0 0 0 #1a1a1a; }
  60% { background: var(--color-primary); color: #fff; box-shadow: inset 0 0 0 0 #1a1a1a; }
  100% { background: #fff; color: #1a1a1a; box-shadow: inset 0 0 0 1px #1a1a1a; }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll::before {
  content: 'Scroll';
  font-family: var(--font-family-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: #fff;
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

.btn-large {
  padding: 20px 48px;
  font-size: 16px;
}

/* ===================================
   Section Common
   =================================== */
.section {
  padding: var(--space-2xl) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animation Variations */
.section.animate-left {
  transform: translateX(-30px);
}

.section.animate-right {
  transform: translateX(30px);
}

.section.animate-scale {
  transform: scale(0.95);
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Section Label Animation - Timee style */
.section-label {
  font-family: var(--font-family-en);
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  /* Initial state: from right with wide letter-spacing */
  opacity: 0;
  transform: translate3d(60px, 0, 0);
  letter-spacing: 0.4em;
  will-change: transform, opacity, letter-spacing;
  transition:
    opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 1s cubic-bezier(0.25, 0.1, 0.25, 1),
    letter-spacing 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.section-label.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  letter-spacing: 0.02em;
}

/* Text Reveal Animation - from right */
.text-reveal {
  overflow: hidden;
}

.text-reveal-inner {
  display: block;
  opacity: 0;
  transform: translate3d(50px, 0, 0);
  will-change: transform, opacity;
  transition:
    opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.text-reveal.is-visible .text-reveal-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger delays - content reveals after label animation */
.reveal-group .text-reveal:nth-child(1) .text-reveal-inner { transition-delay: 0s; }
.reveal-group .text-reveal:nth-child(2) .text-reveal-inner { transition-delay: 0.15s; }
.reveal-group .text-reveal:nth-child(3) .text-reveal-inner { transition-delay: 0.3s; }
.reveal-group .text-reveal:nth-child(4) .text-reveal-inner { transition-delay: 0.45s; }

/* Service items stagger */
.service-list .service-item:nth-child(1) .text-reveal-inner { transition-delay: 0s; }
.service-list .service-item:nth-child(2) .text-reveal-inner { transition-delay: 0.2s; }
.service-list .service-item:nth-child(3) .text-reveal-inner { transition-delay: 0.4s; }

/* Marker/Highlight Animation */
.text-marker {
  position: relative;
  display: inline;
  background: linear-gradient(transparent 60%, rgba(0, 181, 173, 0.3) 60%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left;
  transition: background-size 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.text-marker.is-visible {
  background-size: 100% 100%;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: gap var(--transition-base);
}

.link-arrow::after {
  content: '→';
  transition: transform var(--transition-base);
}

.link-arrow:hover {
  gap: 12px;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ===================================
   About Section
   =================================== */
.section-about {
  background: var(--color-bg);
  max-width: none;
  padding: var(--space-2xl) var(--space-md);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-main {
  padding-right: var(--space-xl);
}

.about-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.5;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.text-accent {
  color: var(--color-primary);
}

.about-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text-muted);
}

.about-numbers {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.number-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.number-value {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.number-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.about-company {
  background: var(--color-bg-gray);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.about-company-title {
  font-family: var(--font-family-en);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.company-info-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-sm);
  font-size: 14px;
}

.company-info-item dt {
  color: var(--color-text-muted);
}

.company-info-item dd {
  color: var(--color-text);
}

.company-info-item a {
  color: var(--color-primary);
  transition: opacity var(--transition-fast);
}

.company-info-item a:hover {
  opacity: 0.7;
}

/* ===================================
   Service Section
   =================================== */
.section-service {
  background: var(--color-bg);
  max-width: none;
  padding: var(--space-2xl) var(--space-md);
}

.service-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-header {
  margin-bottom: var(--space-xl);
}

.service-headline-main {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-top: var(--space-xs);
}

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
}

.service-item {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.service-item > .text-reveal-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  margin: 0 calc(var(--space-md) * -1);
  align-items: start;
  border-radius: var(--radius-sm);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item-number {
  font-family: var(--font-family-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.service-item-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.service-item-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-name {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}

.service-name-en {
  font-family: var(--font-family-en);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.service-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* ===================================
   Product Section
   =================================== */
.section-product {
  background: var(--color-bg-gray);
  max-width: none;
  padding: var(--space-2xl) var(--space-md);
}

.product-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-header {
  margin-bottom: var(--space-xl);
}

.product-headline-main {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-top: var(--space-sm);
}

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

.product-logo-img {
  display: block;
  max-width: 280px;
  height: auto;
  margin-bottom: var(--space-md);
}

.product-tagline {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.product-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.product-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.product-cta {
  display: flex;
}

.btn-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: none;
}

.btn-product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--color-primary);
  z-index: -1;
  transition: none;
}

.btn-product::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-product:hover::after {
  transform: translateX(4px);
}

.btn-product:hover {
  animation: btnFillToWhite 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.btn-product:hover::before {
  animation: btnBlueFillThenHide 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.product-visual {
  display: flex;
  justify-content: flex-end;
}

/* Monitor Mockup */
.monitor-mockup {
  width: 100%;
  max-width: 620px;
}

.monitor-screen {
  background: #4a4a4a;
  border-radius: 8px 8px 0 0;
  padding: 12px 12px 20px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35), 0 10px 20px -10px rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  display: block;
  border-radius: 2px;
}

.monitor-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-neck {
  width: 80px;
  height: 40px;
  background: linear-gradient(to bottom, #5a5a5a, #4a4a4a);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

.monitor-base {
  width: 160px;
  height: 12px;
  background: linear-gradient(to bottom, #5a5a5a, #4a4a4a);
  border-radius: 0 0 4px 4px;
}

/* ===================================
   Contact Section
   =================================== */
.section-contact {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4da6ff 100%);
  max-width: none;
  padding: var(--space-2xl) var(--space-md);
}

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

.contact-label {
  font-family: var(--font-family-en);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

.contact-headline {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}

.contact-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
}

.contact-cta {
  margin-bottom: var(--space-md);
}

.btn-contact-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: none;
}

.btn-contact-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--color-primary);
  z-index: -1;
  transition: none;
}

.btn-contact-large::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-contact-large:hover::after {
  transform: translateX(4px);
}

.btn-contact-large:hover {
  animation: btnFillToWhite 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.btn-contact-large:hover::before {
  animation: btnBlueFillThenHide 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.contact-email-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-email-sub a {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: all var(--transition-fast);
}

.contact-email-sub a:hover {
  color: #fff;
  border-color: #fff;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-primary-dark);
  color: #fff;
  padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-address {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.footer-links-title {
  font-family: var(--font-family-en);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-links-group a:hover {
  color: #fff;
}

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

.footer-cert {
  display: flex;
  align-items: center;
}

.footer-isms {
  height: 100px;
  width: auto;
  transition: opacity var(--transition-fast);
}

.footer-isms:hover {
  opacity: 0.8;
}

.copyright {
  font-family: var(--font-family-en);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --space-2xl: 80px;
  }

  /* モバイルナビゲーション */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
    background: #ffffff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list a {
    font-size: 18px;
  }

  .nav-list a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-title-main {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-desc {
    font-size: 13px;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 13px;
  }

  .hero-scroll {
    bottom: 24px;
  }

  .scroll-line {
    height: 40px;
  }

  .section {
    padding: var(--space-2xl) 20px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-main {
    padding-right: 0;
  }

  .service-item > .text-reveal-inner {
    grid-template-columns: 50px 1fr;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-sm);
    margin: 0 calc(var(--space-sm) * -1);
  }

  .service-item-content {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .about-numbers {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .product-visual {
    order: -1;
    justify-content: center;
  }

  .monitor-mockup {
    max-width: 100%;
  }

  .monitor-screen {
    padding: 8px 8px 14px;
  }

  .monitor-neck {
    width: 60px;
    height: 30px;
  }

  .monitor-base {
    width: 120px;
    height: 10px;
  }

  .hide-sp {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-isms {
    height: 70px;
  }

  .btn-large {
    padding: var(--space-sm) var(--space-md);
    font-size: 16px;
    width: 100%;
  }
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-main {
    padding-right: 0;
  }

  .product-showcase {
    gap: var(--space-lg);
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* 高解像度ディスプレイ対応 */
@media (min-width: 1400px) {
  :root {
    --max-width: 1320px;
  }
}

/* ===================================
   Page Header (Sub Pages)
   =================================== */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: #fff;
}

.page-title-en {
  font-family: var(--font-family-en);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
}

/* ===================================
   Security Policy Page
   =================================== */
.section-policy {
  max-width: none;
  padding: var(--space-2xl) var(--space-md);
}

.policy-inner {
  max-width: 900px;
  margin: 0 auto;
}

.policy-with-nav {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.policy-nav {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  background: var(--color-bg-gray);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.policy-nav-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.policy-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-nav-list li a {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 6px 0;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
}

.policy-nav-list li a:hover {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

@media (max-width: 768px) {
  .policy-with-nav {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .policy-nav {
    position: static;
  }
}

.policy-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.policy-item {
  padding: var(--space-md);
  background: var(--color-bg-gray);
  border-radius: var(--radius-md);
}

.policy-item-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.policy-item-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.policy-section {
  margin-bottom: var(--space-lg);
}

.policy-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-primary);
}

.policy-section-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.policy-section-content p {
  margin-bottom: var(--space-sm);
}

.policy-section-content p:last-child {
  margin-bottom: 0;
}

.policy-list-items {
  margin: var(--space-sm) 0;
  padding-left: var(--space-md);
  list-style: disc;
}

.policy-list-items li {
  margin-bottom: 8px;
}

.external-services {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.external-service-item {
  padding: var(--space-sm);
  background: var(--color-bg-gray);
  border-radius: var(--radius-sm);
}

.external-service-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.external-service-item p {
  font-size: 14px;
  margin-bottom: 4px;
}

.external-service-item a {
  color: var(--color-primary);
}

.external-service-item a:hover {
  text-decoration: underline;
}

.contact-info-box {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg-gray);
  border-radius: var(--radius-sm);
}

.contact-info-box p {
  margin-bottom: 4px;
}

.contact-info-box a {
  color: var(--color-primary);
}

.policy-signature {
  text-align: right;
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.policy-date {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.policy-company {
  font-size: 16px;
  font-weight: 700;
}

.policy-ceo {
  font-size: 14px;
  color: var(--color-text-muted);
}

.policy-certification {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.certification-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.certification-content {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.certification-logo {
  display: flex;
  justify-content: center;
}

.isms-mark {
  width: 100px;
  height: auto;
}

.certification-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.certification-info-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-sm);
  font-size: 14px;
}

.certification-info-item dt {
  color: var(--color-text-muted);
  font-weight: 500;
}

.certification-info-item dd {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .certification-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .certification-logo {
    justify-content: flex-start;
  }

  .certification-info-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ===================================
   404 Page
   =================================== */
.section-404 {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
}

.error-inner {
  text-align: center;
  padding: var(--space-xl);
}

.error-code {
  font-family: var(--font-family-en);
  font-size: clamp(80px, 20vw, 160px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.error-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.error-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.error-cta {
  display: flex;
  justify-content: center;
}

/* アニメーション軽減設定（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .section {
    opacity: 1;
    transform: none;
  }
}
