@charset "UTF-8";
/* ============================================================
   createculture.net トップページ専用 CSS（SWELL 子テーマ / AFFINGER 版移植）
   スコープ: .home のみ（is_front_page で読み込み）
   ヘッダー / 背景 / フッター等のサイト共通部分は common.css 側。
   実値の出典: AFFINGER st-themecss 生成 CSS（2026-08-04 採取）
   - スライダー帯: 赤スプラッシュ画像 + rgba(0,0,0,.4) オーバーレイ
   - コンテンツ幅: 1060px
   ============================================================ */

/* SWELL 標準のメインビジュアル・記事スライダーは使わない
   （AFFINGER 版デザインに存在しないため。カスタマイザーOFFが本筋・これは保険） */
.home .p-mainVisual,
.home .p-postSlider {
	display: none;
}

/* ---------- コンテンツ枠（余白調整・背景透過） ---------- */
.home #content {
	margin-top: 0;
	margin-bottom: 0;
	background: transparent;
}
.home .l-mainContent__inner {
	margin: 0;
}
.home .p-breadcrumb,
.home .w-beforeFooter {
	display: none;
}

/* コンテナ内から画面幅いっぱいに広げる帯 */
.cc-breakout {
	margin-inline: calc(50% - 50vw);
}

/* ---------- 記事スライダー（赤スプラッシュ帯） ---------- */
.cc-slider {
	position: relative;
	margin-top: 14px;
	padding: 10px 0;
	background-color: #333;
	background-image: url("/wp-content/uploads/2024/02/2161816-scaled.jpg");
	background-size: cover;
	background-position: center center;
}
.cc-slider::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}
.cc-slider__inner {
	position: relative;
	max-width: 1060px;
	margin: 0 auto;
	padding: 15px 40px 6px;
}
.cc-slider__viewport {
	overflow: hidden;
}
.cc-slider__track {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	transition: transform 0.45s ease;
	will-change: transform;
}
.cc-slide {
	flex: 0 0 20%; /* PC: 5枚表示 */
	box-sizing: border-box;
	padding: 0 6px;
}
.cc-slide__link {
	display: block;
	text-decoration: none;
}
.cc-slide__img {
	position: relative;
	padding-top: 56%;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	background: #222;
}
.cc-slide__img img,
.cc-slide__img .cc-noimg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cc-slide__title {
	margin: 8px 0 0;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cc-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.cc-slider__arrow:hover {
	background: rgba(0, 0, 0, 0.6);
}
.cc-slider__arrow.-prev { left: 4px; }
.cc-slider__arrow.-next { right: 4px; }
.cc-slider__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 10px 0 4px;
	position: relative;
	z-index: 2;
}
.cc-slider__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}
.cc-slider__dots button.is-active {
	background: #fff;
}

/* ---------- 広告表記 ---------- */
.cc-ad-note {
	display: inline-block;
	margin: 16px 0 0;
	padding: 6px 10px;
	background: #f3f3f3;
	color: #666;
	font-size: 12px;
	line-height: 1.4;
}

/* ---------- カード型記事一覧（3列 / 2列 / 1列） ---------- */
.cc-cards {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 12px -8px 0;
	padding: 0;
}
.cc-card {
	display: flex;
	flex-direction: column;
	width: calc(33.333% - 16px);
	margin: 8px;
	background: #fff;
}
.cc-card__imgWrap {
	position: relative;
	overflow: hidden;
	margin: 0 0 8px;
}
.cc-card__imgWrap a {
	display: block;
	position: relative;
	padding-top: 56%;
}
.cc-card__imgWrap img,
.cc-card__imgWrap .cc-noimg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.5s;
}
.cc-card__imgWrap:hover img {
	opacity: 0.6;
}
.cc-noimg {
	background: #e5e5e5;
}
.cc-card__cat {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	padding: 4px 8px;
	background: #333;
	color: #fff;
	font-size: 11px;
	line-height: 1.3;
}
.cc-card__body {
	padding: 0 10px 12px;
}
.cc-card__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}
.cc-card__title a {
	color: #333;
	text-decoration: none;
	transition: all 0.5s;
}
.cc-card__title a:hover {
	opacity: 0.6;
}
.cc-card__excerpt {
	margin: 0;
	color: #7a7a7a;
	font-size: 12px;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- シェアボタン + 運営表記 ---------- */
.cc-share {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin: 44px 0 26px;
}
.cc-share__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.3s;
}
.cc-share__btn:hover { opacity: 0.7; }
.cc-share__btn.-x { background: #000; }
.cc-share__btn.-fb { background: #3b5998; }
.cc-share__btn.-hatena { background: #00a4de; }
.cc-share__btn.-line { background: #06c755; }
.cc-share__b {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}
.cc-operated {
	margin: 0 0 60px;
	text-align: center;
	color: #fff;
	font-size: 14px;
	line-height: 1.8;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.cc-operated a {
	color: #bcd9ff;
	text-decoration: underline;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 959px) {
	.cc-slide {
		flex: 0 0 33.333%; /* タブレット: 3枚 */
	}
	.cc-card {
		width: calc(50% - 16px);
	}
}
@media (max-width: 559px) {
	.cc-slider {
		overflow: hidden; /* 帯の外へのはみ出しはここで刈る */
	}
	.cc-slider__inner {
		padding: 12px 40px 4px;
	}
	.cc-slider__viewport {
		overflow: visible; /* 隣のスライドを左右にちら見せ（AFFINGER centerPadding 相当） */
	}
	.cc-slide {
		flex: 0 0 100%; /* SP: 1枚 */
	}
	.cc-card {
		width: calc(100% - 16px);
	}
}
