/* ================================================================
   Harmonic Society Philosophy — Main Stylesheet
   Pop, colorful, approachable design
   Mobile-first responsive with flat class names
   ================================================================ */

/* ----------------------------------------------------------------
   0. CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
  /* Colors — Light Mode: Vibrant & Friendly */
  --color-bg: #fafbff;
  --color-bg-secondary: #f0f4ff;
  --color-bg-tertiary: #e8eeff;
  --color-text: #2d3250;
  --color-text-secondary: #555b7a;
  --color-text-muted: #8b90a8;
  --color-accent: #6c5ce7;
  --color-accent-light: #a29bfe;
  --color-accent-bg: rgba(108, 92, 231, 0.07);
  --color-border: #dde2f2;
  --color-border-light: #e8ecf8;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(108, 92, 231, 0.08);
  --color-blockquote-bg: #f8f7ff;
  --color-blockquote-border: #6c5ce7;
  --color-code-bg: #f0f0fa;
  --color-code-text: #6c5ce7;
  --color-table-stripe: #f5f6ff;
  --color-header-bg: rgba(250, 251, 255, 0.92);
  --color-tag-bg: #f0f0fa;
  --color-tag-text: #555b7a;
  --color-tag-border: #dde2f2;
  --color-footer-bg: #2d3250;
  --color-footer-text: #b0b5d0;

  /* Brand colors */
  --hs-brand: #009688;
  --hs-brand-light: #4db6ac;

  /* Pop accent palette */
  --color-pink: #fd79a8;
  --color-orange: #fdcb6e;
  --color-green: #00b894;
  --color-blue: #74b9ff;
  --color-red: #ff7675;
  --color-teal: #00cec9;
  --color-purple: #a29bfe;
  --color-yellow: #ffeaa7;

  /* Era colors */
  --era-ancient: #6c5ce7;
  --era-medieval: #e17055;
  --era-early-modern: #00b894;
  --era-enlightenment: #fdcb6e;
  --era-modern: #0984e3;
  --era-contemporary: #fd79a8;
  --era-japanese: #c0392b;

  /* Category colors */
  --cat-metaphysics: #6c5ce7;
  --cat-epistemology: #0984e3;
  --cat-ethics: #00b894;
  --cat-logic: #e17055;
  --cat-aesthetics: #fd79a8;
  --cat-political: #fdcb6e;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-body: "Noto Sans JP", "游ゴシック", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-heading: "Noto Sans JP", "游ゴシック", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "Source Code Pro", "Menlo", "Consolas", monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --leading-tight: 1.4;
  --leading-normal: 1.8;
  --leading-relaxed: 2.0;

  /* Layout */
  --content-max-width: 800px;
  --wide-max-width: 1100px;
  --sidebar-width: 250px;
  --sidebar-left-width: 220px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ----------------------------------------------------------------
   0a. Dark Mode
   ---------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1b2e;
    --color-bg-secondary: #222340;
    --color-bg-tertiary: #2a2c4a;
    --color-text: #e8eaf6;
    --color-text-secondary: #b0b4d0;
    --color-text-muted: #7a7ea0;
    --color-accent: #a29bfe;
    --color-accent-light: #c4bfff;
    --color-accent-bg: rgba(162, 155, 254, 0.1);
    --color-border: #383a58;
    --color-border-light: #2e3050;
    --color-card-bg: #252742;
    --color-card-shadow: rgba(0, 0, 0, 0.3);
    --color-blockquote-bg: #252742;
    --color-blockquote-border: #a29bfe;
    --color-code-bg: #2a2c4a;
    --color-code-text: #a29bfe;
    --color-table-stripe: #252742;
    --color-header-bg: rgba(26, 27, 46, 0.92);
    --color-tag-bg: #2a2c4a;
    --color-tag-text: #b0b4d0;
    --color-tag-border: #383a58;
    --color-footer-bg: #14152a;
    --color-footer-text: #7a7ea0;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
  line-break: strict;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

::selection {
  background-color: var(--color-accent);
  color: #fff;
}

/* ----------------------------------------------------------------
   2. Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: 0.01em;
}

h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-accent-bg);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
  border-radius: 2px;
}

h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--text-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  text-align: justify;
  text-justify: inter-ideograph;
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }
small { font-size: var(--text-sm); }

mark {
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.3), rgba(253, 121, 168, 0.2));
  padding: 0.1em 0.3em;
  border-radius: var(--radius-sm);
}

hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-pink), var(--color-orange), var(--color-green));
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-full);
  opacity: 0.3;
}

sup, sub {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup { top: -0.5em; }
sub { bottom: -0.25em; }

ruby { ruby-align: center; }
rt { font-size: 0.5em; color: var(--color-text-secondary); }

/* ----------------------------------------------------------------
   3. Main Content Area (baseof.html)
   ---------------------------------------------------------------- */
.main-content {
  flex: 1;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-3xl);
  width: 100%;
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* ----------------------------------------------------------------
   4. Header & Navigation (header.html)
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-title-en {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--hs-brand), var(--hs-brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-title-jp {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
}

/* Hamburger toggle button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav list — hidden on mobile by default.
   Uses height:calc instead of bottom:0 because backdrop-filter on .site-header
   creates a new containing block, making position:fixed behave like absolute. */
.nav-list {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  flex-direction: column;
  background-color: var(--color-bg);
  padding: var(--space-xl) var(--space-md);
  margin: 0;
  z-index: 99;
  overflow-y: auto;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.nav-list.open {
  display: flex;
}

.nav-list li {
  border-bottom: 1px solid var(--color-border-light);
}

.nav-list a {
  display: block;
  padding: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-list a:hover {
  color: var(--color-accent);
}

.nav-list a.active {
  color: var(--color-accent);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   5. Breadcrumb (breadcrumb.html)
   ---------------------------------------------------------------- */
.breadcrumb {
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumb li:not(:last-child)::after {
  content: "\203A";
  color: var(--color-text-muted);
  margin-left: var(--space-xs);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.breadcrumb li[aria-current="page"] {
  color: var(--color-text-secondary);
}

/* ----------------------------------------------------------------
   6. Single Article (single.html)
   ---------------------------------------------------------------- */
.article-content {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

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

.article-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.meta-date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.meta-lastmod {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-style: italic;
  opacity: 0.85;
}

.meta-era-period {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
}

/* Tag / Badge styling for meta items */
.meta-eras,
.meta-categories,
.meta-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.meta-eras a,
.meta-categories a,
.meta-tags a {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-tag-text);
  background-color: var(--color-tag-bg);
  border: 1px solid var(--color-tag-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.meta-eras a:hover,
.meta-categories a:hover,
.meta-tags a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--color-card-shadow);
}

/* Era badges: colorful outline */
.meta-eras a {
  color: var(--era-ancient);
  border-color: var(--era-ancient);
  background-color: transparent;
}

.meta-eras a:hover {
  background-color: var(--era-ancient);
  color: #fff;
}

/* Category badges: filled, colorful */
.meta-categories a {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.meta-categories a:hover {
  opacity: 0.85;
  color: #fff;
  border-color: transparent;
}

/* Tag badges */
.meta-tags a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: var(--color-accent-bg);
}

/* Two-column layout: article + sidebar */
.article-body.two-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.article-main {
  min-width: 0;
  flex: 1;
}

/* Article body content typography */
.article-main ul,
.article-main ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.article-main ul {
  list-style-type: disc;
}

.article-main ol {
  list-style-type: decimal;
}

.article-main li {
  margin-bottom: var(--space-xs);
  line-height: var(--leading-normal);
}

.article-main li > ul,
.article-main li > ol {
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

/* Links within article content */
.article-main a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(108, 92, 231, 0.3);
  text-underline-offset: 0.15em;
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.article-main a:hover {
  text-decoration-color: var(--color-accent);
}

/* 記事ページの左右サイドバー（sidebar.html / sidebar-left.html）。
   スマホ: 本文 → 右（関連・目次）→ 左（人気・新着）の縦並び
   1024px〜: 本文＋右サイドバー（左サイドバーの中身は本文の下）
   1280px〜: 左・本文・右の3列 */
.article-body.has-left .article-main { grid-area: main; }
.article-body.has-left .sidebar { grid-area: right; }
.article-body.has-left .sidebar-left { grid-area: left; }

.sidebar,
.sidebar-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.side-widget {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.side-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: 0 0 var(--space-sm);
  padding: 0 0 var(--space-sm);
  border-bottom: 2px solid var(--color-accent-bg);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

.side-title::after {
  display: none;
}

.side-title small {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

.side-list,
.side-topics,
.side-thinkers,
.side-books {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--color-border-light);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.side-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  word-break: auto-phrase;
}

.side-list a:hover {
  color: var(--color-accent);
}

.side-list time {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* 人気コラム: 順位の数字 */
.side-rank {
  counter-reset: rank;
}

.side-rank li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 1.8em 1fr;
  align-items: baseline;
}

.side-rank li::before {
  content: counter(rank);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--text-lg);
  font-weight: 700;
  font-style: italic;
  color: var(--color-accent);
  opacity: 0.7;
}

.side-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.side-topics a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  padding: 0.3em 0.75em;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.side-topics a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.side-topics small {
  color: var(--color-text-muted);
  font-weight: 400;
}

.side-thinkers li + li,
.side-books li + li {
  margin-top: var(--space-xs);
}

.side-thinkers a,
.side-books a {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--color-accent-bg);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  transition: transform var(--transition-fast);
}

.side-thinkers a:hover,
.side-books a:hover {
  transform: translateX(3px);
  color: var(--color-accent);
}

.side-thinkers small,
.side-books small {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

.side-ig {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
  color: #fff;
  text-decoration: none;
  font-size: var(--text-xs);
  line-height: 1.5;
}

.side-ig strong {
  display: block;
  font-size: var(--text-sm);
}

.side-ig:hover {
  color: #fff;
  opacity: 0.9;
}

/* ----------------------------------------------------------------
   7. Sidebar & Table of Contents (sidebar.html)
   ---------------------------------------------------------------- */
.sidebar {
  width: 100%;
}

.toc {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-card-bg), var(--color-bg-secondary));
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.toc-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent-bg);
  /* Override default h2 styles */
  margin-top: 0;
  border-bottom-width: 2px;
}

.toc-title::after {
  display: none;
}

/* Hugo-generated TableOfContents */
#TableOfContents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#TableOfContents ul ul {
  padding-left: var(--space-md);
  margin-top: var(--space-xs);
}

#TableOfContents li {
  margin-bottom: var(--space-xs);
}

#TableOfContents a {
  display: block;
  padding: var(--space-xs) 0;
  padding-left: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
  line-height: 1.5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

#TableOfContents a:hover {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  background-color: var(--color-accent-bg);
}

/* ----------------------------------------------------------------
   7b. Column Branding (column-branding.html)
   ---------------------------------------------------------------- */
.column-branding {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-accent-bg), var(--color-bg-secondary));
  border: 1px solid var(--color-border-light);
}

.column-branding-inner {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.column-branding-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

.column-branding-body {
  flex: 1;
  min-width: 0;
}

.column-branding-tagline {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.column-branding-description {
  margin: 0 0 var(--space-md);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

.column-branding-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.column-branding-link {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background-color: var(--color-bg);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.column-branding-link:hover {
  color: #fff;
  background-color: var(--color-accent);
}

.column-branding-link--external::after {
  content: " \2197";
}

/* ----------------------------------------------------------------
   8. Related Pages (related.html)
   ---------------------------------------------------------------- */
.related-pages {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 3px solid var(--color-accent-bg);
}

.related-pages h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.related-pages h2::after {
  display: none;
}

.related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  list-style: none;
}

.related-item {
  padding: var(--space-md);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  transition: all var(--transition-base);
}

.related-item:hover {
  border-left-color: var(--color-pink);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--color-card-shadow);
}

.related-item a {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.related-item:hover a {
  color: var(--color-accent);
}

.related-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   9. List Page (list.html)
   ---------------------------------------------------------------- */
.list-page {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
}

.list-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 3px solid var(--color-accent-bg);
  position: relative;
}

.list-header h1 {
  margin-bottom: var(--space-sm);
}

.list-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

.page-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.page-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 4px solid var(--color-accent);
  transition: transform var(--transition-bounce), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--color-card-shadow);
  border-left-color: var(--color-pink);
}

.page-card h2,
.page-card h3 {
  font-size: var(--text-xl);
  margin-top: 0;
  margin-bottom: var(--space-sm);
  padding-bottom: 0;
  border-bottom: none;
}

.page-card h2::after {
  display: none;
}

.page-card h2 a,
.page-card h3 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.page-card:hover h2 a,
.page-card:hover h3 a {
  color: var(--color-accent);
}

/* 日本哲学: 時代区分ごとの見出しと目次 */
.jp-period-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.jp-period-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  padding: 0.5em 1em;
  border: 1px solid var(--era-japanese);
  border-radius: var(--radius-full);
  color: var(--era-japanese);
  font-weight: 700;
  text-decoration: none;
}

.jp-period-nav a:hover {
  background-color: var(--era-japanese);
  color: #fff;
}

.jp-period-nav small {
  font-size: var(--text-xs);
  font-weight: 400;
}

.jp-period-heading {
  color: var(--era-japanese);
  border-bottom-color: var(--era-japanese);
  scroll-margin-top: 80px;
}

.card-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-era-period {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-sm);
}

/* Tag/badge styling for card items */
.card-eras,
.card-categories,
.card-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.card-eras a,
.card-categories a,
.card-tags a {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.65em;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-tag-text);
  background-color: var(--color-tag-bg);
  border: 1px solid var(--color-tag-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-eras a:hover,
.card-categories a:hover,
.card-tags a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px var(--color-card-shadow);
}

.card-eras a {
  color: var(--era-ancient);
  border-color: var(--era-ancient);
  background-color: transparent;
}

.card-eras a:hover {
  background-color: var(--era-ancient);
  color: #fff;
}

.card-categories a {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.card-categories a:hover {
  opacity: 0.85;
  color: #fff;
  border-color: transparent;
}

/* ----------------------------------------------------------------
   10. Home Page (index.html)
   ---------------------------------------------------------------- */
.home-hero {
  position: relative;
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #fda085 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  margin-bottom: var(--space-2xl);
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  /* Extend full width */
  margin-left: calc(-1 * var(--space-md));
  margin-right: calc(-1 * var(--space-md));
  margin-top: calc(-1 * var(--space-xl));
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-bg);
  border-radius: 50% 50% 0 0;
}

.home-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 本文用の p { text-align: justify } を打ち消して、ヒーロー内は中央揃えにする */
.home-hero p {
  text-align: center;
}

.hero-tagline {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
  position: relative;
  z-index: 1;
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.home-sections {
  margin-bottom: var(--space-3xl);
}

.home-sections h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  margin-top: 0;
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-accent-bg);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.section-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-pink));
  transition: height var(--transition-base);
}

/* Each era section card gets a distinct color */
.section-card:nth-child(1)::before { background: linear-gradient(90deg, var(--era-ancient), #a29bfe); }
.section-card:nth-child(2)::before { background: linear-gradient(90deg, var(--era-medieval), #fab1a0); }
.section-card:nth-child(3)::before { background: linear-gradient(90deg, var(--era-early-modern), #55efc4); }
.section-card:nth-child(4)::before { background: linear-gradient(90deg, var(--era-enlightenment), #ffeaa7); }
.section-card:nth-child(5)::before { background: linear-gradient(90deg, var(--era-modern), #74b9ff); }
.section-card:nth-child(6)::before { background: linear-gradient(90deg, var(--era-contemporary), #fd79a8); }
.section-card:nth-child(7)::before { background: linear-gradient(90deg, var(--era-japanese), #e17055); }

.section-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--color-card-shadow);
  color: inherit;
}

.section-card:hover::before {
  height: 6px;
}

.section-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  margin-top: 0;
}

.section-card:hover h3 {
  color: var(--color-accent);
}

.section-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-recent {
  margin-bottom: var(--space-2xl);
}

.home-recent h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  margin-top: 0;
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-accent-bg);
}

.recent-articles {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.recent-card {
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  transition: all var(--transition-base);
}

.recent-card:hover {
  border-left-color: var(--color-pink);
  transform: translateX(4px);
  box-shadow: 0 4px 16px var(--color-card-shadow);
}

.recent-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.recent-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.recent-card:hover h3 a {
  color: var(--color-accent);
}

.recent-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.recent-card time {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------------
   10a. Columns Section (columns/list.html)
   ---------------------------------------------------------------- */
:root {
  --color-column: #00cec9;
  --color-column-light: #55efc4;
  --color-column-bg: rgba(0, 206, 201, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-column: #55efc4;
    --color-column-light: #00cec9;
    --color-column-bg: rgba(85, 239, 196, 0.1);
  }
}

.columns-page {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
}

.columns-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 3px solid var(--color-column-bg);
}

.columns-header h1 {
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--color-column), var(--color-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.columns-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 700px;
  line-height: var(--leading-relaxed);
}

/* Featured card */
.column-featured {
  display: block;
  position: relative;
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, #00cec9, #0984e3);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
}

.column-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.column-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 206, 201, 0.3);
  color: #fff;
}

.column-featured-inner {
  position: relative;
  z-index: 1;
}

.column-featured h2 {
  font-size: var(--text-2xl);
  color: #fff;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: 0;
  border-bottom: none;
}

.column-featured h2::after {
  display: none;
}

.column-featured-description {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
  text-align: left;
}

.column-featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

.column-featured-meta time {
  font-family: var(--font-heading);
}

/* Topic badge */
.column-topic-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  letter-spacing: 0.02em;
}

/* Column tags */
.column-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.column-tag {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.15);
  color: inherit;
}

/* Grid cards */
.columns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.column-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-top: 4px solid var(--color-column);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.column-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--color-card-shadow);
  border-top-color: var(--color-column-light);
  color: inherit;
}

.column-card .column-topic-badge {
  background-color: var(--color-column-bg);
  color: var(--color-column);
  align-self: flex-start;
  margin-bottom: var(--space-sm);
}

.column-card h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.column-card:hover h3 {
  color: var(--color-column);
}

.column-card-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  text-align: left;
}

.column-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.column-card-meta time {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.column-card-meta .column-tag {
  background-color: var(--color-column-bg);
  color: var(--color-column);
}

/* ----------------------------------------------------------------
   10b. Home — Columns Section
   ---------------------------------------------------------------- */
.home-columns {
  margin-bottom: var(--space-3xl);
}

.home-columns h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  margin-top: 0;
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-column-bg);
}

.home-columns h2::after {
  background: linear-gradient(135deg, var(--color-column), var(--color-blue));
}

.home-columns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.home-column-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-top: 4px solid var(--color-column);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
}

.home-column-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--color-card-shadow);
  color: inherit;
}

.home-column-card .column-topic-badge {
  align-self: flex-start;
  background-color: var(--color-column-bg);
  color: var(--color-column);
  margin-bottom: var(--space-sm);
}

.home-column-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.home-column-card:hover h3 {
  color: var(--color-column);
}

.home-column-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.home-column-card time {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: auto;
}

.home-columns-more {
  text-align: center;
  margin-top: var(--space-xl);
}

.home-columns-more a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-column);
  padding: var(--space-sm) var(--space-xl);
  border: 2px solid var(--color-column);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.home-columns-more a:hover {
  background-color: var(--color-column);
  color: #fff;
}

/* ----------------------------------------------------------------
   11. Footer (footer.html)
   ---------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(135deg, #2d3250, #424874);
  color: var(--color-footer-text);
  padding: var(--space-2xl) var(--space-md) 0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--hs-brand), var(--hs-brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--color-footer-text);
  max-width: 320px;
  line-height: var(--leading-normal);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-footer-text);
  opacity: 0.6;
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.footer-links a:hover {
  color: #fff;
}

.footer-nav-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav-section a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.footer-nav-section a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space-xl);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-footer-text);
  opacity: 0.7;
}

/* ----------------------------------------------------------------
   12. Thinkers List (thinkers/list.html)
   ---------------------------------------------------------------- */
.thinkers-list {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
}

.thinkers-era-group {
  margin-bottom: var(--space-3xl);
}

.thinkers-era-group h2 {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-accent);
  margin-top: 0;
}

.thinkers-era-group h2::after {
  display: none;
}

.thinkers-period-heading {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--era-japanese);
  margin: var(--space-xl) 0 var(--space-md);
  padding-left: var(--space-sm);
  border-left: 4px solid var(--era-japanese);
}

.thinker-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.thinker-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 4px solid var(--color-accent);
  transition: all var(--transition-bounce);
}

.thinker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--color-card-shadow);
  border-left-color: var(--color-pink);
}

.thinker-card h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.thinker-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.thinker-card:hover h3 a {
  color: var(--color-accent);
}

.thinker-period {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.thinker-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   13. Taxonomy Terms Page (taxonomy/terms.html)
   ---------------------------------------------------------------- */
.taxonomy-terms-page {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
}

.terms-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
  padding-bottom: var(--space-xl);
  border-bottom: 3px solid var(--color-accent-bg);
}

.terms-header h1 {
  margin-bottom: var(--space-sm);
}

.terms-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.terms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.term-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  border-left: 3px solid var(--color-accent);
}

.term-card:hover {
  border-left-color: var(--color-pink);
  background-color: var(--color-accent-bg);
  color: inherit;
  transform: translateX(4px);
}

.term-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.term-card h2::after {
  display: none;
}

.term-card:hover h2 {
  color: var(--color-accent);
}

.term-count {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  padding: 0.25em 0.65em;
  border-radius: var(--radius-full);
  min-width: 2em;
  text-align: center;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   14. Taxonomy Era & School Pages
   ---------------------------------------------------------------- */
.taxonomy-page {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
}

.taxonomy-header {
  text-align: center;
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-2xl);
  border-bottom: 3px solid var(--color-accent-bg);
}

.taxonomy-header h1 {
  margin-bottom: var(--space-sm);
}

.taxonomy-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.taxonomy-pages {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* era-page specific */
.era-page .page-card.era-card {
  border-left: 4px solid var(--era-ancient);
}

/* school-page specific */
.school-page .page-card.school-card {
  border-left: 4px solid var(--color-green);
  background: linear-gradient(135deg, var(--color-card-bg), rgba(0, 184, 148, 0.03));
}

/* コラムの名言（余白型プルクオート。layouts/shortcodes/pullquote.html） */
.pull-quote {
  margin: var(--space-3xl) auto;
  max-width: 34em;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
}

.pull-quote::before {
  content: "\201C";
  display: block;
  height: 0.55em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.45;
}

.pull-quote blockquote {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-style: normal;
}

.pull-quote blockquote::before {
  content: none;
}

.pull-quote blockquote p {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-wrap: pretty;
  word-break: auto-phrase;
}

.pull-quote figcaption {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pull-quote figcaption::before {
  content: "\2014\00a0";
}

.pull-quote figcaption a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.pull-quote figcaption a:hover {
  text-decoration: underline;
}

.pull-quote cite {
  margin-left: 0.4em;
  font-style: normal;
}

/* ----------------------------------------------------------------
   15. Blockquote Styling
   ---------------------------------------------------------------- */
blockquote {
  position: relative;
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, #f8f7ff, #fff0f6);
  border-left: 4px solid;
  border-image: linear-gradient(180deg, var(--color-accent), var(--color-pink)) 1;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

@media (prefers-color-scheme: dark) {
  blockquote {
    background: linear-gradient(135deg, #252742, #2a2040);
  }
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.1em;
  left: 0.15em;
  font-size: 3em;
  color: var(--color-accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

blockquote p {
  text-align: left;
  position: relative;
  z-index: 1;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite,
blockquote footer {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-muted);
}

blockquote cite::before,
blockquote footer::before {
  content: "\2014\00a0";
}

blockquote blockquote {
  margin: var(--space-md) 0;
  border-left-width: 3px;
  opacity: 0.9;
}

/* ----------------------------------------------------------------
   16. Table Styles
   ---------------------------------------------------------------- */
.article-main table,
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-main thead,
.article-content thead {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #fff;
}

.article-main th,
.article-content th {
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.article-main td,
.article-content td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}

.article-main tbody tr:nth-child(even),
.article-content tbody tr:nth-child(even) {
  background-color: var(--color-table-stripe);
}

.article-main tbody tr:hover,
.article-content tbody tr:hover {
  background-color: var(--color-accent-bg);
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-xl) 0;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.table-wrapper table {
  margin: 0;
}

/* ----------------------------------------------------------------
   17. Code & Pre Styles
   ---------------------------------------------------------------- */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.2em 0.5em;
  background-color: var(--color-code-bg);
  color: var(--color-code-text);
  border-radius: var(--radius-sm);
  word-break: break-word;
}

pre {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.6;
}

pre code {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  font-size: var(--text-sm);
  word-break: normal;
}

/* Footnotes (Hugo-generated) */
.footnotes {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.footnotes ol {
  list-style: decimal;
  padding-left: var(--space-xl);
}

.footnotes li {
  margin-bottom: var(--space-sm);
}

.footnote-ref {
  font-size: 0.75em;
  vertical-align: super;
  line-height: 0;
}

/* ----------------------------------------------------------------
   17b. About Page
   ---------------------------------------------------------------- */
.about-page {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.about-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 3px solid var(--color-accent-bg);
}

.about-logo {
  width: 80px;
  height: 80px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
}

.about-header h1 {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-sites {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.about-site-card {
  display: block;
  padding: var(--space-lg);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.about-site-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--color-card-shadow);
  border-left-color: var(--color-pink);
  color: inherit;
}

.about-site-card h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.about-site-card:hover h3 {
  color: var(--color-accent);
}

.about-site-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
  text-align: left;
}

@media (min-width: 768px) {
  .about-sites {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----------------------------------------------------------------
   18. Utility Classes
   ---------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 999;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ----------------------------------------------------------------
   19. Responsive: Tablet (768px+)
   ---------------------------------------------------------------- */
@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  .main-content {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }

  /* Header: hide hamburger, show inline nav */
  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    position: static;
    width: auto;
    height: auto;  /* スマホ用の全画面の高さを消す。残ると透明なメニューが本文の右上を覆い、リンクが押せなくなる */
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
    background-color: transparent;
    padding: 0;
    overflow: visible;
  }

  .nav-list li {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), background-color var(--transition-fast);
  }

  .nav-list a:hover {
    color: var(--color-accent);
    background-color: var(--color-accent-bg);
  }

  .nav-list a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    font-weight: 700;
  }

  /* Article header */
  .article-header h1 {
    font-size: var(--text-4xl);
  }

  /* Section grid: 2 columns */
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  /* Page cards: 2 columns */
  .page-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Taxonomy pages: 2 columns */
  .taxonomy-pages {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Terms grid: 2 columns */
  .terms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Thinker cards: 2 columns */
  .thinker-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .home-columns-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .column-featured h2 {
    font-size: var(--text-3xl);
  }

  /* Hero */
  .home-hero {
    padding: var(--space-4xl) var(--space-xl);
  }

  .home-hero h1 {
    font-size: var(--text-5xl);
  }

  /* Logo: larger on desktop */
  .site-logo-mark {
    width: 32px;
    height: 32px;
  }

  .site-title-en {
    font-size: var(--text-base);
  }

  /* Footer: 3-column grid */
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ----------------------------------------------------------------
   20. Responsive: Desktop (1024px+)
   ---------------------------------------------------------------- */
@media (min-width: 1024px) {
  /* Two-column article layout with sidebar */
  .article-content {
    max-width: calc(var(--content-max-width) + var(--sidebar-width) + var(--space-3xl));
  }

  .article-body.two-column {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-3xl);
  }

  .article-body.two-column.has-left {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    grid-template-areas: "main right" "left right";
    align-items: start;
  }

  .article-body.has-left .sidebar {
    align-self: stretch;
  }

  .article-body.has-left .sidebar-left {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
  }

  /* Sticky TOC in sidebar */
  .toc {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    max-height: calc(100vh - var(--header-height) - var(--space-2xl));
    overflow-y: auto;
  }

  /* Section grid: 3 columns */
  .section-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Related: 3 columns */
  .related-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Terms grid: 3 columns */
  .terms-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Thinker cards: 3 columns */
  .thinker-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Columns grid: 3 columns */
  .columns-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .column-featured {
    padding: var(--space-3xl) var(--space-2xl);
  }

  .column-featured h2 {
    font-size: var(--text-4xl);
  }
}

/* ----------------------------------------------------------------
   21. Print Styles
   ---------------------------------------------------------------- */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.6;
  }

  .site-header,
  .site-footer,
  .nav-toggle,
  .nav-list,
  .sidebar,
  .toc,
  .breadcrumb,
  .related-pages,
  .skip-link {
    display: none !important;
  }

  .article-content,
  .article-main {
    max-width: 100%;
    padding: 0;
  }

  .article-body.two-column {
    display: block;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  blockquote, table, pre {
    page-break-inside: avoid;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }
}

/* ===== 名著一覧（books） ===== */
.books-page {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
}

.books-intro {
  max-width: 780px;
  margin-bottom: var(--space-2xl);
  color: var(--color-text-secondary);
}

.books-intro ul {
  margin-bottom: var(--space-lg);
}

.books-level-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  padding: 0.25em 0.8em;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
}

.books-level-badge.level-beginner { background-color: #00b894; }
.books-level-badge.level-intermediate { background-color: #0984e3; }
.books-level-badge.level-advanced { background-color: var(--color-accent); }
.books-level-badge.level-jp { background-color: var(--era-japanese); }

/* 難易度 × 分野の全体マップ（狭い画面では表だけ横スクロール） */
.books-matrix-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-3xl);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.books-matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: 0;
}

.books-matrix th,
.books-matrix td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
  text-align: left;
}

.books-matrix thead th {
  font-family: var(--font-heading);
  background-color: var(--color-bg-secondary);
  white-space: nowrap;
}

.books-matrix tbody tr:last-child th,
.books-matrix tbody tr:last-child td {
  border-bottom: none;
}

.books-matrix td a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.6;
  padding: 0.15em 0;
}

.books-matrix td a::before {
  content: "『";
}

.books-matrix td a::after {
  content: "』";
}

.books-matrix td a:hover {
  color: var(--color-accent);
}

/* 西洋の名著／日本の名著の切り替え */
.books-region-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-xl);
}

.books-region-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  padding: 0.5em 1.1em;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.books-region-nav a:last-child {
  border-color: var(--era-japanese);
  color: var(--era-japanese);
}

.books-region-nav a:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.books-region-nav a:last-child:hover {
  background-color: var(--era-japanese);
  color: #fff;
}

.books-region-nav small {
  font-size: var(--text-xs);
  font-weight: 400;
}

.books-region {
  font-size: var(--text-2xl);
  margin: var(--space-3xl) 0 var(--space-lg);
  scroll-margin-top: 80px;
}

.books-region-jp {
  color: var(--era-japanese);
}

.books-region-lead {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.books-region-jp ~ .books-level h2 {
  border-bottom-color: var(--era-japanese);
}

.books-level {
  margin-bottom: var(--space-3xl);
  scroll-margin-top: 80px;
}

.books-level h2 {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: 0;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-accent);
}

.books-level h2::after {
  display: none;
}

.books-level h2 small {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.books-domain {
  font-size: var(--text-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.book-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.book-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-bounce);
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--color-card-shadow);
}

.book-card-link {
  display: block;
  height: 100%;
  padding: var(--space-lg);
  color: var(--color-text);
  text-decoration: none;
}

.book-card-author {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.book-card h4 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin: 0 0 var(--space-xs);
}

.book-card-year {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.book-card:hover h4 {
  color: var(--color-accent);
}

.book-questions {
  margin: 0;
  padding-left: 1.1em;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* 詳細ページ */
.book-breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.book-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm) var(--space-lg);
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-md);
}

.book-info div {
  display: flex;
  gap: var(--space-sm);
  align-items: baseline;
}

.book-info dt {
  flex: none;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
}

.book-info dd {
  margin: 0;
  font-weight: 600;
}

.book-key-questions {
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-accent);
  background-color: var(--color-accent-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.book-key-questions p {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 var(--space-xs);
}

.book-key-questions ul {
  margin: 0;
  padding-left: 1.1em;
}

.book-next {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.book-next h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-md);
}

.book-next h2:first-child {
  margin-top: 0;
}

@media (min-width: 768px) {
  .book-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-info {
    grid-template-columns: repeat(4, auto);
  }
}

@media (min-width: 1024px) {
  .book-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Amazonアソシエイト（関連書籍・PR） ===== */
.amazon-picks {
  margin: var(--space-2xl) 0;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-card-bg);
}

.amazon-picks-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-md);
}

.amazon-picks-label span,
.book-amazon span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0 0.4em;
  line-height: 1.6;
}

.amazon-picks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.amazon-picks li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
  margin: 0;
}

.amazon-picks-item {
  flex: 1 1 260px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-secondary);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}

.amazon-picks-item small {
  font-weight: 500;
  color: var(--color-text-secondary);
}

.amazon-picks-cta {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.amazon-picks-item:hover .amazon-picks-cta {
  text-decoration: underline;
}

.amazon-picks-guide {
  font-size: var(--text-xs);
  font-weight: 600;
}

.amazon-picks-note {
  margin: var(--space-md) 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.book-amazon {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
}

.book-amazon a {
  display: inline-block;
  padding: 0.55em 1.2em;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.book-amazon a:hover {
  opacity: 0.9;
}

.affiliate-disclosure {
  font-size: var(--text-xs);
  color: var(--color-footer-text);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.article-main .amazon-picks-item {
  color: var(--color-text);
  text-decoration: none;
}

.affiliate-disclosure a {
  color: inherit;
  text-decoration: underline;
}

/* ===== Instagram（@hs_philosophy）の告知 ===== */
.ig-icon {
  display: inline-block;
  vertical-align: -0.2em;
  flex: none;
}

.ig-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.10), rgba(253, 121, 168, 0.10));
  border: 1px solid var(--color-border-light);
}

.ig-cta-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(45deg, #f9a825, #e91e63 45%, #6c5ce7);
}

.ig-cta-body {
  flex: 1 1 280px;
  min-width: 0;
}

.ig-cta-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
}

.ig-cta-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.ig-cta-button,
.article-main .ig-cta-button {
  flex: none;
  display: inline-block;
  padding: 0.6em 1.3em;
  border-radius: var(--radius-full);
  background: linear-gradient(45deg, #e91e63, #6c5ce7);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ig-cta-button:hover {
  opacity: 0.9;
}

.home-hero + .ig-cta,
.books-page > .ig-cta,
.columns-page > .ig-cta {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ヘッダー: PCではアイコンだけ、スマホのメニューでは文字も出す */
.nav-instagram a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-instagram-note {
  font-size: var(--text-xs);
  color: var(--color-footer-text);
  opacity: 0.7;
  margin: 0;
}

@media (min-width: 768px) {
  .nav-instagram span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ===== トップページ（コラム中心） ===== */
.home-columns-latest .column-featured {
  margin-bottom: var(--space-lg);
}

.home-topic-nav {
  margin-bottom: var(--space-2xl);
}

.home-topic-nav-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.home-topic-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.home-topic-nav a {
  display: inline-block;
  padding: 0.4em 1em;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-card-bg);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.home-topic-nav a:hover {
  border-color: var(--color-column);
  color: var(--color-column);
}

.home-topic {
  scroll-margin-top: 80px;
  margin-bottom: var(--space-2xl);
}

.home-topic h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.home-topic h2 small {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.home-columns-more {
  margin-bottom: var(--space-3xl);
}

.home-books {
  margin-bottom: var(--space-3xl);
}

.home-books h2 {
  font-size: var(--text-2xl);
  margin-top: 0;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-accent-bg);
}

.home-books > p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.home-books-levels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.home-books-level {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background-color: var(--color-card-bg);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
}

.home-books-level:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--color-card-shadow);
}

@media (min-width: 768px) {
  .home-books-levels {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-description {
  word-break: auto-phrase;
}

/* 記事ページの3列（左サイドバー・本文・右サイドバー）。1024px の2列指定より後に置く */
@media (min-width: 1280px) {
  .main-content:has(.has-left) {
    max-width: 1440px;
  }

  .article-content:has(.has-left) {
    max-width: calc(var(--content-max-width) + var(--sidebar-width) + var(--sidebar-left-width) + var(--space-2xl) * 2);
  }

  .article-body.two-column.has-left {
    grid-template-columns: var(--sidebar-left-width) minmax(0, 1fr) var(--sidebar-width);
    grid-template-areas: "left main right";
    gap: var(--space-2xl);
  }

  .article-body.has-left .sidebar-left {
    display: flex;
    align-self: stretch;
  }

  .sidebar-left .side-sticky {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
  }
}

/* 404ページ */
.not-found-links {
  display: grid;
  gap: var(--space-sm);
  max-width: 32em;
  margin: var(--space-xl) auto;
  padding: 0;
  list-style: none;
}

.not-found-links li {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background-color: var(--color-card-bg);
  font-weight: 700;
}

/* 記事冒頭の「この記事のポイント」（layouts/partials/key-points.html） */
.key-points {
  margin: 0 0 var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  background-color: var(--color-accent-bg);
}

.key-points-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

.article-main .key-points ul {
  margin: 0;
  padding-left: 1.2em;
}

.article-main .key-points li {
  margin-bottom: var(--space-xs);
  font-weight: 600;
  line-height: 1.7;
}

.article-main .key-points li:last-child {
  margin-bottom: 0;
}

/* トップ: AI時代にこそ哲学を学ぶ理由（ヒーロー直下） */
.sp-only {
  display: inline;
}

.home-why {
  position: relative;
  max-width: 820px;
  margin: 0 auto var(--space-3xl);
  padding: var(--space-2xl) var(--space-lg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(118, 75, 162, 0.08) 0%, transparent 45%),
    var(--color-card-bg);
  box-shadow: 0 10px 40px var(--color-card-shadow);
}

.home-why-eyebrow {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.home-why h2 {
  margin: 0 0 var(--space-lg);
  padding: 0;
  border: none;
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1.4;
  background: linear-gradient(135deg, #667eea, #764ba2 60%, #f5576c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-why h2::after {
  display: none;
}

.home-why-body p {
  margin: 0 0 var(--space-md);
  text-align: left;
  font-size: var(--text-base);
  line-height: 2;
  color: var(--color-text);
  text-wrap: pretty;
  word-break: auto-phrase;
}

.home-why-body strong {
  background: linear-gradient(transparent 62%, rgba(240, 147, 251, 0.35) 62%);
}

.home-why-body .home-why-conclusion {
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.8;
  color: var(--color-accent);
}

.home-why-links {
  margin-top: var(--space-xl);
}

.home-why-links p {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.home-why-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-why-links a {
  display: inline-block;
  padding: 0.45em 1em;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.home-why-links a:hover {
  background-color: var(--color-accent);
  color: #fff;
}

@media (min-width: 768px) {
  .sp-only {
    display: none;
  }

  .home-why {
    padding: var(--space-3xl) var(--space-3xl);
  }

  .home-why h2 {
    font-size: var(--text-3xl);
  }

  .home-why-body p {
    font-size: var(--text-lg);
  }
}

/* アイキャッチ画像（layouts/partials/card-thumb.html・article-eyecatch.html） */
.home-column-card,
.column-card {
  overflow: hidden;
}

.home-column-card .card-thumb,
.column-card .card-thumb {
  display: block;
  width: calc(100% + var(--space-lg) * 2);
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
  background-color: #1e1b3a;
}

.column-featured.has-image {
  background:
    linear-gradient(90deg, rgba(20, 16, 48, 0.88) 0%, rgba(20, 16, 48, 0.6) 55%, rgba(20, 16, 48, 0.15) 100%),
    var(--featured-image) center / cover no-repeat;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}

.column-featured.has-image .column-featured-inner {
  max-width: 640px;
}

.article-eyecatch {
  max-width: var(--content-max-width);
  margin: 0 auto var(--space-2xl);
}

.article-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px var(--color-card-shadow);
  background-color: #1e1b3a;
}

.article-eyecatch figcaption {
  margin-top: var(--space-xs);
  text-align: right;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* 哲学者の肖像（layouts/partials/portrait.html・thinker-avatar.html） */
.article-portrait {
  margin: 0 0 var(--space-lg);
  max-width: 220px;
}

.article-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px var(--color-card-shadow);
  background-color: var(--color-bg-secondary);
}

.article-portrait figcaption {
  margin-top: var(--space-xs);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  word-break: break-all;
}

.article-portrait figcaption a {
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .article-header.has-portrait {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: var(--space-2xl);
    align-items: start;
  }

  .article-header.has-portrait .article-portrait {
    margin: 0;
  }
}

.thinker-avatar {
  display: block;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background-color: var(--color-accent-bg);
  border: 2px solid var(--color-card-bg);
  box-shadow: 0 2px 10px var(--color-card-shadow);
}

.thinker-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-accent);
}

.thinker-card .thinker-avatar,
.thinker-page-card .thinker-avatar {
  float: left;
  margin: 0 var(--space-md) var(--space-xs) 0;
}

.side-thinkers a {
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.side-thinkers .thinker-avatar {
  width: 36px;
  height: 36px;
  font-size: var(--text-sm);
  box-shadow: none;
}

.side-thinker-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 名著の表紙カード（layouts/partials/book-cover.html） */
.book-cover {
  --cover-a: #4c3fa8;
  --cover-b: #2a1f66;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  box-sizing: border-box;
  padding: 0.9em 0.8em 0.9em 1.3em;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0, rgba(255, 255, 255, 0.12) 4%, transparent 9%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(160deg, var(--cover-a), var(--cover-b));
  color: #fff;
  box-shadow: 0 6px 18px rgba(20, 16, 48, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.book-cover.domain-ethics { --cover-a: #6c5ce7; --cover-b: #2d2370; }
.book-cover.domain-society { --cover-a: #e17055; --cover-b: #6e2a1d; }
.book-cover.domain-knowledge { --cover-a: #0984e3; --cover-b: #0b3561; }
.book-cover.domain-being { --cover-a: #00a383; --cover-b: #0d4a3d; }

/* 日本の名著: 背に朱の帯 */
.book-cover.is-jp::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9%;
  width: 4%;
  background: var(--era-japanese);
  opacity: 0.9;
}

.book-cover-level {
  align-self: flex-start;
  padding: 0.1em 0.6em;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.book-cover-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-weight: 700;
  line-height: 1.3;
  word-break: auto-phrase;
  text-wrap: balance;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.book-cover-author {
  font-size: 0.6em;
  opacity: 0.85;
}

.book-cover-sm {
  width: 64px;
  font-size: 11px;
}

.book-cover-sm .book-cover-title {
  font-size: 1em;
}

.book-cover-sm .book-cover-level,
.book-cover-sm .book-cover-author {
  display: none;
}

.book-cover-lg {
  width: 150px;
  font-size: 17px;
}

.book-cover-lg .book-cover-title {
  font-size: 1.2em;
}

/* 名著カード: 表紙の横に著者・書名・成立年、「提起した問い」は下に全幅で */
.book-card-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: var(--space-md);
  align-content: start;
}

.book-card-link .book-cover-sm {
  grid-row: 1 / span 3;
  align-self: start;
}

.book-card-body {
  display: contents;
}

.book-card-author,
.book-card h4,
.book-card-year {
  grid-column: 2;
}

.book-card .book-questions {
  grid-column: 1 / -1;
  margin-top: var(--space-md);
}

.book-hero {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.book-hero-body {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .book-cover-lg {
    width: 104px;
    font-size: 13px;
  }

  .book-hero {
    gap: var(--space-md);
  }
}

/* 記事内の図解（layouts/shortcodes/diagram.html） */
.article-diagram {
  margin: var(--space-2xl) 0;
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background-color: #fff;
}

.article-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.article-diagram figcaption {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: var(--text-sm);
  color: #5a5a72;
}

/* 哲学年表（layouts/timeline/list.html） */
.timeline-page {
  max-width: var(--wide-max-width);
  margin: 0 auto;
}

.timeline-legend {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 700;
}

.timeline-legend span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: -1px;
}

.tl-west::before { background: var(--color-accent); }
.tl-jp::before { background: var(--era-japanese); }

.timeline {
  position: relative;
}

.tl-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border-light);
}

.tl-century {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--color-text-secondary);
}

.tl-lane {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  min-height: 1px;
}

.tl-person {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tl-lane-jp .tl-person {
  border-left-color: var(--era-japanese);
}

.tl-person:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-card-shadow);
  color: var(--color-text);
}

.tl-person .thinker-avatar {
  width: 36px;
  height: 36px;
  font-size: var(--text-sm);
  box-shadow: none;
}

.tl-person span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.tl-person strong {
  font-size: var(--text-sm);
}

.tl-person small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .tl-row {
    grid-template-columns: 120px 1fr 1fr;
    gap: var(--space-lg);
  }

  .tl-lane-jp {
    padding-left: var(--space-lg);
    border-left: 2px dashed var(--color-border-light);
  }
}

/* 哲学者の影響関係マップ（layouts/map/list.html） */
.map-page {
  max-width: var(--wide-max-width);
  margin: 0 auto;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 700;
}

.map-legend-item::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--dot, #999);
  vertical-align: -1px;
}

.map-stats {
  margin-left: auto;
  font-weight: 500;
  color: var(--color-text-muted);
}

.thinker-map {
  width: 100%;
  height: 72vh;
  min-height: 480px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(108, 92, 231, 0.06), transparent 50%),
    var(--color-card-bg);
  overflow: hidden;
  touch-action: none;
}

.thinker-map svg {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.map-links line {
  stroke: #a29bfe;
  stroke-opacity: 0.35;
  stroke-width: 1;
}

.map-links line.is-on {
  stroke: #6c5ce7;
  stroke-opacity: 0.9;
  stroke-width: 2;
}

.map-links line.is-dim {
  stroke-opacity: 0.06;
}

.map-node circle {
  stroke: #fff;
  stroke-width: 1.5;
}

.map-node text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  fill: var(--color-text);
  paint-order: stroke;
  stroke: var(--color-card-bg);
  stroke-width: 3px;
  pointer-events: none;
}

.map-node text.is-minor {
  font-size: 9px;
  font-weight: 500;
}

.map-node.is-dim {
  opacity: 0.18;
}

/* 年表・影響関係マップへの入口（layouts/partials/explore-links.html） */
.explore-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: 0 0 var(--space-xl);
}

.explore-links a {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2d1f5e, #5b2a6e);
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
}

.explore-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 31, 94, 0.35);
  color: #fff;
}

.explore-links strong {
  font-size: var(--text-lg);
}

.explore-links span {
  font-size: var(--text-sm);
  opacity: 0.8;
}
