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

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

/* 教材ページプラグインcss */
.mdrip-box {
	margin: 1.5em 0;
}

.mdrip-progress-bar {
	width: 100%;
	height: 24px;
	background: #e9ecef;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.mdrip-progress-bar-inner {
	height: 100%;
	background: #53a1de;
	border-radius: 12px;
	transition: width 0.4s;
	text-align: center;
	color: #fff;
	font-weight: bold;
	line-height: 24px;
	font-size: 13px;
}

.mdrip-progress-label {
	text-align: right;
	font-size: 14px;
	margin-top: 4px;
	color: #555;
}

.mdrip-grid {
	display: flex;
	flex-wrap: wrap;
}

.mdrip-checklist-month h2 {
	margin: 48px 0 16px;
	font-size: 20px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 0.3em;
}

.mdrip-month {
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	width: 49%;
	justify-content: space-between;
}

.mdrip-checklist-item {
	display: flex;
	align-items: center;
	margin: 0.5em 0;
	padding: 0 0.8em;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	transition: background-color 0.2s;
}

.mdrip-checklist-item:hover {
	background: #f9fafb;
}

.mdrip-checklist-item input[type='checkbox'] {
	margin-right: 12px;
	cursor: pointer;
	width: 36px;
	height: 36px;
	accent-color: #0d6efd; /* 通常色 */
	transition: transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
	border-radius: 4px; /* 角丸（影を綺麗に見せる用） */
}
.mdrip-checklist-item input[type='checkbox']:hover {
	transform: scale(1.08);
	box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
h2.mdrip-month-title {
	background: #e8f0e8;
	padding: 16px;
	font-size: 22px;
	border-radius: 0.5rem;
	border-radius: 0.2rem;
}

.mdrip-checklist-item h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	flex-grow: 1;
}

.mdrip-checklist-item h3 a {
	text-decoration: none;
	color: inherit;
	display: block;
	padding: 16px 0;
}

.mdrip-note {
	font-size: 15px;
	margin: 32px 0 0 0;
}
.mdrip-progress-box {
	border: 1px solid #e5e7eb;
	padding: 16px;
	border-radius: 0.5rem;
}
.mdrip-progress-head {
	margin: 0 0 8px;
	font-weight: bold;
	text-align: left;
	font-size: 17px;
}
.mdrip-checklist-item.is-done {
	opacity: 0.6;
}

.mdrip-checklist-item.is-done:hover {
	background: #f1f3f5;
}

.mdrip-checklist-item.is-done h3 {
	color: #666;
}
.mdrip-checklist-item.is-done h3 a {
	color: inherit;
}

/* 全体 */
body.home {
	background-color: #fff;
}
a {
	transition: all 0.3s ease; /* 300ms = 0.3s */
}
.header-container-in.hlt-top-menu .site-name-text {
	font-weight: bold;
}
.appeal-in {
	padding: 3% 5% 3% 0;
}
.appeal-content {
	margin: 0;
	width: 540px;
}
.appeal-title {
	font-size: 50px;
	text-align: left;
	line-height: 1.3;
	margin-bottom: 16px;
}
.appeal-message {
	text-align: left;
}

#custom-page a {
	color: #3f3f3f;
	text-decoration: none;
}
#custom-page a:hover {
	color: #e53900;
}
.article h2 {
	background-color: #e8f0e8;
	padding: 20px;
	margin-top: 56px;
}
.article h2:first-of-type {
	margin-top: 0;
}
.article h3 {
	border-left: none;
	border-top: none;
	border-right: none;
	border-bottom: 2px solid #a9b5a9;
	padding: 12px 20px 12px 0;
}
.article h4 {
	border-left: 5px solid #a9b5a9;
	border-top: none;
	border-bottom: none;
}
.text-center {
	text-align: center;
}
.mt0 {
	margin-top: 0;
}

/************************************
** メニュー
************************************/
.user {
	position: absolute;
	top: 0;
	z-index: 99;
}
/************************************
** トップページ
************************************/
main.main.pt0 {
	padding-top: 0;
}
.h2-box {
	text-align: center;
	margin-bottom: 24px;
}
.h2-box p {
	color: #666;
	text-align: center;
	margin: 16px auto 56px auto;
	width: 730px;
}
.section-box {
	padding: 104px 0;
}
.section-box:last-child {
	padding-bottom: 0;
}
.bg-color {
	background-color: #fbfbfb;
	width: 100vw; /* ビューポート（画面）の幅いっぱいに広げる */
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}
.text-sm {
	font-size: 14px;
	color: #d97706;
	letter-spacing: 0.1em;
}
.top h2 {
	font-size: 36px;
	line-height: 2.5rem;
}

.info_top-box a:hover,
.start-post:hover {
	--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
	box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
	transition-property: all;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.start-post,
.pickup-section img {
	transition-duration: 300ms;
}

/* お知らせ */

.info_top-box {
	border: 1px solid #e5e7eb;
	list-style: none;
	margin: 16px auto;
	border-radius: 0.5rem;
	background-color: #fff;
	width: 60%;
}
.info_top-box a,
.info-link {
	padding: 16px 24px;
	display: block;
}
.notice-date {
	font-size: 14px;
	color: #666;
	display: block;
}
.info-top h3 {
	font-size: 17px;
}

/* スタートガイド */
.start-section {
	display: flex;
	gap: 32px;
	width: 100%;
}
.start-section h3 {
	font-size: 20px;
	margin: 8px 0;
}
.start-post {
	flex: 1 1 0;
	min-width: 0; /* 追加ポイント：これが重要！ */
	display: flex;
	flex-direction: column;
	border-radius: 0.75rem;
	text-align: center;
}
.start-post a {
	padding: 32px;
	overflow: hidden;
	border-radius: 0.75rem;
}
.start-post i {
	font-size: 40px;
}
.start-post p {
	font-size: 15px;
	color: #666;
	line-height: 1.4;
}
.bg-teal-50 {
	--tw-bg-opacity: 1;
	background-color: rgb(240 253 250 / var(--tw-bg-opacity, 1));
}
.bg-orange-50 {
	--tw-bg-opacity: 1;
	background-color: rgb(255 247 237 / var(--tw-bg-opacity, 1));
}
.bg-slate-100 {
	--tw-bg-opacity: 1;
	background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
}
.text-primary2 {
	color: #0f766e;
}
.text-accent {
	color: #f97316;
}
.text-slate-700 {
	--tw-text-opacity: 1;
	color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}
/* 指定記事表示 */

.pickup-section {
	display: flex;
	gap: 24px;
	width: 1100px;
	margin: 0 auto;
}
.pickup-section h3 {
	font-size: 24px;
	margin: 8px 0;
}
.pickup-post {
	flex: 1 1 0;
	min-width: 0; /* 追加ポイント：これが重要！ */
	overflow: hidden;
	flex-direction: column;
	border-radius: 0.75rem;
	background-color: #fff;
}
.pickup-post a {
	border-radius: 0.75rem;
	overflow: hidden;
}
.pickup-post img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0;
	margin-bottom: 12px;
	background: none;
	aspect-ratio: 16/9; /* 推奨。縦横比は好きな比率で。ない場合は削除OK */
	object-fit: cover; /* トリミングする場合。不要なら外してください */
}
.shadow-lg {
	--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
	box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
	transition-duration: 300ms;
}

.shadow-lg2:hover {
	--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
	box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.pickup-post-txt {
	padding: 1px 24px 24px 24px;
}

#custom-page .pickup-section .excerpt {
	font-size: 15px;
	color: #666;
	line-height: 1.4;
}
#custom-page .text-primary {
	color: #0f766e;
	font-size: 14px;
	font-weight: bold;
}
.pickup-section a:hover {
	--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
	box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.pickup-post:hover img {
	transform: scale(1.1);
}
/* 掲示板 */

.entry-content {
	margin-bottom: 0;
}

#custom-page .wpforo-widget-wrap .wpforo-widget-content {
	padding: 0 !important;
}

div.wpforo-widget-wrap .widget-title {
	padding: 0;
	line-height: 2.5rem;
	font-size: 36px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 24px;
}
#custom-page .wpforo-widget-wrap .wpforo-widget-content li {
	border: 1px solid #e5e7eb;
	padding: 16px !important;
	border-radius: 0.5rem;
	margin: 24px auto;
	width: 80%;
	background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}
#custom-page .wpforo-widget-wrap .wpforo-widget-content li:first-child {
	margin-top: 0;
}
#custom-page .posttitle {
	margin-bottom: 0;
	font-weight: bold;
}
#custom-page .posttext {
	margin-bottom: 0;
}
#custom-page .postuser {
	margin-bottom: 0;
}
.postuser span {
	font-size: 14px;
}
.wpforo-list-item {
	display: flex;
	align-items: center;
}

#custom-page .wpforo-list-item-left {
	float: none;
	width: auto;
	margin: 0 auto;
}
#wpforo .wpforo-widget-wrap .wpforo-widget-content,
.wpforo-widget-wrap .wpforo-widget-content {
	padding: 0 !important;
}

#custom-page .wpforo-widget-wrap .wpforo-widget-content .wpforo-list-item-left img {
	width: 60px;
	height: 60px;
}
#custom-page .wpforo-widget-wrap .wpforo-list-item span.wpf-new-button {
	vertical-align: middle !important;
}

/* FAQ */
.faq-question {
	margin-bottom: 0;
}
/* 教材 */
#progress-area {
	padding: 1.5rem;
	border-radius: 0.5rem;
	border: 1px solid #ddd;
	margin: 0 auto 48px auto;
}
.progress-area-txt {
	justify-content: space-between;
	align-items: center;
	display: flex;
	margin-bottom: 8px;
}
.progress-h2 {
	font-size: 18px;
}
#progress-bar {
	border-radius: 9999px;
	background-color: #f97316;
	height: 1rem;
}
#progress-percentage {
	font-weight: bold;
}
.rounded-full {
	border-radius: 9999px;
	--tw-bg-opacity: 1;
	background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.material-item {
	transition-duration: 300ms;
	transition-property: opacity;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	padding: 1rem;
	display: flex;
	align-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	margin-bottom: 16px;
}
.material-item h3 {
	margin: 0 0 0 16px;
	border: none;
	font-size: 20px;
	padding: 0;
}
.material-item a {
	text-decoration: none;
	color: #3f3f3f;
	display: block;
	width: 100%;
}
.material-item a:hover {
	color: #e53900;
}
.opacity-50 {
	opacity: 0.5;
}
.material-item input {
	--tw-border-opacity: 1;
	border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
	width: 2rem;
	height: 2rem;
}

/************************************
** 子ページ一覧テンプレート
************************************/

.child-pages-container {
}

/* カードのリスト */
.child-pages-list {
	display: grid;
	gap: 2rem; /* space-y-8 */
}

/* 各カードのスタイル */
.child-page-card {
	display: flex;
	background-color: #ffffff;
	text-decoration: none;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 3%;
	transition-duration: 300ms;
}
.child-page-card:hover {
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* サムネイル部分 */
.child-page-thumbnail {
	flex-shrink: 0;
	width: 33.333333%; /* w-1/3 */
	overflow: hidden;
	aspect-ratio: 16 / 9; /* aspect-video */
}

.child-page-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease-in-out;
}

.child-page-card:hover .child-page-thumbnail img {
	transform: scale(1.05);
}

/* テキスト部分 */
.child-page-text {
	margin-left: 24px;
}

.child-page-text h2 {
	font-weight: bold; /* font-bold */
	margin-bottom: 0.5rem; /* mb-2 */
	color: #3f3f3f; /* text-primary */
	transition: color 0.3s ease-in-out;
	line-height: 1.5;
	font-size: 20px;
}

.child-page-card:hover .child-page-text h2 {
	color: #f97316; /* group-hover:text-accent */
}

.child-page-excerpt {
	color: #475569; /* text-slate-600 */
	font-size: 16px;
	line-height: 1.7; /* leading-relaxed */
}

/* YouTube */
.video-container,
.instagram-container,
.facebook-container {
	max-width: 680px;
}

/* 子ページがない場合のテキスト */
.no-child-pages {
	text-align: center;
	color: #64748b; /* text-slate-500 */
}
/* ultimate member */
a.um-profile-photo-img {
	transition: all 0s ease;
}
#um_field_7_nickname {
	padding-bottom: 24px;
}
ul.favorites-list {
	margin: 0;
	padding: 0;
	font-weight: normal;
}
ul.favorites-list p {
	margin: 0;
}
.um-field-shortcode {
	font-weight: bold;
}

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

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

/*480px以下*/
@media screen and (max-width: 480px) {
	.appeal-in {
		padding: 3% 5%;
	}
	.section-box {
		padding: 48px 0;
	}
	.h2-box p {
		width: 92%;
	}
	/* お知らせ */
	.info_top-box {
		width: 92%;
	}
	.start-section {
		display: block;
		width: 100%;
	}
	.start-post,
	.pickup-post {
		margin-bottom: 32px;
	}
	.pickup-section {
		display: block;
		width: 92%;
	}
	/* 掲示板 */
	#custom-page .wpforo-widget-wrap .wpforo-widget-content li {
		width: 100%;
	}
	#custom-page .wpforo-widget-wrap .wpforo-widget-content .wpforo-list-item-left img {
		width: 30px;
		height: auto;
	}
	/* メニュー */
	.menu-drawer li {
		display: block;
		border-bottom: 1px solid #e5e7eb;
		padding: 16px 0;
	}
	/* 子ページ一覧 */
	.child-page-excerpt {
		display: none; /* hidden sm:block */
	}
}
