/* ============================================================
   Cueply Support — Article Page Styles
   Two-column layout, exact design match to haruhiromatsumoto.privacy
   ============================================================ */

/* ── Layout ── */
.article-wrap { flex: 1; padding: 0 22px 80px; }
.article-layout {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr;
  gap: 40px; align-items: start;
}

/* ── TOC ── */
.toc {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--nav-top) + var(--nav-height) + 24px);
  max-height: calc(100vh - 120px);
  overflow-y: auto; padding: 4px 0 20px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.toc__back {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary);
  text-decoration: none; margin-bottom: 20px;
  transition: color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.toc__back:hover { color: var(--link); background: var(--bg-hover); }
.toc__back svg { flex-shrink: 0; }

.toc__label {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-tertiary); padding: 0 12px 10px;
}
.toc__nav { display: flex; flex-direction: column; }
.toc__link {
  display: block; padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none;
  line-height: 1.4;
  transition: color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.toc__link:hover { color: var(--text-primary); background: var(--bg-hover); }
.toc__link.is-active { color: var(--link); background: rgba(250, 100, 1, 0.06); font-weight: 500; }

/* ── Article Card ── */
.article-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 48px 52px 56px; min-width: 0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 28px; list-style: none; flex-wrap: wrap;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li a { font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none; transition: color var(--duration-fast) var(--ease); }
.breadcrumb li a:hover { color: var(--link); }
.breadcrumb li:last-child span { font-size: var(--text-sm); color: var(--text-tertiary); }
.breadcrumb__sep { color: var(--text-tertiary); font-size: 11px; line-height: 1; }

/* ── Article Header ── */
.article-header {
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.article-category {
  display: inline-block; font-size: var(--text-sm); font-weight: 500;
  color: var(--link); background: rgba(250, 100, 1, 0.08);
  padding: 3px 10px; border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.article-header__title {
  font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700;
  letter-spacing: -1px; color: var(--text-primary); line-height: 1.1;
  margin-bottom: 14px;
}
.article-header__meta { font-size: var(--text-sm); color: var(--text-tertiary); }

/* ── Article Body Typography ── */
.article-body { font-size: 15px; line-height: 1.45; color: var(--text-primary); }
.article-body p { margin-bottom: 18px; }
.article-body p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  letter-spacing: -0.5px; color: var(--text-primary); line-height: 1.2;
  margin-top: 44px; margin-bottom: 16px; padding-top: 8px;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--nav-top) + var(--nav-height) + 24px);
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
  letter-spacing: -0.3px; color: var(--text-primary);
  margin-top: 28px; margin-bottom: 10px;
}

.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 18px;
}
.article-body li { font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
.article-body li:last-child { margin-bottom: 0; }
.article-body ul { list-style-type: disc; }
.article-body ol { list-style-type: decimal; }

.article-body strong { font-weight: 600; color: var(--text-primary); }

.article-body a {
  color: var(--link); text-decoration: none;
  border-bottom: 1px solid rgba(250, 100, 1, 0.25);
  transition: border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.article-body a:hover { color: var(--link-hover); border-bottom-color: var(--link-hover); }

.article-body hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* ── Step List ── */
.step-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 0; }
.step-list__item { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.step-list__item:first-child { padding-top: 0; }
.step-list__item:last-child { padding-bottom: 0; }

.step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background-color: var(--link); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: var(--font-display);
  line-height: 1; margin-top: 2px;
}

.step-content { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; color: var(--text-primary); }
.step-content strong { display: block; font-weight: 600; margin-bottom: 3px; }
.step-content span { color: var(--text-secondary); }

/* ── Callout ── */
.callout { border-radius: var(--radius-md); padding: 16px 20px; margin: 24px 0; border: 1px solid; }
.callout-note { background: rgba(250, 100, 1, 0.05); border-color: rgba(250, 100, 1, 0.18); }
.callout-note p { font-size: var(--text-base); color: var(--text-primary); margin-bottom: 0; line-height: 1.6; }
.callout-note .callout__label { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--link); margin-bottom: 6px; }

.callout-important { background: rgba(255, 149, 0, 0.06); border-color: rgba(255, 149, 0, 0.22); }
.callout-important p { font-size: var(--text-base); color: var(--text-primary); margin-bottom: 0; line-height: 1.6; }
.callout-important .callout__label { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #C06800; margin-bottom: 6px; }

/* ── Info Block ── */
.info-block {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px; background: var(--bg); border-radius: var(--radius-md);
  border: 1px solid var(--border); margin: 16px 0;
}
.info-block p { font-size: var(--text-base); color: var(--text-secondary); margin-bottom: 0; }
.info-block strong { font-weight: 600; color: var(--text-primary); }

/* ── Article Footer / Actions ── */
.article-footer-note {
  padding: 20px 0 0; border-top: 1px solid var(--border); margin-top: 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.article-footer-note a {
  font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none;
  border-bottom: none; transition: color var(--duration-fast) var(--ease);
  display: flex; align-items: center; gap: 5px;
}
.article-footer-note a:hover { color: var(--link); }
.article-footer-note a svg { flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .article-card { padding: 36px 32px 44px; }
}
@media (max-width: 600px) {
  .article-wrap { padding: 0 16px 60px; }
  .article-card { padding: 28px 22px 36px; border-radius: var(--radius-md); }
  .article-header__title { font-size: var(--text-2xl); letter-spacing: -0.6px; }
  .article-body h2 { font-size: var(--text-lg); margin-top: 36px; }
  .article-body { font-size: 15px; }
  .article-footer-note { flex-direction: column; align-items: flex-start; gap: 12px; }
}
