/* 資料ごとのダウンロードページ（/download/*.html）。生成は scripts/build-download-pages.py
   2026-10-13 本人の見本：明るい地・大きなゴシックの題・3つの特長・紺の丸いボタン・資料を立体に重ねた絵 */
:root {
  --dl-bg: #eef2f7; --dl-paper: #f7f9fb; --dl-white: #fff;
  --dl-ink: #16213a; --dl-navy: #1e2f4f; --dl-deep: #0f1a2e; --dl-blue: #3a5a86;
  --dl-pale: #dce5f0; --dl-muted: #5a6880; --dl-line: #d5dce6;
  --dl-sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --dl-latin: 'Hanken Grotesk', 'Zen Kaku Gothic New', sans-serif;
  --dl-hand: 'Zen Kurenaido', 'Zen Kaku Gothic New', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.dl-page { margin: 0; background: var(--dl-white); color: var(--dl-ink); font-family: var(--dl-sans); font-weight: 500; line-height: 1.8; -webkit-font-smoothing: antialiased; }
.dl-page img { max-width: 100%; height: auto; display: block; }
.dl-page a { color: inherit; }

/* ヘッダー */
.dl-header { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 4vw, 56px); }
.dl-brand { display: inline-flex; gap: 8px; align-items: baseline; text-decoration: none; font: 700 15px/1 var(--dl-latin); letter-spacing: .18em; color: var(--dl-navy); }
.dl-brand span { font-weight: 500; font-size: 10px; letter-spacing: .24em; color: var(--dl-muted); }
.dl-header-link { font-size: 13px; font-weight: 700; color: var(--dl-navy); text-decoration: none; padding: 8px 16px; border: 1px solid #c9d4e2; border-radius: 99px; background: #ffffffa8; backdrop-filter: blur(6px); }
.dl-header-link:hover { background: #fff; }

/* ファーストビュー */
.dl-hero { position: relative; overflow: hidden; min-height: min(100svh, 860px); display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(115deg, #f4f7fb 0%, #e9eef5 46%, #dfe7f1 100%); }
.dl-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.dl-hero-bg::before { content: ''; position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(#1e2f4f0b 1px, transparent 1px), linear-gradient(90deg, #1e2f4f0b 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(100deg, transparent 0%, #000 45%, #000 80%, transparent 100%); }
.dl-hero-bg::after { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%;
  background: linear-gradient(105deg, transparent 30%, #ffffff9e 46%, transparent 58%), linear-gradient(105deg, transparent 52%, #ffffff6b 60%, transparent 68%); transform: rotate(4deg); }
.dl-hero-bg i { position: absolute; border-radius: 50%; filter: blur(60px); }
.dl-hero-bg i:nth-child(1) { width: 520px; height: 520px; right: 4%; top: 6%; background: #c9d7ea; opacity: .8; }
.dl-hero-bg i:nth-child(2) { width: 380px; height: 380px; left: -6%; bottom: -12%; background: #fff; opacity: .9; }
.dl-hero-bg i:nth-child(3) { width: 300px; height: 300px; right: 30%; bottom: -8%; background: #d6e3dd; opacity: .45; }
.dl-hero-inner { position: relative; z-index: 2; width: min(100%, 1280px); margin: 0 auto; padding: 92px clamp(20px, 4vw, 56px) 76px;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.dl-kicker { margin: 0 0 18px; display: flex; align-items: center; gap: 18px; color: var(--dl-muted); font-size: 14px; letter-spacing: .14em; }
.dl-kicker::after { content: ''; flex: 0 1 220px; height: 1px; background: #9fb0c4; }
.dl-page h1 { margin: 0; color: var(--dl-navy); font-weight: 900; letter-spacing: .01em; line-height: 1.24; word-break: keep-all; overflow-wrap: anywhere; }
.dl-h1-a { display: block; font-size: clamp(24px, 2.6vw, 38px); }
.dl-h1-a b { font-size: 1.42em; font-weight: 900; }
.dl-h1-b { display: block; margin-top: .14em; font-size: clamp(30px, 3.6vw, 54px); }
.dl-sub { word-break: keep-all; overflow-wrap: anywhere; margin: 18px 0 0; font-size: clamp(15px, 1.45vw, 20px); font-weight: 700; color: #2c3c5c; letter-spacing: .04em; }
.dl-feats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 12px; }
.dl-feats li { display: flex; align-items: center; gap: 12px; padding: 2px 16px 2px 0; margin-right: 16px; border-right: 1px solid #c3cfdd; font-size: 14px; font-weight: 700; line-height: 1.55; color: var(--dl-navy); }
.dl-feats li:last-child { border-right: 0; margin-right: 0; }
.dl-ico { flex: none; width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: #dfe7f1; color: var(--dl-navy); box-shadow: inset 0 0 0 1px #cfdae7; }
.dl-cta { margin-top: 30px; }
.dl-btn { display: inline-flex; align-items: center; gap: 18px; min-height: 64px; padding: 0 28px 0 32px; border-radius: 99px; text-decoration: none;
  background: linear-gradient(100deg, #1b2b4a 0%, #2a4268 60%, #3a5a86 100%); color: #fff !important; font-size: 18px; font-weight: 700; letter-spacing: .08em;
  box-shadow: 0 18px 40px -16px #0f1a2e99, inset 0 1px 0 #ffffff26; transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px #0f1a2ecc, inset 0 1px 0 #ffffff26; }
.dl-btn:focus-visible { outline: 3px solid #8fb3e0; outline-offset: 3px; }
.dl-btn-ico { width: 26px; height: 26px; }
.dl-btn i { font-style: normal; font-size: 28px; line-height: 1; margin-left: 18px; opacity: .9; }
.dl-meta { margin: 14px 0 0 6px; font-size: 12px; color: var(--dl-muted); letter-spacing: .04em; }
.dl-tagline { position: absolute; z-index: 2; left: clamp(20px, 4vw, 56px); bottom: 26px; margin: 0; display: flex; align-items: center; gap: 18px;
  font: 600 11px/1 var(--dl-latin); letter-spacing: .26em; color: #5c6d86; }
.dl-tagline::after { content: ''; width: 180px; height: 1px; background: #9fb0c4; }

/* 資料を立体に重ねた絵 */
.dl-mock { position: relative; aspect-ratio: 1.18; perspective: 1800px; }
.dl-sheet { position: absolute; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 3px #0f1a2e14, 0 30px 60px -22px #0f1a2e66, 0 0 0 1px #ffffff; transform-style: preserve-3d; }
.dl-sheet img { width: 100%; }
.dl-sheet-back { width: 66%; right: -2%; top: 2%; transform: rotateY(-16deg) rotateX(6deg) rotateZ(4deg); opacity: .96; }
.dl-sheet-mid { width: 70%; right: 6%; top: 20%; transform: rotateY(-14deg) rotateX(5deg) rotateZ(2deg); }
.dl-sheet-front { width: 84%; left: 0; top: 36%; transform: rotateY(-12deg) rotateX(6deg) rotateZ(-3deg); box-shadow: 0 2px 4px #0f1a2e1f, 0 46px 80px -26px #0f1a2e8c, 0 0 0 1px #fff; animation: dl-float 7s ease-in-out infinite; }
.dl-sheet-mid { animation: dl-float 7s ease-in-out -2.3s infinite; }
.dl-sheet-back { animation: dl-float 7s ease-in-out -4.6s infinite; }
@keyframes dl-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.dl-note { position: absolute; right: 2%; bottom: -4%; margin: 0; font: 400 clamp(18px, 1.9vw, 26px)/1.4 var(--dl-hand); color: var(--dl-navy); transform: rotate(-7deg); white-space: nowrap; }
.dl-note::after { content: ''; display: block; height: 10px; margin-top: 2px; border-bottom: 1.5px solid #3a5a86; border-radius: 0 0 60% 40%; transform: rotate(-2deg); }

/* 本文 */
.dl-section { padding: clamp(64px, 9vw, 120px) 0; }
.dl-tint { background: var(--dl-paper); }
.dl-container { width: min(100% - 40px, 1120px); margin: 0 auto; }
.dl-head { margin-bottom: 40px; }
.dl-eyebrow { margin: 0 0 8px; font: 700 11px/1.5 var(--dl-latin); letter-spacing: .24em; color: var(--dl-blue); }
.dl-page h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; color: var(--dl-navy); line-height: 1.45; letter-spacing: .02em; }
.dl-head > p:not(.dl-eyebrow) { margin: 10px 0 0; color: var(--dl-muted); font-size: 15px; }
.dl-learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dl-learn-card { background: #fff; border: 1px solid var(--dl-line); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -32px #0f1a2e66; }
.dl-learn-card figure { position: relative; margin: 0; padding: 22px 22px 0; background: linear-gradient(160deg, #eef2f7, #e3eaf3); }
.dl-learn-card figure img { border-radius: 4px 4px 0 0; box-shadow: 0 12px 26px -14px #0f1a2e80; }
.dl-learn-card figure span { position: absolute; top: 12px; right: 14px; font: 700 11px/1 var(--dl-latin); letter-spacing: .1em; color: var(--dl-blue); background: #fff; padding: 5px 9px; border-radius: 99px; }
.dl-learn-card > div { padding: 22px 24px 26px; }
.dl-num { margin: 0; font: 700 13px/1 var(--dl-latin); color: var(--dl-blue); letter-spacing: .1em; }
.dl-learn-card h3 { margin: 10px 0 10px; font-size: 18px; font-weight: 900; line-height: 1.55; color: var(--dl-navy); }
.dl-learn-card p:last-child { margin: 0; font-size: 14px; color: #3d4b63; line-height: 1.9; }
.dl-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dl-samples figure { margin: 0; }
.dl-samples img { border-radius: 6px; border: 1px solid var(--dl-line); box-shadow: 0 16px 34px -26px #0f1a2e80; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.dl-samples figure:hover img { transform: translateY(-4px); }
.dl-samples figcaption { margin-top: 8px; font: 600 11px/1 var(--dl-latin); color: var(--dl-muted); letter-spacing: .12em; }
.dl-for { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.dl-audience { list-style: none; margin: 26px 0 0; padding: 0; }
.dl-audience li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--dl-line); font-size: 16px; font-weight: 700; color: var(--dl-navy); }
.dl-audience .dl-ico { width: 38px; height: 38px; padding: 9px; }
.dl-spec { padding: 30px 32px; border-radius: 14px; background: var(--dl-paper); border: 1px solid var(--dl-line); }
.dl-spec dl { margin: 14px 0 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 12px 16px; font-size: 14px; }
.dl-spec dt { color: var(--dl-muted); font-weight: 700; }
.dl-spec dd { margin: 0; color: var(--dl-ink); }
.dl-author-wrap { background: linear-gradient(180deg, #fff, #f3f6fa); }
.dl-author { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.dl-author img { width: 220px; height: 220px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; box-shadow: 0 24px 50px -28px #0f1a2e99; }
.dl-role { margin: 6px 0 14px; color: var(--dl-blue); font-weight: 700; font-size: 14px; }
.dl-author p:not(.dl-eyebrow):not(.dl-role) { margin: 0 0 14px; color: #3d4b63; font-size: 15px; }
.dl-text-link { font-weight: 700; font-size: 14px; color: var(--dl-blue) !important; text-decoration: none; border-bottom: 1px solid #b7c6da; }
.dl-final { padding: clamp(70px, 9vw, 110px) 0; text-align: center; color: #fff; background: radial-gradient(120% 140% at 80% 0%, #2a4268 0%, #16243f 55%, #0f1a2e 100%); }
.dl-final .dl-eyebrow { color: #9fb6d6; }
.dl-final h2 { color: #fff; margin-bottom: 30px; }
.dl-final .dl-btn { background: #fff; color: var(--dl-navy) !important; box-shadow: 0 20px 44px -18px #000a; }
.dl-final-note { margin: 18px auto 0; max-width: 560px; font-size: 12px; color: #b9c7da; }
.dl-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dl-other { display: block; text-decoration: none; background: #fff; border: 1px solid var(--dl-line); border-radius: 14px; overflow: hidden; transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
.dl-other:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -30px #0f1a2e80; }
.dl-other img { aspect-ratio: 16 / 9; object-fit: cover; }
.dl-other-no { display: block; padding: 18px 20px 0; font: 700 11px/1 var(--dl-latin); letter-spacing: .18em; color: var(--dl-blue); }
.dl-other strong { display: block; padding: 8px 20px 0; font-size: 17px; font-weight: 900; color: var(--dl-navy); }
.dl-other-go { display: block; padding: 10px 20px 20px; font-size: 13px; font-weight: 700; color: var(--dl-muted); }
.dl-footer { padding: 40px 20px 50px; text-align: center; background: var(--dl-deep); color: #9fb0c4; }
.dl-footer .dl-brand { color: #fff; }
.dl-footer p { margin: 10px 0 4px; font-size: 12px; }
.dl-footer small { font-size: 11px; }
.dl-noscript { padding: 16px; text-align: center; background: #fff3d6; }

/* 登録ダイアログ（文言と項目は thanks.html と同じ） */
.dl-page .gate-overlay { display: none; position: fixed; z-index: 100; inset: 0; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background: #0a1424c4; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dl-page .gate-overlay.open, .dl-page .gate-overlay[aria-hidden='false'] { display: flex; }
.dl-page .gate-modal { position: relative; width: min(100%, 480px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 40px; background: #fff; color: var(--dl-ink); border-radius: 18px; box-shadow: 0 30px 100px #0006; }
.dl-page .gate-eyebrow { font: 700 10px/1.5 var(--dl-latin); letter-spacing: .2em; text-transform: uppercase; color: var(--dl-blue); }
.dl-page .gate-modal h3 { margin: 10px 0 12px; font-size: 22px; font-weight: 900; color: var(--dl-navy); }
.dl-page .gate-resource { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--dl-navy); }
.dl-page .gate-lead { margin: 0; color: var(--dl-muted); font-size: 12.5px; line-height: 1.9; }
.dl-page #gateClose { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border: 1px solid #cad3df; border-radius: 50%; color: var(--dl-muted); background: transparent; cursor: pointer; font-size: 22px; line-height: 1; }
.dl-page #gateForm { margin-top: 22px; }
.dl-page .gate-field { margin-bottom: 14px; }
.dl-page .gate-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: #3b4b66; }
.dl-page .gate-field input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #b9c6d6; border-radius: 8px; font: inherit; font-size: 16px; color: var(--dl-ink); }
.dl-page .gate-field input:focus { outline: none; border-color: var(--dl-blue); box-shadow: 0 0 0 3px #3a5a8622; }
.dl-page .gate-err { margin-top: 6px; font-size: 12px; color: #a23b3b; }
.dl-page .gate-err:empty { display: none; }
.dl-page .gate-submit { width: 100%; min-height: 56px; margin-top: 14px; border: 0; border-radius: 99px; background: linear-gradient(100deg, #1b2b4a, #3a5a86); color: #fff; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .06em; cursor: pointer; }
.dl-page .gate-submit:disabled { opacity: .6; cursor: wait; }
.dl-page .gate-note { margin: 14px 0 0; font-size: 10.5px; line-height: 1.85; color: #74829a; }

@media (max-width: 960px) {
  .dl-hero { min-height: 0; }
  .dl-hero-inner { grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 96px; }
  .dl-mock { width: min(100%, 560px); margin: 10px auto 0; }
  .dl-learn, .dl-others { grid-template-columns: 1fr; }
  .dl-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-for, .dl-author { grid-template-columns: 1fr; gap: 32px; }
  .dl-author img { width: 160px; height: 160px; }
}
@media (max-width: 560px) {
  .dl-feats { flex-direction: column; gap: 10px; }
  .dl-feats li { border-right: 0; padding: 0; margin: 0; }
  .dl-btn { width: 100%; justify-content: center; font-size: 17px; padding: 0 22px; }
  .dl-btn i { margin-left: auto; }
  .dl-header-link { display: none; }
  .dl-kicker { font-size: 12px; letter-spacing: .1em; }
  .dl-kicker::after { display: none; }
  .dl-tagline::after { width: 60px; }
  .dl-page .gate-modal { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-sheet { animation: none !important; }
  .dl-btn, .dl-samples img, .dl-other { transition: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .dl-header, .dl-page .gate-overlay, .dl-final .dl-btn { display: none !important; }
}
