/* ============================================
   METΔBREWS 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: 'Inter', 'Noto Sans JP', 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-header__nav a,
.col-header__logo-text,
.col-hero__label,
.col-hero__title,
.article__h2,
.article__h3,
.archive-title,
.archive-label,
.col-footer__nav a {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
}

/* ============================================
   HEADER
   ============================================ */
.col-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 72px;
  display: flex;
  align-items: center;
}

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

.col-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.col-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.col-header__nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #ccc;
  transition: color 0.3s;
}

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

.col-header__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #fff;
  color: #1a1a1a !important;
  border-radius: 60px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.3s, transform 0.3s;
}

.col-header__contact-btn:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

/* ============================================
   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: #999;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

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

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

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

.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: #9a7d3a;
  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: #999;
}

.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);
}

/* --- 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', 'Noto Sans JP', 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', 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: var(--accent);
  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: #9a7d3a;
  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', 'Noto Sans JP', 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', 'Noto Sans JP', 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', 'Noto Sans JP', 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', 'Noto Sans JP', 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: #9a7d3a;
  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: #999;
  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;
}

/* --- Card Grid --- */
.archive-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26,26,26,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.archive-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.archive-card__thumb-icon {
  width: 48px;
  height: 48px;
  stroke: rgba(255,255,255,0.3);
  fill: none;
}

.archive-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.archive-card__tag {
  display: inline-block;
  width: fit-content;
  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: #9a7d3a;
  margin-bottom: 14px;
}

.archive-card__title {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 12px;
}

.archive-card__excerpt {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.8;
  flex: 1;
}

.archive-card__date {
  font-size: 0.72rem;
  color: #bbb;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(26,26,26,0.06);
}

/* ============================================
   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.4);
  margin-top: 8px;
}

.col-footer__sublogo-img {
  height: 15px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  display: block;
  margin-top: 8px;
  margin-left: 12px;
}

.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.3);
  letter-spacing: 0.04em;
}

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

/* Tablet */
@media (max-width: 960px) {
  .col-header__nav {
    display: none;
  }

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

  .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-header {
    height: 60px;
  }

  .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;
  }

  .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-grid {
    grid-template-columns: 1fr;
    padding: 32px 16px 64px;
  }

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

  .article__toc {
    padding: 20px 24px;
  }

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