{\rtf1\ansi\ansicpg932\cocoartf2822
\cocoatextscaling0\cocoaplatform0{\fonttbl}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0
}
.l-contents__inner:first-child {
padding-top: 0;
}

.c-container {
	max-width:80%;
}



/* 記事一覧（activity）のアーカイブだけに効かせる */
.post-type-archive-activity {

	/* 抜粋（本文の要約）は一覧で非表示にする */
	.c-entry-summary__excerpt {
	  display: none;
	}
  
	/* 日付＋カテゴリー＋タイトルを横に並べるベース */
	.c-entry-summary {
	  display: flex;
	  align-items: center;
	  gap: 1rem; /* それぞれの間隔 */
	}
  
	/* 日付部分（クラス名はテーマのHTMLに合わせて調整） */
	.c-entry-summary__meta {
	  white-space: nowrap;
	  margin-right: 1rem;
	}
  
	/* カテゴリーラベルっぽくする（activity_category 用） */
	.c-entry-summary__term,
	.c-meta__item--categories a {
	  display: inline-block;
	  padding: 2px 10px;
	  border-radius: 3px;
	  font-size: 0.85rem;
	  line-height: 1.6;
	}
  
	/* タイトルは残りの幅いっぱいを使う */
	.c-entry-summary__title {
	  flex: 1 1 auto;
	}
  }
  
  /* 必要なら、特定カテゴリーごとに色分け（スラッグに合わせて） */
  .post-type-archive-activity .c-entry-summary__term--activity_category-news {
	background: #00a0ff;
	color: #fff;
  }
  .post-type-archive-activity .c-entry-summary__term--activity_category-recruit {
	background: #666;
	color: #fff;
  }
  /* …他のカテゴリーも同様に */
  
  /* 記事一覧（activity）と、活動カテゴリーの一覧にだけ効かせる */
.post-type-archive-activity .mysm-activity-badge,
.tax-activity_category .mysm-activity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-right: 0.5em;
}

/* ここからカテゴリーごとの色分け（スラッグに合わせて） */

/* 会員限定（member-only） */
.mysm-activity-badge--member-only {
  background: #ef0000;
  color: #fff;
}

/* ニュース（news） */
.mysm-activity-badge--news {
  background: #0072b6;
  color: #fff;
}

/* 募集（recruit） */
.mysm-activity-badge--recruit {
  background: #fca000;
  color: #000;
}

/* 注意喚起（alert） */
.mysm-activity-badge--alert {
  background: #fff500;
  color: #000;
}

/* 活動報告（report） */
.mysm-activity-badge--report {
  background: #009825;
  color: #fff;
}

/* 未分類（uncategorized） */
.mysm-activity-badge--uncategorized {
  background: #a1007e;
  color: #fff;
}

/* 救助活動（training） */
.mysm-activity-badge--training {
  background: #00a3e7;
  color: #fff;
}

/* 講習会（seminar） */
.mysm-activity-badge--seminar {
  background: #ef005a;
  color: #fff;
}

/* 定例会（meeting） */
.mysm-activity-badge--meeting {
  background: #009e9f;
  color: #fff;
}


.post-type-archive-activity .mysm-archive-note {
	margin: 1rem 0 2rem;
	padding: 1rem;
	background: #f7f7f7;
	border-left: 4px solid #999;
	font-size: 1rem;
	line-height: 1.6;
  }


  .form-wrapper {
	max-width: 800px; /* 好きな幅に変更可：600〜900pxがおすすめ */
	margin: 0 auto;   /* これで中央寄せ */
	padding: 0 20px;  /* スマホで左右に余白を確保 */
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
  }
  
  .form-wrapper iframe {
	width: 100%; /* ラッパに合わせて縮む */
	display: block;
  }
  
  /**
 * 記事一覧（activity）とカテゴリー一覧の1ページあたりの件数を20件にする
 */
add_action( 'pre_get_posts', function( $query ) {

	// 管理画面 or メインクエリ以外には適用しない
	if ( is_admin() || ! $query->is_main_query() ) {
		return;
	}

	// 「記事一覧」アーカイブ または 「活動カテゴリー」アーカイブのときだけ
	if ( $query->is_post_type_archive( 'activity' ) || $query->is_tax( 'activity_category' ) ) {
		$query->set( 'posts_per_page', 20 );
	}
});

/* activity 個別ページの日付表示 */
.single-activity .mysm-activity-date {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

