/* =============================================
   ROOT VARIABLES
   ============================================= */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray: #f5f5f5;
  --color-gray-mid: #888888;
  --color-gray-light: #cccccc;
  --container-max: 1200px;
  --container-pad: 40px;
  --section-pad: 120px;
  --transition: 0.3s ease;
  --font-main: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: padding var(--transition), background var(--transition);
  mix-blend-mode: normal;
}

.header-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  transition: padding var(--transition);
}

.header.scrolled .header-area {
  padding-top: 20px;
  padding-bottom: 20px;
}

.header.scrolled {
  background: rgba(0,0,0,0.95);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--color-black);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color var(--transition);
}

.logo span {
  color: var(--color-black);
}

.header.scrolled .logo {
  color: var(--color-white);
}

.logo-img {
  display: block;
  width: auto;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--color-white);
  text-transform: uppercase;
  position: relative;
  transition: opacity var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  opacity: 0.7;
}

.nav-contact {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 22px;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.nav-contact:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--color-black);
}

/* 左側：白エリア */
.hero-left {
  position: relative;
  width: 52%;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 80px 80px 80px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  z-index: 2;
}

/* 右側：黒エリア（背景画像） */
.hero-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  background: var(--color-black);
  overflow: hidden;
}

.hero-right-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111 0%, #333 50%, #111 100%);
  position: relative;
}

.hero-right-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(255,255,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(255,255,255,0.02) 0%, transparent 50%);
}

/* グリッドライン装飾 */
.hero-right-bg::after {
  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: 60px 60px;
}

.hero-tagline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-gray-mid);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(52px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: var(--color-black);
  text-transform: uppercase;
  margin-bottom: 48px;
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 2.2;
  color: #444;
  margin-bottom: 56px;
  max-width: 320px;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-gray-mid);
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 48px;
  height: 1px;
  background: var(--color-gray-mid);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-black);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 右側テキスト装飾 */
.hero-right-text {
  position: absolute;
  bottom: 60px;
  right: 60px;
  text-align: right;
  z-index: 5;
}

.hero-right-text p {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  line-height: 2.4;
}

/* 中央の数字装飾 */
.hero-number {
  position: absolute;
  top: 50%;
  right: 48%;
  transform: translate(50%, -50%);
  font-size: clamp(140px, 18vw, 240px);
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  user-select: none;
  z-index: 1;
  line-height: 1;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section {
  padding: var(--section-pad) 0;
}

.section-header {
  margin-bottom: 72px;
}

.section-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--color-gray-mid);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-gray-mid);
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.0;
  color: #555;
  margin-top: 28px;
  max-width: 600px;
}

/* =============================================
   SERVICE SECTION
   ============================================= */
.service {
  background: var(--color-white);
  padding: var(--section-pad) 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.service-card {
  background: var(--color-white);
  box-shadow: 0 2px 32px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.14);
}

.service-card-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.service-card-img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img-inner {
  transform: scale(1.05);
}

/* カード画像の代替（グラデーション） */
.service-card-img-inner.bg-1 {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
}
.service-card-img-inner.bg-2 {
  background: linear-gradient(135deg, #2a2a2a 0%, #555 100%);
}
.service-card-img-inner.bg-3 {
  background: linear-gradient(135deg, #111 0%, #444 100%);
}
.service-card-img-inner.bg-4 {
  background: linear-gradient(135deg, #1c1c1c 0%, #4a4a4a 100%);
}

.service-card-img-label {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.15);
  text-transform: uppercase;
  line-height: 1.1;
}

.service-card-body {
  padding: 36px 36px 40px;
}

.service-card-en {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-gray-mid);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.service-card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  line-height: 1.3;
}

.service-card-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 2.0;
  color: #555;
}

/* =============================================
   CTA BUTTON
   ============================================= */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--color-black);
  color: var(--color-white);
  padding: 18px 48px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #333;
  transition: left var(--transition);
  z-index: 0;
}

.btn-more:hover::before {
  left: 0;
}

.btn-more span {
  position: relative;
  z-index: 1;
}

.btn-more .arrow {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 1px;
  background: var(--color-white);
  display: inline-block;
  transition: width var(--transition);
}

.btn-more .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--color-white);
  border-right: 1px solid var(--color-white);
  transform: rotate(45deg);
}

.btn-more:hover .arrow {
  width: 36px;
}

.cta-center {
  text-align: center;
  margin-top: 64px;
}

/* =============================================
   COMPANY SECTION
   ============================================= */
.company-section {
  background: var(--color-black);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.company-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.company-section .section-title {
  color: var(--color-white);
}

.company-section .section-label {
  color: rgba(255,255,255,0.35);
}

.company-section .section-label::before {
  background: rgba(255,255,255,0.35);
}

.company-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}

/* テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.company-table tr:first-child {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.company-table th {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  padding: 24px 0;
  text-align: left;
  width: 38%;
  white-space: nowrap;
}

.company-table td {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  padding: 24px 0 24px 24px;
  line-height: 1.6;
}

/* 代表者名：クローラーに直接テキストとして読まれないようCSSで描画 */
.ceo-name::before {
  content: attr(data-n1) "\00A0" attr(data-n2);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}

/* 数字スタッツ */
.company-stats {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 8px;
}

.company-stat {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(255,255,255,0.15);
}

.company-stat-num {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 10px;
}

.company-stat-label {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   PHILOSOPHY SECTION（斜めデザイン）
   ============================================= */
.philosophy {
  position: relative;
  padding: var(--section-pad) 0 calc(var(--section-pad) + 80px);
  background: var(--color-white);
  overflow: hidden;
}

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-text {
  padding-right: 40px;
}

.philosophy-quote {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.philosophy-quote em {
  font-style: normal;
  color: var(--color-gray-mid);
}

.philosophy-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.2;
  color: #555;
  margin-bottom: 48px;
}

.philosophy-visual {
  position: relative;
  height: 480px;
}

.philosophy-block {
  position: absolute;
}

.philosophy-block-1 {
  top: 0;
  left: 0;
  right: 0;
  height: 62%;
  background: #111;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}

.philosophy-block-2 {
  bottom: 0;
  left: 20%;
  right: 0;
  height: 30%;
  background: #222;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
}

.philosophy-visual-text {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  width: 80%;
}

.philosophy-visual-text p {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  line-height: 2.5;
}

.philosophy-visual-text strong {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.12em;
  margin: 12px 0;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 80px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 24px;
}

.footer-tagline {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 2.0;
  color: rgba(255,255,255,0.45);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav-group h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.6);
}

.footer-nav-group ul li {
  margin-bottom: 12px;
}

.footer-nav-group ul li a {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-nav-group ul li a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
}

.footer-page-top {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-page-top::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.2);
}

.footer-page-top:hover {
  color: var(--color-white);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* delay variants */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* =============================================
   RESPONSIVE — TABLET (1024px)
   ============================================= */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .header-area {
    padding-top: 5.55vw;
    padding-bottom: 5.55vw;
  }

  .hero-left {
    padding: 100px 40px 60px 40px;
  }

  .service-grid {
    gap: 24px;
  }

  .philosophy-inner {
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 200px 1fr;
    gap: 48px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   RESPONSIVE — MOBILE (750px)
   ============================================= */
@media (max-width: 750px) {
  :root {
    --section-pad: 64px;
    --container-pad: 24px;
  }

  /* Header */
  .header-area {
    display: flex;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .nav {
    display: none;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
  }

  .hero-left {
    width: 100%;
    clip-path: none;
    padding: 120px 28px 64px;
  }

  .hero-right {
    position: relative;
    width: 100%;
    height: 280px;
  }

  .hero-number {
    display: none;
  }

  .hero-right-text {
    bottom: 24px;
    right: 24px;
  }

  .hero-title {
    font-size: 48px;
  }

  /* Sections */
  .section-title {
    font-size: 36px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-visual {
    height: 280px;
  }

  .philosophy-text {
    padding-right: 0;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .content-card {
    padding: 40px 28px;
  }
}

/* =============================================
   HAMBURGER MENU (Mobile)
   ============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-white);
  transition: var(--transition);
}

@media (max-width: 750px) {
  .hamburger {
    display: flex;
  }
}

/* =============================================
   MOBILE NAV OPEN STATE
   ============================================= */
.nav.nav-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.97);
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 999;
}

.nav.nav-open a {
  font-size: 18px;
  letter-spacing: 0.3em;
}

.nav.nav-open .nav-contact {
  border-color: rgba(255,255,255,0.4);
  padding: 16px 40px;
  font-size: 13px;
  margin-top: 20px;
}
