/* ============================================
   IT Scoopers - Design System & Styles
   A Modern IT Media Site with Impact
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand: Orange (warm accent) × Night Blue (dark sections) × Cream/White (base) */
  --brand-orange: #f0683a;
  --brand-orange-deep: #d44e1d;
  --brand-orange-soft: #fef0e6;
  --brand-orange-medium: #fce5d4;

  --brand-night: #0e1a3a;
  --brand-night-light: #1e2a5a;
  --brand-night-purple: #2c2068;

  --brand-cream: #fbf6ef;
  --brand-cream-warm: #f7eee0;

  /* Legacy alias (renamed but value-mapped to new palette) */
  --brand-purple: var(--brand-cream);
  --brand-purple-medium: var(--brand-cream-warm);
  --brand-purple-dark: var(--brand-orange);

  /* Background Gradients */
  --bg-gradient: linear-gradient(180deg, #fbf6ef 0%, #ffffff 100%);
  --bg-hero: linear-gradient(135deg, #0a1430 0%, #1e2a5a 55%, #2c2068 100%);
  --bg-section-alt: #ffffff;
  --bg-section-soft: #fbf6ef;
  --bg-dark: #0a1430;
  --bg-dark-gradient: linear-gradient(135deg, #0a1430 0%, #1e2a5a 50%, #2c2068 100%);

  /* Monochrome Palette */
  --color-black: #0a0a0f;
  --color-dark-gray: #1a1a2e;
  --color-gray: #555555;
  --color-medium-gray: #888888;
  --color-light-gray: #cccccc;
  --color-pale-gray: #e5e5e5;
  --color-near-white: #f5f5f5;
  --color-white: #ffffff;

  /* Watermark */
  --watermark-color: rgba(240, 104, 58, 0.07);
  --watermark-dark: rgba(255, 255, 255, 0.03);

  /* Accent Colors - Orange dominant on night blue */
  --accent-primary: var(--brand-orange);
  --accent-glow: rgba(240, 104, 58, 0.4);
  --accent-gradient: linear-gradient(135deg, #d44e1d 0%, #f0683a 50%, #ff8e4d 100%);
  --accent-gradient-2: linear-gradient(135deg, #f0683a 0%, #ffa770 100%);
  --accent-gradient-3: linear-gradient(135deg, #2c2068 0%, #f0683a 100%);

  /* Border & Shadow */
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 60px rgba(240, 104, 58, 0.18);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Noto Sans JP', sans-serif;

  /* Font Sizes */
  --text-display: clamp(3rem, 8vw, 6rem);
  --text-hero: clamp(2rem, 5vw, 3.5rem);
  --text-h1: clamp(1.75rem, 3.5vw, 2.5rem);
  --text-h2: clamp(1.5rem, 3vw, 2rem);
  --text-h3: clamp(1.125rem, 2vw, 1.375rem);
  --text-h4: 1.125rem;
  --text-large: 1.125rem;
  --text-base: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Container */
  --container-max: 1200px;
  --container-padding: 5%;

  /* Header */
  --header-height: 100px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-pill: 50px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-black);
  background: var(--color-white);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-20) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  gap: var(--space-6);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-medium-gray);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-title {
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: var(--space-2);
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

.header.dark {
  background: rgba(10, 10, 15, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Header Top - Logo centered */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.dark .header-top {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.header.dark .logo-main {
  color: var(--color-white);
}

.logo-icon {
  color: var(--color-black);
  flex-shrink: 0;
}

.header.dark .logo-icon {
  color: var(--color-white);
}

/* Header Bottom - Categories */
.header-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.header-bottom::-webkit-scrollbar {
  display: none;
}

.header-tags {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: 0 var(--container-padding);
  white-space: nowrap;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  margin-right: var(--space-4);
  transition: color var(--transition-base);
}

.header.dark .header-icon {
  color: rgba(255, 255, 255, 0.6);
}

.header-icon:hover {
  color: var(--color-black);
}

.header.dark .header-icon:hover {
  color: var(--color-white);
}

.header-icon svg {
  flex-shrink: 0;
}

.header-tag-link {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-gray);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-base);
}

.header.dark .header-tag-link {
  color: rgba(255, 255, 255, 0.6);
}

.header-tag-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.header-tag-link:hover {
  color: var(--color-black);
}

.header.dark .header-tag-link:hover {
  color: var(--color-white);
}

.header-tag-link:hover::after {
  transform: scaleX(1);
}

/* ---------- Hero Section - IMPACT DESIGN ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #060d22 0%, #0e1a3a 30%, #1e2a5a 65%, #2c2068 100%);
  overflow: hidden;
}

/* Background Image Layer */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1920&h=1080&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: saturate(0.3) contrast(1.1);
}

/* Grunge Texture Overlay */
.hero-grunge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('grunge-texture.png');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Hero Top Section */
.hero-top {
  flex: 0 0 auto;
  padding: calc(var(--header-height) + var(--space-8)) var(--container-padding) var(--space-6);
  position: relative;
  z-index: 2;
}

.hero-top-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: 2px solid #ff8e4d;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #ff8e4d;
  letter-spacing: 0.1em;
  text-shadow:
    0 0 5px #ff8e4d,
    0 0 10px rgba(255, 142, 77, 0.7),
    0 0 20px rgba(255, 142, 77, 0.4);
  box-shadow:
    0 0 5px rgba(255, 142, 77, 0.5),
    0 0 10px rgba(255, 142, 77, 0.3),
    inset 0 0 8px rgba(255, 142, 77, 0.1);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #ff8e4d;
  border-radius: 50%;
  box-shadow:
    0 0 5px #ff8e4d,
    0 0 10px rgba(255, 142, 77, 0.6);
  animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px #ff8e4d, 0 0 10px rgba(255, 142, 77, 0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 8px #ff8e4d, 0 0 15px rgba(255, 142, 77, 0.8); }
}

.hero-title-wrapper {
  margin-top: var(--space-6);
}

.hero-title {
  font-size: var(--text-display);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-white);
  position: relative;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #fff 0%, #ffd4b3 55%, #ff8e4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin-top: var(--space-4);
  font-size: var(--text-large);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  line-height: 1.6;
}

/* Hero Main - Featured Articles */
.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-8) var(--container-padding) var(--space-12);
  position: relative;
  z-index: 2;
}

.hero-main-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Featured Articles Grid in Hero */
.hero-featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-5);
  height: 480px;
}

.hero-featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid var(--color-black);
  cursor: pointer;
}

.hero-featured-card.large {
  grid-row: span 2;
}

.hero-featured-card-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-featured-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-featured-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  z-index: 1;
}

.hero-featured-card.large .hero-featured-card-content {
  padding: var(--space-8);
}

.hero-featured-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.hero-featured-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-white);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
}

.hero-featured-card-title {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-featured-card.large .hero-featured-card-title {
  font-size: var(--text-h2);
  -webkit-line-clamp: 3;
}

.hero-featured-card-meta {
  margin-top: var(--space-3);
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.6);
}

/* Hero Bottom Search */
.hero-bottom {
  flex: 0 0 auto;
  padding: var(--space-6) var(--container-padding);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}

.hero-bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Hero Search */
.hero-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-6);
  flex: 1;
}

.hero-search-box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border: 3px solid var(--color-black);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  transition: all var(--transition-base);
  width: 100%;
  max-width: 500px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.hero-search-box:focus-within {
  background: var(--color-white);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.hero-search-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--text-base);
  color: var(--color-black);
  width: 100%;
}

.hero-search-input::placeholder {
  color: var(--color-medium-gray);
}

.hero-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
}

.hero-search-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-black);
}

.hero-scroll-hint {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-small);
  z-index: 2;
  white-space: nowrap;
}

.hero-scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
  transform: rotate(90deg);
}

.hero-scroll-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ---------- View All Button ---------- */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-black);
}

.arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-black);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  border: 2px solid var(--color-black);
}

.arrow-circle svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-white);
  stroke-width: 2;
  transition: stroke var(--transition-base);
}

/* Outlined version */
.arrow-circle--outline {
  background: transparent;
  border: 1.5px solid var(--color-pale-gray);
}

.arrow-circle--outline svg {
  stroke: var(--color-black);
}

/* ---------- Latest Articles Section ---------- */
.latest-section {
  padding: var(--space-24) 0;
  background: var(--brand-purple);
  position: relative;
  overflow: hidden;
}

/* Grunge texture for latest section - stronger */
.latest-section .grunge-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Additional grain for latest section */
.latest-section .grain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.latest-section::before {
  content: 'LATEST';
  position: absolute;
  top: var(--space-16);
  right: var(--container-padding);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--watermark-color);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}

/* Latest Section Layout */
.latest-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-10);
  position: relative;
  z-index: 1;
}

.article-list-footer {
  padding-top: var(--space-8);
  text-align: center;
}

.article-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.posts-page .article-list-item:last-of-type {
  border-bottom: 3px solid var(--color-black);
}

/* Article List Thumbnail */
.article-list-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.article-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

/* Article List Body */
.article-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

/* Article List Meta */
.article-list-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.article-list-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-black);
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.article-list-date {
  font-size: var(--text-small);
  color: var(--color-medium-gray);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* New Badge */
.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #e54545;
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.article-list-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-black);
  transition: color var(--transition-base);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(var(--text-base) * 1.5 * 2);
}

/* Article List Author */
.article-list-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.article-list-author-img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.article-list-author-name {
  font-size: var(--text-small);
  color: var(--color-medium-gray);
}

/* Sidebar Popular Articles */
.sidebar-popular {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-popular li {
  list-style: none;
}

.sidebar-popular-item {
  position: relative;
  display: block;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-10);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-popular-rank {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  font-weight: 900;
  color: var(--color-black);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.sidebar-popular-title {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-dark-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(var(--text-small) * 1.5 * 2);
  transition: color var(--transition-base);
}

/* ---------- Articles Page Header ---------- */
.page-header {
  position: relative;
  padding: calc(var(--header-height) + var(--space-12)) var(--container-padding) var(--space-12);
  background: var(--brand-purple);
  overflow: hidden;
  border-bottom: 4px solid var(--color-black);
}

.page-header-watermark {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--watermark-color);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header .section-label {
  margin-bottom: var(--space-4);
}

.page-header-title {
  font-size: var(--text-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ---------- Posts Page Layout ---------- */
.posts-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-10);
  padding: var(--space-12) 0 var(--space-20);
}

.posts-main {
  min-width: 0;
}

/* ---------- Sidebar ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.sidebar-section {

}

.sidebar-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag-item {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-gray);
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-3);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-gray);
  border-radius: var(--radius-lg);
}

.pagination-item.active {
  background: var(--color-black);
  color: var(--color-white);
}

.pagination-item.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ---------- Article Detail Page ---------- */
.article-detail-section {
  padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-16);
}

.article-detail-section .breadcrumb {
  margin-top: 0;
  margin-bottom: var(--space-6);
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 1;
}

/* Sticky Share Buttons - Fixed to left edge */
.article-share-sticky {
  position: fixed;
  left: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 100;
}

.article-share-sticky-label {
  font-family: 'Caveat', cursive;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray);
  margin-bottom: var(--space-2);
  transform: rotate(-5deg);
}

/* Slide-out Sidebar Toggle Button */
.sidebar-toggle {
  position: fixed;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 0;
}

.sidebar-toggle-icon {
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border: 2px solid var(--color-black);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition-base);
  box-shadow: 2px 2px 0 var(--color-black);
}

.sidebar-toggle-icon span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-black);
  border-radius: 1px;
  transition: all var(--transition-base);
  position: relative;
}

/* Hamburger to X animation when sidebar is open */
.sidebar-toggle.is-active {
  right: calc(320px + var(--space-4));
  z-index: 1300;
}

.sidebar-toggle.is-active .sidebar-toggle-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.sidebar-toggle.is-active .sidebar-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.sidebar-toggle.is-active .sidebar-toggle-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1100;
}

.sidebar-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Slide-out Sidebar Panel */
.sidebar-slideout {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1200;
  overflow-y: auto;
}

.sidebar-slideout.is-active {
  transform: translateX(0);
}

.sidebar-slideout-content {
  padding: var(--space-6);
}

.sidebar-slideout .sidebar-section {
  margin-bottom: var(--space-8);
}

.sidebar-slideout .sidebar-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-black);
}

.article-detail-main {
  min-width: 0;
}

.article-detail-header {
  margin-bottom: var(--space-10);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-small);
  color: var(--color-medium-gray);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-gray);
}

.breadcrumb-separator {
  color: var(--color-light-gray);
}

.article-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.article-detail-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  background: var(--color-black);
  border-radius: var(--radius-sm);
}

.article-detail-title {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-small);
  color: var(--color-medium-gray);
}

.article-detail-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-purple);
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail-image {
  margin-bottom: var(--space-10);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-detail-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Article Content */
.article-content {
  font-size: var(--text-large);
  line-height: 1.9;
  color: var(--color-dark-gray);
}

.article-content h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  color: var(--color-black);
  letter-spacing: -0.02em;
  scroll-margin-top: 120px;
}

.article-content h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-black);
  scroll-margin-top: 120px;
}

.article-content p {
  margin-bottom: var(--space-6);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.article-content li {
  margin-bottom: var(--space-2);
}

.article-content ul li {
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content a {
  color: #667eea;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-8);
  background: var(--brand-purple);
  border-left: 4px solid;
  border-image: var(--accent-gradient) 1;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--color-gray);
}

.article-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  background: var(--brand-purple);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.article-content pre {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: var(--bg-dark);
  color: #e2e8f0;
  border-radius: var(--radius-xl);
  overflow-x: auto;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-content img {
  margin: var(--space-8) 0;
  border-radius: var(--radius-xl);
}

/* Article Share Buttons */
.article-share {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-color);
}

.article-share-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-medium-gray);
  text-transform: uppercase;
}

.article-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-gray);
  border: 2px solid var(--color-black);
  box-shadow: 2px 2px 0 var(--color-black);
  cursor: pointer;
}

/* Related Articles */
.related-section {
  padding: var(--space-12) 0;
  background: var(--brand-purple);
  position: relative;
  overflow: hidden;
}

.related-section::before {
  content: 'RELATED';
  position: absolute;
  top: var(--space-4);
  right: var(--container-padding);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--watermark-color);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}

.related-section .container {
  position: relative;
  z-index: 1;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* Article Card (for related articles) */
.article-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--color-black);
}

.article-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-purple);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.article-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-white);
  background: var(--color-black);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.article-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card-date {
  font-size: var(--text-small);
  margin-top: auto;
  color: var(--color-medium-gray);
  font-variant-numeric: tabular-nums;
}

/* ---------- Popular Section (Full Width) ---------- */
.popular-section {
  padding: var(--space-12) 0;
  background: var(--brand-purple);
  position: relative;
  overflow: hidden;
}

.popular-section::before {
  content: 'HALL OF FAME';
  position: absolute;
  top: var(--space-4);
  right: var(--container-padding);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--watermark-color);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
  white-space: nowrap;
}

.popular-section .container {
  position: relative;
  z-index: 1;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.popular-grid .article-card {
  position: relative;
}

.popular-rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

@media (max-width: 1024px) {
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .popular-section {
    padding: var(--space-8) 0;
  }

  .popular-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ad Banner Section ---------- */
.ad-banner-section {
  padding: var(--space-12) 0;
  background: var(--color-white);
}

.ad-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.ad-banner-link {
  display: block;
}

.ad-banner-placeholder {
  width: 100%;
  aspect-ratio: 300 / 250;
  background: var(--color-dark-gray);
  border: 2px dashed var(--color-gray);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-sizing: border-box;
}

.ad-banner-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-gray);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  letter-spacing: 0.1em;
}

.ad-banner-text {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-light-gray);
}

.ad-banner-size {
  font-size: var(--text-small);
  color: var(--color-medium-gray);
}

@media (max-width: 1024px) {
  .article-share-sticky,
  .sidebar-toggle {
    display: none;
  }

  .ad-banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ad-banner-grid .ad-banner-link:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .ad-banner-section {
    padding: var(--space-8) var(--space-4);
  }

  .ad-banner-grid {
    grid-template-columns: 1fr;
  }

  .ad-banner-grid .ad-banner-link:nth-child(2),
  .ad-banner-grid .ad-banner-link:nth-child(3) {
    display: none;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: var(--space-16);
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.footer-link {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Authors Page ---------- */
.authors-page {
  padding: var(--space-12) 0 var(--space-20);
}

.authors-intro {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
  text-align: center;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.author-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-white);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0 var(--color-black);
}

.author-card-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-black);
}

.author-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card-body {
  flex: 1;
}

.author-card-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.author-card-role {
  font-size: var(--text-small);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.author-card-bio {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.author-card-link {
  display: inline-block;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-black);
  text-decoration: underline;
}

/* ---------- About Page ---------- */
.about-page {
  padding: var(--space-12) 0 var(--space-20);
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: var(--space-12);
}

.about-section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--color-black);
}

.about-section-content p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.about-mission-item {
  padding: var(--space-6);
  background: var(--color-white);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0 var(--color-black);
  text-align: center;
}

.about-mission-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
}

.about-mission-icon svg {
  width: 100%;
  height: 100%;
}

.about-mission-item h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.about-mission-item p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.about-company-card {
  background: var(--color-white);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0 var(--color-black);
  padding: var(--space-6);
}

.about-company-table {
  width: 100%;
  border-collapse: collapse;
}

.about-company-table th,
.about-company-table td {
  padding: var(--space-4) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
}

.about-company-table th {
  width: 30%;
  font-weight: 600;
  color: var(--color-text);
}

.about-company-table td {
  color: var(--color-text-secondary);
}

.about-company-table td a {
  color: var(--color-accent);
  text-decoration: underline;
}

.about-company-table tr:last-child th,
.about-company-table tr:last-child td {
  border-bottom: none;
}

.about-cta {
  text-align: center;
  padding: var(--space-10);
  background: var(--bg-main);
  border: 3px solid var(--color-black);
}

.about-cta p {
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}

.about-cta-btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  border: 3px solid var(--color-black);
}

/* ---------- Contact Page ---------- */
.contact-page {
  padding: var(--space-12) 0 var(--space-20);
  max-width: 640px;
  margin: 0 auto;
}

.contact-intro {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-10);
  line-height: 1.8;
}

.contact-form {
  background: var(--color-white);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0 var(--color-black);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.form-required {
  color: #e53935;
  font-size: var(--text-xs);
  margin-left: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border: 2px solid var(--color-border);
  background: #f8f7fc;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-black);
  background: var(--color-white);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-checkbox-group {
  margin-top: var(--space-6);
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-small);
  cursor: pointer;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-submit {
  margin-top: var(--space-8);
}

.form-submit-btn {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 700;
  border: 3px solid var(--color-black);
  cursor: pointer;
}

.contact-notes {
  padding: var(--space-6);
  background: var(--bg-main);
  border: 2px solid var(--color-border);
}

.contact-notes h3 {
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.contact-notes ul {
  list-style: none;
  padding: 0;
}

.contact-notes li {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
  position: relative;
}

.contact-notes li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* ---------- Privacy Policy Page ---------- */
.privacy-page {
  padding: var(--space-12) 0 var(--space-20);
  max-width: 800px;
  margin: 0 auto;
}

.privacy-intro {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
  padding: var(--space-6);
  background: var(--bg-main);
  border: 2px solid var(--color-border);
}

.privacy-section {
  margin-bottom: var(--space-8);
}

.privacy-section h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-black);
}

.privacy-section p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.privacy-section ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.privacy-section li {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-secondary);
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  position: relative;
}

.privacy-section li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.privacy-section a {
  color: var(--color-accent);
  text-decoration: underline;
}

.privacy-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 2px solid var(--color-border);
  text-align: right;
}

.privacy-footer p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

/* ---------- Contact Confirm/Complete Pages ---------- */
.contact-confirm-page,
.contact-complete-page {
  padding: var(--space-12) 0 var(--space-20);
  max-width: 640px;
  margin: 0 auto;
}

/* Progress Steps */
.contact-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-10);
}

.contact-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.contact-progress-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-border);
  background: var(--color-white);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.contact-progress-step.completed .contact-progress-number {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.contact-progress-step.active .contact-progress-number {
  border-color: var(--color-black);
  color: var(--color-black);
}

.contact-progress-label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-muted);
}

.contact-progress-step.completed .contact-progress-label,
.contact-progress-step.active .contact-progress-label {
  color: var(--color-black);
}

.contact-progress-line {
  width: 60px;
  height: 3px;
  background: var(--color-border);
  margin: 0 var(--space-3);
  margin-bottom: var(--space-6);
}

.contact-progress-line.completed {
  background: var(--color-black);
}

/* Confirm Page */
.contact-confirm-intro {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.contact-confirm-card {
  background: var(--color-white);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0 var(--color-black);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.contact-confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-confirm-table th,
.contact-confirm-table td {
  padding: var(--space-4) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
  vertical-align: top;
}

.contact-confirm-table th {
  width: 35%;
  font-weight: 600;
  color: var(--color-text);
  background: #f8f7fc;
}

.contact-confirm-table td {
  color: var(--color-text-secondary);
}

.contact-confirm-table td.confirm-message {
  white-space: pre-wrap;
  line-height: 1.7;
}

.contact-confirm-table tr:last-child th,
.contact-confirm-table tr:last-child td {
  border-bottom: none;
}

.contact-confirm-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.contact-confirm-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 600;
  border: 3px solid var(--color-border);
  cursor: pointer;
}

.contact-confirm-submit {
  flex: 1;
  padding: var(--space-4) var(--space-8);
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 700;
  border: 3px solid var(--color-black);
  cursor: pointer;
}

/* Complete Page */
.contact-complete-card {
  text-align: center;
  background: var(--color-white);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0 var(--color-black);
  padding: var(--space-12) var(--space-8);
}

.contact-complete-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  color: #22c55e;
}

.contact-complete-icon svg {
  width: 100%;
  height: 100%;
}

.contact-complete-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.contact-complete-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.contact-complete-btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  border: 3px solid var(--color-black);
}

/* ---------- Author Profile Box ---------- */
.author-profile-box {
  background: var(--color-bg-light);
  border: 3px solid var(--color-black);
  padding: var(--space-6);
  margin-top: var(--space-12);
}

.author-profile-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.author-profile-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
}

.author-profile-content {
  display: flex;
  gap: var(--space-6);
}

.author-profile-avatar {
  flex-shrink: 0;
}

.author-profile-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-black);
  object-fit: cover;
}

.author-profile-info {
  flex: 1;
}

.author-profile-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.author-profile-role {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.author-profile-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.author-profile-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
}

/* ---------- Table of Contents ---------- */
.article-toc {
  background: var(--color-bg-light);
  border: 3px solid var(--color-black);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.article-toc-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.article-toc-icon {
  display: flex;
  color: var(--color-text-secondary);
}

.article-toc-title {
  font-weight: 700;
  font-size: var(--text-base);
}

.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.article-toc-list > li {
  counter-increment: toc-counter;
  margin-bottom: var(--space-3);
}

.article-toc-list > li:last-child {
  margin-bottom: 0;
}

.article-toc-list > li > a {
  display: block;
  color: var(--color-text);
  font-weight: 600;
}

.article-toc-list > li > a::before {
  content: counter(toc-counter) ". ";
  color: var(--color-text-secondary);
}

.article-toc-list ol {
  list-style: none;
  padding-left: var(--space-6);
  margin-top: var(--space-2);
  counter-reset: toc-sub-counter;
}

.article-toc-list ol li {
  counter-increment: toc-sub-counter;
  margin-bottom: var(--space-2);
}

.article-toc-list ol li:last-child {
  margin-bottom: 0;
}

.article-toc-list ol li a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ---------- 404 Page ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  overflow: hidden;
}

.error-page-watermark {
  position: absolute;
  font-size: clamp(200px, 30vw, 400px);
  font-weight: 900;
  color: var(--color-black);
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.error-page-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

.error-page-code {
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--color-black) 0%, #333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.error-page-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.error-page-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
}

.error-page-btn {
  padding: var(--space-3) var(--space-6);
  font-weight: 700;
  border: 3px solid var(--color-black);
}

.error-page-btn.primary {
  background: var(--color-black);
  color: var(--color-white);
}

.error-page-btn.secondary {
  background: var(--color-white);
  color: var(--color-black);
}

.error-page-search {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.error-page-search-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.error-page-search-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  border: 3px solid var(--color-black);
}

.error-page-search-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: none;
  font-size: var(--text-base);
  background: var(--color-white);
}

.error-page-search-input:focus {
  outline: none;
}

.error-page-search-btn {
  padding: var(--space-3) var(--space-4);
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-featured-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .hero-featured-card.large {
    grid-row: span 1;
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }

  .hero-featured-card:not(.large) {
    aspect-ratio: 16 / 10;
  }

  .latest-layout,
  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .latest-layout .sidebar,
  .article-detail-layout .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .posts-page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 6%;
    --header-height: 56px;
  }

  .authors-grid {
    grid-template-columns: 1fr;
  }

  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-mission-grid {
    grid-template-columns: 1fr;
  }

  .about-company-table th {
    width: 35%;
  }

  .contact-confirm-actions {
    flex-direction: column;
  }

  .contact-confirm-back {
    justify-content: center;
  }

  .contact-progress-line {
    width: 40px;
  }

  .error-page-actions {
    flex-direction: column;
  }

  .error-page-btn {
    width: 100%;
    text-align: center;
  }

  .author-profile-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-detail-layout .sidebar {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-top {
    padding-top: calc(var(--header-height) + var(--space-6));
  }

  .hero-featured-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero-featured-card.large {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
  }

  .hero-featured-card:not(.large) {
    display: none;
  }

  .hero-featured-card:not(.large):nth-child(2) {
    display: block;
  }

  .hero-bottom-inner {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }

  .hero-scroll-hint {
    display: none;
  }

  .article-list-item {
    grid-template-columns: 56px 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--space-3);
  }

  .article-list-thumb {
    width: 56px;
    height: 56px;
    grid-row: span 2;
    border-radius: var(--radius-md);
  }

  .article-list-tag {
    order: 1;
    justify-self: start;
  }

  .article-list-date {
    order: 2;
    min-width: auto;
    margin-left: var(--space-2);
  }

  .article-list-title {
    grid-column: 2 / 4;
    order: 3;
  }

  .article-list-arrow {
    grid-row: 1;
    grid-column: 3;
    width: 32px;
    height: 32px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding-top: calc(var(--header-height) + var(--space-8));
  }

  .pagination {
    flex-wrap: wrap;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: var(--space-10);
  }

  .footer-links {
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 10px;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-stat-value {
    font-size: var(--text-h3);
  }

  .article-detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================================================
   Topic / Dialogue Article (新フォーマット - リファイン版)
   エディトリアル寄りに、ヘアラインと余白で構造化
   ================================================== */

/* Daily edition header */
.daily-header {
  position: relative;
}

.daily-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.daily-date-stamp {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-medium-gray);
  text-transform: uppercase;
}

.daily-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.daily-title-pre {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-medium-gray);
  letter-spacing: 0;
  line-height: 1.2;
  align-self: flex-start;
}

.daily-lead {
  margin-top: var(--space-5);
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--color-gray);
}

/* Multi-cast list */
.article-cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cast-member {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-base);
}

.cast-member:hover {
  opacity: 0.7;
}

.cast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-purple);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.cast-title {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-medium-gray);
  letter-spacing: 0.04em;
}

.cast-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-black);
  letter-spacing: 0.01em;
}

/* Topics overview */
.topics-overview {
  margin: var(--space-12) 0;
}

.topics-overview-header {
  margin-bottom: var(--space-6);
}

.topics-overview-header .section-label {
  margin-bottom: var(--space-2);
}

.topics-overview-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  color: var(--color-black);
}

.topics-overview-note {
  font-size: 0.85rem;
  color: var(--color-medium-gray);
  margin: 0;
}

.topics-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.topic-mini-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-base);
}

.topic-mini-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Featured (本題) topic card */
.topic-mini-card-featured {
  background: linear-gradient(180deg, #fff8f1 0%, #fdeedf 100%);
  border-color: rgba(212, 78, 29, 0.22);
}

/* Featured topic title (clickable, links to dialogue anchor) */
.topic-mini-title-link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(to right, var(--brand-orange), var(--brand-orange));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 2px;
}

.topic-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.topic-mini-num {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-medium-gray);
  letter-spacing: 0.05em;
  line-height: 1;
}

.topic-mini-num-large {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-black);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.topic-mini-num-large::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-black);
}

.topic-mini-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-medium-gray);
  text-decoration: none;
}

.topic-mini-source svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.topic-mini-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  color: var(--color-black);
  letter-spacing: -0.005em;
}

.topic-mini-summary {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-gray);
  margin: 0;
}

.topic-mini-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-1);
}

.topic-mini-link {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity var(--transition-base);
}

.topic-mini-link:hover {
  opacity: 0.6;
}

/* Dialogue section */
.dialogue-section {
  margin-top: var(--space-12);
  position: relative;
}

.dialogue-section-header {
  display: block;
  margin-bottom: var(--space-7);
}

.dialogue-section-header .section-label {
  margin-bottom: var(--space-2);
}

.dialogue-section-header .section-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.dialogue-section-note {
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-medium-gray);
}

.dialogue-block {
  position: relative;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.dialogue-block:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Topic intro inside dialogue block */
.dialogue-topic-intro {
  margin-bottom: var(--space-7);
}

.dialogue-topic-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.dialogue-topic-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  color: var(--color-black);
}

.dialogue-topic-summary {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--color-gray);
  margin: 0;
}

/* Dialogue stage */
.dialogue-stage {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.dialogue-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.dialogue-message-right {
  justify-content: flex-end;
}

/* Avatar */
.dialogue-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 56px;
}

.dialogue-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-purple);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.dialogue-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialogue-avatar-name {
  margin-top: var(--space-2);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-gray);
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Speech bubble */
.speech-bubble {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: var(--space-4) var(--space-5);
  font-size: 0.95rem;
  line-height: 1.95;
  max-width: calc(100% - 80px);
  color: #2a2a35;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.speech-bubble p {
  margin: 0;
}

.speech-bubble p + p {
  margin-top: var(--space-2);
}

.speech-bubble strong {
  font-weight: 700;
  color: var(--color-black);
  background: linear-gradient(180deg, transparent 70%, rgba(240, 104, 58, 0.22) 70%);
  padding: 0 2px;
}

/* Bubble accent variation per speaker (廃止 — 統一感を優先) */
.speech-bubble-suzuki {
  background: var(--color-white);
}

/* Bubble tails - subtle */
.dialogue-message-left .speech-bubble::before,
.dialogue-message-left .speech-bubble::after,
.dialogue-message-right .speech-bubble::before,
.dialogue-message-right .speech-bubble::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  top: 18px;
}

.dialogue-message-left .speech-bubble::before {
  left: -8px;
  border-width: 7px 8px 7px 0;
  border-color: transparent rgba(0, 0, 0, 0.08) transparent transparent;
}

.dialogue-message-left .speech-bubble::after {
  left: -7px;
  border-width: 7px 8px 7px 0;
  border-color: transparent var(--color-white) transparent transparent;
}

.dialogue-message-right .speech-bubble::before {
  right: -8px;
  border-width: 7px 0 7px 8px;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.08);
}

.dialogue-message-right .speech-bubble::after {
  right: -7px;
  border-width: 7px 0 7px 8px;
  border-color: transparent transparent transparent var(--color-white);
}

/* Dialogue outro */
.dialogue-outro {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.dialogue-outro-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-medium-gray);
  text-transform: uppercase;
}

/* ==================================================
   Topic / Dialogue Responsive
   ================================================== */
@media (max-width: 1024px) {
  .topics-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .daily-eyebrow {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .topics-overview {
    padding: var(--space-5);
  }

  .dialogue-block {
    padding: var(--space-5);
  }

  .dialogue-message,
  .dialogue-message-right {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .dialogue-message-right {
    align-items: flex-end;
  }

  .dialogue-avatar {
    flex-direction: row;
    width: auto;
    align-items: center;
    gap: var(--space-2);
  }

  .dialogue-avatar-img {
    width: 44px;
    height: 44px;
  }

  .dialogue-avatar-name {
    margin-top: 0;
  }

  .speech-bubble {
    max-width: 100%;
  }

  /* Mobile では tail を上向きに */
  .dialogue-message-left .speech-bubble::before,
  .dialogue-message-left .speech-bubble::after,
  .dialogue-message-right .speech-bubble::before,
  .dialogue-message-right .speech-bubble::after {
    display: none;
  }
}
