/**
 * Wine Serenity Journal - Layout
 * ヘッダー・フッター・メインレイアウト
 */

/* ========================================
   ヘッダー
   ======================================== */

.wsj-header {
  background-color: #6b2d5c;
  color: #fafafa;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wsj-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.wsj-header__logo a {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #fafafa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.wsj-header__logo a:hover {
  color: #d4af37;
}

/* ナビゲーション（PC） */
.wsj-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.wsj-header__nav a {
  color: #fafafa;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.wsj-header__nav a:hover {
  color: #d4af37;
}

.wsj-header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d4af37;
  transition: width 0.3s ease;
}

.wsj-header__nav a:hover::after {
  width: 100%;
}

/* ハンバーガーメニューボタン（SP） */
.wsj-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
}

.wsj-header__toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fafafa;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* メニューオープン時のアニメーション */
.wsj-header__toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.wsj-header__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.wsj-header__toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   フッター
   ======================================== */

.wsj-footer {
  background-color: #2c2c2c;
  color: #fafafa;
  padding: 60px 0 30px;
}

.wsj-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.wsj-footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.wsj-footer__section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #d4af37;
}

.wsj-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wsj-footer__nav a {
  color: #fafafa;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.wsj-footer__nav a:hover {
  color: #d4af37;
}

.wsj-footer__copy {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #999999;
}

/* ========================================
   メインコンテンツエリア
   ======================================== */

.wsj-main {
  min-height: 100vh;
}

/* ========================================
   レスポンシブ（モバイル）
   ======================================== */

@media (max-width: 1023px) {
  /* ヘッダー：ハンバーガーメニュー表示 */
  .wsj-header__toggle {
    display: flex;
  }
  
  .wsj-header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #6b2d5c;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .wsj-header__nav.is-open {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
  }
  
  .wsj-header__nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .wsj-header__nav a:last-child {
    border-bottom: none;
  }
  
  .wsj-header__nav a::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .wsj-header__inner {
    min-height: 60px;
  }
  
  .wsj-header__logo a {
    font-size: 20px;
  }
  
  .wsj-header__toggle {
    width: 26px;
    height: 20px;
  }
  
  .wsj-header__nav {
    top: 60px;
  }
  
  .wsj-footer {
    padding: 40px 0 20px;
  }
  
  .wsj-footer__content {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .wsj-footer__copy {
    font-size: 12px;
  }
}

