/* ============================================================
   スグ泊 JOURNAL — Compact Economic Media Stylesheet
   Dark Editorial over Homepage Tokyo Night Skyline
   ============================================================ */

:root {
  --j-surface: rgba(14, 19, 30, 0.88);
  --j-subtle: rgba(24, 33, 50, 0.82);
  --j-masthead: rgba(10, 14, 22, 0.88);
  --j-ink: #f8fafc;
  --j-body: #e2e8f0;
  --j-muted: #94a3b8;
  --j-rule: rgba(255, 255, 255, 0.13);
  --j-gold: #d4af37;
  --j-gold-bright: #f0cc64;
  --j-gold-soft: rgba(212, 175, 55, 0.16);
  --j-gold-border: rgba(212, 175, 55, 0.44);
  --j-hover: rgba(255, 255, 255, 0.045);
  --j-serif:
    "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --j-sans:
    "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui,
    -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.journal-page {
  font-family: var(--j-sans);
  color: var(--j-ink);
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

/* ---------- 1. Masthead (Unified Homepage Logo + Compact Gold JOURNAL) ---------- */
.journal-masthead {
  position: relative;
  z-index: 40;
  background: var(--j-masthead);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.journal-masthead-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.92rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.journal-masthead-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.journal-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  flex-shrink: 0;
}

.journal-brand-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.34rem;
}

/* Match index.html homepage .logo font & styling verbatim */
.journal-brand-link .logo {
  font-family: "Inter", sans-serif !important;
  font-size: 1.65rem;
  font-weight: 800 !important;
  color: var(--primary, #d4af37);
  letter-spacing: 0 !important;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.journal-wordmark {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--primary, #d4af37);
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.journal-tagline {
  font-family: "Caveat", "Dancing Script", "Brush Script MT", cursive;
  color: var(--primary, #d4af37);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  margin-top: -0.18rem;
  transform: rotate(-2deg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Sibling Tool <-> Media Switcher */
.journal-mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.journal-mode-link {
  padding: 0.24rem 0.62rem;
  border-radius: 4px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.journal-mode-link:hover {
  color: #ffffff;
}

.journal-mode-active {
  padding: 0.24rem 0.62rem;
  border-radius: 4px;
  background: var(--j-gold);
  color: #0e1a2b;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.journal-header-search-slot {
  margin-left: auto;
  flex-shrink: 0;
}

.journal-masthead-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.journal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  background: var(--j-gold);
  color: #0e1a2b;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 0.18s ease,
    transform 0.15s ease;
}

.journal-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.journal-cta-mobile-label {
  display: none;
}

/* Inline Header Search Form (Index Page) */
.journal-masthead .article-search-form.is-header-inline {
  margin: 0;
  max-width: none;
}

.journal-masthead .article-search-form.is-header-inline .article-search-box {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.22rem 0.18rem 0.62rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.journal-masthead
  .article-search-form.is-header-inline
  .article-search-box:focus-within {
  border-color: rgba(212, 175, 55, 0.8);
}

.journal-masthead .article-search-form.is-header-inline .article-search-icon {
  font-size: 0.78rem;
  opacity: 0.78;
  flex-shrink: 0;
}

.journal-masthead .article-search-form.is-header-inline .article-search-input {
  width: 175px;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.76rem;
  padding: 0.24rem 0.15rem;
}

.journal-masthead
  .article-search-form.is-header-inline
  .article-search-input::placeholder {
  color: #94a3b8;
}

.journal-masthead
  .article-search-form.is-header-inline
  .article-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.journal-masthead .article-search-form.is-header-inline .article-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1;
  flex-shrink: 0;
}

.journal-masthead .article-search-form.is-header-inline .article-search-btn {
  padding: 0.28rem 0.62rem;
  border-radius: 4px;
  border: none;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--j-gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.journal-masthead
  .article-search-form.is-header-inline
  .article-search-btn:hover {
  background: var(--j-gold);
  color: #0e1a2b;
}

/* ---------- 2. Horizontal Category Strip (Existing 7 Tags) ---------- */
.journal-tag-strip-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.journal-tag-strip-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.15rem;
}

.journal-masthead .article-tag-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem;
  margin: 0;
  max-width: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.journal-masthead .article-tag-bar::-webkit-scrollbar {
  display: none;
}

.journal-masthead .article-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.72rem 0.34rem;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #cbd5e1;
  font-size: 0.69rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.journal-masthead .article-tag-chip:hover {
  color: #ffffff;
  border-bottom-color: rgba(212, 175, 55, 0.55);
  background: transparent;
  transform: none;
}

.journal-masthead .article-tag-chip.is-active {
  color: #ffffff;
  font-weight: 700;
  border-bottom-color: var(--j-gold);
  background: transparent;
  box-shadow: none;
}

.journal-masthead .article-tag-count {
  font-size: 0.64rem;
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.journal-masthead .article-tag-chip.is-active .article-tag-count {
  background: rgba(212, 175, 55, 0.24);
  color: var(--j-gold-bright);
}

/* ---------- 3. Main Container, Breadcrumb & Editorial Heading ---------- */
.journal-shell {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.15rem 3.5rem;
}

.journal-crumb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  color: #cbd5e1;
}

.journal-crumb-bar .breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0;
  font-size: 0.76rem;
  color: #cbd5e1;
}

.journal-crumb-bar .breadcrumbs a {
  color: #cbd5e1;
  text-decoration: none;
}

.journal-crumb-bar .breadcrumbs a:hover {
  color: var(--j-gold-bright);
  text-decoration: underline;
}

.journal-crumb-bar .breadcrumbs span {
  color: rgba(255, 255, 255, 0.35);
}

.journal-crumb-bar .breadcrumbs .current {
  color: #ffffff;
  font-weight: 600;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-crumb-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.journal-total-pill {
  padding: 0.14rem 0.52rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--j-gold-border);
  color: var(--j-gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
}

.journal-back-link {
  color: var(--j-gold-bright);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.journal-back-link:hover {
  text-decoration: underline;
}

.journal-heading-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.journal-heading-strip .blog-title-jp {
  font-family: var(--j-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.journal-heading-strip .article-filter-status {
  margin: 0;
  font-size: 0.8rem;
  color: #e2e8f0;
  text-align: left;
}

.journal-heading-strip .article-filter-reset {
  display: inline-block;
  margin-left: 0.6rem;
  color: var(--j-gold-bright);
  text-decoration: underline;
  font-weight: 600;
}

/* ---------- 4. 2-Column Editorial Grid & Frosted Surfaces ---------- */
.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 1.25rem;
  align-items: start;
}

.journal-main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-sidebar.is-sticky {
  position: sticky;
  top: 1rem;
}

.journal-surface {
  background: var(--j-surface);
  border: 1px solid var(--j-rule);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

/* ---------- 5. Card Resets inside .journal-shell (Clean Override of styles.min.css) ---------- */
.journal-shell .article-card {
  position: relative;
  width: 100%;
  max-width: none !important;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  display: block;
  transform: none;
  transition: background 0.16s ease;
}

.journal-shell .article-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  background: var(--j-hover);
}

.journal-shell .article-card-link {
  display: block;
  height: auto;
  flex-grow: 0;
  text-decoration: none;
  color: inherit;
}

.journal-shell .article-thumbnail {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  z-index: 1;
  transition: transform 0.35s ease;
}

.journal-shell .article-card:hover .article-thumbnail {
  transform: scale(1.03);
}

.journal-shell .article-category-link {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.2rem 0.52rem;
  border-radius: 4px;
  background: rgba(14, 26, 43, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: var(--j-gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.journal-shell .article-category-link:hover {
  background: var(--j-gold);
  color: #0e1a2b;
  border-color: var(--j-gold);
  transform: none;
}

.journal-shell .article-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.73rem;
  color: var(--j-muted);
  margin: 0;
}

.journal-shell .article-title {
  font-family: var(--j-serif);
  color: var(--j-ink);
  font-weight: 700;
  margin: 0;
}

.journal-shell .article-excerpt {
  color: var(--j-muted);
  margin: 0;
}

.article-search-mark {
  background: rgba(212, 175, 55, 0.3);
  color: #fde68a;
  padding: 0 0.16rem;
  border-radius: 3px;
  font-weight: 700;
}

.article-body-match-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
}

.journal-pinned-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.06rem 0.36rem;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--j-gold-bright);
}

/* ---------- 6. Hero Grid: Left 50% Lead Story + Right 50% Stacked 2 Pickups ---------- */
.journal-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.journal-lead-section {
  display: flex;
  flex-direction: column;
}

.journal-card-lead {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

.journal-shell .journal-lead-link {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
  flex: 1 !important;
}

.journal-lead-media {
  position: relative;
  width: 100%;
  height: 215px;
  flex-shrink: 0;
  background: #0f172a;
  overflow: hidden;
}

.journal-top-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 0.22rem 0.56rem;
  border-radius: 4px;
  background: var(--j-gold);
  color: #0e1a2b;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.journal-lead-cat {
  top: 184px;
  bottom: auto;
  left: 10px;
  right: auto;
}

.journal-lead-body {
  padding: 1rem 1.08rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 0.62rem;
}

.journal-lead-meta {
  margin-bottom: 0.38rem !important;
}

.journal-cat-spacer {
  display: none;
}

.journal-lead-title {
  font-size: 1.2rem;
  line-height: 1.46;
  margin-bottom: 0.5rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-lead-excerpt {
  font-size: 0.76rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-lead-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.58rem;
  margin-top: auto;
  border-top: 1px solid var(--j-rule);
  font-size: 0.74rem;
}

.journal-readmore {
  color: var(--j-gold-bright);
  font-weight: 700;
}

.journal-lead-brand {
  color: var(--j-muted);
  font-size: 0.7rem;
}

/* ---------- 7. Right 50% Column: Vertically Stacked 2 Pickup Cards ---------- */
.journal-pickup-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.journal-pickup-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  height: 100%;
}

.journal-shell .journal-card-pickup {
  padding: 0.8rem;
  background: var(--j-surface);
  border: 1px solid var(--j-rule);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  display: flex !important;
  flex-direction: column;
}

.journal-shell .journal-card-pickup:hover {
  border-color: var(--j-gold-border);
  background: rgba(24, 33, 50, 0.9);
}

.journal-pickup-link {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
}

.journal-pickup-media {
  position: relative;
  width: 100%;
  height: 118px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--j-rule);
  background: #0f172a;
  margin-bottom: 0.54rem;
}

.journal-pickup-cat {
  top: 102px;
  left: 20px;
  bottom: auto;
  right: auto;
  font-size: 0.66rem !important;
  padding: 0.16rem 0.44rem !important;
}

.journal-pickup-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.journal-pickup-title {
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 0.3rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-pickup-meta {
  font-size: 0.7rem !important;
}

/* ---------- 8. Main Feed: PC 2-Col NewsPicks Cards / Mobile Compact Rows ---------- */
.journal-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--j-gold);
}

.journal-section-title {
  font-family: var(--j-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--j-ink);
  margin: 0;
}

.journal-section-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--j-gold-bright);
}

.journal-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.journal-card-grid {
  padding: 1rem;
  border-bottom: 1px solid var(--j-rule);
}

.journal-card-grid:nth-child(odd) {
  border-right: 1px solid var(--j-rule);
}

.journal-grid-media {
  position: relative;
  width: 100%;
  height: 162px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--j-rule);
  background: #0f172a;
  margin-bottom: 0.68rem;
}

.journal-grid-cat {
  top: 144px;
  left: 24px;
  bottom: auto;
  right: auto;
}

.journal-grid-meta {
  margin-bottom: 0.35rem !important;
}

.journal-grid-title {
  font-size: 1.05rem;
  line-height: 1.46;
  margin-bottom: 0.44rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-grid-excerpt {
  font-size: 0.76rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-empty-state {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: #cbd5e1;
}

.journal-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.journal-empty-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--j-gold);
  color: #0e1a2b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- 9. Right Sidebar Widgets ---------- */
.journal-side-widget {
  padding: 0.9rem 1rem;
}

.journal-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.55rem;
  border-bottom: 2px solid var(--j-gold);
}

.journal-side-heading {
  font-family: var(--j-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--j-ink);
  margin: 0;
}

.journal-side-sub {
  font-size: 0.7rem;
  color: var(--j-muted);
}

.journal-live-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--j-gold-bright);
}

.journal-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.journal-rank-item {
  border-bottom: 1px solid var(--j-rule);
}

.journal-rank-item:last-child {
  border-bottom: none;
}

.journal-rank-link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.52rem 0.2rem;
  text-decoration: none;
  color: var(--j-ink);
  transition: background 0.15s ease;
}

.journal-rank-link:hover {
  background: var(--j-hover);
}

.journal-rank-num {
  font-family: var(--j-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  width: 16px;
  flex-shrink: 0;
  color: var(--j-muted);
}

.journal-rank-num.is-top3 {
  color: var(--j-gold-bright);
}

.journal-rank-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-area-list {
  display: flex;
  flex-direction: column;
}

.journal-area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.44rem 0.15rem;
  border-bottom: 1px solid var(--j-rule);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--j-ink);
  transition: background 0.15s ease;
}

.journal-area-row:last-child {
  border-bottom: none;
}

.journal-area-row:hover {
  background: var(--j-hover);
}

.journal-area-name {
  font-weight: 600;
}

.journal-area-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--j-gold-bright);
}

.journal-side-cta {
  display: block;
  margin-top: 0.7rem;
  padding: 0.56rem 0.75rem;
  border-radius: 6px;
  background: var(--j-gold);
  color: #0e1a2b;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.journal-side-cta:hover {
  filter: brightness(1.08);
}

.journal-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.journal-side-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.56rem;
  border-radius: 5px;
  background: var(--j-subtle);
  border: 1px solid var(--j-rule);
  color: var(--j-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.journal-side-tag:hover {
  border-color: var(--j-gold-border);
  color: var(--j-gold-bright);
}

.journal-side-tag-count {
  color: var(--j-muted);
  font-size: 0.68rem;
}

/* Curated Theme Feature Tags Widget (Index Sidebar) */
.journal-theme-groups {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.journal-theme-group {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--j-rule);
}

.journal-theme-group:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.journal-theme-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--j-ink);
  margin-bottom: 0.36rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.journal-theme-group.is-under10k .journal-theme-label {
  color: #7dd3fc;
}

.journal-theme-group.is-lastminute .journal-theme-label {
  color: #86efac;
}

.journal-theme-group.is-breakfast .journal-theme-label {
  color: #fcd34d;
}

.journal-theme-group.is-sauna .journal-theme-label {
  color: #f9a8d4;
}

.journal-theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.journal-theme-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.48rem;
  border-radius: 4px;
  background: var(--j-subtle);
  border: 1px solid var(--j-rule);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.journal-theme-chip:hover {
  border-color: var(--j-gold-border);
  background: var(--j-gold-soft);
  color: var(--j-gold-bright);
}

/* ---------- 10. Article Detail Page Styles ---------- */
.journal-article-sheet {
  padding: 1.65rem 1.85rem;
}

.article-detail-header {
  padding-bottom: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--j-rule);
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  color: var(--j-muted);
}

.article-detail-category {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.62rem;
  border-radius: 4px;
  background: var(--j-gold-soft);
  border: 1px solid var(--j-gold-border);
  color: var(--j-gold-bright);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

a.article-detail-category:hover {
  background: var(--j-gold);
  color: #0e1a2b;
}

.article-detail-updated {
  color: #cbd5e1;
}

.article-detail-title {
  font-family: var(--j-serif);
  font-size: 1.68rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.article-detail-lead {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.72;
  margin: 0;
}

.article-detail-eye-catch {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 16 / 9;
  max-height: 304px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--j-rule);
  background: #0f172a;
  margin: 0 auto 0.45rem;
}

.article-detail-eye-catch img.eye-catch-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eye-catch-caption-container {
  max-width: 540px;
  margin: 0 auto 1.2rem;
  text-align: right;
}

.eye-catch-caption {
  font-size: 0.74rem;
  color: var(--j-muted);
}

/* TOC (Mobile Collapsible + Desktop Sidebar) */
.journal-toc-mobile {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  background: var(--j-subtle);
  border: 1px solid var(--j-rule);
  border-left: 3px solid var(--j-gold);
}

.journal-toc-mobile-summary {
  font-family: var(--j-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}

.journal-toc-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.journal-toc-widget .journal-toc-list {
  margin-top: 0;
}

.journal-toc-link {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.journal-toc-link:hover {
  color: var(--j-gold-bright);
}

.journal-toc-num {
  color: var(--j-gold-bright);
  font-weight: 700;
  flex-shrink: 0;
}

/* Editorial Body Typography */
.article-body-content {
  color: var(--j-body);
  font-size: 0.96rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.article-body-content p {
  margin: 0 0 1.4rem;
}

.article-body-content h2 {
  font-family: var(--j-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2.35rem 0 1rem;
  padding-bottom: 0.48rem;
  border-bottom: 2px solid var(--j-gold);
  scroll-margin-top: 1.5rem;
}

.article-body-content h3 {
  font-family: var(--j-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1.85rem 0 0.85rem;
  padding-left: 0.72rem;
  border-left: 3px solid var(--j-gold);
  scroll-margin-top: 1.5rem;
}

.article-body-content a {
  color: var(--j-gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body-content a:hover {
  opacity: 0.82;
}

.article-body-content ul,
.article-body-content ol {
  margin: 0 0 1.4rem;
  padding-left: 1.55rem;
}

.article-body-content li {
  margin-bottom: 0.42rem;
}

.article-body-content blockquote {
  background: var(--j-subtle);
  border-left: 3px solid var(--j-gold);
  padding: 0.85rem 1.15rem;
  margin: 1.45rem 0;
  border-radius: 0 6px 6px 0;
  color: #cbd5e1;
}

.article-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.85rem;
  display: block;
  overflow-x: auto;
}

.article-body-content th,
.article-body-content td {
  border: 1px solid var(--j-rule);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.article-body-content th {
  background: rgba(212, 175, 55, 0.14);
  color: #ffffff;
  font-weight: 700;
}

.article-body-content img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 8px;
  margin: 1.25rem auto 0.55rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.article-body-content figure {
  margin: 1.25rem auto;
  max-width: 440px;
  text-align: center;
}

.article-body-content figure img {
  margin: 0 auto 0.5rem;
}

.article-body-content figcaption,
.article-body-content .img-caption,
.article-body-content p.caption,
.article-body-content img + em {
  display: block;
  font-size: 0.78rem;
  color: var(--j-muted);
  font-style: normal;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.35rem;
}

/* Auto-enhanced Hotel Photo Card inside Article Body */
.article-hotel-photo-figure {
  margin: 0.75rem 0 1.15rem !important;
  max-width: 420px;
  text-align: left !important;
}

.article-hotel-photo-link {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  text-decoration: none !important;
  aspect-ratio: 16 / 10;
}

.article-hotel-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.35s ease;
}

.article-hotel-photo-link:hover .article-hotel-photo-img {
  transform: scale(1.03);
}

.article-hotel-photo-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.32rem 0.74rem;
  border-radius: 6px;
  background: rgba(14, 26, 43, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--j-gold-bright);
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.article-hotel-photo-link:hover .article-hotel-photo-badge {
  background: var(--j-gold);
  color: #0e1a2b;
}

/* CTA Box inside Article Detail */
.article-cta-box {
  margin-top: 2.25rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 8px;
  padding: 1.35rem 1.25rem;
  text-align: center;
}

.article-cta-title {
  font-family: var(--j-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.65rem;
}

.article-cta-btn {
  display: inline-block;
  background: var(--j-gold);
  color: #0e1a2b;
  padding: 0.72rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  transition:
    filter 0.18s ease,
    transform 0.15s ease;
}

.article-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Prev/Next Article Chain */
.journal-prevnext-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.journal-prevnext-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  background: var(--j-surface);
  border: 1px solid var(--j-rule);
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.journal-prevnext-card.is-next {
  text-align: right;
}

.journal-prevnext-card:hover {
  border-color: var(--j-gold-border);
  background: rgba(24, 33, 50, 0.92);
}

.journal-prevnext-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--j-gold-bright);
}

.journal-prevnext-title {
  font-family: var(--j-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--j-ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Related Articles Section */
.related-articles-section {
  margin-top: 0;
}

.related-articles-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--j-gold);
}

.related-articles-heading {
  font-family: var(--j-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.related-articles-more {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--j-gold-bright);
  text-decoration: none;
}

.related-articles-more:hover {
  text-decoration: underline;
}

/* Sidebar Related Articles List */
.journal-side-rel-list {
  display: flex;
  flex-direction: column;
}

.journal-side-rel-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--j-rule);
  text-decoration: none;
  color: var(--j-ink);
  transition: opacity 0.15s ease;
}

.journal-side-rel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.journal-side-rel-item:hover {
  opacity: 0.85;
}

.journal-side-rel-thumb {
  width: 72px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--j-rule);
  background: #0f172a;
}

.journal-side-rel-title {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Compact Sidebar Search Form (Detail Page) */
.article-search-form.is-compact {
  margin: 0;
  max-width: none;
}

.article-search-form.is-compact .article-search-box {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.26rem 0.24rem 0.6rem;
  border-radius: 6px;
  background: var(--j-subtle);
  border: 1px solid var(--j-rule);
}

.article-search-form.is-compact .article-search-box:focus-within {
  border-color: var(--j-gold-border);
}

.article-search-form.is-compact .article-search-icon {
  font-size: 0.8rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.article-search-form.is-compact .article-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.78rem;
  padding: 0.28rem 0.1rem;
}

.article-search-form.is-compact .article-search-input::placeholder {
  color: var(--j-muted);
}

.article-search-form.is-compact .article-search-btn {
  flex-shrink: 0;
  padding: 0.34rem 0.72rem;
  border-radius: 4px;
  border: none;
  background: var(--j-gold);
  color: #0e1a2b;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- 11. Tablet Breakpoint (<= 960px) ---------- */
@media (max-width: 960px) {
  .journal-layout {
    grid-template-columns: 1fr;
  }

  .journal-sidebar.is-sticky {
    position: static;
  }

  .journal-mode-switch {
    display: none;
  }

  .journal-toc-widget {
    display: none;
  }

  .journal-toc-mobile {
    display: block;
  }
}

/* ---------- 12. Compact Mobile Layout (<= 640px) ---------- */
@media (max-width: 640px) {
  .journal-masthead-inner {
    padding: 0.92rem 0.78rem 0.86rem;
    flex-wrap: wrap;
    row-gap: 0.72rem;
  }

  .journal-brand-link .logo {
    font-size: 1.9rem;
  }

  .journal-brand-row {
    gap: 0.32rem;
  }

  .journal-wordmark {
    font-size: 0.94rem;
    letter-spacing: 0.03em;
  }

  .journal-tagline {
    display: none;
  }

  .journal-cta-desktop-label {
    display: none;
  }

  .journal-cta-mobile-label {
    display: inline;
  }

  .journal-cta-btn {
    padding: 0.4rem 0.72rem;
    font-size: 0.74rem;
  }

  /* Move index inline search into a comfortable full-width bar on mobile */
  .journal-masthead-right {
    gap: 0.4rem;
  }

  .journal-header-search-slot {
    width: 100%;
    order: 3;
    margin-left: 0;
  }

  .journal-masthead .article-search-form.is-header-inline .article-search-box {
    padding: 0.3rem 0.3rem 0.3rem 0.7rem;
  }

  .journal-masthead
    .article-search-form.is-header-inline
    .article-search-input {
    width: 100%;
    flex: 1;
  }

  .journal-tag-strip-inner {
    padding: 0 0.62rem;
  }

  .journal-masthead .article-tag-bar {
    justify-content: flex-start;
    gap: 0.14rem;
  }

  .journal-masthead .article-tag-chip {
    padding: 0.68rem 0.54rem;
    font-size: 0.72rem;
  }

  .journal-shell {
    padding: 0.95rem 0.68rem 2.5rem;
  }

  .journal-crumb-bar {
    padding-bottom: 0.55rem;
    margin-bottom: 0.7rem;
    font-size: 0.7rem;
  }

  .journal-crumb-bar .breadcrumbs {
    font-size: 0.7rem;
  }

  .journal-crumb-bar .breadcrumbs .current {
    max-width: 170px;
  }

  .journal-heading-strip {
    margin-bottom: 0.65rem;
  }

  .journal-heading-strip .blog-title-jp {
    font-size: 0.96rem;
  }

  .journal-main-col,
  .journal-sidebar {
    gap: 0.75rem;
  }

  /* Mobile Asymmetric Hero Grid: Left 50% Lead + Right 50% Vertically Stacked 2 Pickups */
  .journal-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
  }

  .journal-lead-media {
    height: 132px;
  }

  .journal-top-badge {
    top: 6px;
    left: 6px;
    font-size: 0.6rem;
    padding: 0.15rem 0.42rem;
  }

  .journal-lead-cat {
    top: 107px;
    bottom: auto;
    left: 6px;
    font-size: 0.58rem !important;
    padding: 0.13rem 0.36rem !important;
    max-width: calc(100% - 12px) !important;
  }

  .journal-lead-body {
    padding: 0.64rem 0.64rem 0.68rem;
    gap: 0.42rem;
  }

  .journal-lead-meta {
    margin-bottom: 0.24rem !important;
    font-size: 0.66rem !important;
  }

  .journal-lead-title {
    font-size: 1.04rem;
    line-height: 1.4;
    -webkit-line-clamp: 5;
    margin-bottom: 0 !important;
  }

  .journal-lead-excerpt,
  .journal-lead-brand {
    display: none;
  }

  .journal-lead-footer {
    padding-top: 0.42rem;
    font-size: 0.7rem;
  }

  /* Right 50% Stacked 2 Pickup Mini-Cards */
  .journal-pickup-stack {
    gap: 0.56rem;
  }

  .journal-shell .journal-card-pickup {
    padding: 0.52rem;
  }

  .journal-pickup-media {
    height: 78px;
    margin-bottom: 0.38rem;
  }

  .journal-pickup-cat {
    top: 63px;
    left: 12px;
    font-size: 0.56rem !important;
    padding: 0.12rem 0.34rem !important;
    max-width: calc(100% - 24px) !important;
  }

  .journal-pickup-title {
    font-size: 0.92rem;
    line-height: 1.38;
    -webkit-line-clamp: 3;
    margin-bottom: 0.22rem !important;
  }

  .journal-pickup-meta {
    font-size: 0.64rem !important;
  }

  /* Mobile Compact News Feed Rows (Horizontal Row with Crisp 112x78 Photo on Right!) */
  .journal-section-bar {
    padding: 0.62rem 0.76rem;
  }

  .journal-section-title {
    font-size: 0.94rem;
  }

  .journal-feed-grid {
    grid-template-columns: 1fr;
  }

  .journal-card-grid {
    padding: 0.78rem 0.74rem;
    border-right: none !important;
  }

  .journal-grid-link {
    display: flex !important;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 0.74rem;
  }

  .journal-grid-media {
    width: 112px;
    height: 78px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .journal-grid-body {
    flex: 1;
    min-width: 0;
    padding-top: 1.35rem;
  }

  .journal-grid-cat {
    top: 0.72rem;
    left: 0.74rem;
    bottom: auto;
    right: auto;
    font-size: 0.62rem !important;
    padding: 0.15rem 0.42rem !important;
    max-width: calc(100% - 140px) !important;
  }

  .journal-grid-meta {
    margin-bottom: 0.22rem !important;
    font-size: 0.68rem !important;
  }

  .journal-grid-title {
    font-size: 1.06rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    margin-bottom: 0 !important;
  }

  .journal-grid-excerpt {
    display: none;
  }

  .journal-card-grid.has-search-highlight .journal-grid-excerpt {
    display: -webkit-box;
    margin-top: 0.25rem !important;
    font-size: 0.7rem;
  }

  /* Mobile Article Detail Compact */
  .journal-article-sheet {
    padding: 1rem 0.88rem;
  }

  .article-detail-title {
    font-size: 1.34rem;
    line-height: 1.38;
  }

  .article-detail-eye-catch {
    max-width: 100%;
    max-height: 178px;
  }

  .eye-catch-caption-container {
    max-width: 100%;
    margin-bottom: 0.95rem;
  }

  .article-hotel-photo-figure {
    max-width: 100%;
  }

  .article-hotel-photo-link {
    aspect-ratio: 16 / 9;
    max-height: 185px;
  }

  .article-body-content {
    font-size: 0.92rem;
    line-height: 1.82;
  }

  .article-body-content h2 {
    font-size: 1.12rem;
    margin: 1.85rem 0 0.85rem;
  }

  .article-body-content h3 {
    font-size: 0.98rem;
  }

  .journal-prevnext-nav {
    grid-template-columns: 1fr;
  }

  .journal-prevnext-card.is-next {
    text-align: left;
  }
}
