@charset "utf-8";

/* ========================================
   SCENARIO ARCHIVES LP - STYLE
======================================== */

/* --- Reset --- */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* --- Variables --- */
:root {
	--color-black: #101010;
	--color-white: #fdfdfd;
	--color-pink01: #E40077;
	--color-pink02: #ff7c9b;
	--color-pink03: #ff5b85;
	--color-bg: #FCDFE7;
	--color-bg-dark: #1a1a2e;
	--color-tab-bg: #ffffff;
	--color-tab-active: #eb4795;
	--color-border: #e8dde2;
	--color-chara-name: #eb4795;
	--color-narration: #666;
	--font-main: source-han-sans-japanese, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
	--font-en: "Lato", sans-serif;
}

html {
	font-size: 62.5%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-main);
	font-size: 1.4rem;
	line-height: 1.6;
	color: var(--color-black);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "palt" 1;
}

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

a {
	color: var(--color-pink01);
	text-decoration: none;
	transition: opacity 0.2s;
}

a:hover {
	opacity: 0.7;
}

/* --- Layout --- */
.g-wrapper {
	width: 100%;
	overflow: hidden;
}

.l-inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ========================================
   KV Section
======================================== */
.p-kv {
	width: 100%;
	line-height: 0;
}

.p-kv__img {
	width: 100%;
	height: auto;
	display: block;
}

/* ========================================
   Intro Section
======================================== */
.p-intro {
	padding: 30px 0 60px;
	text-align: center;
}

.p-intro__title {
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--color-black);
}

.p-intro__text {
	font-size: 1.5rem;
	line-height: 2;
	color: #555;
	max-width: 700px;
	margin: 0 auto;
}

/* ========================================
   Scenario Main Section (Tab UI)
======================================== */
.p-scenario {
	padding: 0 0 100px;
}

.p-scenario__header {
	text-align: center;
	margin-bottom: 40px;
}

.p-scenario__headerTitle {
	font-family: var(--font-en);
	font-size: 1.2rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-pink01);
	margin-bottom: 8px;
}

.p-scenario__headerMain {
	font-size: 2rem;
	font-weight: 700;
}

/* --- Chapter Tab Navigation (1st level) --- */
.p-scenario__chapterTabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	max-width: 1000px;
	margin: 0 auto 10px;
	padding: 0 20px;
}

.p-scenario__chapterTab {
	position: relative;
	padding: 10px 40px;
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--color-pink01);
	background: var(--color-tab-bg);
	border: 2px solid var(--color-pink01);
	border-radius: 50rem;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.p-scenario__chapterTab:hover {
	color: var(--color-pink01);
	border-color: var(--color-pink01);
}

.p-scenario__chapterTab.is-active {
	color: var(--color-white);
	background: var(--color-pink01);
	border-color: var(--color-pink01);
}

/* --- Chapter Content (show/hide) --- */
.p-scenario__chapterContent {
	display: none;
}

.p-scenario__chapterContent.is-active {
	display: block;
}

/* --- Episode Tab Navigation (2nd level) --- */
.p-scenario__episodeTabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 800px;
	margin: 10px auto 30px;
	list-style-type: none;
}

.p-scenario__episodeTab {
	padding: 3px 28px;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--color-pink01);
	background: none;
	border: 2px solid var(--color-pink01);
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	margin: 0;
}


.p-scenario__episodeTab:hover {
	background: rgba(228, 0, 119, 0.08);
}

.p-scenario__episodeTab.is-active {
	color: var(--color-white);
	background: var(--color-pink01);
	border-color: var(--color-pink01);
}

/* --- Episode Content --- */
.p-scenario__episodeContents {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

.p-scenario__content {
	display: none;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.p-scenario__content.is-active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

/* --- Content Header (chapter + episode title unified box) --- */
.p-scenario__contentHeader {
	text-align: center;
	padding: 15px 20px;
	margin-bottom: 30px;
	border: 2px solid var(--color-pink01);
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.p-scenario__contentHeader[data-chapter="1"] { background-image: url(../img/chapter1.webp); }
.p-scenario__contentHeader[data-chapter="2"] { background-image: url(../img/chapter2.webp); }
.p-scenario__contentHeader[data-chapter="3"] { background-image: url(../img/chapter3.webp); }
.p-scenario__contentHeader[data-chapter="4"] { background-image: url(../img/chapter4.webp); }
.p-scenario__contentHeader[data-chapter="5"] { background-image: url(../img/chapter5.webp); }

.p-scenario__chapterTitle {
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--color-black);
}

.p-scenario__episodeTitle {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-pink01);
	margin-top: 5px;
}

.p-scenario__contentTag {
	display: inline-block;
	font-size: 1.4rem;
    font-weight: bold;
	color: var(--color-pink01);
}

.p-scenario__contentTitle {
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-black);
}

/* --- Dialogue Area --- */
.p-scenario__dialogue {
	background: var(--color-white);
	border-radius: 12px;
	border: 1px solid var(--color-border);
	padding: 40px;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
	max-height: 70vh;
	overflow-y: auto;
}

.p-scenario__line {
	display: flex;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(232, 221, 226, 0.5);
}

.p-scenario__line:last-child {
	border-bottom: none;
}

.p-scenario__lineChara {
	flex-shrink: 0;
	width: 90px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-chara-name);
	padding-top: 2px; 
	text-align: right;
}

.p-scenario__lineText {
	flex: 1;
	font-size: 1.4rem;
	line-height: 1.9;
	color: var(--color-black);
}

/* Narration / SE lines */
.p-scenario__line--narration .p-scenario__lineChara {
	color: var(--color-narration);
	font-style: italic;
	font-weight: 400;
}

.p-scenario__line--narration .p-scenario__lineText {
	color: var(--color-narration);
	font-style: italic;
}

/* Thought text (monologue) */
.p-scenario__lineText--thought {
	color: #7a6070;
}

/* ========================================
   Footer
======================================== */
.l-footer {
	background: var(--color-pink01);
	padding: 18px 20px 5px;
	text-align: center;
}

.l-footer__official {
	margin-bottom: 5px;
}

.l-footer__logo {
	margin-bottom: 20px;
}

.l-footer__logo img {
	width: 200px;
}

.l-footer__link {
	margin-bottom: 5px;
}

.l-footer__link a {
	color: #ffffff;
	font-size: 1.2rem;
	margin: 0 10px;
}

.l-footer__link a:hover {
	color: var(--color-pink02);
}

.l-footer__copyright {
	color: rgba(255, 255, 255, 0.6);
	font-size: 1.1rem;
}

/* ========================================
   Responsive
======================================== */
.u-sp { display: none; }
@media screen and (max-width: 767px) {
	.u-pc { display: none; }
	.u-sp { display: block; }
	/* .p-kv {
		height: 50vh;
		min-height: 300px;
	} */

	.p-kv__title {
		font-size: 2.8rem;
	}

	.p-kv__charaName {
		font-size: 1.6rem;
	}

	.p-intro {
		padding: 20px 0 40px;
	}

	.p-intro__title {
		font-size: 1.55rem;
	}

	.p-scenario {
		padding: 0 0 40px;
	}	

	.p-scenario__chapterTabs {
		gap: 4px;
		padding: 0 10px;
	}

	.p-scenario__chapterTab {
		padding: 8px 16px;
		font-size: 1.1rem;
	}

	.p-scenario__episodeTab {
		padding: 2px 10px;
		font-size: 1.1rem;
	}

	.p-scenario__dialogue {
		padding: 20px 16px;
	}

	.p-scenario__line {
		flex-direction: column;
		gap: 4px;
	}

	.p-scenario__lineChara {
		width: auto;
		text-align: left;
	}

	.p-scenario__contentTitle {
		font-size: 1.7rem;
	}

	.p-scenario__chapterTitle {
		font-size: 2rem;
	}

	.p-scenario__episodeTitle {
		font-size: 1.4rem;
	}

	.l-footer__official {
		font-size: 1.2rem;
	}

	.l-footer__link a {
		margin: 0 8px;
		font-size: 1rem;
	}



}
