@charset "shift_jis";

/* Google Fonts Import for Friendly Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Zen+Maru+Gothic:wght@400;700;900&display=swap');

:root {
	/* Warm & Friendly Palette */
	--primary: #ff7e67;
	/* Soft Coral */
	--primary-dark: #e8634d;
	--secondary: #ffefeb;
	/* Very Light Peach */
	--accent: #ffcb74;
	/* Warm Yellow */
	--text-main: #4a3c3c;
	/* Deep Brown (warmer than black/gray) */
	--text-light: #8b7d7d;
	--bg-white: #ffffff;
	--bg-cream: #fff9f5;
	--border-color: #fce4e0;
	--shadow-soft: 0 8px 30px rgba(255, 126, 103, 0.08);

	--font-main: 'Inter', sans-serif;
	--font-friendly: 'Zen Maru Gothic', sans-serif;
	--transition-bouncy: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
	box-sizing: border-box;
}

body {
	line-height: 1.8;
	margin: 0;
	padding: 0;
	font-family: var(--font-main);
	background-color: var(--bg-cream);
	color: var(--text-main);
}

/* --- Layout with CSS Grid --- */
#op {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	grid-template-areas:
		"header header"
		"navia navia"
		"left side"
		"footer footer";
	gap: 0 40px;
}

#header {
	grid-area: header;
}

.navia {
	grid-area: navia;
}

#left {
	grid-area: left;
}

#menu {
	grid-area: side;
}

#footer {
	grid-area: footer;
}

/* --- Header --- */
#header {
	padding: 3rem 0;
	text-align: center;
}

.intro {
	margin: 0;
	float: none !important;
	/* Overriding potential legacy floats */
}

.intro a {
	font-family: var(--font-friendly);
	font-size: 2.4rem;
	font-weight: 900;
	color: var(--primary);
	text-decoration: none;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.intro span {
	font-size: 1rem;
	color: var(--text-light);
	display: block;
	margin-top: 0.8rem;
	font-weight: 400;
}

/* --- Navigation Area (Spacer in HTML) --- */
.navia {
	height: 1px;
	background: var(--border-color);
	margin-bottom: 3rem;
}

/* --- Content Styling --- */
h1,
h2 {
	font-family: var(--font-friendly);
	font-weight: 900;
	color: var(--primary-dark);
	font-size: 1.8rem;
	margin: 3rem 0 1.5rem;
	padding: 1rem 0;
	background: transparent;
	box-shadow: none;
	border-bottom: 4px solid var(--secondary);
	position: relative;
	text-shadow: none;
}

h1::after,
h2::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 60px;
	height: 4px;
	background: var(--primary);
	border-radius: 4px;
}

h3,
h4 {
	font-family: var(--font-friendly);
	font-weight: 700;
	color: var(--text-main);
	font-size: 1.3rem;
	margin: 2rem 0 1rem;
	background: transparent;
	padding: 0;
	text-shadow: none;
}

p {
	margin-bottom: 1.5rem;
}

b,
strong {
	color: var(--primary-dark);
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: var(--transition-bouncy);
}

a:hover {
	color: var(--accent);
}

/* --- Sidebar Menu --- */
#menu {
	margin-top: 3rem;
}

#menu .side {
	font-family: var(--font-friendly);
	background: var(--primary);
	color: white;
	padding: 1rem;
	border-radius: 12px;
	text-align: center;
	font-weight: 700;
	margin-bottom: 1.5rem;
	box-shadow: var(--shadow-soft);
}

#menu .ta {
	background: white;
	border: none;
	border-radius: 20px;
	padding: 1.5rem;
	box-shadow: var(--shadow-soft);
}

.mmm li {
	margin-bottom: 0.5rem;
}

.mmm a {
	padding: 0.8rem 0;
	border-bottom: 1px dashed var(--border-color);
	font-weight: 600;
	color: var(--text-light);
	border-radius: 0;
}

.mmm a:hover {
	background: transparent;
	color: var(--primary);
	padding-left: 10px;
}

/* --- Special Boxes --- */
.str {
	background: var(--secondary);
	border: 2px dashed var(--primary);
	padding: 2rem;
	border-radius: 24px;
	color: var(--primary-dark);
	font-weight: 700;
	font-family: var(--font-friendly);
	text-align: center;
	font-size: 1.2rem;
	margin: 2.5rem 0;
	width: 100% !important;
}

/* --- Article/Main Content --- */
#left {
	background: white;
	padding: 3rem;
	border-radius: 32px;
	box-shadow: var(--shadow-soft);
	margin-top: 3rem;
}

/* --- Footer --- */
#footer {
	grid-area: footer;
	background: transparent;
	padding: 6rem 0 3rem;
	text-align: center;
	color: var(--text-light);
	box-shadow: none;
}

#footer ul {
	list-style: none;
	padding: 0;
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
}

#footer li a {
	color: var(--text-light);
	font-size: 0.9rem;
	background: transparent;
}

#footer li a:hover {
	color: var(--primary);
	background: transparent;
}

#footer small {
	display: block;
	margin-top: 2rem;
	font-size: 0.8rem;
	opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 900px) {
	#op {
		grid-template-columns: 1fr;
		grid-template-areas:
			"header"
			"left"
			"side"
			"footer";
		gap: 0;
	}

	#left {
		padding: 1.5rem;
		border-radius: 20px;
	}

	.intro a {
		font-size: 1.8rem;
	}
}

@media (max-width: 480px) {
	#op {
		padding: 0 15px;
	}

	h1 {
		font-size: 1.4rem;
	}
}