/*
 * 式場ページ専用CSS(page-templates/template-hall.php)
 * 見出し / 写真ギャラリー / 基本情報・アクセス・設備 / 特徴 / CTA の余白 / 末尾 h1。
 * 式場カード・声カルーセル・お知らせカードはトップ用 home.css を共用する。
 */

.ns-hallpage {
	overflow-x: clip;
}

/* ------------------------------------------------------------------
 * 見出し + バナー + ギャラリー
 * ------------------------------------------------------------------ */

.ns-hall__first {
	padding-bottom: 50px;
}

.ns-hall__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 15px;
}

.ns-hall__head--sub {
	display: block;
	padding-top: 40px;
}

.ns-hall__lead {
	display: flex;
	align-items: flex-end;
	gap: 0 30px;
	margin-right: auto;
}

.ns-hall__ttl {
	position: relative;
	padding-left: 20px;
	color: #333333;
	font-family: var(--fh-sans);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.7;
	text-align: left;
}

.ns-hall__bar {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: var(--fh-navy);
}

.ns-hall__open {
	color: var(--fh-red);
	font-size: 43px;
	font-weight: 700;
	line-height: 1.7;
}

.ns-hall__bnr {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.ns-hall__bnr img {
	height: 66px;
	width: auto;
}

.ns-gallery {
	position: relative;
}

.ns-gallery__main {
	position: relative;
}

.ns-gallery .ns-gallery__track {
	position: relative;
	display: flex;
	gap: 11px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-inline: calc((100% - 808px) / 2);
	scroll-padding-inline: calc((100% - 808px) / 2);
}

.ns-gallery .ns-gallery__track::-webkit-scrollbar {
	display: none;
}

.ns-gallery__slide {
	flex: 0 0 808px;
	scroll-snap-align: center;
	line-height: 0;
	opacity: 0.4;
	transition: opacity 0.3s ease;
}

.ns-gallery__slide.is-active {
	opacity: 1;
}

.ns-gallery__slide img {
	width: 808px;
	height: 539px;
	object-fit: cover;
}

.ns-gallery__arrow {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-top: -22px;
	padding: 0;
	background: rgba(150, 150, 255, 0.9);
	border-radius: 50%;
	color: #ffffff;
}

.ns-gallery__prev {
	left: calc((100% - 808px) / 2 - 38px);
}

.ns-gallery__next {
	right: calc((100% - 808px) / 2 - 38px);
}

.ns-gallery .ns-gallery__thumbs {
	display: flex;
	gap: 8px;
	padding: 10px 0 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.ns-gallery .ns-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.ns-gallery__thumbs li {
	flex: 0 0 auto;
}

.ns-gallery__thumb {
	display: block;
	padding: 0;
	line-height: 0;
	opacity: 0.4;
	transition: opacity 0.3s ease;
}

.ns-gallery__thumb.is-active {
	opacity: 1;
}

.ns-gallery__thumb img {
	width: 155.5px;
	height: 103.66px;
	object-fit: cover;
}

/* ------------------------------------------------------------------
 * 基本情報 / アクセス / 設備
 * ------------------------------------------------------------------ */

.ns-hall__detail {
	padding-bottom: 15px;
}

.ns-hall__info {
	margin-bottom: 20px;
	padding-top: 40px;
	background: #ffffff;
	border-top: 1px solid #eeeeee;
}

.ns-hall__subttl {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 10px;
	color: #333333;
	font-family: var(--fh-sans);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.7;
}

.ns-hall__ico {
	flex: 0 0 auto;
	color: var(--fh-navy);
}

.ns-hall__box {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px;
	padding: 30px;
	background: #fafafa;
	border-radius: 5px;
}

.ns-hall__rows {
	flex: 1 1 auto;
	min-width: 0;
}

.ns-hall__row {
	display: flex;
	padding: 15px 0;
	border-bottom: 1px solid #dddddd;
}

.ns-hall__row dt {
	flex: 0 0 30%;
	font-weight: 700;
}

.ns-hall__row dd {
	flex: 1 1 auto;
	min-width: 0;
}

.ns-hall__row dd a {
	color: #333333;
	text-decoration: none;
}

.ns-hall__row dd a.ns-hall__map {
	display: inline-block;
	padding: 0 10px;
	background: var(--fh-navy);
	border-radius: 4px;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.7;
}

.ns-hall__access {
	flex: 0 0 496px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.ns-hall__access li {
	width: 100%;
	padding: 11px 0;
}

.ns-hall__access-ttl {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid #cccccc;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.7;
}

.ns-hall__access-txt {
	line-height: 1.7;
}

.ns-hall__fac {
	margin-top: 20px;
}

.ns-hall__faclist {
	display: grid;
	grid-template-columns: repeat(3, 23fr 10fr);
}

.ns-hall__faclist dt {
	padding: 5px 0;
	background: #eef2f7;
	border: 1px solid #eeeeee;
	border-bottom-color: #ffffff;
	font-weight: 500;
	text-align: center;
}

.ns-hall__faclist dt span {
	display: inline-block;
	margin-left: 8px;
	font-size: 13px;
}

.ns-hall__faclist dd {
	display: grid;
	align-items: center;
	border: 1px solid #eeeeee;
	text-align: center;
}

/* ------------------------------------------------------------------
 * 特徴
 * ------------------------------------------------------------------ */

.ns-hall__reasons {
	padding: 60px 0 50px;
	background: url(../../img/common/bg01.png);
}

.ns-reasons {
	display: flex;
	justify-content: space-between;
	gap: 30px;
}

.ns-reason {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #ffffff;
	border-radius: 5px;
	overflow: hidden;
}

.ns-reason__img {
	position: relative;
	margin: 0;
	line-height: 0;
}

.ns-reason__img img {
	width: 100%;
	height: auto;
}

.ns-reason__num {
	position: absolute;
	top: 0;
	left: 20px;
	display: flex;
	justify-content: center;
	width: 60px;
	height: 76px;
	padding-top: 12px;
	background: var(--fh-navy);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
	color: #ffffff;
	font-family: var(--fh-num);
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
}

.ns-reason__body {
	padding: 18px;
}

.ns-reason__ttl {
	margin-bottom: 20px;
	color: var(--fh-navy);
	font-family: var(--fh-sans);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
}

/* site.css の注意書きモーダル用 .ns-reason p(15px)と同名なので、ここでは 2 クラスで本文 16px に戻す */
.ns-reasons .ns-reason__body p {
	font-size: 16px;
	line-height: 1.7;
}

.ns-reason__open {
	color: var(--fh-red);
	font-size: 20px;
	font-weight: 600;
}

/* ------------------------------------------------------------------
 * CTA / 式場一覧 / お知らせ / h1
 * ------------------------------------------------------------------ */

.ns-hall__cta {
	padding: 40px 0;
}

.ns-hall__list {
	padding: 30px 0 60px;
	background: url(../../img/common/bg01.png);
}

.ns-news--hall {
	padding: 0 0 30px;
}

.ns-hall__h1 {
	margin-top: 20px;
	padding-bottom: 20px;
}

.ns-hall__h1 h1 {
	width: 60vw;
	color: #7f7e7e;
	font-size: 11px;
	font-weight: 300;
	line-height: 1.6;
	letter-spacing: 0.1em;
}

/* ------------------------------------------------------------------
 * タブレット(1024px 以下)
 * ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.ns-hall__access {
		flex: 1 1 100%;
	}

	.ns-hall__open {
		font-size: 32px;
	}
}

/* ------------------------------------------------------------------
 * スマートフォン(767px 以下)
 * ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.ns-hallpage .ns-inner {
		width: min(1300px, 100% - 30px);
	}

	.ns-hall__first {
		padding-bottom: 0;
	}

	.ns-hall__head {
		flex-wrap: wrap;
		gap: 5px;
		text-align: center;
	}

	.ns-hall__head--sub {
		padding-top: 10px;
	}

	.ns-hall__lead {
		flex: 0 0 100%;
		flex-wrap: wrap;
		gap: 0;
		margin-right: 0;
	}

	.ns-hall__ttl {
		width: 100%;
		font-size: 20px;
		text-align: left;
	}

	.ns-hall__open {
		width: 100%;
		font-size: 21px;
		text-align: center;
	}

	.ns-hall__bnr {
		flex: 0 0 calc(50% - 7px);
	}

	.ns-hall__bnr img {
		width: 100%;
		height: auto;
	}

	.ns-gallery {
		margin-bottom: 20px;
	}

	.ns-gallery .ns-gallery__track {
		padding-inline: calc((100% - 298px) / 2);
		scroll-padding-inline: calc((100% - 298px) / 2);
	}

	.ns-gallery__slide {
		flex-basis: 298px;
	}

	.ns-gallery__slide img {
		width: 298px;
		height: 199px;
	}

	.ns-gallery__arrow {
		width: 30px;
		height: 30px;
		margin-top: -8px;
	}

	.ns-gallery__arrow svg {
		width: 16px;
		height: 16px;
	}

	.ns-gallery__prev {
		left: 0;
	}

	.ns-gallery__next {
		right: 0;
	}

	.ns-gallery__thumb img {
		width: 38px;
		height: 26px;
	}

	.ns-hall__detail {
		padding-bottom: 0;
	}

	.ns-hall__info {
		padding-top: 20px;
	}

	.ns-hall__box {
		display: block;
		padding: 20px;
	}

	.ns-hall__rows {
		margin-bottom: 10px;
	}

	.ns-hall__row {
		display: block;
	}

	.ns-hall__faclist {
		grid-template-columns: repeat(2, 3fr 2fr);
	}

	.ns-hall__reasons {
		padding: 30px 0;
	}

	.ns-reasons {
		flex-direction: column;
	}

	.ns-reason {
		flex: 0 0 auto;
	}

	.ns-reason__open {
		font-size: 18px;
	}

	.ns-hall__cta {
		padding: 20px 0;
	}

	.ns-hall__list {
		padding-bottom: 30px;
	}

	.ns-hall__h1 h1 {
		width: 80vw;
	}
}
