/* トップページ（2026-10-29〜）。お知らせのカードは css/news.css */

/* 「すべて見る」（本文の <a class="btn"> を、カードに合わせて小さめの丸ボタンにする） */
.top-info > a.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: fit-content;
	min-width: 240px;
	margin: 0 auto 48px;
	padding: 14px 32px;
	border: 1.5px solid #004ea2;
	border-radius: 999px;
	background: #fff;
	color: #004ea2;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .2s, color .2s, box-shadow .2s;
}
.top-info > a.btn::after {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	background: none;
	float: none;
	margin: 0;
	font-family: inherit;
	transform: rotate(45deg);
	transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) {
	.top-info > a.btn:hover {
		background: #004ea2;
		color: #fff;
		box-shadow: 0 8px 20px rgba(0, 78, 162, .2);
	}
	.top-info > a.btn:hover::after {
		transform: translateX(3px) rotate(45deg);
	}
}
.top-info > a.btn:focus-visible {
	outline: 2px solid #004ea2;
	outline-offset: 3px;
}

/* ==========================================================
 * 見出し（INFORMATION・CONTENTS・LINKS をそろえる。2026-10-29）
 * ========================================================== */
.top-heading,
.top-info > h2 {
	position: static;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 56px 0 24px;
	padding: 0;
	background: none;
	color: #004ea2;
	font-family: 'Open Sans', sans-serif;
	font-size: 30px;
	font-weight: bold;
	line-height: 1.1;
	letter-spacing: .04em;
	text-align: left;
}
.top-heading span,
.top-info > h2 span {
	position: static;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #5b6770;
	font-family: sans-serif;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: .06em;
}
.top-heading span::before,
.top-info > h2 span::before {
	content: "";
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #25b4bb, #004ea2);
}
@media (min-width: 751px) {
	.top-heading,
	.top-info > h2 {
		margin: 80px 0 32px;
		font-size: 36px;
	}
}

/* ==========================================================
 * 事業・サービスのカード（.top-links。画像に文字を焼き込んだ .top-menu の置き換え。2026-10-29）
 * スマホは1列、タブレットは2列、PC は3列
 * ========================================================== */
.top-links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 0 0 56px;
	padding: 0;
	list-style: none;
}
.top-links li {
	margin: 0;
	padding: 0;
}
.top-link {
	display: grid;
	grid-template-columns: 48px 1fr 16px;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 18px 18px 18px 16px;
	border: 1px solid #e6eaed;
	border-radius: 14px;
	background: #fff;
	color: #23303a;
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.top-link::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: 2px;
	border-top: 2px solid #9aa6ae;
	border-right: 2px solid #9aa6ae;
	transform: rotate(45deg);
	transition: transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s;
}
.top-link[target="_blank"]::after {
	width: 12px;
	height: 12px;
	margin: 0;
	border: 0;
	background: #9aa6ae;
	transform: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* style.css の「span に下余白 1em」を打ち消す */
.top-link span,
.top-heading span,
.top-info > h2 span {
	margin: 0;
}
.top-link__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #e3f5f6, #e6eef8);
	color: #004ea2;
}
.top-link__icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.top-link__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.top-link__label {
	color: #1b8d9a;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.4;
}
.top-link__title {
	font-size: 17px;
	font-weight: bold;
	line-height: 1.45;
}
.top-link__desc {
	color: #6c7174;
	font-size: 13px;
	line-height: 1.55;
}
@media (hover: hover) {
	.top-link:hover {
		border-color: transparent;
		box-shadow: 0 12px 28px rgba(0, 30, 60, .12);
		transform: translateY(-2px);
	}
	.top-link:hover .top-link__title {
		color: #004ea2;
	}
	.top-link:not([target="_blank"]):hover::after {
		border-color: #004ea2;
		transform: translateX(3px) rotate(45deg);
	}
	.top-link[target="_blank"]:hover::after {
		background: #004ea2;
	}
}
.top-link:focus-visible {
	outline: 2px solid #004ea2;
	outline-offset: 2px;
}
@media (min-width: 600px) {
	.top-links { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
	.top-links { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.top-link {
		grid-template-columns: 1fr 16px;
		grid-template-rows: auto 1fr;
		align-items: start;
		gap: 14px 12px;
		padding: 22px 22px 24px;
	}
	.top-link__icon { grid-column: 1; grid-row: 1; }
	.top-link::after { grid-column: 2; grid-row: 1; align-self: center; }
	.top-link__body { grid-column: 1 / -1; grid-row: 2; }
}

/* ==========================================================
 * 関連リンク・協賛企業のロゴ（.top-submenu。2026-10-29 整え直し）
 * ========================================================== */
.home .top-submenu {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	max-width: none;
	margin: 0 0 16px;
	padding: 0;
}
.home .top-submenu li {
	width: auto;
	margin: 0;
	border: 1px solid #e6eaed;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s, border-color .2s;
}
.home .top-submenu li a {
	display: grid;
	place-items: center;
	height: 100%;
	padding: 6px;
}
.home .top-submenu li a img {
	width: 100%;
	height: auto;
	object-fit: contain;
}
.home .top-submenu li a:hover img {
	opacity: 1;
}
@media (hover: hover) {
	.home .top-submenu li:hover {
		border-color: transparent;
		box-shadow: 0 8px 20px rgba(0, 30, 60, .1);
	}
}
@media (min-width: 600px) {
	.home .top-submenu { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 900px) {
	.home .top-submenu { grid-template-columns: repeat(4, 1fr); gap: 16px; }
	.home .top-submenu:first-of-type { grid-template-columns: repeat(3, 1fr); }
}

/* 画像つきのカード（協賛の LISTJ。バナー画像をカードの上いっぱいに載せる。2026-10-29） */
.top-link.top-link--image {
	grid-template-columns: 1fr 16px;
	grid-template-rows: auto 1fr;
	align-items: center;
	gap: 14px 12px;
	padding: 0 18px 18px;
	overflow: hidden;
}
.top-link--image .top-link__img {
	position: relative;
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 0 -18px;
	overflow: hidden;
	background: #f3f6f8;
}
/* 写真の左下にロゴ（LISTJ のロゴは白地前提なので白い札に載せる） */
.top-link--image .top-link__img .top-link__logo {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 1;
	width: auto;
	height: 34px;
	aspect-ratio: auto;
	padding: 7px 12px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
	object-fit: contain;
	box-sizing: border-box;
	transform: none !important;
}
.top-link--image .top-link__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1000 / 460;
	object-fit: cover;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.top-link--image .top-link__body {
	grid-column: 1;
	grid-row: 2;
}
.top-link.top-link--image::after {
	grid-column: 2;
	grid-row: 2;
	align-self: center;
}
@media (hover: hover) {
	.top-link--image:hover .top-link__img img {
		transform: scale(1.04);
	}
}
@media (min-width: 900px) {
	.top-link.top-link--image {
		padding: 0 22px 24px;
	}
	.top-link--image .top-link__img {
		margin: 0 -22px;
	}
	.top-link--image .top-link__body {
		grid-column: 1;
	}
}
