/* ============================================================
   daae-trace.css
   DAAE (https://daae.shiftinc.jp/) 完全トレース専用スタイル。
   スコープは body.daae-trace のみ。共有 industry-lp-styles.css・
   他LP(layout-daae 等)には一切影響しない独立ファイル。
   実測値は C:\claude\tmp\daae-trace\trace-spec.md 準拠。
   横川CEO是正: 発光グラデ見出し全廃→単色 / ヒーローはみ出し解消 /
                データフロー演出 / factory独自構成撤廃。
   ============================================================ */

.daae-trace {
  --bg: #060C16;
  --panel: #1E2C3E;
  --panel-light: #364960;
  --panel-blue: #16273E;
  --heading: #E7F0FF;   /* 見出し単色（発光グラデ廃止） */
  --body: #ACBCD6;      /* 本文（実測 rgb(172,188,214)） */
  --label: #C2D9FF;     /* 英字ラベル（実測 rgb(194,217,255)） */
  --muted: #57677C;     /* Works 透かし */
  --accent: #8AD2FF;
  --accent2: #60A5E2;
  --container: 1145px;

  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* 横スクロール厳禁の保険 */
}
.daae-trace * { box-sizing: border-box; }
.daae-trace img { max-width: 100%; height: auto; display: block; }
.daae-trace a { color: inherit; text-decoration: none; }

.dt-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;
}

/* ---------- Header ---------- */
.dt-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 72px;
  background: rgba(6,12,22,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138,210,255,.08);
}
.dt-header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.dt-logo { font-weight: 700; letter-spacing: .18em; color: #fff; font-size: 18px; }
.dt-nav { display: flex; align-items: center; gap: 32px; }
.dt-nav a { font-size: 14px; color: var(--body); transition: color .2s; }
.dt-nav a:hover { color: var(--accent); }
.dt-nav-cta {
  border: 1px solid rgba(138,210,255,.4);
  border-radius: 999px; padding: 8px 20px; color: var(--heading) !important;
}
.dt-nav-cta:hover { background: rgba(138,210,255,.12); }

/* ---------- Hero ---------- */
.dt-hero { padding: 160px 0 120px; text-align: center; position: relative; }
.dt-hero::before {            /* 抽象グロー背景（文字なし） */
  content: ""; position: absolute; inset: -10% 0 auto 0; height: 720px; z-index: 0;
  background:
    radial-gradient(60% 60% at 50% 18%, rgba(96,165,226,.20), transparent 70%),
    radial-gradient(40% 40% at 78% 40%, rgba(138,210,255,.12), transparent 70%);
  pointer-events: none;
}
.dt-hero .dt-container { position: relative; z-index: 1; }
.dt-hero-title {
  margin: 0 0 28px; font-weight: 400; font-size: 56px; line-height: 1.45;
  letter-spacing: .07em; color: var(--heading);
}
.dt-hero-title span { display: block; }
.dt-hero-lead {
  max-width: 760px; margin: 0 auto 48px; font-size: 16px; color: var(--body);
}

/* ---------- Hero live dashboard (ビューポート内パネル) ----------
   横川CEO是正(2026-06-15): 表面の外枠フレーム装飾を全除去。
   iframe内(hero-live.html)が自前の背景・パネル枠を持つため、外枠の
   background/border/box-shadow/border-radius/padding は重複かつ「表面の枠」。
   裏のライブ演出だけを枠なしで見せる。レイアウト(中央寄せ/最大幅1025/間隔)は維持。 */
.dt-dash {
  margin: 0 auto 44px; max-width: 1025px; width: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0; text-align: left; overflow: hidden;
}
.dt-dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dt-dash-title { font-size: 13px; letter-spacing: .14em; color: var(--label); text-transform: uppercase; }
.dt-dash-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.dt-dash-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: dtPulse 2.4s ease-in-out infinite; }
@keyframes dtPulse { 0%,100%{ opacity:.4 } 50%{ opacity:1 } }

.dt-dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.dt-tile { background: rgba(30,44,62,.6); border: 1px solid rgba(138,210,255,.10); border-radius: 12px; padding: 14px 16px; }
.dt-tile-label { display: block; font-size: 11px; color: var(--body); margin-bottom: 8px; letter-spacing: .04em; }
.dt-tile-val { font-size: 26px; font-weight: 500; color: var(--heading); font-variant-numeric: tabular-nums; }
.dt-tile-warn .dt-tile-val { color: #ffb454; }

.dt-dash-main { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 16px; }
.dt-chart { background: rgba(12,22,36,.7); border: 1px solid rgba(138,210,255,.10); border-radius: 12px; padding: 14px; position: relative; }
.dt-chart-label, .dt-bars-label, .dt-log-head { display: block; font-size: 11px; color: var(--body); letter-spacing: .06em; margin-bottom: 10px; }
.dt-chart canvas { width: 100%; height: 160px; display: block; }

.dt-log { background: rgba(12,22,36,.7); border: 1px solid rgba(138,210,255,.10); border-radius: 12px; padding: 14px; overflow: hidden; }
.dt-log ul { list-style: none; margin: 0; padding: 0; font-size: 11px; line-height: 1.9; color: #7f96b8; font-variant-numeric: tabular-nums; }
.dt-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(8px); }
.dt-log li.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.dt-log li b { color: var(--accent); font-weight: 500; }
.dt-log li .warn { color: #ffb454; }

.dt-dash-bars { background: rgba(12,22,36,.7); border: 1px solid rgba(138,210,255,.10); border-radius: 12px; padding: 14px; }
.dt-bars { display: flex; align-items: flex-end; gap: 10px; height: 64px; }
.dt-bars i { flex: 1; border-radius: 4px 4px 0 0; height: 20%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  transition: height .6s cubic-bezier(.22,.61,.36,1); }

/* ---------- Hero dashboard as live HTML (mp4廃止・iframeでリアルタイム描画) ----------
   外枠フレーム除去後も、レイアウト(max-width 1025 / aspect-ratio 1600/826 /
   中央寄せ)は .dt-dash 側で維持。iframe は枠いっぱいに敷く(はみ出し・横スクロール防止)。
   外枠の角丸は0にしたため、iframe の border-radius:inherit も0=ライブ演出が
   そのまま枠なしで見える。 */
.dt-dash-live { padding: 0; aspect-ratio: 1600 / 826; }
.dt-dash-media {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  border-radius: inherit;   /* 枠の角丸に合わせて iframe もクリップ */
}
.dt-dash-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Hero actions / buttons ---------- */
.dt-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.dt-btn {
  display: inline-block; padding: 15px 32px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: #06121f; background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 30px rgba(96,165,226,.30); transition: transform .2s, box-shadow .2s;
}
.dt-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(96,165,226,.45); }
.dt-btn-ghost {
  color: var(--heading); background: transparent; border: 1px solid rgba(138,210,255,.4); box-shadow: none;
}
.dt-btn-ghost:hover { background: rgba(138,210,255,.10); box-shadow: none; }

/* ---------- Sections ---------- */
.dt-section { padding: 120px 0; position: relative; }
.dt-label { font-size: 16px; font-weight: 400; letter-spacing: .12em; color: var(--label); margin: 0 0 18px; }
.dt-h2 { margin: 0 0 24px; font-size: 36px; font-weight: 400; line-height: 1.5; color: var(--heading); }
.dt-h2 span { display: block; }
.dt-lead { max-width: 820px; margin: 0 0 56px; font-size: 16px; color: var(--body); }
.dt-statement {
  margin: 72px 0 0; text-align: center; font-size: 22px; line-height: 1.9; color: var(--heading); font-weight: 400;
}

/* Pain / Design 3-col */
.dt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dt-pain, .dt-design {
  background: rgba(30,44,62,.45); border: 1px solid rgba(138,210,255,.08);
  border-radius: 14px; padding: 32px 28px;
}
.dt-pain h3, .dt-design h3 { margin: 0 0 14px; font-size: 24px; font-weight: 400; color: var(--heading); line-height: 1.5; }
.dt-design h3 { font-size: 20px; font-weight: 500; }
.dt-pain p, .dt-design p { margin: 0; font-size: 15px; color: var(--body); }

/* Solution alternating rows */
.dt-rows { display: flex; flex-direction: column; gap: 80px; }
.dt-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.dt-row-rev .dt-row-visual { order: 2; }
.dt-row-visual img {
  width: 100%; border-radius: 14px; border: 1px solid rgba(138,210,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.dt-row-copy h3 { margin: 0 0 16px; font-size: 24px; font-weight: 500; color: var(--heading); line-height: 1.5; }
.dt-row-copy p { margin: 0; font-size: 16px; color: var(--body); }
.dt-result-label { display: inline-block; margin: 22px 0 8px; font-size: 13px; letter-spacing: .14em; color: var(--accent); }
.dt-result { color: var(--body); }

/* Flow 4-col */
.dt-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dt-step { border-top: 1px solid rgba(138,210,255,.2); padding-top: 24px; }
.dt-step-no { font-size: 14px; letter-spacing: .1em; color: var(--accent); }
.dt-step h3 { margin: 12px 0 14px; font-size: 24px; font-weight: 400; color: var(--heading); }
.dt-step p { margin: 0 0 18px; font-size: 14px; color: var(--body); }
.dt-step em { font-style: normal; font-size: 13px; letter-spacing: .08em; color: var(--label); }

/* Works */
.dt-section-works { padding-top: 80px; }
.dt-works-title { margin: 0 0 40px; font-size: 64px; font-weight: 300; color: var(--muted); letter-spacing: .04em; }
.dt-works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.dt-work-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; align-items: stretch; }
.dt-work {
  background: rgba(30,44,62,.4); border: 1px solid rgba(138,210,255,.08);
  border-radius: 14px; overflow: hidden;
}
.dt-work figure { margin: 0; }
.dt-work figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.dt-work-lead figure img { aspect-ratio: auto; }
.dt-work-body { padding: 26px 28px; }
.dt-work-tag { display: block; font-size: 12px; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.dt-work-body h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; color: var(--heading); line-height: 1.5; }
.dt-work-body p { margin: 0; font-size: 15px; color: var(--body); }

/* Contact */
.dt-contact { padding: 130px 0; text-align: center; position: relative; }
.dt-contact::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(50% 70% at 50% 50%, rgba(96,165,226,.16), transparent 70%);
  pointer-events: none;
}
.dt-contact .dt-container { position: relative; z-index: 1; }
.dt-contact .dt-label, .dt-contact .dt-h2 { text-align: center; }
.dt-contact .dt-h2 { margin-bottom: 20px; }
.dt-contact .dt-lead { margin: 0 auto 40px; }
.dt-contact .dt-hero-actions { justify-content: center; }

/* Footer */
.dt-footer { border-top: 1px solid rgba(138,210,255,.08); padding: 48px 0; }
.dt-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dt-footer-nav { display: flex; gap: 28px; }
.dt-footer-nav a { font-size: 14px; color: var(--body); }
.dt-footer-nav a:hover { color: var(--accent); }
.dt-footer-legal { font-size: 13px; color: var(--muted); }

/* ---------- Reveal (scroll-in) ---------- */
.daae-trace [data-reveal],
.daae-trace [data-reveal-item] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.daae-trace [data-reveal].in,
.daae-trace [data-reveal-item].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .dt-container { padding: 0 24px; }
  .dt-hero { padding: 120px 0 80px; }
  .dt-hero-title { font-size: 34px; }
  .dt-h2 { font-size: 28px; }
  .dt-works-title { font-size: 44px; }
  .dt-section { padding: 80px 0; }
  .dt-dash-tiles { grid-template-columns: repeat(2, 1fr); }
  .dt-dash-main { grid-template-columns: 1fr; }
  .dt-log { display: none; }
  .dt-grid-3, .dt-grid-4 { grid-template-columns: 1fr; }
  .dt-row, .dt-work-lead { grid-template-columns: 1fr; gap: 28px; }
  .dt-row-rev .dt-row-visual { order: 0; }
  .dt-works-grid { grid-template-columns: 1fr; }
  .dt-nav { gap: 16px; }
  .dt-nav a:not(.dt-nav-cta) { display: none; }
}

/* ---------- Reduced motion: スクロール演出のみ静止（ヒーロー動画は対象外） ----------
   ★ヒーロー動画(.dt-dash-media)は reduce でも常に再生する（CEO指示）。
     ここでは video に対する停止/poster固定の指定を一切置かない。 */
@media (prefers-reduced-motion: reduce) {
  .daae-trace [data-reveal],
  .daae-trace [data-reveal-item] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dt-dash-live i { animation: none; }
}
