/* ============ CHAT PAGE ============ */
body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

a:hover {
  text-decoration: underline;
  opacity: 0.7;
}

.tab-nav a:hover {
  text-decoration: none;
  opacity: 1;
}

a.cta-btn:hover {
  text-decoration: none;
  opacity: 1;
}

img {
  max-width: 100%;
}

/* ── レイアウト ── */
.page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 720px) {
  .page-wrap {
    grid-template-columns: 1fr;
    padding: 32px 16px 60px;
  }

  .sidebar {
    display: none;
  }

  img {
    max-width: 100%;
  }
}

/* ── 記事ヘッダー ── */
.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 12px;
}

.author-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* ── 本文スタイル ── */
.article-body p {
  margin-bottom: 1.6em;
  font-size: 16px;
  line-height: 1.9;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 2.4em 0 0.8em;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
}

.article-body ul {
  margin: 0 0 1.6em 1.4em;
}

.article-body li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

.article-body strong {
  font-size: 18px;
  font-weight: 700;
}

/* リード文 */
.article-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--ai-bubble);
  border-left: 4px solid var(--ink);
  padding: 20px 24px;
  margin-bottom: 2.4em;
  border-radius: 0 4px 4px 0;
}

.article-box {
  display: flex;
  padding: 0;
  border: 1px solid var(--accent-light);
  background: var(--ai-bubble);
}

/* コラム枠 */
.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
  margin: 1.8em 0;
  font-size: 15px;
  line-height: 1.8;
}

.callout-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.callout-ol {
  margin-left: 20px;
}

.callout-ol li::marker {
  color: var(--accent);
  font-size: 20px;
  font-weight: bold;
}

/* 「3」の意味ボックス */
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 2em 0;
}

@media (max-width: 600px) {
  .three-grid {
    grid-template-columns: 1fr;
  }
}

.three-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 4px 4px;
  padding: 20px 18px;
  text-align: center;
}

.three-card .num {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.three-card .role {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.three-card .desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

/* ロゴ解説ボックス */
.logo-explain {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 28px 28px 24px;
  margin: 2em 0;
}

.logo-explain-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}

.logo-explain p {
  font-size: 15px;
  margin-bottom: 1em;
}

.logo-explain p:last-child {
  margin-bottom: 0;
}

/* 記事末CTA */
.article-cta {
  background: var(--ink);
  color: white;
  border-radius: 6px;
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  transition: opacity 0.15s;
}

.cta-btn:hover {
  opacity: 0.85;
}

/* 前後ナビ */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}

.article-nav a {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.15s;
}

.article-nav a:hover {
  border-color: var(--accent);
}

.article-nav .nav-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.article-nav .nav-title {
  font-weight: 700;
  line-height: 1.4;
}

.article-nav .next {
  text-align: right;
}

/* ── サイドバー ── */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}

.sidebar-list li.active a {
  font-weight: 700;
  color: var(--accent);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--ink);
  text-decoration: none;
}

.sidebar-list a:hover {
  color: var(--accent);
}

.sidebar-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}

.sidebar-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* BeerSlider カスタマイズ */
#beer-slider .beer-reveal {
  border-right: solid 2px hsla(0, 0%, 100%, .5);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1rem 0 1.5rem;
}

.compare-table th,
.compare-table td {
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  text-align: left;
}

.compare-table th {
  background: #f7f7f7;
  font-weight: 700;
}

.compare-table tr:nth-child(even) td {
  background: #fafafa;
}
