/* ============================================================
   article-common.css — PASHIRU Column Article Common Styles
   全記事共通。lang-ja.css / lang-en.css と併用すること。
   ============================================================ */

:root {
  --bg: #f5f4f0;
  --fg: #1a1a18;
  --fg-muted: #666;
  --border: rgba(0,0,0,0.1);
  --accent: #e8ff47;
  --green: #2e7d52;
  --muted: #666;
  --font: 'Barlow Condensed', sans-serif;
  --font-jp: 'M PLUS 1p', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.8;
  font-size: 16px;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { display: flex; align-items: center; text-decoration: none; line-height: 0; position: relative; margin-top: 8px; height: 36px; }
.logo img { height: 28px; width: auto; display: block; }
.site-title { position: absolute; left: 0; top: -17px; width: max-content; max-width: 220px; color: var(--fg-muted); font-size: 8px; font-family: var(--font); font-weight: 600; letter-spacing: 0.16em; line-height: 1; text-transform: uppercase; opacity: 0.72; }
.header-controls { display: flex; align-items: center; gap: 20px; }
.lang-toggle {
  position: relative;
  display: flex;
  background: rgba(26,26,24,0.07);
  border-radius: 100px;
  padding: 3px;
}
.lang-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--fg);
  border-radius: 100px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.lang-indicator.jp { transform: translateX(100%); }
.ctrl-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  background: none;
  border: none;
  padding: 6px 12px;
  color: var(--fg-muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.25s, transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border-radius: 100px;
  cursor: pointer;
}
.ctrl-btn.active { color: var(--bg); }
.ctrl-btn:hover { color: var(--fg); }
.ctrl-btn:active { transform: scale(0.96); }
.header-back {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
}
.header-back:hover { color: var(--fg); }

.ctrl-about {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s;
}
.ctrl-about:hover { color: var(--fg); }
/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 40px 0;
}
.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.breadcrumbs__item + .breadcrumbs__item::before { content: '/'; margin-right: 8px; }
.breadcrumbs__link { color: var(--fg-muted); text-decoration: none; }
.breadcrumbs__link:hover { color: var(--fg); }
.breadcrumbs__current { color: var(--fg-muted); opacity: 0.6; }

/* ── ARTICLE LAYOUT ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 40px 120px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-cat {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.article-date {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

/* ── BODY SECTIONS ── */
.article-body h2 {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 56px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.article-body p {
  margin-bottom: 16px;
  color: var(--fg);
  line-height: 1.85;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { font-weight: 700; }
.article-body code {
  font-family: monospace;
  font-size: 0.9em;
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ── LEAD ── */
.article-lead {
  font-size: 17px;
  line-height: 1.9;
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: rgba(232,255,71,0.12);
  border-radius: 0 6px 6px 0;
  margin-bottom: 40px;
}

/* ── CALLOUT ── */
.callout {
  background: #1a1a18;
  color: #f0ede4;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 16px;
  line-height: 1.8;
}
.callout strong { color: #e8ff47; }

/* ── METHOD LIST ── */
.method-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.method-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.method-num {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-muted);
  min-width: 28px;
  line-height: 1.3;
}
.method-item--best {
  border-color: var(--accent);
  background: rgba(232,255,71,0.08);
}
.method-item--best .method-num { color: var(--green); }
.method-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.method-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* ── COMPARISON TABLE ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 24px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
th {
  text-align: center;
  padding: 14px 16px;
  background: rgba(0,0,0,0.04);
  font-family: var(--font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th:first-child { text-align: left; }
td {
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
  text-align: center;
  font-size: 14px;
  color: var(--fg-muted);
}
td:first-child {
  text-align: left;
  color: var(--fg);
  font-weight: 500;
}
tr:last-child td { border-bottom: none; }
.tr-best td {
  background: rgba(232,255,71,0.2);
  font-weight: 700;
  color: var(--fg);
}
.tr-best td:first-child::before { content: '★'; margin-right: 6px; color: #b8c200; font-size: 11px; }

/* SVG check / cross / tri — LP と共通デザイン */
.icon-check, .icon-cross, .icon-tri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.icon-check { color: #1a9e5c; }
.icon-cross { color: #e04545; }
.icon-tri   { color: var(--fg-muted); font-size: 15px; font-weight: 700; line-height: 1; }
.icon-check svg, .icon-cross svg { width: 100%; height: 100%; }

/* ── STEPS ── */
.steps {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

/* ── USE CASES ── */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 24px;
}
.usecase-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
}
.usecase-chip::before {
  content: '→';
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}
.usecase-chip__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.usecase-chip__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* ── FAQ ── */
.faq-list { margin: 16px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.faq-q {
  font-weight: 700;
  font-size: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.faq-q::before {
  content: 'Q';
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1.2;
}
.faq-a {
  display: block;
  padding: 0 18px 14px 46px;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ── RELATED ARTICLES ── */
.related-articles {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-articles__label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.related-articles__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-articles__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
}
.related-articles__card:hover {
  border-color: rgba(0,0,0,0.25);
  background: #fafaf8;
}
.related-articles__cat {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.related-articles__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  flex: 1;
}
.related-articles__arrow {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

/* ── CTA ── */
.cta-block {
  background: #1a1a18;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  margin-top: 64px;
}
.cta-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232,255,71,0.7);
  display: block;
  margin-bottom: 12px;
}
.cta-title {
  font-family: var(--font);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f0ede4;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-block p {
  color: rgba(240,237,228,0.65);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.cta-btn {
  display: inline-block;
  background: #e8ff47;
  color: #1a1a18;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.85; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--fg); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  header { padding: 14px 20px; }
  .header-controls { gap: 12px; }
  main { padding: 20px 20px 80px; }
  h1 { font-size: 24px; }
  .usecase-grid { grid-template-columns: 1fr; }
  .cta-block { padding: 32px 20px; }
  .cta-title { font-size: 26px; }
  footer { padding: 24px 20px; }
  .breadcrumbs { padding: 10px 20px 0; }
  .related-articles__cat { display: none; }
}
@media (max-width: 375px) {
  .header-controls { gap: 8px; }
  .related-articles__card { padding: 14px; }
}
