/* =====================================================
   RETOLI HOME V2
===================================================== */

/* =====================================================
   SWELLリセット
===================================================== */

body.home .l-content {
	padding-top: 0;
	margin-top: 0;
}

body.home .l-content__inner {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.home .l-mainContent {
	width: 100%;
	max-width: none;
	padding: 0;
}

body.home .l-mainContent__inner {
	padding: 0;
}

body.home .l-sidebar {
	display: none;
}

body.home #content {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

body.home #main_content {
	width: 100%;
	max-width: none;
	padding: 0;
}

body.home .c-pageTitle {
	display: none;
}

body.home .post_content {
	margin: 0;
}

body.home .p-breadcrumb {
	display: none;
}


/* =====================================================
   HOME共通
===================================================== */

.retoli-home-v2 {
	width: min(1180px, calc(100% - 40px));
	margin: 40px auto 80px;
	color: #1f1f1f;
}

.retoli-home-v2 *,
.retoli-home-v2 *::before,
.retoli-home-v2 *::after {
	box-sizing: border-box;
}

.retoli-home-v2 img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.retoli-home-v2 a {
	color: inherit;
	text-decoration: none;
}

.retoli-home-v2 h2,
.retoli-home-v2 h3,
.retoli-home-v2 p {
	margin-top: 0;
}


/* =====================================================
   メインビジュアル
===================================================== */

.retoli-home-v2__hero {
	margin-bottom: 32px;
	overflow: hidden;
	background: #efefef;
}

.retoli-home-v2__hero-link {
	display: block;
	position: relative;
	width: 100%;
	min-height: 380px;
}

.retoli-home-v2__hero-link img {
	width: 100%;
	height: 380px;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.retoli-home-v2__hero-link:hover img {
	transform: scale(1.015);
}

.retoli-home-v2__hero-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 380px;
	padding: 40px;
	background: #ededed;
	text-align: center;
}

.retoli-home-v2__hero-placeholder p {
	margin-bottom: 8px;
	font-size: 12px;
	letter-spacing: 0.18em;
}

.retoli-home-v2__hero-placeholder strong {
	margin-bottom: 8px;
	font-size: clamp(22px, 3vw, 38px);
	font-weight: 500;
	letter-spacing: 0.08em;
}

.retoli-home-v2__hero-placeholder span {
	font-size: 12px;
	color: #777;
}


/* =====================================================
   共通パネル
===================================================== */

.retoli-home-v2__top-grid,
.retoli-home-v2__works-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	margin-bottom: 32px;
}

.retoli-home-v2__panel {
	padding: 32px;
	background: #f4f4f4;
}

.retoli-home-v2__panel-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.retoli-home-v2__panel-heading span,
.retoli-home-v2__about-text > span,
.retoli-home-v2__links-heading span {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.16em;
	color: #777;
}

.retoli-home-v2__panel-heading h2,
.retoli-home-v2__about-text h2,
.retoli-home-v2__links-heading h2 {
	margin-bottom: 0;
	font-size: clamp(20px, 2.2vw, 30px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.04em;
}

.retoli-home-v2__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.06em;
}

.retoli-home-v2__more span {
	font-size: 20px;
	line-height: 1;
	transition: transform 0.25s ease;
}

.retoli-home-v2__more:hover span {
	transform: translateX(4px);
}


/* =====================================================
   NEWS
===================================================== */

.retoli-home-v2__news {
	display: flex;
	flex-direction: column;
}

.retoli-home-v2__news-list {
	border-top: 1px solid #ccc;
}

.retoli-home-v2__news-item {
	margin: 0;
	border-bottom: 1px solid #ccc;
}

.retoli-home-v2__news-item a {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 17px 0;
}

.retoli-home-v2__news-item time {
	font-size: 12px;
	color: #777;
	white-space: nowrap;
}

.retoli-home-v2__news-item h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
}

.retoli-home-v2__new-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 3px 6px;
	background: #1f1f1f;
	color: #fff;
	font-size: 9px;
	line-height: 1;
	letter-spacing: 0.08em;
}

.retoli-home-v2__news .retoli-home-v2__more {
	margin-top: auto;
	padding-top: 20px;
}


/* =====================================================
   ABOUT
===================================================== */

.retoli-home-v2__about {
	display: grid;
	grid-template-columns: 42% 1fr;
	gap: 28px;
	align-items: center;
}

.retoli-home-v2__about-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ddd;
	color: #777;
	font-size: 12px;
	letter-spacing: 0.12em;
}

.retoli-home-v2__about-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.retoli-home-v2__about-text p {
	margin: 18px 0 0;
	font-size: 14px;
	line-height: 2;
}


/* =====================================================
   作品カード
===================================================== */

.retoli-home-v2__works-panel {
	min-width: 0;
}

.retoli-home-v2__card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.retoli-home-v2__card {
	min-width: 0;
	margin: 0;
}

.retoli-home-v2__card > a {
	display: block;
	height: 100%;
}

.retoli-home-v2__card-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #d8d8d8;
	color: #777;
	font-size: 12px;
}

.retoli-home-v2__card-image--comic {
	aspect-ratio: 3 / 4;
}

.retoli-home-v2__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.retoli-home-v2__card a:hover .retoli-home-v2__card-image img {
	transform: scale(1.035);
}

.retoli-home-v2__card h3 {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.retoli-home-v2__card p {
	margin: 7px 0 0;
	font-size: 12px;
	line-height: 1.7;
	color: #666;
}

.retoli-home-v2__card-button {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.04em;
}


/* =====================================================
   各種リンク
===================================================== */

.retoli-home-v2__links {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 40px;
	align-items: center;
	padding: 32px;
	background: #f4f4f4;
}

.retoli-home-v2__link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.retoli-home-v2__link-list > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border: 1px solid #cfcfcf;
	border-radius: 50%;
	background: #fff;
	font-size: 12px;
	transition:
		background 0.25s ease,
		color 0.25s ease,
		transform 0.25s ease;
}

.retoli-home-v2__link-list > a:hover {
	transform: translateY(-3px);
	background: #1f1f1f;
	color: #fff;
}

.retoli-home-v2__link-icon {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.retoli-home-v2__links-empty {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
	color: #777;
}


/* =====================================================
   タブレット
===================================================== */

@media screen and (max-width: 959px) {

	.retoli-home-v2 {
		width: min(100% - 32px, 1180px);
		margin-top: 28px;
	}

	.retoli-home-v2__top-grid,
	.retoli-home-v2__works-grid {
		grid-template-columns: 1fr;
	}

	.retoli-home-v2__card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.retoli-home-v2__links {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}


/* =====================================================
   スマホ
===================================================== */

@media screen and (max-width: 599px) {

	.retoli-home-v2 {
		width: min(100% - 24px, 1180px);
		margin: 20px auto 50px;
	}

	.retoli-home-v2__hero {
		margin-bottom: 20px;
	}

	.retoli-home-v2__hero-link,
	.retoli-home-v2__hero-placeholder {
		min-height: 260px;
	}

	.retoli-home-v2__hero-link img {
		height: 260px;
	}

	.retoli-home-v2__top-grid,
	.retoli-home-v2__works-grid {
		gap: 20px;
		margin-bottom: 20px;
	}

	.retoli-home-v2__panel {
		padding: 22px 18px;
	}

	.retoli-home-v2__about {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.retoli-home-v2__news-item a {
		grid-template-columns: auto auto;
		gap: 7px 10px;
	}

	.retoli-home-v2__news-item h3 {
		grid-column: 1 / -1;
	}

	.retoli-home-v2__card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}

	.retoli-home-v2__card h3 {
		font-size: 13px;
	}

	.retoli-home-v2__card p {
		display: none;
	}

	.retoli-home-v2__links {
		padding: 24px 18px;
	}

	.retoli-home-v2__link-list {
		gap: 12px;
	}

	.retoli-home-v2__link-list > a {
		width: 56px;
		height: 56px;
	}
}


/* =====================================================
   HOME MAIN VISUAL CAROUSEL
===================================================== */

.retoli-home-v2__hero {
	position: relative;
}

.retoli-home-v2__carousel {
	position: relative;
	overflow: hidden;
	background: #ededed;
}

.retoli-home-v2__slides {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 7;
}

.retoli-home-v2__slide {
	position: absolute;
	inset: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.retoli-home-v2__slide.is-active {
	z-index: 1;
	visibility: visible;
	opacity: 1;
}

.retoli-home-v2__slide-link,
.retoli-home-v2__slide-picture {
	display: block;
	width: 100%;
	height: 100%;
}

.retoli-home-v2__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.retoli-home-v2__carousel-button {
	position: absolute;
	z-index: 3;
	top: 50%;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid #111;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	color: #111;
	cursor: pointer;
	transform: translateY(-50%);
}

.retoli-home-v2__carousel-button--prev {
	left: 18px;
}

.retoli-home-v2__carousel-button--next {
	right: 18px;
}

.retoli-home-v2__carousel-dots {
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: 15px;
	left: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.retoli-home-v2__carousel-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid #111;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	cursor: pointer;
}

.retoli-home-v2__carousel-dot.is-active {
	background: #111;
}

.retoli-home-v2__carousel.is-single .retoli-home-v2__carousel-button,
.retoli-home-v2__carousel.is-single .retoli-home-v2__carousel-dots {
	display: none;
}

@media (max-width: 599px) {
	.retoli-home-v2__slides {
		aspect-ratio: 4 / 3;
	}

	.retoli-home-v2__carousel-button {
		width: 38px;
		height: 38px;
	}

	.retoli-home-v2__carousel-button--prev {
		left: 10px;
	}

	.retoli-home-v2__carousel-button--next {
		right: 10px;
	}
}

/* =====================================================
   RETOLI HOME CAROUSEL
   PC：左右クリックエリア＋ホバー時のみ矢印表示
   スマホ：矢印を隠してスワイプ操作
===================================================== */

/*
 * 既存の丸い矢印ボタンを、画像左右25%の透明クリックエリアへ変更。
 * 中央50%は、各スライドに設定したリンクをそのままクリックできます。
 */
@media (hover: hover) and (pointer: fine) {

	.retoli-home-v2__carousel-button {
		top: 0;
		bottom: 0;
		width: 25%;
		height: auto;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: transparent;
		opacity: 1;
		transform: none;
		transition: background 0.25s ease;
	}

	.retoli-home-v2__carousel-button--prev {
		left: 0;
		right: auto;
		cursor: w-resize;
	}

	.retoli-home-v2__carousel-button--next {
		right: 0;
		left: auto;
		cursor: e-resize;
	}

	/*
	 * 矢印本体。
	 * クリックエリアへマウスを乗せたときだけ、ふわっと表示します。
	 */
	.retoli-home-v2__carousel-button::before {
		position: absolute;
		top: 50%;
		display: grid;
		width: 46px;
		height: 46px;
		place-items: center;
		border: 1px solid rgba(17, 17, 17, 0.72);
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.82);
		box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
		color: #111;
		font-size: 25px;
		font-weight: 300;
		line-height: 1;
		opacity: 0;
		pointer-events: none;
		transform: translateY(-50%) scale(0.94);
		transition:
			opacity 0.25s ease,
			transform 0.25s ease,
			background 0.25s ease;
	}

	.retoli-home-v2__carousel-button--prev::before {
		left: 22px;
		content: "‹";
	}

	.retoli-home-v2__carousel-button--next::before {
		right: 22px;
		content: "›";
	}

	.retoli-home-v2__carousel-button:hover::before,
	.retoli-home-v2__carousel-button:focus-visible::before {
		opacity: 1;
		transform: translateY(-50%) scale(1);
	}

	.retoli-home-v2__carousel-button:hover::before {
		background: rgba(255, 255, 255, 0.94);
	}

	/*
	 * 左右にごく薄いグラデーションだけ出し、
	 * 「端をクリックできる」ことを控えめに示します。
	 */
	.retoli-home-v2__carousel-button--prev:hover {
		background: linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.13) 0%,
			rgba(255, 255, 255, 0) 100%
		);
	}

	.retoli-home-v2__carousel-button--next:hover {
		background: linear-gradient(
			270deg,
			rgba(255, 255, 255, 0.13) 0%,
			rgba(255, 255, 255, 0) 100%
		);
	}
}

/*
 * タッチ端末では矢印・クリックエリアを非表示。
 * 既存のスワイプ操作とドットで切り替えます。
 */
@media (hover: none), (pointer: coarse), (max-width: 767px) {
	.retoli-home-v2__carousel-button {
		display: none !important;
	}
}

/* 1枚だけの場合は従来どおり操作UIを隠します。 */
.retoli-home-v2__carousel.is-single .retoli-home-v2__carousel-button {
	display: none !important;
}
