/* =============================================
   CSS Variables
============================================= */
:root {
  --grad: linear-gradient(90deg, #6e348f 0%, #683b9a 13%, #593fa2 32%, #3f70ba 55%, #1d9eda 81%, #00c5f6 100%);
  --grad-contact: linear-gradient(to right, #1ba1dd, #0f5777);
  --grad-recruit: linear-gradient(to right, #683b94, #20122e);
  --color-dark-navy: #1a1d2e;
  --color-footer: #111318;
  --color-press: #222222;
  --color-cyan: #1ba1dd;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-body: #333333;
  --color-gray-light: #f8f8f8;
  --container: 1200px;
  --header-h: 70px;
  --transition: 0.3s ease;

  --font-display: 'Jost', sans-serif;
  --font-body-en: 'Inter', sans-serif;
  --font-body-ja: 'Noto Sans JP', sans-serif;
}

/* =============================================
   Reset & Base
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body-ja);
  color: var(--color-body);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

/* SP専用改行 */
.sp-br { display: none; }
@media (max-width: 768px) { .sp-br { display: block; } }

/* =============================================
   Typography Utilities
============================================= */
.section-heading-gradient {
  font-family: var(--font-display);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 0.85;
  letter-spacing: -0.01em;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #141414;
  margin-bottom: 12px;
}
.section-label-light { color: rgba(255,255,255,0.75); }

.dot-svg       { width: 15px; height: 15px; flex-shrink: 0; }
.dot-svg--sm   { width: 9px;  height: 9px; }

/* =============================================
   Container
============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   Buttons
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 52px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #fff;
  cursor: pointer;
  transition: opacity var(--transition);
  border: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }
.btn i { font-size: 13px; }
.svg-icon {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: -0.125em;
  fill: currentColor;
}

.btn-contact { background: var(--grad-contact); }
.btn-recruit { background: var(--grad-recruit); }

.btn.btn-more {
  gap: 40px;
  padding: 8px 12px;
  background: linear-gradient(to right, #fff 50%, #222 50%);
  background-size: 210% 110%;
  background-position: right center;
  border: 1px solid #222;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
  transition: background-position 0.35s ease, color 0.35s ease, opacity 0.7s ease, transform 0.7s ease;
}
.btn.btn-more:hover {
  background-position: left center;
  color: #222;
  opacity: 1;
}

.btn.btn-service {
  gap: 32px;
  padding: 9px 16px;
  background: linear-gradient(to right, #fff 50%, #222 50%);
  background-size: 210% 110%;
  background-position: right center;
  border: 1px solid #222;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: background-position 0.35s ease, color 0.35s ease, opacity 0.7s ease, transform 0.7s ease;
}
.btn.btn-service:hover {
  background-position: left center;
  color: #222;
  opacity: 1;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
  gap: 36px;
}

/* =============================================
   REVEAL ANIMATION（ライン通過テキスト出現）
============================================= */

/* ラップ：overflow:hidden でバーをクリッピング */
.reveal-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  --bar-delay: 0s;
}

/* FOR EVERYONE 行（ヒーロー）はインラインブロック */
.reveal-wrap--gradient {
  display: inline-block;
  margin-top: 6px;
}

/* 行単位ラッパー（JSで生成：幅をテキストに合わせる） */
.reveal-line {
  display: block;
  position: relative;
  overflow: hidden;
  /* width: fit-content; */
}

/* グラデーション帯 - デフォルトは一時停止 */
.reveal-bar {
  position: absolute;
  inset: 0;
  background: var(--grad);
  z-index: 2;
  transform: translateX(-101%);
  animation: reveal-bar-move 0.9s cubic-bezier(0.76, 0, 0.24, 1) both paused;
  animation-delay: var(--bar-delay);
}

/* テキスト要素 - デフォルトは一時停止 */
/* 旧（ヒーロー等：直接の子要素） */
.reveal-wrap > :not(.reveal-bar):not(.reveal-line) {
  animation: reveal-text-snap 0.9s both paused;
  animation-delay: var(--bar-delay);
}
/* 新（スクロールリビール：reveal-line-text） */
.reveal-line-text {
  animation: reveal-text-snap 0.9s both paused;
  animation-delay: var(--bar-delay);
}

/* ヒーロー内は即時再生 */
.hero .reveal-bar,
.hero .reveal-wrap > :not(.reveal-bar):not(.reveal-line) {
  animation-play-state: running;
}

/* 下層ページヒーロー内も即時再生 */
.page-hero .reveal-bar,
.page-hero .reveal-wrap > :not(.reveal-bar):not(.reveal-line) {
  animation-play-state: running;
}

/* スクロールで .is-active が付いたら再生 */
.reveal-wrap.is-active .reveal-bar,
.reveal-wrap.is-active > :not(.reveal-bar):not(.reveal-line) {
  animation-play-state: running;
}
.reveal-wrap.is-active .reveal-line-text {
  animation-play-state: running;
}

@keyframes reveal-bar-move {
  0%   { transform: translateX(-101%); }
  45%  { transform: translateX(0%); }
  55%  { transform: translateX(0%); }
  100% { transform: translateX(101%); }
}

@keyframes reveal-text-snap {
  0%,  44% { opacity: 0; }
  45%, 100% { opacity: 1; }
}

/* =============================================
   Fade-in Animation（コンテンツ単位でスタガー）
============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0s;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="1"] { transition-delay: 0.15s; }
[data-delay="2"] { transition-delay: 0.30s; }
[data-delay="3"] { transition-delay: 0.45s; }
[data-delay="4"] { transition-delay: 0.60s; }

/* =============================================
   HEADER
============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 30px;
}

/* ロゴ */
.header-logo { display: flex; align-items: center; }
.header-logo-img {
  height: 36px;
  width: auto;
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  justify-content: center;
}
.hamburger-line {
  display: block;
  height: 1px;
  background: #222;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.hamburger-line--long  { width: 30px; }
.hamburger-line--mid   { width: 24px; }
.hamburger-line--short { width: 18px; }

.hamburger-btn.is-active .hamburger-line--long  { transform: translateY(7px) rotate(45deg); width: 24px; }
.hamburger-btn.is-active .hamburger-line--mid   { opacity: 0; }
.hamburger-btn.is-active .hamburger-line--short { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* =============================================
   NAV MODAL
============================================= */
.nav-modal {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,52,143,0.35) 0%, rgba(0,197,246,0.35) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-modal.is-open { opacity: 1; pointer-events: auto; }

.nav-modal-card {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 1280px;
  max-height: 90vh;
  padding: 80px 48px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 80px;
  overflow-y: auto;
}

.nav-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-modal-close-line {
  display: block;
  position: absolute;
  width: 40px;
  height: 1px;
  background: #666666;
  top: 50%;
  left: 50%;
  transition: background var(--transition);
}
.nav-modal-close-line:first-child  { transform: translate(-50%, -50%) rotate(45deg); }
.nav-modal-close-line:last-child   { transform: translate(-50%, -50%) rotate(-45deg); }
.nav-modal-close:hover .nav-modal-close-line { background: var(--color-cyan); }

.nav-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 48px 80px;
  padding-left: 50px;
}

.nav-modal-grid li a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: opacity var(--transition);
}
.nav-modal-grid li a:hover { opacity: 0.7; }

.nav-en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 0.9;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.nav-ja {
  font-family: var(--font-body-ja);
  font-size: 13px;
  color: #666;
  -webkit-text-fill-color: #666;
  font-weight: 400;
  display: block;
}

.nav-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-modal-footer-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-modal-footer-logo {
  height: 28px;
  width: auto;
  filter: none;
}

.nav-modal-footer-address {
  font-family: var(--font-body-ja);
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.nav-modal-footer-copy {
  font-family: var(--font-body-ja);
  font-size: 12px;
  color: #666;
}

.nav-modal-overlay { position: fixed; inset: 0; z-index: 1999; display: none; }

/* =============================================
   MOUSE STALKER（インク風カーソル）
============================================= */
body.has-cursor,
body.has-cursor * { cursor: none !important; }

.cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--grad);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  mix-blend-mode: normal;
}

.cursor-aura {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(27, 161, 221, 0.55);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease,
              border-color 0.35s ease, background 0.35s ease,
              opacity 0.2s ease;
}

body.cursor-hover .cursor-dot {
  background: #333333;
  width: 15px;
  height: 15px;
}

body.cursor-hover .cursor-aura {
  width: 58px;
  height: 58px;
  background: rgba(27, 161, 221, 0.12);
  border-color: rgba(27, 161, 221, 0.75);
}

/* =============================================
   TO TOP BUTTON
============================================= */
@keyframes float-updown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.to-top-btn {
  position: fixed;
  right: 24px;
  bottom: 32px;
  width: 80px;
  height: 80px;
  z-index: 900;
  display: block;
  animation: float-updown 2.8s ease-in-out infinite;
}

.to-top-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .to-top-btn {
    width: 40px;
    height: 40px;
    right: 16px;
    bottom: 20px;
  }
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--color-footer);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 0.8fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.footer-logo { display: flex; align-items: center; margin-bottom: 20px; }
.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-address {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
  margin-bottom: 24px;
  font-family: var(--font-body-ja);
}

.footer-buttons { display: flex; gap: 12px; }

.footer-nav { display: flex; flex-direction: column; gap: 0px; margin-top: 4px; }
.footer-nav li a {
  font-family: var(--font-body-ja);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-nav li a:hover { color: var(--color-cyan); }
.footer-nav-heading {
  font-family: var(--font-body-ja);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.footer-nav-divider {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* サービス配下の仮想ページリンク */
.footer-nav-sub a {
  padding-left: 14px;
  color: rgba(255,255,255,0.45) !important;
  font-size: 12px !important;
}
.footer-nav-sub a:hover { color: var(--color-cyan) !important; }

.footer-sns-label {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-sns-icons { display: flex; gap: 12px; }
.sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: background var(--transition), border-color var(--transition);
}
.sns-icon:hover { background: var(--color-cyan); border-color: var(--color-cyan); }

.footer-copy {
  font-family: var(--font-body-ja);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   PAGE HERO（下層ページ共通）
============================================= */
.page-hero {
  position: relative;
  height: 500px;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d1558 0%, #1a2060 50%, #0d3a55 100%);
}

.page-hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 2px 8px;
  animation: page-hero-badge-reveal 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.3s both;
}

@keyframes page-hero-badge-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

.page-hero-badge-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.9vw, 28px);
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.page-hero-title {
  font-family: var(--font-body-ja);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 60px);
  color: #fff;
  line-height: 1;
}

.page-hero-curve {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  background: #fff;
  clip-path: ellipse(58% 100% at 50% 100%);
  z-index: 3;
}

/* =============================================
   RESPONSIVE: Tablet (≤ 1024px)
============================================= */
@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .header-inner { padding: 0 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-buttons { flex-wrap: wrap; }
  .nav-modal { padding: 40px; }
  .nav-modal-card { padding: 60px 36px 32px; gap: 48px; }
  .nav-modal-grid { gap: 36px 48px; padding-left: 24px; }
}

/* =============================================
   RESPONSIVE: SP (≤ 768px)
============================================= */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-logo-img { height: 28px; width: auto; max-width: 50vw; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col--brand { grid-column: unset; }
  .footer-buttons { flex-direction: column; gap: 10px; }
  .footer-buttons .btn { width: 100%; justify-content: space-between; gap: 0; }
  .footer-copy { text-align: center; }
  .page-hero { height: 380px; }
  .page-hero-curve { height: 48px; }
  .nav-modal { padding: 16px; align-items: flex-start; }
  .nav-modal-card {
    padding: 80px 20px 20px;
    gap: 40px;
    overflow-y: auto;
    max-height: calc(100vh - 32px);
    width: 100%;
  }
  .nav-modal-grid { grid-template-columns: 1fr; gap: 20px; padding-left: 0; }
  .nav-en { font-size: clamp(20px, 7vw, 30px); }
  .nav-ja { font-size: 12px; }
  .nav-modal-footer { flex-direction: column; align-items: flex-start; padding-top: 16px; }
  .nav-modal-footer-left { flex-direction: column; align-items: flex-start; gap: 8px; }
}
