#slideshow {
  --slideheight: 90vh;
  --slideheight_mobile: 40vh;
}

#slideshow,
#slideshow .wp-block-group__inner-container {
  width: 100vw;
  padding: 0;
  position: relative;
  min-height: var(--slideheight) !important;
}
@media only screen and (max-width: 480px) {
  #slideshow,
  #slideshow .wp-block-group__inner-container {
    min-height: var(--slideheight_mobile) !important;
  }
}

#slideshow .wp-block-cover {
  opacity: 0;
  min-height: var(--slideheight) !important;
  position: absolute;
  z-index: 98;
  transition: opacity 3s ease-in-out;
}
@media only screen and (max-width: 480px) {
  #slideshow .wp-block-cover {
    min-height: var(--slideheight_mobile) !important;
  }
  #slideshow .wp-block-cover .wp-block-image figure {
    max-width: 60%;
  }
}
#slideshow .wp-block-cover.showSlide {
  opacity: 1;
  z-index: 99;
}

/* 都道府県のメインイメージのスライドショー（pref_slideshow.php ・ 2026-10-04 夜）
   #slideshow の寸法・重なり・フェードは上の規則（倉敷のカバー写真のスライドショー）がそのまま当たる。
   画像を背景に敷く・暗幕・文字を中央に重ねるのは WordPress 本体のカバーブロックの CSS
   （pref_slideshow.php が読み込む）。ここはカバーの横幅と、中の文字（県名・1文・ボタン）だけ */
#slideshow.tocotoco-pref-slideshow {
  /* スマホは写真の横幅が全部入る高さにする（3:2 の写真で 100vw × 2/3。倉敷と同じ 40vh だと両端が切れる。
     2026-10-04 夜・戸井「スマホでなるべく横幅が全体表示されるサイズに」）。PC は倉敷と同じ 90vh のまま */
  --slideheight_mobile: calc(100vw * 2 / 3);
}

#slideshow .tocotoco-pref-cover {
  /* 上の規則で absolute になるので、幅を明示しないと中身の幅（文字の幅）に縮む */
  left: 0;
  right: 0;
  width: 100%;
}

.tocotoco-pref-cover .wp-block-cover__inner-container {
  width: 100%;
  max-width: 1166px;
  margin: 0 auto;
  padding: 0 4vw;
  text-align: center;
}

.tocotoco-pref-cover__box {
  display: inline-block;
  max-width: 36em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.tocotoco-pref-cover__kicker {
  margin: 0 0 0.3em;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

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

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

/* 写真を借りた記事の名前（その記事へのリンク） */
.tocotoco-pref-cover__post {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

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

/* 押す先は県トップの1つ（2026-10-13・戸井）。ボタンを主にし、写真全体（__link）も同じ先へ */
.tocotoco-pref-cover__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 1.2em;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--tocotoco-accent, #c4501a);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
  pointer-events: auto;
}

.tocotoco-pref-cover__btn:hover {
  color: #fff;
  filter: brightness(1.08);
}

.tocotoco-pref-cover__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 文字の入れ物が写真の中央を覆うので、ボタン以外は押しても写真のリンクに抜けるようにする */
.tocotoco-pref-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.tocotoco-pref-cover__credit {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  max-width: 60%;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

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

.entry-content > #area > .wp-block-group:first-child,
.entry-content > #area > .wp-block-group__inner-container > .wp-block-group:first-child {
  margin-top: 0 !important;
}

.entry-content 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));
}
