/*
 * 見たまま編集版：ブロック化で失われる指定を、元の見た目に合わせて補う
 */
p.p-company__itemMail { margin: 0; }

/* 元のテンプレートの「PCだけ改行しない/スマホだけ改行しない」指定を再現 */
.l-footer__title br { display: none; }
@media screen and (max-width: 767px) {
	.l-footer__title br { display: inline; }
	.p-about-test__title br { display: none; }
}

/* 写真を差し替えても今と同じサイズ・縦横比で表示(はみ出しは中央でトリミング) */
.p-about-more__picture img { width: 100%; height: auto; aspect-ratio: 1080 / 770; object-fit: cover; }
.p-about-thought__picture > .wp-block-image:first-child img { width: 100%; height: auto; aspect-ratio: 1440 / 1100; object-fit: cover; }
.p-about-thought__littlePicture img { width: 100%; height: auto; aspect-ratio: 720 / 620; object-fit: cover; }
.p-movie-banner__picture img { width: 100%; height: auto; aspect-ratio: 1450 / 574; object-fit: cover; }
.p-catalog__picture img { width: 100%; height: auto; aspect-ratio: 1420 / 1064; object-fit: cover; }
.p-about-test__Picture-wrap img { width: 100%; height: auto; aspect-ratio: 800 / 500; object-fit: cover; }

/* YouTube(最新動画の一覧) */
.huruki-yt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3.75rem; }
.huruki-yt__item { display: block; }
.huruki-yt__thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.huruki-yt__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.huruki-yt__item:hover .huruki-yt__thumb img { opacity: .75; }
.huruki-yt__play { position: absolute; left: 50%; top: 50%; width: 48px; height: 34px; margin: -17px 0 0 -24px; background: rgba(255, 0, 0, .9); border-radius: 8px; }
.huruki-yt__play::after { content: ""; position: absolute; left: 19px; top: 10px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.huruki-yt__title { display: -webkit-box; margin-top: .5rem; font-size: .875rem; line-height: 1.5; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.huruki-yt-embed { margin: 3.75rem auto 0; max-width: 53.75rem; aspect-ratio: 16 / 9; }
.huruki-yt-embed iframe { width: 100%; height: 100%; border: 0; }
@media screen and (max-width: 767px) {
	.huruki-yt { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

/* フッター:InstagramとYouTubeのアイコンを横並び */
.huruki-sns { display: flex; gap: .75rem; margin-top: 1.25rem; }
.huruki-sns .l-footer__insta { margin-top: 0; }

/* スマホだけ別の内容にした箇所(PC表示/スマホ表示の切り替え) */
he-sp { display: none; }
@media screen and (max-width: 767px) {
	he-pc { display: none; }
	he-sp { display: inline; }
}

/* ドラッグで動かした位置(スマホは個別指定がなければPCと同じ) */
.he-moved { position: relative; left: var(--he-x, 0); top: var(--he-y, 0); }
@media screen and (max-width: 767px) {
	.he-moved { left: var(--he-xs, var(--he-x, 0)); top: var(--he-ys, var(--he-y, 0)); }
}

/* 文字サイズ(直接編集で変えた倍率。スマホは個別指定がなければPCと同じ) */
.he-sized he-pc, .he-sized he-sp { font-size: calc(1em * var(--he-r, 1)); font-family: var(--he-f, inherit); color: var(--he-c, inherit); }
@media screen and (max-width: 767px) {
	.he-sized he-pc, .he-sized he-sp { font-size: calc(1em * var(--he-rs, var(--he-r, 1))); font-family: var(--he-fs, var(--he-f, inherit)); color: var(--he-cs, var(--he-c, inherit)); }
}

/* ヘッダー右上の電話番号・営業時間が写真にはみ出さないよう、ヘッダーの高さの中に収める */
.l-header__inner .l-header__info { top: 50%; transform: translateY(-50%); }
.l-header__info .l-header__tel-number, .l-header__info .l-header__dayTimes { line-height: 1.35; margin-top: 0; margin-bottom: 0; }

/* 写真の幅・トリミング(直接編集で設定。スマホは個別指定がなければPCと同じ) */
.he-w { width: var(--he-w) !important; max-width: 100% !important; }
.he-crop { overflow: hidden; }
.he-crop img { object-fit: cover !important; object-position: var(--he-ox, 50%) var(--he-oy, 50%) !important; transform: scale(var(--he-z, 1)); transform-origin: var(--he-ox, 50%) var(--he-oy, 50%); }
.he-crop-a img { aspect-ratio: var(--he-a) !important; height: auto !important; }
@media screen and (max-width: 767px) {
	.he-ws { width: var(--he-ws) !important; max-width: 100% !important; }
	.he-crops { overflow: hidden; }
	.he-crops img { object-fit: cover !important; object-position: var(--he-oxs, 50%) var(--he-oys, 50%) !important; transform: scale(var(--he-zs, 1)); transform-origin: var(--he-oxs, 50%) var(--he-oys, 50%); }
	.he-crop-as img { aspect-ratio: var(--he-as) !important; height: auto !important; }
}

/* 枠の高さを決めていた写真(私たちの想い・会社概要)も、縦横比を変えられるように */
.he-crop-a::before { padding-top: calc(100% / var(--he-ar)) !important; }
.p-topAbout__picture.he-crop-a img, .p-company__picture.he-crop-a img { aspect-ratio: auto !important; height: 100% !important; }
@media screen and (max-width: 767px) {
	.he-crop-as::before { padding-top: calc(100% / var(--he-ars)) !important; }
	.p-topAbout__picture.he-crop-as img, .p-company__picture.he-crop-as img { aspect-ratio: auto !important; height: 100% !important; }
}

/* 施工事例:流さない時の並び(スライドと同じ幅で中央寄せ) */
.he-works--static .he-works__list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.he-works--static .p-topWorks-cards { flex: 0 0 calc(100% / var(--he-wsp, 1)); max-width: calc(100% / var(--he-wsp, 1)); }
@media screen and (min-width: 768px) {
	.he-works--static .p-topWorks-cards { flex-basis: calc(100% / var(--he-wpc, 4)); max-width: calc(100% / var(--he-wpc, 4)); }
}
.he-works-set { position: absolute; z-index: 30; top: 8px; right: 8px; padding: 8px 12px; border: 0; border-radius: 6px; background: #0a6cff; color: #fff; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.he-works-form { display: grid; gap: 14px; padding: 14px 20px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; font-size: 14px; }
.he-works-form label { display: grid; gap: 6px; }
.he-works-form select, .he-works-form input { padding: 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; }
.he-works-form small { color: #666; font-size: 12px; line-height: 1.5; }
.he-works-form label { margin: 0 !important; padding: 0 !important; text-indent: 0 !important; }

/* 枠の中で選んだ文字だけのサイズ・書体(直接編集で付く) */
.he-z-50 { font-size: 0.5em; }
.he-z-55 { font-size: 0.55em; }
.he-z-60 { font-size: 0.6em; }
.he-z-65 { font-size: 0.65em; }
.he-z-70 { font-size: 0.7em; }
.he-z-75 { font-size: 0.75em; }
.he-z-80 { font-size: 0.8em; }
.he-z-85 { font-size: 0.85em; }
.he-z-90 { font-size: 0.9em; }
.he-z-95 { font-size: 0.95em; }
.he-z-105 { font-size: 1.05em; }
.he-z-110 { font-size: 1.1em; }
.he-z-115 { font-size: 1.15em; }
.he-z-120 { font-size: 1.2em; }
.he-z-125 { font-size: 1.25em; }
.he-z-130 { font-size: 1.3em; }
.he-z-135 { font-size: 1.35em; }
.he-z-140 { font-size: 1.4em; }
.he-z-145 { font-size: 1.45em; }
.he-z-150 { font-size: 1.5em; }
.he-z-155 { font-size: 1.55em; }
.he-z-160 { font-size: 1.6em; }
.he-z-165 { font-size: 1.65em; }
.he-z-170 { font-size: 1.7em; }
.he-z-175 { font-size: 1.75em; }
.he-z-180 { font-size: 1.8em; }
.he-z-185 { font-size: 1.85em; }
.he-z-190 { font-size: 1.9em; }
.he-z-195 { font-size: 1.95em; }
.he-z-200 { font-size: 2em; }
.he-z-205 { font-size: 2.05em; }
.he-z-210 { font-size: 2.1em; }
.he-z-215 { font-size: 2.15em; }
.he-z-220 { font-size: 2.2em; }
.he-z-225 { font-size: 2.25em; }
.he-z-230 { font-size: 2.3em; }
.he-z-235 { font-size: 2.35em; }
.he-z-240 { font-size: 2.4em; }
.he-z-245 { font-size: 2.45em; }
.he-z-250 { font-size: 2.5em; }
.he-z-255 { font-size: 2.55em; }
.he-z-260 { font-size: 2.6em; }
.he-z-265 { font-size: 2.65em; }
.he-z-270 { font-size: 2.7em; }
.he-z-275 { font-size: 2.75em; }
.he-z-280 { font-size: 2.8em; }
.he-z-285 { font-size: 2.85em; }
.he-z-290 { font-size: 2.9em; }
.he-z-295 { font-size: 2.95em; }
.he-z-300 { font-size: 3em; }
.he-ff-noto { font-family: "Noto Sans JP", sans-serif; }
.he-ff-gothic { font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", HelveticaNeue, YuGothic, "Yu Gothic Medium", "Yu Gothic", Verdana, Meiryo, sans-serif; }
.he-ff-impact { font-family: "Impact", "Noto Sans JP", sans-serif; }
.he-ff-mincho { font-family: "Noto Serif JP", serif; }
.he-ff-maru { font-family: "Zen Maru Gothic", sans-serif; }

/* テキストボックスの幅(直接編集で変えた幅。画面の幅に対する%。元の列の幅を超えて広げられる) */
@media screen and (min-width: 768px) {
	.he-tw { width: min(calc(var(--he-tw) * 1vw), calc(100vw - 32px)); max-width: none; flex-shrink: 0; }
}
@media screen and (max-width: 767px) {
	.he-tws { width: min(calc(var(--he-tws) * 1vw), calc(100vw - 32px)); max-width: none; flex-shrink: 0; }
}

/* 文字の色(なぞって選んだ部分だけ) */
.he-tc-black { color: #191919; }
.he-tc-gray { color: #6b6b6b; }
.he-tc-white { color: #ffffff; }
.he-tc-navy { color: #324264; }
.he-tc-blue { color: #408bd1; }
.he-tc-orange { color: #f18200; }
.he-tc-red { color: #d6302a; }
.he-tc-green { color: #1da867; }
.he-tc-brown { color: #8a5a2b; }

/* 見出し写真の拡大(直接編集の「見出しの調整」)ではみ出さないように */
.c-fvTitle-picture { overflow: hidden; }
