@import url("./index/hero.css");

/* ===================================================
   HERO
   =================================================== */

.dl-hero {
  margin-bottom: 0;
  padding-bottom: 24px;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(16px, 2.4vw, 40px);
  align-items: center;
}

.dl-left {
  padding-left: 0;
  --landing-subshift: 0;
  max-width: 660px;
}

.dl-title {
  margin: 14px 0 0;
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: 0.4px;
  font-weight: 980;
}

.dl-title-sub {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-sub);
  letter-spacing: 0.3px;
}

.dl-lead {
  margin-top: 14px;
  margin-left: 0;
}

/* バージョンバッジ */
.dl-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(var(--accent-rgb), 0.9);
  letter-spacing: 0.2px;
}

.dl-version-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.7);
  flex-shrink: 0;
}

/* 機能チップ */
.dl-chips {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
  color: var(--text);
}

.dl-chip span {
  font-size: 14px;
  line-height: 1;
}

/* CTA */
.dl-cta {
  margin-top: 22px;
}

.dl-primary-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* モバイル共有ボタン: デスクトップでは非表示 */
.btn.dl-btn-share {
  display: none;
}

.dl-cta-meta {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 750;
  color: var(--text-sub);
}

.dl-download-meta {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  color: var(--text-sub);
}

.dl-download-meta a {
  color: rgba(var(--gold-rgb), 0.86);
  text-decoration: none;
}

.dl-download-meta a:hover {
  text-decoration: underline;
}

/* ヒーロー動画 */
.dl-video-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.dl-hero-video {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.dl-page-top {
  padding-bottom: 0;
}

/* ===================================================
   SECTION LABELS / HEADS
   =================================================== */

.dl-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 28px;
}

.dl-section-title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 950;
  line-height: 1.2;
  position: relative;
  padding-left: 14px;
}

.dl-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.92);
}

/* ===================================================
   機能紹介 — カードなし・フラットグリッド
   =================================================== */

.dl-features.band-wide {
  margin-top: 0;
  padding: clamp(36px, 5vw, 52px) 0;
}

.dl-features.band-tone {
  background: none;
  border-top: none;
  border-bottom: none;
}

/* 6枚グリッド: 背景なし・ボーダーなし */
.dl-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  column-gap: 0;
}

.dl-feat-card {
  padding: 22px 20px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* 縦方向の区切りだけ: 2列目以降に左パディング + 左ボーダー */
}

/* 2列目・3列目は左に仕切り線 */
.dl-feat-card:nth-child(3n+2),
.dl-feat-card:nth-child(3n+3) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

/* 1行目(1〜3)と2行目(4〜6)の間に横区切り */
.dl-feat-card:nth-child(n+4) {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.dl-feat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  /* アイコンそのまま、背景なし */
}

.dl-feat-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1px;
  line-height: 1.3;
}

.dl-feat-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dl-feat-list li {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  line-height: 1.6;
}

.dl-feat-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.4);
  flex-shrink: 0;
}

/* 機能紹介 — 交互レイアウト */
.dl-feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
}

.dl-feat-row + .dl-feat-row {
  margin-top: clamp(32px, 4vw, 52px);
}

.dl-feat-row .dl-feat-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--panel-strong);
}

.dl-feat-row .dl-feat-media video {
  width: 100%;
  height: auto;
  display: block;
}

.dl-feat-row-title {
  margin: 8px 0 12px;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 950;
  line-height: 1.3;
}

/* スクリーンショット付き大カード — 画像は枠あり、テキスト部はフラット */
.dl-feat-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 32px;
}

.dl-feat-grid {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.dl-feat-wide-card {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
}

.dl-feat-wide-card:first-child {
  padding-right: 36px;
  border-right: 1px solid var(--line);
}

.dl-feat-wide-card:last-child {
  padding-left: 36px;
}

.dl-feat-media {
  margin: 0 0 18px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
}

.dl-feat-media img {
  width: 100%;
  height: auto;
  display: block;
}

.dl-feat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-feature-kicker {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: rgba(var(--accent-rgb), 0.9);
  width: fit-content;
}

.dl-feat-wide-title {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 950;
  line-height: 1.3;
}

.dl-feat-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.85;
  font-weight: 650;
}

/* ===================================================
   導入手順 — タイムライン円＋フラットコンテンツ
   =================================================== */

.dl-setup {
  margin-top: 52px;
  padding-bottom: 8px;
}

#setup {
  scroll-margin-top: 88px;
}

/* タイムラインノード行 */
.dl-steps-timeline {
  margin-bottom: 24px;
}

.dl-steps-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 56px;
  position: relative;
}

/* 横つなぎ線（円の中心〜中心） */
.dl-steps-nodes::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc((100% - 112px) / 6);
  right: calc((100% - 112px) / 6);
  height: 1px;
  background: rgba(var(--accent-rgb), 0.25);
  transform: translateY(-50%);
}

.dl-steps-node {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.dl-steps-node span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-rgb), 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 950;
  color: rgba(var(--accent-rgb), 0.9);
  background: var(--bg);
  line-height: 1;
}

/* ステップコンテンツ行 */
.dl-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 56px;
  align-items: start;
}

.dl-step {
  padding: 4px 0 0;
}

.dl-step-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.1px;
  color: var(--text);
}

.dl-step-desc {
  margin: 0 0 12px;
  color: var(--text-sub);
  line-height: 1.85;
  font-weight: 650;
  font-size: 13.5px;
}

.dl-step-desc:last-child {
  margin-bottom: 0;
}

.dl-step-desc code {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: "Cascadia Code", "Consolas", monospace;
}

.dl-step-link {
  font-size: 13px;
  font-weight: 750;
}

/* ===================================================
   仕組み・安心
   =================================================== */

.dl-trust-band.band-wide {
  padding: clamp(36px, 5vw, 52px) 0;
}

.dl-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.dl-trust-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.dl-trust-item:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 32px;
}

.dl-trust-item:not(:first-child) {
  padding-left: 32px;
}

.dl-trust-title {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  color: var(--text);
  line-height: 1.3;
}

.dl-trust-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 650;
  line-height: 1.85;
}

.dl-trust-note {
  margin: 28px 0 0;
  padding: 12px 16px;
  border-left: 3px solid rgba(var(--accent-rgb), 0.3);
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 650;
  line-height: 1.8;
}

/* ===================================================
   動作環境 — 3列フラットテーブル
   =================================================== */

.dl-req-band.band-wide {
  margin-top: 52px;
  padding: clamp(32px, 4.4vw, 44px) 0;
}

/* タイトル内 β版バッジ */
.dl-req-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  font-size: 11px;
  font-weight: 900;
  color: rgba(var(--accent-rgb), 0.9);
  letter-spacing: 0.3px;
  vertical-align: middle;
  margin-left: 12px;
  position: relative;
  top: -3px;
}

.dl-req-table {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.dl-req-row {
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* 列間の縦区切り */
.dl-req-row:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 32px;
}

.dl-req-row:not(:first-child) {
  padding-left: 32px;
}

.dl-req-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-sub);
  display: block;
}

.dl-req-val {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 900;
  color: var(--text);
  display: block;
  line-height: 1.2;
}

.dl-req-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 650;
  display: block;
}

.dl-req-note {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 650;
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
}

.dl-req-note::before {
  content: "※";
  position: absolute;
  left: 0;
  opacity: 0.6;
}

/* ===================================================
   ファイナル CTA
   =================================================== */

.dl-final-cta {
  margin: 60px 0 0;
  padding-bottom: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.dl-final-title {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 950;
  line-height: 1.3;
}

.dl-final-sub {
  margin: 10px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 650;
}

.dl-final-btns {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.dl-final-meta {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 750;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 980px) {
  /* モバイル: ダウンロード系ボタンを隠して共有ボタンを表示 */
  .dl-primary-cta {
    display: none;
  }

  .btn.dl-btn-download {
    display: none;
  }

  .btn.dl-btn-share {
    display: inline-flex;
  }

  .dl-cta,
  .dl-final-btns {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .dl-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 0;
  }

  .dl-left {
    align-items: center;
  }

  .dl-video-wrap {
    justify-content: center;
  }

  .dl-hero-video {
    max-width: min(620px, 100%);
  }

  .dl-feat-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 2列時の区切り線再計算 */
  .dl-feat-card:nth-child(3n+2),
  .dl-feat-card:nth-child(3n+3) {
    padding-left: 0;
    border-left: none;
  }

  .dl-feat-card:nth-child(n+4) {
    border-top: none;
  }

  .dl-feat-card:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }

  .dl-feat-card:nth-child(n+3) {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .dl-feat-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* テキストが後ろにある場合（統計）は動画を先に表示 */
  .dl-feat-row .dl-feat-body:first-child {
    order: 2;
  }

  .dl-feat-row .dl-feat-media:last-child {
    order: 1;
  }

  .dl-feat-wide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dl-feat-wide-card:first-child {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 28px;
  }

  .dl-feat-wide-card:last-child {
    padding-left: 0;
    padding-top: 0;
  }

  /* ステップ: 縦並び */
  .dl-steps-timeline {
    display: none;
  }

  .dl-steps {
    grid-template-columns: 1fr;
    counter-reset: dl-step;
  }

  .dl-step {
    padding: 24px 0;
    counter-increment: dl-step;
  }

  .dl-step:first-child {
    padding-top: 4px;
  }

  /* タイトル前に番号円を inline 表示 */
  .dl-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dl-step-title::before {
    content: counter(dl-step);
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--accent-rgb), 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 950;
    color: rgba(var(--accent-rgb), 0.9);
    background: var(--bg);
  }

}

@media (max-width: 640px) {
  /* 仕組み・安心: 1列 */
  .dl-trust-grid {
    grid-template-columns: 1fr;
  }

  .dl-trust-item:not(:last-child) {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }

  .dl-trust-item:not(:first-child) {
    padding-left: 0;
    padding-top: 20px;
  }

  .dl-feat-grid {
    grid-template-columns: 1fr;
  }

  .dl-feat-card:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .dl-feat-card:nth-child(n+2) {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .dl-feat-card:nth-child(n+3) {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .dl-chips {
    gap: 6px;
  }

  .dl-final-btns {
    flex-direction: column;
    align-items: center;
  }

  .dl-final-btns .btn {
    width: min(280px, 100%);
    justify-content: center;
  }

  /* 動作環境: 1列 */
  .dl-req-table {
    grid-template-columns: 1fr;
  }

  .dl-req-row:not(:last-child) {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }

  .dl-req-row:not(:first-child) {
    padding-left: 0;
    padding-top: 16px;
  }
}
