/**
 * PageReminder Styles
 */

/* コンテナ */
.pr-container {
  position: fixed;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
}

/* 位置設定 - 右下（縦に並ぶ） */
.pr-container.pr-bottom-right-1 {
  bottom: 20px;
  right: 20px;
}

.pr-container.pr-bottom-right-2 {
  bottom: 80px;
  right: 20px;
}

.pr-container.pr-bottom-right-3 {
  bottom: 140px;
  right: 20px;
}

/* 位置設定 - 右上 */
.pr-container.pr-top-right-1 {
  top: 20px;
  right: 20px;
}

/* メインバナー（一体化した外枠） */
.pr-banner {
  display: flex;
  align-items: center;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* コンテンツエリア（スライドする部分） */
.pr-content-area {
  overflow: hidden;
  transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}

/* コンテンツ部分 */
.pr-content {
  padding: 10px 0 10px 16px;
}

.pr-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.pr-link {
  display: block;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.pr-link:hover {
  text-decoration: underline;
}

/* ボタンエリア（固定） */
.pr-button-area {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* 共通ボタンスタイル */
.pr-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, opacity 0.2s;
}

/* 閉じるボタン（×） */
.pr-close::before,
.pr-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
}

.pr-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.pr-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 開くボタン */
.pr-open {
  font-size: 16px;
  font-weight: bold;
}

/* 表示切り替え */
.pr-btn.pr-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== ダークテーマ ===== */
.pr-theme-dark .pr-banner {
  background: #333;
  color: #fff;
}

.pr-theme-dark .pr-link {
  color: #6db3f2;
}

.pr-theme-dark .pr-link:hover {
  color: #9fcbf7;
}

.pr-theme-dark .pr-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pr-theme-dark .pr-close::before,
.pr-theme-dark .pr-close::after {
  background: #fff;
}

.pr-theme-dark .pr-close:hover::before,
.pr-theme-dark .pr-close:hover::after {
  background: #fff;
}

.pr-theme-dark .pr-open {
  color: #fff;
}

.pr-theme-dark .pr-open:hover {
  color: #fff;
}

/* ===== ライトテーマ ===== */
.pr-theme-light .pr-banner {
  background: #fff;
  color: #333;
  border: 1px solid #e0e0e0;
}

.pr-theme-light .pr-link {
  color: #0066cc;
}

.pr-theme-light .pr-link:hover {
  color: #004499;
}

.pr-theme-light .pr-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.pr-theme-light .pr-close::before,
.pr-theme-light .pr-close::after {
  background: #999;
}

.pr-theme-light .pr-close:hover::before,
.pr-theme-light .pr-close:hover::after {
  background: #333;
}

.pr-theme-light .pr-open {
  color: #999;
}

.pr-theme-light .pr-open:hover {
  color: #333;
}