@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}





/* スマホ・タブレットのハンバーガーメニュー */
@media screen and (max-width: 1023px) {

  /* メニュー全体の黒い帯を消す */
  .slicknav_menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    padding: 0;
    background: transparent;
    z-index: 9999;
  }

  /* ハンバーガーをヘッダー右側に配置 */
  .slicknav_btn {
    position: absolute;
    top: 62px;
    right: 22px;
    margin: 0;
    padding: 10px;
    background: transparent;
    border-radius: 0;
  }

  /* MENUの文字を消す */
  .slicknav_menu .slicknav_menutxt {
    display: none;
  }

  .slicknav_menu .slicknav_icon {
    margin: 0;
  }

  /* 三本線 */
  .slicknav_menu .slicknav_icon-bar {
    width: 26px;
    height: 3px;
    background: #fff;
    box-shadow: none;
  }

  .slicknav_btn .slicknav_icon-bar + .slicknav_icon-bar {
    margin-top: 5px;
  }

  /* 開いたメニュー */
  .slicknav_nav {
    position: absolute;
    top: 165px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  /* 各メニュー項目 */
  .slicknav_nav a {
    margin: 0;
    padding: 22px 20px;
    color: #333;
    font-size: 17px;
    border-bottom: 1px solid #eee;
  }

  .slicknav_nav a:hover {
    color: #333;
    background: #fafafa;
    border-radius: 0;
  }
}

/* ハンバーガー表示時は通常のメニューを隠す */
@media screen and (max-width: 1023px) {
  #navi {
    display: none !important;
  }
}
@media screen and (max-width: 1023px) {
  .slicknav_menu .slicknav_icon-bar {
    width: 32px;
    height: 3px;
  }

  .slicknav_btn .slicknav_icon-bar + .slicknav_icon-bar {
    margin-top: 7px;
  }

  .slicknav_btn {
    padding: 12px;
  }
}
/* 本文のH2見出しを白文字にする */
.entry-content h2.wp-block-heading,
.entry-content h2.wp-block-heading strong {
  color: #fff;
}
/* 固定ページの日付を非表示 */
.page .date-tags {
  display: none !important;
}





/* ヘッダー：ロゴ画像とサイト名を中央に横並び */
#header .logo-header .site-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#header .logo-header .site-name::before {
  content: "";
  display: block;
  flex: 0 0 170px;
  width: 170px;
  height: 84px;
  background: url("//matsukataemi.jp/wp-content/uploads/2026/09/20260810_白ロゴ.png") center / contain no-repeat;
}

@media (max-width: 600px) {
  #header .logo-header .site-name {
    gap: 8px;
  }

  #header .logo-header .site-name::before {
    flex-basis: 95px;
    width: 95px;
    height: 50px;
  }
}
/* 名前を大きくする */
#header .logo-header .site-name-text {
  font-size: 32px;
  line-height: 1.2;
}

/* 肩書きと名前の間を詰める */
#header-in .tagline {
  margin-bottom: -24px;
}

@media (max-width: 600px) {
  #header .logo-header .site-name-text {
    font-size: 26px;
  }

  #header-in .tagline {
    margin-bottom: -5px;
  }
}
@media (min-width: 601px) {
  #header .logo-header .site-name {
    gap: 1;
    transform: translateX(-20px);
  }

  #header .logo-header .site-name::before {
    flex-basis: 135px;
    width: 135px;
    background-size: 126px auto;
  }
}

.logo-text {
    padding: 31px 0 6px;
    font-size: 1em;
}

/* 固定ページの大見出し h2 */
body.page .entry-title, .archive-title  {
  text-align: center !important;
  font-weight: 500 !important;
	font-size:1.8em;
	padding-bottom:20px;
	color: #303030 !important;
	
}

/* 小見出し */
h3,h4 {
  font-weight: 600 !important;
　color:#888;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}


h3::before,
h4::before,
h3::after,
h4::after {
  content: none !important;
  display: none !important;
}
.article h4{ margin-bottom: 0.8em; }

/* 政策ページの本文だけ最大820px */
.type-page, #main{ max-width: 820px; margin-left: auto !important; margin-right: auto !important; }


/* 政策の番号を左カラム内の中央へ */
.wp-block-columns:has(h3.policy-heading)
  > .wp-block-column:first-child > p {
  text-align: center !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif !important;
  color: #e9ad80 !important;
  font-weight: 500 !important;
}

/* トップページの上部余白をなくす */
body.home #content,
body.home .content-in,
body.home .entry-content {
  margin-top: 0 !important;
}

body.home #main {
  padding-top: 0 !important;
}


/* トップページのカバー画像を画面幅いっぱいに */
body.home .entry-content .wp-block-cover {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
}




.breadcrumb.sbp-main-before {
  background-color: #f7f6f4;
  margin: 12px auto 0;
  padding: 0.6em 3em;
}

/* 本文内の「最新の投稿」を横長カードにする */
#main .entry-content ul.wp-block-latest-posts__list > li {
  display: grid !important;
  grid-template-columns: 38% minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 220px;
  margin: 0 0 24px !important;
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee7e1;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(35, 30, 25, 0.07);
}

/* 左：写真 */
#main .entry-content ul.wp-block-latest-posts__list > li
.wp-block-latest-posts__featured-image {
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

#main .entry-content ul.wp-block-latest-posts__list > li
.wp-block-latest-posts__featured-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* 右上：見出し */
#main .entry-content ul.wp-block-latest-posts__list > li
.wp-block-latest-posts__post-title {
  grid-column: 2;
  grid-row: 1;
  display: block;
  padding: 16px 20px 0 18px;
  color: #333;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

/* 右中央：本文 */
#main .entry-content ul.wp-block-latest-posts__list > li
.wp-block-latest-posts__post-full-content {
  grid-column: 2;
  grid-row: 2;
  padding: 12px 20px 12px 18px;
}

#main .entry-content ul.wp-block-latest-posts__list > li
.wp-block-latest-posts__post-full-content p {
  margin: 0 0 0.8em;
}

/* 右下：日付 */
#main .entry-content ul.wp-block-latest-posts__list > li
.wp-block-latest-posts__post-date {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  display: block;
  margin: 0;
  padding: 0 20px 16px 18px;
  font-size: 16px;
}

/* スマホ */
@media (max-width: 600px) {
  #main .entry-content ul.wp-block-latest-posts__list > li {
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto auto auto;
    min-height: 0;
  }

  #main .entry-content ul.wp-block-latest-posts__list > li
  .wp-block-latest-posts__featured-image {
    grid-column: 1;
    grid-row: 1;
  }

  #main .entry-content ul.wp-block-latest-posts__list > li
  .wp-block-latest-posts__post-title {
    grid-column: 1;
    grid-row: 2;
  }

  #main .entry-content ul.wp-block-latest-posts__list > li
  .wp-block-latest-posts__post-full-content {
    grid-column: 1;
    grid-row: 3;
  }

  #main .entry-content ul.wp-block-latest-posts__list > li
  .wp-block-latest-posts__post-date {
    grid-column: 1;
    grid-row: 4;
  }
}


/* プロフィールの経歴表 */
#post-33 .entry-content .wp-block-table {
  margin: 24px 0 64px !important;
  border: 0 !important;
  overflow: visible;
}

#post-33 .entry-content .wp-block-table table {
  width: 100% !important;
  table-layout: auto !important;
  border: 0 !important;
  border-collapse: collapse !important;
  background: transparent !important;
}

/* 「年月・経歴」の見出し行を非表示 */
#post-33 .entry-content .wp-block-table thead {
  display: none;
}

/* Cocoonのオレンジ色と縞模様を消す */
#post-33 .entry-content .wp-block-table tbody,
#post-33 .entry-content .wp-block-table tr,
#post-33 .entry-content .wp-block-table td {
  background: transparent !important;
  border: 0 !important;
}

/* 各行 */
#post-33 .entry-content .wp-block-table td {
  box-sizing: border-box;
  padding: 6px 12px !important;
  border-bottom: 1px solid #e7e3df !important;
  color: #34383d !important;
  line-height: 1.8;
  vertical-align: top;
}

/* 左の年月：25％ */
#post-33 .entry-content .wp-block-table td:first-child {
  width: 25% !important;
  padding-left: 0 !important;
  padding-right: 24px !important;
  color: #b66b3d !important;
  font-weight: 600;
  white-space: nowrap;
}

/* 右の経歴：75％ */
#post-33 .entry-content .wp-block-table td:nth-child(2) {
  width: 75% !important;
  padding-right: 0 !important;
}

/* 最終行の線を消す */
#post-33 .entry-content .wp-block-table tr:last-child td {
  border-bottom: 0 !important;
}

/* 「これまでの歩み」などプロフィール内の見出し */
#post-33 .entry-content h2,
#post-33 .entry-content h3 {
  margin: 58px 0 18px !important;
  padding: 0 0 11px !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid #ddd8d3 !important;
  box-shadow: none !important;
  color: #30343a !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif !important;
  font-size: 25px !important;
  font-weight: 600 !important;
}

#post-33 .entry-content h2::before,
#post-33 .entry-content h2::after,
#post-33 .entry-content h3::before,
#post-33 .entry-content h3::after {
  display: none !important;
}

/* スマホ */
@media (max-width: 600px) {
  #post-33 .entry-content .wp-block-table td {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    font-size: 14px;
  }

  #post-33 .entry-content .wp-block-table td:first-child {
    width: 32% !important;
    padding-right: 12px !important;
    white-space: normal;
  }

  #post-33 .entry-content .wp-block-table td:nth-child(2) {
    width: 68% !important;
  }
}

/* 支援ページ・Googleフォームボタン */
.support-form-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 42px auto 30px;
}

/* ボタン共通 */
.support-form-buttons .support-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  width: min(100%, 280px);
  min-height: 54px;
  padding: 13px 28px;
  border: 2px solid #ff7900;
  border-radius: 999px;
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* 1つ目：オレンジ塗り */
.support-form-buttons .support-button-primary {
  color: #fff !important;
  background-color: #ff7900;
  box-shadow: 0 8px 22px rgba(255, 121, 0, 0.20);
}

/* 2つ目：白地＋オレンジ枠 */
.support-form-buttons .support-button-outline {
  color: #d95f00 !important;
  background-color: #fff;
}

/* マウスを乗せたとき */
.support-form-buttons .support-button-primary:hover {
  color: #fff !important;
  background-color: #e96900;
  border-color: #e96900;
  box-shadow: 0 10px 26px rgba(255, 121, 0, 0.28);
  transform: translateY(-2px);
}

.support-form-buttons .support-button-outline:hover {
  color: #fff !important;
  background-color: #ff7900;
  transform: translateY(-2px);
}

/* キーボード操作時 */
.support-form-buttons .support-button:focus-visible {
  outline: 3px solid rgba(255, 121, 0, 0.35);
  outline-offset: 3px;
}

/* スマートフォン */
@media (max-width: 600px) {
  .support-form-buttons {
    margin-top: 32px;
  }

  .support-form-buttons .support-button {
    width: min(100%, 320px);
    min-height: 52px;
    font-size: 15px;
  }
}

.article h3{margin-bottom: 0.8em;}



/* ================================
   選挙ドットコム 活動記録
================================ */

.matsukata-activity-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

.matsukata-activity-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;

  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 28px;
}

.matsukata-activity-image {
  display: block;
  width: 100%;
  height: 165px;
  overflow: hidden;
  border-radius: 6px;
}

.matsukata-activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.matsukata-activity-body {
  padding: 0;
}

.matsukata-activity-date {
  margin-bottom: 6px;
  font-size: 13px;
  color: #777;
}

.matsukata-activity-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.5;
}

.matsukata-activity-title a {
  color: #222;
  text-decoration: none;
}

.matsukata-activity-title a:hover {
  text-decoration: underline;
}

.matsukata-activity-description {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.matsukata-activity-more {
  margin: 0;
}

.matsukata-activity-more a {
  color: #e56f00;
  font-weight: 700;
  text-decoration: none;
}

.matsukata-activity-more a:hover {
  text-decoration: underline;
}

/* スマホ */
@media screen and (max-width: 700px) {
  .matsukata-activity-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .matsukata-activity-image {
    height: 210px;
  }
}

/* ================================
   ココマデ選挙ドットコム 活動記録
================================ */

/* スマホでトップ画像の文字を少し下へ */
@media screen and (max-width: 767px) {
  .top-hero .wp-block-cover__inner-container {
padding-top: 247px;
        padding-right: 42px;
  }
}


/* =========================
   TOPメインビジュアル
   スマホ表示調整
========================= */
@media screen and (max-width: 600px) {

  /* カバー内のキャッチコピー */
  .wp-block-cover .wp-block-heading {
    font-size: 26px !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;

    /* 横幅をしっかり使う */
    width: 100% !important;
    max-width: none !important;

    /* 左右の余白を減らす */
    padding: 0 18px !important;
    box-sizing: border-box;

    /* 中央揃え */
    text-align: center !important;

    /* 不自然な改行を減らす */
    word-break: keep-all;
    overflow-wrap: normal;
  }

}


/* TOPキャッチコピー：スマホのみ調整 */
/* TOPキャッチコピー：スマホ */
@media screen and (max-width: 600px) {

  .wp-block-cover {
    position: relative;
  }

  .top-catchcopy {
        position: absolute !important;
        top: 227px !important;
        right: 34px !important;
        left: auto !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 25px !important;
        line-height: 1.6 !important;
        letter-spacing: 1.5px!important;
        text-align: right !important;
        z-index: 2;
    background: rgba(255, 255, 255, 0.38) !important;
    padding: 6px 10x !important;
    border-radius: 2px;
    }
}

@media screen and (max-width: 600px) {
  .wp-block-cover img.wp-block-cover__image-background {
    object-position: 21% 32% !important;
    transform: scale(1.28);
  }

}

/* ホームを家アイコンに変更 */
/* =====================================
   ホームメニューを家アイコンに変更
   PC・スマホ共通 / Font Awesome不要
===================================== */

/* ホームの文字を非表示 */
.menu-item.home-icon > a {
  font-size: 0 !important;
}

/* 家アイコンを表示 */
.menu-item.home-icon > a::before {
  content: "" !important;
  display: inline-block !important;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  background-color: currentColor;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;

  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =====================================
   PCのみ：幅・位置・サイズを調整
===================================== */
@media screen and (min-width: 1024px) {

  /* ホームメニューの幅を60pxに */
  .menu-item.home-icon {
    width: 60px !important;
    flex: 0 0 60px !important;
  }

  /* アイコンを上下左右中央に配置 */
  .menu-item.home-icon > a {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* アイコンのサイズと位置 */
  .menu-item.home-icon > a::before {
    position: static !important;
    display: inline-block !important;
    flex-shrink: 0;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    float: none !important;
  }
}

/* フッター上部の街並みイラスト */
.footer {
  position: relative;
  margin-top: 160px !important;
}

.footer::before {
  content: "";
  position: absolute;

  bottom: 100%;
  left: 0;

  width: 100%;
  height: 160px;

  background-image: url("http://matsukataemi.jp/wp-content/uploads/2026/10/fooder_design-scaled.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;

  pointer-events: none;
}

/* スマホ */
@media screen and (max-width: 600px) {
  .footer {
    margin-top: 90px !important;
  }

  .footer::before {
    height: 90px;
  }
}

/* オレンジ見出しの右側に白い鳥を配置 */
.wp-block-heading {
  background-image: url("http://matsukataemi.jp/wp-content/uploads/2026/10/tori_design.png");
  background-repeat: no-repeat;
  background-position: right 25px center;
  background-size: 100px auto;
}

/* スマホ */
@media screen and (max-width: 600px) {
  .wp-block-heading {
    background-position: right 12px center;
    background-size: 70px auto;
  }
}