@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){
  /*必要ならばここにコードを書く*/
}

/* アフィリエイト CTA カード */
.af-cta {
	background: #f8f8f8;
	border-left: 3px solid #666;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 24px 0;
}
.af-cta__link {
	display: flex;
	gap: 20px;
	text-decoration: none !important;
	color: inherit;
	align-items: flex-start;
}
.af-cta__link:hover { opacity: 0.85; }
.af-cta__img {
	width: 120px;
	height: auto;
	flex-shrink: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.af-cta__body { flex: 1; }
.af-cta__title {
	font-size: 1.05em;
	font-weight: bold;
	margin-bottom: 6px;
	line-height: 1.4;
}
.af-cta__meta {
	font-size: 0.85em;
	color: #666;
	margin-bottom: 8px;
}
.af-cta__desc {
	font-size: 0.9em;
	margin-bottom: 12px;
	line-height: 1.5;
	color: #333;
}
.af-cta__btn {
	display: inline-block;
	padding: 8px 18px;
	font-size: 0.9em;
	border-radius: 4px;
	color: white !important;
	font-weight: bold;
	text-decoration: none;
}
.af-cta__btn--amazon { background: #ff9900; }
.af-cta__btn--udemy  { background: #a435f0; }
.af-cta__btn--school { background: #4a90e2; }

@media (max-width: 640px) {
	.af-cta__link { flex-direction: column; align-items: center; }
	.af-cta__img { width: 160px; }
	.af-cta__body { text-align: center; }
}

/* AF-11: 比較表のスマホ対応 */
.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}
.table-responsive table {
	min-width: 600px;
}