body {
  -webkit-font-smoothing: auto;
}

.site__logo .custom-logo[src*=".svg"] {
  height: 100px;
}

.cat_postlist__li .ttl,
.related_newpost__li .ttl {
  font-weight: normal;
}

.gsc-control-cse {
  border: none !important;
  background: #fff !important;
}

.adsenceText {
  font-size: 0.88em;
  display: block;
  text-align: center;
  opacity: 0.5;
  margin-bottom: 0;
}

.gsc-control-cse,
form.gsc-search-box,
table.gsc-search-box {
  padding: 1px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

input.gsc-input {
  height: 3em !important;
  padding-left: 0.8em !important;
  background-position-x: 0.8em !important;
  border: 1px solid !important;
}

table.gsc-search-box td.gsc-input {
  padding-right: 0px !important;
}

.gsc-search-button-v2 {
  background: none !important;
  border: none !important;
  padding: 10px !important;
}
.gsc-search-button-v2 svg {
  fill: #333 !important;
  transform: scale(1.8);
}

.gsc-input-box {
  border: none !important;
}

.gsc-search-box table,
.gsc-search-box tbody,
.gsc-search-box tr,
.gsc-search-box th,
.gsc-search-box td {
  padding: 0;
  margin: 0;
  border: none;
}

.gstl_51 {
  z-index: 9999 !important;
}

@media only screen and (max-width: 480px) {
  .wp-block-buttons.footer-navi .wp-block-button {
    width: 49%;
  }
  .wp-block-buttons.footer-navi .wp-block-button .wp-block-button__link {
    width: 100%;
    padding: 0.9em;
    font-size: 11px;
  }
}
.wp-block-buttons.footer-navi .wp-block-button__link {
  font-weight: normal;
}

@media only screen and (max-width: 480px) {
  #footer .wp-block-buttons.footer-navi {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  #footer .wp-block-buttons.footer-navi .wp-block-button {
    display: flex;
    width: auto;
  }
  #footer .wp-block-buttons.footer-navi .wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 1.4em 12px 0.6em;
    font-size: clamp(9.5px, 3.4vw, 13px) !important;
  }
}
td:not(:root),
th:not(:root) {
  border-color: rgba(204, 204, 204, 0.4);
}

@media only screen and (min-width: 1200px) {
  h2.is-style-stylenone {
    font-size: 1.8em;
    letter-spacing: 0.05em;
  }
  h3.is-style-stylenone {
    font-size: 1.5em;
    letter-spacing: 0.05em;
  }
}
.wp-block-cover .wp-block-cover__image-background[data-object-fit=cover] {
  height: 100%;
}

.cbox {
  background: none;
}

.has-inline-color {
  padding: 4px;
  border-radius: 0.1em;
}

.accordion.is-style-accordion_type_plain .accordion_label {
  margin: 0 auto;
  font-size: 1.1em;
}

.accordion:not(.is-style-accordion_type_simple, .is-style-accordion_type_plain) .accordion_label {
  color: var(--main-ttl-color);
}
.accordion:not(.is-style-accordion_type_simple, .is-style-accordion_type_plain)::before {
  opacity: 1;
}
.accordion:not(.is-style-accordion_type_simple, .is-style-accordion_type_plain) .accordion_check:checked + .accordion_label + .accordion_content {
  margin: 2px;
}

.cat_postlist.typecard .cat_postlist__ul {
  --postlist_card__gap: 0.8em;
}

.wp-block-search__button-inside .wp-block-search__input {
  border: none;
  background: none;
}

.cbox:not(.type_simple):not(.type_ttl).is-style-site_color {
  background: none;
}

.wp-block-button.small .wp-block-button,
.wp-block-buttons.is-style-small .wp-block-button {
  max-width: inherit;
  min-width: inherit;
}

.wp-block-buttons.has-background {
  padding: 0.8em;
}

.more {
  background-color: var(--stk-palette-color1);
  padding: 0.8em;
  display: flex;
  justify-content: center;
}
.more a {
  background-color: var(--main-link-color);
  border-color: var(--main-link-color);
  color: #ffffff !important;
  font-size: 1em;
  font-weight: 700;
  vertical-align: middle;
  text-decoration: none !important;
  max-width: 100%;
  border-radius: var(--stk-btn-border_radius, 3px);
  padding: calc(var(--stk-btn-padding, 0.667em) + var(--stk-btn-border_width, 2px)) calc(1em + var(--stk-btn-border_width, 2px));
}
.more a:hover {
  transform: translate3d(0, -3px, 0);
  opacity: 0.8;
  text-decoration: none !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.wp-block-button__link,
.more a {
  position: relative;
  padding-right: calc(1.6em + var(--stk-btn-border_width, 2px)) !important;
}
.wp-block-button__link::after,
.more a::after {
  font-family: var(--stk-font-awesome-free, "Font Awesome 6 Free");
  font-weight: 900;
  content: "\f054";
  position: absolute;
  font-size: 0.7em;
  right: 0.8em;
  top: 50%;
  transform: translateY(-50%);
}

@media only screen and (max-width: 990px) {
  .wp-block-atbs-tabs ul.tabs-titles {
    flex-direction: row;
  }
}
.wp-block-atbs-tabs ul.tabs-titles {
  background: none !important;
}
.wp-block-atbs-tabs ul.tabs-titles li.tab-title {
  margin: 0;
}
.wp-block-atbs-tabs ul.tabs-titles li.tab-title::before {
  content: none;
}

.qa_area,
.is-style-qa_area {
  position: relative;
  color: #333333;
  background: #eeeeee;
  border: 1px solid #ccc;
  border-radius: 7px;
  padding: 0.8em 1em;
  padding-left: 2.3em;
}
.qa_area::before,
.is-style-qa_area::before {
  display: inline-block;
  content: "";
  position: absolute;
  top: calc(var(--stk-line_height, 1.8) * 0.55em);
  left: 0.8em;
  width: 1em;
  height: 1px;
  transform: translateY(12px);
  background: #666666;
}

p.to,
p.is-style-to {
  padding-right: 8px;
  margin-bottom: 0px !important;
  position: relative;
  font-weight: bold;
}
p.to + p,
p.is-style-to + p {
  margin-top: 5px;
}
p.to::after,
p.is-style-to::after {
  display: inline-block;
  content: "";
  width: 1em;
  height: 1px;
  position: absolute;
  top: 0.9em;
  margin-left: 10px;
  background: #666666;
}

.wp-block-list:not(.has-background) {
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.6);
  padding: 0.4em 0.9em;
  border-radius: var(--oc-base-border-radius, 2px);
}

.cbox .wp-block-list:not(.has-background),
.accordion .wp-block-list:not(.has-background),
.voice .wp-block-list:not(.has-background),
.supplement .wp-block-list:not(.has-background) {
  box-shadow: none;
  padding: 0;
  border-radius: none;
}

.shadow__wrap .has-background {
  box-shadow: 0 0 1em hsla(0, 0%, 0%, 0.1);
}

.shadow__content {
  box-shadow: 0 0 1em hsla(0, 0%, 0%, 0.1);
}

.kadomaru__wrap .has-background {
  border-radius: var(--kadomaru-m);
}

.kadomaru__content {
  border-radius: var(--kadomaru-m);
}

@media only screen and (max-width: 767px) {
  figure.has-lightbox {
    pointer-events: none;
  }
}
.author_meta .author_img {
  width: 130px;
}

@media only screen and (min-width: 768px) {
  .cat_postlist.typesimple .eyecatch {
    width: 45%;
    max-width: 130px;
  }
}

@media only screen and (max-width: 767px) {
  .wp-block-columns.stack-at-tablet {
    flex-direction: column !important;
  }
  .wp-block-columns.stack-at-tablet > .wp-block-column {
    flex-basis: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media only screen and (max-width: 1023px) {
  .wp-block-columns.stack-at-large {
    flex-direction: column !important;
  }
  .wp-block-columns.stack-at-large > .wp-block-column {
    flex-basis: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media only screen and (min-width: 1100px) {
  .pickup-slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
}
@media only screen and (max-width: 1099px) {
  .pickup-slider {
    margin-left: var(--stk-el-margin-rl, -4vw);
    margin-right: var(--stk-el-margin-rl, -4vw);
  }
}
.pickup-slider.slick-slider {
  display: block !important;
  position: relative;
  margin-bottom: 30px;
}
.pickup-slider:not(.slick-initialized):not(:has(> .wp-block-group__inner-container)) {
  flex-wrap: nowrap !important;
  gap: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 20px;
  margin-bottom: 30px;
}
.pickup-slider:not(.slick-initialized):not(:has(> .wp-block-group__inner-container)) > figure {
  flex: 0 0 100%;
  box-sizing: border-box;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 10px;
}
.pickup-slider:not(.slick-initialized):not(:has(> .wp-block-group__inner-container)) > figure a {
  display: block;
}
.pickup-slider:not(.slick-initialized):not(:has(> .wp-block-group__inner-container)) > figure img {
  width: 100% !important;
  height: auto !important;
  display: block;
}
@media only screen and (min-width: 480px) {
  .pickup-slider:not(.slick-initialized):not(:has(> .wp-block-group__inner-container)) {
    padding: 0 30px;
  }
  .pickup-slider:not(.slick-initialized):not(:has(> .wp-block-group__inner-container)) > figure {
    flex-basis: 50%;
  }
}
@media only screen and (min-width: 768px) {
  .pickup-slider:not(.slick-initialized):not(:has(> .wp-block-group__inner-container)) {
    padding: 0 40px;
  }
  .pickup-slider:not(.slick-initialized):not(:has(> .wp-block-group__inner-container)) > figure {
    flex-basis: 33.3333333333%;
  }
}
@media only screen and (min-width: 1500px) {
  .pickup-slider:not(.slick-initialized):not(:has(> .wp-block-group__inner-container)) {
    padding: 0 200px;
  }
}
.pickup-slider.slick-initialized .slick-list {
  position: relative;
  display: block;
  overflow: hidden;
}
.pickup-slider.slick-initialized .slick-track {
  position: relative;
  display: block;
}
.pickup-slider.slick-initialized .slick-track::after {
  content: "";
  display: table;
  clear: both;
}
.pickup-slider.slick-initialized .slick-slide {
  float: left;
  height: 100%;
  min-height: 1px;
}
.pickup-slider .slick-slide {
  padding: 0 10px;
  box-sizing: border-box;
}
.pickup-slider .slick-slide img {
  width: 100% !important;
  height: auto !important;
  display: block;
}
.pickup-slider .slick-slide a {
  display: block;
  width: 100% !important;
}
.pickup-slider .slick-slide figure {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.pickup-slider .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 0;
  outline: none;
  transition: background 0.3s;
}
.pickup-slider .slick-arrow::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  color: #000;
}
.pickup-slider .slick-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}
.pickup-slider .slick-arrow:hover::before {
  color: #fff;
}
.pickup-slider .slick-arrow:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(15, 25, 42, 0.85);
}
.pickup-slider .slick-arrow:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.pickup-slider .slick-prev {
  left: 10px;
}
.pickup-slider .slick-prev::before {
  content: "\f053";
}
.pickup-slider .slick-next {
  right: 10px;
}
.pickup-slider .slick-next::before {
  content: "\f054";
}
.pickup-slider .slick-dots {
  margin-top: 1em;
}
.pickup-slider .slick-dots li::before {
  content: none;
}

@media only screen and (min-width: 768px) {
  .wp-block-columns.ranking-columns {
    gap: 1.3em;
  }
}

/* ---------------------------------------------
   トップのランキング（2026-10-13・戸井。haretoco-manage のキャンバス「ランキングの見た目案」の案B）
   PC もスマホと同じタブ1つ（日間・週間・月間）にまとめ、PC は5件を写真つきで横1列に並べる。
   それまでの PC は日間・週間・月間の3列で、同じ記事が何列にも重なっていた。
   トップの本文のタブのブロックに className「tocotoco-ranking」を付けたものだけに効く（ブロックのまま。
   エディタから触れる）。本文の置き換えは haretoco-manage の `ランキングをタブ1つにする.php`。
   県トップ（pref_top.php）も同じ形で出すので、トップでしか読まない front_page から移した（3.1.0）
   --------------------------------------------- */
.tocotoco-ranking .stk-tabs__labels {
  gap: 6px;
  margin-bottom: 14px;
}

.tocotoco-ranking .stk-tabs.is-style-tabs-simple .stk-tabs__label {
  flex: none;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--main-ttl-bg) 9%, #fff);
  color: var(--main-text-color);
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
}

.tocotoco-ranking .stk-tabs.is-style-tabs-simple .stk-tabs__label.is-active {
  background: var(--main-ttl-bg);
  color: var(--main-ttl-color);
}

/* 順位は丸い数字。1〜3位はサイトの色、4位からは灰色 */
.tocotoco-ranking .cat_postlist.postviews_order ul.cat_postlist__ul li .eyecatch::before {
  left: 4px;
  top: 4px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  font-size: 13px;
  box-shadow: 0 0 0 2px #fff;
}

.tocotoco-ranking .cat_postlist.postviews_order ul.cat_postlist__ul li:nth-child(n+4) .eyecatch::before {
  background-color: #8f8a85;
  color: #fff;
}

@media only screen and (max-width: 767px) {
  .tocotoco-ranking .stk-tabs.is-style-tabs-simple .stk-tabs__label {
    flex: 1;
    padding: 0 8px;
  }
  /* 小さい写真の地域ラベルは市の名前だけ（おすすめ記事の小さいカードと同じ。「広島県 福…」と切れた） */
  .tocotoco-ranking .tocotoco-area-badge__part:not(.tocotoco-area-badge__last) {
    display: none;
  }
}
@media only screen and (min-width: 768px) {
  .tocotoco-ranking .cat_postlist.postviews_order ul.cat_postlist__ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }
  .tocotoco-ranking .cat_postlist.typesimple .cat_postlist__li {
    width: auto;
    margin: 0;
  }
  .tocotoco-ranking .cat_postlist.typesimple .cat_postlist__link {
    display: block;
    padding: 0;
  }
  .tocotoco-ranking .cat_postlist.typesimple .eyecatch {
    width: 100%;
    max-width: none;
    margin: 0 0 8px;
    aspect-ratio: 3/2;
  }
  .tocotoco-ranking .cat_postlist.typesimple .eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .tocotoco-ranking .cat_postlist.typesimple .ttl {
    font-size: 14px;
    line-height: 1.5;
  }
}
.stk-tabs[data-initial-active="0"] > .stk-tabs__panels > .stk-tab-item:nth-child(1):not([aria-hidden]) {
  display: block;
}
.stk-tabs[data-initial-active="1"] > .stk-tabs__panels > .stk-tab-item:nth-child(2):not([aria-hidden]) {
  display: block;
}
.stk-tabs[data-initial-active="2"] > .stk-tabs__panels > .stk-tab-item:nth-child(3):not([aria-hidden]) {
  display: block;
}
.stk-tabs[data-initial-active="3"] > .stk-tabs__panels > .stk-tab-item:nth-child(4):not([aria-hidden]) {
  display: block;
}
.stk-tabs[data-initial-active="4"] > .stk-tabs__panels > .stk-tab-item:nth-child(5):not([aria-hidden]) {
  display: block;
}
.stk-tabs.is-style-tabs-simple > .stk-tabs__labels:empty::before {
  content: " ";
  padding: 0.5em 0;
  font-size: 0.9em;
  line-height: normal;
}
@media only screen and (max-width: 480px) {
  .stk-tabs.is-style-tabs-simple > .stk-tabs__labels:empty::before {
    font-size: 0.8em;
  }
}

.tcttl {
  display: block;
}
.tcttl__head {
  display: block;
  font-weight: 700;
}
.tcttl__sub {
  display: block;
  margin-top: 0.2em;
  font-size: 0.86em;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(15, 25, 42, 0.66);
  color: color-mix(in srgb, var(--main-text-color, #0f192a) 66%, transparent);
}
.tcttl__badge {
  display: inline-block;
  margin-bottom: 0.35em;
  padding: 0.1em 0.5em;
  font-size: 0.74em;
  font-weight: 700;
  line-height: 1.6;
  border: 1px solid var(--main-link-color, #3a58a5);
  color: var(--main-link-color, #3a58a5);
  background: #fff;
}
.tcttl__badge--plain {
  font-weight: 400;
  border-color: rgba(15, 25, 42, 0.3);
  color: rgba(15, 25, 42, 0.62);
  background: none;
}
.tcttl__badge.is-ended {
  font-weight: 400;
  border-color: #6a7280;
  background: #6a7280;
  color: #fff;
}
.tcttl__badge.is-ended::before {
  content: "終了";
  font-weight: 700;
  margin-right: 0.4em;
}

.archives-list.card-overlay .tcttl__sub {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------------------------------------------
   フルブリードの Cover ブロックが、入れ子になった alignfull の中で
   右端に隙間ができる不具合の直し（2026-09-10）

   親テーマの `.wp-block-cover { width: inherit; }` は、直近の親要素の
   width をそのまま引き継ぐ。max-width:980px の帯（親テーマ）では
   `.alignfull` に margin だけを付けて width は auto 任せにしているため、
   親要素の width が「auto」なら問題ないが、Cover が別の alignfull グループ
   （.wp-block-group__inner-container など）の直下に入れ子になっていると
   親の width が実寸（画面幅ぶんの px）になり、Cover 側は margin で左へ
   ずれるだけで幅が広がらず、右端が margin ぶん（4vw）足りなくなる。
   トップページのスライドショー（#slideshow・8枚とも position:absolute で
   重ねるクロスフェード方式。functions/front_page_lcp.php）で実機に近い
   条件で再現・確認した。

   直し方は width を vw 基準にして親の width に依存させない形にする。
   position は触らない（position:absolute のクロスフェード運用と、
   カテゴリー一覧の position:relative の両方で成立することを確認済み）。
   この節だけ入れ子を使わず素のCSSで書く（.scss / .css / .min.css の
   3本を同じ内容に保つ必要があるため）。
   --------------------------------------------- */
@media only screen and (max-width: 980px) {
  .wp-block-cover.alignfull {
    left: auto;
    right: auto;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}
/* ---------------------------------------------
   一覧のサムネイルの地域ラベル（area_badge.php）
   カテゴリーのラベル（親テーマの .cat-name・右）と対にして左に置く（一覧では下端・1.149）。
   文字の大きさは、置き場所ごとに親テーマの .cat-name と同じにする。
   色を反転させて、カテゴリーと見分けられるようにする。
   本文中の記事カード（.eyecatch.thum）は小さいので出さない。
   上の節と同じく、入れ子を使わず素のCSSで書く。
   --------------------------------------------- */
.eyecatch .tocotoco-area-badge {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 60%;
  padding: 0.2em 0.5em;
  font-size: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: rgba(255, 255, 255, 0.9);
  /* 文字は見出しの地の色（倉敷・備後はラベルの地と同じ色。はれトピ！は焦げ茶。2026-10-05） */
  color: var(--main-ttl-bg, var(--label-bg, #333));
}

.archives-list:not(.card-column2-sp) .eyecatch .tocotoco-area-badge {
  font-size: 72%;
}

.cat_postlist__li .eyecatch .tocotoco-area-badge {
  font-size: 70%;
}

.cat_postlist.typesimple .eyecatch .tocotoco-area-badge,
.related_newpost__li .eyecatch .tocotoco-area-badge {
  padding: 0 0.2em;
  font-size: 10px;
}

.eyecatch.thum .tocotoco-area-badge {
  display: none;
}

/* 一覧（記事一覧ショートコード・アーカイブ・記事下の新着）は、
   地域ラベルとカテゴリーのラベルを写真の下端へ寄せる。
   上端だと人物写真の顔に掛かり、「倉敷市からのお知らせ」のような長い名前は
   目元を隠してしまう（2026-10-29・戸井）。親テーマの .cat-name の top を打ち消す。
   ランキング（.postviews_order）の順位は左上に残るので、ずらさずに済む。
   スライダーは文字を写真の下側に重ねるので変えない。 */
.cat_postlist .eyecatch .cat-name,
.cat_postlist .eyecatch .tocotoco-area-badge,
.archives-list .eyecatch .cat-name,
.archives-list .eyecatch .tocotoco-area-badge,
.related_newpost__li .eyecatch .cat-name,
.related_newpost__li .eyecatch .tocotoco-area-badge {
  top: auto;
  bottom: 0;
}

/* ---------------------------------------------
   市民ライターのカード・帯・一覧・著者ページの足し物（writer_list.php ・ 2026-10-04）
   一覧ページ・帯・著者ページ（はれトピ！では県トップも）で使うので全ページの系統に置く
   --------------------------------------------- */
.tocotoco-pref-writers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tocotoco-writer-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e3e1da;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  transition: border-color 0.15s;
}

.tocotoco-writer-card:hover {
  border-color: #b9b4a6;
}

.tocotoco-writer-card__name a::after {
  /* 名前のリンクを枠いっぱいに広げ、カードのどこを押しても著者ページへ（2026-10-05・戸井） */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.tocotoco-writer-card__name a:focus-visible {
  outline: none;
}

.tocotoco-writer-card__name a:focus-visible::after {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.tocotoco-writer-card[hidden] {
  display: none;
}

.tocotoco-writer-card__avatar img,
.entry-content .tocotoco-pref-writers .tocotoco-writer-card__avatar img {
  /* 本文中の画像に親テーマが付ける下の余白（19.5px）を消す。残るとアイコンの箱が縦に伸び、画像が文字より上にずれる
     （2026-10-05・戸井「アイコンと文字の高さが微妙にあっていない」。本文の img の規則より詳細度を上げる） */
  display: block;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 50%;
}

.tocotoco-writer-card p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.tocotoco-writer-card__name {
  font-size: 14px;
  font-weight: 700;
}

.tocotoco-writer-card__name a {
  color: inherit;
  text-decoration: none;
}

.tocotoco-writer-card__areas {
  margin-top: 3px;
  font-size: 12px;
}

.tocotoco-writer-card__areas b {
  /* 主な活動地域。色の帯（マーカー）は付けない（2026-10-04 夜・戸井） */
  font-weight: 600;
  color: #555;
}

.tocotoco-writer-card__areas span {
  color: #777;
}

.tocotoco-writer-strip {
  margin: 2em 0;
}

.tocotoco-writer-strip__title,
.tocotoco-writer-list__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 0.8em;
  font-size: 1.25em;
  line-height: 1.4;
}

.tocotoco-writer-strip__title {
  /* 見出しと「一覧 →」は、どの幅でも1行（2026-10-05・戸井）。折り返さず、狭い画面ではリンクを「一覧 →」に
     縮め（幅 479px 以下）、さらに字を画面幅に合わせる（幅 374px 以下）。下の @media */
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media only screen and (max-width: 479px) {
  .tocotoco-writer-strip__more-pre {
    display: none;
  }
}
@media only screen and (max-width: 374px) {
  .entry-content .tocotoco-writer-strip .tocotoco-writer-strip__title {
    font-size: 4.6vw;
  }
}
/* 節の見出しは、記事下の関連記事の見出し（singular.scss の .h_ttl）・トップの節の見出し（front_page.scss）と同じ
   縦線にそろえる（2026-10-05・戸井）。帯の見出しは記事の中（.entry-content h2）に置かれると親テーマの灰色の地と
   内側の余白が付くので外す。記事下の「◯◯県で活動する市民ライター」は字の大きさも .h_ttl に合わせる */
.tocotoco-writer-strip__title,
.tocotoco-pref-sec__title,
.tocotoco-pref-writers__title {
  padding: 0 0 0 12px !important;
  border-left: 4px solid var(--main-ttl-bg, var(--header-bg)) !important;
  background: none !important;
  text-align: left;
}

.tocotoco-writer-strip__title {
  align-items: center;
}

.tocotoco-pref-writers__title {
  font-size: 1.3em !important;
}

@media only screen and (max-width: 767px) {
  .tocotoco-pref-writers__title {
    font-size: 1.2em !important;
  }
}
.tocotoco-writer-strip__more {
  margin-left: auto;
  font-size: 0.7em;
  font-weight: normal;
  white-space: nowrap;
}

.tocotoco-writer-list__sub {
  font-size: 0.72em;
  font-weight: normal;
  color: #777;
}

.tocotoco-writer-strip__list {
  /* 2段で横に流す（2026-10-04 夜・戸井「2列くらいで表示したい」）。上→下→次の列の順に埋まるので、
     登録が新しい人（writer_list.php）が左上に来る。はみ出すぶんは横スクロール */
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 108px;
  gap: 16px 14px;
  margin: 0;
  padding: 4px 0 8px;
  overflow-x: auto;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

/* PC では2段の帯（はれトピ！）を左から詰めて折り返し、全員を出す。列の向きのまま横に流すと、
   9人で5列＋4列になって右が空き、人が増えると PC でも隠れる人が出ていた（2026-12-02・戸井）。
   スマホは2段・横スクロールのまま */
@media only screen and (min-width: 768px) {
  .tocotoco-writer-strip--rows-2 .tocotoco-writer-strip__list {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(auto-fill, 108px);
    overflow-x: visible;
  }
}
.tocotoco-writer-strip--rows-1 .tocotoco-writer-strip__list {
  /* 1段（倉敷・備後のトップと記事下）。列の幅を枠の幅から割り出し、PC はちょうど7人・スマホは4人（下の @media）。
     固定幅（108px）だと枠の幅しだいで右端の人が半分だけ見えていた（2026-10-05・戸井） */
  grid-template-rows: auto;
  grid-auto-columns: calc((100% - 84px) / 7);
}

.tocotoco-writer-strip--rows-1 .tocotoco-writer-chip {
  width: auto;
  min-width: 0;
}

.tocotoco-writer-strip--rows-1 .tocotoco-writer-chip img {
  width: 100%;
  max-width: 72px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.tocotoco-writer-strip--rows-1 .tocotoco-writer-chip__name,
.tocotoco-writer-strip--rows-1 .tocotoco-writer-chip__pref {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 1段の帯（倉敷・備後）は、スマホ・タブレットでも枠の幅にちょうど4人入るようにする（2026-10-05・戸井
   「スマホで2人しか見えないのは寂しい」）。アイコンを列の幅に合わせて縮め（最大 64px）、長い名前は「…」で切る */
@media only screen and (max-width: 767px) {
  .tocotoco-writer-strip--rows-1 .tocotoco-writer-strip__list {
    grid-auto-columns: calc((100% - 30px) / 4);
    column-gap: 10px;
  }
  .tocotoco-writer-strip--rows-1 .tocotoco-writer-chip img {
    max-width: 64px;
  }
  .tocotoco-writer-strip--rows-1 .tocotoco-writer-chip__name {
    font-size: 11.5px;
  }
  .tocotoco-writer-strip--rows-1 .tocotoco-writer-chip__pref {
    font-size: 10.5px;
  }
}
.tocotoco-writer-strip__count {
  /* 「現在 ◯人が活動中」（count="1"） */
  margin: 0 0 0.8em;
  text-align: center;
  font-size: 13px;
  color: #555;
}

.tocotoco-writer-others {
  /* 記事下の「ほかの市民ライターを見る →」。ボタンの下に小さく。タップ領域は 44px */
  margin: 0.4em 0 0;
  text-align: center;
  font-size: 13px;
}

.tocotoco-writer-others a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
}

.tocotoco-writer-chip {
  flex: none;
  width: 108px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}

.tocotoco-writer-chip a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tocotoco-writer-chip img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 6px;
  border-radius: 50%;
}

.tocotoco-writer-chip__name {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.tocotoco-writer-chip__pref {
  display: block;
  font-size: 11.5px;
  color: #777;
}

.tocotoco-writer-list__sec {
  margin: 2.2em 0 0;
}

.tocotoco-writer-list__sec[hidden] {
  display: none;
}

.tocotoco-writer-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1em;
}

.tocotoco-writer-filter__btn {
  padding: 5px 12px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: inherit;
  cursor: pointer;
}

.tocotoco-writer-filter__btn.is-active {
  border-color: #333;
  background: #333;
  color: #fff;
}

.tocotoco-author-extra {
  margin: -0.5em 0 2em;
  padding: 0 0.5em;
  font-size: 13.5px;
}

.tocotoco-author-extra__row {
  margin: 0 0 0.5em;
}

.tocotoco-author-extra__label {
  margin-right: 0.8em;
  color: #777;
}

.tocotoco-author-extra__area {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 10px;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 12.5px;
  color: inherit;
  text-decoration: none;
}

.tocotoco-author-extra__area.is-main {
  border-color: #333;
  background: #333;
  color: #fff;
}

.tocotoco-author-extra__back {
  margin: 1em 0 0;
  font-size: 13px;
}

/* 本文（.entry-content）の中に置いたときに、親テーマの ul / ol li の飾り（点・番号・字下げ）を外す。
   親の `.entry-content ul li` は 0,1,2 なので、クラス2つ（0,2,x）で上書きする */
.entry-content .tocotoco-writer-strip__list,
.entry-content .tocotoco-pref-writers {
  margin-left: 0;
  padding-left: 0;
}

.entry-content .tocotoco-writer-strip__list > li,
.entry-content .tocotoco-pref-writers > li {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.entry-content .tocotoco-writer-strip__list > li::before,
.entry-content .tocotoco-pref-writers > li::before {
  content: none;
  display: none;
}

/* 役員の節の見出し「一般社団法人はれとこ役員兼ライター」（17字）をスマホでも1行に（2026-10-05・戸井）。
   親テーマの本文 h2（スマホ 17.3px）のままだと幅 320px で2行に折れるので、狭い画面だけ字を画面幅に合わせる */
@media only screen and (max-width: 374px) {
  .entry-content .tocotoco-writer-list .tocotoco-writer-list__sec--officer .tocotoco-writer-list__title {
    font-size: 4.6vw;
  }
}
.entry-content .tocotoco-pref-writers > li.tocotoco-writer-card {
  /* 上の `> li { padding-left: 0 }`（0,2,1）に負けて左の余白が消え、アイコンが枠線に重なっていた（2026-10-04 夜・戸井）。
     (0,3,1) にして勝たせる */
  padding: 10px 12px;
}

/* ---------------------------------------------
   日本地図（japan_map.php ・ 2026-10-04）
   全国トップのヒーロー。[japanMap] が images/japan-map.svg を飾って出す
   --------------------------------------------- */
.tocotoco-japan-map-wrap {
  position: relative;
}

.tocotoco-japan-map {
  display: block;
  width: 100%;
  height: auto;
}

.tocotoco-japan-map__pref path {
  fill: #e3e1d9;
  stroke: #fff;
  stroke-width: 1.2;
  transition: fill 0.25s ease;
}

.tocotoco-japan-map__pref.is-active path {
  fill: var(--tocotoco-accent);
}

.tocotoco-japan-map__pref.is-current path {
  fill: var(--tocotoco-highlight);
}

a.tocotoco-japan-map__pref:hover path,
a.tocotoco-japan-map__pref:focus path {
  fill: #c9c6bb;
}

a.tocotoco-japan-map__pref.is-active:hover path,
a.tocotoco-japan-map__pref.is-active:focus path {
  fill: var(--tocotoco-accent-dark);
}

.tocotoco-japan-map__label {
  display: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 3px;
  pointer-events: none;
}

.tocotoco-japan-map__pref.is-active .tocotoco-japan-map__label {
  display: block;
}

.tocotoco-japan-map__inset {
  fill: none;
  stroke: #c9c6bb;
  stroke-dasharray: 4 3;
}

.tocotoco-japan-map__credit {
  font-size: 10px;
  fill: #999;
}

a.tocotoco-japan-map__pref:focus {
  outline: none;
}

a.tocotoco-japan-map__pref:focus-visible path {
  stroke: var(--tocotoco-highlight);
  stroke-width: 2;
}

/* はれトピ！を見ての手直し（2026-10-04）: 出典は1行で省略、地図の区切り線、ヒーローのカラムは上下中央 */
.tocotoco-pref-band__credit {
  max-width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tocotoco-japan-map__divider {
  stroke: #c9c6bb;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}

.tocotoco-hero-columns {
  align-items: center;
}

.tocotoco-hero-columns .tocotoco-japan-map-wrap {
  padding: 4px 0;
}

/* ---------------------------------------------
   コピーと都道府県のプルダウン（pref_select.php ・ 2026-10-04）
   日本地図の上の1行。全幅の地図は .tocotoco-japan-map-wrap を広げる
   --------------------------------------------- */
.tocotoco-pref-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  /* 上はスライドショーとの間（詰まり過ぎていた。2026-10-04 夜・戸井）、下は地図との間 */
  margin: 2.4em 0 1.4em;
}

.tocotoco-pref-select__text {
  flex: 1 1 20em;
  min-width: 0;
}

.tocotoco-pref-select__copy {
  margin: 0;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.45;
  /* 2行に折れたとき、2行目が「す。」だけにならないよう行の長さをそろえる（2026-10-05） */
  text-wrap: balance;
}

.tocotoco-pref-select__count {
  font-size: 1.25em;
  color: var(--tocotoco-accent);
}

/* 空白の地域での募集（2026-10-05・戸井。「全国」と書かない代わり） */
.tocotoco-pref-select__recruit {
  margin: 0.5em 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.tocotoco-pref-select__recruit a {
  font-weight: 700;
  white-space: nowrap;
}

.tocotoco-pref-select__field {
  flex: 0 0 auto;
}

.tocotoco-pref-select__select {
  min-width: 16em;
  max-width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
}

@media only screen and (max-width: 767px) {
  .tocotoco-pref-select {
    margin: 1.6em 0 1em;
  }
  .tocotoco-pref-select__copy {
    font-size: 1.05em;
  }
  .tocotoco-pref-select__recruit {
    font-size: 13px;
  }
  .tocotoco-pref-select__field,
  .tocotoco-pref-select__select {
    width: 100%;
  }
}
.tocotoco-japan-map-full .tocotoco-japan-map-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.tocotoco-japan-map-full .tocotoco-japan-map__pref path {
  stroke-width: 2;
  stroke-linejoin: round;
}

#area.stk-pd-m,
#ryuiki.stk-pd-m {
  padding-top: var(--stk-group-padding_tb) !important;
  padding-bottom: var(--stk-group-padding_tb) !important;
}

#area + #area.stk-pd-m,
#area + #ryuiki.stk-pd-m {
  padding-top: 0 !important;
}

#area h2.wp-block-heading.is-style-stylenone:not(.has-text-align-center),
#ryuiki h2.wp-block-heading.is-style-stylenone:not(.has-text-align-center) {
  padding-left: 12px;
  border-left: 4px solid var(--main-ttl-bg, var(--header-bg));
}

/* カテゴリーを切り替えて記事を見せる一覧（[categoryTabs]・category_tabs.php。2026-10-12）。
   選んだボタンの色は、下の一覧へのボタン（WordPress 標準のボタン）と同じリンクの色（--main-link-color）。
   アクセント（--tocotoco-accent）にしていた版は、備後でボタンが紺・一覧へのボタンがオレンジと食い違った（2026-10-13）。
   一覧へのボタンは WordPress 標準のボタン（.wp-block-button）で、色や形はそちらに任せる */
.tocotoco-cat-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.tocotoco-cat-tabs__tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #ddd5cc;
  border-radius: 999px;
  background: #fff;
  color: var(--main-text-color);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tocotoco-cat-tabs__tab.is-active {
  border-color: var(--main-link-color);
  background: var(--main-link-color);
  color: #fff;
}

.tocotoco-cat-tabs__tab:focus-visible {
  outline: 2px solid var(--main-link-color);
  outline-offset: 2px;
}

.tocotoco-cat-tabs__desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: color-mix(in srgb, var(--main-text-color) 72%, transparent);
}

/* 一覧へのボタン（WordPress 標準のボタン。「地域を知る」の下の「倉敷エリアの記事一覧」と同じ）を中央に */
.tocotoco-cat-tabs__more {
  justify-content: center;
  margin-top: 1.5em;
}

/* スマホは4列のマス目にして全部を見せる（2026-10-13・戸井。1行の横スクロールだと右側のカテゴリーに気づけなかった）。
   長い名前はボタンの中で折り返す */
@media only screen and (max-width: 767px) {
  .tocotoco-cat-tabs__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .tocotoco-cat-tabs__tab {
    min-height: 44px;
    padding: 4px 4px;
    font-size: 13px;
    line-height: 1.3;
  }
  .tocotoco-cat-tabs__tab.is-wide {
    grid-column: span 2;
  }
}
/* コピーと日本地図の横並び（はれトピ！トップ・2026-10-12・戸井。改善案 1-A）。
   トップの固定ページで、[prefSelect layout="side" chips="1"] と [japanMap] を .tocotoco-pref-map のグループに入れる。
   地図は全幅（約 1,200px の高さ）をやめて右の列に収める。スマホは縦に積み、地図を小さく */
.tocotoco-pref-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  gap: 32px 56px;
  max-width: 1000px;
  margin: 3em auto;
}

.tocotoco-pref-map > .wp-block-group__inner-container {
  display: contents;
}

.tocotoco-pref-select--side {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin: 0;
}

.tocotoco-pref-select--side .tocotoco-pref-select__copy {
  font-size: 1.3em;
  line-height: 1.6;
}

.tocotoco-pref-select__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.tocotoco-pref-select--side .tocotoco-pref-select__label {
  display: block;
}

.tocotoco-pref-select--side .tocotoco-pref-select__select {
  width: 100%;
  min-height: 48px;
  border-color: var(--tocotoco-accent);
  border-radius: 8px;
  font-size: 15px;
}

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

.entry-content .tocotoco-pref-select__chips ul > li {
  margin: 0;
  padding: 0;
}

.entry-content .tocotoco-pref-select__chips ul > li::before {
  content: none;
  display: none;
}

.tocotoco-pref-select__chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--tocotoco-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.tocotoco-pref-select__chip:hover {
  color: #fff;
  opacity: 0.9;
}

.tocotoco-pref-select--side .tocotoco-pref-select__recruit {
  margin: 0;
}

@media only screen and (max-width: 767px) {
  .tocotoco-pref-map {
    grid-template-columns: minmax(0, 1fr);
    margin: 2em auto;
  }
  .tocotoco-pref-select--side .tocotoco-pref-select__copy {
    font-size: 1.25em;
  }
  .tocotoco-pref-map .tocotoco-japan-map-wrap {
    max-width: 360px;
    margin: 0 auto;
  }
}
/* 日本地図を、市民ライターがいる県に寄せて大きく見せる（[japanMap fit="active"]・2026-10-13・戸井）。
   線は拡大しても太くしない。県名は範囲の広さに合わせた大きさ（--tocotoco-map-label は japan_map.php が計算）。
   色の無い県にも名前を灰色で出して、どのあたりかを分かるようにする。右下に全国の小さな地図と、いま見ている範囲の枠 */
.tocotoco-japan-map.is-fitted .tocotoco-japan-map__pref path {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.5;
}

.tocotoco-japan-map.is-fitted .tocotoco-japan-map__label {
  display: block;
  font-size: calc(var(--tocotoco-map-label) * 0.85);
  font-weight: 400;
  fill: #8a857c;
  stroke: none;
}

.tocotoco-japan-map.is-fitted .tocotoco-japan-map__pref.is-active .tocotoco-japan-map__label {
  font-size: var(--tocotoco-map-label);
  font-weight: 700;
  fill: #fff;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: calc(var(--tocotoco-map-label) * 0.22);
}

.tocotoco-japan-map-wrap.is-fitted {
  border-radius: 12px;
  background: #f6f4ef;
  overflow: hidden;
}

.tocotoco-japan-map__overview {
  position: absolute;
  right: 10px;
  bottom: 30px;
  width: 112px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.tocotoco-japan-map__overview-map {
  position: relative;
  display: block;
}

.tocotoco-japan-map__overview img {
  display: block;
  width: 100%;
  height: auto;
}

.tocotoco-japan-map__overview-box {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--tocotoco-accent);
  border-radius: 2px;
}

.tocotoco-japan-map__note {
  margin: 0;
  padding: 4px 10px 8px;
  font-size: 12px;
  color: #8a857c;
  text-align: right;
}

@media only screen and (max-width: 767px) {
  .tocotoco-japan-map__overview {
    right: 6px;
    bottom: 26px;
    width: 72px;
    padding: 4px;
  }
}
/* 寄せずに全国の地図にしたとき（[japanMap fit="active"] で範囲が広すぎたとき・is-full。2026-10-13・戸井）は、
   横並びをやめて地図を全幅の大きな表示に戻す。出典は SVG の中では読めない大きさになるので隠し、下の HTML の文字で出す */
.tocotoco-japan-map-wrap.has-note .tocotoco-japan-map__credit {
  display: none;
}

.tocotoco-japan-map-wrap.is-full .tocotoco-japan-map__note {
  font-size: 12px;
}

/* 全国の地図も、PC では横並びの右の列（幅 600px）に収める。全幅にすると地図だけで約 950px あり、
   最新記事が画面3枚ぶん下になっていた（2026-12-02・戸井「一覧性が悪い」）。県はプルダウンでも選べる */
.tocotoco-pref-map:has(.tocotoco-japan-map-wrap.is-full) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  max-width: 1100px;
}

.tocotoco-pref-map:has(.tocotoco-japan-map-wrap.is-full) .tocotoco-japan-map-wrap {
  /* マス目の中で margin:auto だけだと中身の最小の幅（300px）まで縮むので、幅を明示する */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* スマホでは地図を出さない（小さくて県を押せない。2026-12-02・戸井）。県はプルダウンで選ぶ */
@media only screen and (max-width: 767px) {
  .tocotoco-pref-map {
    margin: 1.5em auto;
  }
  .tocotoco-pref-map .tocotoco-japan-map-wrap {
    display: none;
  }
}
/* 全国の表示では県名を一段大きく（座標の単位。トップの幅 約1,100px で 17px ほど） */
.tocotoco-japan-map-wrap.is-full .tocotoco-japan-map__pref.is-active .tocotoco-japan-map__label {
  font-size: 16px;
  stroke-width: 4px;
}
