@charset "UTF-8";

/* =========================================================
   Ministry of Land, Infrastructure, Transport and Tourism
   ship equipment inspection page
   /hp/ja/activities/statutory/jg/index.html
========================================================= */

.p-ac-jg {
	--jg-blue: #0065b4;
	--jg-blue-dark: #004b87;
	--jg-blue-soft: #eef6fb;
	--jg-border: #d6e1ea;
}

/* Background-image-free Hero.
   c-hero / c-hero__title / h1 styling remains in common CSS. */
.p-ac-jg .p-ac-jg-hero {
	min-height: 180px;
	display: flex;
	align-items: center;
	background: #eef3f7;
}

.p-ac-jg .p-ac-jg-sectionAnchor {
	scroll-margin-top: 120px;
}

/* In-page navigation follows the current e-Certificate pattern. */
.p-ac-jg .p-ac-jg-anchorNav {
	border-bottom: 1px solid var(--jg-border);
	background: #fff;
}

.p-ac-jg .p-ac-jg-anchorNav .l-container {
	padding-top: 20px;
	padding-bottom: 20px;
}

.p-ac-jg .p-ac-jg-anchorNav__title {
	margin: 0 0 12px;
	font-weight: 700;
}

.p-ac-jg .p-ac-jg-anchorNav__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-ac-jg .p-ac-jg-anchorNav__list a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--jg-border);
	background: #fff;
	color: var(--jg-blue-dark);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.p-ac-jg .p-ac-jg-anchorNav__list a:hover,
.p-ac-jg .p-ac-jg-anchorNav__list a:focus-visible {
	border-color: var(--jg-blue);
	background: var(--jg-blue-soft);
}

.p-ac-jg .p-ac-jg-figure {
	margin: 32px 0;
	text-align: center;
}

.p-ac-jg .p-ac-jg-figure a {
	display: inline-block;
	max-width: 100%;
}

.p-ac-jg .p-ac-jg-figure img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.p-ac-jg .p-ac-jg-figure figcaption {
	margin-top: 10px;
	font-size: .9rem;
}

.p-ac-jg .p-ac-jg-subList,
.p-ac-jg .p-ac-jg-alphaList {
	margin-top: 8px;
}

.p-ac-jg .p-ac-jg-subList {
	list-style: none;
	counter-reset: jg-sub;
}

.p-ac-jg .p-ac-jg-subList > li {
	counter-increment: jg-sub;
}

.p-ac-jg .p-ac-jg-subList > li::marker {
	content: counter(jg-sub, cjk-ideographic) "　";
}

.p-ac-jg .p-ac-jg-alphaList {
	list-style: lower-alpha;
}

.p-ac-jg .p-ac-jg-contactName {
	margin: 0 0 18px;
	font-weight: 700;
}

.p-ac-jg .p-ac-jg-contactList {
	margin: 0;
}

.p-ac-jg .p-ac-jg-contactList > div {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--jg-border);
}

.p-ac-jg .p-ac-jg-contactList dt {
	font-weight: 700;
}

.p-ac-jg .p-ac-jg-contactList dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.p-ac-jg .p-ac-jg-pageTop {
	margin: 40px 0 0;
	text-align: right;
}

@media screen and (max-width: 1023px) {
	.p-ac-jg .p-ac-jg-anchorNav__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 767px) {
	.p-ac-jg .p-ac-jg-hero {
		min-height: 120px;
	}

	.p-ac-jg .p-ac-jg-anchorNav .l-container {
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.p-ac-jg .p-ac-jg-anchorNav__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.p-ac-jg .p-ac-jg-anchorNav__list a {
		min-height: 44px;
		padding: 8px;
		font-size: .9rem;
	}

	.p-ac-jg .p-ac-jg-contactList > div {
		grid-template-columns: 64px minmax(0, 1fr);
	}
}
