/*
Theme Name: Mischief Works
Template: blankslate
*/

/* ==========================================================
   変数（アクセントカラーは --color-accent を変更すると一括で変わる）
========================================================== */
:root {
	--color-accent: #db4d44;
	--color-accent-light: color-mix(in srgb, var(--color-accent) 12%, #fff);
	--color-text: #1b2233;
	--color-text-sub: #5b6170;
	--color-border: #e3e4e8;
	--color-bg: #ffffff;
	--color-bg-gray: #f5f5f6;
	--color-white: #ffffff;

	--font-en: "Archivo", "Noto Sans JP", sans-serif;
	--font-base: "Inter", "Noto Sans JP", sans-serif;
	--font-ja: "Noto Sans JP", sans-serif;

	--header-height: 84px;
	--container: 1160px;
	--gutter: 24px;
	--section-space: 140px;
	--radius: 16px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {
	:root {
		--header-height: 64px;
		--gutter: 20px;
		--section-space: 88px;
	}
}

/* ==========================================================
   ベース
========================================================== */
html {
	scroll-padding-top: var(--header-height);
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s, opacity 0.3s;
}

strong, b {
	font-weight: 700;
}

em {
	font-style: normal;
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.site-main {
	display: block;
	padding-top: var(--header-height);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container--narrow {
	max-width: calc(880px + var(--gutter) * 2);
}

/* ==========================================================
   ヘッダー
========================================================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: var(--header-height);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: box-shadow 0.4s, height 0.4s var(--ease);
}

/* スクロール時に影を付けて少し低くする */
.site-header.is-scrolled {
	height: calc(var(--header-height) - 14px);
	box-shadow: 0 1px 0 var(--color-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	max-width: calc(1320px + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.site-header__logo {
	margin: 0;
	line-height: 1;
}

.site-header__logo a {
	display: block;
}

.site-header__logo img {
	width: 220px;
	height: auto;
	transition: width 0.4s var(--ease);
}

.site-header.is-scrolled .site-header__logo img {
	width: 190px;
}

.global-nav__list {
	display: flex;
	align-items: center;
	gap: 40px;
}

.global-nav__link {
	position: relative;
	display: block;
	padding: 6px 0;
	font-family: var(--font-en);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* 下線が左から伸びるホバー */
.global-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: var(--color-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s var(--ease);
}

.global-nav__link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Contact（最後から2番目。最後はYouTube）はボタン風 */
.global-nav__item:nth-last-child(2) .global-nav__link {
	padding: 10px 24px;
	border-radius: 999px;
	background: var(--color-text);
	color: var(--color-white);
	transition: background 0.3s;
}

.global-nav__item:nth-last-child(2) .global-nav__link::after {
	display: none;
}

.global-nav__item:nth-last-child(2) .global-nav__link:hover {
	background: var(--color-accent);
}

/* YouTubeアイコン（PCはアイコンのみ） */
.yt-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: color 0.3s, background 0.3s, transform 0.4s var(--ease);
}

.yt-link:hover {
	background: var(--color-accent-light);
	color: var(--color-accent);
	transform: scale(1.1);
}

.yt-link__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.global-nav__yt {
	margin-left: -16px;
}

.menu-toggle {
	display: none;
}

@media (max-width: 960px) {
	.site-header__logo img,
	.site-header.is-scrolled .site-header__logo img {
		width: 160px;
	}

	/* メニュー展開中もロゴを表示 */
	.site-header__logo {
		position: relative;
		z-index: 2;
	}

	.menu-toggle {
		position: relative;
		z-index: 2;
		display: block;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.menu-toggle__bar {
		position: absolute;
		left: 10px;
		width: 24px;
		height: 2px;
		background: var(--color-text);
		transition: transform 0.4s var(--ease), top 0.4s var(--ease);
	}

	.menu-toggle__bar:nth-child(1) {
		top: 17px;
	}

	.menu-toggle__bar:nth-child(2) {
		top: 25px;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
		top: 21px;
		transform: rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
		top: 21px;
		transform: rotate(-45deg);
	}

	.global-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100vh;
		height: 100dvh;
		background: var(--color-bg);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.4s, visibility 0.4s;
	}

	.global-nav.is-open {
		opacity: 1;
		visibility: visible;
	}

	.global-nav__list {
		flex-direction: column;
		gap: 28px;
		text-align: center;
	}

	.global-nav__item {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 0.5s, transform 0.5s var(--ease);
	}

	/* メニュー項目を順番に表示 */
	.global-nav.is-open .global-nav__item {
		opacity: 1;
		transform: none;
	}

	.global-nav.is-open .global-nav__item:nth-child(2) { transition-delay: 0.05s; }
	.global-nav.is-open .global-nav__item:nth-child(3) { transition-delay: 0.1s; }
	.global-nav.is-open .global-nav__item:nth-child(4) { transition-delay: 0.15s; }
	.global-nav.is-open .global-nav__item:nth-child(5) { transition-delay: 0.2s; }
	.global-nav.is-open .global-nav__item:nth-child(6) { transition-delay: 0.25s; }

	.global-nav__link {
		font-size: 24px;
	}

	/* スマホはYouTubeボタンとして表示 */
	.global-nav__yt {
		margin-left: 0;
	}

	.yt-link {
		gap: 10px;
		width: auto;
		height: auto;
		padding: 12px 32px;
		border: 2px solid var(--color-text);
		border-radius: 999px;
		font-family: var(--font-en);
		font-size: 16px;
		font-weight: 700;
	}

	.yt-link:hover {
		transform: none;
	}

	.yt-link__text {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
	}

	.global-nav__item:nth-last-child(2) .global-nav__link {
		margin-top: 12px;
		padding: 12px 40px;
	}
}

/* メニューを開いている間はスクロール禁止 */
body.is-menu-open {
	overflow: hidden;
}

/* ==========================================================
   ボタン
========================================================== */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-width: 200px;
	padding: 14px 22px 14px 28px;
	border: 2px solid var(--color-text);
	border-radius: 999px;
	overflow: hidden;
	background: transparent;
	color: var(--color-text);
	font-family: var(--font-en);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	cursor: pointer;
	transition: color 0.4s var(--ease), border-color 0.4s;
	isolation: isolate;
}

/* 背景が左から塗られるホバー */
.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--color-text);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.45s var(--ease);
}

/* 矢印 */
.btn::after {
	content: "";
	width: 18px;
	height: 10px;
	background: currentColor;
	clip-path: polygon(0 45%, 78% 45%, 60% 0, 68% 0, 100% 50%, 68% 100%, 60% 100%, 78% 55%, 0 55%);
	transition: transform 0.4s var(--ease);
}

.btn:hover {
	color: var(--color-white);
}

.btn:hover::before {
	transform: scaleX(1);
	transform-origin: left;
}

.btn:hover::after {
	transform: translateX(4px);
}

.btn--accent {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-white);
}

.btn--accent::before {
	background: var(--color-text);
}

.btn--accent:hover {
	border-color: var(--color-text);
}

/* 小さいボタン・ダウンロードボタン */
.btn--sm {
	gap: 16px;
	min-width: 0;
	padding: 8px 18px 8px 22px;
	border-width: 1.5px;
	font-size: 13px;
}

/* ホバー・フォーカス時も下線を出さない */
.btn--download,
.btn--download:hover,
.btn--download:focus,
.btn--download:active,
.btn--download span {
	text-decoration: none;
	text-decoration-line: none;
}

/* 背景が塗られる演出は使わず、色の切り替えだけにする */
.btn--download::before {
	display: none;
}

.btn--download {
	transition: color 0.3s, background-color 0.3s;
}

.btn--download:hover {
	background-color: var(--color-text);
}

.btn--download::after {
	transform: rotate(90deg);
}

.btn--download:hover::after {
	transform: rotate(90deg) translateX(3px);
}

/* ==========================================================
   セクション共通
========================================================== */
.section {
	padding: var(--section-space) 0;
}

.section--gray {
	background: var(--color-bg-gray);
}

.section__head {
	margin-bottom: 56px;
}

.sec-title {
	position: relative;
	display: inline-block;
	margin: 0;
	padding-left: 22px;
	font-family: var(--font-en);
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

/* 見出し左のアクセント */
.sec-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 8px;
	height: 0.72em;
	background: var(--color-accent);
}

.section__lead {
	margin: 16px 0 0;
	color: var(--color-text-sub);
}

.section__more {
	margin-top: 56px;
	text-align: center;
}

.section__more--left {
	text-align: left;
}

.no-posts {
	color: var(--color-text-sub);
}

/* ==========================================================
   スクロールアニメーション
========================================================== */
.js-fade {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--delay, 0s);
}

.js-fade.is-visible {
	opacity: 1;
	transform: none;
}

/* JSが無効な環境では最初から表示 */
.no-js .js-fade {
	opacity: 1;
	transform: none;
}

/* ふわふわ上下に動くキャラクター */
.float {
	animation: float 4s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

/* ==========================================================
   イントロアニメーション（TOPを最初に開いたときのみ）
========================================================== */
.intro {
	display: none;
}

html.is-intro {
	overflow: hidden;
}

.is-intro .intro {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-bg);
	transition: transform 1s var(--ease);
}

/* 終了時に上へスライドして消える */
.is-intro-done .intro {
	transform: translateY(-100%);
}

.intro__inner {
	width: min(560px, 72vw);
}

.intro__logo {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* 1文字ずつ下からふわっと表示 */
.intro__letter {
	fill: #231815;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: intro-letter 0.8s var(--ease) forwards;
	animation-delay: calc(0.2s + var(--i) * 0.07s);
}

@keyframes intro-letter {
	from { opacity: 0; transform: translateY(70%) scale(0.85); }
	to { opacity: 1; transform: none; }
}

/* ロゴの下にアクセントの線が伸びる */
.intro__bar {
	display: block;
	height: 4px;
	margin-top: 28px;
	background: var(--color-accent);
	transform: scaleX(0);
	transform-origin: left;
	animation: intro-bar 1s 0.9s var(--ease) forwards;
}

@keyframes intro-bar {
	to { transform: scaleX(1); }
}

/* ==========================================================
   MV
========================================================== */
.mv {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(100vh - var(--header-height));
	min-height: calc(100svh - var(--header-height));
	padding: 40px 0 80px;
	overflow: hidden;
	background: var(--color-bg-gray);
}

/* 背景動画と、文字を読みやすくする白いオーバーレイ */
.mv__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.mv__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mv__bg::after {
	content: "";
	position: absolute;
	inset: 0;
/* 	background: linear-gradient(to right, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 50%, rgba(255, 255, 255, 0.6) 100%); */
	background: linear-gradient(to right, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.5) 100%);
}

.mv__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: calc(1320px + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* 検証用：キャラクターなしの中央配置 */
.mv__inner--solo {
	grid-template-columns: 1fr;
	text-align: center;
}

.mv__catch {
	margin: 0;
	font-family: var(--font-en);
	font-size: clamp(56px, 8.4vw, 132px);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.03em;
}

/* 1行ずつ下からせり上がる */
.mv__line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.06em;
}

.mv__line > span {
	display: inline-block;
	transform: translateY(110%);
	transition: transform 1.1s var(--ease);
}

.mv__line:nth-child(2) > span { transition-delay: 0.12s; }
.mv__line:nth-child(3) > span { transition-delay: 0.24s; }

.mv__catch em {
	color: var(--color-accent);
}

.mv__sub {
	margin: 32px 0 0;
	font-family: var(--font-ja);
	font-size: clamp(15px, 1.4vw, 20px);
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--color-text);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 1s 0.6s, transform 1s 0.6s var(--ease);
}

.mv__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: min(76vh, 640px);
	opacity: 0;
	transform: scale(0.94);
	transition: opacity 1.2s 0.2s, transform 1.2s 0.2s var(--ease);
}

/* 背後の淡い円 */
.mv__circle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(92%, 560px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--color-accent-light);
	transform: translate(-50%, -50%);
}

.mv__chara {
	position: relative;
	z-index: 1;
	width: auto;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
	animation: float 4.5s ease-in-out infinite;
}

/* 足元の影（キャラクターに合わせて伸縮） */
.mv__shadow {
	position: absolute;
	left: 50%;
	bottom: -14px;
	width: 46%;
	max-width: 260px;
	height: 18px;
	border-radius: 50%;
	background: rgba(27, 34, 51, 0.12);
	transform: translateX(-50%);
	animation: shadow 4.5s ease-in-out infinite;
}

@keyframes shadow {
	0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
	50% { transform: translateX(-50%) scale(0.82); opacity: 0.6; }
}

/* 読み込み完了後に表示 */
.is-loaded .mv__line > span {
	transform: none;
}

.is-loaded .mv__sub,
.is-loaded .mv__visual {
	opacity: 1;
	transform: none;
}

.no-js .mv__line > span,
.no-js .mv__sub,
.no-js .mv__visual {
	opacity: 1;
	transform: none;
}

/* スクロール誘導 */
.mv__scroll {
	position: absolute;
	left: var(--gutter);
	bottom: 32px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-en);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.mv__scroll::after {
	content: "";
	width: 64px;
	height: 1px;
	background: linear-gradient(to right, var(--color-text) 50%, var(--color-border) 50%);
	background-size: 200% 100%;
	animation: scroll-line 2s var(--ease) infinite;
}

@keyframes scroll-line {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@media (min-width: 1368px) {
	.mv__scroll {
		left: calc((100% - 1320px) / 2);
	}
}

@media (max-width: 767px) {
	.mv {
		align-items: center; /* 検証用：キャラクターなしのため中央配置 */
		padding: 24px 0 88px;
	}

	.mv__bg::after {
		background: rgba(255, 255, 255, 0.82);
	}

	/* スマホはキャラクターが上、コピーが下 */
	.mv__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.mv__visual {
		order: -1;
		height: 46svh;
		min-height: 280px;
	}

	.mv__circle {
		width: min(80vw, 46svh);
	}

	.mv__copy {
		text-align: center;
	}

	.mv__catch {
		font-size: clamp(48px, 14vw, 72px);
	}

	.mv__sub {
		margin-top: 20px;
	}
}

/* ==========================================================
   NEWS
========================================================== */
.news-list {
	border-top: 1px solid var(--color-border);
}

.news-item {
	border-bottom: 1px solid var(--color-border);
}

.news-item__link {
	position: relative;
	display: grid;
	grid-template-columns: 130px auto 1fr 40px;
	align-items: center;
	gap: 24px;
	padding: 28px 8px;
	transition: background 0.3s, padding 0.4s var(--ease);
}

.news-item__link:hover {
	padding-left: 20px;
	background: var(--color-bg-gray);
}

.news-item__date {
	font-family: var(--font-en);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-sub);
}

.news-item__cat {
	padding: 2px 12px;
	border: 1px solid var(--color-text);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.news-item__title {
	font-weight: 500;
}

.news-item__arrow {
	position: relative;
	justify-self: end;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	transition: background 0.3s, border-color 0.3s;
}

.news-item__arrow::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translate(-65%, -50%) rotate(45deg);
}

.news-item__link:hover .news-item__arrow {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-white);
}

@media (max-width: 767px) {
	.news-item__link {
		grid-template-columns: auto 1fr;
		gap: 8px 16px;
		padding: 20px 4px;
	}

	.news-item__title {
		grid-column: 1 / -1;
	}

	.news-item__arrow {
		display: none;
	}
}

/* ==========================================================
   ABOUT
========================================================== */
.section--about {
	background: var(--color-bg-gray);
}

.about-block {
	display: grid;
	grid-template-columns: 1fr 320px;
	align-items: center;
	gap: 80px;
}

.about-block__text {
	max-width: 680px;
	margin: 0 0 24px;
	font-size: 18px;
	line-height: 2;
}

.about-block__chara {
	text-align: center;
}

.about-block__chara img {
/* 	width: 240px; */
	width: 100%;
	max-width: 100%;
}

.about-lead {
	margin: 0 0 24px;
	font-family: var(--font-en);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.3;
	color: var(--color-accent);
}

@media (max-width: 767px) {
	.about-block {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.about-block__text {
		font-size: 16px;
	}

	.about-block__chara {
		order: -1;
	}

	.about-block__chara img {
/* 		width: 160px; */
	}
}

/* ==========================================================
   SERVICE
========================================================== */
.service-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 56px 48px 48px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-white);
	transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}

.service-card:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: 0 24px 48px rgba(27, 34, 51, 0.08);
}

/* 右上に小さくキャラクター */
.service-card__chara {
	position: absolute;
	top: 32px;
	right: 40px;
	width: 96px;
}

.service-card__chara img {
	transition: transform 0.5s var(--ease);
}

.service-card:hover .service-card__chara img {
	transform: rotate(-6deg) translateY(-4px);
}

.service-card__num {
	margin: 0 0 8px;
	font-family: var(--font-en);
	font-size: 15px;
	font-weight: 800;
	color: var(--color-accent);
}

.service-card__title {
	margin: 0 0 20px;
	font-family: var(--font-en);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 800;
	line-height: 1.2;
}

.service-card__text {
	flex-grow: 1;
	margin: 0 0 32px;
	padding-right: 72px;
	color: var(--color-text-sub);
}

@media (max-width: 767px) {
	.service-cards {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.service-card {
		padding: 40px 24px 32px;
	}

	.service-card__chara {
		top: 24px;
		right: 20px;
		width: 72px;
	}

	.service-card__title {
		padding-right: 80px;
	}

	.service-card__text {
		padding-right: 0;
	}
}

/* ==========================================================
   ILLUSTRATIONS
========================================================== */
.section--illustrations {
	background: var(--color-bg-gray);
	/* 100vwのはみ出しで横スクロールが出ないようにする */
	overflow-x: clip;
}

.illust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

/* ダウンロードページ：カテゴリーごとの見出しと一覧 */
.illust-cat + .illust-cat {
	margin-top: 64px;
}

.illust-cat__title {
	position: relative;
	margin: 0 0 32px;
	padding: 0 0 16px 20px;
	border-bottom: 2px solid var(--color-text);
	font-family: var(--font-en);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	line-height: 1.3;
}

/* 見出し左のアクセント */
.illust-cat__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.12em;
	width: 6px;
	height: 1.1em;
	background: var(--color-accent);
}

.illust-grid--5 {
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

/* カテゴリーボタン */
.illust-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 48px;
}

.illust-filter__btn {
	padding: 8px 22px;
	border: 2px solid var(--color-text);
	border-radius: 999px;
	font-family: var(--font-en);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

.illust-filter__btn:hover {
	transform: translateY(-2px);
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.illust-filter__btn.is-current,
.illust-filter__btn.is-current:hover {
	transform: none;
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-white);
}

@media (max-width: 767px) {
	.illust-filter {
		gap: 8px;
		margin-bottom: 32px;
	}

	.illust-filter__btn {
		padding: 6px 16px;
		font-size: 13px;
	}
}

.illust-item {
	--delay: 0s;
}

.illust-item:nth-child(4n + 2) { --delay: 0.08s; }
.illust-item:nth-child(4n + 3) { --delay: 0.16s; }
.illust-item:nth-child(4n + 4) { --delay: 0.24s; }

.illust-item__fig {
	margin: 0;
}

.illust-item__img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 24px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-white);
}

.section--page .illust-item__img {
	background: var(--color-bg-gray);
}

.illust-item__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.6s var(--ease);
}

.illust-item:hover .illust-item__img img {
	transform: scale(1.06);
}

.illust-item__actions {
	margin-top: 12px;
}

.illust-item__title {
	margin-top: 12px;
	font-family: var(--font-en);
	font-size: 15px;
	font-weight: 700;
}

/* Illustrationsページの一覧：利用許諾セクションとの間を詰める */
.section--illust-list {
	padding-top: 0;
	padding-bottom: 64px;
}

@media (max-width: 767px) {
	.section--illust-list {
		padding-bottom: 40px;
	}
}

/* ダウンロードページ：ヒーローとの間に余白をとる */
.section--illust-list.section--download {
	padding-top: var(--section-space);
}

/* TOPのイラスト：右から左へ流れ続ける */
.illust-marquee {
	display: flex;
	overflow: hidden;
	/* コンテナの幅を超えて画面いっぱいに流す */
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.illust-marquee__list {
	display: flex;
	flex-shrink: 0;
	min-width: 100%;
	gap: 32px;
	padding-right: 32px;
	animation: illust-marquee 60s linear infinite;
}

.illust-marquee:hover .illust-marquee__list {
	animation-play-state: paused;
}

.illust-marquee .illust-item {
	flex: 0 0 auto;
	width: clamp(180px, 20vw, 280px);
}

@keyframes illust-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}

@media (max-width: 960px) {
	.illust-grid,
	.illust-grid--5 {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.illust-grid,
	.illust-grid--5 {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.illust-item__img {
		padding: 16px;
	}
}

/* ==========================================================
   CONTACT・フォーム
========================================================== */
.form-steps {
	display: flex;
	justify-content: center;
	gap: 0;
	margin: 0 0 56px;
	counter-reset: none;
}

.form-steps__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 140px;
	color: var(--color-text-sub);
}

/* ステップ間の線 */
.form-steps__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 20px;
	left: calc(50% + 28px);
	width: calc(100% - 56px);
	height: 2px;
	background: var(--color-border);
}

.form-steps__item.is-done::after {
	background: var(--color-text);
}

.form-steps__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 2px solid var(--color-border);
	border-radius: 50%;
	background: var(--color-white);
	font-family: var(--font-en);
	font-weight: 800;
}

.form-steps__label {
	font-family: var(--font-en);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.form-steps__item.is-done .form-steps__num {
	border-color: var(--color-text);
	background: var(--color-text);
	color: var(--color-white);
}

.form-steps__item.is-current {
	color: var(--color-text);
}

.form-steps__item.is-current .form-steps__num {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-white);
}

.form-wrap {
	padding: 56px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-white);
}

.form-note {
	margin: 0 0 24px;
	text-align: center;
	color: var(--color-text-sub);
}

/* フォームの各行 */
.cf-row {
	display: grid;
	grid-template-columns: 220px 1fr;
	align-items: start;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
}

.cf-row:first-child {
	padding-top: 0;
}

.cf-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.cf-req,
.cf-opt {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
}

.cf-req {
	background: var(--color-accent);
	color: var(--color-white);
}

.cf-opt {
	background: var(--color-bg-gray);
	color: var(--color-text-sub);
}

.cf-field .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-bg-gray);
	color: var(--color-text);
	font: inherit;
	line-height: 1.6;
	transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
	appearance: none;
}

.wpcf7 select {
	padding-right: 44px;
	background-image: linear-gradient(45deg, transparent 50%, var(--color-text) 50%), linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
	background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.wpcf7 textarea {
	height: 220px;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	background-color: var(--color-white);
	box-shadow: 0 0 0 4px var(--color-accent-light);
}

.wpcf7 ::placeholder {
	color: #a4a8b2;
}

/* 確認画面の値 */
.cf-value {
	padding-top: 12px;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
}

/* プライバシーポリシー同意 */
.cf-privacy {
	margin-top: 32px;
	text-align: center;
}

.cf-privacy .wpcf7-list-item {
	margin: 0;
}

.cf-privacy label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.cf-privacy input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--color-accent);
	cursor: pointer;
}

.cf-privacy a {
	color: var(--color-accent);
	text-decoration: underline;
}

.cf-privacy + .cf-actions {
	margin-top: 24px;
}

.cf-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 48px;
}

/* 送信・戻るボタン */
.wpcf7 input[type="submit"],
.wpcf7 input[type="button"],
.wpcf7 button {
	min-width: 220px;
	padding: 16px 32px;
	border: 2px solid var(--color-accent);
	border-radius: 999px;
	background: var(--color-accent);
	color: var(--color-white);
	font-family: var(--font-en);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
	appearance: none;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button:hover {
	border-color: var(--color-text);
	background: var(--color-text);
	transform: translateY(-2px);
}

/* 同意前は押せない */
.wpcf7 input[type="submit"]:disabled {
	border-color: var(--color-border);
	background: var(--color-border);
	color: var(--color-text-sub);
	cursor: not-allowed;
	transform: none;
}

.wpcf7 .wpcf7-previous,
.wpcf7 input[type="button"] {
	border-color: var(--color-text);
	background: transparent;
	color: var(--color-text);
}

.wpcf7 .wpcf7-previous:hover,
.wpcf7 input[type="button"]:hover {
	background: var(--color-text);
	color: var(--color-white);
}

/* スピナーがボタンの並びを崩さないよう、ボタンの下に重ねる */
.cf-actions {
	position: relative;
}

.cf-actions .wpcf7-spinner {
	position: absolute;
	top: 100%;
	left: 50%;
	margin: 12px 0 0 -12px;
}

.wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--color-accent);
	font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
	margin: 32px 0 0;
	padding: 16px 20px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}

@media (max-width: 767px) {
	.form-wrap {
		padding: 32px 20px;
	}

	.cf-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.cf-label {
		padding-top: 0;
	}

	.cf-value {
		padding-top: 0;
	}

	.form-steps {
		margin-bottom: 40px;
	}

	.form-steps__item {
		width: 100px;
	}
}

/* 送信完了 */
.thanks {
	text-align: center;
}

.thanks__title {
	margin: 0 0 16px;
	font-family: var(--font-en);
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 800;
	line-height: 1.2;
}

.thanks__text {
	margin: 0;
	color: var(--color-text-sub);
}

.thanks__chara {
	margin: 48px 0;
}

.thanks__chara img {
	width: 160px;
}

/* ==========================================================
   下層ページ共通
========================================================== */
.page-hero {
	padding: 80px 0 72px;
	background: var(--color-bg-gray);
	overflow: hidden;
}

.page-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.page-hero__title {
	margin: 0;
	font-family: var(--font-en);
	font-size: clamp(38px, 8vw, 104px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	animation: hero-in 1.1s var(--ease) both;
}

.page-hero__sub {
	position: relative;
	margin: 20px 0 0;
	padding-left: 40px;
	font-family: var(--font-en);
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text-sub);
	animation: hero-in 1.1s 0.15s var(--ease) both;
}

.page-hero__sub::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 28px;
	height: 2px;
	background: var(--color-accent);
}

.page-hero__chara {
	flex-shrink: 0;
	width: 150px;
	animation: hero-in 1.1s 0.3s var(--ease) both;
}

@keyframes hero-in {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
	.page-hero {
		padding: 48px 0;
	}

	.page-hero__inner {
		gap: 16px;
	}

	/* 長いタイトル(CHARACTERS等)でキャラが右にはみ出さないよう、文字をvw基準で縮める */
	.page-hero__text {
		min-width: 0;
	}

	.page-hero__title {
		font-size: 8vw;
	}

	.page-hero__chara {
		width: 80px;
	}
}

/* 会社概要テーブル */
.info-table {
	margin: 0;
	border-top: 1px solid var(--color-border);
}

.info-table__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
	padding: 24px 8px;
	border-bottom: 1px solid var(--color-border);
}

.info-table dt {
	font-family: var(--font-en);
	font-weight: 700;
}

.info-table dd {
	margin: 0;
}

@media (max-width: 767px) {
	.info-table__row {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 20px 4px;
	}
}

/* メンバー紹介：写真とテキストを横並び */
.member-list {
	display: grid;
	gap: 72px;
}

.member {
	display: grid;
	grid-template-columns: 320px 1fr;
	align-items: center;
	gap: 56px;
}

.member__photo {
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 4 / 5;
	background: var(--color-bg-gray);
}

.member__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.member__name {
	margin: 0 0 8px;
	font-family: var(--font-en);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 800;
	line-height: 1.15;
}

.member__role {
	margin: 0 0 24px;
	font-family: var(--font-en);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--color-accent);
}

.member__text {
	margin: 0 0 16px;
}

.member__url a {
	font-family: var(--font-en);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.member__url a:hover {
	color: var(--color-accent);
}

@media (max-width: 767px) {
	.member-list {
		gap: 56px;
	}

	.member {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.member__photo {
		max-width: 320px;
		margin-bottom: 28px;
	}
}

/* イラストページ ヒーロー下のバナー */
.illust-banner {
	padding-top: 40px;
	padding-bottom: 0;
}

.illust-banner__img {
	display: block;
	width: 100%;
	max-width: 700px;
	height: auto;
	margin: 0 auto;
}

/* Aboutページ用：セクション上下の余白を狭める */
.section--compact {
	padding: 64px 0;
}

@media (max-width: 767px) {
	.section--compact {
		padding: 40px 0;
	}
}

/* サービス詳細 */
.service-detail__inner {
	display: grid;
	grid-template-columns: 1fr 340px;
	align-items: center;
	gap: 96px;
}

.service-detail--reverse .service-detail__inner {
	grid-template-columns: 340px 1fr;
}

.service-detail--reverse .service-detail__chara {
	order: -1;
}

.service-detail__lead {
	margin: 0 0 20px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.6;
}

.service-detail__label {
	margin: 0 0 8px;
	font-family: var(--font-en);
	font-weight: 800;
	letter-spacing: 0.04em;
}

.check-list__sub {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.check-list .check-list__sub li {
	padding: 4px 0 4px 16px;
	border-bottom: 0;
	font-size: 15px;
	font-weight: 400;
}

.check-list .check-list__sub li::before {
	top: 14px;
	left: 0;
	width: 5px;
	height: 5px;
	border: 0;
	border-radius: 50%;
	background: var(--color-text);
	transform: none;
}

.service-detail__num {
	margin: 0 0 8px;
	font-family: var(--font-en);
	font-size: 18px;
	font-weight: 800;
	color: var(--color-accent);
}

.service-detail__title {
	margin: 0 0 32px;
	font-family: var(--font-en);
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.service-detail__text {
	margin: 0 0 32px;
	font-size: 17px;
}

.service-detail__chara {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--color-accent-light);
}

.service-detail__chara img {
	width: 52%;
}

.service-detail__more {
	margin-top: 40px;
}

.check-list li {
	position: relative;
	padding: 14px 0 14px 36px;
	border-bottom: 1px solid var(--color-border);
	font-weight: 500;
}

.check-list li::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 4px;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--color-accent);
	border-bottom: 2px solid var(--color-accent);
	transform: rotate(-45deg);
}

@media (max-width: 960px) {
	.service-detail__inner,
	.service-detail--reverse .service-detail__inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.service-detail__chara,
	.service-detail--reverse .service-detail__chara {
		order: -1;
		width: min(240px, 70%);
		margin: 0 auto;
	}
}

/* キャラクター利用許諾 */
.license {
	padding-top: 20px;
	padding-bottom: 64px;
}

@media (max-width: 767px) {
	.license {
		padding-bottom: 40px;
	}
}

.license__title {
	margin: 0 0 32px;
	font-family: var(--font-en);
	font-size: clamp(26px, 3.6vw, 40px);
	font-weight: 800;
	line-height: 1.3;
}

.license__lead {
	margin: 0 0 16px;
	font-size: 17px;
}

/* 開閉ボタン */
.license__more {
	margin-top: 40px;
	interpolate-size: allow-keywords;
}

.license__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 20px;
	min-width: 220px;
	padding: 14px 24px 14px 28px;
	border: 2px solid var(--color-text);
	border-radius: 999px;
	font-family: var(--font-en);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	list-style: none;
	cursor: pointer;
	transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.license__toggle::-webkit-details-marker {
	display: none;
}

.license__toggle:hover {
	background: var(--color-text);
	color: var(--color-white);
}

/* 右端の＋／－アイコン */
.license__toggle::before,
.license__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 24px;
	width: 14px;
	height: 2px;
	background: currentColor;
	transition: transform 0.4s var(--ease);
}

.license__toggle::after {
	transform: rotate(90deg);
}

.license__more[open] .license__toggle::after {
	transform: rotate(0);
}

.license__toggle-close,
.license__more[open] .license__toggle-open {
	display: none;
}

.license__more[open] .license__toggle-close {
	display: inline;
}

/* Downloadボタン（開閉ボタンと同じ形） */
.license__download {
	margin-top: 24px;
	text-decoration: none;
	color: inherit;
}

/* ＋アイコンを矢印に差し替え */
.license__download::before {
	width: 10px;
	height: 10px;
	background: none;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.license__download::after {
	display: none;
}

/* 開くときに高さがなめらかに広がる（対応ブラウザのみ） */
.license__more::details-content {
	block-size: 0;
	overflow: clip;
	transition: block-size 0.7s var(--ease), content-visibility 0.7s allow-discrete;
}

.license__more[open]::details-content {
	block-size: auto;
}

.license__more[open] .license__block {
	animation: hero-in 0.9s var(--ease) both;
}

.license__block {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--color-border);
}

.license__block > p {
	margin: 0 0 16px;
}

.license__block a {
	color: var(--color-accent);
	text-decoration: underline;
}

.license__heading {
	position: relative;
	margin: 0 0 24px;
	padding-left: 20px;
	font-family: var(--font-en);
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 800;
	line-height: 1.4;
}

.license__heading::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 6px;
	height: 1.1em;
	background: var(--color-accent);
}

.license__rate {
	padding: 20px 24px;
	border-radius: var(--radius);
	background: var(--color-accent-light);
}

.license__rate small {
	color: var(--color-text-sub);
}

.license__steps {
	counter-reset: step;
}

.license__steps li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 0 20px 64px;
	border-bottom: 1px solid var(--color-border);
	counter-increment: step;
}

.license__steps li::before {
	content: counter(step);
	position: absolute;
	top: 20px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-text);
	color: var(--color-white);
	font-family: var(--font-en);
	font-weight: 800;
}

.license__list li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
}

.license__steps strong,
.license__list strong:first-child {
	font-family: var(--font-en);
}

.license__credit {
	display: inline-block;
	align-self: flex-start;
	margin-top: 8px;
	padding: 8px 20px;
	border-left: 4px solid var(--color-accent);
	background: var(--color-bg-gray);
	font-weight: 700;
}

.license__nums {
	margin: 0 0 24px;
	padding-left: 1.6em;
	list-style: decimal;
}

.license__nums li {
	padding: 6px 0 6px 4px;
}

.license__nums li::marker {
	color: var(--color-accent);
	font-weight: 700;
}

.license__note {
	padding: 20px 24px;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius);
	font-size: 14px;
	font-style: italic;
}

.license__mail {
	padding: 20px 24px;
	border-radius: var(--radius);
	background: var(--color-bg-gray);
}

.license__sub {
	margin: 32px 0 12px;
	font-family: var(--font-en);
	font-size: 18px;
	font-weight: 700;
}

.license__form {
	margin: 0;
	padding: 24px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-bg-gray);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.9;
	white-space: pre-wrap;
	word-break: break-word;
}

/* CTA */
.section--cta {
	background: var(--color-text);
	color: var(--color-white);
}

.cta {
	text-align: center;
}

.cta__title {
	margin: 0 0 40px;
	font-family: var(--font-en);
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 800;
	line-height: 1.2;
}

/* ページネーション */
.pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 56px;
}

.pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-family: var(--font-en);
	font-weight: 700;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--color-text);
	background: var(--color-text);
	color: var(--color-white);
}

/* ==========================================================
   投稿詳細（single.php）
========================================================== */
.single-head {
	padding: 72px 0 56px;
	background: var(--color-bg-gray);
}

.single-head__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	font-family: var(--font-en);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-sub);
}

.single-head__cat {
	padding: 2px 12px;
	border: 1px solid var(--color-text);
	border-radius: 999px;
	color: var(--color-text);
	font-size: 12px;
}

.single-head__title {
	margin: 0;
	font-family: var(--font-en);
	font-size: clamp(26px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.35;
	animation: hero-in 1.1s var(--ease) both;
}

.single-body__thumb {
	margin: 0 0 48px;
	border-radius: var(--radius);
	overflow: hidden;
}

.single-body__thumb img {
	width: 100%;
}

.single-body__content {
	line-height: 2;
}

.single-body__content img {
	border-radius: 8px;
}

.single-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	margin-top: 80px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border);
	font-family: var(--font-en);
	font-weight: 700;
}

.single-nav__prev a,
.single-nav__next a {
	position: relative;
	display: inline-block;
	max-width: 100%;
	transition: color 0.3s;
}

.single-nav__prev a:hover,
.single-nav__next a:hover {
	color: var(--color-accent);
}

.single-nav__next {
	text-align: right;
}

.single-nav__label {
	display: block;
	font-size: 12px;
	color: var(--color-text-sub);
}

.single-nav__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (max-width: 767px) {
	.single-head {
		padding: 48px 0 40px;
	}

	.single-nav {
		grid-template-columns: 1fr 1fr;
	}

	.single-nav__back {
		grid-column: 1 / -1;
		grid-row: 2;
		text-align: center;
	}
}

/* ==========================================================
   投稿詳細・その他の固定ページ（親テーマのテンプレート用）
========================================================== */
.site-main > article {
	max-width: calc(880px + var(--gutter) * 2);
	margin: 0 auto;
	padding: 96px var(--gutter) var(--section-space);
}

.site-main > article .entry-title {
	margin: 0 0 16px;
	font-family: var(--font-en);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.3;
}

.site-main > article .entry-title a:hover {
	color: var(--color-accent);
}

.site-main > article .entry-meta {
	margin-bottom: 40px;
	color: var(--color-text-sub);
	font-size: 14px;
}

.entry-content > * + * {
	margin-top: 1.5em;
}

.entry-content h2 {
	margin-top: 2.5em;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--color-text);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
}

.entry-content h3 {
	margin-top: 2em;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.entry-content a {
	color: var(--color-accent);
	text-decoration: underline;
}

.entry-content ul {
	padding-left: 1.4em;
	list-style: disc;
}

.entry-content ol {
	padding-left: 1.4em;
	list-style: decimal;
}

.site-main > .footer {
	max-width: calc(880px + var(--gutter) * 2);
	margin: -80px auto 0;
	padding: 0 var(--gutter) var(--section-space);
}

.site-main > .footer .navigation {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border);
}

/* ==========================================================
   フッター
========================================================== */
.site-footer {
	padding: 88px 0 32px;
	border-top: 1px solid var(--color-border);
	background: var(--color-bg);
}

.site-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 48px;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.site-footer__logo {
	display: inline-block;
}

.site-footer__logo img {
	width: 220px;
}

.site-footer__address {
	margin-top: 24px;
	font-style: normal;
	font-size: 14px;
	color: var(--color-text-sub);
}

.site-footer__address p {
	margin: 0;
}

.site-footer__yt {
	display: inline-flex;
	margin-top: 16px;
	color: var(--color-text);
	transition: color 0.3s, transform 0.4s var(--ease);
}

.site-footer__yt:hover {
	color: var(--color-accent);
	transform: scale(1.1);
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 16px 36px;
}

.footer-nav__list a {
	font-family: var(--font-en);
	font-size: 14px;
	font-weight: 700;
}

.footer-nav__list a:hover {
	color: var(--color-accent);
}

.site-footer__copy {
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 64px auto 0;
	padding: 24px var(--gutter) 0;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-sub);
	font-family: var(--font-en);
	font-size: 12px;
}

@media (max-width: 767px) {
	.site-footer {
		padding-top: 64px;
	}

	.site-footer__inner {
		flex-direction: column;
	}

	.site-footer__logo img {
		width: 180px;
	}

	.footer-nav__list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 12px 24px;
	}

	.site-footer__copy {
		margin-top: 48px;
	}
}

/* ==========================================================
   動きを減らす設定のユーザー向け
========================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	html {
		scroll-behavior: auto;
	}

	/* 流れるイラストは止めて、横スクロールで見られるようにする */
	.illust-marquee {
		overflow-x: auto;
	}

	.illust-marquee__list {
		animation: none;
	}

	.illust-marquee__list[aria-hidden="true"] {
		display: none;
	}

	/* 動画は止まらないので非表示にして背景色のみにする */
	.mv__bg {
		display: none;
	}
}
