/* article.css — 記事詳細ページ専用スタイル（single.php のみ読み込み） */

:root {
  --a-ink: #172421;
  --a-cream: #fbf6ec;
  --a-gold: #c5a46a;
  --a-gold2: #9d7a3f;
  --a-muted: rgba(23, 36, 33, .68);
  --a-line: rgba(23, 36, 33, .14);
  --a-shadow: 0 26px 80px rgba(23, 36, 33, .14);
}

/* ヘッダー（front-page.php の .site-header と共存するため上書き最小限） */
.article-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 236, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 36, 33, .1);
}

.article-page .nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.article-page .nav .brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.article-page .nav .brand strong {
  font-size: 14px;
  letter-spacing: .08em;
  font-weight: 700;
}

.article-page .nav .brand span {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--a-muted);
}

.article-page .nav-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(23, 36, 33, .74);
}

/* ヒーロー */
.article-hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(197, 164, 106, .24), transparent 32%),
    linear-gradient(135deg, #16251f 0%, #22342f 52%, #101816 100%);
  color: var(--a-cream);
  padding: 72px 24px 88px;
}

.article-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: end;
}

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(251, 246, 236, .72);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.article-eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--a-gold);
}

.article-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.18;
  letter-spacing: -.04em;
  font-weight: 800;
}

.article-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(251, 246, 236, .78);
  font-size: 16px;
  line-height: 2;
}

/* LAB DATA パネル */
.meta-panel {
  border: 1px solid rgba(251, 246, 236, .18);
  border-radius: 28px;
  padding: 26px;
  background: rgba(251, 246, 236, .07);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .16);
}

.meta-panel .label {
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(251, 246, 236, .55);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.meta-item {
  padding-top: 16px;
  border-top: 1px solid rgba(251, 246, 236, .12);
}

.meta-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.meta-item span {
  display: block;
  font-size: 11px;
  color: rgba(251, 246, 236, .52);
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.meta-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(251, 246, 236, .9);
}

/* メインラップ */
.article-wrap {
  max-width: 1080px;
  margin: -46px auto 0;
  padding: 0 24px 96px;
  position: relative;
  z-index: 2;
}

/* アイキャッチ */
.featured-image {
  border-radius: 34px;
  overflow: hidden;
  height: auto;
  box-shadow: var(--a-shadow);
  border: 1px solid rgba(251, 246, 236, .38);
}

.featured-image.has-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-image.no-thumb {
  background:
    linear-gradient(135deg, rgba(23, 36, 33, .18), rgba(197, 164, 106, .18)),
    linear-gradient(135deg, #22342f, #101816);
}

/* 本文レイアウト */
.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 730px);
  gap: 68px;
  align-items: start;
  margin-top: 72px;
}

/* サイドバー（CONTENTS） */
.article-side {
  position: sticky;
  top: 96px;
  font-size: 12px;
  color: var(--a-muted);
}

.side-card {
  border-top: 1px solid var(--a-line);
  padding-top: 22px;
}

.side-title {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--a-gold2);
  margin-bottom: 14px;
}

.side-card a {
  display: block;
  padding: 7px 0;
  color: rgba(23, 36, 33, .72);
  border-bottom: 1px solid rgba(23, 36, 33, .06);
  font-size: 12px;
  line-height: 1.6;
  transition: color .18s ease;
}

.side-card a:hover {
  color: var(--a-gold2);
}

/* 本文カード */
.article-body {
  background: rgba(255, 255, 255, .32);
  border: 1px solid rgba(23, 36, 33, .08);
  border-radius: 34px;
  padding: clamp(30px, 5vw, 62px);
  box-shadow: 0 18px 70px rgba(23, 36, 33, .08);
}

.article-body p {
  font-size: 16px;
  line-height: 2.15;
  margin: 0 0 1.7em;
}

.article-body .first-paragraph {
  font-size: 18px;
  line-height: 2.1;
}

.article-body h2 {
  margin: 2.6em 0 1em;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  letter-spacing: -.035em;
  font-weight: 800;
}

.article-body h3 {
  margin: 2.2em 0 .8em;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 800;
}

.article-body ul {
  margin: 0 0 2em;
  padding-left: 1.4em;
}

.article-body li {
  margin: .5em 0;
  line-height: 2;
}

.article-body blockquote {
  margin: 44px 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--a-gold);
  color: rgba(23, 36, 33, .72);
  font-size: 17px;
  line-height: 2;
}

/* LAB NOTE ブロック */
.lab-note {
  margin: 48px 0;
  padding: 30px;
  border-radius: 26px;
  background: var(--a-ink);
  color: var(--a-cream);
  position: relative;
  overflow: hidden;
}

.lab-note::after {
  content: "LAB NOTE";
  position: absolute;
  right: -8px;
  bottom: -14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  letter-spacing: -.06em;
  color: rgba(251, 246, 236, .08);
  pointer-events: none;
}

.note-label {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--a-gold);
  margin-bottom: 12px;
}

.lab-note p {
  margin: 0;
  color: rgba(251, 246, 236, .86);
  position: relative;
  z-index: 1;
}

/* EXPERIMENT RESULT ブロック */
.experiment-result {
  margin: 48px 0;
  padding: 30px;
  border-radius: 26px;
  background: rgba(197, 164, 106, .16);
  border: 1px solid rgba(157, 122, 63, .22);
  position: relative;
  overflow: hidden;
}

.experiment-result::after {
  content: "RESULT";
  position: absolute;
  right: -4px;
  bottom: -16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  letter-spacing: -.06em;
  color: rgba(157, 122, 63, .12);
  pointer-events: none;
}

.result-label {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--a-gold2);
  margin-bottom: 12px;
}

.experiment-result p {
  margin: 0;
  color: rgba(23, 36, 33, .78);
  position: relative;
  z-index: 1;
}

/* 記事末尾 */
.article-end {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--a-line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.back-home,
.next-link {
  border: 1px solid rgba(23, 36, 33, .16);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  background: rgba(251, 246, 236, .7);
  color: var(--a-ink);
  transition: background .18s ease;
}

.back-home:hover,
.next-link:hover {
  background: rgba(197, 164, 106, .18);
}

/* 関連記事 */
.related {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 110px;
}

.related-head {
  border-top: 1px solid var(--a-line);
  padding-top: 36px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 28px;
}

.related-label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--a-gold2);
  text-transform: uppercase;
  line-height: 1.5;
}

.related-title {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.22;
  letter-spacing: -.04em;
  font-weight: 800;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-card {
  border: 1px solid rgba(23, 36, 33, .1);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, .28);
  display: block;
  transition: box-shadow .2s ease;
}

.related-card:hover {
  box-shadow: 0 8px 32px rgba(23, 36, 33, .12);
}

.related-thumb {
  height: 150px;
  background:
    linear-gradient(135deg, rgba(23, 36, 33, .22), rgba(197, 164, 106, .16)),
    linear-gradient(135deg, #22342f, #101816);
  background-size: cover;
  background-position: center;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-content {
  padding: 20px;
}

.related-content .cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--a-gold2);
  margin-bottom: 10px;
}

.related-content h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.02em;
}

/* フッター */
.article-page .site-footer {
  background: var(--a-ink);
  color: var(--a-cream);
  padding: 74px 24px 34px;
}

.article-page .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.article-page .footer-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 104px);
  letter-spacing: -.055em;
  line-height: .95;
  font-weight: 500;
  margin: 0 0 28px;
}

.article-page .footer-line {
  border-top: 1px solid rgba(251, 246, 236, .16);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(251, 246, 236, .62);
  font-size: 12px;
  letter-spacing: .08em;
}

/* 記事詳細ページ用モバイル横スクロールナビ */
.article-mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .article-mobile-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(251, 246, 236, 0.96);
    border-bottom: 1px solid rgba(23, 36, 33, .1);
    position: sticky;
    top: 63px;
    z-index: 19;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .article-mobile-nav::-webkit-scrollbar { display: none; }
  .article-mobile-nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 14px;
    border: 1px solid rgba(23, 36, 33, .14);
    border-radius: 99px;
    color: var(--a-ink);
    flex-shrink: 0;
  }
}

/* レスポンシブ */
@media (max-width: 900px) {
  .article-page .nav-links {
    display: none;
  }

  .article-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .featured-image {
    height: auto;
    border-radius: 26px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 42px;
  }

  .article-side {
    position: static;
    order: 2;
  }

  .article-body {
    order: 1;
  }

  .related-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .article-side {
    display: none;
  }

  .article-page .footer-line {
    flex-direction: column;
  }

  .article-hero {
    padding: 44px 20px 72px;
  }

  .article-wrap {
    padding: 0 18px 72px;
  }

  .article-title {
    font-size: clamp(31px, 10vw, 44px);
  }

  .article-lead {
    font-size: 15px;
  }

  .meta-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .featured-image {
    height: auto;
  }

  .article-body {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .article-body p {
    font-size: 15px;
    line-height: 2.05;
  }

  .article-body .first-paragraph {
    font-size: 16px;
  }

  .lab-note {
    padding: 24px;
  }

  .article-end {
    align-items: stretch;
    flex-direction: column;
  }

  .back-home,
  .next-link {
    text-align: center;
  }

  .related {
    padding: 0 18px 82px;
  }
}
