/* ==============================================
   独自ヘッダー・ドロワー（単体記事以外）
============================================== */

body.article-header-active {
  padding-top: 72px;
}

.article-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.article-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}

.article-header__logo {
  flex-shrink: 0;
}

.article-header__logo a {
  display: block;
  line-height: 0;
}

.article-header__logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.article-header__nav--desktop {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.article-header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
}

.article-header__nav-list a {
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.article-header__nav-list a:hover {
  color: #8b5cf6;
}

.article-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.article-header__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  border-radius: 1px;
  margin: 0 auto;
}

@media screen and (max-width: 992px) {
  .article-header__nav--desktop {
    display: none;
  }

  .article-header__hamburger {
    display: flex;
  }
}

/* ドロワー */
.article-drawer {
  position: fixed;
  inset: 0;
  z-index: 10060;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.article-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.article-drawer__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.article-drawer.is-open .article-drawer__bg {
  opacity: 1;
}

.article-drawer__inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 56px 24px 32px;
  box-sizing: border-box;
  overflow-y: auto;
}

.article-drawer.is-open .article-drawer__inner {
  transform: translateX(0);
}

.article-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.article-drawer__close-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 1px;
}

.article-drawer__close-line:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.article-drawer__close-line:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.article-drawer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-drawer__nav-list a {
  display: block;
  padding: 14px 0;
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.article-drawer__nav-list a:hover {
  color: #8b5cf6;
}

body.article-drawer-open {
  overflow: hidden;
}
