/* ==============================================
   Front Page: フロントページ専用スタイル
   SWELLの影響を受けない独自デザイン
   記事ページではこのCSSは読み込まれない
============================================== */

/* SWELLのデフォルトヘッダー・フッターを非表示（フロントページのみ） */
.l-header,
.l-footer {
  display: none !important;
}

/* ヘッダー */
.article-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 12px 0;
}

.article-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.article-header__logo img {
  height: 40px;
  width: auto;
  display: block;
}

.article-header__nav--desktop {
  display: none;
}

.article-header__nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-header__nav-list a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

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

/* ハンバーガーメニューボタン */
.article-header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.article-header__hamburger-line {
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
  display: block;
}

.article-header__hamburger.is-active .article-header__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.article-header__hamburger.is-active .article-header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.article-header__hamburger.is-active .article-header__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ドロワーメニュー */
.article-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  pointer-events: none;
}

.article-drawer.is-active {
  pointer-events: auto;
}

.article-drawer__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.article-drawer__inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 80%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 60px 24px 24px;
}

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

.article-drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-drawer__close-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #333;
}

.article-drawer__close-line:nth-child(1) {
  transform: rotate(45deg);
}

.article-drawer__close-line:nth-child(2) {
  transform: rotate(-45deg);
}

.article-drawer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-drawer__nav-list li {
  margin-bottom: 16px;
}

.article-drawer__nav-list a {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
  transition: color 0.25s ease;
}

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

/* フロントページでヘッダーを表示 */
body.home .article-header,
body:not(.single) .article-header {
  display: block !important;
}

/* フッター */
.article-footer {
  background: #2d2d2d;
  color: #fff;
  padding: 60px 0 40px;
  margin-top: 80px;
}

.article-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-footer__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.article-footer__brand {
  flex: 1;
}

.article-footer__site-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.article-footer__tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.article-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.article-footer__link-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
}

.article-footer__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-footer__link-list li {
  margin-bottom: 12px;
}

.article-footer__link-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.article-footer__link-list a:hover {
  color: #fff;
}

/* レスポンシブ */
@media screen and (min-width: 768px) {
  .article-header__nav--desktop {
    display: block;
  }
  
  .article-header__hamburger {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .article-footer__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .article-footer__links {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
