@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*余白のグレーを消す*/
body {
  background-color: transparent;
}

.rinen-child {
  font-size: 22px;
}

.kokorozasi {
  font-size: 34px;
}

/*ボタン中央揃え*/
.botan {
  display: flex;
  justify-content: center;
}

/*固定ページ投稿日非表示*/
.post-18 .date-tags,
.post-423 .date-tags,
.post-11 .date-tags,
.post-341 .date-tags,
.post-13 .date-tags,
.post-16 .date-tags,
.post-319 .date-tags {
  display: none;
}

/*モバイルメニューの配色*/
.mobile-menu-buttons {
  background: #ecf0fb;
  color: #006630;
}

.mobile-menu-buttons .menu-button > a {
  color: #006630;
}

.navi-menu-content {
  background: #ecf0fb;
}

.menu-drawer a {
  color: #006630;
  box-shadow: 0px 1px 1px 0px #c8d5fa;
}

/*入力確認ボタン*/
.wpcf7-submit {
  background-color: #ecf0fb !important;
  /*背景色*/
}

/*ページネーション*/
.pagination-next {
  margin-top: 0;
}

.pagination-prev-link.key-btn,
.pagination-next-link.key-btn {
  font-size: 1em;
  width: 200px;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .pagination-prev-link.key-btn,
  .pagination-next-link.key-btn {
    width: 120px;
  }
}

.page-prev-next:hover {
  background-color: #ecf0fb !important;
}

.page-numbers:hover {
  background-color: #ecf0fb !important;
}

.wpcf7-submit:hover {
  color: #fff;
  /*フォントカラー*/
  background-color: #006630 !important;
  /*背景色*/
  transition: all 0.5s ease;
  /*アニメーション*/
}

/*記事一覧ホバー時の色*/
.a-wrap:hover {
  background-color: #ecf0fb;
}

/*記事一覧次のページの色*/
.pagination a {
  background-color: #ecf0fb;
}

.pagination a:hover {
  color: #fff;
  /*フォントカラー*/
  background-color: #006630 !important;
  /*背景色*/
}

.pagination-next-link,
.pagination-prev-link {
  background-color: #ecf0fb;
  /*背景色*/
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.pagination-next-link:hover,
.pagination-prev-link:hover {
  color: #fff;
  /*フォントカラー*/
  background-color: #006630 !important;
  /*背景色*/
}

/* ページネーション全体のレイアウト */
.pagination-wrapper.cumstom_pagination {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

/* 前へ・次へボタンのラッパー（横並び） */
.pagination-prev-next-wrapper.cumstom_pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* ボタンが1つだけの場合は中央揃え */
.pagination-prev-next-wrapper.cumstom_pagination.single-button {
  justify-content: center;
}

/* 前へ・次へボタンのスタイル */
.pagination-prev.cumstom_pagination,
.pagination-next.cumstom_pagination {
  flex: 0 0 auto;
}

/* ページ番号（前へ・次への下に配置） */
.pagination.cumstom_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* arrowボタン（< >）を非表示 */
.pagination.cumstom_pagination .prev,
.pagination.cumstom_pagination .next {
  display: none !important;
}

/* モバイル版：サイズを調整 */
@media screen and (max-width: 480px) {
  .pagination-prev-next-wrapper.cumstom_pagination {
    gap: 10px;
  }

  .pagination-prev-link,
  .pagination-next-link {
    padding: 8px 15px;
    font-size: 14px;
  }
}

/*コラム、活動報告ボタンをふんわり光らせる*/
.maxbutton-1,
.maxbutton-2:hover {
  transition: all 0.5s ease;
}

/*ボトムシェア・フォローボタンの枠組み*/
.sns-share.ss-bottom .sns-share-buttons {
  justify-content: center;
  /*左寄せ*/
  flex-wrap: wrap;
  /*折り返す*/
}

.sns-share.ss-bottom .sns-buttons a {
  background-color: #f5f5f5;
  color: #191970;
  border: 2px solid #191970;
  font-size: 17px;
}

/*記事のアイキャッチラベルを非表示*/
.cat-label {
  display: none;
}

/*時局講演会動画*/
.douga {
  padding: 0 150px 150px 150px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

@media screen and (max-width: 767px) {
  .only-pc {
    display: none;
  }
}
@media screen and (min-width: 768px) {
  .only-sp {
    display: none;
  }
}

/*1200px以下*/
@media screen and (max-width: 1200px) {
  /*必要ならばここにコードを書く*/
  .sns-share.ss-bottom .sns-buttons a {
    font-size: 15px;
  }

  .menu-item .item-label {
    font-size: 12px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
  .is-style-success-box p span {
    font-size: 18px;
  }

  .kokorozasi {
    font-size: 22px;
  }

  .stealth span {
    display: none;
  }

  .sns-share.ss-bottom .sns-buttons a {
    font-size: 13px;
  }

  /*時局講演会動画*/
  .douga {
    padding: 10px;
  }
}

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

/************************************
****　全体のバランス
************************************/
/*本文下の空白を削除*/
.entry-content {
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  article > .entry-content,
  aritcle > footer.article-footer {
    /*本文左右の空白*/
    padding: 0 20px;
  }
}

@media screen and (max-width: 880px) {
  .page-body {
    font-size: 17px;
  }
}

@media screen and (max-width: 480px) {
  .page-body {
    font-size: 17px;
  }
}

img {
  box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.2);
}

a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.body .article {
  /*本文SNSフォロー下の空白*/
  margin-bottom: 0;
}

/*ヘッダーの画像から影を消す*/
.logo-header img {
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
}

.logo-footer img {
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
}

/*固定ページ全タイトルを非表示*/
.page .entry-title {
  display: none;
}

/*フロント固定ページの投稿日を非表示*/
.home.page .post-date {
  display: none;
}

/*フロント固定ページの更新日を非表示*/
.home.page .post-update {
  display: none;
}

/*アピールエリアモバイル画像変更*/
@media screen and (max-width: 767px) {
  .appeal {
    background-image: url(http://backup.snmaeshima.com/wp-content/uploads/2023/09/モバイルタイトルロゴ.png);
    height: 410px;
  }
}

/*アピールエリアPC画像変更*/
@media screen and (min-width: 768px) {
  #appeal {
    height: calc(100vw * 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .appeal-in {
    min-height: auto;
    padding: 0;
    margin: 0;
  }

  .appeal-content {
    padding: 0;
  }

  /*モバイルだけ改行*/
  .kokorozasi br {
    display: none;
  }
}

/*h5見出しデザイン*/
.article h5 {
  font-size: 22px;
  padding-left: 0;
  border-bottom: solid 3px #006630;
  position: relative;
}

.button1 {
  display: block;
  text-align: center;
}

/*h1見出しデザイン*/
.article h1 {
  font-size: 36px;
  /*文字のサイズ*/
  border-bottom: 2px solid #006630;
  /*下線*/
  color: #006630;
  padding-bottom: 1.5em;
  margin-bottom: 15px;
  border-top: none;
}

@media screen and (max-width: 767px) {
  .article h1 {
    font-size: 22px;
  }
}

/*ショートコードでエントリーカードのような表示に*/
.like-entry-cards .new-entry-card-link.widget-entry-card-link.a-wrap {
  padding: 1.5%;
  max-width: none;
  margin-bottom: 3%;
  border: 1px solid #ccc;
}

.like-entry-cards .new-entry-card-thumb.widget-entry-card-thumb.card-thumb {
  width: 320px;
  float: left;
  margin-right: 1.6%;
}

.like-entry-cards
  .new-entry-card-content.widget-entry-card-content.card-content {
  margin-left: 330px;
  padding-bottom: 1.2em;
}

.like-entry-cards .new-entry-card-title.widget-entry-card-title.card-title {
  font-size: 18px;
  margin: 0 0 5px 0;
  line-height: 1.2;
  font-weight: bold;
}

.like-entry-cards
  .new-entry-card-snippet.widget-entry-card-snippet.card-snippet {
  font-size: 0.8em;
  max-height: 7.8em;
  line-height: 1.3;
  overflow: hidden;
}

.like-entry-cards .new-entry-card-date.widget-entry-card-date.display-none {
  bottom: 0;
  position: absolute;
  right: 0;
  text-align: right;
  line-height: 1;
  display: block;
  font-size: 0.7em;
}

.gyougae {
  display: block;
  margin-left: 2em;
  text-indent: -3em;
}

.sp_disp {
  display: none;
}

@media screen and (max-width: 1280px) {
  .like-entry-cards .new-entry-card-thumb.widget-entry-card-thumb.card-thumb {
    width: 38%;
  }

  .like-entry-cards
    .new-entry-card-content.widget-entry-card-content.card-content {
    margin-left: 40%;
  }
}

@media screen and (max-width: 480px) {
  .like-entry-cards
    .new-entry-card-content.widget-entry-card-content.card-content {
    margin-left: 0;
  }

  .like-entry-cards .new-entry-card-thumb.widget-entry-card-thumb.card-thumb {
    margin-bottom: 6px;
  }

  .like-entry-cards .new-entry-card-title.widget-entry-card-title.card-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .like-entry-cards
    .new-entry-card-snippet.widget-entry-card-snippet.card-snippet {
    margin-bottom: 0;
    clear: both;
    font-size: 13px;
    /*display: none;スニペットを非表示にする場合に使用*/
  }
}

/************************************
** ショートコードカテゴリ一覧
************************************/
.custom-entry-card-wrap.a-wrap {
  text-decoration: none;
  display: block;
  color: #333;
  padding: 1.5%;
  margin-bottom: 3%;
  transition: all 0.3s ease-in-out;
  border: 1px solid #ccc;
}

.custom-entry-card-wrap h2 {
  color: #333;
  font-size: 18px;
  margin: 0 0 5px 0;
  padding: 0;
  line-height: 1.6;
  font-weight: bold;
  background: none;
}

.custom-entry-card-wrap .entry-card-content {
  margin-left: 216px;
}

.custom-entry-card-wrap .entry-card-thumb {
  width: 216px;
}

.custom-entry-card-wrap .card-thumb img {
  display: block;
  width: 216px;
  height: 14vw;
  max-height: 140px;
  object-fit: cover;
}

.pagination.cumstom_pagination .border-partition a,
.pagination-next.cumstom_pagination .border-partition a,
.pagination-next.cumstom_pagination .border-partition a:first-of-type {
  border-top: solid;
  border-left: solid;
  border-right: solid;
  border-bottom: solid;
}

@media screen and (max-width: 480px) {
  .custom-entry-card-wrap h2 {
    font-size: 16px;
    line-height: 1.3;
  }

  .custom-entry-card-wrap .entry-card-content {
    margin-left: 38%;
  }

  .custom-entry-card-wrap .entry-card-thumb {
    width: 38%;
  }

  .custom-entry-card-wrap .card-thumb img {
    width: 100%;
    height: 18vw;
    max-height: 180px;
  }
}

.post-date {
}

/*==================================
  市政報告アーカイブページ
==================================*/

/* コンテナ */
.report-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ページヘッダー */
.report-archive-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #006630;
}

.report-archive-title {
  font-size: 32px;
  font-weight: bold;
  color: #006630;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* 市政報告リスト */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* 各市政報告アイテム */
.report-item {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 40px;
  max-width: 830px;
  margin: auto;
}

.report-item:last-child {
  border-bottom: none;
}

/* アイテムヘッダー（上部タイトル） */
.report-item-header {
  margin-bottom: 20px;
}

.report-item-main-title {
  font-size: 20px;
  font-weight: normal;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* メインコンテンツ（2カラムレイアウト） */
.report-item-content {
  display: flex;
  justify-content: space-between;
}

/* 左カラム：PDFサムネイル */
.report-item-thumbnail {
  flex-shrink: 0;
  max-width: 26%;
}

.report-item-thumbnail a {
  display: block;
  transition: opacity 0.3s ease;
}

.report-item-thumbnail a:hover {
  opacity: 0.8;
}

.report-item-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
}

/* サムネイルがない場合の代替表示 */
.report-no-thumbnail {
  width: 100%;
  aspect-ratio: 210 / 297; /* A4比率 */
  background-color: #f5f5f5;
  border: 2px dashed #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
}

.report-no-thumbnail .dashicons {
  font-size: 60px;
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.report-no-thumbnail p {
  margin: 0;
  font-size: 14px;
}

/* 右カラム：タイトルと目次 */
.report-item-details {
  width: 65%;
}

.report-item-title {
  font-size: 18px;
  font-weight: normal;
  margin: 0 0 20px 0;
  padding: 0;
  line-height: 1.6;
}

.report-item-title a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.report-item-title a:hover {
  color: #004499;
  text-decoration: underline;
}

/* 目次 */
.report-item-contents {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.report-item-contents ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0;
}

.report-item-contents li {
  margin-bottom: 8px;
  line-height: 1.8;
}

/* 改行用のspan（エレメンターコードから） */
.report-item-contents .gyougae {
  display: block;
  padding-left: 1em;
}

/* SPでの改行 */
.report-item-contents .sp_disp {
  display: none;
}

/* 市政報告が見つからない場合 */
.report-not-found {
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: #666;
}

/* ページネーション（既存のスタイルを使用） */
.report-archive-container .pagination-wrapper {
  margin-top: 60px;
}

/*==================================
  レスポンシブ対応
==================================*/

/* タブレット */
@media screen and (max-width: 834px) {
  .report-item-content {
    gap: 20px;
  }

  .report-item-thumbnail {
    flex: 0 0 35%;
    max-width: 250px;
  }

  .report-archive-title {
    font-size: 28px;
  }

  .report-item-main-title {
    font-size: 18px;
  }

  .report-item-title {
    font-size: 16px;
  }

  .report-item-contents {
    font-size: 14px;
  }
}

/* スマートフォン */
@media screen and (max-width: 480px) {
  .report-archive-container {
    padding: 15px;
  }

  .report-archive-header {
    margin-bottom: 30px;
  }

  .report-archive-title {
    font-size: 24px;
  }

  .report-list {
    gap: 30px;
  }

  .report-item {
    padding-bottom: 30px;
  }

  /* スマホでは縦並び */
  .report-item-content {
    flex-direction: column;
    gap: 15px;
  }

  .report-item-thumbnail {
    flex: none;
    max-width: 100%;
    width: 70%;
    max-width: 300px;
    margin: 0 auto;
  }

  .report-item-details {
    width: 100%;
  }

  .report-item-main-title {
    font-size: 16px;
  }

  .report-item-title {
    font-size: 15px;
  }

  .report-item-contents {
    font-size: 13px;
  }

  /* SPでの改行を表示 */
  .report-item-contents .sp_disp {
    display: inline;
  }
}

/*==================================
  外部サイトボタン（フッター直上）
==================================*/

/* 共通スタイル */
.external-site-wrapper {
  text-align: center;
  margin: 0 auto;
}

.external-site-title {
  color: #333;
  font-weight: normal;
}

.external-site-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.external-site-button {
  font-family: "Sawarabi Mincho", Sans-serif;
  font-weight: 400;
  color: #191970;
  background-color: #ecf0fb;
  border-style: solid;
  border-width: 1px;
  border-color: #191970;
  border-radius: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.external-site-button:hover {
  background-color: #006630;
  color: #fff;
  border-color: #006630;
}

.external-site-button .button-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.external-site-button .button-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.external-site-button .button-text {
  line-height: 1;
}

/* PC版スタイル */
.only-pc.external-site-wrapper {
  padding: 20px;
  margin-bottom: 40px;
}

.only-pc .external-site-title {
  font-size: 18px;
  margin-bottom: 20px;
}

.only-pc .external-site-button {
  padding: 13px 60px;
}

.only-pc .external-site-button .button-text {
  font-size: 16px;
}

/* モバイル版スタイル */
.only-sp.external-site-wrapper {
  padding: 0 10px;
  margin-bottom: 40px;
}

.only-sp .external-site-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.only-sp .external-site-button {
  padding: 10px 40px;
}

.only-sp .external-site-button .button-text {
  font-size: 14px;
}
