/* ═══════════════════════════════════════════════
   Oripa Single Article Styles
   Navy/Gold premium design for individual oripa articles
   Added: 2026-04-27
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
.pb-oripa--single {
  --navy:         #2a3370;
  --navy-dark:    #1c2355;
  --navy-light:   #3d4a8f;
  --navy-pale:    #e8eaf6;
  --gold:         #c4a24d;
  --gold-light:   #dfc78a;
  --green:        #22a760;
  --green-dark:   #1b8a4e;
  --hot:          #e8453c;
  --bg:           #ffffff;
  --bg-alt:       #f5f6fb;
  --text:         #1a1a2e;
  --text-sub:     #5a6578;
  --text-muted:   #8c95a8;
  --border:       #e2e5ee;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow-sm:    0 1px 3px rgba(30,35,85,0.06);
  --shadow-md:    0 4px 16px rgba(30,35,85,0.08);
  --transition:   0.22s ease;

  font-family: 'Noto Sans JP', 'Zen Kaku Gothic New', sans-serif;
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── Swell Overrides ── */
.pb-oripa--single .p-breadcrumb { display: none !important; }
.pb-oripa--single .l-topTitleArea,
.pb-oripa--single #top_title_area { display: none !important; }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.pb-oripa-hero--single {
  position: relative;
  background: linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

.pb-oripa-hero--single__deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}
.pb-oripa-hero--single__deco--diamond {
  width: 14px; height: 14px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 2px;
}
.pb-oripa-hero--single__deco--dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}

.pb-oripa-hero--single__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Breadcrumb */
.pb-oripa-single__breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
}
.pb-oripa-single__breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.pb-oripa-single__breadcrumb a:hover {
  color: var(--gold-light);
}
.pb-oripa-single__breadcrumb-sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}
.pb-oripa-single__breadcrumb > span:last-child {
  color: rgba(255,255,255,0.85);
}

/* Labels */
.pb-oripa-single__labels {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.pb-oripa-single__label {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-dark);
  background: var(--gold-light);
  border-radius: 3px;
  letter-spacing: 0.03em;
}

/* Title */
.pb-oripa-hero--single__title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.45;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

/* Meta */
.pb-oripa-single__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.pb-oripa-single__author { font-weight: 500; }
.pb-oripa-single__sep { margin: 0 0.4rem; opacity: 0.4; }
.pb-oripa-single__updated { color: rgba(255,255,255,0.5); }



/* ═══════════════════════════════════════════════
   EYECATCH
   ═══════════════════════════════════════════════ */
.pb-oripa-single__eyecatch {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pb-oripa-single__eyecatch-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════
   CONTENT OVERRIDES (post_content)
   ═══════════════════════════════════════════════ */

/* H2 */
.pb-oripa--single .post_content h2 {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 0.85rem 1.2rem 0.85rem 1.4rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 2.5rem 0 1.2rem;
  letter-spacing: 0.02em;
  position: relative;
}
.pb-oripa--single .post_content h2::before { display: none; }
.pb-oripa--single .post_content h2::after { display: none; }

/* H3 */
.pb-oripa--single .post_content h3 {
  color: var(--navy);
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--navy);
  border-bottom: 2px solid var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 2rem 0 1rem;
  background: none;
}
.pb-oripa--single .post_content h3::before { display: none; }
.pb-oripa--single .post_content h3::after { display: none; }

/* H4 */
.pb-oripa--single .post_content h4 {
  color: var(--navy);
  padding-left: 0.8rem;
  border-left: 3px solid var(--gold);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.8rem;
  background: none;
}
.pb-oripa--single .post_content h4::before { display: none; }

/* Links */
.pb-oripa--single .post_content a {
  color: var(--navy);
  transition: color var(--transition);
}
.pb-oripa--single .post_content a:hover {
  color: var(--gold);
}

/* Tables */
.pb-oripa--single .post_content table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.5rem 0;
}
.pb-oripa--single .post_content table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}
.pb-oripa--single .post_content table td {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.pb-oripa--single .post_content table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

/* Blockquotes */
.pb-oripa--single .post_content blockquote {
  border-left: 4px solid var(--navy);
  background: var(--navy-pale);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text);
}

/* Lists */
.pb-oripa--single .post_content ul li::marker {
  color: var(--gold);
}
.pb-oripa--single .post_content ol li::marker {
  color: var(--navy);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   RELATED ARTICLES
   ═══════════════════════════════════════════════ */
.pb-oripa-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.pb-oripa-related__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 1.2rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--gold);
  background: none !important;
}
.pb-oripa-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pb-oripa-related__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  background: #fff;
}
.pb-oripa-related__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pb-oripa-related__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.pb-oripa-related__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}
.pb-oripa-related__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-oripa-related__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-pale), var(--bg-alt));
}
.pb-oripa-related__body {
  padding: 0.7rem 0.8rem;
}
.pb-oripa-related__card-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pb-oripa-related__date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

/* ═══════════════════════════════════════════════
   CTA BOTTOM
   ═══════════════════════════════════════════════ */
.pb-oripa-cta-bottom {
  margin-top: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 2rem;
  text-align: center;
}
.pb-oripa-cta-bottom__text {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.pb-oripa-cta-bottom__btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(34,167,96,0.3);
}
.pb-oripa-cta-bottom__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34,167,96,0.4);
  color: #fff;
}



/* ═══════════════════════════════════════════════
   FEED BOTTOM
   ═══════════════════════════════════════════════ */
.pb-oripa-feed-bottom {
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1080px) {

}

@media (max-width: 768px) {
  .pb-oripa-hero--single {
    padding: 1.8rem 0 2rem;
  }
  .pb-oripa-hero--single__title {
    font-size: 1.3rem;
  }
  .pb-oripa-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pb-oripa--single .post_content h2 {
    font-size: 1.1rem;
    padding: 0.7rem 1rem 0.7rem 1.2rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .pb-oripa-hero--single__title {
    font-size: 1.15rem;
  }
  .pb-oripa-related__grid {
    grid-template-columns: 1fr;
  }
  .pb-oripa-cta-bottom {
    padding: 1.5rem 1rem;
  }
}
