/* ==========================================================================
   AI実用ぶっちゃけトーク (Practical AI Candid Talk) Dedicated Stylesheet
   ========================================================================== */

:root {
  --talk-bg: #0b0f19;
  --talk-card-bg: rgba(22, 30, 49, 0.7);
  --talk-gold: #f59e0b;
  --talk-gold-light: #fbbf24;
  --talk-gold-glow: rgba(245, 158, 11, 0.35);
  --talk-emerald: #10b981;
  --talk-slate: #1e293b;
  --talk-border: rgba(245, 158, 11, 0.25);
  --talk-border-subtle: rgba(255, 255, 255, 0.08);
  --cyan: #5de4ff;
  --gold: #f0c56d;
}

/* Hero Mobile-Only Action Button (Hidden on PC/Desktop, visible on Mobile <= 980px) */
.page-hero-action {
  display: none !important;
}

@media (max-width: 980px) {
  .page-hero-action {
    display: flex !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
}

/* Hero Section */
.talk-hero {
  max-width: 960px;
  margin: 0 auto 36px;
  padding: 30px 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.talk-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.talk-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.talk-vol-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  white-space: nowrap;
}

.talk-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--talk-border-subtle);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.talk-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.talk-tag-pill:hover {
  border-color: rgba(245, 158, 11, 0.4);
  color: #f8fafc;
}

.talk-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.talk-lead {
  font-size: clamp(14px, 1.8vw, 16px);
  color: #cbd5e1;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 24px;
}

/* Article Hero Image */
.talk-hero-image-wrap {
  max-width: 860px;
  width: 100%;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--talk-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--talk-gold-glow);
  position: relative;
}

.talk-hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Hero Reordering: Image moves above Title */
@media (max-width: 680px) {
  .talk-hero {
    margin-bottom: 24px;
    padding-top: 20px;
  }
  .talk-badge-row {
    order: 1;
  }
  .talk-tags-row {
    order: 2;
    margin-bottom: 16px;
  }
  .talk-hero-image-wrap {
    order: 3;
    margin: 0 auto 20px;
    border-radius: 12px;
  }
  .talk-title {
    order: 4;
    font-size: 22px;
    margin-bottom: 12px;
  }
  .talk-lead {
    order: 5;
    font-size: 14px;
    margin-bottom: 0;
  }
}

/* Article Content Container */
.talk-article-container {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
  font-size: 16px;
  line-height: 2;
  color: #e2e8f0;
}

.talk-article-container h2 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  color: #ffffff;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.talk-article-container h2::before {
  content: '⚡';
  font-size: 20px;
}

.talk-article-container h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--talk-gold-light);
  margin: 28px 0 12px;
}

.talk-article-container p {
  margin-bottom: 24px;
}

.talk-article-container hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
  margin: 40px 0;
}

/* Prompt Chat Card (Terminal / Chat Box) */
.talk-prompt-box {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.talk-prompt-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #10b981);
}

.talk-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.talk-prompt-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.8;
  margin: 0;
}

.talk-prompt-body p {
  margin: 4px 0;
}

/* Step Block / Numbered Action Card */
.step-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
}

.step-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--talk-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.step-content p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Key Quote / Callout Box */
.talk-quote-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--talk-gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
  color: #fef08a;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.8;
}

/* 🔥 今日のぶっちゃけ Signature Golden Box */
.talk-signature-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--talk-gold);
  border-radius: 16px;
  padding: 30px;
  margin: 48px 0 40px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 24px var(--talk-gold-glow);
  position: relative;
}

.talk-signature-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.talk-signature-title {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  letter-spacing: 0.05em;
}

.talk-signature-highlight {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.18);
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  margin: 16px 0;
  line-height: 1.6;
}

/* Key Takeaway / Summary Box */
.key-takeaway-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 24px;
  margin: 40px 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.takeaway-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--talk-gold);
  letter-spacing: 0.08em;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.takeaway-text {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.6;
  border-left: 3px solid var(--talk-gold);
  padding-left: 14px;
  margin: 8px 0 16px;
}

.key-takeaway-box p {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.8;
  margin: 0 0 12px;
}

.key-takeaway-box p:last-child {
  margin-bottom: 0;
}

/* X Share Action Area */
.talk-share-section {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--talk-border-subtle);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin: 40px 0;
}

.talk-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.talk-share-btn:hover {
  background: #1d9bf0;
  border-color: #1d9bf0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 155, 240, 0.4);
}

/* Talk note CTA Banner (Centered) */
.talk-note-cta {
  margin-top: 40px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(30, 20, 10, 0.7), rgba(15, 23, 42, 0.85));
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.talk-note-cta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* Talk Grid & Card (Portal Page) */
.talk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.talk-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.talk-card:hover {
  transform: translateY(-4px);
  border-color: var(--talk-gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px var(--talk-gold-glow);
}

.talk-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.talk-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.talk-card:hover .talk-card-thumb img {
  transform: scale(1.04);
}

.talk-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.talk-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  margin: 8px 0 10px;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
}

.talk-card-desc,
.talk-card-catch,
.talk-card-lead {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 62.4px;
}

.talk-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gold, #f0c56d);
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  margin-top: auto;
}

.talk-card-footer span {
  color: var(--gold, #f0c56d);
  font-size: 12px;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .talk-title {
    font-size: 22px;
  }
  .talk-signature-box {
    padding: 20px;
  }
  .talk-article-container {
    padding: 0 16px;
    font-size: 15px;
  }
}

/* Header nav standard additions */
.site-header nav a.nav-link-note {
  color: var(--gold, #f0c56d) !important;
}
.site-header nav a.nav-link-note:hover {
  color: #ffffff !important;
}
.site-header nav .stamp-nav-badge {
  font-size: 10px;
  background: rgba(240, 197, 109, 0.2);
  color: var(--gold, #f0c56d);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(240, 197, 109, 0.4);
}

/* Article Navigation Block (Previous / Next Cards) */
.talk-nav-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 24px;
}

.talk-nav-block.is-single {
  display: flex;
  justify-content: center;
}

.talk-nav-block.is-single .talk-nav-card {
  max-width: 480px;
  width: 100%;
}

.talk-nav-card {
  display: block;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.talk-nav-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
}

.talk-nav-card .nav-dir {
  display: block;
  font-size: 11px;
  color: var(--talk-gold);
  font-weight: 800;
  margin-bottom: 4px;
}

.talk-nav-card .nav-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .talk-nav-block {
    grid-template-columns: 1fr;
  }
}

/* Pagination Bar */
.pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 18px auto 18px !important;
}

.pagination span,
.pagination a,
.pagination button {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0 14px;
}

.pagination a:hover:not(.current):not(.disabled),
.pagination button:hover:not(.current):not([disabled]) {
  border-color: var(--talk-gold, #f59e0b);
  color: #ffffff;
  background: rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

.pagination .current {
  color: #0f172a !important;
  background: var(--talk-gold, #f59e0b) !important;
  border-color: var(--talk-gold, #f59e0b) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
  font-weight: 900;
}

.pagination .disabled,
.pagination button[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

