
.article-header {
  margin-top: var(--header-height);
  padding: 48px 0 0;
}

.article-header__inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.article-header__meta .category-tag {
  padding: 6px 18px;
  font-size: 13px;
  border: 1.5px solid var(--cat-color, var(--text-light));
  color: var(--cat-color, var(--text-light));
  background: var(--bg-white);
}

.article-header__title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--secondary);
  margin-bottom: 16px;
}

.article-header__info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.article-header__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tag {
  padding: 4px 12px;
  font-size: 12px;
  background: var(--bg);
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 500;
}

.article-hero-image {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto 48px;
}

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

img.img-loading {
  filter: blur(12px) saturate(0.8);
  transform: scale(1.04);
  transition: filter 0.5s ease, transform 0.5s ease;
  background: linear-gradient(135deg, #e8e8ed 0%, #f0f0f5 50%, #e8e8ed 100%);
  background-size: 200% 200%;
  animation: imgShimmer 1.6s ease-in-out infinite;
}

img.img-loaded {
  filter: none;
  transform: none;
  animation: none;
  background: none;
}

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

.article-layout {
  max-width: 720px;
  margin: 0 auto;
}

.article-content {
  padding-bottom: 60px;
  min-width: 0;
}

.repost-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 32px;
  padding: 14px 18px;
  background: #F4F7FB;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.repost-notice__badge {
  flex-shrink: 0;
  margin-top: 3px;
  padding: 3px 10px;
  background: var(--septeni-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
}

.repost-notice__text a {
  color: var(--septeni-blue);
  font-weight: 600;
  text-decoration: underline;
}

.external-article-card {
  margin: 24px 0 48px;
  padding: 40px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}

.external-article-card__lead {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 8px;
}

.external-article-card__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.external-article-card__btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--septeni-blue);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .external-article-card__btn:hover {
    opacity: 0.85;
  }
}

.article-toc {
  margin: 0 0 32px;
}

.article-toc__inner {
  padding: 4px 0 4px 16px;
  border-left: 3px solid #C8CCD2;
}

.article-toc__head {
  margin-bottom: 4px;
}

.article-toc__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc-item;
}

.article-toc__item {
  font-size: 13px;
  line-height: 1.4;
  counter-increment: toc-item;
}

.article-toc__item a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  transition: none;
}

.article-toc__item a::before {
  content: counter(toc-item) ".";
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

@media (hover: hover) {
  .article-toc__item a:hover {
    color: var(--septeni-blue);
  }
}

.article-content p {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 24px;
  color: var(--text);
}

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 20px;
  color: var(--secondary);
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--secondary);
}

.article-content a {
  color: inherit;
  text-decoration: underline;
}

@media (hover: hover) {
  .article-content a:hover {
    color: var(--septeni-blue);
  }
}

.article-content .article-toc a {
  text-decoration: none;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px 1.5em;
  padding: 0;
  font-size: 16px;
  line-height: 2;
  color: var(--text);
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: #F9FAFC;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

.article-content blockquote p {
  margin: 0 0 12px;
}

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

.article-content blockquote p:first-child {
  font-weight: 400;
  color: var(--secondary);
}

.article-content figure {
  margin: 32px 0;
  text-align: center;
}

.article-content figure img,
.article-content > img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-content figure img[src*="_profile"] {
  display: block;
  margin: 0 auto;
  max-width: 240px;
  border-radius: 12px;
  background-color: var(--bg);
}

.article-content figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-content p.article-outro-start {
  margin-top: 64px;
}

.hakase-result-section { padding: 32px 0 48px; }
.hakase-result-section--inline { padding: 0; margin: 32px 0 40px; }
.hakase-result { background: #F9FAFC; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.hakase-result__head { margin-bottom: 20px; }
.hakase-result .hakase-result__title { font-size: 22px; font-weight: 900; color: var(--secondary); margin: 0 0 14px; line-height: 1.4; padding-left: 0; border-left: none; }
.hakase-result__title-break { display: none; }
.hakase-result .hakase-result__desc { font-size: 13px; color: var(--text-light); line-height: 1.8; margin: 0; }
.hakase-result .hakase-result__desc-link { color: var(--septeni-blue); text-decoration: underline; white-space: nowrap; }
.hakase-result__toggle { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; padding: 10px 22px; background: rgba(0,80,170,.08); border: 1px solid rgba(0,80,170,.2); border-radius: 50px; font-size: 13px; font-weight: 700; color: var(--septeni-blue); cursor: pointer; transition: all .2s; }
@media (hover: hover) { .hakase-result__toggle:hover { background: rgba(0,80,170,.14); border-color: var(--septeni-blue); } }
.hakase-result__toggle-icon { transition: transform .3s ease; }
.hakase-result__toggle[aria-expanded="true"] .hakase-result__toggle-icon { transform: rotate(180deg); }
.hakase-result__details { position: relative; overflow: hidden; transition: max-height .35s ease; }
.hakase-result__details.is-collapsed { max-height: 64px; }
.hakase-result__details.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
  pointer-events: none;
}
.hakase-result__details-rows { display: flex; flex-direction: column; gap: 10px; }
.hakase-result__toggle-wrap { display: flex; justify-content: center; margin-top: 16px; }
.hakase-result__types { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 24px; }
.hakase-result__type { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 20px; background: var(--bg); border-radius: 12px; min-width: 160px; }
.hakase-result__type-label { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-muted); }
.hakase-result__type-name { font-size: 18px; font-weight: 900; color: var(--secondary); }
.hakase-result__factors { margin-bottom: 24px; }
.hakase-result .hakase-result__factors-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--secondary); margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--septeni-blue); }
.hakase-result__factors-title svg { flex-shrink: 0; color: var(--septeni-blue); }
.hakase-result .hakase-result__factors-note { font-size: 11px; color: var(--text-muted); line-height: 1.6; margin: 0 0 14px; }
.hakase-result__factors-list { display: flex; flex-direction: column; gap: 10px; }
.hakase-result .factor-row { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.hakase-result .factor-row--top { background: rgba(0,80,170,.05); }
.hakase-result .factor-row--primary { background: rgba(246,0,0,.06); }
.hakase-result .factor-row__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hakase-result .factor-row__name { font-size: 14px; font-weight: 800; color: var(--text); min-width: 40px; flex-shrink: 0; }
.hakase-result .factor-row--top .factor-row__name { color: var(--septeni-blue); }
.hakase-result .factor-row--primary .factor-row__name { color: var(--septeni-red); }
.hakase-result .factor-row__bar { flex: 1; height: 6px; background: rgba(0,0,0,.06); border-radius: 3px; min-width: 60px; position: relative; }
.hakase-result .factor-row__bar-fill { height: 100%; background: var(--text-muted); border-radius: 3px; transition: width .4s ease; }
.hakase-result .factor-row--top .factor-row__bar-fill { background: var(--septeni-blue); }
.hakase-result .factor-row--primary .factor-row__bar-fill { background: var(--septeni-red); }
.hakase-result .factor-row__score { font-size: 14px; font-weight: 800; color: var(--text); min-width: 38px; text-align: right; flex-shrink: 0; }
.hakase-result .factor-row__score-max { font-size: 0.7em; font-weight: 700; color: var(--text-muted); margin-left: 1px; }
.hakase-result .factor-row__badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; letter-spacing: .05em; }
.hakase-result .factor-row__badge--empty { visibility: hidden; }
.hakase-result .factor-row--top .factor-row__badge { background: rgba(0,80,170,.10); color: var(--septeni-blue); }
.hakase-result .factor-row--primary .factor-row__badge { background: rgba(246,0,0,.10); color: var(--septeni-red); }
.hakase-result .factor-row__meaning { font-size: 12px; color: var(--text-light); line-height: 1.6; margin: 0; }
@media (max-width: 768px) {
  .hakase-result { padding: 20px; }
  .hakase-result__type { min-width: 140px; padding: 10px 16px; }
  .hakase-result__type-name { font-size: 16px; }
  .hakase-result__title-break { display: inline; }
}

.related-section {
  background: var(--bg);
  padding: 60px 0;
}
