/* Search additions only. Loaded after the existing theme stylesheet. */ 
.gp-search-sr { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip-path: inset(50%); 
  white-space: nowrap; 
} 
.gp-search-form { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  min-width: 0; 
  margin: 0; 
} 
.gp-search-input, .gp-search-sort { 
  color: #333; 
  background: #fff; 
  border: 1px solid #888; 
  border-radius: 3px; 
  min-height: 44px; 
  padding: 9px 10px; 
  font: inherit; 
  font-size: 16px; 
  line-height: 1.5; 
} 
.gp-search-input { flex: 1; min-width: 0; width: 100%; } 
.gp-search-input::placeholder { color: #666; opacity: 1; } 
.gp-search-submit { 
  flex-shrink: 0; 
  min-width: 52px; 
  min-height: 44px; 
  padding: 9px 12px; 
  border: 1px solid #333; 
  border-radius: 3px; 
  background: #333; 
  color: #fff; 
  font: inherit; 
  font-size: 16px; 
  cursor: pointer; 
  line-height: 1.5; 
} 
.gp-search-submit:hover { background: #555; } 
.gp-search-form :focus-visible, 
.gp-search-results a:focus-visible, 
.gp-search-mobile summary:focus-visible { 
  outline: 3px solid #256a9b; 
  outline-offset: 3px; 
} 
.header__nav-list { align-items: center; gap: clamp(12px, 2vw, 30px); } 
.header__nav-list > .gp-search-nav { min-width: 0; flex: 0 1 260px; } 
.gp-search-nav .gp-search-form { text-align: left; } 
.gp-search-nav .gp-search-input { width: 170px; } 
.gp-search-mobile { display: none; } 
 
/* The existing header opens <main>; search.php supplies no second <main>. */ 
.gp-search-results { 
  max-width: 1040px; 
  padding-top: 32px; 
  padding-bottom: 64px; 
  font-size: 16px; 
  line-height: 1.7; 
  overflow-wrap: anywhere; 
} 
body.search .breadcrumb { padding-top: 210px; } 
.gp-search-heading { font-size: clamp(24px, 3vw, 32px); line-height: 1.5; margin: 0 0 24px; } 
.gp-search-results > .gp-search-form { flex-wrap: wrap; margin-bottom: 20px; } 
.gp-search-results .gp-search-input { flex-basis: 240px; } 
.gp-search-sort-label { font-size: 14px; } 
.gp-search-sort { width: auto; max-width: 100%; appearance: auto; } 
.gp-search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; } 
.gp-search-filters button { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  min-height: 44px; 
  padding: 8px 16px; 
  border: 1px solid #aaa; 
  border-radius: 3px; 
  text-decoration: none; 
  font: inherit; 
  color: inherit; 
  background: #fff; 
  cursor: pointer; 
} 
.gp-search-filters button[aria-pressed="true"] { background: #333; color: #fff; border-color: #333; } 
.gp-search-filters button:focus-visible { outline: 3px solid #256a9b; outline-offset: 3px; } 
/* Reserve space in the flex layout; do not translate over neighbouring links. */ 
@media (min-width: 1101px) { 
  .header__nav-list > .gp-search-nav { margin-left: 16px; } 
} 
.gp-search-summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; } 
.gp-search-return { display: flex; flex-wrap: wrap; gap: 16px; } 
.gp-search-return a, .gp-search-empty a { display: inline-block; padding: 10px 0; text-decoration: underline; } 
.gp-search-return [hidden] { display: none; } 
.gp-search-item { 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) 200px; 
  gap: 28px; 
  align-items: start; 
  padding: 28px 0; 
  border-bottom: 1px solid #ddd; 
} 
.gp-search-copy { min-width: 0; } 
.gp-search-type { display: inline-block; background: #f2f1ee; padding: 3px 10px; font-size: 13px; margin-bottom: 8px; } 
.gp-search-title { font-size: 21px; line-height: 1.6; margin: 0 0 8px; } 
.gp-search-title a { text-decoration: underline; text-underline-offset: 3px; } 
.gp-search-excerpt { font-size: 16px; margin: 0 0 10px; } 
.gp-search-date { font-size: 13px; color: #666; } 
.gp-search-image { min-width: 0; } 
.gp-search-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; } 
.gp-search-empty { padding: 32px 0; border-top: 1px solid #ddd; } 
.gp-search-empty p + p { margin-top: 12px; } 
.gp-search-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 0; margin: 0; list-style: none; } 
.gp-search-pagination a, .gp-search-pagination span { 
  display: inline-flex; 
  justify-content: center; 
  align-items: center; 
  min-width: 44px; 
  min-height: 44px; 
  padding: 8px; 
  border: 1px solid #aaa; 
  border-radius: 3px; 
} 
.gp-search-pagination .current { background: #333; color: #fff; } 
/* Account for the WordPress admin toolbar when testing while logged in. */ 
body.admin-bar .header { top: 32px; } 
 
@media (min-width: 768px) and (max-width: 1100px) { 
  .header__nav-list { 
    flex-wrap: nowrap; 
    column-gap: 8px; 
    row-gap: 0; 
  } 

  .header__nav-list > .gp-search-nav { 
    flex: 0 1 155px; 
    min-width: 145px; 
    margin-left: 4px; 
  } 

  .gp-search-nav .gp-search-form { 
    gap: 6px; 
  } 

  .gp-search-nav .gp-search-input { 
    width: 90px; 
    min-width: 0; 
    padding-left: 8px; 
    padding-right: 8px; 
  } 

  .gp-search-nav .gp-search-submit { 
    min-width: 48px; 
    padding-left: 8px; 
    padding-right: 8px; 
  } 

  body.search .breadcrumb { 
    padding-top: 210px; 
  } 
} 
@media (max-width: 782px) { 
  body.admin-bar .header { top: 46px; } 
} 
@media (max-width: 767px) { 
  .header__lang { display: none; } 
  .header__top { padding-right: 92px; } 
  .header__logo { margin-left: 0; margin-right: auto; max-width: 100%; } 
  .gp-search-mobile { display: block; } 
  .gp-search-mobile summary { 
    position: fixed; 
    right: 52px; 
    top: calc(2.5rem - 10px); 
    /* Existing drawer is 5000: search must stay operable so it can close the drawer. */ 
    z-index: 6000; 
    width: 44px; 
    min-height: 44px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 1px; 
    list-style: none; 
    font-size: 10px; 
    line-height: 1.2; 
    background: #fff; 
    border-radius: 3px; 
    cursor: pointer; 
  } 
  .gp-search-mobile summary::-webkit-details-marker { display: none; } 
  .gp-search-mobile svg { width: 21px; height: 21px; } 
  .header.is-shrink .gp-search-mobile summary { top: calc(.9375rem - 10px); } 
  .gp-search-mobile-panel { 
    position: absolute; 
    top: 100%; 
    left: 12px; 
    right: 12px; 
    padding: 16px; 
    background: #fff; 
    border: 1px solid #ddd; 
    box-shadow: 0 4px 10px #0002; 
  } 
  body.admin-bar .hamburger { top: calc(2.5rem + 46px); } 
  body.admin-bar .header.is-shrink .hamburger { top: calc(.9375rem + 46px); } 
  body.admin-bar .gp-search-mobile summary { top: calc(2.5rem + 36px); } 
  body.admin-bar .header.is-shrink .gp-search-mobile summary { top: calc(.9375rem + 36px); } 
  body.search .breadcrumb { padding-top: 135px; } 
  .gp-search-results { padding-top: 24px; padding-bottom: 40px; } 
  .gp-search-results .gp-search-input { flex-basis: 100%; } 
  .gp-search-sort-label { flex-basis: 100%; } 
  .gp-search-sort { flex: 1; min-width: 0; } 
  .gp-search-item { grid-template-columns: minmax(0, 1fr) 88px; gap: 14px; padding: 24px 0; } 
  .gp-search-results .gp-search-title { font-size: 18px !important; } 
  .gp-search-excerpt { font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; } 
  .gp-search-filters button { padding-left: 12px; padding-right: 12px; } 
} 
@media screen and (max-width: 767px) { 
  .header { 
    background: #fff; 
    box-shadow: 0 4px 0 #fff; 
  } 
} 
/* PCで横幅が少し狭い場合の検索欄調整 */ 
@media (min-width: 1101px) and (max-width: 1300px) { 
  .gp-search-nav { 
    margin-left: 8px; 
  } 
 
  .gp-search-nav input[type="search"] { 
    width: 110px; 
  } 
 
  .gp-search-nav button { 
    padding-left: 10px; 
    padding-right: 10px; 
  } 
}