/* =========================================================
   download.css  ―  ダウンロードページ専用スタイル
   css/style.css の「あと」に読み込みます(色・フォントは style.css の変数を使用)
   目次:
     1. ヘッダー補足 / 2. ページ見出し / 3. 最新版カード
     4. 過去バージョン一覧 / 5. LiveCapture3 への案内
   ========================================================= */

/* 1. ヘッダー補足 ---------------------------------------- */
/* 現在のページ(ダウンロード)のボタンを塗りつぶしにする */
.nav-links .nav-cta[aria-current="page"] {
  background: var(--brand);
  border-color: transparent;
}

/* 2. ページ見出し ---------------------------------------- */
.dl-head {
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  padding: 36px 0 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.crumbs { font-size: 13px; color: var(--text-muted); }
.crumbs a { text-decoration: none; color: var(--text-sub); }
.crumbs a:hover { color: var(--text-strong); }
.crumbs span { margin: 0 8px; opacity: 0.6; }
.dl-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15; font-weight: 900; letter-spacing: -0.01em;
  color: var(--text-strong);
}
.dl-title em { font-style: normal; color: var(--accent); white-space: nowrap; }  /* 「ダウンロード」の途中で改行させない */
.dl-head .lead { max-width: 640px; }

/* 2b. 法人・組織向けのお問い合わせ(ページ上部の目立つカード) */
.dl-contact {
  position: relative; overflow: hidden; margin-top: 8px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 20px 28px; padding: 26px 32px 26px 36px;
  border-radius: 20px;
  border: 1px solid rgba(45, 226, 200, 0.55);
  background: linear-gradient(135deg, rgba(45, 226, 200, 0.12), rgba(91, 75, 255, 0.10)), var(--panel);
  box-shadow: 0 0 48px rgba(45, 226, 200, 0.14);
}
.dl-contact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.dl-contact-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); background: rgba(45, 226, 200, 0.12); border: 1px solid rgba(45, 226, 200, 0.45);
}
.dl-contact-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-contact-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.dl-contact h2 { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; font-weight: 900; color: var(--text-strong); }
.dl-contact-text p:last-child { font-size: 15px; line-height: 1.8; color: var(--text-sub); text-wrap: pretty; }  /* 最後の行に1文字だけ残らないように */
.dl-contact-actions { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
/* お問い合わせボタン: ダウンロードボタン(青紫)と区別できるよう、差し色(ティール)にする */
.btn-accent { background: var(--accent); color: #04141A; font-weight: 700; box-shadow: 0 0 28px rgba(45, 226, 200, 0.45); }
.btn-accent:hover { color: #04141A; filter: brightness(1.08); }
.dl-contact-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--font-mono); font-size: 14px; }
.dl-contact-addr a { color: var(--text-strong); overflow-wrap: anywhere; text-underline-offset: 3px; }
.dl-contact-note { font-size: 12px; line-height: 1.6; color: var(--text-muted); }

/* 3. 最新版カード ---------------------------------------- */
.dl-latest-sec { padding: 0 0 24px; }
.dl-latest {
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 56px;
  padding: 48px;
  border-radius: 28px;
  border: 1px solid rgba(140, 150, 255, 0.5);
  background:
    radial-gradient(720px 380px at 8% 0%, rgba(91, 75, 255, 0.40), transparent 70%),
    radial-gradient(520px 300px at 100% 100%, rgba(45, 226, 200, 0.14), transparent 70%),
    var(--panel);
  box-shadow: 0 0 90px rgba(91, 75, 255, 0.38);
}
.dl-main, .dl-notes { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.dl-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--accent); background: rgba(45, 226, 200, 0.10);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--accent);
}
.dl-badge .rec-dot { width: 10px; height: 10px; }

.dl-product { display: flex; align-items: center; gap: 18px; }
.dl-product img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.dl-name { font-family: var(--font-logo); font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.1; color: var(--text-strong); }
.dl-ver { margin-top: 6px; font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.04em; color: var(--accent); }
.dl-meta { font-size: 15px; line-height: 1.8; color: var(--text-sub); }

.dl-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn-lg { min-height: 64px; padding: 0 36px; font-size: 18px; border-radius: 14px; }
.dl-cta-note { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--text-muted); }

.dl-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.dl-links a { color: var(--accent); text-decoration: none; }
.dl-links a:hover { color: var(--text-strong); }

.dl-notes h3 { font-size: 20px; font-weight: 700; color: var(--text-strong); }
.dl-notes .checks { gap: 14px; font-size: 16px; line-height: 1.7; }
.dl-notes .checks li { align-items: flex-start; }
.dl-notes .checks .icon { margin-top: 5px; }

/* ファイル情報(ファイル名・サイズ・ハッシュ値) */
.dl-facts {
  grid-column: 1 / -1; margin: 0; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px;
}
.dl-fact { min-width: 0; }
.dl-fact--wide { grid-column: 1 / -1; }  /* ファイル名・ハッシュ値など長いものは1行まるごと */
.dl-fact dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-muted); }
.dl-fact dd { margin: 6px 0 0; font-size: 15px; color: var(--text-strong); overflow-wrap: anywhere; }
.dl-fact--wide dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dl-hash { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text-sub); word-break: break-all; }
.dl-copy {
  display: none; align-items: center; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--text-strong);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(140, 150, 255, 0.35);
}
.js .dl-copy { display: inline-flex; }
.dl-copy:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--accent); }
.dl-copy.is-done { color: var(--accent); border-color: var(--accent); }

/* 4. 過去バージョン一覧 ---------------------------------- */
.dl-list { margin-top: 32px; border-top: 1px solid var(--line-soft); }
.dl-row {
  display: grid;
  grid-template-columns: 170px 112px minmax(0, 1fr) 110px auto;
  align-items: center; gap: 20px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s ease;
}
.dl-row:hover { background: rgba(255, 255, 255, 0.04); }
.dl-row-ver { font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-strong); }
.dl-row-date, .dl-row-size { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; color: var(--text-muted); }
.dl-row-note { font-size: 15px; line-height: 1.7; color: var(--text-sub); }
.dl-row-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; white-space: nowrap;
  font-size: 14px; text-decoration: none; color: var(--text-strong);
  border: 1px solid rgba(140, 150, 255, 0.45);
}
.dl-row-btn:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.08); border-color: var(--accent); }
.dl-row-btn .icon { color: var(--accent); }

/* 5. LiveCapture3 への案内 ------------------------------- */
.dl-legacy {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
}
.dl-legacy h3 { font-size: 18px; font-weight: 700; color: var(--text-strong); }
.dl-legacy p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.dl-legacy > div { flex: 1 1 320px; min-width: 0; }

/* スマホ・タブレット */
@media (max-width: 900px) {
  .dl-latest { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 24px; }
  .dl-latest .corner { display: none; }   /* 余白が狭いので、角の飾りは外す */
  .dl-contact { grid-template-columns: auto minmax(0, 1fr); }
  .dl-contact-actions { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .dl-head { padding: 24px 0 28px; }
  .btn-lg { width: 100%; justify-content: center; padding: 0 20px; font-size: 17px; }
  .dl-contact { padding: 22px 18px 22px 24px; gap: 16px 16px; }
  .dl-contact-icon { width: 48px; height: 48px; }
  .dl-contact-actions { align-items: stretch; }
  .dl-contact .btn-accent { width: 100%; justify-content: center; }
  .dl-cta { align-self: stretch; }
  .dl-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "ver date" "note note" "size btn";
    gap: 8px 14px; padding: 16px 4px;
  }
  .dl-row-ver  { grid-area: ver; }
  .dl-row-date { grid-area: date; }
  .dl-row-note { grid-area: note; }
  .dl-row-size { grid-area: size; }
  .dl-row-btn  { grid-area: btn; }
}
@media (max-width: 420px) {
  .dl-latest { padding: 28px 18px; }
  .btn-lg { gap: 8px; padding: 0 14px; font-size: 16px; }
  .dl-product { gap: 14px; }
  .dl-product img { width: 60px; height: 60px; }
}
