/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 11 2026 | 03:38:58 */
/* トリガー文字の見た目（リンクらしく） */
.pdf-modal-trigger {
  color: #2c5f7a;
  text-decoration: underline;
  cursor: pointer;
}
.pdf-modal-trigger:hover {
  color: #3b6f8a;
}

/* モーダルの背景（オーバーレイ） */
.pdf-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  padding: 30px 15px;
  box-sizing: border-box;
  overflow-y: auto;
}
.pdf-modal-overlay.is-open {
  display: block;
}

/* モーダル本体 */
.pdf-modal-box {
  background: #fff;
  max-width: 950px;
  margin: 0 auto;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  box-sizing: border-box;
}

/* 閉じるボタン */
.pdf-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: #64748b;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.pdf-modal-close:hover {
  background: #475569;
}

/* PC用：iframeプレビュー */
.pdf-modal-frame-wrap {
  margin-top: 10px;
  position: relative;
}
.pdf-modal-frame-wrap iframe {
  width: 100%;
  height: 70vh;
  border: 1px solid #d4e4ed;
  border-radius: 6px;
  display: block;
  pointer-events: auto; /* iframe内クリックを拾わず、ラッパーのクリックを優先 */
}
.pdf-modal-hint {
  text-align: center;
  font-size: 0.85em;
  color: #64748b;
  margin-top: 8px;
}

/* スマホ用：別タブ案内ボタン */
.pdf-modal-mobile {
  margin-top: 10px;
  text-align: center;
}
.pdf-modal-mobile a {
  display: inline-block;
  padding: 14px 24px;
  background: #2c5f7a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
}
.pdf-modal-mobile a:hover {
  background: #3b6f8a;
}

/* PC・スマホで表示切替（JSで判定してクラス付与） */
.pdf-modal-frame-wrap { display: none; }
.pdf-modal-mobile { display: none; }
.pdf-modal-overlay.mode-pc .pdf-modal-frame-wrap { display: block; }
.pdf-modal-overlay.mode-mobile .pdf-modal-mobile { display: block; }

/* PC用：別タブで開くボタンのスタイル */
.pdf-modal-actions {
  display: none; /* 初期状態は非表示 */
  margin-top: 15px;
  text-align: center;
}

/* PCモードの時だけボタンを表示する */
.pdf-modal-overlay.mode-pc .pdf-modal-actions {
  display: block;
}

/* ボタンのデザイン（スマホ用と統一） */
.pdf-open-tab {
  display: inline-block;
  padding: 12px 24px;
  background: #5c8da8;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  transition: background 0.2s;
}
.pdf-open-tab:hover {
  background: #3b6f8a;
  color: #fff;
}

