/*
Theme Name: thebreathco.jp
Author: Nobuyoshi Kosada
Description: www.thebreathco.jp　wordpressテーマ.
Version: 1.0
*/


/*===============================================
archive-shoplist title
*===============================================*/

.contents.shoplist::before {
	aspect-ratio: 390/86;
}

.contents.shoplist .title::before {
	aspect-ratio: 350/64;
	background-image: url(./img/ttl_txt_shoplist.svg);
}

.page-title{
  text-align: center;
  font-size: 2em;
}


/*===============================================
archive-shoplist.php
*===============================================*/

.archive-shoplist{
  padding: 120px 0 0 0!important;
  width: 100%;
}

.archive-shoplist .container {
  padding: 20px;
}

.archive-shoplist .container h1.page-title {
  text-align: center;
  font-size: 30px;
}

/*ローカルナビ*/
.area-nav {
  margin: 2rem 0;
  padding: 2rem 0;
  text-align: center;
  border-top: thin solid #ccc;
  border-bottom: thin solid #ccc;
}

.area-nav .area-nav-ttl{
	margin-bottom: 1em;
}

.area-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  gap: 1rem;
}

.area-nav ul li.current a {
  font-weight: bold;
  color: #c00;
}

.area-nav li::after {
  content: ']'
}

.area-nav li::before {
  content: '['
}

.area-nav li a {
  text-decoration: underline;
  color: #333;
}

/*地域リスト*/
.area-term-list {
  margin-bottom: 3rem;
}

.parent-term-title {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  background-color: #eaffa4;
  padding: 1rem;
  scroll-margin-top: 120px;
}

.child-term-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
}

.child-term-list li {
  list-style: none;
}

.child-term-list li a{
  display: inline-block;
  padding: 0 1em;
}


/*===============================================
taxonomy.php
*===============================================*/

.shoplist-archive{
  padding: 0 15px;
}

.link-archive-list{
  padding: 10px 0 0 0;
}


ul.shoplist-list > li{
  border-bottom: thin solid #ccc;
  padding-bottom: 1em;
  margin-bottom: 1em;
}

ul.shoplist-list > li > ul li.shop-name {/*店舗名*/
  padding-left: 0;
  font-size: 120%;
  margin-bottom: 0.5em;
}

ul.shoplist-list > li > ul li{
  padding-left: 2em;
}

ul.shoplist-list > li > ul li:nth-child(2){ /*住所、電話番号*/
  display: flex;
  justify-content: space-between;
  color: #333;
  margin-bottom: 0.5em;
}

ul.shoplist-list > li > ul li:nth-child(3) a:link,
ul.shoplist-list > li > ul li:nth-child(3) a:visited
{ /*カテゴリリンク*/
  color: rgba(1,97,197,1.00);
}

.cat-name{
  font-weight: bold;
  color: #333;
}

.shop-list-link{
  text-align: center;
  margin: 50px 0 0 0;
}

/*ページネーション*/

/* =========================
   Pagination (the_posts_pagination)
   ========================= */
.pagination {
  margin: 32px 0 0;
}

.pagination .navigation.pagination {
  display: block;
  text-align: center;
  font-size: 0; /* inline-blockの隙間対策 */
}

.pagination .navigation.pagination .screen-reader-text {
  position: absolute;
  clip: rect(1px,1px,1px,1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* 共通ボタン */
.pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 38px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .06s ease;
}

/* ホバー/フォーカス */
.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
  background: #f6f6f6;
  border-color: #bbb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(56,142,60,.15); /* アクセシビリティ: フォーカスリング */
}

/* アクティブページ */
.pagination .page-numbers.current,
.pagination .page-numbers[aria-current="page"] {
  background: #B8DF34;        /* メインカラーに合わせて変更OK */
  border-color: #B8DF34;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

/* 矢印（prev/next/…） */
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  min-width: 40px;
  padding: 0 10px;
  font-weight: 700;
}

/* 省略記号 … */
.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
  height: auto;
  line-height: 1;
  padding: 0 4px;
  color: #777;
}

/* 押下アニメ（任意） */
.pagination .page-numbers:active {
  transform: translateY(1px);
}

/* スマホ調整 */
@media (max-width: 480px) {
  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    font-size: 13px;
    border-radius: 5px;
  }
  .pagination .nav-links {
    gap: 6px;
  }
}

/* 親ブロックが狭い場合のはみ出し対策（任意） */
.pagination .nav-links {
  max-width: 100%;
}


/*===============================================
search form
*===============================================*/

.shoplist-search { margin: 20px 20px 28px 20px; padding: 16px; border: 1px solid #eee; border-radius: 8px; }
.shoplist-search-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.shoplist-search-label { font-weight: 600; min-width: 6em; }
.shoplist-search-input { flex: 1 1 280px; max-width: 520px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; }
.shoplist-search-select { min-width: 240px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; }
.shoplist-search-actions { text-align: right; }
.shoplist-search-btn { padding: 8px 16px; border: none; border-radius: 6px; background: #333; color: #fff; cursor: pointer; }
.shoplist-search-btn:hover { opacity: .9; }

.search-count{
  text-align: center;
  margin-bottom: 30px;
}


/*===============================================
404ページ
*===============================================*/

.error-404{
  padding: 200px 0 0 0!important;
  width: 100%;
}

.error-404 .page-title{
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 50px;
}

.error-404 .page-title span{
  display: block;
  font-size: 50%;
}

.error-404 .page-content{
  width: 90%!important;
  background-color: #fff!important;
  margin: auto;
  text-align: center;
}

.error-404 .page-content .btn-toppage{
  margin-top: 50px!important;
}

.error-404 .page-content .btn-toppage a{
  color: blue;
}