/*
Theme Name: Kurobuta Kagoshima
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.0
*/

@import url('https://fonts.googleapis.com/css2?family=Kaisei+Tokumin:wght@700;800&display=swap');

.hide {
  display: none!important;
}

.vk_post_imgOuter_singleTermLabel {
  background-color: rgb(158, 150, 90) !important;
  opacity: 0.8;
}
.shop_category-kodawari .vk_post_imgOuter_singleTermLabel { background-color: #d4ae53 !important; }
.shop_category-unmakabuta .vk_post_imgOuter_singleTermLabel { background-color: #2a518f !important; }
.shop_category-dealer .vk_post_imgOuter_singleTermLabel { background-color: rgb(179, 97, 169) !important; }
.shop_category-specialty-shop .vk_post_imgOuter_singleTermLabel { background-color: #ff3434 !important; }

/* 明朝体（見出し用）。Kaisei Decol / Kaisei Tokumin を想定。
   実際に使うにはGoogle Fontsの読み込みが別途必要 */
.font-mincho {
/*  font-family: "Kaisei Decol", "Kaisei Tokumin", serif;*/
  font-family: "Kaisei Tokumin", serif;
  font-weight: 800;
  font-style: normal;  
}

h2 {
  font-family: "Kaisei Tokumin", serif;
  font-weight: 800;
  font-style: normal;
}

input.btn, a.btn, button.btn {
   box-shadow: 0px 2px 3px rgb(215 200 163 / 50%);
}

body {
  position: relative;
  background-color: #e5d7b3;
  background-image: url(https://kagoshima-kurobuta.net/wp-content/uploads/bk_pc.jpg);
  background-position: center bottom!important;
  background-size: cover!important;
  background-repeat: repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-repeat: repeat;
  background-image: url(../../uploads/bg_pattern_1.png);
  background-size: 180px auto;
  opacity: 0.3;
}

/* 共通スタイル */
.style-round-border2 {
  border: 0;
  background-color: var(--wp--preset--color--vk-color-primary-dark);
  text-align: center;
  border-radius: 50px;
  font-size: 1.2rem;
  color: #fff;
}

/* 六角形見出し */
.style-hexa-border {
  margin: 0;
  padding: 2px 0px;
  background: var(--wp--preset--color--vk-color-primary);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  clip-path: polygon(4% 50%, 7% 0, 93% 0, 96% 50%, 93% 100%, 7% 100%);
  max-width: none !important;
}

/* 見出し*/
.is-style-vk-heading-double_black {
    border-top: double 3px var(--wp--preset--color--vk-color-primary-dark);
    border-bottom: double 3px var(--wp--preset--color--vk-color-primary-dark);
}

/* ブロック要素 */
#container {
  margin: 0 auto;
  padding: 0;
}

.bg-pattern-2 {
  position: relative;
  z-index: 1;
}
.bg-pattern-2::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-repeat: repeat;
  background-image: url(../../uploads/bg_pattern_2.png);
  background-size: 40%;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.35;
}

/* logo */
.site-header-logo a {
    font-size: 1rem;
}

/* Gナビ非表示 */
#vk-mobile-nav-menu-btn {
}
.vk-mobile-nav-menu-btn {
  border :0;
}

.btn-icn {
  position: relative;
}
.btn-icn::before {
  content: '';
  position: absolute;
  background-size: 100%;
}
.btn-icn-kurobuta::before {
  background-image: url(../../uploads/ico_kurobuta4_b.png);
  width: 72px;
  height: 66px;
  top: 43px;
  right: 0;
  z-index: 999;
}

.vk_post_btn {
  background-color: var(--wp--preset--color--vk-color-primary-dark);
    border-radius: 50px;
}

.wp-block-vk-blocks-button {
  padding: 0;
}

.vk_button_link .vk_button_link_caption {
  white-space: nowrap;  
}
.vk_button_link .vk_button_link_caption .caption1 {
  font-size: 18px;
}
.vk_button_link .vk_button_link_caption .caption2 {
  font-size: 24px;
}
.vk_button_link .vk_button_link_subCaption {
  font-size: 14px;
}

.btn-gold {
  --outer: 12px; /* 外枠の太さ */
  --inner: 3px;  /* 内枠の太さ */
  position: relative;
  padding: 32px 60px;
  border: .18em solid transparent; /* 外枠 */
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  text-align: center;
  background:
    /* 上部のハイライト */
    radial-gradient(ellipse 85% 130% at 50% 0%,
      rgba(255,255,255,.5) 0%, rgba(255,255,255,.36) 10%,
      rgba(255,255,255,.26) 20%, rgba(255,255,255,.17) 30%,
      rgba(255,255,255,.08) 45%, rgba(255,255,255,.03) 60%,
      rgba(255,255,255,0) 80%) padding-box,
    /* 本体 */
    linear-gradient(180deg,
      #fbf39f 6.3%, #f9ef9a 18%, #ede084 39.4%, #eadc7f 47.5%,
      #e1d172 60.4%, #ccb557 84.2%, #c8af52 93.5%) padding-box,
    /* 外枠 */
    linear-gradient(159deg,
      #c2a449 7.2%, #b4913b 11.2%, #b4913b 14.2%, #bc9d43 17.2%,
      #decd6e 25.2%, #f2eb8c 38.2%, #f9f397 45.2%, #f9f498 50.2%,
      #e9dc7d 56.2%, #c0a247 63.2%, #b5923b 66.2%, #b3903a 68.2%,
      #bea045 71.2%, #e3d575 76.2%, #f7f092 80.2%) border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,.25) !important;
    border: 0 !important;
}
.btn-gold:hover,
.btn-gold:hover .vk_button_link_subCaption {
  color: var(--wp--preset--color--vk-color-primary-dark)!important;
}

/* 内側の細い枠 */
.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid transparent;
  border-radius: inherit;
  background: linear-gradient(151deg,
    #bfa249 7%, #f8f194 13%, #e7d074 17%, #dec366 19%,
    #dec265 20%, #e0c76a 22%, #f9f197 29%, #f9f197 32%,
    #e6d77a 36%, #c4a84d 40%, #b8963e 42%, #b3903a 44%,
    #b3903a 50%, #bfa347 55%, #dccb6c 62%, #fdf4a3 67%,
    #fff8b3 68%, #fffac5 70%, #fff9bd 72%, #fef7a3 74%,
    #faf39c 75%, #e9dd7c 79%, #d7c464 81%) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0) border-box;
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.btn-gold__sub  { grid-area: sub;  font-size: 22px; }
.btn-gold__main { grid-area: main; font-size: 48px; line-height: 1.1; }
.btn-gold__date { grid-area: date; font-size: 24px; letter-spacing: .08em; margin-top: 8px; }

.bg-pattern-2 {
  /*
  margin-left: -20px !important;
  margin-right: -20px !important;
  */
}

#btn-quiz-entry {
  margin: 10px 8px;
}

.border-block-icn {
  position: relative;
}
.border-block-icn.border-block-icn-right::before {
  left: auto;
  right: 7px;
  background-image: url(../../uploads/ico_kurobuta1_2.png);
  top: -27px;
}
.border-block-icn::before {
  content: '';
  position: absolute;
  background-size: 100%;
  background-image: url(../../uploads/ico_kurobuta1.png);
  width: 56px;
  height: 65px;
  top: -40px;
  left: -20px;
  z-index: 999;
}
.border-block-icn-2::before {
  background-image: url(../../uploads/ico_kurobuta2.png);
  width: 56px;
  height: 65px;
  top: -30px;
  left: -20px;
}
.border-block-icn-3::before {
  background-image: url(../../uploads/ico_kurobuta3.png);
  width: 56px;
  height: 65px;
  top: -30px;
  left: -20px;
}
.border-block-icn-4::before {
  background-image: url(../../uploads/ico_kurobuta4.png);
  width: 56px;
  height: 65px;
  top: -30px;
  left: -20px;
}

/* post list vk_posts card */
.vk_posts-layout-card {
  display: flex;
  gap: 15px;
  margin: auto;
} 
.vk_posts-layout-card .vk_post {
  width: calc(50% - 8px);
  margin: 0;
}
.vk_posts-layout-card .vk_post .vk_post_body {
  padding: 8px 8px 12px;
}
.vk_posts-layout-card .vk_post_title {
  font-size: 16px;
  line-height: 1.2;
}
.vk_posts-layout-card .shop-profile {
  margin: 8px 0 0 !important;
  font-weight: normal;
  font-size: 0.9rem;
}
.vk_posts-layout-card .shop-url-btn {
  margin: 10px 0 0;
}
.vk_posts-layout-card .vk_button_link {
  font-size: 1rem !important;
  padding: 10px 0 !important;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 19px;
  border-width: 0.1px !important;
}

/* shop-list */
.shop-list .vk_post_imgOuter a,
.shop-list .vk_post_title a {
  pointer-events: none;
  cursor: default;
}

/* post list swiper */
.vk_post_list_slider .vk_post {
    height: 100%;
    width: 100%;
    margin: 0;
}
.vk_post_list_slider .vk_post .vk_post_title {
  font-size: 18px;
}
.vk_post_list_slider .swiper-button-prev {
    left: 0px;
    top: 110px;
}
.vk_post_list_slider .swiper-button-next {
    right: 0px;
    top: 110px;
}
.vk_post_list_slider .swiper-pagination {
  margin: 10px 0 0;
}

/* .vk_post .shop-info */
.vk_post .shop-info {
    margin: 5px 0 0;
}

.vk_post:not(.has-post-thumbnail) .vk_post_imgOuter {
  background-image: url(https://kagoshima-kurobuta.net/wp-content/uploads/pic_shop_noimage.png) !important;
}
.vk_post:not(.has-post-thumbnail) img {
  content: url(https://kagoshima-kurobuta.net/wp-content/uploads/pic_shop_noimage.png) !important;
}

.vk_post .shop-info li {
  font-size: 13px;
  line-height: 1.4;
  font-weight: normal;
}
.vk_post .shop-url-btn {
  text-align: center;
  margin: 0;
}
.vk_post .shop-url-btn .btn {
  border-radius: 30px;
  padding: 10px 20px;
  background: transparent;
  color: var(--wp--preset--color--vk-color-primary-dark) !important;
  font-size: 15px;
  margin: 10px 0 0;
  max-width: 100%;
  font-size: 12px;
}
.shop-info ul {
  list-style: none;
  margin: 0 !important;
  padding: 0;
}
.shop-info li {
  display: flex;
  gap: 5px;
  margin: 1px 0 0;
  line-height: 1.5;
}
.shop-info li::before {
  font-family: "Font Awesome 7 Free";
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
  width: 15px;
}
/* 郵便番号 */
.shop-info .shop-zip::before {
  content: "〒";
  font-family: inherit;
  font-weight: normal;
}
/* 店舗・住所 */
.shop-info .shop-address::before {
  content: "\f1ad";
}
/* 営業時間 */
.shop-info .shop-hour::before {
  content: "\f017";
}
/* 定休日 */
.shop-info .shop-holiday::before {
  content: "\f073";
}
/* 電話 */
.shop-info .shop-tel::before {
  font-weight: 900;
  content: "\f095";
}
/* 自由テキスト */
.shop-info .shop-profile::before {
  content: "\f4ad";
}

/* .tab-shops */
.tab-shops .vk_tab_labels_label {
  padding: 0 !important;
}
.vk_tab_labels_label div {
  padding: 10px 10px;
  font-size: 1.1rem;
}
.tab-shops ul li:nth-child(1).vk_tab_labels_label-state-inactive div {
  background-color: #baa64e45 !important;
}
.tab-shops ul li:nth-child(2).vk_tab_labels_label-state-inactive div {
  background-color: rgba(195, 44, 44, 0.7) !important;
  color: #fff;
}
.tab-shops ul li:nth-child(3).vk_tab_labels_label-state-inactive div {
  background-color: rgba(240, 207, 191, 0.7) !important;
}
.tab-shops ul li:nth-child(4).vk_tab_labels_label-state-inactive div {
  background-color: rgba(187, 203, 164, 0.5) !important;
}
.tab-shops ul li:nth-child(5).vk_tab_labels_label-state-inactive div {
  background-color: rgba(83, 48, 115, 0.16) !important;
}

/**
 * page_top
 */
#page_top {
  background-image: url(../../uploads/ico_kurobuta3.png);
  background-size: 100%;
  background-color: transparent;
  outline: 0 !important;
  box-shadow: none;
  width: 57px;
  z-index: 1000000000000;
  height: 70px;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.5));
  bottom: 66px;
  /* フェード用に置き換え */
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.scrolled #page_top {
  opacity: 1;
  visibility: visible;
}

/* サムネイルに重ねる再生ボタン（YouTubeアイコンそのものを使用） */
.thumbnail-youtube {
  position: relative;
}
.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
  opacity: 0.75;
}
.yt-play-btn i {
  color: #ff0000;
  font-size: 64px;
  margin: 0;
}

/* サムネイル→動画のフェード切り替え用。
   display:noneはtransitionが効かないため、opacityで見た目のフェードを
   作り、実際のhide/show（display切り替え）はJS側でopacityの変化後に行う */
.thumbnail-youtube .wp-block-image,
.thumbnail-youtube .wp-block-embed {
  transition: opacity 0.25s ease;
  opacity: 1;
}
.thumbnail-youtube .wp-block-image.is-fading,
.thumbnail-youtube .wp-block-embed.is-fading {
  opacity: 0;
}
.thumbnail-youtube .wp-block-image {
  cursor: pointer;
}

/* iframe自体のwidth/height属性（YouTube埋め込み側が出力する固定px値）を
   無視し、常に.wp-block-embed__wrapperの幅いっぱい・9:16比率で表示する */
.thumbnail-youtube .wp-block-embed {
  max-width: 400px; /* サムネイル（.wp-block-image）と同じ上限に揃える */
}
.thumbnail-youtube .wp-block-embed__wrapper {
  aspect-ratio: 9 / 16;
}
.thumbnail-youtube .wp-block-embed__wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  margin: 0;
}

/* クイズ参加ボタンに重ねるロック中オーバーレイ */
.quiz-unlock-wrap {
  position: relative;
}
.quiz-unlock-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  background: rgba(40, 40, 40, 0.25);
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
}

/********************************************************************************
 * quiz
 ********************************************************************************/
#quiz {
  padding: 0 0 5px;
}
 .quiz {
}
.quiz-section {
  box-shadow: 0px 0px 6px rgba(130, 94, 57, 0.25);
  padding: 30px 0;
}

.quiz .question {
}
.quiz .check {
    padding: 30px 0 20px;
}

.quiz .quiz-question {
  padding: 25px 15px;
  border-radius: 0;
  line-height: 1.6;
  letter-spacing: 0.3px;
  font-size: 28px;
}
.quiz .quiz-choices {
  padding: 0;
}

/* 選択肢リストにカウンターをリセット */
.quiz-choices {
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0rem;  
 }
.quiz-choices li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--wp--preset--color--vk-color-primary-dark);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0 0;
  min-height: 100px;
  font-size: 1.5rem;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  letter-spacing: 0.1rem;
  cursor: pointer;
  box-shadow: 0px 2px 3px rgb(215 200 163 / 50%);
}
.quiz-choices li .quiz-choice-char {
  background: var(--wp--preset--color--vk-color-primary-dark);
  color: #fff;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 50%;
  display: inline-block;
  align-items: center;
  line-height: 37px;
  text-indent: 2px;
  font-weight: bold;
}
.quiz-choices li .quiz-choice-text {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 0;
}

/* 選択中の選択肢にハイライトを効かせる（クイズ・総選挙 共通） */
.quiz-choices li.selected {
  background: var(--wp--preset--color--vk-color-primary-dark);
  color: #fff;
}

/* 選択済みの選択肢：バッジの色も反転させる */
.quiz-choices li.selected .quiz-choice-char {
  background: #fff;
  border-color: #fff;
  color: var(--wp--preset--color--vk-color-primary-dark);
}

/* .quiz-choices-grid */
.quiz-choices-grid {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.quiz-choices-grid li {
  width: calc(33% - 6px);
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.quiz-choices-grid li .quiz-choice-img {
  display: flex;
  align-items: center;
  height: 100%;
}
.quiz-choices-grid li .quiz-choice-img img {
  height: 100%;
  object-fit: cover;
  width: 100%;  
  transition: all 0.3s ease;                 /* 解除：フェードだけ */  
}
.quiz-choices-grid li .quiz-choice-text {
  position: absolute;
  font-size: 16px;
  bottom: 3px;
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  background-color: #fff;
  margin: 0 auto;
  line-height: 1;
  padding: 3px 14px;
  border-radius: 20px;
  color: #333;
}

/* 選択状態 */
.selected .quiz-choice-img img {
  transform: scale(1.1);
}
.quiz-choice-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(207, 181, 100, 0.6);
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.selected .quiz-choice-img::after {
  clip-path: circle(100% at 50% 50%);
  opacity: 1;
  transition: clip-path 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease; /* 選択：円が広がる */
}

/* answer */
.answer .btn-block {
}
.answer .btn-block .btn {
  background-color: var(--wp--preset--color--vk-color-primary-dark);
  box-shadow: 0px 3px 3px rgba(130, 94, 57, 1);
  display: flex;
  border-radius: 50px;
  justify-content: center;
  align-items: center;
  padding: 15px 10px;
  margin: 23px 0 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
}

/* クイズ回答画面：正誤アイコン（○/✕） */
.quiz-answer-icon {
  display: inline-block;
  margin-right: 0.3em;
  font-weight: bold;
  -webkit-text-stroke: 2px currentColor;
  text-shadow: 0 0 1px currentColor, 0 0 1px currentColor;
}
.quiz-answer-icon.is-correct {
  color: #34d399;
}
.quiz-answer-icon.is-incorrect {
  color: #fb7185;
}

/* 投票するボタンの無効状態 */
#vote .vk_button_link.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.quiz .hint {
  margin: 24px 0 0;
  padding: 30px 0;
  min-height: 90vh;
}
.quiz .hint-list {
  display: flex;
  flex-wrap: wrap; /* is-playingで100%になった分は隠さず、もう一方を下に折り返す */
  gap: 15px;
  justify-content: space-between;
}
.quiz .hint-list .hint-block {
  width: calc(50% - 7.5px);
}
/* 動画再生中はそのヒントだけ幅いっぱいに広げ、常に先頭（上）に表示する。
   flexのorderはDOM順を無視して表示順だけ変えられるため、2本目の動画を
   再生してもJS側でDOM入れ替えをせずにこれだけで先頭へ移動できる。
   （quiz.jsがkb:video-play/kb:video-stopを購読してis-playingを付け外しする） */
.quiz .hint-list .hint-block.is-playing {
  width: 100%;
  order: -1;
  margin: 0 0 10px;
}
.quiz .hint-list .hint-block .quiz-hint-movie-title {
  font-size: 1rem;
  margin: 3px 0 0;
  border: 0;
  padding: 0;
}
.quiz .hint-list .hint-block .quiz-hint-movie-title::after {
  content: none;
}

/* ==========================================
   かごしま黒豚 CF7フォーム 追加CSS
   （テーマのカスタムCSS / 追加CSSに貼り付け）
   画面仕様書準拠：紙質感のクリーム背景・
   フラットでシンプルなデザイン
   ========================================== */

.kb-form{
  --ink:#211d17;
  --border:#d9cfba;
  --field-bg:#ffffff;
  --muted:#8c8171;
  --accent:#a9822d;
  --accent-dark:#8f6d24;

  width:100%;
  padding:0;
  font-family:"Hiragino Sans","Noto Sans JP",sans-serif;
  color:var(--ink);
}

.kb-form *{ box-sizing:border-box; }

/* ヘッダー */
.kb-form .kb-eyebrow{
  text-align:left;
  font-size:11px;
  letter-spacing:0.2em;
  color:var(--muted);
  margin:0 0 6px;
}
.kb-form .kb-heading{
  text-align:left;
  font-size:22px;
  font-weight:700;
  margin:0 0 4px;
  color:var(--ink);
  letter-spacing:0.02em;
}
.kb-form .kb-sub{
  text-align:left;
  font-size:13px;
  color:var(--muted);
  margin:0 0 8px;
}
/* セクション見出し */
.kb-form .kb-section-title{
  font-size:13px;
  font-weight:700;
  letter-spacing:0.1em;
  color:var(--ink);
  margin:36px 0 18px;
}
.kb-form .kb-section-title::before,
.kb-form .kb-section-title::after{
  content:none;
}

.kb-form .kb-survey-intro{
  text-align:left;
  padding:0 0 6px;
}
.kb-form .kb-survey-intro h3{
  font-size:19px;
  font-weight:700;
  margin:0 0 24px;
  color:var(--ink);
}

/* 各項目（カード枠は使わず、余白だけで区切る） */
.kb-form .kb-card{
  background:none;
  color:var(--ink);
  border-radius:0;
  padding:0;
  margin-bottom:26px;
  box-shadow:none;
  border:none;
}

.kb-form .kb-label{
  display:block;
  font-size:15px;
  font-weight:700;
  color:var(--ink);
  margin-bottom:10px;
  letter-spacing:0.01em;
  line-height:1.5;
}

.kb-form .kb-q-num{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  color:#fff;
  background:var(--ink);
  border-radius:999px;
  padding:2px 10px;
  margin-right:8px;
}

/* 必須バッジ */
.kb-form .kb-required{
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #c0392b;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: 2px;
  letter-spacing: 0.02em;
}

/* テキスト・メール・セレクト・テキストエリア */
.kb-form .kb-input,
.kb-form .kb-select,
.kb-form .kb-textarea{
  width:100%;
  font-size:15px;
  padding:14px 16px;
  border-radius:14px;
  border:1.5px solid var(--border);
  background:var(--field-bg);
  color:var(--ink);
  appearance:none;
  -webkit-appearance:none;
  margin: 5px 0 0;
}
.kb-form .kb-textarea{
  resize:vertical;
  min-height:100px;
}
.kb-form .kb-textarea::placeholder,
.kb-form .kb-input::placeholder{
  color:var(--muted);
}

/* セレクトボックスの矢印（Font Awesome使用）
   <select>自体には::afterが効かないため、CF7ショートコード側で
   セレクトのタグだけを手動で<span class="select-wrap">に囲んでいる
   （テキスト等には付けていないので、JSや:has()での判定は不要）。
   .select-wrap::after でアイコンを描画する。 */
.kb-form .kb-select{
  padding-right:40px;
  cursor:pointer;
}
.kb-form .select-wrap{
  position:relative;
  display:block;
}
.kb-form .select-wrap::after{
  font-family:"Font Awesome 7 Free";
  font-weight:900;
  content:"\f0d7";
  position:absolute;
  right:16px;
  top:28px;
  transform:translateY(-50%);
  pointer-events:none;
  color:var(--ink);
  font-size:22px;
}

.kb-form .kb-input:focus,
.kb-form .kb-select:focus,
.kb-form .kb-textarea:focus{
  outline:none;
  border-color:var(--ink);
}

/* クイズ結果・総選挙結果など、JSで自動入力されるreadonly項目 */
.kb-form .kb-readonly{
  background:#ffe9e9;
  color:var(--ink);
  cursor:default;
}
.kb-form .kb-readonly:focus{
  border-color:var(--border);
}

/* ラジオボタン（横並び・シンプルな丸のみ） */
.kb-form .kb-radio{
  display:flex;
  flex-wrap:wrap;
  gap:16px 32px;
  margin-top:2px;
}
.kb-form .kb-radio .wpcf7-list-item{
  margin:0;
}
.kb-form .kb-radio .wpcf7-list-item-label{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  color:var(--ink);
  background:none;
  border:none;
  border-radius:0;
  padding:0;
  cursor:pointer;
}
.kb-form .kb-radio input[type="radio"]{
  appearance:none;
  -webkit-appearance:none;
  width:22px;
  height:22px;
  min-width:22px;
  border-radius:50%;
  border:1.5px solid var(--ink);
  display:grid;
  place-content:center;
  margin:0;
  background:var(--field-bg);
}
.kb-form .kb-radio input[type="radio"]::before{
  content:"";
  width:11px;
  height:11px;
  border-radius:50%;
  transform:scale(0);
  background:var(--ink);
  transition:transform .12s ease;
}
.kb-form .kb-radio input[type="radio"]:checked::before{
  transform:scale(1);
}

/* 送信ボタン・戻るボタン */
/* CF7のwpautopにより <p><button>戻る</button><br><input type="submit">…</p>
   という1つのpタグの中に両方入る構造になるため、p自体をflex化して
   brを非表示にする */
.kb-form .kb-submit-wrap{
  margin-top:36px;
}
.kb-form .kb-submit-wrap p{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0;
}
.kb-form .kb-submit-wrap br{
  display:none;
}
.kb-form .kb-back-btn{
  width:100%;
  font-size:15px;
  letter-spacing:0.1em;
  color:var(--ink);
  background:none;
  border:1.5px solid var(--border);
  border-radius:999px;
  padding:15px 24px;
  font-weight:700;
  cursor:pointer;
  transition:background .12s ease, border-color .12s ease;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  box-sizing:border-box;
}
.kb-form .kb-back-btn:hover{
  background:#f4efe4;
  border-color:var(--ink);
}
.kb-form .kb-submit-btn{
  width:100%;
  font-size:16px;
  letter-spacing:0.1em;
  color:#fff;
  background: var(--wp--preset--color--vk-color-primary-dark);
  border:none;
  border-radius:999px;
  padding:17px 24px;
  font-weight:700;
  cursor:pointer;
  transition:background .12s ease;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  box-sizing:border-box;
}
.kb-form .kb-submit-btn:hover{
  background:var(--accent-dark);
}

.kb-form .kb-footnote{
  text-align:center;
  font-size:11px;
  color:var(--muted);
  margin-top:22px;
}

.kb-form .wpcf7-spinner {
  position: absolute;
  margin-top: 18px;
}

/* CF7のエラー表示・必須マークの見た目調整 */
.kb-form .wpcf7-not-valid-tip{
  font-size:12px;
  color:#a8442f;
  margin-top:6px;
}
.kb-form .wpcf7-response-output{
  color:var(--ink);
  border-color:var(--border) !important;
}

.site-footer {
  border: 0;
}
#block-5 {
  display: none;
}
#block-6 {
  display: none;
}

/* 非対応ブラウザ向け通知モーダル（common.js の
   showUnsupportedMessageAndRedirect() から使用） */
.unsupported-browser-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}
.unsupported-browser-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 90%;
  width: 360px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.unsupported-browser-modal p {
  margin: 0 0 16px;
  font-weight: bold;
}
.unsupported-browser-modal p.unsupported-browser-message {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: normal;
}
.unsupported-browser-modal button {
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  background: #a9822d;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}