@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  background-color: #1a1a2e;
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ナビゲーション */
.nav-logo {
  display: block;
  padding: 28px 0 12px 1em;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  width: min(1080px, calc((100vh - 136px) * 0.75));
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: stretch;
  padding: 0 0 0 1em;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  width: min(1080px, calc((100vh - 136px) * 0.75));
  margin: 0 auto;
}

.nav-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  padding: 10px 20px 14px;
  display: block;
}

.nav-links a:first-child {
  padding-left: 0;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  color: rgba(255, 255, 255, 0.9);
}

.nav-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  user-select: none;
  display: flex;
  align-items: center;
}

/* ブレッドクラム */
.breadcrumb {
  padding: 10px 0 12px 1em;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  width: min(1080px, calc((100vh - 136px) * 0.75));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-path {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.breadcrumb-path::-webkit-scrollbar {
  display: none;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 6px;
}

/* 記事ページ：上部戻りリンク */
.post-back {
  display: inline-block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  padding: 20px 0 0;
}

.post-back:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* 記事ページ：前後ナビ */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  gap: 20px;
}

.post-nav a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  max-width: 45%;
  line-height: 1.5;
}

/* ← 側: flex配置で矢印を行頭に固定 */
.post-nav-older {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.22em;
}
.post-nav-older .nav-arr {
  flex-shrink: 0;
}

/* → 側: grid配置で矢印を必ず1行目右端に固定、タイトル折り返し時も矢印列を確保 */
.post-nav-newer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 0.25em;
}
.post-nav-newer .nav-title {
  text-align: right;
}

.post-nav a:hover {
  color: #fff;
}

/* ページネーション省略記号 */
.pg-dots {
  width: 28px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: -1px;
}

/* フィルタードロップダウン */
.breadcrumb-filters {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.filter-toggle {
  font-size: 10px;
  padding: 2px 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Noto Sans JP', sans-serif;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}
.filter-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}
.filter-toggle.active {
  color: #fff;
  border-color: #fff;
}
.filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1a2e;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 6px 0;
  min-width: 130px;
  z-index: 50;
}
.filter-dropdown.open { display: block; }
.filter-dropdown a {
  display: block;
  padding: 5px 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  text-decoration: none;
}
.filter-dropdown a:hover { color: #fff; }
.filter-dropdown a.cur { color: rgba(255, 255, 255, 0.9); }

/* メインコンテンツ */
.content {
  width: min(1080px, calc((100vh - 136px) * 0.75));
  margin: 0 auto;
  padding: 32px 0 64px 1em;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  z-index: 100;
}

.fab:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* ハンバーガー共通 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(255,255,255,0.7);
  margin: 3px auto;
}

/* スマホメニュー共通 */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.97);
  z-index: 190;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 40px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 22px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
}

.mobile-menu a .arrow {
  font-size: 40px;
  color: rgba(255,255,255,0.75);
  line-height: 1;
}

.mobile-menu a.menu-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.mobile-menu a:hover {
  color: #fff;
}

.mobile-menu a:hover .arrow {
  color: #fff;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  background: none;
  z-index: 210;
}

/* フッター */
footer {
  padding: 24px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
  width: min(1080px, calc((100vh - 136px) * 0.75));
  margin: 0 auto;
}

/* レスポンシブ */
@media (max-width: 1120px) {
  .nav-logo {
    width: 100%;
    padding: 18px 20px 10px;
    font-size: 18px;
  }
  .nav-links {
    width: 100%;
    padding: 0 20px;
    border-bottom: none;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    font-size: 14px;
    padding: 8px 10px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-links a:first-child {
    padding-left: 0;
  }
  .nav-sep {
    padding: 0 4px;
    flex-shrink: 0;
  }
  .breadcrumb {
    width: 100%;
    padding: 10px 20px 12px;
  }
  .breadcrumb-path {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .breadcrumb-path::-webkit-scrollbar {
    display: none;
  }
  .content {
    width: 100%;
    padding: 24px 20px 56px;
  }
  footer {
    width: 100%;
    padding: 20px;
  }
  .hamburger {
    display: flex;
  }

  /* ページネーション：現在ページ枠をモバイルで視認しやすく */
  .pg-num.current {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.09);
  }
}