/*
Theme Name: 医療法人社団エキクリ
Text Domain: pxlm
Version: 1.0.2
Requires at least: 6.2
Requires PHP: 8.1
Tags: editor-style,block-styles
Description: ピクセリウム株式会社によるテーマ
Author: ピクセリウム株式会社
Author URI: https://pixelium.jp/
Theme URI: https://eki-kuri.com/
*/

html {
	font-size: 16px;
	font-family: var(--wp--preset--font-family--noto-sans-jp);
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--masthead-height) + var(--wp-admin--admin-bar--height));

	@media (width < 767px) {
		scroll-padding-top: 0;
	}
}

body {
	color: var(--wp--preset--color--dark-01);
	font-weight: 400;
	line-height: 1.7;
	font-feature-settings: "palt";
}

table {
	line-height: 1.7;

	td,
	th {
		font-weight: 400;
		vertical-align: middle;
	}
}

p {
	line-height: 1.7;
}

a {
	color: var(--wp--preset--color--dark-01);
	word-break: break-all;
	transition: 0.3s ease;

	&:hover {
		color: var(--wp--preset--color--primary);
	}
}

.visual {
	position: relative;
	height: calc(100svh - var(--masthead-height, 0px) - var(--spfloatmenu-height, 0px) - var(--wp-admin--admin-bar--height, 0px));
	overflow: hidden;
	background-color: var(--wp--preset--color--primary);
	max-height: 600px;

	&.clinic {
		.visual-text {
			position: absolute;
			top: 0;
			left: 0;
			z-index: 1;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 100%;

			.content {
				width: fit-content;

				.primary {
					padding: var(--wp--preset--spacing--50);
					margin-block: 0;
					background-color: var(--wp--preset--color--white);
					text-align: center;
					list-style: none;
					font-weight: 700;
					font-size: var(--wp--preset--font-size--xxxx-large);
					color: var(--wp--preset--color--dark-02);
					line-height: 1.2;

					.clinic-name {
						font-size: var(--wp--preset--font-size--xx-large);

						.oji {
							@media (width < 767px) {
								display: block;
							}
						}
					}

					.open-date {
						font-size: var(--wp--preset--font-size--xxxx-large);
						margin-block-start: 1rem;
						@media (width < 767px) {
							font-size: var(--wp--preset--font-size--xxx-large);
						}
						.large {
							color: var(--wp--preset--color--primary);
							font-size: var(--wp--preset--font-size--xxxxx-large);
							font-family: var(--wp--preset--font-family--google-sans);
							margin-inline: 1rem;
							@media (width < 767px) {
								font-size: var(--wp--preset--font-size--xxxx-large);
								margin-inline: 0.5rem;
							}
						}

						.open {
							@media (width < 767px) {
								display: block;
							}
						}
					}

					@media (width < 767px) {
						letter-spacing: 0.2rem;
						text-indent: 0.2rem;
					}
				}

				.tertiary {
					background-color: yellow;
					text-align: center;
					padding-block: 1rem;
					padding-inline: 1rem;
					font-size: 1.8rem;
					line-height: 1;
					color: color-mix(in srgb, var(--wp--preset--color--primary) 80%, rgb(0, 8, 255) 20%);
					font-weight: 700;
					margin-block: 0;
					@media (767px < width <= 1200px) {
						font-size: 1.6rem;
					}

					@media (375px < width <= 767px) {
						font-size: 1.3rem;
					}

					@media (width <= 375px) {
						font-size: 1.1rem;
					}
				}
			}
		}
	}

	&::after {
		position: absolute;
		bottom: 0;
		left: calc(0% - 50px);
		z-index: 100;
		width: 50px;
		height: 100px;
		background-image: url(images/object_train.svg);
		background-repeat: no-repeat;
		background-position: bottom;
		animation-name: train;
		animation-duration: 20s;
		animation-timing-function: linear;
		animation-delay: 1s;
		animation-iteration-count: infinite;
		animation-fill-mode: backwards;
		content: "";
	}

	@keyframes train {
		0% {
			left: calc(0% - 50px);
		}

		100% {
			left: calc(100% + 50px);
		}
	}
}

.swiper-visual-clinic{
	width: 100%;
	height: 100%;

	.swiper-slide {
		width: 100%;
		height: 100%;
		background-color: var(--wp--preset--color--primary);
		img{
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
	}
}

/* 綺麗に改行するコード　文章内の改行しても良い位置に<wbr>に入れる */
.wbr-text-wrap {
	/* CJKテキストでの折り返しを無効化 */
	word-break: keep-all;

	/* 長い単語でも折り返し可能に */
	overflow-wrap: anywhere;
}

/* 綺麗に改行するコード　文章内の改行しても良い場所を<span>で囲う */
.inline-text-wrap {
	span {
		display: inline-block;
	}
}
