/* =========================================================
	Game Programming LAB Design System
	Base: Education LP Navy Scheme
========================================================= */

:root {
	--color-primary: #003366;
	--color-primary-dark: #001f3f;
	--color-accent: #7dd3fc;

	--color-text: #1e293b;
	--color-muted: #64748b;
	--color-line: #e2e8f0;
	--color-soft: #f8fafc;
	--color-white: #ffffff;

	--navy: var(--color-primary);
	--navy-dark: var(--color-primary-dark);
	--accent: var(--color-accent);
	--text: var(--color-text);
	--muted: var(--color-muted);
	--line: var(--color-line);
	--soft: var(--color-soft);

	--font-base: "Noto Sans JP", system-ui, sans-serif;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-pill: 999px;

	--shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.04);
	--shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06);
	--shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.10);
}

/* =========================================================
	Base
========================================================= */

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	line-height: 1.8;
	background: var(--color-white);
}

h1,
h2,
h3,
h4 {
	font-weight: 900 !important;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

p {
	line-height: 1.9;
}

section {
	scroll-margin-top: 96px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Shared page width: aligned with the top page. */
.gpl-shell {
	width: min(calc(100% - 48px), 1180px);
	margin-inline: auto;
}

@media (max-width: 640px) {
	.gpl-shell {
		width: min(calc(100% - 32px), 1180px);
	}
}

a {
	color: inherit;
}

/* =========================================================
	Color Utilities
========================================================= */

.bg-custom-navy {
	background-color: var(--color-primary) !important;
}

.text-custom-navy {
	color: var(--color-primary) !important;
}

.bg-accent-light-blue {
	background-color: var(--color-accent) !important;
}

.text-accent-light-blue {
	color: var(--color-accent) !important;
}

.border-accent-light-blue {
	border-color: var(--color-accent) !important;
}

.section-lead {
	color: var(--color-muted);
	font-weight: 700;
	line-height: 1.9;
	max-width: 760px;
}

/* =========================================================
	Header
========================================================= */

header {
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-line) !important;
}

header a[href="#partner"] {
	border-radius: var(--radius-md) !important;
	background: var(--color-primary) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 0 var(--color-primary-dark) !important;
}

header a[href="#partner"]:hover {
	background: var(--color-primary-dark) !important;
}

header a[href="#partner"]:active {
	transform: translateY(4px);
	box-shadow: none !important;
}

/* =========================================================
	Hero
========================================================= */

section.bg-custom-navy {
	background-color: var(--color-primary) !important;
}

section.bg-custom-navy > .absolute.inset-0 {
	opacity: 0.10 !important;
}

section.bg-custom-navy .bg-accent-light-blue\/20 {
	background-color: rgba(125, 211, 252, 0.20) !important;
}

section.bg-custom-navy h1 span,
section.bg-custom-navy .text-accent-light-blue {
	color: var(--color-accent) !important;
}

section.bg-custom-navy .border-accent-light-blue {
	border-color: var(--color-accent) !important;
}

/* =========================================================
	Section Tag
========================================================= */

.section-tag {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 4px 12px;
	background: var(--color-primary);
	color: #ffffff;
	font-size: 11px;
	font-weight: 900;
	margin-bottom: 18px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	border-radius: var(--radius-sm);
}

.section-tag.\!bg-accent-light-blue,
.\!bg-accent-light-blue {

	background: var(--color-accent) !important;
}

.section-tag.\!text-custom-navy,
.\!text-custom-navy {
	color: var(--color-primary) !important;
}

/* =========================================================
	Cards
========================================================= */

.readable-card {
	background: #ffffff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.bento-card {
	background: #ffffff;
	padding: 1.5rem;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	overflow: hidden;
}

.bento-card:hover {
	transform: translateY(-2px);
	border-color: var(--color-accent);
	box-shadow: var(--shadow-lg);
}

/* =========================================================
	Image Panel
========================================================= */

.image-panel {
	border-radius: var(--radius-md);
	overflow: hidden;
	background: #e2e8f0;
}

.image-panel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, filter 0.5s ease;
}

.image-panel:hover img {
	transform: scale(1.03);
	filter: saturate(1.15) contrast(1.05);
}

/* =========================================================
	CTA Button
========================================================= */

.cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	background: var(--color-accent);
	color: var(--color-primary);
	font-weight: 900;
	border-radius: var(--radius-md);
	transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	text-decoration: none;
}

.cta-button:hover {
	filter: brightness(1.05);
	transform: translateY(-2px);
}

.cta-button:active {
	transform: translateY(1px);
}

/* =========================================================
	FAQ
========================================================= */

.faq-card {
	background: #ffffff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	box-shadow: var(--shadow-sm);
}

.faq-label {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-pill);
	font-size: 1rem;
	font-weight: 900;
}

.faq-label-q {
	color: var(--color-primary);
	background: var(--color-accent);
}

.faq-label-a {
	color: #94a3b8;
	background: #f1f5f9;
}

/* =========================================================
	Table
========================================================= */

.info-table {
	width: 100%;
	border-collapse: collapse;
}

.info-table th,
.info-table td {
	vertical-align: top;
}

.info-table thead tr {
	background: var(--color-primary) !important;
	color: #ffffff !important;
}

.info-table th {
	color: #ffffff !important;
}

.info-table tbody tr {
	border-bottom: 1px solid var(--color-line);
}

.info-table tbody td:first-child {
	font-weight: 900;
	color: var(--color-text);
	background: var(--color-soft);
}

/* =========================================================
	Case Study
========================================================= */

#casestudy .bg-custom-navy {
	background-color: var(--color-primary) !important;
}

#casestudy .border-accent-light-blue {
	border-color: var(--color-accent) !important;
}

#casestudy a {
	color: var(--color-accent) !important;
	border-color: var(--color-accent) !important;
}

/* 事例紹介の画像グラデーションを削除 */
#casestudy .absolute.inset-0.bg-gradient-to-t,
#casestudy .absolute.inset-0.bg-gradient-to-r,
#casestudy .absolute.inset-0[class*="bg-gradient"] {
	display: none !important;
}

/* =========================================================
	Partner Section
========================================================= */

#partner {
	background-color: var(--color-primary) !important;
}

#partner .bg-accent-light-blue {
	background: var(--color-accent) !important;
}

#partner .text-accent-light-blue {
	color: var(--color-accent) !important;
}

#partner .w-28.h-2 {
	background: var(--color-accent) !important;
}

#partner .bg-white {
	border: 1px solid rgba(15, 23, 42, 0.06);
}

#partner .grid .bg-white {
	border-radius: var(--radius-xl) !important;
}

/* =========================================================
	Footer
========================================================= */

footer {
	background: #ffffff !important;
	border-top: 1px solid var(--color-line) !important;
}

/* =========================================================
	Download Page
========================================================= */

.page {
	max-width: 1080px;
	margin: 0 auto;
	padding: 48px 24px;
}

.hero {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
		var(--color-primary);
	background-size: 42px 42px;
	color: #ffffff;
	border-radius: var(--radius-xl);
	padding: 48px 40px;
	margin-bottom: 32px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.hero-label {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	background: var(--color-accent);
	color: var(--color-primary);
	border-radius: var(--radius-sm);
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.08em;
	margin-bottom: 16px;
}

.hero h1 {
	margin: 0 0 16px;
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.25;
}

.hero p {
	margin: 0;
	max-width: 780px;
	color: #dbeafe;
	font-size: 17px;
	font-weight: 500;
}

.section {
	background: #ffffff;
	border-radius: var(--radius-lg);
	padding: 32px;
	margin-bottom: 28px;
	border: 1px solid var(--color-line);
	box-shadow: var(--shadow-md);
}

.section h2 {
	margin: 0 0 16px;
	font-size: 26px;
	line-height: 1.4;
	color: var(--color-primary);
}

.section p {
	margin: 0 0 16px;
}

.section p:last-child {
	margin-bottom: 0;
}

.version-box {
	border: 2px solid var(--color-primary);
	background: #eff6ff;
}

.version-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	background: var(--color-primary);
	color: #ffffff;
	border-radius: var(--radius-sm);
	padding: 5px 14px;
	font-weight: 900;
	font-size: 13px;
	letter-spacing: 0.08em;
	margin-bottom: 14px;
}

.version-title {
	font-size: 30px;
	font-weight: 900;
	margin-bottom: 8px;
	color: var(--color-primary);
	line-height: 1.35;
}

.version-list {
	margin: 16px 0 0;
	padding-left: 1.4em;
}

.download-version {
	margin-top: 32px;
}

.download-version:first-of-type {
	margin-top: 16px;
}

.download-version-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.download-version-header h3 {
	margin: 0;
	font-size: 24px;
	color: var(--color-text);
}

.recommended-label,
.legacy-label {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	border-radius: var(--radius-sm);
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.recommended-label {
	background: var(--color-accent);
	color: var(--color-primary);
	border: 1px solid var(--color-accent);
}

.legacy-label {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
}

.download-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.download-card {
	background: #ffffff;
	border: 1px solid #dbe3ef;
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: var(--shadow-sm);
}

.download-card h4 {
	margin: 0 0 10px;
	font-size: 22px;
	color: var(--color-text);
}

.download-card p {
	margin: 0 0 18px;
	color: #475569;
}

.download-meta {
	background: var(--color-soft);
	border-radius: var(--radius-md);
	padding: 12px 14px;
	margin-bottom: 18px;
	font-size: 14px;
	color: #334155;
}

.download-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	background: var(--color-primary);
	color: #ffffff;
	text-decoration: none;
	border-radius: var(--radius-md);
	font-weight: 900;
	transition: background 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.download-button:hover {
	background: var(--color-primary-dark);
	transform: translateY(-1px);
}

.download-button.mac {
	background: #334155;
}

.download-button.mac:hover {
	background: #1e293b;
}

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.step-box {
	background: var(--color-soft);
	border-radius: var(--radius-lg);
	padding: 24px;
	border: 1px solid var(--color-line);
}

.step-box h3 {
	margin: 0 0 12px;
	font-size: 22px;
	color: var(--color-primary);
}

.step-box ol {
	margin: 0;
	padding-left: 1.4em;
}

.notice {
	background: #fff7ed;
	border-left: 6px solid #f97316;
}

.notice strong {
	color: #9a3412;
}

.faq-item {
	border-top: 1px solid var(--color-line);
	padding: 18px 0;
}

.faq-item:first-of-type {
	border-top: none;
	padding-top: 0;
}

.faq-item h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: var(--color-text);
}

.faq-item p {
	color: #475569;
}

.license-intro {
	background: var(--color-soft);
	border-radius: var(--radius-lg);
	padding: 20px;
	border: 1px solid var(--color-line);
	margin-bottom: 20px;
}

.license details {
	margin-top: 16px;
}

.license summary {
	cursor: pointer;
	font-weight: 900;
	color: var(--color-primary);
	padding: 12px 0;
}

.license pre {
	margin: 16px 0 0;
	padding: 20px;
	background: #0f172a;
	color: #e2e8f0;
	border-radius: var(--radius-lg);
	overflow-x: auto;
	white-space: pre-wrap;
	font-size: 13px;
	line-height: 1.65;
}

.footer {
	text-align: center;
	color: var(--color-muted);
	font-size: 14px;
	padding: 24px 0 0;
}


/* =========================================================
	Shared LP Footer
	学校向けLPと同じフッター表示
========================================================= */

.gpl-footer {
	padding: 48px 0 56px;
	background: #ffffff !important;
	border-top: 1px solid var(--color-line) !important;
}

.gpl-footer-inner {
	width: min(100% - 32px, 1120px);
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
}

.gpl-footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.gpl-footer-logo {
	display: block;
	width: auto;
	height: 48px;
	margin: 0 0 20px;
	object-fit: contain;
}

.gpl-footer-text {
	display: grid;
	gap: 4px;
}

.gpl-footer-main,
.gpl-footer-sub,
.gpl-footer-copy p {
	margin: 0;
}

.gpl-footer-main {
	color: var(--color-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
}

.gpl-footer-sub {
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.7;
}

.gpl-footer-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

.gpl-footer-copy p {
	color: #cbd5e1;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	line-height: 1.6;
}

.gpl-footer-disclaimer {
	width: min(100% - 32px, 1120px);
	margin: 28px auto 0;
	padding-top: 22px;
	border-top: 1px solid #edf2f7;
	color: #94a3b8;
	font-size: 11px;
	line-height: 1.8;
}

.gpl-footer-disclaimer p {
	margin: 0;
}

/* =========================================================
	Unified Site Footer
	トップページ準拠の共通フッター
========================================================= */

.site-shell {
	width: min(calc(100% - 48px), 1180px);
	margin-inline: auto;
}

.site-footer {
	background: #07111f !important;
	color: #fff;
	border-top: 1px solid #07111f !important;
}

.footer-main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	padding: 48px 0;
}

.operator-info {
	display: flex;
	flex-direction: column;
}

.operator-logo-link {
	display: block;
	width: fit-content;
	line-height: 1;
}

.operator-info img {
	display: block;
	width: auto;
	height: 44px;
	margin-bottom: 18px;
	object-fit: contain;
	object-position: left;
}

.operator-info p {
	margin: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.65;
}

.operator-info p + p {
	color: #d5e3ef;
	font-size: 11px;
	font-weight: 500;
}

.footer-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 20px;
	text-align: right;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 14px;
	color: #d5e3ef;
	font-size: 12px;
	font-weight: 900;
}

.footer-links a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.footer-links a:hover {
	color: #48b7e8;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: #fff;
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
}

.social-links a:hover {
	color: #48b7e8;
	border-color: #48b7e8;
	background: rgba(255,255,255,.08);
}

.social-links span {
	font-size: 15px;
	line-height: 1;
}

.footer-copyright {
	margin: 0;
	padding-top: 5px;
	color: rgba(255,255,255,.55);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .08em;
	text-align: right;
}

.footer-disclaimer {
	padding: 0 0 34px;
	color: rgba(255,255,255,.62);
	font-size: 11px;
	line-height: 1.8;
}

.footer-disclaimer p {
	margin: 0;
	padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,.14);
}

@media (max-width: 768px) {
	.gpl-footer {
		padding: 40px 0 48px;
	}

	.gpl-footer-inner {
		flex-direction: column;
		align-items: center;
		gap: 32px;
		text-align: center;
	}

	.gpl-footer-brand,
	.gpl-footer-copy {
		align-items: center;
		text-align: center;
	}

	.gpl-footer-logo {
		height: 40px;
	}

	.gpl-footer-disclaimer {
		margin-top: 24px;
		text-align: left;
	}

	.site-shell {
		width: min(calc(100% - 32px), 1180px);
	}

	.footer-main {
		align-items: flex-start;
		flex-direction: column;
		gap: 28px;
	}

	.footer-side {
		align-items: flex-start;
		text-align: left;
	}

	.footer-links {
		justify-content: flex-start;
	}

	.social-links {
		justify-content: flex-start;
	}

	.footer-copyright {
		text-align: left;
	}
}

/* =========================================================
	Tailwind Override
	既存LPのTailwind角丸・影・色指定を調整
========================================================= */

.bg-slate-50 {
	background-color: var(--color-soft) !important;
}

.border-slate-100,
.border-slate-200 {
	border-color: var(--color-line) !important;
}

.text-slate-600 {
	color: var(--color-muted) !important;
}

.text-slate-500 {
	color: #64748b !important;
}

.text-slate-400 {
	color: #94a3b8 !important;
}

.text-slate-300 {
	color: #cbd5e1 !important;
}

.text-slate-900 {
	color: var(--color-text) !important;
}

.text-blue-100 {
	color: #dbeafe !important;
}

.text-blue-100\/80 {
	color: rgba(219, 234, 254, 0.80) !important;
}

.from-custom-navy\/80 {
	--tw-gradient-from: rgba(0, 51, 102, 0.80) var(--tw-gradient-from-position) !important;
	--tw-gradient-to: rgba(0, 51, 102, 0) var(--tw-gradient-to-position) !important;
	--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

/* 角丸控えめ */

.rounded-\[1\.5rem\] {
	border-radius: var(--radius-xl) !important;
}

.rounded-2xl {
	border-radius: var(--radius-lg) !important;
}

.rounded-xl {
	border-radius: var(--radius-md) !important;
}

.rounded-lg {
	border-radius: var(--radius-md) !important;
}

.rounded-none {
	border-radius: 0 !important;
}

/* ただしピル系は丸のまま */

.rounded-full {
	border-radius: var(--radius-pill) !important;
}

/* 影 */

.shadow-2xl,
.shadow-xl,
.shadow-lg {
	box-shadow: var(--shadow-lg) !important;
}

/* =========================================================
	Small UI Parts
========================================================= */

.rounded-full.border.border-slate-200 {
	border-color: var(--color-line) !important;
}

.rounded-full.bg-accent-light-blue {
	background: var(--color-accent) !important;
	color: var(--color-primary) !important;
}

/* =========================================================
	Interaction
========================================================= */

a {
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* =========================================================
	Responsive
========================================================= */

@media (min-width: 768px) {
	.bento-card {
		padding: 2.25rem;
	}

	.faq-card {
		padding: 2rem;
	}
}

@media (max-width: 768px) {
	section {
		scroll-margin-top: 72px;
	}

	.page {
		padding: 28px 16px;
	}

	.hero {
		padding: 36px 24px;
		border-radius: var(--radius-lg);
	}

	.section {
		padding: 24px;
		border-radius: var(--radius-lg);
	}

	.bento-card,
	.readable-card,
	.faq-card {
		border-radius: var(--radius-lg);
	}

	.image-panel {
		border-radius: var(--radius-md);
	}

	.cta-button,
	.download-button {
		border-radius: var(--radius-md);
	}

	.section-tag,
	.hero-label,
	.version-badge,
	.recommended-label,
	.legacy-label {
		border-radius: var(--radius-sm);
	}

	#partner .grid .bg-white {
		border-radius: var(--radius-lg) !important;
	}
}
