/**
 * 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 {
  bottom: 20px;
  right: 20px;
}

.pr-container.pr-bottom-left {
  bottom: 20px;
  left: 20px;
}

.pr-container.pr-top-right {
  top: 20px;
  right: 20px;
}

.pr-container.pr-top-left {
  top: 20px;
  left: 20px;
}

/* ラッパー */
.pr-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

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

.pr-content-area.pr-collapsed {
  width: 0 !important;
  opacity: 0;
}

/* メインバナー */
.pr-banner {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

/* コンテンツ部分 */
.pr-content {
  min-width: 0;
}

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

.pr-link {
  display: block;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  transition: color 0.2s;
}

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

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

/* 共通ボタンスタイル */
.pr-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 閉じるボタン（×） */
.pr-close::before,
.pr-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  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: 18px;
  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 {
  background: #333;
  color: #fff;
}

.pr-theme-dark .pr-btn:hover {
  background: #444;
}

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

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

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

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

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

.pr-theme-light .pr-btn {
  background: #fff;
  color: #333;
  border: 1px solid #e0e0e0;
}

.pr-theme-light .pr-btn:hover {
  background: #f5f5f5;
}

.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;
}