/* ==========================================================================
   Port State Control (PSC)
   /hp/css/scope/info_service/psc.css
   ========================================================================== */

.p-psc {
	--psc-border: #d8e0e6;
	--psc-border-strong: #c5d1da;
	--psc-bg-light: #eef7fa;
	--psc-bg-card: #fff;
	--psc-text-sub: #555;
	--psc-heading: #0068a9;
}

/* Section */
.p-psc .l-section { padding-top: 56px; padding-bottom: 56px; }
.p-psc .l-section.u-bg-even { background: var(--psc-bg-light); }
.p-psc .c-section__content > :first-child { margin-top: 0; }
.p-psc .c-section__content > :last-child { margin-bottom: 0; }

/* H3: u-marker-none を前提に、青帯を解除して階層を軽くする */
.p-psc .c-section__content h3.u-marker-none {
	margin-top: 36px;
	margin-bottom: 16px;
	padding: 0 0 10px;
	background: none !important;
	border: 0;
	border-bottom: 1px solid var(--psc-border-strong);
	color: var(--psc-heading);
	font-weight: 700;
	line-height: 1.5;
}
.p-psc .c-section__content h3.u-marker-none::before,
.p-psc .c-section__content h3.u-marker-none::after { content: none !important; }
.p-psc .c-section__content h3.u-marker-none:first-child { margin-top: 0; }

/* Service cards */
.p-psc .p-psc__service-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.p-psc .p-psc__service-item {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border: 1px solid var(--psc-border);
	background: var(--psc-bg-card);
}
.p-psc .p-psc__service-item h3.u-marker-none { margin-top: 0; padding-bottom: 12px; }
.p-psc .p-psc__service-item p:last-child { margin-top: auto; padding-top: 8px; }

/* Latest bulletin */
.p-psc .p-psc__latest {
	margin-top: 24px;
	padding: 26px 28px;
	border: 1px solid var(--psc-border);
	background: var(--psc-bg-card);
}
.p-psc .p-psc__latest h3.u-marker-none { margin: 0 0 16px; }

/* Lists */
.p-psc .p-psc__bulletin-list,
.p-psc .p-psc__document-list { margin-top: 20px; }
.p-psc .p-psc__bulletin-list > li,
.p-psc .p-psc__document-list > li { line-height: 1.75; }
.p-psc .p-psc__bulletin-list > li + li { margin-top: 14px; }
.p-psc .p-psc__document-list > li + li { margin-top: 12px; }

/* Store links */
.p-psc .p-psc__store-links {
	margin-top: 24px;
	padding: 24px 28px;
	border: 1px solid var(--psc-border);
	background: var(--psc-bg-card);
}
.p-psc .p-psc__store-links ul { margin-top: 0; margin-bottom: 0; }
.p-psc .p-psc__note {
	margin-top: 16px;
	color: var(--psc-text-sub);
	font-size: .875rem;
	line-height: 1.8;
}

/* MOU table */
.p-psc .p-psc__table-wrap {
	width: 100%;
	margin-top: 20px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.p-psc .p-psc__table-wrap table { min-width: 760px; margin-bottom: 0; }
.p-psc .p-psc__table-wrap th:first-child { width: 34%; }

@media screen and (max-width: 767px) {
	.p-psc .l-section { padding-top: 40px; padding-bottom: 40px; }
	.p-psc .p-psc__service-list { grid-template-columns: 1fr; gap: 16px; }
	.p-psc .p-psc__service-item,
	.p-psc .p-psc__latest,
	.p-psc .p-psc__store-links { padding: 20px; }
	.p-psc .c-section__content h3.u-marker-none {
		margin-top: 30px;
		margin-bottom: 14px;
		padding-bottom: 8px;
	}
}


/* Page anchor navigation
   Visual treatment follows ClassNK e-Certificate.
   ========================================================================== */

.p-psc .p-psc-sectionAnchor {
	scroll-margin-top: 120px;
}

.p-psc .p-psc-anchorNav {
	border-bottom: 1px solid var(--psc-border);
	background: #fff;
}

.p-psc .p-psc-anchorNav .l-container {
	padding-top: 20px;
	padding-bottom: 20px;
}

.p-psc .p-psc-anchorNav__title {
	margin: 0 0 12px;
	font-weight: 700;
}

.p-psc .p-psc-anchorNav__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-psc .p-psc-anchorNav__list a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--psc-border);
	background: #fff;
	color: #004b87;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.p-psc .p-psc-anchorNav__list a:hover,
.p-psc .p-psc-anchorNav__list a:focus-visible {
	border-color: #0065b4;
	background: #eef6fb;
}

/* Bulletin archive accordion
   ========================================================================== */

.p-psc .p-psc-accordion {
	margin-top: 30px;
	border: 1px solid var(--psc-border);
	background: #fff;
}

.p-psc .p-psc-accordion__summary {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 60px;
	padding: 14px 58px 14px 20px;
	color: #004b87;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.p-psc .p-psc-accordion__summary::-webkit-details-marker {
	display: none;
}

.p-psc .p-psc-accordion__summary:hover,
.p-psc .p-psc-accordion__summary:focus-visible {
	background: #eef6fb;
}

.p-psc .p-psc-accordion__icon {
	position: absolute;
	top: 50%;
	right: 22px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
}

.p-psc .p-psc-accordion__icon::before,
.p-psc .p-psc-accordion__icon::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	background: #0065b4;
	content: "";
	transform: translate(-50%, -50%);
	transition: transform .2s ease;
}

.p-psc .p-psc-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.p-psc .p-psc-accordion[open] .p-psc-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.p-psc .p-psc-accordion__content {
	padding: 6px 20px 24px;
	border-top: 1px solid var(--psc-border);
}

.p-psc .p-psc-accordion__content .p-psc__bulletin-list {
	margin-top: 18px;
	margin-bottom: 0;
}

@media screen and (max-width: 1023px) {
	.p-psc .p-psc-anchorNav__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 767px) {
	.p-psc .p-psc-anchorNav .l-container {
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.p-psc .p-psc-anchorNav__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.p-psc .p-psc-anchorNav__list a {
		min-height: 44px;
		padding: 8px;
		font-size: .9rem;
	}

	.p-psc .p-psc-accordion__summary {
		min-height: 56px;
		padding: 14px 52px 14px 14px;
	}

	.p-psc .p-psc-accordion__icon {
		right: 18px;
	}

	.p-psc .p-psc-accordion__content {
		padding: 4px 14px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.p-psc .p-psc-accordion__icon::before,
	.p-psc .p-psc-accordion__icon::after {
		transition: none;
	}
}


/* ARRIVAL CHECKLIST store layout
   ========================================================================== */

.p-psc .p-psc__store-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.p-psc .p-psc__store-item {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}

.p-psc .p-psc__store-item > img {
	flex: 0 0 auto;
}

.p-psc .p-psc__store-item p {
	margin-top: 0;
	margin-bottom: 10px;
}

.p-psc .p-psc__store-item p:last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 767px) {
	.p-psc .p-psc__store-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.p-psc .p-psc__store-item {
		align-items: flex-start;
	}
}


/* ==========================================================================
   PSC Hero
   ClassNK e-Certificate と同じ共通 c-hero / c-hero__title を使用。
   PSCでは背景画像を使用しないため、ページ側ではHeroの高さと背景のみ補完する。
   ========================================================================== */

.p-psc .p-psc-hero {
	min-height: 180px;
	display: flex;
	align-items: center;
	background: #eef3f7;
}

/* 共通Heroのタイトルレイアウト・青背景はhead_common側に任せる。
   PSCでは長いタイトルが折り返せることだけ保証する。 */
.p-psc .p-psc-hero .c-hero__title h1 {
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
}

@media screen and (max-width: 767px) {
	.p-psc .p-psc-hero {
		min-height: 120px;
	}

	.p-psc .p-psc-hero .c-hero__title h1 {
		white-space: normal;
		overflow-wrap: break-word;
		word-break: normal;
	}
}
