/*
Theme Name: Gaku Book Theme
Author: 岳さん
Version: 1.0
*/

body {
  margin: 0;
  font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: #e0f7fa;
}

/* ヘッダー全体 */
.site-header {
  background: linear-gradient(to right, #d0f0ff, #b2ebf2);
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  font-size: 2rem;
  font-weight: bold;
  color: #006064;
  margin: 0;
  font-family: 'Georgia', serif;
}

/* メニュー全体（PC） */
.bookmark-menu {
  display: flex;
  gap: 1rem;
}

/* WordPressメニュー構造に対応 */
.bookmark-menu ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bookmark-menu li {
  margin: 0;
}

.bookmark-menu li::marker {
  content: none;
  display: none;
}

/* メニューリンク */
.bookmark-menu a {
  text-decoration: none;
  font-weight: bold;
  color: #004d40;
  background: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: inset 0 -2px 0 #80deea;
  transition: background 0.3s ease;
  display: inline-block;
}

.bookmark-menu a:hover {
  background: #e0f2f1;
}

/* ハンバーガーアイコン */
.menu-toggle {
  display: none;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 200;
  padding: 0;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #006064;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle span:nth-child(1) {
  transform: translate(-50%, -10px);
}
.menu-toggle span:nth-child(2) {
  transform: translate(-50%, 0);
}
.menu-toggle span:nth-child(3) {
  transform: translate(-50%, 10px);
}

.menu-toggle.open span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

@media (max-width: 768px) {
  nav.bookmark-menu {
    position: fixed;
    inset: 0; /* top, right, bottom, left を一括指定 */
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8); /* 半透明白 */
    backdrop-filter: blur(8px); /* 背景ぼかし効果 */
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 150;

    justify-content: center;
    align-items: center;
  }

  nav.bookmark-menu.open {
    transform: translateY(0);
  }

  nav.bookmark-menu ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
  }

  nav.bookmark-menu a {
    background: none;
    color: #004d40;
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-radius: 0;
    box-shadow: none;
    font-weight: bold;
    transition: color 0.3s ease;
  }

  nav.bookmark-menu a:hover {
    color: #00796b;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
  }
}
}