@charset "UTF-8";

/* サイトマップページ専用スタイル */

.sitemap-page .sitemap-page-inner {
  max-width: 1000px;
  width: 94%;
  min-height: calc(100vh - 394px);
  margin: auto;
  padding-bottom: 60px;
}

.sitemap-page .sitemap-index {
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 15px 20px;
  background-color: #2E3031;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 4px;
}

/* 検索フィルター */
.sitemap-search-box {
  position: relative;
  margin-bottom: 15px;
}

.sitemap-search-input {
  width: 100%;
  padding: 14px 45px 14px 45px;
  font-size: 1rem;
  border: 2px solid #444;
  border-radius: 8px;
  background-color: #1a1a1a;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sitemap-search-input::placeholder {
  color: #888;
}

.sitemap-search-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.sitemap-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.sitemap-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background-color: #444;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sitemap-search-clear:hover {
  background-color: #666;
}

.sitemap-search-result {
  margin-bottom: 20px;
  padding: 10px 15px;
  background-color: #2a4a2a;
  color: #8fbc8f;
  border-radius: 4px;
  font-size: 0.9rem;
}

.sitemap-search-result.no-result {
  background-color: #4a2a2a;
  color: #bc8f8f;
}

/* マッチしたアイテムのハイライト */
.sitemap-match > a {
  background-color: rgba(255, 215, 0, 0.1);
}

/* カテゴリーセクション */
.sitemap-section {
  margin-bottom: 30px;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.sitemap-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 15px 20px;
  background-color: #2E3031;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border-bottom: 2px solid #444;
}

.sitemap-category-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.sitemap-category-title a:hover {
  color: #ffd700;
}

.category-icon {
  font-size: 1.2rem;
}

/* ページリスト */
.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-list-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.sitemap-list-main .sitemap-item {
  width: 50%;
  border-bottom: none;
}

@media (max-width: 600px) {
  .sitemap-list-main .sitemap-item {
    width: 100%;
  }
}

.sitemap-item {
  border-bottom: 1px solid #333;
}

.sitemap-item:last-child {
  border-bottom: none;
}

.sitemap-item > a {
  display: block;
  padding: 12px 20px;
  color: #e0e0e0;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
  padding-left: 35px;
}

.sitemap-item > a::before {
  content: "›";
  position: absolute;
  left: 20px;
  color: #888;
  font-size: 1.2rem;
  line-height: 1;
}

.sitemap-item > a:hover {
  background-color: #2a2a2a;
  color: #ffd700;
}

.sitemap-item > a:hover::before {
  color: #ffd700;
}

/* 孫ページリスト */
.sitemap-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #151515;
  border-top: 1px solid #333;
}

.sitemap-subitem {
  border-bottom: 1px solid #2a2a2a;
}

.sitemap-subitem:last-child {
  border-bottom: none;
}

.sitemap-subitem a {
  display: block;
  padding: 10px 20px 10px 50px;
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
}

.sitemap-subitem a::before {
  content: "└";
  position: absolute;
  left: 35px;
  color: #666;
}

.sitemap-subitem a:hover {
  background-color: #222;
  color: #ffd700;
}

/* ページ数カウント */
.sitemap-count {
  margin-top: 30px;
  padding: 15px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  background-color: #1a1a1a;
  border-radius: 4px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .sitemap-page .sitemap-index {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .sitemap-search-input {
    padding: 12px 40px 12px 40px;
    font-size: 0.95rem;
  }

  .sitemap-search-icon {
    left: 12px;
    font-size: 1rem;
  }

  .sitemap-search-clear {
    right: 8px;
    width: 26px;
    height: 26px;
  }

  .sitemap-category-title {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .sitemap-item > a {
    padding: 10px 15px 10px 30px;
    font-size: 0.95rem;
  }

  .sitemap-item > a::before {
    left: 15px;
  }

  .sitemap-subitem a {
    padding: 8px 15px 8px 40px;
    font-size: 0.85rem;
  }

  .sitemap-subitem a::before {
    left: 25px;
  }
}
