.archive-title {
  margin-top: 1em;
  margin-bottom: 0;
}

.archive .entry-content.stk-mb_ss {
  margin-bottom: 0 !important;
}

.category-ranking {
  margin-bottom: 1.6em;
}
@media only screen and (max-width: 767px) {
  .category-ranking .wp-block-heading {
    font-size: clamp(14px, 4.7vw, 18px) !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em !important;
  }
}
@media only screen and (min-width: 981px) {
  .category-ranking {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  .category-ranking .wp-block-group__inner-container {
    max-width: 1166px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media only screen and (max-width: 980px) {
  .category-ranking {
    margin-left: var(--stk-el-margin-rl, -4vw);
    margin-right: var(--stk-el-margin-rl, -4vw);
  }
}

.archive.category #inner-content {
  padding-top: 0;
  margin-top: 0 !important;
}
@media only screen and (min-width: 981px) {
  .archive.category .alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
}

.archives-list {
  margin-top: 1.5em !important;
}
.archives-list .entry-title {
  font-weight: normal;
}
.archives-list.card-list {
  --card-padding: 0.5em;
}
.archives-list.card-list .post-list__link {
  box-shadow: none !important;
  padding: var(--card-padding);
}
.archives-list.card-list .eyecatch {
  margin: calc(var(--card-padding) * -1) calc(var(--card-padding) * -1) var(--card-padding);
}

.taxonomy-description.entry-content {
  margin-bottom: 2em;
  padding: 1.25em 1.5em;
  border-radius: 12px;
  background-color: #f3f6ec;
  font-size: 15px;
  line-height: 1.9;
}
.taxonomy-description.entry-content p {
  margin: 0 0 0.6em;
  font-size: inherit;
  line-height: inherit;
}
.taxonomy-description.entry-content p:last-child {
  margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
  .taxonomy-description.entry-content {
    padding: 1em 1.125em;
    font-size: 14px;
    line-height: 1.85;
  }
}
/* ---------------------------------------------
   県トップ（pref_top.php ・ 2026-10-04）
   ヘッダー直下のメインイメージの帯と、一覧のあとの市区町村・市民ライター・募集・全国の新着
   --------------------------------------------- */
/* 帯をヘッダーの直下に付ける（親テーマの #inner-content の上の余白を外す。印は pref_top.php の body_class）。
   PC の margin は親テーマの #content:not(.lp-wrap) #inner-content が持っているので、それより強く指定する */
.tocotoco-is-pref-top #content #inner-content,
.tocotoco-is-pref-top #content:not(.lp-wrap) #inner-content {
  margin-top: 0;
  padding-top: 0;
}

/* 帯の見せ方は全国トップのスライドショー（front_page.* の #slideshow .tocotoco-pref-cover）と同じにする
   （2026-10-05・戸井「県トップのメインイメージも、トップと同じ表示方法に」）。全幅・PC は画面の 90％・
   スマホ（480px 以下）は写真の横幅が全部入る 3:2・一様な暗幕・文字は中央。県名は h1 のまま */
.tocotoco-pref-band {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin: 0 calc(-50vw + 50%) 1.5em;
  background: #dcdad2;
  color: #fff;
}

.tocotoco-pref-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.tocotoco-pref-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tocotoco-pref-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  max-width: 1166px;
  margin: 0 auto;
  padding: 0 4vw;
  box-sizing: border-box;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

@media only screen and (max-width: 480px) {
  .tocotoco-pref-band__inner {
    min-height: 66.6666666667vw;
  }
}
.tocotoco-pref-band__kicker {
  margin: 0 0 0.3em;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.tocotoco-pref-band__title {
  margin: 0;
  font-size: clamp(2em, 6vw, 3.6em);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #fff;
}

.tocotoco-pref-band__state {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.1em 0.6em;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  font-size: 0.45em;
  font-weight: normal;
  vertical-align: middle;
}

.tocotoco-pref-band__lead {
  max-width: 36em;
  margin: 0.6em 0 0;
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.7;
}

.tocotoco-pref-band__credit {
  position: absolute;
  right: 4vw;
  bottom: 10px;
  z-index: 1;
  margin: 0;
  font-size: 11px;
  opacity: 0.85;
}

/* 帯のスライド（カテゴリーごとの最新記事の写真・2026-10-05）。県名と紹介の1文（__inner）は写真の上に出したまま、
   写真ごとの見出し（カテゴリー名＋記事名）と一時停止ボタンを下に置く。フェードは全国トップと同じ3秒 */
.tocotoco-pref-band.has-slides::after {
  display: none;
}

.tocotoco-pref-band__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

.tocotoco-pref-band__slide.is-on {
  opacity: 1;
}

.tocotoco-pref-band__slide:not(.is-on) {
  pointer-events: none;
}

.tocotoco-pref-band__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.tocotoco-pref-band.has-slides .tocotoco-pref-band__inner {
  z-index: 2;
  pointer-events: none;
}

.tocotoco-pref-band__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  margin: 0;
  padding: 0 64px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.tocotoco-pref-band__cat {
  display: inline-block;
  margin-right: 0.6em;
  padding: 0 0.5em;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  font-size: 11px;
  text-shadow: none;
}

.tocotoco-pref-band__caption a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.tocotoco-pref-band__caption a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.tocotoco-pref-band__toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 25, 42, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tocotoco-pref-band__toggle:hover {
  background: rgba(15, 25, 42, 0.75);
}

.tocotoco-pref-band__toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media only screen and (max-width: 480px) {
  .tocotoco-pref-band__caption {
    bottom: 10px;
    padding: 0 52px 0 12px;
    font-size: 12px;
  }
  .tocotoco-pref-band__toggle {
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
  }
}
.tocotoco-pref-band.is-illus {
  background: #e4ecf3 radial-gradient(#c9d3dd 1.2px, rgba(0, 0, 0, 0) 1.3px);
  background-size: 14px 14px;
  color: #333;
}

.tocotoco-pref-band.is-illus::after {
  display: none;
}

.tocotoco-pref-band.is-illus .tocotoco-pref-band__title,
.tocotoco-pref-band.is-illus .tocotoco-pref-band__lead {
  color: #333;
}

.tocotoco-pref-band.is-illus .tocotoco-pref-band__state {
  border-color: #999;
  color: #555;
}

.tocotoco-pref-band.is-illus .tocotoco-pref-band__inner {
  min-height: 240px;
  padding-top: 60px;
  text-shadow: none;
}

.tocotoco-pref-sec {
  margin: 2.5em 0 0;
}

.tocotoco-pref-sec__title {
  margin: 0 0 0.8em;
  font-size: 1.25em;
  line-height: 1.4;
}

.tocotoco-pref-sec__title--minor {
  margin-top: 1.4em;
  font-size: 1.05em;
}

.tocotoco-pref-sec__sub {
  margin-left: 0.8em;
  font-size: 0.72em;
  font-weight: normal;
  color: #777;
}

/* 県トップの絞り込み（エリア・カテゴリー。pref_top.php ・ 2026-10-05）。押すと一覧の部分だけ差し替わる */
.tocotoco-pref-filter {
  margin: 0 0 1.6em;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--tocotoco-panel);
}

.tocotoco-pref-filter__row {
  display: flex;
  align-items: flex-start;
  gap: 8px 14px;
}

.tocotoco-pref-filter__row + .tocotoco-pref-filter__row {
  margin-top: 12px;
}

.tocotoco-pref-filter__label {
  flex: 0 0 5.5em;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #555;
}

.tocotoco-pref-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tocotoco-pref-filter__chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d6d0c6;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
  color: inherit;
  text-decoration: none;
}

.tocotoco-pref-filter__chip:hover {
  border-color: var(--tocotoco-accent);
}

.tocotoco-pref-filter__chip.is-active {
  background: var(--tocotoco-accent);
  border-color: var(--tocotoco-accent);
  color: #fff;
}

.tocotoco-pref-list {
  transition: opacity 0.2s;
}

.tocotoco-pref-list.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.tocotoco-pref-list__empty {
  padding: 2em 0;
  text-align: center;
  color: #666;
}

@media only screen and (max-width: 767px) {
  .tocotoco-pref-filter {
    padding: 14px;
  }
  .tocotoco-pref-filter__row {
    flex-direction: column;
    gap: 6px;
  }
  .tocotoco-pref-filter__label {
    flex: none;
    padding-top: 0;
  }
}
.tocotoco-pref-recruit {
  /* 1列（2026-10-05）。2列だと情報提供フォームが無いときに募集が左半分だけになり、中途半端だった */
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tocotoco-pref-recruit__panel {
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--tocotoco-panel);
}

/* 枠は見出しの地の色（はれトピ！の色の役割: 囲みの枠は焦げ茶、押すものは柿色。中のボタンは柿色のまま） */
.tocotoco-pref-recruit__panel.is-primary {
  border: 2px solid var(--main-ttl-bg, var(--tocotoco-accent));
}

.tocotoco-pref-recruit__panel h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.tocotoco-pref-recruit__panel p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.tocotoco-pref-recruit__btn {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--tocotoco-accent);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--tocotoco-accent);
  text-decoration: none;
}

.tocotoco-pref-recruit__btn--primary {
  background: var(--tocotoco-accent);
  color: #fff;
}

/* 募集の帯（画像あり）。左に画像、右に見出し・1文・ボタン。スマホは縦に積む */
.tocotoco-pref-recruit__feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.tocotoco-pref-recruit__img {
  display: block;
  line-height: 0;
}

.tocotoco-pref-recruit__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200/631;
  object-fit: cover;
}

.tocotoco-pref-recruit__body {
  padding: 24px 32px;
}

.tocotoco-pref-recruit__feature h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
}

.tocotoco-pref-recruit__feature p {
  margin: 0 0 18px;
  font-size: 14.5px;
}

.tocotoco-pref-recruit__feature .tocotoco-pref-recruit__btn {
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
}

@media only screen and (max-width: 767px) {
  .tocotoco-pref-recruit__feature {
    grid-template-columns: 1fr;
  }
  .tocotoco-pref-recruit__body {
    padding: 18px 20px 22px;
  }
  .tocotoco-pref-recruit__feature h3 {
    font-size: 18px;
  }
}
