/* ============================================
   クラフトビールOEM.com Column / Article Pages
   Shared styles for /column/ directory — v2
   ============================================ */

/* --- Accent Color Variables --- */
:root {
  --accent: #c8a45a;
  --accent-light: rgba(200,164,90,0.10);
  --accent-border: rgba(200,164,90,0.35);
}

/* --- Reset & Base (inherit from main site) --- */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: #2a2a2a;
  background: #f5f5f3;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.04em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Font System (consistent with main site) --- */
.col-hero__label,
.col-hero__title,
.article__h2,
.article__h3,
.archive-title,
.archive-label,
.col-footer__nav a {
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}


/* ============================================
   HERO (Article page)
   ============================================ */
.col-hero {
  padding: 140px 0 64px;
  background: #fff;
}

.col-hero__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.col-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #6b6b6b;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.col-hero__breadcrumb a {
  color: #6b6b6b;
  transition: color 0.3s;
}

.col-hero__breadcrumb a:hover {
  color: #1a1a1a;
}

.col-hero__breadcrumb span {
  color: #767676;
}

.col-hero__label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6228;
  margin-bottom: 20px;
}

.col-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.col-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.72rem;
  color: #6b6b6b;
}

.col-hero__meta time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.col-hero__meta svg {
  width: 14px;
  height: 14px;
  stroke: #bbb;
}

/* ============================================
   ARTICLE BODY
   ============================================ */
.article {
  padding: 64px 0 80px;
}

.article__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.article__content {
  background: #fff;
  border-radius: 16px;
  padding: 52px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

/* Article detail pages: white page, no card/shadow */
body.col-article { background: #fff; }
body.col-article .article__content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* --- TOC --- */
.article__toc {
  background: linear-gradient(135deg, #fafaf9 0%, #f5f3ee 100%);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.article__toc-title {
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article__toc-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
}

.article__toc-list {
  list-style: none;
  counter-reset: toc-counter;
}

.article__toc-list li {
  margin-bottom: 8px;
  counter-increment: toc-counter;
}

.article__toc-list a {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.7;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transition: color 0.3s;
}

.article__toc-list a::before {
  content: counter(toc-counter, decimal-leading-zero);
  flex-shrink: 0;
  color: var(--accent);
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  min-width: 22px;
}

.article__toc-list a:hover {
  color: #1a1a1a;
}

/* --- Headings --- */
.article__h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin: 56px 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(26,26,26,0.08);
  position: relative;
}

.article__h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(200,164,90,0.3));
}

.article__h2:first-of-type {
  margin-top: 0;
}

.article__h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

/* --- Text --- */
.article__text {
  font-size: 0.89rem;
  line-height: 2;
  color: #444;
  margin-bottom: 20px;
}

.article__text strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* --- Inline Links --- */
.article__text a {
  color: #7a6228;
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 3px;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.article__text a:hover {
  color: #7a6228;
  text-decoration-color: var(--accent);
}

/* --- Lists --- */
.article__list {
  margin: 16px 0 24px;
  padding-left: 4px;
}

.article__list li {
  font-size: 0.89rem;
  line-height: 2;
  color: #444;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.article__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Table --- */
.article__table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: 12px;
  border: 1px solid rgba(26,26,26,0.08);
}

.article__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.article__table th,
.article__table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(26,26,26,0.06);
}

.article__table th {
  background: #1a1a1a;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.article__table td {
  color: #555;
}

.article__table tbody tr:nth-child(even) {
  background: #fafaf9;
}

.article__table tbody tr:hover {
  background: var(--accent-light);
}

.article__table tr:last-child td {
  border-bottom: none;
}

/* --- Highlight Box --- */
.article__highlight {
  background: linear-gradient(135deg, #faf8f4 0%, #f5f3ee 100%);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin: 28px 0 32px;
}

.article__highlight-title {
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 0.89rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article__highlight-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* --- CTA Box --- */
.article__cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 48px 0 32px;
  position: relative;
  overflow: hidden;
}

.article__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.article__cta-title {
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.article__cta-text {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  line-height: 1.8;
}

.article__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  background: #fff;
  color: #1a1a1a;
  border-radius: 60px;
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s;
}

.article__cta-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,164,90,0.25);
}

.article__cta-btn svg {
  width: 14px;
  height: 14px;
}

/* --- Related Articles --- */
.article__related {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(26,26,26,0.08);
}

.article__related-title {
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.article__related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article__related-card {
  display: block;
  background: #fafaf9;
  border: 1px solid rgba(26,26,26,0.06);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.article__related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.article__related-tag {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a6228;
  margin-bottom: 8px;
}

.article__related-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ============================================
   ARCHIVE PAGE
   ============================================ */
.archive-hero {
  padding: 140px 0 48px;
  background: #fff;
}

.archive-hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.archive-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 16px;
}

.archive-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.archive-lead {
  font-size: 0.89rem;
  color: #777;
  line-height: 1.9;
}

/* --- Article list (archive) --- */
body.col-archive { background: #fff; }

.archive-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 96px;
}

.archive-row {
  display: grid;
  grid-template-columns: 7.5em auto 1fr 1.5em;
  align-items: center;
  column-gap: 20px;
  padding: 24px 8px;
  border-bottom: 1px solid rgba(26,26,26,0.1);
  transition: background 0.2s;
}
.archive-list .archive-row:first-child { border-top: 1px solid rgba(26,26,26,0.1); }
.archive-row:hover { background: #fafaf9; }

.archive-row__date {
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.archive-row__tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a6228;
  white-space: nowrap;
}

.archive-row__title {
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.6;
}

.archive-row__arrow {
  color: #1a1a1a;
  transition: transform 0.2s;
  text-align: right;
}
.archive-row:hover .archive-row__arrow { transform: translateX(4px); }

/* ============================================
   FOOTER
   ============================================ */
.col-footer {
  background: #1a1a1a;
  padding: 56px 0 32px;
}

.col-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.col-footer__logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.col-footer__tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.62);
  margin-top: 8px;
}

.col-footer__nav {
  display: flex;
  gap: 28px;
}

.col-footer__nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.col-footer__nav a:hover {
  color: #fff;
}

.col-footer__bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.col-footer__copy {
  font-size: 0.67rem;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.04em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 960px) {
  .article__related-grid {
    grid-template-columns: 1fr;
  }

  .col-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .col-footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .col-hero {
    padding: 110px 0 40px;
  }

  .col-hero__inner,
  .article__inner {
    padding: 0 16px;
  }

  .col-hero__title {
    font-size: 1.35rem;
  }

  .article__content {
    padding: 32px 24px;
    border-radius: 12px;
  }
  body.col-article .article__content { padding: 0; }

  .article__h2 {
    font-size: 1.15rem;
    margin: 40px 0 20px;
  }

  .article__h3 {
    font-size: 0.95rem;
  }

  .article__cta {
    padding: 32px 24px;
  }

  .archive-hero {
    padding: 110px 0 32px;
  }

  .archive-list { padding: 16px 16px 64px; }
  .archive-row {
    grid-template-columns: auto 1fr 1.5em;
    row-gap: 8px;
    padding: 20px 4px;
  }
  .archive-row__title { grid-column: 1 / 3; grid-row: 2; }
  .archive-row__arrow { grid-column: 3; grid-row: 2; }
  .archive-row__date { grid-column: 1; grid-row: 1; }
  .archive-row__tag { grid-column: 2; grid-row: 1; justify-self: start; }

  .article__table th,
  .article__table td {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .article__toc {
    padding: 20px 24px;
  }

  .article__highlight {
    padding: 20px 24px;
  }
}

/* ============================================
   v4 additions: callouts, dl, patterns, brand CTA
   ============================================ */
.article__dl { margin: 16px 0 28px; }
.article__dl dt {
  font-size: 0.92rem; font-weight: 700; color: #1a1a1a;
  margin-top: 20px; padding-left: 12px; border-left: 3px solid var(--accent-border);
  line-height: 1.6;
}
.article__dl dd { font-size: 0.89rem; line-height: 2; color: #444; margin: 8px 0 0 15px; }

.article__pattern {
  background: #fafaf9; border: 1px solid rgba(26,26,26,0.08); border-radius: 12px;
  padding: 8px 24px; margin: 12px 0 28px;
}

.article__callout {
  border-radius: 14px; padding: 24px 28px; margin: 28px 0 32px;
  border: 1px solid var(--accent-border); background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.article__callout--point { background: linear-gradient(135deg, #faf8f4 0%, #f5f3ee 100%); border-left: 4px solid var(--accent); }
.article__callout--case { border-top: 3px solid #1a1a1a; }
.article__callout-label {
  display: inline-block; font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; color: #fff;
  background: #1a1a1a; border-radius: 4px; padding: 3px 10px; margin-bottom: 10px;
}
.article__callout--point .article__callout-label { background: var(--accent); color: #1a1a1a; }
.article__callout-title { font-size: 1rem; font-weight: 700; color: #1a1a1a; line-height: 1.6; margin-bottom: 12px; }
.article__callout .article__list { margin-bottom: 4px; }
.article__figure { margin: 4px 0 16px; border-radius: 10px; overflow: hidden; line-height: 0; }
.article__figure img { width: 100%; height: auto; }
.article__callout-link { margin-top: 4px; font-size: 0.8rem; font-weight: 600; }
.article__callout-link a { color: #7a6228; border-bottom: 1px solid var(--accent-border); padding-bottom: 1px; }
.article__callout-link a:hover { opacity: 0.75; }

.article__cta--brand { margin: 44px 0 40px; padding: 36px 40px; text-align: center; }
.article__cta-label {
  display: inline-block; font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; color: #1a1a1a;
  background: var(--accent); border-radius: 20px; padding: 4px 16px; margin-bottom: 16px;
}
.article__cta--brand .article__cta-text { font-size: 0.9rem; color: rgba(255,255,255,0.85); }

@media (max-width: 600px) {
  .article__callout { padding: 20px 18px; }
  .article__pattern { padding: 4px 16px; }
  .article__cta--brand { padding: 28px 20px; }
  .article__dl dd { margin-left: 0; }
  .col-hero__title { font-size: 1.2rem; }
}
