/* ===========================
   LiA Corporate Site — Light Redesign
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

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

:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --bg-dark: #0D1A35;
  --bg-dark2: #122147;
  --accent: #1E3A8A;
  --accent-mid: #2563EB;
  --accent-light: #3B82F6;
  --text: #0F172A;
  --text-muted: #4A5568;
  --text-dim: #94A3B8;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --shadow-sm: 0 1px 3px rgba(15,30,80,.06), 0 2px 8px rgba(15,30,80,.05);
  --shadow: 0 2px 8px rgba(15,30,80,.07), 0 8px 32px rgba(15,30,80,.08);
  --shadow-hover: 0 4px 16px rgba(15,30,80,.1), 0 16px 48px rgba(15,30,80,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --tr: .3s cubic-bezier(.4,0,.2,1);
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
}

/* html/body に overflow を一切置かない → position:fixed を確実に保護 */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  /* sticky ヘッダーはフロー内に存在するため padding-top 不要 */
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-jp); line-height: 1.3; }

/* ── Utility ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent-mid);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #EEF3FF;
  border: 1px solid #C7D7FF;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
}

.tag-navy {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--tr);
  border: none;
  letter-spacing: .02em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,58,138,.25);
}
.btn-primary:hover { background: var(--accent-mid); box-shadow: 0 8px 24px rgba(30,58,138,.35); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.btn-white {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.btn-white:hover { box-shadow: 0 4px 20px rgba(0,0,0,.18); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--accent-mid);
  padding: 0;
  font-size: 14px;
  gap: 6px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost .arrow { transition: transform .25s; }
.btn-ghost:hover .arrow { transform: translateX(5px); }

/* ── Reveal (GSAP manages these now) ── */
.reveal, .reveal-l, .reveal-r { /* initial state handled by GSAP */ }
.reveal.in, .reveal-l.in, .reveal-r.in { /* legacy fallback */ }

/* ===========================
   HEADER
   =========================== */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(15,30,80,.06);
  transition: background .4s ease, border-color .4s ease,
              box-shadow .4s ease, backdrop-filter .4s ease;
}

/* ── ヒーローページ: スクロール前は透明 ── */
.has-hero #header:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
/* ロゴを白く */
.has-hero #header:not(.scrolled) .logo img {
  filter: brightness(0) invert(1);
  transition: filter .4s ease;
}
/* ナビリンクを白く */
.has-hero #header:not(.scrolled) .nav-desktop a {
  color: rgba(255,255,255,.85);
}
.has-hero #header:not(.scrolled) .nav-desktop a:hover {
  color: #fff;
}
/* Contactボタン: 白枠スタイルに */
.has-hero #header:not(.scrolled) .nav-contact-btn {
  background: rgba(255,255,255,.15) !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  color: #fff !important;
}
.has-hero #header:not(.scrolled) .nav-contact-btn:hover {
  background: rgba(255,255,255,.25) !important;
}
/* ハンバーガーを白く */
.has-hero #header:not(.scrolled) .hamburger span {
  background: #fff;
}

.logo img { height: 34px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--tr);
  position: relative;
  white-space: nowrap;
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a.active { color: var(--accent); }
.nav-desktop a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px; right: 0;
  height: 2px;
  background: var(--accent-mid);
  border-radius: 2px;
}
.nav-contact-btn {
  padding: 9px 22px !important;
  background: var(--accent) !important;
  border-radius: 100px !important;
  color: #fff !important;
  font-size: 13px !important;
  transition: background var(--tr), transform var(--tr) !important;
}
.nav-contact-btn:hover { background: var(--accent-mid) !important; transform: translateY(-1px) !important; }
.nav-contact-btn.active::after { display: none !important; }

.ext-icon { font-size: 10px; opacity: .5; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px 0;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--tr);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 199;
  padding: 32px 40px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--tr);
}
.nav-mobile a:hover { color: var(--accent-mid); }
.nav-mobile a:first-child { border-top: 1px solid var(--border); }

/* ===========================
   HERO — dark cinematic
   =========================== */
#hero {
  position: relative;
  /* sticky ヘッダーの裏側に重なるよう -70px 引き上げる */
  margin-top: -70px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #06101f;
}

/* ── Video background ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #06101f;
}
.hero-bg-img {
  display: none;
}
.hero-bg-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ── Gradient overlay — left heavy, transparent on right grid area ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,  rgba(4,10,24,.85) 0%, rgba(4,10,24,.60) 38%, rgba(4,10,24,.15) 55%, transparent 68%),
    linear-gradient(to bottom, rgba(4,10,24,.45) 0%, transparent 35%, rgba(4,10,24,.40) 100%);
}

/* ── Large decorative background text ── */
.hero-deco-text {
  position: absolute;
  bottom: -.1em;
  left: 0; right: 0;
  font-family: var(--font-en);
  font-size: clamp(80px, 15vw, 220px);
  font-weight: 900;
  letter-spacing: -.04em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.055);
  pointer-events: none;
  z-index: 1;
  user-select: none;
  white-space: nowrap;
}

/* ── Inner — 2-col: text left / grid right ── */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 40px 0 60px 8vw;
  gap: 0;
}

.hero-left {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  padding-right: 40px;
}

/* ── 9-cell photo grid ── */
.hero-grid {
  flex: 0 0 46vw;
  max-width: 680px;
  /* height = 46vw × 2/3 to match 3:2 photo ratio (no distortion) */
  height: clamp(360px, 30.7vw, 520px);
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  overflow: hidden;
}
.hero-cell {
  position: relative;
  overflow: hidden;
  background: #0b1929;
}
.cell-layer {
  position: absolute;
  inset: 0;
  background-size: 300% 300%;
  background-repeat: no-repeat;
  transition: opacity 1.4s ease;
}

/* ── Text colours (white on dark) ── */
.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: rgba(255,255,255,.4); }

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-subtitle { font-size: 18px; color: rgba(255,255,255,.92); font-weight: 700; margin-bottom: 8px; }
.hero-tagline  { font-size: 15px; color: rgba(255,255,255,.52); margin-bottom: 48px; }
.hero-actions  { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Ghost-white button ── */
.btn-ghost-w {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--tr);
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.35);
  letter-spacing: .02em;
  white-space: nowrap;
}
.btn-ghost-w:hover {
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* ── Deco text — left side only ── */
.hero-deco-text { display: none; }

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 36px; left: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.scroll-hint-line {
  width: 40px; height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,.4), transparent);
}

/* ===========================
   NEWS BAR
   =========================== */
#newsbar {
  background: var(--accent);
  padding: 0 48px;
}
.newsbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.newsbar-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  padding: 16px 28px 16px 0;
  border-right: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.newsbar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  flex: 1;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  transition: opacity var(--tr);
}
.newsbar-item:hover { opacity: .8; }
.newsbar-date { font-family: var(--font-en); font-size: 12px; color: rgba(255,255,255,.6); white-space: nowrap; }
.newsbar-cat { padding: 2px 10px; background: rgba(255,255,255,.15); border-radius: 100px; font-size: 11px; color: #fff; white-space: nowrap; }
.newsbar-title { font-size: 13px; color: #fff; }
.newsbar-more {
  display: flex; align-items: center;
  padding: 16px 0 16px 28px;
  font-family: var(--font-en);
  font-size: 12px;
  color: rgba(255,255,255,.6);
  border-left: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
  gap: 6px;
  transition: color var(--tr);
}
.newsbar-more:hover { color: #fff; }

/* ===========================
   ABOUT (HOME)
   =========================== */
#home-about { padding: 120px 0; background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-wrap img { width: 100%; height: 480px; object-fit: cover; }
.about-bar {
  position: absolute;
  left: -12px; top: 48px;
  width: 4px; height: 80px;
  background: linear-gradient(to bottom, var(--accent-mid), var(--accent-light));
  border-radius: 4px;
}
.about-text { display: flex; flex-direction: column; gap: 24px; }
.about-heading { font-size: clamp(26px,3vw,40px); font-weight: 700; line-height: 1.35; }
.about-heading em { font-style: normal; color: var(--accent-mid); }
.about-body { font-size: 15px; color: var(--text-muted); line-height: 1.9; }

/* ===========================
   SERVICE (HOME)
   =========================== */
#home-service { padding: 120px 0; background: var(--bg-alt); }

.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 60px;
  align-items: end;
}
.service-heading { font-size: clamp(24px,3vw,38px); font-weight: 700; line-height: 1.35; }
.service-body { font-size: 15px; color: var(--text-muted); line-height: 1.9; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.scard {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
  position: relative;
  overflow: hidden;
}
.scard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--tr);
}
.scard:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: #C7D7FF; }
.scard:hover::before { opacity: 1; }
.scard-num {
  font-family: var(--font-en);
  font-size: 56px; font-weight: 900;
  letter-spacing: -.04em; line-height: 1;
  color: rgba(30,58,138,.06);
  margin-bottom: 14px;
  transition: color var(--tr);
}
.scard:hover .scard-num { color: rgba(30,58,138,.1); }
.scard-label {
  font-family: var(--font-en);
  font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 8px;
}
.scard-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; line-height: 1.4; color: var(--text); }
.scard-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===========================
   MESSAGE (HOME)
   =========================== */
#home-message { padding: 120px 0; background: #fff; }

.msg-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 80px;
  align-items: center;
}
.msg-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.msg-img-wrap img {
  width: 100%; height: 540px;
  object-fit: cover; object-position: center top;
}
.msg-text { display: flex; flex-direction: column; gap: 24px; }
.msg-heading { font-size: clamp(22px,2.5vw,34px); font-weight: 700; line-height: 1.45; }
.msg-body { font-size: 15px; color: var(--text-muted); line-height: 1.9; }
.msg-attr { padding-top: 20px; border-top: 1px solid var(--border); }
.msg-attr .co { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; font-family: var(--font-en); }
.msg-attr .name { font-size: 16px; font-weight: 700; }

/* ===========================
   CAREER BANNER (HOME)
   =========================== */
#home-career {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.career-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .4;
}
.career-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,26,53,.95) 0%, rgba(13,26,53,.7) 60%, rgba(30,58,138,.3) 100%);
}
.career-content { position: relative; z-index: 2; max-width: 640px; }
.career-heading { font-size: clamp(28px,4vw,52px); font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: 20px; letter-spacing: -.02em; }
.career-body { font-size: 15px; color: rgba(255,255,255,.7); line-height: 1.85; margin-bottom: 36px; }

/* ===========================
   FOOTER
   =========================== */
#footer {
  background: var(--bg-dark);
  padding: 72px 48px 40px;
  color: #fff;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-address { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.9; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav-group h4 {
  font-family: var(--font-en);
  font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}
.footer-nav-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-group a { font-size: 13px; color: rgba(255,255,255,.6); transition: color var(--tr); }
.footer-nav-group a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.copyright { font-family: var(--font-en); font-size: 12px; color: rgba(255,255,255,.3); }

/* ===========================
   PAGE HEADER
   =========================== */
.page-header {
  padding: 148px 48px 72px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.page-header-bg-text {
  position: absolute;
  font-family: var(--font-en);
  font-size: clamp(72px,8vw,120px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: rgba(30,58,138,.05);
  pointer-events: none;
  top: 60px; left: 48px;
  white-space: nowrap;
  line-height: 1;
}
.page-header-inner { max-width: 1160px; margin: 0 auto; }
.breadcrumb {
  font-family: var(--font-en);
  font-size: 12px; color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.breadcrumb a:hover { color: var(--accent-mid); }
.page-header-ja { font-size: clamp(24px,3vw,38px); font-weight: 800; }

/* Page tabs */
.page-tabs-wrap { background: #fff; border-bottom: 1px solid var(--border); }
.page-tabs {
  max-width: 1160px; margin: 0 auto;
  padding: 0 48px;
  display: flex; gap: 0;
  overflow-x: auto;
}
.page-tabs::-webkit-scrollbar { display: none; }
.page-tabs a {
  padding: 14px 24px;
  font-size: 13px; font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--tr), border-color var(--tr);
}
.page-tabs a:hover { color: var(--text); }
.page-tabs a.active { color: var(--accent-mid); border-color: var(--accent-mid); }

/* ===========================
   ABOUT PAGE
   =========================== */
.philosophy-wrap { padding: 100px 0; background: #fff; }
.philosophy-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
.philosophy-sticky { position: sticky; top: 96px; }
.mission-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.mission-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.mission-card-label { font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-mid); margin-bottom: 20px; }
.mission-main { font-size: clamp(20px,2.5vw,26px); font-weight: 800; line-height: 1.35; margin-bottom: 20px; }
.mission-body { font-size: 14px; color: var(--text-muted); line-height: 1.95; }

.style-wrap { padding: 100px 0; background: var(--bg-alt); }
.style-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.style-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 44px 48px;
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}
.style-item:last-child { border-bottom: none; }
.style-item:hover { background: #F7FAFF; }
.style-num { font-family: var(--font-en); font-size: 60px; font-weight: 900; letter-spacing: -.04em; color: rgba(30,58,138,.06); line-height: 1; transition: color var(--tr); }
.style-item:hover .style-num { color: rgba(30,58,138,.12); }
.style-title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.style-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

.company-wrap { padding: 100px 0; background: #fff; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table tr:first-child { border-top: 1px solid var(--border); }
.company-table th, .company-table td { padding: 22px 0; font-size: 14px; text-align: left; vertical-align: top; }
.company-table th { width: 200px; color: var(--text-dim); font-weight: 500; padding-right: 40px; }
.company-table td { color: var(--text); line-height: 1.8; }

/* ===========================
   SERVICE PAGE
   =========================== */
.sv-overview { padding: 80px 0 60px; background: #fff; }
.sv-overview-body { max-width: 680px; font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-top: 24px; }

.sv-detail-list { padding: 40px 0 120px; background: #fff; }
.sv-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.sv-item:last-child { border-bottom: none; }
.sv-item.reverse { direction: rtl; }
.sv-item.reverse > * { direction: ltr; }
.sv-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.sv-img img { width: 100%; height: 340px; object-fit: cover; }
.sv-num { font-family: var(--font-en); font-size: 72px; font-weight: 900; letter-spacing: -.05em; color: rgba(30,58,138,.06); line-height: .9; margin-bottom: 10px; }
.sv-label { font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-mid); margin-bottom: 14px; }
.sv-title { font-size: clamp(18px,2vw,24px); font-weight: 800; line-height: 1.35; margin-bottom: 18px; }
.sv-desc { font-size: 14px; color: var(--text-muted); line-height: 1.9; margin-bottom: 22px; }
.sv-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===========================
   MESSAGE PAGE
   =========================== */
.msg-page { padding: 80px 0 120px; background: #fff; }
.msg-page-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: start;
}
.msg-page-photo {
  position: sticky; top: 96px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.msg-page-photo img { width: 100%; height: 520px; object-fit: cover; object-position: center top; }
.msg-page-name-card {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.msg-page-name-card .co { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.msg-page-name-card .nm { font-size: 17px; font-weight: 700; }

.msg-page-content {}
.msg-quote-head { font-size: clamp(22px,2.5vw,32px); font-weight: 800; line-height: 1.4; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.msg-quote-head em { font-style: normal; color: var(--accent-mid); }
.msg-sections { display: flex; flex-direction: column; gap: 48px; }
.msg-sec h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; padding-left: 18px; border-left: 3px solid var(--accent-mid); line-height: 1.4; }
.msg-sec p { font-size: 14px; color: var(--text-muted); line-height: 1.95; }

/* ===========================
   NEWS PAGE
   =========================== */
.news-page { padding: 80px 0 120px; background: #fff; }
.news-filter { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.news-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.news-row {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--tr);
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: #F7FAFF; }
.news-row-date { font-family: var(--font-en); font-size: 13px; color: var(--text-dim); min-width: 84px; }
.news-row-cat { min-width: 80px; }
.news-row-title { font-size: 14px; flex: 1; }
.news-row-arrow { color: var(--text-dim); font-size: 14px; transition: transform .25s, color .25s; }
.news-row:hover .news-row-arrow { transform: translateX(5px); color: var(--accent-mid); }

/* ===========================
   CAREER PAGE
   =========================== */
.career-hero {
  position: relative;
  height: 480px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  margin-top: 70px;
}
.career-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.career-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,26,53,.85) 0%, rgba(13,26,53,.4) 60%, transparent 100%);
}
.career-hero-content { position: relative; z-index: 2; padding: 0 0 56px; color: #fff; width: 100%; }
.career-hero-content h1 { font-size: clamp(28px,4vw,52px); font-weight: 800; margin-bottom: 12px; }
.career-hero-content p { font-size: 15px; color: rgba(255,255,255,.75); }

.career-why { padding: 100px 0; background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
}
.why-num { font-family: var(--font-en); font-size: 42px; font-weight: 900; color: var(--accent); letter-spacing: -.03em; margin-bottom: 12px; }
.why-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.why-desc { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

.career-style { padding: 100px 0; background: #fff; }
.career-style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.cs-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cs-num { font-family: var(--font-en); font-size: 32px; font-weight: 900; color: rgba(30,58,138,.15); min-width: 48px; line-height: 1; }
.cs-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.cs-desc { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

.career-cta { padding: 100px 0; background: var(--accent); text-align: center; }
.career-cta h2 { font-size: clamp(24px,3vw,38px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.career-cta p { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 36px; }

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-page { padding: 80px 0 120px; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 56px; align-items: start; }
.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.contact-info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.contact-info-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.contact-info-row:last-child { border-bottom: none; }
.contact-info-label { font-weight: 600; color: var(--text-dim); min-width: 80px; font-size: 12px; text-transform: uppercase; font-family: var(--font-en); letter-spacing: .05em; padding-top: 2px; }
.contact-info-val { color: var(--text); line-height: 1.7; }
.contact-map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.contact-map-placeholder p { color: var(--text-dim); font-size: 14px; text-align: center; }
.contact-note {
  margin-top: 48px;
  background: #EEF3FF;
  border: 1px solid #C7D7FF;
  border-radius: var(--radius);
  padding: 28px 32px;
  font-size: 14px;
  color: var(--accent);
  line-height: 1.8;
}

/* ===========================
   CTA BLOCK (shared)
   =========================== */
.cta-block { padding: 96px 0; text-align: center; }
.cta-block.light { background: var(--bg-alt); }
.cta-block h2 { font-size: clamp(22px,3vw,36px); font-weight: 700; margin-bottom: 16px; }
.cta-block p { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero-inner { padding: 40px 40px 60px 5vw; }
  .hero-left { min-width: 260px; }
  .hero-grid { flex: 0 0 44vw; height: clamp(320px, 29.3vw, 480px); gap: 3px; }
  .about-grid, .msg-grid, .service-intro, .msg-page-grid,
  .philosophy-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .philosophy-sticky { position: static; }
  .msg-page-photo { position: static; }
  .sv-item { grid-template-columns: 1fr; gap: 40px; }
  .sv-item.reverse { direction: ltr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .career-style-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  #header { padding: 0 24px; }
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  #newsbar { padding: 0 24px; }
  .newsbar-inner { flex-direction: column; }
  .newsbar-label { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); padding: 12px 0; }
  .newsbar-item { padding: 12px 0; }
  .newsbar-more { border-left: none; border-top: 1px solid rgba(255,255,255,.15); padding: 12px 0; }
  #home-about, #home-service, #home-message { padding: 72px 0; }
  #home-career { height: auto; padding: 80px 0; }
  .career-content { padding: 0 24px; }
  .page-header { padding: 120px 24px 56px; }
  .page-header-bg-text { left: 24px; font-size: 56px; }
  .page-tabs { padding: 0 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .scard { padding: 28px; }
  .style-item { grid-template-columns: 1fr; gap: 16px; padding: 32px 28px; }
  .company-table th { width: 100px; }
  .why-grid { grid-template-columns: 1fr; }
  .career-style-grid { grid-template-columns: 1fr; }
  .msg-grid { grid-template-columns: 1fr; }
  .sv-item { padding: 48px 0; }
  .footer-nav { gap: 28px; }
  #footer { padding: 56px 24px 32px; }
  .footer-top { flex-direction: column; }
  .news-row { padding: 20px 20px; gap: 12px; flex-wrap: wrap; }
  .contact-map-placeholder { height: 240px; }
  .contact-info-card { padding: 32px 24px; }
  /* モバイル：テキスト上、グリッド下に縦積み */
  .hero-inner {
    padding: 32px 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .hero-left { width: 100%; padding: 0 24px; }
  .hero-grid {
    display: grid;        /* ← display:none を解除 */
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: clamp(180px, 56vw, 260px);
    align-self: auto;
    gap: 3px;
  }
  .career-hero { height: 360px; }
  .scroll-hint { left: 24px; bottom: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 42px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-grid { height: clamp(160px, 52vw, 220px); }
  .page-tabs a { padding: 12px 14px; font-size: 12px; }
}

/* ===========================
   ANIMATION SYSTEM (GSAP)
   =========================== */

/* ── Line wrap for hero text clip animation ── */
.lw { display: block; overflow: hidden; }
.li { display: block; will-change: transform; }

/* ── Custom Cursor (desktop only) ── */
.cursor,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  border-radius: 50%;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--accent-mid);
  z-index: 10000;
  mix-blend-mode: multiply;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  opacity: .45;
  transition: width .28s cubic-bezier(.4,0,.2,1),
              height .28s cubic-bezier(.4,0,.2,1),
              opacity .28s;
}
.cursor-ring.expand { width: 64px; height: 64px; opacity: .2; }
@media (pointer: coarse) { .cursor, .cursor-ring { display: none !important; } }

/* ── Page Transition Overlay ── */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 9990;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

/* ── Marquee ── */
.marquee-section {
  overflow: hidden;
  padding: 18px 0;
  background: var(--accent);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 22s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.marquee-item span {
  display: inline-block;
  width: 4px; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Image clip-path helper ── */
.clip-ready {
  clip-path: inset(0 100% 0 0);
  overflow: hidden;
}

/* ── Career Hero (video-ready) ── */
.career-hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Hover shimmer on cards ── */
.scard, .why-card, .cs-card {
  position: relative;
  overflow: hidden;
}
.scard::after, .why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(37,99,235,.04) 100%);
  opacity: 0;
  transition: opacity var(--tr);
}
.scard:hover::after, .why-card:hover::after { opacity: 1; }

/* ── Subtle float animation for hero images ── */
@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(-6px); }
  50%       { transform: translateY(6px); }
}
.hero-img-slot:nth-child(1) { animation: float-a 6s ease-in-out infinite; }
.hero-img-slot:nth-child(2) { animation: float-b 7s ease-in-out infinite 0.8s; }

/* ── Page-enter fade ── */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
body { animation: page-enter .6s ease both; }
