
@import "./base.css";
@import "./common.css";
@import "./sidebar.css";
@import "./table.css";

.section.card p,
.section.card li,
.section.card td,
.section.card dt,
.section.card dd,
.section.card strong {
  color: var(--text);
}
.section.card > p {
  max-width: none;
}
.section.card > p,
.section.card li {
  white-space: normal;
  overflow-wrap: break-word;
}

html.dark .lead {
  color: var(--text);
}

html.dark .breadcrumb {
  color: var(--text);
}

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

/* Dark mode: hero card & card background overrides */
html.dark .hero-card {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.98), rgba(30, 38, 52, 0.96));
  border-color: #30363d;
}

html.dark .hero-card::before {
  background:
    linear-gradient(135deg, rgba(30, 40, 60, 0.6), rgba(22, 27, 34, 0.3)),
    linear-gradient(135deg, var(--theme-soft), rgba(22, 27, 34, 0.3));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.dark .card {
  background: var(--surface);
  border-color: var(--border);
}

html.dark .section.card {
  background: var(--surface);
}

html.dark body.theme-culture   { --theme-soft: rgba(215, 38, 61, 0.15); }
html.dark body.theme-life      { --theme-soft: rgba(15, 118, 110, 0.15); }
html.dark body.theme-work      { --theme-soft: rgba(29, 78, 216, 0.15); }
html.dark body.theme-education { --theme-soft: rgba(124, 58, 237, 0.15); }

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: #eef4ff;
  border-color: #d9e7ff;
  transform: translateY(-1px);
}

html.dark .theme-toggle-btn:hover {
  background: rgba(30, 37, 48, 0.95);
  border-color: #444c5a;
}

body.theme-culture {
  --theme-primary: #d7263d;
  --theme-secondary: #9f1239;
  --theme-soft: #fff1f2;
  --theme-glow: rgba(215, 38, 61, 0.2);
}

body.theme-life {
  --theme-primary: #0f766e;
  --theme-secondary: #0f5f5a;
  --theme-soft: #ecfdf5;
  --theme-glow: rgba(15, 118, 110, 0.2);
}

body.theme-work {
  --theme-primary: #1d4ed8;
  --theme-secondary: #1e3a8a;
  --theme-soft: #eff6ff;
  --theme-glow: rgba(29, 78, 216, 0.2);
}

body.theme-education {
  --theme-primary: #7c3aed;
  --theme-secondary: #5b21b6;
  --theme-soft: #f5f3ff;
  --theme-glow: rgba(124, 58, 237, 0.2);
}

.hero {
  padding: 56px 0 28px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: min(34%, 220px);
  height: 120px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.38)),
    linear-gradient(135deg, var(--theme-soft), rgba(255, 255, 255, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--theme-glow), transparent 68%);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--theme-soft);
  color: var(--theme-primary);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(215, 38, 61, 0.08);
}

body:not([class*="theme-"]) .badge::before {
  content: "🗂️";
}

body.theme-culture .badge::before {
  content: "🏮";
}

body.theme-life .badge::before {
  content: "🌿";
}

body.theme-work .badge::before {
  content: "💼";
}

body.theme-education .badge::before {
  content: "📘";
}

.lead {
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--text);
}

.author-section .lead {
  max-width: none;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.stat-pill {
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-pill strong {
  display: block;
  font-size: 1.15rem;
  color: var(--theme-secondary);
}

.magazine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.lead-story {
  min-height: 100%;
}

.homepage-hero {
  max-width: none;
}

.homepage-hero::before {
  content: none;
}

.hero-summary {
  max-width: 64ch;
  margin-top: 18px;
}

.hero-summary ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-summary .note {
  margin-top: 12px;
}

.hero-points {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  max-width: 60ch;
  color: var(--text);
}

.hero-points li {
  margin-bottom: 2px;
  font-weight: 600;
}

.editorial-panel {
  justify-content: flex-start;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
  border: 1px solid var(--border);
}

.mini-item strong {
  display: block;
  color: var(--theme-secondary);
}

.mini-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--muted);
}

.category-card,
.feature-card {
  gap: 14px;
}

.card-thumb {
  position: relative;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb::after {
  content: none;
}

/* Compact article list for index pages */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.article-list li:first-child {
  border-top: none;
}

.article-list a.article-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1a6b9a);
  border: 1px solid #0e5f5a;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
  transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
  cursor: pointer;
}

.article-list a.article-row:hover {
  background: linear-gradient(135deg, #0d6b64, #155b84);
  border-color: #0b4f63;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.28);
}

.article-list a.article-row:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.article-list .article-row-title {
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  min-width: 0;
}

.article-list .article-row-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.dark .article-list .article-row-desc {
  color: #cccccc;
}

html.dark .article-list a.article-row {
  color: #ffffff;
  background: linear-gradient(135deg, #1f5f8a, #194d70);
  border-color: #2f6f9a;
}

html.dark .article-list a.article-row:hover {
  background: linear-gradient(135deg, #246d9d, #1c5c86);
  border-color: #60a5fa;
}

html.dark .article-list .article-row-title {
  color: #ffffff;
}

.article-list .article-row-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 1rem;
  opacity: 0.75;
  transition: opacity 0.15s, transform 0.15s;
}

.article-list a.article-row:hover .article-row-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Culture index: card-style article tiles */
.article-card-index .article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.article-card-index .article-list a.article-row {
  position: relative;
  height: 100%;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, #102233, #13304a);
  border: 1px solid rgba(124, 197, 255, 0.28);
  box-shadow: 0 2px 8px rgba(10, 22, 35, 0.18);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  transform: none;
}

.article-card-index .article-list a.article-row:hover {
  background: linear-gradient(145deg, #14283c, #173852);
  border-color: rgba(124, 197, 255, 0.46);
  box-shadow: 0 4px 12px rgba(10, 22, 35, 0.22);
  transform: none;
}

.article-card-index .article-list .article-row-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(191, 231, 255, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.34);
  font-size: 0.82rem;
}

.article-card-index .article-list .article-row-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 30px;
}

.article-card-index .article-list .article-row-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.4;
  color: #f5fbff;
}

.article-card-index .article-list .article-row-desc {
  font-size: 0.92rem;
  color: rgba(222, 236, 248, 0.8);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.55;
}

.article-card-index .article-list .article-row-arrow {
  display: none;
}

html.dark .article-card-index .article-list a.article-row {
  background: linear-gradient(145deg, #0f1d2d, #132c43);
  border-color: rgba(125, 211, 252, 0.24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
}

html.dark .article-card-index .article-list a.article-row:hover {
  background: linear-gradient(145deg, #132339, #18324c);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .article-list a.article-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .article-list .article-row-desc {
    white-space: normal;
  }
  .article-list .article-row-arrow {
    display: none;
  }

  .article-card-index .article-list {
    grid-template-columns: 1fr;
  }
}

.card-thumb::before {
  font-size: 2.2rem;
  line-height: 1;
}

.thumb-culture {
  background: linear-gradient(135deg, #ffe4ea 0%, #ffd2dc 48%, #fff7f8 100%);
}

.thumb-culture::before {
  content: "🏮";
}

.thumb-life {
  background: linear-gradient(135deg, #dff7ef 0%, #c8f0e5 48%, #f7fffb 100%);
}

.thumb-life::before {
  content: "🌿";
}

.thumb-work {
  background: linear-gradient(135deg, #e1ecff 0%, #d2e2ff 48%, #f8fbff 100%);
}

.thumb-work::before {
  content: "💼";
}

.thumb-education {
  background: linear-gradient(135deg, #efe5ff 0%, #e4d6ff 48%, #faf7ff 100%);
}

.thumb-jp-learning {
  background: linear-gradient(135deg, #ffe9d9 0%, #ffdcbc 48%, #fff9f3 100%);
}

.thumb-jp-learning::before {
  content: "🗣️";
}

.category-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-soft) 78%, #ffffff 22%);
  border: 1px solid color-mix(in srgb, var(--theme-primary) 34%, #ffffff 66%);
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.thumb-education::before {
  content: "📘";
}

/* Per-category card accent colors */
.category-card.cat-culture {
  border-top: 4px solid #db5672;
  background: linear-gradient(180deg, #fff4f6 0%, var(--surface) 55%);
}

.category-card.cat-life {
  border-top: 4px solid #28b87a;
  background: linear-gradient(180deg, #f3fffb 0%, var(--surface) 55%);
}

.category-card.cat-work {
  border-top: 4px solid #4a7ee8;
  background: linear-gradient(180deg, #f4f8ff 0%, var(--surface) 55%);
}

.category-card.cat-education {
  border-top: 4px solid #8862d6;
  background: linear-gradient(180deg, #f8f4ff 0%, var(--surface) 55%);
}

.category-card.cat-jp-learning {
  border-top: 4px solid #e07039;
  background: linear-gradient(180deg, #fff7f3 0%, var(--surface) 55%);
}

.category-card.cat-culture   .button.secondary { background: #db5672; color: #fff; border-color: #db5672; }
.category-card.cat-life      .button.secondary { background: #28b87a; color: #fff; border-color: #28b87a; }
.category-card.cat-work      .button.secondary { background: #4a7ee8; color: #fff; border-color: #4a7ee8; }
.category-card.cat-education .button.secondary { background: #8862d6; color: #fff; border-color: #8862d6; }
.category-card.cat-jp-learning .button.secondary { background: #e07039; color: #fff; border-color: #e07039; }

.info-grid,
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.mini-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mini-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--theme-secondary);
}

.callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--theme-primary);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.callout strong {
  color: var(--theme-secondary);
}

.callout.warning {
  border-left-color: #e07b39;
  background: linear-gradient(180deg, #fff8f4 0%, #fdeee4 100%);
}

.callout.warning strong {
  color: #c05a1a;
}

.section.card strong {
  color: #d7263d;
}

html.dark .section.card strong {
  color: var(--text);
}

.investment-page .section.card {
  gap: 14px;
}

.investment-page .section.card > p,
.investment-page .section.card li {
  font-size: 1.03rem;
  line-height: 1.85;
  white-space: normal;
  overflow-wrap: break-word;
}

.investment-page .section.card > p {
  max-width: none;
}

.investment-page .key-point-card > p,
.investment-page .key-point-card .bullet-compact {
  max-width: none;
}

.investment-page .bullet-compact {
  margin-top: 0.2rem;
}

.investment-page .bullet-compact li + li {
  margin-top: 0.45rem;
}

.investment-page .reference-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.investment-page .reference-list li {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--surface) 88%, #000000 12%);
}

.investment-page .reference-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.investment-page .reference-list p {
  margin: 0;
  color: var(--muted);
}

html.dark .investment-page .reference-list li {
  background: rgba(22, 27, 34, 0.74);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.section.card.conclusion-highlight {
  background: linear-gradient(
    135deg,
    #f2f9ff,
    #edf7f2
  );
  border-color: #b9d8ef;
  border-left: 6px solid #2b6cb0;
  box-shadow: 0 14px 32px rgba(43, 108, 176, 0.16);
}

.section.card.conclusion-highlight h2 {
  color: #173b66;
}

html.dark .section.card.conclusion-highlight {
  background: linear-gradient(
    135deg,
    #1b2433,
    #1a2d28
  );
  border-color: #3f5d7a;
  border-left-color: #60a5fa;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

html.dark .section.card.conclusion-highlight h2 {
  color: #ffffff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  background: #eef4ff;
  color: var(--secondary);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.qa-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.compact-block {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 85%, var(--theme-soft) 15%);
  padding: 12px 14px;
}

.compact-block summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--theme-secondary);
  list-style: none;
}

.compact-block summary::-webkit-details-marker {
  display: none;
}

.compact-block summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  color: var(--theme-primary);
  font-weight: 800;
}

.compact-block[open] summary::before {
  content: "-";
}

.compact-block > p,
.compact-block > ul,
.compact-block > ol {
  margin-top: 10px;
}

.qa-list li {
  background: #ffffff;
  border: 1px solid #dde8dd;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #333333;
}

html.dark .qa-list li {
  background: #2f4f3f;
  border-color: rgba(144, 238, 144, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #cccccc;
}

.qa-list strong {
  color: #222222;
}

.qa-list li strong:first-child {
  color: #2b7bb9;
}

html.dark .qa-list strong {
  color: #afc8ff;
}

html.dark .qa-list li strong:first-child {
  color: #81c784;
}

/* Life FAQ: calm accordion cards */
.faq-page .faq-section {
  gap: 14px;
}

.faq-page .faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-page .faq-item {
  border: 1px solid rgba(103, 128, 150, 0.32);
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.92);
  box-shadow: none;
  overflow: hidden;
}

.faq-page .faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  cursor: pointer;
}

.faq-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-page .faq-item summary::after {
  content: ">";
  margin-left: auto;
  color: #5b7288;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.faq-page .faq-item[open] summary::after {
  transform: rotate(90deg);
}

.faq-page .faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  background: rgba(125, 211, 252, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.faq-page .faq-question {
  font-size: 1.03rem;
  line-height: 1.45;
  color: #1f2e3a;
  font-weight: 750;
}

.faq-page .faq-q-label {
  font-weight: 800;
  margin-right: 4px;
}

.faq-page .faq-answer-wrap {
  padding: 0 22px 20px;
  border-top: 1px solid rgba(103, 128, 150, 0.2);
}

.faq-page .faq-answer-block {
  margin-top: 14px;
  padding: 14px 14px 14px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid #4caf50;
  border-radius: 10px;
  background: rgba(237, 245, 238, 0.9);
}

.faq-page .faq-answer-block.answer-info {
  border-left-color: #4da3ff;
  background: rgba(235, 244, 252, 0.92);
}

.faq-page .faq-answer-block.answer-tip {
  border-left-color: #5cbf7e;
  background: rgba(236, 247, 238, 0.92);
}

.faq-page .faq-answer-block.answer-warning {
  border-left-color: #f87171;
  background: rgba(253, 237, 237, 0.92);
}

.faq-page .faq-answer-icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.faq-page .faq-answer-content {
  min-width: 0;
}

.faq-page .faq-answer-paragraph {
  margin: 0;
  color: #4f6476;
  line-height: 1.58;
}

.faq-page .faq-answer-paragraph + .faq-answer-paragraph {
  margin-top: 8px;
}

.faq-page .faq-answer-paragraph.note {
  margin-top: 10px;
  padding: 10px 10px 10px 12px;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.9);
  color: #5f4a1f;
}

.faq-page .faq-note-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 5px;
  font-weight: 800;
  color: #7a4a00;
}

.faq-page .faq-a-label {
  font-weight: 700;
  color: #32536d;
  margin-right: 4px;
}

.faq-page .faq-more {
  margin: 14px 0 0;
  display: flex;
  justify-content: flex-end;
}

.faq-page .faq-link.button.secondary {
  width: auto;
  padding: 8px 12px;
  font-size: 0.88rem;
  background: rgba(235, 245, 236, 0.8);
  border: 1px solid rgba(74, 163, 114, 0.35);
  color: #2f5e42;
  box-shadow: none;
}

.faq-page .faq-link.button.secondary:hover {
  background: rgba(230, 243, 232, 0.95);
  border-color: rgba(74, 163, 114, 0.5);
  transform: none;
}

html.dark .faq-page .faq-item {
  background: rgba(27, 35, 45, 0.92);
  border-color: rgba(125, 151, 173, 0.34);
}

html.dark .faq-page .faq-item summary::after {
  color: #9fb0c0;
}

html.dark .faq-page .faq-icon {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(125, 211, 252, 0.35);
}

html.dark .faq-page .faq-question {
  color: #eaf2f8;
}

html.dark .faq-page .faq-answer-wrap {
  border-top-color: rgba(125, 151, 173, 0.3);
}

html.dark .faq-page .faq-answer-block {
  background: rgba(35, 52, 44, 0.72);
  border-left-color: #74c494;
}

html.dark .faq-page .faq-answer-block.answer-info {
  background: rgba(33, 50, 66, 0.74);
  border-left-color: #7cc5ff;
}

html.dark .faq-page .faq-answer-block.answer-tip {
  background: rgba(35, 52, 44, 0.72);
  border-left-color: #74c494;
}

html.dark .faq-page .faq-answer-block.answer-warning {
  background: rgba(68, 37, 39, 0.74);
  border-left-color: #fca5a5;
}

html.dark .faq-page .faq-answer-paragraph {
  color: #b9c7d3;
}

html.dark .faq-page .faq-answer-paragraph.note {
  background: rgba(89, 68, 28, 0.45);
  border-left-color: #fbbf24;
  color: #e6dac1;
}

html.dark .faq-page .faq-note-label {
  color: #ffd27b;
}

html.dark .faq-page .faq-a-label {
  color: #d1e4f3;
}

html.dark .faq-page .faq-link.button.secondary {
  background: rgba(52, 77, 66, 0.52);
  border-color: rgba(116, 196, 148, 0.4);
  color: #bce7cc;
}

html.dark .faq-page .faq-link.button.secondary:hover {
  background: rgba(58, 88, 75, 0.62);
}

body[class*="theme-"] .section.card h2,
body[class*="theme-"] .card h2,
body[class*="theme-"] .card h3 {
  color: #222222;
}

html.dark body[class*="theme-"] .section.card h2,
html.dark body[class*="theme-"] .card h2,
html.dark body[class*="theme-"] .card h3 {
  color: var(--text);
}

main p a:not(.button),
main li a:not(.button) {
  color: #2b5fa8;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

main p a:not(.button):hover,
main li a:not(.button):hover {
  color: var(--primary);
}

.readable-article .section.card {
  gap: 16px;
}

.readable-article .section.card > h2 {
  margin-bottom: 0;
}

.readable-article .section.card p,
.readable-article .section.card li {
  max-width: none;
  line-height: 1.9;
}

.readable-article .section.card ul {
  margin-top: 0.3rem;
  padding-left: 1.35rem;
}

.readable-article .section.card li + li {
  margin-top: 0.45rem;
}

.readable-article .compact-list strong {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f4c81;
  background: rgba(125, 211, 252, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.readable-article .compact-list li.warn strong {
  color: #991b1b;
  background: rgba(252, 165, 165, 0.22);
  border-color: rgba(248, 113, 113, 0.5);
}

.readable-article .compact-list li.supplement strong {
  color: #5b4b16;
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(234, 179, 8, 0.38);
}

.readable-article .causal-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.35rem;
}

.readable-article .causal-list li {
  position: relative;
  padding-left: 0;
}

.readable-article .causal-list li + li {
  margin-top: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(125, 211, 252, 0.35);
}

html.dark .readable-article .causal-list li + li {
  border-top-color: rgba(147, 197, 253, 0.35);
}

html.dark .readable-article .compact-list strong {
  color: #bfe7ff;
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(125, 211, 252, 0.5);
}

html.dark .readable-article .compact-list li.warn strong {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(252, 165, 165, 0.5);
}

html.dark .readable-article .compact-list li.supplement strong {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(250, 204, 21, 0.42);
}

.readable-article .breathable-table-wrap {
  margin-top: 4px;
}

.readable-article .summary-table-readable {
  min-width: 560px;
}

.readable-article .summary-table-readable th,
.readable-article .summary-table-readable td {
  padding: 14px 16px;
  line-height: 1.7;
}

.readable-article .summary-table-readable th:nth-child(n + 3),
.readable-article .summary-table-readable td:nth-child(n + 3) {
  white-space: normal;
}

.readable-article .accent-point-table td:first-child {
  font-weight: 800;
}

.readable-article .accent-point-table td.tone-info,
.readable-article .accent-point-table td.tone-neutral,
.readable-article .accent-point-table td.tone-warn {
  position: relative;
}

.readable-article .accent-point-table td.tone-info::before,
.readable-article .accent-point-table td.tone-neutral::before,
.readable-article .accent-point-table td.tone-warn::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
}

.readable-article .accent-point-table td.tone-info {
  color: #bfe7ff;
}

.readable-article .accent-point-table td.tone-info::before {
  background: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.readable-article .accent-point-table td.tone-neutral {
  color: #d8b4fe;
}

.readable-article .accent-point-table td.tone-neutral::before {
  background: rgba(192, 132, 252, 0.9);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.16);
}

.readable-article .accent-point-table td.tone-warn {
  color: #fecaca;
}

.readable-article .accent-point-table td.tone-warn::before {
  background: rgba(248, 113, 113, 0.92);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18);
}

.readable-article .travel-factor-section {
  gap: 18px;
}

.readable-article .travel-factor-grid {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 0;
}

.readable-article .factor-group-label {
  display: block;
  margin: 8px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent 28%);
}

.readable-article .travel-factor-card {
  padding: 22px 20px;
}

.readable-article .travel-factor-card h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 12px;
}

.readable-article .travel-factor-card .factor-icon {
  font-size: 0.92em;
  line-height: 1;
  opacity: 0.9;
}

.readable-article .travel-factor-card .factor-core,
.readable-article .travel-factor-card .factor-detail {
  margin: 0;
  line-height: 1.6;
}

.readable-article .travel-factor-card .factor-core {
  padding: 10px 12px;
  border-left: 3px solid color-mix(in srgb, var(--theme-secondary) 70%, white 30%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-soft) 42%, white 58%);
  font-weight: 800;
  font-size: 1.03rem;
}

.readable-article .travel-factor-card .factor-detail {
  margin-top: 12px;
  color: var(--text);
}

html.dark .readable-article .factor-group-label {
  border-bottom-color: color-mix(in srgb, var(--border) 82%, transparent 18%);
}

html.dark .readable-article .travel-factor-card .factor-core {
  border-left-color: rgba(125, 211, 252, 0.62);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.readable-article .dense-section > h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent 30%);
}

.readable-article .key-points {
  margin: -4px 0 2px;
  padding: 10px 14px 10px 32px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 20%, var(--border) 80%);
  background: color-mix(in srgb, var(--theme-soft) 35%, var(--surface) 65%);
}

.readable-article .key-points li {
  color: var(--text);
  font-weight: 600;
}

.readable-article .section.card .note strong {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.35;
  color: #166534;
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.readable-article .section.card .note li.note-reminder strong {
  color: #166534;
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(34, 197, 94, 0.45);
}

.readable-article .section.card .note li.note-warning strong {
  color: #991b1b;
  background: rgba(252, 165, 165, 0.22);
  border-color: rgba(248, 113, 113, 0.5);
}

html.dark .readable-article .section.card .note strong {
  color: #b9fbcf;
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
}

html.dark .readable-article .section.card .note li.note-reminder strong {
  color: #b9fbcf;
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
}

html.dark .readable-article .section.card .note li.note-warning strong {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(252, 165, 165, 0.5);
}

@media (max-width: 800px) {
  .readable-article .section.card p,
  .readable-article .section.card li {
    max-width: none;
    line-height: 1.82;
  }

  .readable-article .summary-table-readable {
    min-width: 100%;
  }

  .faq-page .faq-item summary,
  .faq-page .faq-answer-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .faq-page .faq-link.button.secondary {
    width: auto;
  }
}

.breadcrumb {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #555555;
  margin: 0 2px;
}

/* === Generic Compare Card Accent (Reusable) === */
.compare-col {
  background: #f7fafd;
  border-radius: 12px;
  border: 1.5px solid #b9d8ef;
  border-left: 7px solid #7ec3e6;
  padding: 18px 18px 12px 18px;
  box-shadow: 0 2px 8px rgba(27,107,154,0.06);
  margin-bottom: 0;
  transition: background 0.3s, border-color 0.3s;
  color: #ffffff;
}
.compare-col.right {
  background: #fdf7f7;
  border-color: #e6a1a1;
  border-left: 7px solid #e6a1a1;
  color: #ffffff;
}
.compare-col .section-label {
  background: rgba(126,195,230,0.13);
  border-radius: 7px;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.01rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}
.compare-col.right .section-label {
  background: rgba(230,161,161,0.13);
  color: #ffffff;
}