/* LANGX 共通トップ（/）。参照：reference/dc/MainCG.dc.html（PC）、MobileCG.dc.html（モバイル） */

:root { --accent: var(--eg-iris); }

.sp-only { display: none !important; }

/* ---------- 共通の部品 ---------- */
.display {
  margin: 0; font-family: 'Inter', sans-serif; font-size: 56px; line-height: 1.1; font-weight: 700;
  letter-spacing: -.025em; color: var(--eg-navy);
}
.tag {
  font-size: 11px; line-height: 1.6; letter-spacing: .06em; color: #1F4472;
  background: var(--eg-navy-050); border-radius: 6px; padding: 0 8px;
}
.tag--wide { font-size: 12px; padding: 0 10px; }
.scene { display: flex; align-items: center; gap: 8px; }
.scene__name { font-size: 13px; font-weight: 500; color: var(--eg-navy); }
.ul { border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }

/* ---------- モバイルのメニュー ---------- */
.sp-menu {
  position: fixed; z-index: 19; left: 0; right: 0; top: 0;
  padding: 76px 16px 24px; display: flex; flex-direction: column; gap: 10px;
  background: #FFFFFF; border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 6px 16px -4px rgba(14,42,71,.10), 0 2px 4px rgba(14,42,71,.05);
}
.sp-menu[hidden] { display: none; }
.sp-menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 18px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.sp-menu__item--navy { background: var(--eg-navy); color: #FFFFFF; }
.sp-menu__item--soon { border: 1px solid var(--eg-line); background: var(--eg-wash); color: #64748B; cursor: default; }
.sp-menu__soon { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: #64748B; }

/* ---------- ヒーロー ---------- */
.hero { padding: 16px 40px 0; }
.hero__frame {
  max-width: 1360px; margin: 0 auto; position: relative; overflow: hidden; border-radius: 20px;
  background: #0B0C0E; min-height: 520px; display: flex; align-items: flex-start;
}
.hero__media { position: absolute; top: 0; bottom: 0; left: 22%; right: 0; }
.hero__media picture, .hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.hero__poster, .hero__video { object-fit: cover; object-position: 60% 55%; }
.hero__video { opacity: 0; transition: opacity 400ms ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0B0C0E 0%, #0B0C0E 22%, rgba(11,12,14,0) 42%); }
.hero__copy {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  padding: 64px 72px 0; max-width: 520px;
}
.hero__title { margin: 0; line-height: 0; }
.hero__title img { display: block; width: 400px; max-width: 100%; height: auto; }
.hero__lead { margin: 0; font-size: 18px; line-height: 1.7; font-weight: 500; letter-spacing: .02em; color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* ---------- 3つの入口（上部・下部共通） ---------- */
.entry { padding: 24px clamp(16px, 2.8vw, 40px) 0; }
.entry__row { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(12px, 1.7vw, 24px); }
.entry-card {
  flex: 1 1 calc((560px - 100%) * 999); min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(24px, 2.8vw, 40px);
  padding: clamp(20px, 2.2vw, 32px);
}
.entry-card__title {
  margin: 0; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.5; font-weight: 700;
  letter-spacing: .02em; color: var(--eg-navy);
}
.entry-card__title--light { color: #FFFFFF; }
.entry-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: 10px 18px; border-radius: 10px;
  font-size: 15px; line-height: 1.4; font-weight: 700; text-decoration: none;
}
.entry-btn--navy { background: var(--eg-navy); color: #FFFFFF; }
.entry-btn--white { background: #FFFFFF; color: var(--eg-navy); }
.entry-btn--soon {
  justify-content: center; border: 1px solid var(--eg-line); background: var(--eg-wash);
  font-weight: 600; letter-spacing: .06em; color: #64748B; cursor: default;
}
.entry-btn--soon-dark {
  justify-content: center; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06);
  font-weight: 600; letter-spacing: .06em; color: #DCE4EF; cursor: default;
}

/* ---------- Don't think, just talk.（カルーセル） ---------- */
.pillars { padding: 120px 0 72px; }
.pillars__head {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.pillars__lead { margin: 0; font-size: 18px; line-height: 1.8; font-weight: 500; color: #374151; }
.pillars__track {
  --gutter: max(40px, calc((100% - 1200px) / 2));
  margin-top: 56px; display: flex; align-items: stretch; gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 32px; scrollbar-width: none;
}
.pillars__track::-webkit-scrollbar { display: none; }
.pillars__track:focus-visible { outline-offset: -3px; }
.pillar {
  flex: 0 0 min(520px, 86%); scroll-snap-align: start; min-width: 0;
  padding: 40px 36px; display: flex; flex-direction: column; gap: 36px;
}
.pillar--measure { flex-basis: min(600px, 86%); }
.pillar__text { display: flex; flex-direction: column; gap: 12px; }
.pillar__title { margin: 0; font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: .04em; color: var(--eg-navy); }
.pillar__catch { margin: 0; font-size: 22px; line-height: 1.5; font-weight: 500; color: var(--eg-navy); white-space: nowrap; }
.pillar__catch--bold { font-weight: 700; }
.pillar__body { margin: 4px 0 0; font-size: 15px; line-height: 1.9; color: #374151; }

/* 話す：重なった3枚のカード */
.stack { position: relative; height: 212px; margin-top: auto; }
.stack__card {
  position: absolute; height: 128px; padding: 0 16px 12px; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 12px; background: var(--eg-wash); border: 1px solid #E5E7EB;
}
.stack__card--1 { left: 24px; right: 24px; top: 84px; }
.stack__card--2 { left: 12px; right: 12px; top: 42px; }
.stack__card.stack__card--3 {
  position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px 12px; justify-content: space-between;
  border-radius: 14px; border: none;
}
.stack__scene { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stack__ai { margin: 0; font-size: 12px; line-height: 1.5; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try { display: flex; align-items: baseline; gap: 10px; font-size: 13px; line-height: 1.4; min-width: 0; }
.try--now { line-height: 1.45; }
.try__n { flex: none; color: #64748B; }
.try__t { min-width: 0; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try__t--muted { color: #64748B; }
.try__t--clamp { color: var(--eg-ink); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 測る */
.measure { display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
.measure__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.measure__note { font-size: 12px; color: #64748B; }
.measure__map { position: relative; width: 520px; max-width: 100%; height: 264px; }
.measure__utter {
  position: absolute; left: 0; top: 0; width: 200px; height: 264px; border-radius: 10px;
  background: var(--eg-wash); border: 1px solid #E5E7EB;
  display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); padding: 0 14px; font-size: 14px; color: var(--eg-ink);
}
.measure__utter > div { display: flex; align-items: center; white-space: nowrap; }
.measure__lines { position: absolute; left: 0; top: 0; pointer-events: none; color: var(--accent); }
.measure__bars { position: absolute; left: 280px; top: 0; width: 240px; height: 264px; }
.measure__sentence {
  margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--eg-wash); border: 1px solid #E5E7EB;
  font-size: 15px; line-height: 1.95; color: var(--eg-ink);
}
.measure__sentence .ul { padding-bottom: 0; }

/* 横棒 */
.bars { display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); }
.bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar__label { width: 80px; flex: none; font-size: 13px; color: #374151; white-space: nowrap; }
.bar__track { position: relative; display: block; flex: 1 1 auto; height: 14px; border-radius: 4px; background: var(--eg-navy-050); }
.bar__track--fixed { flex: none; width: 152px; }
.bar__now { position: absolute; left: 0; top: 4px; height: 6px; border-radius: 3px; background: var(--accent); }
.bar__prev { position: absolute; left: 0; top: 0; height: 14px; border-radius: 4px; background: #C7D3E3; }
.bar__word { min-width: 0; font-size: 12px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 伸ばす */
.grow { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.grow__legend { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #64748B; }
.grow__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.grow__key { display: block; width: 16px; }
.grow__key--prev { height: 10px; border-radius: 3px; background: #C7D3E3; }
.grow__key--now { height: 4px; border-radius: 2px; background: var(--accent); }
.bars--grow { height: 168px; }
.grow__next {
  margin-top: 4px; padding: 14px 16px; border-radius: 10px; background: var(--eg-wash); border: 1px solid #E5E7EB;
  display: flex; flex-direction: column; gap: 6px;
}
.grow__next-label { margin: 0; font-size: 12px; letter-spacing: .06em; color: #64748B; }
.grow__next-text { margin: 0; font-size: 14px; line-height: 1.7; color: var(--eg-ink); }

/* ドットと矢印 */
.pillars__controls {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pillars__dots { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.pillars__dots span {
  display: block; height: 4px; width: 8px; border-radius: 2px; background: #C7D3E3;
  transition: width 220ms cubic-bezier(.22,.61,.36,1), background-color 220ms;
}
.pillars__dots span.is-active { width: 24px; background: var(--accent); }
.pillars__arrows { display: flex; gap: 8px; }
.pillars__arrow {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border-radius: 10px; border: 1px solid var(--eg-line); background: #FFFFFF; color: var(--eg-navy); cursor: pointer;
}
.pillars__arrow:disabled { opacity: .4; cursor: default; }
.pillars__arrow:disabled:hover { background: #FFFFFF; }

/* ---------- 会話の画像 ---------- */
.conversation { padding: 0 40px; background: linear-gradient(to bottom, var(--eg-paper) 50%, var(--eg-wash) 50%); }
.conversation__inner { max-width: 1040px; margin: 0 auto; }
.conversation img {
  display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; border-radius: 14px;
  box-shadow: 0 0 0 .5px rgba(143,185,222,.34), 0 2px 5px rgba(14,42,71,.06), 0 18px 30px -16px rgba(62,78,149,.22);
}

/* ---------- Full science for interaction. ---------- */
.science { padding: 96px 40px 128px; background: var(--eg-wash); }
.science__intro { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.science__title { line-height: 1.15; text-align: center; text-wrap: balance; }
.science__text { display: flex; flex-direction: column; gap: 28px; font-size: 18px; line-height: 2; color: #374151; }
.science__text p { margin: 0; text-wrap: pretty; }
.science__text .science__strong { font-weight: 700; color: var(--eg-navy); }

.research { max-width: 1040px; margin: 112px auto 0; display: flex; flex-direction: column; gap: 32px; }
.research__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--eg-line); padding-top: 28px;
}
.research__title {
  margin: 0; font-family: 'Inter', sans-serif; font-size: 24px; line-height: 1.3; font-weight: 700;
  letter-spacing: -.015em; color: var(--eg-navy);
}
.research__more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 14px; font-weight: 500; color: #1F4472; text-decoration: none;
}
.research__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.article-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; color: var(--eg-navy); text-decoration: none; }
.article-card__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #64748B; }
.article-card__meta time { font-variant-numeric: tabular-nums; }
.article-card__title { font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--eg-navy); }
.article-card__body { font-size: 14px; line-height: 1.85; color: #374151; }
.article-card__more {
  margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--accent);
}

.research__lists {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 40px 56px; margin-top: 16px;
}
.research__lists > div { min-width: 0; }
.list-title { margin: 0 0 8px; font-size: 13px; line-height: 1.6; font-weight: 600; letter-spacing: .08em; color: #64748B; }
.awards, .papers { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--eg-line); }
.awards li, .papers li { padding: 16px 0; border-bottom: 1px solid #E5E7EB; }
.awards li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
.awards__date { font-size: 13px; line-height: 1.75; color: #64748B; font-variant-numeric: tabular-nums; }
.awards__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.awards__body a, .awards__name, .papers__name {
  font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--eg-navy); text-decoration: none;
}
.awards__sub, .papers__sub { font-size: 13px; line-height: 1.6; color: #64748B; }
.papers li { display: flex; flex-direction: column; gap: 4px; }

/* ---------- 下部の入口帯 ---------- */
.entry-bottom__pad { padding: 96px clamp(16px, 2.8vw, 40px); }

/* ---------- 下部固定フロート（PCのみ） ---------- */
.float-nav { opacity: 0; visibility: hidden; transform: translate(-50%, 8px); }
.float-nav.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.float-nav a, .float-nav span { transition: color 240ms, background-color 240ms, border-color 240ms; }
.float-nav__link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--eg-navy); text-decoration: none; white-space: nowrap;
}
.eg-float__sep { flex: none; width: 1px; height: 14px; background: var(--eg-line); }
.float-nav__soon {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px;
  font-size: 13px; font-weight: 500; white-space: nowrap; color: #64748B; cursor: default;
}
.eg-float__soon {
  font-size: 10px; line-height: 1; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px;
  border: 1px solid var(--eg-line); color: #64748B;
}
.eg-float[data-dark="1"] .float-nav__soon { color: rgba(238,242,248,.55); }
.eg-float[data-dark="1"] .float-nav__link:hover { background: rgba(255,255,255,.08); }
.eg-float[data-dark="1"] a:focus-visible { outline-color: rgba(238,242,248,.7); }

/* =========================================================
   タブレット幅の調整（768〜1100px）
   ========================================================= */
@media (max-width: 1100px) and (min-width: 768px) {
  .hero__copy { padding: 56px 48px 0; }
  .hero__title img { width: 320px; }
  .display { font-size: 48px; }
}

/* =========================================================
   モバイル（〜767px、参照 390px）
   ========================================================= */
@media (max-width: 767px) {
  .pc-only { display: none !important; }
  .sp-only { display: revert !important; }
  .bars--sp.sp-only { display: grid !important; }

  .site-header { height: 64px; padding: 0 12px 0 16px; gap: 8px; }
  .site-header__logo img { height: 14px; }
  .site-header__nav { gap: 4px; }
  .hbtn--ghost { padding: 0 10px; }
  .hbtn--primary { padding: 0 12px; }
  .menu-toggle { display: flex; }

  .display { font-size: 34px; line-height: 1.15; }

  /* ヒーロー */
  .hero { padding: 8px 12px 0; }
  .hero__frame { min-height: 540px; }
  .hero__media { left: 0; }
  .hero__poster, .hero__video { object-position: 50% 60%; }
  .hero__shade { background: linear-gradient(180deg, rgba(8,26,45,.92) 0%, rgba(8,26,45,.55) 34%, rgba(8,26,45,0) 60%); }
  .hero__copy { gap: 16px; padding: 40px 24px 0; max-width: none; }
  .hero__title img { width: 260px; }
  .hero__lead { font-size: 15px; }

  /* 入口 */
  .entry { padding: 16px 16px 0; }
  .entry__row { flex-direction: column; gap: 16px; }
  .entry-card { gap: 20px; padding: 24px; }
  .entry-card__title { font-size: 20px; }

  /* カルーセル */
  .pillars { padding: 88px 0 40px; }
  .pillars__head { padding: 0 16px; gap: 14px; }
  .pillars__lead { font-size: 15px; }
  .pillars__track { --gutter: 16px; margin-top: 32px; gap: 12px; padding: 4px 16px 28px; }
  .pillar, .pillar--measure { flex: 0 0 min(330px, calc(100% - 28px)); padding: 28px 20px; gap: 28px; }
  .pillar__text { gap: 10px; }
  .pillar__title { font-size: 32px; }
  .pillar__catch { font-size: 20px; }
  .pillar__body { font-size: 14px; }
  .measure { gap: 14px; }
  .bars--sp { height: 192px; }
  .bars--sp .bar__label { width: 60px; font-size: 12px; }
  .bars--sp .bar__track--fixed { width: 84px; }
  .bars--grow .bar__label { width: 72px; font-size: 12px; }
  .pillars__controls { padding: 0 16px; justify-content: center; }
  .pillars__dots { justify-content: center; }
  .pillars__arrows { display: none; }

  /* 会話の画像 */
  .conversation { padding: 0 16px; }
  .conversation__inner { max-width: 680px; }

  /* Science */
  .science { padding: 64px 16px 88px; }
  .science__intro { gap: 40px; }
  .science__text { gap: 24px; font-size: 16px; line-height: 1.95; }
  .research { margin-top: 80px; gap: 24px; }
  .research__head { padding-top: 24px; }
  .research__title { font-size: 22px; }
  .research__cards { gap: 12px; }
  .article-card { gap: 12px; padding: 24px 20px; }
  .article-card__title { font-size: 18px; }
  .article-card__more { padding-top: 4px; }
  .research__lists { margin-top: 24px; gap: 40px; }
  .awards li, .papers li { padding: 14px 0; }
  .awards li { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .awards__body a, .awards__name, .papers__name { font-size: 14px; }

  /* 下部の入口帯 */
  .entry-bottom__pad { padding: 48px 12px; }
  .entry-bottom .entry__row { gap: 12px; }

  /* フロートはPCのみ（モバイルはヘッダーのメニュー） */
  .float-nav { display: none; }
}
