@charset "utf-8";
:root {
  --main-color: #0099cc;
  --accent-color: #00bcd4;
  --main-color: #003573;
  --bg-color: #f9f9fb;
  --text-color: #333;
  --border-color: #e0e0e0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
}

header {
  background: var(--main-color);
  color: #fff;
  padding: 1.2rem 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 1.6rem;
  margin: 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--main-color);
}

.category-card p {
  font-size: 0.9rem;
  color: #666;
}

footer {
  background: #fff;
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.2rem;
  }
  .category-card h2 {
    font-size: 1rem;
  }
}

/*-------------------------------------
            search bar
--------------------------------------*/
#live-search-results {
  border: 1px solid #ccc;
  background: #fff;
  position: absolute;
  top: 120%;
  z-index: 999;
  width: 100%;
}

.live-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.live-item a {
  text-decoration: none;
  color: #000;
}

.live-item:hover {
  background: #f5f5f5;
}

.search-form {
  display: flex;
  position: relative;
  width: 90%;
  max-width: 500px;
  margin: 1rem auto;
  button {
    width: 65px;
    border: solid 2px #003573;
    background-color: #003573;
    color: #fff;
    padding: 0.5rem 0.7rem;
    border-radius: 0 100vh 100vh 0;
    cursor: pointer;
  }
}

#search-input {
  border: solid 2px #003573;
  border-radius: 100vh 0 0 100vh;
  width: 80%;
  padding: 0.5rem 1rem;
}

/*-------------------------------------
      category
--------------------------------------*/

.faq-archive {
  width: 90%;
  max-width: 1600px;
  margin: 2rem auto;
}

.faq-archive h1 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--main-color);
}

.faq-archive p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.faq-item:first-of-type {
  border-top: 1px solid #ddd;
}

.faq-item {
  padding: 20px 0;
}

.faq-item a {
  color: #1F73B7;
}

.faq-item a:hover {
  text-decoration: underline;
}

/*-------------------------------
  article template
--------------------------------*/

.faq-single {
  width: 90%;
  margin: 3rem auto;
  max-width: 1200px;
  h2 {
    color: #003673;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  .content p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .faq-single {
    h2 {
      font-size: 1.1rem;
    }
    .content p {
      font-size: 0.8rem;
    }
  }
}
/*-------------------------------------
      search results
--------------------------------------*/

.search-results-container {
  width: 90%;
  max-width: 1600px;
  margin: 2rem auto;
}

.search-results {
  width: 90%;
  max-width: 1600px;
  margin: 2rem auto;
}

.search-results h1 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--main-color);
}

.search-results p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.search-results li:first-of-type {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.search-results a {
  padding: 20px 0;
}

.search-results a {
  color: #1F73B7;
}

.search-results a:hover {
  text-decoration: underline;
}

/* Container styling to match your structure and apply to this specific page */
.search-results-container {
  padding: 20px;
  font-family: sans-serif; /* Example font */
}

.search-results-container h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

.search-results-container .search-results {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.search-results-container .search-results li {
  margin-bottom: 20px;
}

.search-results-container .search-results h2 {
  font-size: 18px;
  margin: 0 0 5px;
}

.search-results-container .search-results h2 a {
  color: #0073aa; /* Standard search result title blue */
  text-decoration: none;
}

.search-results-container .search-results h2 a:hover {
  text-decoration: underline;
}

.search-results-container .search-results p {
  color: #666;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* --- Styled Pagination Starts Here --- */

.search-results-container .pagination {
  display: inline-flex; /* Use inline-flex to contain the bar width */
  align-items: center;
  border: 1px solid #ccc; /* Grey border for the bar */
  border-radius: 50px; /* Pill shape */
  background-color: #fff; /* White background */
  padding: 0;
  overflow: hidden; /* Important for rounding corners and clipping content */
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional shadow like your image */
}

/* Base style for all items within the pagination bar (numbers, labels, dots) */
.search-results-container .pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #999; /* Pale grey text for labels and non-active/non-hovered items */
  padding: 10px 20px; /* Adjust padding for visual balance */
  border-right: 1px solid #eee; /* Vertical grey separators */
  transition: background-color 0.2s, color 0.2s;
  font-size: 16px;
  font-weight: normal; /* Labels are normal */
}

/* Remove separator on the very last element */
.search-results-container .pagination .page-numbers:last-child {
  border-right: none;
}

/* --- Current Page Styling (Active state) --- */
.search-results-container .pagination .page-numbers.current {
  background-color: #003673; /* Your blue background */
  color: #fff; /* White text */
  font-weight: bold; /* Bold text like your image */
}

/* --- Hover State Styling for *all* clickable items (links) --- */
.search-results-container .pagination a.page-numbers:hover {
  color: #003673; /* Your blue text on hover */
  background-color: #f5f5f5; /* Light greyish background on hover */
}

/* --- Label Specifics (Prev/Next) to match paler grey base text --- */
.search-results-container .pagination .prev.page-numbers,
.search-results-container .pagination .next.page-numbers {
  color: #999;
}
/* Ensure labels maintain hover effect, but keep base text paler grey */
.search-results-container .pagination a.prev.page-numbers:hover,
.search-results-container .pagination a.next.page-numbers:hover {
   color: #7a98b9; /* Slightly brighter blue-grey on hover for labels */
   background-color: #f5f5f5; /* Maintain hover bg */
}