/* meet.in (42ws 版) — 共通スタイル。web/src/styles/* と各ページの scoped style を移植し、本番 tomeet.in と見た目を揃える */

:root {
	--primary-color: #1e40af;
	--primary-dark: #1e3a8a;
	--accent-1: #667eea;
	--accent-2: #764ba2;
	--text-color: #111827;
	--gray-color: #4b5563;
	--light-gray: #9ca3af;
	--bg-color: #ffffff;
	--border-color: #d1d5db;
	--white: #ffffff;
	--42ws-theme: #1e40af;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
	color: var(--text-color);
	background-color: var(--bg-color);
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
}

button {
	font-family: inherit;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
}

/* ---------- header ---------- */

.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

.nav {
	display: flex;
	gap: 2rem;
	align-items: center;
}

.nav a {
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.2s;
	position: relative;
}

.nav a:hover {
	color: var(--primary-color);
}

.nav a.active,
.nav a[aria-current="page"] {
	color: var(--primary-color);
}

.nav a.active::after,
.nav a[aria-current="page"]::after {
	content: '';
	position: absolute;
	bottom: -1.25rem;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--primary-color);
}

.nav .cta {
	background: var(--primary-color);
	color: var(--white);
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	transition: background 0.15s ease;
}

.nav .cta:hover {
	background: var(--primary-dark);
	color: var(--white);
}

.nav .cta::after {
	display: none;
}

.mobile-menu-button {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: var(--text-color);
}

@media (max-width: 767px) {
	.mobile-menu-button {
		display: block;
	}

	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		border-bottom: 1px solid var(--border-color);
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 1rem 0;
	}

	.nav.active {
		display: flex;
	}

	.nav a,
	.nav .cta {
		padding: 0.75rem 1.5rem;
		width: 100%;
		border-radius: 0;
	}

	.nav a.active::after,
	.nav a[aria-current="page"]::after {
		display: none;
	}
}

/* ---------- main / generic layout ---------- */

.main-content {
	min-height: calc(100vh - 200px);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

.container-narrow {
	max-width: 900px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

.page-header {
	background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
	color: var(--white);
	padding: 4rem 1.5rem 3rem;
	text-align: center;
}

.page-header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.page-header p {
	font-size: 1.125rem;
	opacity: 0.95;
}

@media (max-width: 767px) {
	.page-header {
		padding: 3rem 1rem 2rem;
	}

	.page-header h1 {
		font-size: 1.75rem;
	}

	.page-header p {
		font-size: 1rem;
	}
}

@media (min-width: 768px) {
	.page-header h1 {
		font-size: 3rem;
	}
}

/* ---------- hero (トップ) ---------- */

.hero {
	background: linear-gradient(rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.6)), url('/img/hero.png');
	background-size: cover;
	background-position: center;
	color: var(--white);
	padding: 6rem 1.5rem;
	text-align: center;
	position: relative;
}

.hero-container {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.hero p {
	font-size: 1.25rem;
	opacity: 0.95;
	line-height: 1.7;
}

@media (min-width: 768px) {
	.hero h1 {
		font-size: 3.5rem;
	}
}

/* ---------- トップページ各セクション ---------- */

.section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 1.5rem;
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 3rem;
	color: var(--text-color);
}

.features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.feature-card {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 2rem;
	text-align: center;
	transition: all 0.3s ease;
}

.feature-icon {
	width: 100%;
	max-width: 200px;
	height: 200px;
	margin: 0 auto 1.5rem;
	object-fit: cover;
	border-radius: 0.5rem;
	display: block;
}

.feature-card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-color);
}

.feature-card p {
	color: var(--gray-color);
	line-height: 1.7;
}

.intro-section {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 2.5rem;
	margin-bottom: 3rem;
}

.intro-section h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.intro-section p {
	color: var(--text-color);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.intro-section ul {
	list-style: none;
	padding-left: 0;
}

.intro-section li {
	padding-left: 1.5rem;
	position: relative;
	margin-bottom: 0.75rem;
	color: var(--text-color);
	line-height: 1.7;
}

.intro-section li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--primary-color);
	font-weight: 700;
}

.members-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.member-card {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 0;
	transition: all 0.2s ease;
	text-decoration: none;
	color: inherit;
	display: block;
	overflow: hidden;
}

.member-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.member-thumbnail {
	width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.member-card-content {
	padding: 1.5rem;
}

.member-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--primary-color);
}

.member-name {
	color: var(--gray-color);
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.member-excerpt {
	color: var(--text-color);
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cta-button {
	display: inline-block;
	background: var(--primary-color);
	color: var(--white);
	padding: 0.875rem 2rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-align: center;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

.cta-button:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cta-center {
	text-align: center;
}

.testimonials {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.testimonial {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	padding: 1.5rem;
	position: relative;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial::before {
	content: '"';
	position: absolute;
	top: 0.5rem;
	left: 1rem;
	font-size: 3rem;
	color: var(--primary-color);
	opacity: 0.2;
	font-family: Georgia, serif;
	line-height: 1;
}

.testimonial-text {
	color: var(--text-color);
	line-height: 1.7;
	position: relative;
	z-index: 1;
	font-size: 0.9375rem;
}

.testimonial-stats {
	background: var(--white);
	border-radius: 0.5rem;
	padding: 3rem 2rem;
	text-align: center;
	margin-top: 2rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.stat-circle {
	position: relative;
	width: 160px;
	height: 160px;
}

.stat-circle svg {
	transform: rotate(-90deg);
	width: 100%;
	height: 100%;
}

.stat-circle-bg {
	fill: none;
	stroke: #e5e7eb;
	stroke-width: 8;
}

.stat-circle-progress {
	fill: none;
	stroke-width: 8;
	stroke-linecap: round;
	stroke-dasharray: 440;
	stroke-dashoffset: 440;
	transition: stroke-dashoffset 2s ease-out;
}

.stat-circle.animate .stat-circle-progress {
	stroke-dashoffset: 0;
}

.stat-number {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
}

.stat-label {
	color: var(--text-color);
	font-size: 1rem;
	font-weight: 600;
}

.stat-detail {
	color: var(--gray-color);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

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

	.feature-card,
	.member-card,
	.intro-section,
	.testimonial {
		border: none;
		border-radius: 0;
		padding: 1.5rem 1rem;
	}

	.member-card {
		padding: 0;
	}

	.intro-section ul {
		padding-left: 0;
	}

	.intro-section li {
		padding-left: 1.25rem;
		margin-bottom: 0.5rem;
	}

	.features,
	.members-grid,
	.testimonials {
		gap: 0;
	}

	.testimonial {
		padding: 1.5rem 1rem;
	}

	.testimonial::before {
		font-size: 2rem;
	}

	.testimonial-stats {
		padding: 2rem 1rem;
		gap: 2rem;
	}

	.stat-circle {
		width: 140px;
		height: 140px;
	}

	.stat-number {
		font-size: 1.75rem;
	}

	.stat-label {
		font-size: 0.9375rem;
	}
}

@media (min-width: 768px) {
	.features {
		grid-template-columns: repeat(3, 1fr);
	}

	.members-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.testimonials {
		grid-template-columns: repeat(2, 1fr);
	}

	.testimonial-stats {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

@media (min-width: 1024px) {
	.members-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.testimonials {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- メンバー一覧（自動生成ページ） ---------- */

.members-count {
	color: var(--gray-color);
	font-size: 0.875rem;
	margin-bottom: 2rem;
	text-align: center;
}

.articles-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.article-card,
.event-card {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 0;
	transition: all 0.2s ease;
	text-decoration: none;
	color: inherit;
	display: block;
	overflow: hidden;
}

.article-card:hover,
.event-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.article-thumbnail {
	width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.article-thumbnail.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
	color: var(--white);
	font-size: 3rem;
	font-weight: 700;
}

.card-body,
.article-card-content {
	padding: 1.5rem;
}

.article-title,
.event-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--primary-color);
}

.article-name,
.article-activity,
.event-meta {
	color: var(--gray-color);
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.article-excerpt,
.event-excerpt {
	color: var(--text-color);
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-date,
.event-date {
	color: var(--gray-color);
	font-size: 0.875rem;
	margin-top: 1rem;
}

.tag {
	display: inline-block;
	background: #eef2ff;
	color: var(--primary-dark);
	border-radius: 999px;
	padding: 0.15rem 0.7rem;
	font-size: 0.75rem;
	margin: 0 0.35rem 0.35rem 0;
}

.no-articles,
.empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--gray-color);
}

@media (max-width: 767px) {
	.articles-grid {
		gap: 0;
	}

	.article-card,
	.event-card {
		border: none;
		border-radius: 0;
	}
}

@media (min-width: 768px) {
	.articles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.articles-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* grid ヘルパー（トップ・イベント一覧で使用） */

.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 2rem;
}

/* ---------- 記事詳細（自動生成ページ） ---------- */

.detail-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

@media (min-width: 768px) {
	.detail-container {
		padding: 3rem 2rem;
	}
}

.back-link {
	display: inline-block;
	color: var(--primary-color);
	text-decoration: none;
	margin-bottom: 2rem;
	font-size: 0.875rem;
}

.back-link:hover {
	text-decoration: underline;
}

article.detail {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 2.5rem;
}

@media (min-width: 768px) {
	article.detail {
		padding: 3rem;
	}
}

.article-meta {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.article-meta .article-name {
	color: var(--gray-color);
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

.article-meta .article-date {
	color: var(--gray-color);
	font-size: 0.875rem;
	margin-top: 0;
}

.detail-thumbnail {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 500px;
	object-fit: cover;
	object-position: center top;
	margin: 1.5rem 0;
	display: block;
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: opacity 0.2s;
}

.detail-thumbnail:hover {
	opacity: 0.9;
}

.article-content {
	font-size: 1.0625rem;
}

.article-content h1 {
	font-size: 2rem;
	font-weight: 700;
	margin: 2rem 0 1rem;
	line-height: 1.3;
	color: var(--text-color);
}

.article-content h1:first-child {
	margin-top: 0;
}

.article-content h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 2rem 0 1rem;
	line-height: 1.4;
	color: var(--text-color);
}

.article-content h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 1.5rem 0 0.75rem;
	color: var(--text-color);
}

.article-content p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
}

.article-content ul,
.article-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.article-content li {
	margin-bottom: 0.5rem;
	line-height: 1.8;
}

.article-content a {
	color: var(--primary-color);
	text-decoration: none;
}

.article-content a:hover {
	text-decoration: underline;
}

.article-content blockquote {
	border-left: 4px solid var(--primary-color);
	padding-left: 1rem;
	margin: 1.5rem 0;
	color: var(--gray-color);
	font-style: italic;
}

.article-gallery {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.gallery-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: opacity 0.2s;
}

.gallery-image:hover {
	opacity: 0.85;
}

.lightbox-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.85);
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.lightbox-overlay.active {
	display: flex;
}

.lightbox-overlay img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 0.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
	.detail-container {
		padding: 1.5rem 0;
	}

	article.detail {
		border: none;
		border-radius: 0;
		padding: 1.5rem 1rem;
	}

	.article-content ul,
	.article-content ol {
		padding-left: 1.25rem;
	}
}

/* ---------- about ページ ---------- */

.page-section {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 2.5rem;
	margin-bottom: 2rem;
}

.page-section h2 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--text-color);
}

.page-section h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.page-section h3:first-of-type {
	margin-top: 0;
}

.page-section p {
	color: var(--text-color);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.page-section ul,
.page-section ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.page-section li {
	color: var(--text-color);
	line-height: 1.8;
	margin-bottom: 0.75rem;
}

.container-900 {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

.flow-steps {
	display: grid;
	gap: 1.5rem;
	margin: 2rem 0;
}

.step {
	background: var(--bg-color);
	border-radius: 0.5rem;
	padding: 1.5rem;
	display: flex;
	gap: 1rem;
	align-items: center;
}

.step-number {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--primary-color);
	color: var(--white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.step-content h4 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-color);
}

.step-content p {
	color: var(--gray-color);
	line-height: 1.7;
	margin: 0;
}

.step-image {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 0.5rem;
	margin-right: 1rem;
	flex-shrink: 0;
}

.example-box {
	background: var(--bg-color);
	border-left: 4px solid var(--primary-color);
	padding: 1.5rem;
	border-radius: 0.25rem;
	margin: 1.5rem 0;
}

.example-box h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: var(--text-color);
}

.example-box p {
	color: var(--gray-color);
	font-size: 0.9375rem;
	line-height: 1.7;
	margin-bottom: 0.5rem;
}

.example-box ul {
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.example-box li {
	color: var(--gray-color);
	font-size: 0.9375rem;
}

.example-image {
	width: 100%;
	max-width: 600px;
	margin: 1.5rem auto;
	display: block;
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.price-table th,
.price-table td {
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

.price-table th {
	background: var(--bg-color);
	font-weight: 600;
	color: var(--text-color);
}

.price-table td {
	color: var(--text-color);
}

.price-table tr:last-child td {
	border-bottom: none;
}

.membership-grid {
	display: grid;
	gap: 1.5rem;
	margin: 2rem 0;
}

.membership-card {
	background: var(--bg-color);
	border-radius: 0.5rem;
	padding: 2rem;
}

.membership-card h4 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.membership-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.membership-card li {
	padding-left: 1.5rem;
	position: relative;
	margin-bottom: 0.75rem;
}

.membership-card li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--primary-color);
	font-weight: 700;
}

@media (max-width: 767px) {
	.container-900 {
		padding: 2rem 0;
	}

	.page-section {
		border: none;
		border-radius: 0;
		padding: 1.5rem 1rem;
		margin-bottom: 0;
	}

	.page-section ul,
	.page-section ol {
		padding-left: 1.25rem;
	}

	.page-section li {
		margin-bottom: 0.5rem;
	}

	.page-section h2 {
		font-size: 1.5rem;
		margin-bottom: 1rem;
	}

	.page-section h3 {
		font-size: 1.125rem;
		margin-top: 1.5rem;
	}

	.step {
		padding: 1rem;
		flex-wrap: wrap;
		border-radius: 0;
	}

	.flow-steps {
		gap: 0;
	}

	.step-image {
		width: 80px;
		height: 80px;
		margin-right: 0.75rem;
	}

	.step-number {
		width: 2rem;
		height: 2rem;
		font-size: 0.875rem;
	}

	.step-content h4 {
		font-size: 1rem;
	}

	.step-content p {
		font-size: 0.875rem;
	}

	.example-box {
		padding: 1rem;
		border-radius: 0;
	}

	.example-box h4 {
		font-size: 0.9375rem;
	}

	.example-box p,
	.example-box li {
		font-size: 0.875rem;
	}

	.price-table th,
	.price-table td {
		padding: 0.75rem 0.5rem;
		font-size: 0.875rem;
	}

	.membership-card {
		padding: 1.5rem 1rem;
		border-radius: 0;
	}

	.membership-grid {
		gap: 0;
	}

	.membership-card h4 {
		font-size: 1.125rem;
	}

	.membership-card li {
		font-size: 0.875rem;
	}
}

@media (min-width: 768px) {
	.membership-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- policy ページ ---------- */

.warning-box {
	background: #fef2f2;
	border-left: 4px solid #dc2626;
	padding: 1.5rem;
	border-radius: 0.25rem;
	margin: 1.5rem 0;
}

.warning-box h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: #dc2626;
}

.warning-box p,
.warning-box li {
	color: #991b1b;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.warning-box ul {
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.info-box {
	background: #eff6ff;
	border-left: 4px solid var(--primary-color);
	padding: 1.5rem;
	border-radius: 0.25rem;
	margin: 1.5rem 0;
}

.info-box h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: var(--primary-color);
}

.info-box p,
.info-box li {
	color: #1e40af;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.info-box ul {
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.policy-grid {
	display: grid;
	gap: 1.5rem;
	margin: 2rem 0;
}

.policy-card {
	background: var(--bg-color);
	border-radius: 0.5rem;
	padding: 2rem;
}

.policy-card h4 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-color);
}

.policy-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.policy-card li {
	padding-left: 1.5rem;
	position: relative;
	margin-bottom: 0.75rem;
}

.policy-card.ng li::before {
	content: '✕';
	position: absolute;
	left: 0;
	color: #dc2626;
	font-weight: 700;
}

.policy-card.conditional li::before {
	content: '△';
	position: absolute;
	left: 0;
	color: #f59e0b;
	font-weight: 700;
}

@media (max-width: 767px) {
	.policy-card {
		padding: 1.5rem 1rem;
		border-radius: 0;
	}

	.policy-card li {
		padding-left: 1.25rem;
		margin-bottom: 0.5rem;
	}

	.warning-box,
	.info-box {
		padding: 1rem;
		border-radius: 0;
	}

	.warning-box ul,
	.info-box ul {
		padding-left: 1.25rem;
	}

	.policy-grid {
		gap: 0;
	}
}

@media (min-width: 768px) {
	.policy-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- buttons ---------- */

.btn-primary,
button.btn-primary {
	display: inline-block;
	background: var(--primary-color);
	color: var(--white);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 0.375rem;
	font-weight: 600;
	font-size: 1rem;
	transition: background 0.15s ease;
}

.btn-primary:hover {
	background: var(--primary-dark);
	color: var(--white);
	text-decoration: none;
}

.btn-secondary {
	display: inline-block;
	background: var(--white);
	color: var(--primary-color);
	border: 1px solid var(--primary-color);
	padding: 0.7rem 1.4rem;
	border-radius: 0.375rem;
	font-weight: 600;
	transition: background 0.15s ease;
}

.btn-secondary:hover {
	background: #eef2ff;
	text-decoration: none;
}

.btn-danger {
	display: inline-block;
	background: var(--white);
	color: #b91c1c;
	border: 1px solid #b91c1c;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	font-weight: 600;
	font-size: 0.875rem;
	transition: background 0.15s ease;
}

.btn-danger:hover {
	background: #fef2f2;
}

/* ---------- forms（会員機能） ---------- */

form.stack {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 480px;
}

form.stack label {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-weight: 600;
	font-size: 0.9375rem;
}

form.stack input,
form.stack textarea,
form.stack select {
	font: inherit;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 0.375rem;
	color: var(--text-color);
}

form.stack input:focus,
form.stack textarea:focus,
form.stack select:focus {
	outline: 2px solid var(--accent-1);
	outline-offset: 1px;
}

form .hint,
.hint {
	color: var(--gray-color);
	font-size: 0.8125rem;
	font-weight: 400;
	margin: 0;
}

[data-42ws-error] {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 0.375rem;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
}

[data-42ws-success] {
	color: #166534;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 0.375rem;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
}

/* ---------- mypage ---------- */

.mypage-nav {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.table-scroll {
	overflow-x: auto;
}

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

.entry-table th,
.entry-table td {
	text-align: left;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border-color);
	font-size: 0.9375rem;
}

.entry-table th {
	color: var(--gray-color);
	font-weight: 600;
	font-size: 0.8125rem;
}

/* ---------- footer ---------- */

.site-footer {
	background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
	border-top: none;
	margin-top: 4rem;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1.5rem 2rem;
}

.footer-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-section h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #ffffff;
}

.footer-section p,
.footer-section a {
	color: #e0e7ff;
	font-size: 0.875rem;
	line-height: 1.8;
}

.footer-section a:hover {
	color: #ffffff;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.footer-bottom {
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	color: #c7d2fe;
	font-size: 0.875rem;
}

@media (max-width: 767px) {
	.site-footer {
		margin-top: 2rem;
	}

	.footer-container {
		padding: 2rem 1rem 1.5rem;
	}

	.footer-content {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem 1rem;
		margin-bottom: 1.5rem;
	}

	.footer-section:first-child {
		grid-column: 1 / -1;
	}

	.footer-section h3 {
		font-size: 0.9375rem;
		margin-bottom: 0.75rem;
	}

	.footer-section p,
	.footer-section a {
		font-size: 0.8125rem;
		line-height: 1.6;
	}

	.footer-links {
		gap: 0.375rem;
	}

	.footer-bottom {
		padding-top: 1.5rem;
		font-size: 0.8125rem;
	}
}

@media (min-width: 768px) {
	.footer-content {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

/* ---------- pager（イベント詳細のページ送り） ---------- */

.article-meta h1 {
	font-size: 1.875rem;
	margin: 0 0 0.5rem;
}

.pager {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.pager a {
	color: var(--primary-color);
	font-size: 0.9375rem;
}

.pager a:hover {
	text-decoration: underline;
}

/* ---------- 記事下のプロフィール表示 ---------- */

.member-profile {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
}

.member-profile h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-color);
}

.member-profile-links {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
}

.sns-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--border-color);
	border-radius: 50%;
	color: var(--gray-color);
	transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sns-icon svg {
	width: 1.3rem;
	height: 1.3rem;
	fill: currentColor;
}

.sns-icon:hover {
	color: var(--primary-color);
	border-color: var(--primary-color);
	transform: translateY(-1px);
}

/* ---------- SNS入力行（プロフィール編集） ---------- */

.sns-input-row {
	display: flex;
	gap: 0.75rem;
}

.sns-input-row .sns-value {
	flex: 1;
}

.sns-input-row .sns-vis {
	width: 8.5rem;
	flex-shrink: 0;
}

/* ---------- modal ---------- */

.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(17, 24, 39, 0.5);
	justify-content: center;
	align-items: flex-start;
	padding: 3rem 1rem;
	overflow-y: auto;
}

.modal-overlay.active {
	display: flex;
}

.modal {
	background: var(--white);
	border-radius: 0.5rem;
	padding: 2rem;
	width: 100%;
	max-width: 560px;
	position: relative;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.modal h2 {
	margin: 0 0 1.5rem;
	font-size: 1.25rem;
}

.modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--gray-color);
	padding: 0.25rem 0.5rem;
}

.modal-close:hover {
	color: var(--text-color);
}

.toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 2rem 0 1rem;
}

.toolbar h2 {
	margin: 0;
}

/* ---------- utility ---------- */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.notice {
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
	color: var(--primary-dark);
	font-size: 0.9375rem;
	margin-bottom: 1.5rem;
}

/* 記事ギャラリー: サブ画像が無い記事では枠ごと非表示（2026-08-18 サブ画像移行） */
.article-gallery:not(:has(.gallery-image)) {
	display: none;
}

/* 運営メニューのドロップダウン（site.js が生成。2026-08-19） */
.nav-dropdown {
	position: relative;
	display: inline-block;
}
.nav-sub {
	display: none;
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 50%;
	transform: translateX(-50%);
	background: var(--white);
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
	min-width: 12rem;
	padding: 0.4rem;
	z-index: 500;
}
.nav-dropdown.open .nav-sub {
	display: block;
}
.nav-sub a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 0.375rem;
	white-space: nowrap;
}
.nav-sub a:hover {
	background: #f3f4f6;
}
/* ハンバーガーメニュー内ではインライン展開 */
@media (max-width: 768px) {
	.nav-dropdown {
		display: block;
	}
	.nav-sub {
		position: static;
		transform: none;
		border: none;
		box-shadow: none;
		padding: 0 0 0 1rem;
		min-width: 0;
	}
}
/* サブメニュー内では現在ページの下線装飾（::after）を使わない — 隣の項目に重なるため */
.nav-sub a.active::after,
.nav-sub a[aria-current="page"]::after {
	display: none;
}
.nav-sub a[aria-current="page"] {
	background: #eef0fb;
}

/* 限定公開（本人確認用）の記事ページに出す帯 */
.review-banner { margin: 0 0 1.25rem; padding: .75rem 1rem; background: #fef3c7; color: #92400e; border-radius: 8px; font-size: .9375rem; line-height: 1.6; }

/* 処理中の表示（待ち時間には必ず動きのある印を出す。静止テキストだけにしない） */
.spin-icon { display:inline-block; box-sizing:border-box; width:12px; height:12px; margin-right:.4rem; vertical-align:-1px; border:2px solid #c7d2fe; border-top-color:#4f46e5; border-radius:50%; animation: spin .8s linear infinite; }
.loading-row td, .loading-text { color:#666; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin-icon { animation: none; border-top-color:#c7d2fe; } }
