/* HINOTORI Reports：資料ページ（テーマの main.css の変数を使う） */

/* ---------- 持ち出し対策 ---------- */
.hwr-protect .hwr-report { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hwr-protect .hwr-report input,
.hwr-protect .hwr-report textarea { -webkit-user-select: text; user-select: text; }
.hwr-report img { -webkit-user-drag: none; }

.hwr-watermark { position: fixed; inset: 0; z-index: 40; pointer-events: none; background-repeat: repeat; }

@media print {
  .hwr-protect body > * { display: none !important; }
  .hwr-protect body::before {
    content: "この資料は印刷できません。保存・引用は、ページ内の「PDFをダウンロード」からPDFをご利用ください。 ── HINOTORI WORKS";
    display: block; padding: 40px; font-size: 14px; line-height: 1.8; color: #111; background: #fff;
  }
}

/* ---------- ヒーロー・ダウンロード導線 ---------- */
.hwr-hero__lead { margin-top: 16px; max-width: 760px; line-height: 1.8; color: var(--text-2); }
.hwr-dlbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.hwr-dlbar__note { font-size: 12px; color: var(--text-3); }

.hwr-body .container > * + * { margin-top: 1.2em; }
.hwr-body ul, .hwr-body ol { padding-left: 1.4em; color: var(--text-2); line-height: 1.8; }
.hwr-body ul { list-style: disc; }
.hwr-body ol { list-style: decimal; }
.hwr-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.hwr-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hwr-body th, .hwr-body td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; color: var(--text-2); }
.hwr-body th { color: var(--text); background: var(--surface); }
.hwr-body figure { overflow-x: auto; }

.hwr-cta { padding: 0 0 100px; }
.hwr-cta .container {
  max-width: 760px; text-align: center;
  padding-top: 48px; padding-bottom: 48px;
  border: 1px solid var(--border-acc); border-radius: var(--radius-lg); background: var(--surface);
}
.hwr-cta__title { font-size: 20px; font-weight: 700; color: var(--text); }
.hwr-cta__text { margin: 10px 0 24px; font-size: 14px; line-height: 1.8; color: var(--text-2); }

.hwr-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--acc); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  box-shadow: 0 0 24px var(--acc-glow);
  transition: background 0.3s;
}
.hwr-fab:hover { background: var(--acc-light); }

/* ---------- モーダル ---------- */
.hwr-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hwr-modal[hidden] { display: none; }
.hwr-modal-open { overflow: hidden; }
.hwr-modal__backdrop { position: absolute; inset: 0; background: rgba(2,5,10,0.78); backdrop-filter: blur(4px); }
.hwr-modal__card {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 36px 32px 32px; border: 1px solid var(--border-acc); border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: 0 0 60px rgba(216,24,114,0.15);
}
.hwr-modal__close { position: absolute; top: 10px; right: 14px; font-size: 24px; line-height: 1; color: var(--text-3); padding: 6px; }
.hwr-modal__close:hover { color: var(--text); }
.hwr-modal__eyebrow { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.14em; color: var(--acc); }
.hwr-modal__title { margin-top: 8px; font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--text); }
.hwr-modal__text { margin: 10px 0 20px; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.hwr-step--done .btn { margin-top: 8px; }

.hwr-form { display: grid; gap: 14px; }
.hwr-field { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.hwr-field em { margin-left: 8px; font-style: normal; font-size: 11px; color: var(--acc); }
.hwr-field input {
  width: 100%; padding: 12px 14px; font-size: 16px; color: var(--text);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-2, var(--border)); border-radius: var(--radius);
}
.hwr-field input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-glow); }
.hwr-field input.hwr-invalid, .hwr-consent input.hwr-invalid { border-color: #ff5a7a; }
.hwr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hwr-consent { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.hwr-consent input { width: 18px; height: 18px; accent-color: var(--acc); }
.hwr-consent a { color: var(--acc); text-decoration: underline; }
.hwr-error { font-size: 13px; line-height: 1.6; color: #ff7a93; }
.hwr-submit[disabled] { opacity: 0.6; cursor: wait; }

@media (max-width: 480px) {
  .hwr-modal__card { padding: 32px 20px 24px; }
  .hwr-fab { right: 16px; bottom: 16px; }
}

/* ---------- 一覧 ---------- */
.hwr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.hwr-card__link {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease-out-expo);
}
.hwr-card__link:hover { border-color: var(--border-acc); transform: translateY(-2px); }
.hwr-card__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hwr-card__body { position: relative; padding: 20px 22px 24px; }
.hwr-card__date { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; color: var(--acc); }
.hwr-card__title { margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text); }
.hwr-card__excerpt { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--text-2); }
.hwr-card__badge {
  display: inline-block; margin-top: 14px; padding: 2px 10px; font-size: 11px; letter-spacing: 0.1em;
  color: var(--acc); border: 1px solid var(--border-acc); border-radius: var(--radius);
}
@media (max-width: 480px) { .hwr-cards { grid-template-columns: 1fr; } }

/* ---------- 資料本文の部品（content.html 用。暗い背景のサイトで読める配色） ---------- */
.hwr-body h2 { font-size: 30px; line-height: 1.4; padding-top: 2em; border-top: 1px solid var(--border); }
.hwr-body h3 { font-size: 21px; line-height: 1.5; margin-top: 2.2em; }
@media (max-width: 768px) { .hwr-body h2 { font-size: 26px; } .hwr-body h3 { font-size: 19px; } }
.hwr-body .hwr-summary h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.hwr-summary { padding: 24px 28px; border: 1px solid var(--border-acc); border-radius: var(--radius-md); background: var(--surface); }
.hwr-summary ul, .hwr-summary ol { margin-top: 8px; }
.hwr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.hwr-kpi { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.hwr-kpi__num { display: block; font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--acc-light); }
.hwr-kpi__label { display: block; margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.hwr-fig { margin: 1.5em 0 0; color: var(--text-2); }
.hwr-fig svg { display: block; width: 100%; height: auto; }
.hwr-fig figcaption { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.hwr-src { font-size: 12px !important; line-height: 1.7 !important; color: var(--text-3) !important; font-weight: 300 !important; }
.hwr-src a { color: var(--text-2) !important; }
.hwr-note { padding: 16px 20px; border-left: 3px solid var(--blue); background: rgba(56,189,248,0.06); font-size: 14px; font-weight: 300; color: var(--text-2); }
.hwr-check { list-style: none !important; padding-left: 0 !important; }
.hwr-check li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--border); }
.hwr-check li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 16px; height: 16px; border: 1.5px solid var(--acc); border-radius: 3px; }
.hwr-steps { counter-reset: hwr-step; list-style: none !important; padding-left: 0 !important; display: grid; gap: 12px; }
.hwr-steps li { counter-increment: hwr-step; position: relative; padding: 14px 18px 14px 56px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.hwr-steps li::before { content: counter(hwr-step, decimal-leading-zero); position: absolute; left: 18px; top: 14px; font-weight: 700; color: var(--acc); }
.hwr-cta-box { padding: 32px; text-align: center; border: 1px solid var(--acc); border-radius: var(--radius-lg); background: rgba(216,24,114,0.06); }
.hwr-cta-box a { font-weight: 700; }
.hwr-table, .hwr-sources { font-size: 13px; }
.hwr-body .hwr-sources td, .hwr-body .hwr-sources th { font-size: 12px; font-weight: 300; }
.hwr-body figure:has(table), .hwr-table-wrap { overflow-x: auto; }
/* SVG の色クラス */
.hwr-c-acc  { fill: var(--acc); }
.hwr-c-sub  { fill: var(--blue); }
.hwr-c-mute { fill: #3A4459; }
.hwr-c-grid { stroke: rgba(255,255,255,0.12); fill: none; }

.hwr-purpose { font-size: 12px; line-height: 1.7; color: var(--text-2); }
.hwr-purpose a { color: var(--acc); text-decoration: underline; }
.hwr-recaptcha-note { font-size: 11px; color: var(--text-3); }

/* 図はスマホ幅で読める大きさに作っているため、PCでは広がりすぎないよう上限を付ける */
.hwr-fig svg { max-width: 560px; }

/* 透かしは本文の幅だけに重ねる */
.hwr-body .container { position: relative; }
.hwr-watermark--content { position: absolute; inset: 0; z-index: 1; }

/* 図の文字は本文より一段細く */
.hwr-fig svg text { font-weight: 300; }

/* 折れ線は塗らずに線で描く（色クラスの fill が線の内側を塗りつぶすのを防ぐ） */
.hwr-fig polyline.hwr-c-acc { fill: none; stroke: var(--acc); }
.hwr-fig polyline.hwr-c-sub { fill: none; stroke: var(--blue); }
.hwr-fig polyline.hwr-c-mute { fill: none; stroke: #6B7489; }
/* 右端の目盛りの文字が切れないように */
.hwr-fig svg { overflow: visible; }
/* 図表の表題（何を表す図表かを先に示す） */
.hwr-body h4.hwr-fig-title { margin: 2em 0 0.6em; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text); }
