/* 会社サイトから資料DL・無料相談への入口（DL-ENTRY・2026-11-07 織田）
   本番の置き場＝/assets/css/dl-entry.css。tools/patch_dl_entry.py が各ページの </head> の直前で読み込む。
   style.css・brushup.css は触らない（このファイルを外せば元の見た目に戻る）。 */

/* ---------- 1. ヘッダー：資料ダウンロード（枠つきの白いボタン。黒いお問い合わせと対にする） ---------- */
.nav-list .nav-dl {
  border: 1.5px solid var(--color-dark);
  padding: 10.5px 20.5px;
  border-radius: 999px;
}
.nav-list .nav-dl::after { display: none; }
.nav-list .nav-dl:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
  opacity: 1;
}
.hdr-dl { display: none; }

/* ---------- 2. ナビの切り替え幅（9項目の実測から決めた。2026-11-07） ----------
   資料ダウンロードを足すと、元の幅（ドロワー ≤1024px・詰め帯 1025〜1200px・通常 1201px〜）では
   1025px と 1201〜1240px でロゴとナビの間が 0px になる（実測）。そこで
   ドロワー ≤1180px／詰め帯 1181〜1366px／通常 1367px〜 に動かす。
   main.js はドロワーかどうかを .menu-toggle の display で見ているので、CSS だけで切り替わる。 */
@media (min-width: 1025px) and (max-width: 1180px) {
  .site-header .container { padding: 0 32px; }
  .nav-list {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: 105;
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list a { font-size: 18px; letter-spacing: 0.14em; }
  .nav-list .nav-cta { padding: 14px 32px; }
  .menu-toggle { display: block; }
}
@media (min-width: 1201px) and (max-width: 1366px) {
  .site-header .container { padding: 0 24px; }
  .nav-list { gap: 22px; }
  .nav-list a { font-size: 12px; letter-spacing: 0.10em; }
  .nav-list .nav-cta { padding: 11px 18px; }
}
@media (min-width: 1181px) and (max-width: 1366px) {
  .nav-list .nav-dl { padding: 9.5px 16.5px; }
}
@media (max-width: 1180px) {
  .nav-list .nav-dl { padding: 12.5px 30.5px; }
  /* ドロワーの幅では、ハンバーガーの左に小さな黄色いボタンを常に出す */
  .hdr-dl {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    margin-right: 12px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
  }
  .hdr-dl:hover { opacity: 0.85; }
}
@media (max-width: 360px) {
  .hdr-dl { margin-right: 8px; padding: 8px 11px; font-size: 11px; }
}
/* ドロワーを開いている間は、下に隠れた「資料DL」にフォーカスが止まらないようにする（検品B-integrity F2） */
@media (max-width: 1180px) {
  .site-header .container:has(.menu-toggle.is-active) .hdr-dl { visibility: hidden; }
}
/* 横向きのスマホ（高さが低い）では、9項目が画面に収まらないのでドロワーを上から並べてスクロールできるようにする（検品B-layout F2） */
@media (max-width: 1180px) and (max-height: 560px) {
  .nav-list { justify-content: flex-start; overflow-y: auto; padding: 72px 0 32px; gap: 14px; }
  .nav-list a { font-size: 16px; }
}

/* ---------- 3. 締めのCTA（黒地）の下の一行 ---------- */
.cta-dl {
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}
.cta-dl a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.cta-dl a:hover { color: var(--color-accent); opacity: 1; }
.cta-dl .ib { display: inline-block; }

/* ---------- 4. 資料の棚（表紙3枚＋すべて見る） ---------- */
.dl-shelf .section-lead .ib { display: inline-block; }
.dl-shelf-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--color-dark);
  opacity: 1;
}
.dl-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-soft);
}
.dl-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 20px 22px 22px;
}
.dl-card-no {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-text-mute);
}
.dl-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}
.dl-card-title .ib { display: inline-block; }
.dl-card-sub {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-sub);
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.dl-card-go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 700;
}
.dl-card-go span {
  background: linear-gradient(transparent 62%, var(--color-accent) 62%);
}
.dl-shelf-more {
  margin-top: 40px;
  text-align: center;
}
.dl-shelf-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-text-mute);
}

/* ---------- 4-2. トップのヒーローの下の一行 ---------- */
.hero-dl {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}
.hero-dl a {
  color: var(--color-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.hero-dl a:hover { opacity: 0.7; }
@media (max-width: 1024px) {
  .dl-shelf-list { gap: 16px; }
  .dl-card-body { padding: 16px 16px 18px; }
  .dl-card-title { font-size: 15px; }
}
@media (max-width: 768px) {
  .dl-shelf-list { grid-template-columns: 1fr; gap: 12px; }
  .dl-card { flex-direction: row; align-items: stretch; }
  .dl-card-img { width: 40%; flex: 0 0 40%; aspect-ratio: 4 / 3; height: auto; align-self: flex-start; }
  .dl-card-body { padding: 14px 14px 14px; gap: 5px; }
  .dl-card-title { font-size: 15px; line-height: 1.5; }
  .dl-card-sub { display: none; }
  .dl-card-go { font-size: 12px; padding-top: 2px; }
  .dl-shelf-more { margin-top: 28px; }
}

/* ---------- 5. お問い合わせページの冒頭の一行 ---------- */
.dl-contact-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}
.dl-contact-note a {
  color: var(--color-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.dl-contact-note .ib { display: inline-block; }

@media print {
  .hdr-dl, .dl-shelf, .hero-dl { display: none; }
}
