@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');


* {
  font-family: "Noto Sans JP", sans-serif!important;
  font-optical-sizing: auto;
  font-style: normal;
}


h2 {
  padding: 1rem 2rem!important;
  border-left: 8px solid #222222!important;
  background: #f4f4f4;
  font-weight: 900!important;
}

h3{
  font-weight: 900!important;

}

h1{
  font-weight: 900!important;

}


.hextra-toc a.active {
  color: #333333;
  font-weight: 900;
  border-left: 3px solid #c4af92;
  background: #eae0d5;
  padding: 0.5rem;
}


table {
  display: table !important;  /* ブロック表示の上書き */
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

th, td {
  text-align: center;
  padding: 8px;
  border: 1px solid #ccc;
  word-wrap: break-word;
}


.faq-block {
  margin-top: 2em;
  margin-bottom: 2em;
}

.faq-item {
  margin-bottom: 1.2em;
  background: #f9f9f9;
  border-left: 4px solid #0af;
  padding: 1em;
  border-radius: 8px;
}

.faq-question {
  font-weight: bold;
}

.faq-answer {
  margin-top: 0.5em;
}


hr {margin: 20px;
  color:#eee;}

.content {margin-bottom: 18px;}



 article > main > div.content > ul {
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: 0.5em;
  background: #fafbfc;
  padding: 1em 2em 1em 2em;
  margin-bottom: 1.5em;
  margin-left: 0;
}

article > main > div.content > ul > li {
  position: relative;
  padding-left: 2em;
  border-bottom: 1px dashed #d1d5db;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}

article > main > div.content > ul > li:last-child {
  border-bottom: none;
}

article > main > div.content > ul > li::before {
  content: '';
  position: absolute;
  left: 0.5em;
  top: 0.6em;
  width: 1em;
  height: 1em;
  background: no-repeat center/contain;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="green" stroke-width="3" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M5 13l4 4L19 7"/></svg>');
  display: inline-block;
}

/* スマホでのSNSアイコン非表示と検索バーの最適化 */
@media (max-width: 768px) {
  /* SNSアイコンをスマホでは非表示 */
  .sns-icons {
    display: none !important;
  }
  
  /* 検索バーをスマホで最適化 */
  .hextra-ja-search {
    width: 100% !important;
    max-width: none !important;
  }
  
  .hextra-ja-search-input {
    font-size: 16px !important; /* iOSでズームを防ぐ */
    padding: 14px 12px 14px 44px !important;
  }
  
  /* スマホでの検索結果表示を最適化 */
  .hextra-ja-search-results {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90vw !important;
    max-width: 90vw !important;
    max-height: 70vh !important;
    border-radius: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  }
  
  .hextra-ja-item {
    padding: 16px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* 検索候補の幅を画面幅に合わせて調整 */
  .hextra-ja-search-results .hextra-ja-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 16px 20px !important;
  }
  
  /* 検索候補のテキストを画面幅に合わせて調整 */
  .hextra-ja-search-results .hextra-ja-item .title,
  .hextra-ja-search-results .hextra-ja-item .excerpt {
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 検索候補のコンテナ全体を画面幅に */
  .hextra-ja-search-results > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* スクロールバーのスタイリング */
  .hextra-ja-search-results::-webkit-scrollbar {
    width: 6px !important;
  }
  
  .hextra-ja-search-results::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
  }
  
  .hextra-ja-search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 3px !important;
  }
  
  .hextra-ja-search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
  }
}

/* カテゴリラベルの横スクロール機能 */
.category-labels-container {
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px; /* スクロールバーのスペース */
}

.category-labels-container::-webkit-scrollbar {
  height: 4px;
}

.category-labels-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.category-labels-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.category-labels-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.category-labels-container .category-label {
  flex-shrink: 0;
  margin-right: 0.25rem;
}

/* スマホでのカテゴリラベル表示最適化 */
@media (max-width: 768px) {
  .category-labels-container {
    padding-bottom: 4px;
  }
  
  .category-labels-container::-webkit-scrollbar {
    height: 6px;
  }
}