/* hennyuu.html specific styles */

/* Admission Quota Table Styles */
.hennyuu_table {
	width: 100%;
}

.hennyuu_table thead {
	border: 2px solid #ccc;
}

.hennyuu_table thead tr {
	border-bottom: 2px solid #ccc;
}

.hennyuu_table thead th {
	text-align: center !important;
	border-right: 2px solid #ccc;
}

.hennyuu_table tbody {
	border: 2px solid #ccc;
}

.hennyuu_table tbody tr.school_start {
	border-top: 2px solid #ccc;
}

.hennyuu_table tbody th {
	text-align: center !important;
	border-right: 2px solid #ccc;
}

.hennyuu_table tbody td {
	border-right: 2px solid #ccc;
}

.hennyuu_table tbody td.txt_left {
	text-align: left !important;
}

.hennyuu_table tbody td.txt_center {
	text-align: center !important;
}

.hennyuu_table tbody tr.total_row {
	background: #f5f5f5;
}

.hennyuu_table .border_b_1 {
	border-bottom: 1px solid #ccc;
}

.br_sp {
	display: none;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
	.subpage_content_body {
		font-size: 95%;
	}

	.hennyuu_table {
		font-size: 12px; /* Base size (used for numbers) */
	}

	/* Reduce text-only cells to 80% size */
	.hennyuu_table th,
	.hennyuu_table td.txt_left {
		font-size: 9.6px;
	}

	.hennyuu_table th,
	.hennyuu_table td {
		padding: 4px 1.5px !important; /* 0.8x of previous 5px 2px */
		letter-spacing: -0.02em;
	}

	/* Adjusting min-width for columns if necessary */
	.hennyuu_table th:first-child {
		min-width: 60px;
	}

	.br_sp {
		display: block;
	}
}

/* QR Code and Link Section */
.qr_link_flex {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 40px;
	margin-top: 50px;
}

.qr_txt_box {
	font-size: 110%;
	line-height: 1.6;
	font-weight: bold;
}

.qr_txt_box .url {
	display: block;
	margin-top: 5px;
	word-break: break-all;
}

.qr_img_box {
	flex-shrink: 0;
	width: 150px;
}

.qr_img_box img {
	width: 100%;
	height: auto;
	border: 1px solid #000;
}

@media (max-width: 640px) {
	.qr_link_flex {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.qr_img_box {
		width: 120px;
	}
}

/* =====================================================
   3年次編入学生カード - エディトリアル × アカデミック・モダン
   ===================================================== */

/* Google Fontsのインポート */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
	/* カラーパレット - 学類別 */
	--sendo-primary: #0089B7;
	/* !__old__ */ --sendo-accent: #00a0d1;
	--tourism-primary: #2498A1;
	/* !__old__ */ --tourism-accent: #2db0bd;
	--smart-primary: #516372;
	/* !__old__ */ --smart-accent: #677887;

	/* ニュートラル */
	--text-dark: #1a1a1a;
	--text-medium: #4a4a4a;
	/* !__old__ */ --text-light: #757575;
	--bg-cream: #fafaf8;
	--bg-white: #ffffff;

	/* タイポグラフィ */
	/* !__old__ */ --font-display: 'Playfair Display', serif;
	--font-body: 'Inter', 'Noto Sans JP', sans-serif;
}

/* =====================================================
   グリッドレイアウト - 2列
   ===================================================== */

.students-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	margin: 4rem 0;
}

@media (min-width: 900px) {
	.students-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 3.5rem 3rem;
	}
}

/* =====================================================
   学生カード - 横型レイアウト（左:写真、右:情報）
   ===================================================== */

.student-card {
	position: relative;
	background: var(--bg-white);
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow:
		0 2px 12px rgba(0, 0, 0, 0.04),
		0 1px 3px rgba(0, 0, 0, 0.02);
	display: grid;
	grid-template-columns: 130px 1fr;
	align-items: stretch;
	text-decoration: none;
	color: inherit;
}

/* モバイルでもPC版レイアウトを維持 */
@media (max-width: 640px) {
	.student-card {
		grid-template-columns: 120px 1fr;
		grid-template-rows: auto;
	}
}

.student-card:hover {
	transform: translateY(-8px);
	box-shadow:
		0 24px 48px rgba(0, 0, 0, 0.12),
		0 8px 16px rgba(0, 0, 0, 0.06);
}

/* アクセントバー - 学類別カラー */
.student-card::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: var(--sendo-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card[data-category="tourism"]::before {
	background: var(--tourism-primary);
}

.student-card[data-category="smart"]::before {
	background: var(--smart-primary);
}

.student-card:hover::before {
	transform: scaleX(1);
}

/* =====================================================
   写真エリア - 左側
   ===================================================== */

.student-card__image {
	position: relative;
	overflow: hidden;
	background: var(--bg-cream);
}

/* 画像は高さ自動調整 */

.student-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card:hover .student-card__image img {
	transform: scale(1.08);
}

/* 学類バッジ */
.student-card__badge {
	display: block;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: var(--text-medium);
	margin-bottom: 3px;
}

/* =====================================================
   コンテンツエリア - 右側
   ===================================================== */

.student-card__content {
	padding: 1.6rem 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--bg-white);
	position: relative;
}

@media (max-width: 640px) {
	.student-card__content {
		padding: 1.3rem 1.5rem;
	}
}

/* 情報エリア */
/* !__old__ */
.student-card__info {
	margin-bottom: 1.5rem;
}

.student-card__name {
	font-family: var(--font-body);
	font-size: 24px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0 0 6px 0;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.student-card__school {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	color: var(--text-medium);
	line-height: 1.4;
	margin: 0 0 8px 0;
}

/* ボタンエリア */
.student-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--bg-white);
	background: var(--sendo-primary);
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
	align-self: flex-start;
}

.student-card[data-category="tourism"] .student-card__cta {
	background: var(--tourism-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.student-card[data-category="smart"] .student-card__cta {
	background: var(--smart-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ホバーエフェクト - 拡大と明度変化 */
.student-card:hover .student-card__cta {
	transform: translateX(4px) scale(1.05);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.student-card[data-category="tourism"]:hover .student-card__cta {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.student-card[data-category="smart"]:hover .student-card__cta {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.student-card__cta::after {
	content: '→';
	font-size: 1.1rem;
	transition: transform 0.3s ease;
}

.student-card:hover .student-card__cta::after {
	transform: translateX(4px);
}

/* アニメーション削除 - 即座に表示 */

/* =====================================================
   レスポンシブ調整
   ===================================================== */

@media (max-width: 640px) {
	.students-grid {
		gap: 20px;
	}

	.student-card__name {
		font-size: 24px;
		margin: 0 0 4px 0;
	}

	.student-card__badge {
		font-size: 11px;
		margin-bottom: 2px;
	}

	.student-card__school {
		font-size: 16px;
		line-height: 1.3;
		margin: 0 0 7px 0;
	}

	.student-card__content {
		padding: 1.3rem 1.5rem;
	}

	.student-card__cta {
		font-size: 13px;
		padding: 8px 16px;
	}
}

/* =====================================================
   学生紹介モーダル - UI/UX改善版
   ===================================================== */

/* モーダルオーバーレイのz-index修正 */
.uk-modal {
	z-index: 999999 !important;
}

.uk-modal-dialog {
	z-index: 999999 !important;
}

/* モーダルダイアログの横幅を広く */
.uk-modal-dialog {
	max-width: 1000px !important;
	width: 90% !important;
	z-index: 999999 !important;
	border-radius: 24px !important;
	overflow: hidden;
}

/* モーダル本体 */
.student_modal_content {
	padding: 2rem;
	font-size: 16px;
}

@media (max-width: 959px) {
	.student_modal_content {
		padding: 1.5rem;
	}
}

@media (max-width: 640px) {
	.student_modal_content {
		padding: 1rem;
	}
}

/* 写真表示の修正 */
.student_modal_img {
	width: 100%;
	aspect-ratio: 3/4;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 12px;
	overflow: hidden;
}

.student_modal_img.pic_border {
	border: 1px solid #e0e0e0;
}

/* セクションタイトル */
.student_modal_section_title {
	font-size: 18px;
	font-weight: 700;
	color: #0089B7;
	margin-bottom: 0.75rem;
	line-height: 1.4;
}

/* セクション本文 */
.student_modal_section {
	margin-bottom: 2rem;
}

.student_modal_section:last-child {
	margin-bottom: 0;
}

/* 行間調整 */
.line_height_18 {
	line-height: 1.8;
}

/* モーダル内のすべてのテキストサイズを16px以上に強制 */
.student_modal_content .txt95p,
.student_modal_content .txt90p,
.student_modal_content p,
.student_modal_content .uk-text-muted {
	font-size: 16px !important;
}

.student_modal_content .txt140p,
.student_modal_content h3 {
	font-size: 24px !important;
}

.student_modal_content .uk-text-primary {
	font-size: 16px !important;
}

/* レスポンシブ調整 */
@media (max-width: 959px) {
	.uk-modal-dialog {
		width: 95% !important;
	}

	.student_modal_img {
		max-width: 300px;
		margin: 0 auto 1.5rem;
	}
}

@media (max-width: 640px) {
	.student_modal_section_title {
		font-size: 17px;
	}

	.student_modal_img {
		max-width: 250px;
	}

	.student_modal_content {
		font-size: 16px;
	}
}

/* クローズボタンの改善 */
.uk-modal-close-default {
	z-index: 9999999 !important;
	background: rgba(0, 137, 183, 0.95) !important;
	border-radius: 50% !important;
	width: 48px !important;
	height: 48px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
	transition: all 0.2s ease !important;
	top: 16px !important;
	right: 16px !important;
}

.uk-modal-close-default:hover {
	background: rgba(0, 137, 183, 1) !important;
	transform: scale(1.1) !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

.uk-modal-close-default svg {
	stroke: white !important;
	stroke-width: 2 !important;
	color: white !important;
}

.uk-modal-close-default::before,
.uk-modal-close-default::after {
	background-color: white !important;
}

/* モバイル用下部閉じるボタン */
.modal-close-bottom {
	display: none;
}

@media (max-width: 640px) {
	.uk-modal-close-default {
		width: 44px !important;
		height: 44px !important;
		top: 12px !important;
		right: 12px !important;
	}

	/* モバイル時は下部にも閉じるボタンを表示 */
	.modal-close-bottom {
		display: block;
		width: 100%;
		padding: 16px;
		margin-top: 32px;
		background: #f5f5f5;
		border: 2px solid #e0e0e0;
		border-radius: 12px;
		font-size: 16px;
		font-weight: 600;
		color: #333;
		cursor: pointer;
		transition: all 0.2s ease;
		text-align: center;
	}

	.modal-close-bottom:hover {
		background: #e8e8e8;
		border-color: #ccc;
	}
}
