@charset "UTF-8";
/* ==========================================================================
   print.css — オホ声の庭園
   役割: 印刷用の最小限の調整。崩れたPDFを作らせないことだけが目的。
   読み込みは <link media="print"> ではなく通常読込＋@media print で行う。
   ========================================================================== */

@media print{

  /* ══ 1. 地色を捨てて紙に最適化する ══ */
  html,body{
    background: #FFFFFF !important;
    color: #111111 !important;
    padding-bottom: 0 !important;
  }
  body::before{ content: none !important; }   /* グレインを消す */

  .ohg-header{
    min-height: auto;
    padding-block: 0 12pt;
    overflow: visible;
  }
  .ohg-header::before,
  .ohg-header::after{ content: none !important; }
  .ohg-header__logo,
  .ohg-header__logo a{ color: #111111 !important; }
  .ohg-neon{ text-shadow: none !important; color: #111111 !important; }

  h1,h2,h3,h4,h5,h6,
  .ohg-card__title,
  .ohg-single__title,
  .ohg-page__title,
  .ohg-arch__title{ color: #111111 !important; }

  a{ color: #1A3E8C !important; text-decoration: underline; }
  /* リンク先を紙に残す（内部リンクとアンカーは除く） */
  .ohg-prose a[href^="http"]::after{
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555555;
    word-break: break-all;
  }

  /* ══ 2. 操作系・演出系は印刷しない ══ */
  .ohg-nav,
  .ohg-nav2,
  .ohg-nav__scrim,
  .ohg-sort,
  .ohg-toasts,
  .ohg-lightbox,
  .ohg-age,
  .ohg-skip,
  .ohg-video__bar,
  .ohg-video__big,
  .ohg-chap,
  .ohg-audio__bar,
  .ohg-slider__nav,
  .ohg-slider__dots,
  .ohg-reader__hud,
  .ohg-reader__resume,
  .ohg-comments__form,
  .ohg-comments__sort,
  .ohg-comment__actions,
  .ohg-submit,
  .ohg-submit-slot,
  .ohg-pager,
  .ohg-single__actions,
  .ohg-gauge__btn,
  .ohg-header__actions,
  .ohg-footer__links,
  .ohg-sprite{ display: none !important; }

  /* ══ 3. 面の表現を線に置き換える ══ */
  .ohg-card,
  .ohg-panel,
  .ohg-gauge,
  .ohg-plea,
  .ohg-video,
  .ohg-audio{
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid #BBBBBB !important;
    color: #111111 !important;
  }
  .ohg-chip,
  .ohg-card__tag{
    background: transparent !important;
    border: 1px solid #999999 !important;
    color: #333333 !important;
    box-shadow: none !important;
  }
  .ohg-gauge__track{ border: 1px solid #999999; background: transparent !important; }
  .ohg-gauge__bar{ background: #666666 !important; }
  .ohg-gauge__bar::after{ content: none !important; }

  /* ══ 4. 改ページ制御 ══ */
  .ohg-card,
  .ohg-comment,
  .ohg-reader__page,
  .ohg-plea,
  .ohg-gauge{ break-inside: avoid; page-break-inside: avoid; }
  h1,h2,h3{ break-after: avoid; page-break-after: avoid; }

  /* 縦読みビューアは1枚ずつ紙に載せる */
  .ohg-reader__page{
    content-visibility: visible !important;
    contain-intrinsic-size: none !important;
  }
  .ohg-reader__img{ opacity: 1 !important; }

  /* ══ 5. レイアウトを単純化する ══ */
  .ohg-grid{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 8pt !important; }
  .ohg-rail{ overflow: visible !important; display: block !important; }
  .ohg-single__layout,
  .ohg-single__hero{ display: block !important; }
  .ohg-single__side{ position: static !important; }
  .ohg-wrap{ max-width: none; padding-inline: 0; }

  /* 影・発光・ぼかしを全廃 */
  *{
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  /* ══ 6. 用紙 ══ */
  @page{ margin: 14mm 12mm; }
}
