/*
Theme Name: Sapporo Tenjijo
Description: Arkhe child theme for Sapporo Tenjijo.
Template: arkhe
Version: 1.0.0
Text Domain: sapporo-tenjijo
*/

@import url('https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@400;700&display=swap');

body {
	font-family: "LINE Seed JP", Hiragino Kaku Gothic Pro, "ヒラギノ角ゴ Pro W3", メイリオ, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
	color: #010101;
}

/* themes styles override*/
:where(figure) {
	margin: 0;
}
.l-container {
	max-width: none;
}
.l-header__center {
	padding: 1em 0;
}
.p-drawer {
	background-color: #2674DA;
}
.p-fixBtnWrap {
	right: 2%;
	bottom: 9%;
}
.c-fixBtn {
	opacity: 1;
	border: solid 1px #ffffff;
	border-radius: 100em;
	background-color: #2674DA;
	box-shadow: none;
}
.l-header__drawerBtn {
	position: fixed;
	right: 2.6vw;
	border-radius: 100em;
	background-color: #ffffff;
}
[data-drawer-move=fade][data-drawer=opened] .l-header__drawerBtn {
	background-color: transparent;
}
.c-iconBtn__icon {
	width: 26px;
	height: 26px;
}
.c-gnav {
	justify-content: end;
	gap: .1em;
}
.c-gnav__li {
	height: auto;
	margin-left: 5%;
}
.c-gnav__li > .c-gnav__a {
	height: auto;
	padding: .5em 1em;
	border: solid 1px #2674DA;
	border-radius: .3em;
	background-color: #ffffff;
	transition: background-color .3s ease-out, color .3s ease-out;
}
.c-gnav__li > .c-gnav__a:hover {
	background-color: #2674DA;
	color: #ffffff;
}
.c-drawerNav {
	border: none;
}
.c-drawerNav .menu-item {
	margin-bottom: 1em !important;
	border: none;
}
.c-drawerNav .menu-item a {
	padding: 1em;
	border: solid 1px #ffffff;
	border-radius: .3em;
}
.l-footer__foot {
	padding-top: 1.5em;
	padding-bottom: 1.5em;
}
.l-footer__nav {
	gap: 1em;
	margin-bottom: 1.5em;
}
.l-footer__nav li a {
	position: relative;
	padding: .15em .2em;
	text-decoration: none;
}
.l-footer__nav li a::after {
	content: "";
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 1px;
	background-color: #ffffff;
	transition: height .3s ease-out, background-color .3s ease-out, color .3s ease-out;
}
.l-footer__nav li a:hover {
	color: #2674DA;
}
.l-footer__nav li a:hover::after {
	height: 100%;
	background-color: #ffffff;
}
.c-copyright {
	font-size: 11px;
}
.p-topArea {
	--corner-size: 30px;
	--border-size: 2px;
	position: relative;
	clip-path: polygon(
		var(--corner-size) 0,
		100% 0,
		100% calc(100% - var(--corner-size)),
		calc(100% - var(--corner-size)) 100%,
		0 100%,
		0 var(--corner-size)
	);
}
.p-topArea.-noimg {
	min-height: 15vh;
	background-image: linear-gradient(120deg, #1AB3FF 0, #2674DA 50%);
}
.p-topArea__body {
	text-shadow: none;
}
.p-breadcrumb {
	margin: 2em auto 0;
	padding: 0;
}
.c-postThumb__figure {
	border: solid 1px #f1f1f1;
}
.l-content__body {
	margin: 3.2rem auto;
}
.c-pageTitle__main {
	font-size: 1.5rem;
}
.l-main__body {
	max-width: 960px;
	margin: 0 auto;
}
.l-main__body>.c-postContent {
	margin-top: 2rem;
}
.p-entry__content.c-postContent {
	margin-bottom: 2rem;
}
input[type="checkbox"] {
	width: 1.2em;
	height: 1.2em;
	vertical-align: sub;
}
input[type="radio"] {
	width: 1.2em;
	height: 1.2em;
	vertical-align: sub;
}
@media (max-width: 768px) {
	.p-fixBtnWrap {
		right: 2%;
		bottom: 9%;
	}
	.l-header__body {
		padding-right: min(48px,4vw);
		padding-left: min(48px,4vw);
	}
}
@media (min-width: 1000px) {
	:root {
		--ark-drawerW: 0px;
	}
	.l-header__drawerBtn {
		display: none !important;
		width: 0 !important;
	}
}

/* common styles */
.btn a, .btn button, .btn input, .contact-form__submit input {
	display: inline-block;
	position: relative;
	z-index: 1;
	overflow: hidden;
	padding: 10px 20px;
	border: solid 1px #2674DA;
	border-radius: 100em;
	background-image: linear-gradient(
		90deg,
		#ffffff 0%,
		#ffffff 50%,
		#1AB3FF 50%,
		#2674DA 100%
	);
	background-size: 200% 100%;
	background-position: 100% 0;
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	transition: background-position .5s cubic-bezier(.22, 1, .36, 1), color .5s cubic-bezier(.22, 1, .36, 1);
	cursor: pointer;
}
.btn a:hover, .btn button:hover, .btn input:hover, .contact-form__submit input:hover {
	background-position: 0 0;
	color: #2674DA;
}
.btn a.link-invalid {
	border-color: #010101;
	border-radius: 0;
	background-color: transparent;
	background-image: none;
	color: #010101;
	pointer-events: none;
}

/* home */
.home-mv {
	display: flex;
	position: relative;
	background-size: cover;
	background-position: center;
	margin-bottom: 5em;
	aspect-ratio: 16/9;
}
.home-mv__inner {
	position: absolute;
	left: 50%;
	width: 100%;
	transform: translateX(-50%) translateY(40%);
	text-align: center;
}
.home-mv__title {
	color: #ffffff;
	font-weight: 700;
	font-size: clamp(35px, 5.5vw, 80px);
	line-height: 1.35;
	text-shadow:
	-2px 0 0 #2674DA,
	2px 0 0 #2674DA,
	0 -2px 0 #2674DA,
	0 2px 0 #2674DA,
	-2px -2px 0 #2674DA,
	2px -2px 0 #2674DA,
	-2px 2px 0 #2674DA,
	2px 2px 0 #2674DA;
	filter: drop-shadow(0px .07em 0 rgba(38, 116, 218, 1));
	/*text-shadow: 0 2px 12px rgba(38, 116, 218, .7);*/
}
.home-mv__title .title__date {
	margin-top: .5em;
}
.home-mv__title .title__sub {
	display: block;
	margin-top: .3em;
	font-size: min(4vw,40px);
	line-height: 1;
}
@supports (-webkit-text-stroke: 1px #2674DA) {
	.home-mv__title {
		text-shadow: none;
		-webkit-text-stroke: 1px #2674DA;
	}
}
.home-mv__title > .title__date > span {
	font-size: .65em;
}
.home-mv__title .title__date .title__day {
	letter-spacing: -.5em;
}
.home-mv__title .title__date .title__week span:last-of-type {
	letter-spacing: -.5em;
}
.home-news,
.home-content,
.home-contact {
	margin-bottom: 5em;
}
.area__inner {
	width: 100%;
	margin-inline: auto;
}
.area__title {
	margin-bottom: .7em;
	font-weight: 700;
	font-size: 40px;
}
.area__title span {
	margin-left: 1em;
	font-size: 12px;
}
.home-news__list {
	margin: 0;
	padding: 0;
	border-top: solid 1px #f1f1f1;
	list-style: none;
}
.home-news__item .home-news__link {
	display: flex;
	align-items: center;
	gap: 2em;
	position: relative;
	padding: 1.5em 1.5em;
	color: inherit;
	text-decoration: none;
	transition: color .3s ease-out;
}
.home-news__item .home-news__link::after {
	content: "";
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 1px;
	background-color: #f1f1f1;
	transition: height .3s ease-out, background-color .3s ease-out;
}
.home-news__date {
	color: #777777;
	font-size: .8em;
	line-height: 1;
	transition: color .3s ease-out;
}
.home-news__text {
	flex: 1;
}
.home-news__item .home-news__link:hover::after {
	height: 100%;
}
.home-news__item .home-news__link:hover {
	color: #2674DA;
}
.home-news__item .home-news__link:hover .home-news__date {
	color: #2674DA;
}
.home-news__inner .btn {
	margin: 2em auto 0;
	text-align: center;
}
.home-news__empty {
	margin: 0;
}
.home-content__list {
	display: grid;
	gap: 2em;
}
.home-content__item {
	display: grid;
	grid-template-columns: 46% 1fr;
	gap: 4%;
	align-items: center;
	padding: 4%;
	background-color: #f7f7f7;
}
.home-content__image {
	position: relative;
	aspect-ratio: 4 / 3;
}
.home-content__image img {
	width: 100%;
	height: 100%;
	border-radius: 2em;
	object-fit: cover;
}
.home-content__heading, .home-contact__heading {
	margin: 0 0 .3em;
	color: #2674DA;
	font-weight: 700;
}
.home-content__caption, .home-contact__caption {
	margin: 0 0 2.5em;
	font-size: 1.2em;
	text-align: center;
	line-height: 1.5;
}
.home-content .home-content__inner .access-area {
	display: flex;
	flex-direction: column-reverse;
	gap: 0;
}
.home-content .home-content__inner .access-area .home-content__image {
	width: 100%;
	aspect-ratio: 960/293;
	border-radius: 2em;
}
.home-content .home-content__inner .access-area .home-content__body {
	width: 100%;
	margin: 0 auto 3%;
	text-align: center;
}
.home-content .home-content__inner .access-area .home-content__body .home-content__caption {
	margin-bottom: 0;
}
.home-content .home-content__inner .access-area .btn {
	display: none;
}

/* override */
.facility-area.home-content__item {
	grid-template-columns: 100%;
	text-align: center;
}
.facility-area.home-content__item .home-content__heading {
	font-size: 40px;
}
.facility-area .btn-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1em;
	padding: 0;
	list-style: none;
}
.facility-area .btn-list .btn a {
	padding: 16px 20px;
	border-radius: 1em;
	font-size: 20px;
}
.facility-area .home-content__image {
	display: none !important;
}
.home-contact {
	padding: 4%;
	border-radius: 3em;
	background-color: rgba(38,116,218, .08);
}
.home-contact .area__title {
	text-align: center;
}

@media (max-width: 768px) {
	.home-mv {
		align-items: center;
		margin-bottom: 2em;
	}
	.home-mv__inner {
		transform: translateX(-50%) translateY(0);
	}
	.home-mv__title {
		font-size: min(7vw,30px);
	}
	.home-mv__title .title__main {
		font-size: min(8vw,32px);
		line-height: 1.2;
	}
	.home-mv__title .title__main strong {
		display: block;
	}
	.home-mv__title .title__sub {
		margin-top: .5em;
		font-size: min(5vw,17px);
		-webkit-text-stroke: .5px #2674DA;
	}
	.home-news,
	.home-content,
	.home-contact {
		margin-bottom: 3.5em;
	}
	.area__title {
		margin-bottom: .3em;
		font-size: 32px;
	}
	.home-news__item .home-news__link {
		display: block;
		padding: 1.2em 1.2em;
	}
	.home-news__date {
		display: block;
		margin-bottom: .7em;
	}
	.home-content__item {
		grid-template-columns: 1fr;
		gap: .7em;
		padding: 10% 6%;
		text-align: center;
	}
	.home-content__list {
		gap: 1.2em;
	}
	.home-content__heading {
		font-size: 26px;
	}
	.home-content__caption {
		margin-bottom: 1.5em;
	}
	.facility-area .btn-list .btn {
		width: calc((100% - 1em)/2);
	}
	.facility-area .btn-list .btn a {
		width: 100%;
		padding: 16px 18px;
		font-size: clamp(15px,4vw,17.5px);
	}
	.home-content .home-content__inner .access-area {
		display: block;
	}
	.home-content .home-content__inner .access-area .home-content__image {
		margin-bottom: .7em;
		background: url(/wp-content/themes/sapporo-tenjijo/assets/img/visual_access__sp.webp) no-repeat center center / contain;
		aspect-ratio: 975/1800;
	}
	.home-content .home-content__inner .access-area .home-content__image img {
		display: none;
	}
	.home-content .home-content__inner .access-area .home-content__body {
		margin-bottom: 0;
	}
	.facility-area.home-content__item .home-content__heading {
		font-size: 32px;
	}
	.home-contact {
		padding: 10% 6%;
	}
}

/* form */
.contact-form {
	max-width: 760px;
	margin-inline: auto;
}
.contact-form__section {
	margin-top: 32px;
}
.contact-form__heading {
	margin-top: 2.5em;
	margin-bottom: 1.5em;
	padding: .5em 1em;
	background-color: #2674DA;
	color: #ffffff;
	font-weight: 700;
	font-size: 20px;
}
.contact-form__field {
	margin-bottom: 1.5em;
}
.contact-form__label {
	display: flex;
	align-items: center;
	margin-bottom: -.5em;
	font-weight: 700;
	font-size: 1.2em;
}
.contact-form__label span {
	margin-left: 1em;
	padding: .3em .5em;
	background-color: #e13333;
	color: #ffffff;
	font-size: .65em;
	line-height: 1;
}
.contact-form__input,
.contact-form__select,
.contact-form__textarea {
	width: 100%;
	padding: 1em;
	border: solid 1px #010101;
	border-radius: 4px;
	background: #ffffff;
	color: #010101;
	font: inherit;
}
.contact-form__textarea {
	min-height: 160px;
}
.wpcf7-list-item {
	margin: 0;
}
.contact-form__radio .wpcf7-list-item {
	margin: 0 20px 8px 0;
}
.wpcf7-not-valid-tip {
	margin-top: .5em;
}
.wpcf7-spinner {
	display: block;
	position: absolute;
	top: 12px;
	right: 0;
	left: 8em;
	z-index: 1;
	opacity: 1;
	margin: 0 auto;
	background-color: #ffffff;
}
.wpcf7-spinner::before {
	background-color: #2674DA;
}
.contact-form__turnstile {
	margin: 2em auto;
	text-align: center;
}
.contact-form__privacy {
	margin-top: 2em;
	text-align: center;
}
.contact-form__submit {
	position: relative;
	margin-top: 2em;
	text-align: center;
}
.contact-form__button {
	min-width: 180px;
	padding: 12px 28px;
	background: #2674DA;
	color: #ffffff;
	font-weight: 700;
	cursor: pointer;
}
.contact-form__turnstile {
	margin: 24px 0 16px;
}
.contact-form__turnstile .cf-turnstile {
	margin-inline: auto;
}
.wpcf7 form .wpcf7-response-output {
	width: 100%;
	max-width: 600px;
	margin: 2em auto;
	padding: 1em;
	border-color: #e13333;
	background-color: #ffffff;
	color: #e13333;
}
.wpcf7 form.sent .wpcf7-response-output {
	width: 100%;
	max-width: 600px;
	margin: 2em auto;
	padding: 1em;
	border-color: #2674DA;
	background-color: #ffffff;
	color: #2674DA;
}

/* news */
.news-archive,
.news-single {
	padding: 56px 0 80px;
}
.news-archive__inner,
.news-single__inner {
	width: min(100% - 48px, 960px);
	margin-inline: auto;
}
.news-archive__header {
	margin-bottom: 40px;
}
.news-archive__title,
.news-single__title {
	margin: 0;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0;
}
.news-archive__title {
	font-size: clamp(30px, 4vw, 42px);
}
.news-single__article,
.news-related {
	max-width: 820px;
	margin-inline: auto;
}
.news-single__header {
	margin-bottom: 56px;
}
.news-single__title {
	margin-bottom: 18px;
	font-size: clamp(30px, 4vw, 42px);
}
.news-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: center;
	color: #777777;
	font-size: 14px;
	line-height: 1.6;
}
.news-single__date,
.news-single__category {
	display: inline-flex;
	align-items: center;
}
.news-single__content {
	font-size: 16px;
	line-height: 1.95;
}
.news-single__content > *:first-child {
	margin-top: 0;
}
.news-single__content > *:last-child {
	margin-bottom: 0;
}
.news-single__content p {
	margin: 0 0 1.7em;
}
.news-single__content h2 {
	margin: 2.5em 0 1em;
	padding-bottom: 10px;
	border-bottom: solid 1px #f1f1f1;
	font-size: 25px;
	line-height: 1.5;
}
.news-single__content h3 {
	margin: 2em 0 1em;
	font-size: 21px;
	line-height: 1.5;
}
.news-single__content ul,
.news-single__content ol {
	margin: 0 0 1.7em;
	padding-left: 1.4em;
}
.news-list,
.news-related__list {
	margin: 0;
	padding: 0;
	border-top: solid 1px #f1f1f1;
	list-style: none;
}
.news-list__item,
.news-related__item {
	border-bottom: solid 1px #f1f1f1;
}
.news-list__link,
.news-related__link {
	display: flex;
	gap: 28px;
	align-items: baseline;
	padding: 22px 0;
	color: inherit;
	text-decoration: none;
}
.news-list__link:hover .news-list__title,
.news-related__link:hover .news-related__text {
	color: #2674DA;
}
.news-list__date,
.news-related__date {
	flex: 0 0 112px;
	color: #777777;
	font-size: 14px;
}
.news-list__title,
.news-related__text {
	flex: 1;
	line-height: 1.75;
	transition: color .2s ease;
}
.news-archive__pagination {
	margin-top: 44px;
}
.news-archive__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.news-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 6px 12px;
	border: solid 1px #f1f1f1;
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
}
.news-archive__pagination .page-numbers.current,
.news-archive__pagination a.page-numbers:hover {
	border-color: #2674DA;
	background: #2674DA;
	color: #ffffff;
}
.news-archive__empty {
	margin: 0;
}
.news-related {
	margin-top: 72px;
	padding-top: 32px;
	border-top: solid 1px #f1f1f1;
}
.news-related__title {
	margin: 0 0 20px;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.5;
}
@media (max-width: 768px) {
	.news-archive,
	.news-single {
		padding: 44px 0 64px;
	}
	.news-archive__inner,
	.news-single__inner {
		width: min(100% - 32px, 960px);
	}
	.news-single__header {
		margin-bottom: 40px;
	}
	.news-list__link,
	.news-related__link {
		display: block;
		padding: 18px 0;
	}
	.news-list__date,
	.news-related__date {
		display: block;
		margin-bottom: 6px;
	}
	.news-related {
		margin-top: 56px;
	}
}
