/* ========== 基本設定 ========== */
.hidden {
	display: none;
}

html {
	font-size: 16px;
}

/* ========== アコーディオン基本スタイル ========== */
.accordion-item {
	margin-bottom: 2.5rem;
	border-radius: 0.75rem;
	overflow: hidden;
	transition: all 0.3s ease;
	background-color: #f9fafb50;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.accordion-button {
	width: 100%;
	text-align: left;
	padding: 1.75rem 3rem 1.75rem 1.5rem;
	font-size: 1.25rem;
	color: #1f2937;
	background-color: #f3f4f670;
	cursor: pointer;
	display: flex;
	transition: all 0.3s ease;
	position: relative;
	border: 1px solid #ffa5a5;
	min-height: 60px;
	touch-action: manipulation;
	border-radius: 0.75rem;
}

.accordion-button:focus {
	box-shadow: 0 0 0 4px #ffa5a530;
}

.accordion-button:hover {
	background-color: #f3f4f670;
}

.accordion-button.active {
	background-color: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	border-left: 4px solid #ffa5a5;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.accordion-button::after {
	content: '+';
	position: absolute;
	top: 50%;
	right: 1rem;
	transform: translateY(-50%);
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 4px;
	background-color: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: #4b5563;
	transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-button.active::after {
	content: '−';
	background-color: #ffa5a530;
	color: #1f2937;
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	background-color: #ffffff80;
}

.accordion-content-inner {
	padding: 1.5rem 1.5rem 2rem;
	border-top: 1px solid #e5e7eb70;
	font-size: 1rem;
	line-height: 1.75;
}

/* ========== 特別なセクション (payment, student-info, kiss) ========== */
#payment .accordion-item,
#student-info .accordion-item,
#kiss .accordion-item {
	border-radius: 0 !important;
}

#payment .accordion-button,
#student-info .accordion-button,
#kiss .accordion-button {
	border: none !important;
	border-radius: 0 !important;
}

#payment .accordion-button.bg-white,
#student-info .accordion-button.bg-white,
#kiss .accordion-button.bg-white {
	border: 4px double #ff3985 !important;
	border-radius: 0 !important;
	box-sizing: border-box !important;
	padding: 2rem;
	justify-content: center;
	align-items: center;
}

#payment .accordion-button.bg-white.active,
#student-info .accordion-button.bg-white.active,
#kiss .accordion-button.bg-white.active,
#payment .accordion-button.bg-white:hover,
#student-info .accordion-button.bg-white:hover,
#kiss .accordion-button.bg-white:hover {
	background-color: #fecdd380 !important;
	color: #374151 !important;
}

/* ========== アニメーション ========== */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fadeIn {
	animation: fadeIn 0.3s ease-out forwards;
}

/* ========== ユーティリティ ========== */
.text-red-600 {
	color: #dc2626;
}

.hover\:underline:hover {
	text-decoration: underline;
}

.transition-colors {
	transition-property: background-color, border-color, color, fill, stroke;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

/* ========== モバイル対応 (768px以下) ========== */
@media (max-width: 768px) {
	html {
		font-size: 18px;
		overflow-x: hidden;
	}

	body {
		line-height: 1.9;
		overflow-x: hidden;
		max-width: 100vw;
	}

	* {
		max-width: 100%;
		box-sizing: border-box;
	}

	.container {
		padding-left: 1rem;
		padding-right: 1rem;
		max-width: 100vw;
		overflow-x: hidden;
	}

	/* アコーディオンの調整 */
	.accordion-button {
		padding: 2rem 3rem 2rem 1.5rem;
		font-size: 1.1rem;
		min-height: 72px;
	}

	.accordion-content-inner {
		padding: 1.2rem 1.5rem 1.8rem;
		font-size: 1.05rem;
		line-height: 1.9;
	}

	/* 見出しサイズの最適化 */
	.text-heading-main,
	.text-3xl {
		font-size: 1.4rem !important;
		line-height: 1.3 !important;
		margin-bottom: 1rem !important;
	}

	.text-2xl {
		font-size: 1.3rem !important;
		line-height: 1.3 !important;
	}

	.text-xl,
	.text-lg-heading {
		font-size: 1.15rem !important;
		line-height: 1.4 !important;
	}

	.text-lg {
		font-size: 1.1rem !important;
	}

	/* ボタンとフォーム要素 */
	button,
	a[role='button'],
	.btn,
	.btn-primary {
		min-height: 48px;
		padding: 0.875rem 1.25rem;
		font-size: 1rem;
		touch-action: manipulation;
	}

	.btn {
		width: 100%;
		padding: 1rem 1.5rem;
		font-size: 1.05rem;
		margin-bottom: 0.75rem;
		min-height: 48px;
	}

	input[type='text'],
	input[type='password'],
	select,
	textarea {
		font-size: 1.1rem !important;
		height: 3.5rem !important;
		padding: 1rem !important;
		border-radius: 8px !important;
	}

	/* リンクとテーブル */
	.link-primary,
	.link-pdf-red,
	.link-blue-inline {
		padding: 0.5rem 0.25rem;
		margin: 0.25rem 0;
		display: inline-block;
		min-height: 44px;
		line-height: 1.3;
	}

	a[href$='.pdf'],
	a[target='_blank'] {
		min-height: 48px;
		padding: 0.75rem 1rem;
		display: inline-flex;
		align-items: center;
	}

	table {
		font-size: 0.9rem;
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.cell-basic,
	.cell-header,
	.cell-center-border {
		padding: 0.75rem 0.5rem;
		font-size: 0.9rem;
	}

	/* リストとスペーシング */
	ul, ol {
		padding-left: 1.25rem;
		margin-bottom: 1.5rem;
	}

	li {
		margin-bottom: 1rem;
		line-height: 1.6;
	}

	.mb-section {
		margin-bottom: 2rem;
	}

	.mb-large {
		margin-bottom: 2.5rem;
	}

	.mb-small {
		margin-bottom: 1.5rem;
	}

	/* アイコンと警告 */
	.fas.fa-file-pdf {
		margin-right: 0.5rem;
		font-size: 1.1em;
	}

	.text-warning,
	.text-warning-block {
		font-size: 1.05rem;
		font-weight: 500;
		padding: 0.75rem;
		background-color: #fef2f2;
		border-left: 4px solid #ef4444;
		border-radius: 4px;
		margin: 1rem 0;
	}

	/* スティッキーナビ */
	#stickyNav {
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-right: 1rem;
		scroll-snap-type: x mandatory;
		justify-content: flex-start !important;
		padding-left: 1rem;
	}

	#stickyNav::-webkit-scrollbar {
		display: none;
	}

	#stickyNav button {
		min-height: 48px !important;
		padding: 0.875rem 1rem !important;
		font-size: 0.95rem !important;
		font-weight: 500 !important;
		white-space: nowrap;
		margin: 0 0.375rem;
		border-radius: 8px !important;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
		transition: all 0.2s ease !important;
		min-width: auto;
		line-height: 1.2;
		flex-shrink: 0;
	}

	#stickyNav button:hover,
	#stickyNav button:active {
		transform: translateY(-1px);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
	}

	#stickyNav button:first-child {
		margin-left: 0;
	}

	#stickyNav button:last-child {
		margin-right: 0;
	}

	.sticky {
		padding: 1rem 0 !important;
		background: rgba(255, 255, 255, 0.95) !important;
		backdrop-filter: blur(10px) !important;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
	}

	.whitespace-nowrap {
		white-space: normal !important;
	}
}

/* ========== 小さいモバイル (480px以下) ========== */
@media (max-width: 480px) {
	.accordion-button {
		padding: 1.5rem 3rem 1.5rem 1.3rem;
		font-size: 1.05rem;
		min-height: 68px;
	}

	.accordion-content-inner {
		padding: 1.1rem 1.3rem 1.5rem;
		font-size: 1rem;
	}

	.btn {
		padding: 1rem 1.3rem;
		font-size: 1rem;
		min-height: 48px;
	}
}

/* ========== タブレット (768px-1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
	html {
		font-size: 25px;
	}

	.accordion-button {
		font-size: 1.5rem;
		padding: 1.5rem 3rem 1.5rem 2rem;
	}

	.accordion-content-inner {
		font-size: 1.125rem;
		padding: 1.5rem 2rem 2rem;
	}

	#stickyNav button {
		padding: 0.75rem 1.25rem !important;
		font-size: 0.9rem !important;
		margin: 0 0.25rem;
	}

	/* タブレット用のトップバー調整 */
	nav .flex.justify-between {
		flex-direction: column;
		gap: 0.5rem;
	}

	nav .flex.space-x-6 {
		justify-content: space-between;
		width: 100%;
	}
}

/* ========== デスクトップ (1024px以上) ========== */
@media (min-width: 1024px) {
	.accordion-button {
		font-size: 1.5rem;
		padding: 1.5rem 3rem 1.5rem 2rem;
	}

	.accordion-content-inner {
		font-size: 1.125rem;
		padding: 1.5rem 2rem 2rem;
	}

	/* デスクトップ用のトップバー調整 */
	nav .flex.justify-between {
		align-items: center;
	}

	nav .flex.space-x-6 {
		align-items: center;
	}
}