/* ===========================
   リセット & 基本設定
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #D0021B;
  --black: #0A0A0A;
  --dark: #111111;
  --dark2: #1A1A1A;
  --gray: #2A2A2A;
  --gray-light: #444444;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --text-sub: #AAAAAA;
  --font-en: 'Montserrat', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ja);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: none;
}

/* ===========================
   ナビゲーション
=========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: #ff0022 !important;
}

/* ===========================
   ボタン
=========================== */
.btn {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #ff0022;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(208, 2, 27, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 15px;
  padding: 18px 48px;
}

/* ===========================
   セクション共通
=========================== */
.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 56px;
}

/* ===========================
   ヒーロー
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(208, 2, 27, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(208, 2, 27, 0.06) 0%, transparent 60%);
}

.hero-bg::before {
  content: '';
  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: 80px 80px;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
  animation: fadeUp 1s ease forwards;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-ja);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  white-space: nowrap;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--white));
  animation: scrollLine 1.8s ease-in-out infinite;
}

.hero-scroll-hint p {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
}

/* ===========================
   About
=========================== */
.about {
  padding: 120px 0;
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 2;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  transition: border-color var(--transition), background var(--transition);
}

.stat:hover {
  border-color: rgba(208, 2, 27, 0.4);
  background: rgba(208, 2, 27, 0.04);
}

.stat-num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-plus {
  font-size: 20px;
  color: var(--red);
}

.stat-label {
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}

/* ===========================
   Works
=========================== */
.works {
  padding: 120px 0;
  background: var(--black);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--dark2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(208, 2, 27, 0.3);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}

.work-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.work-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

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

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(208, 2, 27, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-overlay span {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--white);
  text-transform: uppercase;
}

.work-info {
  padding: 24px 28px 28px;
}

.work-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--red);
  border: 1px solid rgba(208, 2, 27, 0.4);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.work-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.work-info p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* Featured Work Card (業務効率化) */
.work-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.work-card--featured .work-img-wrap {
  aspect-ratio: auto;
  min-height: 280px;
}

.work-card--featured .work-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
}

.work-card--featured .work-info h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.work-card--featured .work-info p {
  margin-bottom: 20px;
}

.work-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-features li {
  font-size: 13px;
  color: var(--text-sub);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.work-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--red);
}

@media (max-width: 640px) {
  .work-card--featured {
    grid-template-columns: 1fr;
  }

  .work-card--featured .work-img-wrap {
    min-height: 200px;
    aspect-ratio: 16/9;
  }
}

/* ===========================
   Service
=========================== */
.service {
  padding: 120px 0;
  background: var(--dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  padding: 40px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  transition: all var(--transition);
}

.service-card:hover {
  background: rgba(208, 2, 27, 0.05);
  border-color: rgba(208, 2, 27, 0.3);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.9;
}

/* ===========================
   Contact
=========================== */
.contact {
  padding: 160px 0;
  background: var(--black);
  text-align: center;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 40px;
  line-height: 2;
}

/* ===========================
   Footer
=========================== */
.footer {
  padding: 48px 0;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

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

.footer-sns {
  display: flex;
  gap: 16px;
}

.footer-sns-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-sub);
  transition: color var(--transition);
}

.footer-sns-link:hover {
  color: var(--white);
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}

/* ===========================
   アニメーション
=========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 640px) {
  .sp-only { display: block; }

  .nav {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

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

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

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ===========================
   業務効率化 追加スタイル
=========================== */

/* 注目ワークカード */
.work-card--featured {
  border: 1px solid rgba(0, 120, 212, 0.3) !important;
  position: relative;
}

.work-card--featured::before {
  content: 'FEATURED';
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #0078d4, #7b2ff7);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 2;
  font-family: var(--font-en);
}

.work-card--featured:hover {
  border-color: rgba(0, 120, 212, 0.6) !important;
  box-shadow: 0 8px 40px rgba(0, 120, 212, 0.15);
}

/* ホットタグ */
.work-tag--hot {
  background: linear-gradient(135deg, rgba(0,120,212,0.15), rgba(123,47,247,0.15)) !important;
  color: #7ecfff !important;
  border-color: rgba(0, 120, 212, 0.4) !important;
}

/* ツールリスト */
.work-tools {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
}

.work-tools li {
  font-size: 11px;
  color: #88aacc;
  background: rgba(0, 120, 212, 0.1);
  border: 1px solid rgba(0, 120, 212, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}

/* ハイライトサービスカード */
.service-card--highlight {
  border-color: rgba(0, 120, 212, 0.25) !important;
  background: rgba(0, 120, 212, 0.04) !important;
}

.service-card--highlight:hover {
  background: rgba(0, 120, 212, 0.08) !important;
  border-color: rgba(0, 120, 212, 0.5) !important;
}

/* サービスグリッドを5枚対応（3+2折り返し） */
@media (min-width: 901px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
