/* プロンプト個別ページ（og.php）専用スタイル */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #1a1a2e;
  background: #f5f5f7;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ヘッダー */
.pp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1a1a2e;
}
.pp-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pp-logo-icon {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 6px;
}
.pp-logo-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pp-nav-link { color: #fff; font-size: 0.85rem; }

/* 本文 */
.pp-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.pp-breadcrumb {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 16px;
}
.pp-breadcrumb a { color: #666; }
.pp-breadcrumb span { margin: 0 6px; }

.pp-article {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.pp-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.pp-tag {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: #eef;
  color: #334;
}
.pp-tag-tool { background: #f0f0f0; color: #555; }
.pp-date, .pp-stat { font-size: 0.8rem; color: #999; }

/* 画像スライダー（横スワイプ） */
.pp-slider-wrap {
  position: relative;
  margin-bottom: 24px;
}
.pp-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.pp-slider::-webkit-scrollbar { display: none; }
.pp-slider.pp-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.pp-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}
.pp-slide img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}
.pp-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pp-slide-prev { left: 8px; }
.pp-slide-next { right: 8px; }
.pp-slide-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 12px;
}

/* プロンプト */
.pp-prompt-section {
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.pp-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pp-prompt-head h2 { font-size: 1.05rem; }
.pp-copy-btn {
  font-size: 0.82rem;
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  background: #1a1a2e;
  color: #fff;
  cursor: pointer;
}
.pp-copy-btn:hover { opacity: 0.85; }
.pp-prompt-text {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f7fa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.92rem;
  color: #222;
}

/* アクション */
.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pp-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #eee;
  color: #333;
  text-align: center;
}
.pp-btn-primary { background: #1a1a2e; color: #fff; }
.pp-btn:hover { opacity: 0.88; }

/* 関連プロンプト */
.pp-related { margin-top: 40px; }
.pp-related-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.pp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.pp-related-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pp-related-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.pp-related-card span {
  display: block;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* フッター */
.pp-footer {
  text-align: center;
  padding: 30px 16px;
  font-size: 0.8rem;
  color: #999;
}
.pp-footer a { color: #666; font-weight: 600; }

/* 404 */
.pp-notfound {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 0 16px;
}
.pp-notfound p { margin-bottom: 24px; color: #555; }

/* PC表示でスライダーを大きくしすぎない */
@media (min-width: 600px) {
  .pp-slider-wrap { max-width: 520px; margin-left: auto; margin-right: auto; }
}
