/*
Theme Name: JA壱岐市 5187145 Child
Description: JA壱岐市トップ・一覧ページ修正用の子テーマ
Template: ja-iki
Version: 1.0.5
Text Domain: ja-iki-5187145
*/

/* PC固定ナビと開閉メニュー */
.l-tnav__list > li > a > span {
	white-space: nowrap;
}

.l-tnav__list > li > a:focus-visible,
.l-navMenu a:focus-visible {
	outline: 3px solid #f8b62a;
	outline-offset: -4px;
}

@media screen and (min-width: 1153px) {
	.l-tnav__list > li > a {
		padding-right: 2rem;
		padding-left: 2rem;
	}
}

@media screen and (min-width: 769px) and (max-width: 1152px) {
	.l-tnav__list > li > a {
		padding-right: 1.2rem;
		padding-left: 1.2rem;
		font-size: 1.2rem;
	}
}

/* トップページ News */
.p-top__hero-inner > .g-topics {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"title"
		"description"
		"list";
}

.p-top__hero-inner > .g-topics > .g-title {
	grid-area: title;
}

.p-top__hero-inner > .g-topics > .g-description {
	grid-area: description;
	margin-top: 0.6rem;
	color: #666;
	font-size: 1.2rem;
	line-height: 1.5;
}

.p-top__hero-inner > .g-topics > .g-list {
	grid-area: list;
	margin-top: 1.2rem;
}

.p-top__hero-inner > .g-topics > .g-list > li {
	grid-template-columns: 8rem minmax(0, 1fr);
	align-items: start;
}

.p-top__hero-inner > .g-topics > .g-list .g-date,
.p-top__hero-inner > .g-topics > .g-list .g-content {
	line-height: 1.45;
}

.p-top__hero-inner > .g-topics > .g-list .g-content {
	overflow: visible;
	white-space: normal;
	text-overflow: clip;
}

.p-top__hero-inner > .g-topics > .g-list .g-content a {
	display: inline;
	overflow-wrap: anywhere;
}

.p-top__hero-inner > .g-topics > .g-list .g-content a:focus-visible {
	outline: 3px solid #f8b62a;
	outline-offset: 2px;
}

@media screen and (min-width: 769px) {
	.p-top__hero-inner {
		grid-template-columns: minmax(0, 1fr) minmax(44rem, 56rem);
	}
}

@media screen and (max-width: 768px) {
	.p-top__hero-inner > .g-topics {
		padding: 2rem;
	}

	.p-top__hero-inner > .g-topics > .g-list > li {
		grid-template-columns: 7.4rem minmax(0, 1fr);
	}
}

@media screen and (max-width: 390px) {
	.p-top__hero-inner > .g-topics > .g-list > li {
		display: block;
	}

	.p-top__hero-inner > .g-topics > .g-list > li .g-content {
		margin-top: 0.2rem;
	}
}

/* 一覧ページの相互リンク */
.c-sectionTitle__relatedLink {
	margin-top: 1.2rem;
	font-size: 1.4rem;
}

.c-sectionTitle__relatedLink a {
	color: #008f45;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.c-sectionTitle__relatedLink a::after {
	content: " →";
}

.c-sectionTitle__relatedLink a:focus-visible {
	outline: 3px solid #f8b62a;
	outline-offset: 3px;
}

/* アグリプラザ・壱岐めし */
.p-top__commerceGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3.2rem;
	align-items: stretch;
}

.p-top__commerceCard {
	min-width: 0;
	background: #fff;
	border-radius: 3.2rem;
	overflow: hidden;
}

.p-top__commerceCard.-direct {
	display: grid;
	grid-template-columns: minmax(16rem, 42%) minmax(0, 1fr);
	gap: 2.4rem;
	align-items: center;
	padding: 2.4rem;
	color: #222;
}

.p-top__commerceThumb {
	align-self: center;
	aspect-ratio: 4 / 3;
}

.p-top__commerceThumb img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	border-radius: 2rem;
	object-fit: cover;
}

.p-top__commerceBody {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.p-top__commerceLabel {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 1rem;
	color: #008f45;
	font-size: 1.3rem;
	font-weight: 700;
}

.p-top__commerceBody h3 {
	font-size: 2rem;
	line-height: 1.45;
}

.p-top__commerceAddress {
	margin-top: 1.8rem;
	font-size: 1.4rem;
	font-weight: 700;
}

.p-top__commerceInfo {
	margin-top: 1.4rem;
	padding: 0;
	list-style: none;
}

.p-top__commerceInfo li {
	font-size: 1.2rem;
	line-height: 1.55;
	text-align: left;
}

.p-top__commerceInfo li span {
	display: inline-block;
	width: 6.8rem;
	font-weight: 700;
}

.p-top__commerceCard.-online {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.4rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.p-top__commerceCard.-online:hover {
	opacity: 1;
	box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

.p-top__commerceCard.-online:focus-visible {
	outline: 4px solid #f8b62a;
	outline-offset: 4px;
}

.p-top__commerceCard.-online > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1024 / 400;
	object-fit: contain;
}

.p-top__commercePhone {
	display: block;
	margin-top: 1.4rem;
	color: #222;
	font-size: 1.6rem;
	font-weight: 700;
	text-align: right;
}

.p-top__commercePhone > span {
	margin-right: 1rem;
	color: #008f45;
	font-size: 1.2rem;
}

.p-top__commerceGrid + .p-top__banner {
	width: calc((100% - 3.2rem) / 2);
	margin-top: 3.2rem;
	margin-right: 0;
	margin-left: 0;
}

.p-top__banner > a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: none;
	margin: 0;
	padding: 2.4rem;
	background: #fff;
	border-radius: 3.2rem;
	overflow: hidden;
}

.p-top__banner img {
	display: block;
	width: 100%;
	height: auto;
}

.p-top__banner a:focus-visible {
	outline: 4px solid #f8b62a;
	outline-offset: 4px;
}

@media screen and (min-width: 1025px) {
	.p-top__commerceCard,
	.p-top__commerceGrid + .p-top__banner > a {
		min-height: 30rem;
	}
}

@media screen and (max-width: 1024px) {
	.p-top__commerceGrid {
		grid-template-columns: minmax(0, 1fr);
	}

	.p-top__commerceCard {
		max-width: 72rem;
		width: 100%;
		margin: 0 auto;
	}

	.p-top__commerceGrid + .p-top__banner {
		width: 100%;
		max-width: 72rem;
		margin-right: auto;
		margin-left: auto;
	}
}

@media screen and (min-width: 521px) and (max-width: 1024px) {
	.p-top__commerceCard,
	.p-top__commerceGrid + .p-top__banner > a {
		min-height: 35rem;
	}
}

@media screen and (max-width: 520px) {
	.p-top__commerceCard {
		border-radius: 2rem;
	}

	.p-top__banner > a {
		min-height: 0;
		padding: 1.6rem;
		border-radius: 2rem;
	}

	.p-top__commerceCard.-direct {
		display: block;
		padding: 1.6rem;
	}

	.p-top__commerceThumb img {
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.p-top__commerceBody {
		padding: 2rem 0.4rem 0.4rem;
	}

	.p-top__commerceCard.-online {
		padding: 1.6rem;
	}
}
