/*
 * マスト株式会社 テーマ 土台CSS
 * - 現行サイト(Elementor版)と同じ見た目になるよう、余白・文字・レイアウトの既定値をそろえる
 * - レイアウトは「コンテナ」(.mc-con)を CSS 変数で組む。各要素の値は pages.css(自動生成)が持つ
 */

:root {
	--mc-black: #000000;
	--mc-gray: #54595f;
	--mc-text: #7a7a7a;
	--mc-accent: #d04232;
	--mc-red: #e23125;
	--mc-pink: #f9e0e2;
	--mc-beige: #f2eae3;
	--mc-sage: #6c7c69;
	--mc-font: "Noto Sans JP", sans-serif;
}

/* ---------- 基本 ---------- */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: #fff;
	color: #333;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin: .5rem 0 1rem; color: inherit; font-family: inherit; font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; }
p { margin: 0 0 .9rem; }
a { color: #c36; text-decoration: none; background: transparent; }
a:hover, a:active { color: #336; }
b, strong { font-weight: bolder; }
img { max-width: 100%; height: auto; border: 0; }
ul, ol, li, dl, dd, dt { margin-top: 0; margin-bottom: 0; }
figure { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: #000; }

/* ---------- コンテナ(レイアウトの単位) ---------- */
:where(.mc-con, .mc-w) {
	--flex-direction: initial; --flex-wrap: initial; --justify-content: initial; --align-items: initial; --align-content: initial;
	--gap: initial; --flex-basis: initial; --flex-grow: initial; --flex-shrink: initial; --order: initial; --align-self: initial;
}
.mc-con, .mc-w { align-self: var(--align-self); flex-basis: var(--flex-basis); flex-grow: var(--flex-grow); flex-shrink: var(--flex-shrink); order: var(--order); }
:where(.mc-con) {
	--display: flex;
	--container-widget-width: 100%; --container-widget-height: initial; --container-widget-flex-grow: 0; --container-widget-align-self: initial;
	--content-width: min(100%, var(--container-max-width, 1140px));
	--width: 100%; --min-height: initial; --height: auto; --text-align: initial;
	--margin-top: 0px; --margin-right: 0px; --margin-bottom: 0px; --margin-left: 0px;
	--padding-top: 10px; --padding-right: 10px; --padding-bottom: 10px; --padding-left: 10px;
	--position: relative; --z-index: revert; --overflow: visible;
	--gap: 20px; --row-gap: 20px; --column-gap: 20px;
	--border-radius: 0;
	--container-max-width: 1140px;
	--flex-wrap-mobile: wrap;
}
.mc-con {
	position: var(--position); z-index: var(--z-index);
	width: var(--width); min-width: 0; height: var(--height); min-height: var(--min-height);
	overflow: var(--overflow); border-radius: var(--border-radius);
	display: var(--display);
	margin: var(--margin-top) var(--margin-right) var(--margin-bottom) var(--margin-left);
	padding-left: var(--padding-left); padding-right: var(--padding-right);
}
:where(.mc-con.e-flex) { --flex-direction: column; --flex-basis: auto; --flex-grow: 0; --flex-shrink: 1; }
.mc-con.e-flex { flex: var(--flex-grow) var(--flex-shrink) var(--flex-basis); }
.mc-full { padding-top: var(--padding-top); padding-bottom: var(--padding-bottom); text-align: var(--text-align); }
.mc-full.e-flex {
	flex-direction: var(--flex-direction); flex-wrap: var(--flex-wrap);
	justify-content: var(--justify-content); align-items: var(--align-items); align-content: var(--align-content);
	gap: var(--row-gap) var(--column-gap);
}
.mc-boxed.e-flex { flex-direction: column; flex-wrap: nowrap; justify-content: normal; align-items: normal; align-content: normal; }
.mc-boxed > .mc-inner {
	display: var(--display);
	flex-direction: var(--flex-direction); flex-wrap: var(--flex-wrap);
	justify-content: var(--justify-content); align-items: var(--align-items); align-content: var(--align-content);
	flex: 1 1 auto; align-self: auto;
	gap: var(--row-gap) var(--column-gap);
	width: 100%; height: 100%; max-width: var(--content-width); margin: 0 auto;
	padding: var(--padding-top) 0 var(--padding-bottom); text-align: var(--text-align);
}
/* ページ直下のコンテナは中央寄せ */
:where(.mc-page > .mc-con, .site-head, .site-foot > .mc-con) { --margin-left: auto; --margin-right: auto; }
.mc-page > .mc-con, .site-head, .site-foot > .mc-con { max-width: min(100%, var(--width)); }
/* コンテナ内の部品 */
.mc-w { position: relative; min-width: 0; max-width: 100%; margin: 0; }
:where(.mc-full, .mc-inner) > .mc-w { width: var(--container-widget-width); height: var(--container-widget-height); }
/* WordPress のブロック既定の余白を打ち消す */
:where(.mc-page .mc-con, .mc-page .mc-inner) > * { margin-block-start: 0; margin-block-end: 0; }
.mc-page .wp-block-group { box-sizing: border-box; }

@media (max-width: 1024px) { :where(.mc-con) { --container-max-width: 1024px; } }
@media (max-width: 767px) {
	:where(.mc-con) { --container-max-width: 767px; }
	.mc-con.e-flex { --width: 100%; --flex-wrap: var(--flex-wrap-mobile); }
}

/* ---------- 部品の既定値 ---------- */
.mc-heading { margin: 0; padding: 0; line-height: 1; font-family: var(--mc-font); font-weight: 600; color: var(--mc-black); }
:where(.mc-heading) a { color: inherit; font-size: inherit; line-height: inherit; }
:where(p.mc-heading) { font-size: 1rem; }
.mc-text { font-family: var(--mc-font); font-weight: 400; color: var(--mc-text); }
:where(.mc-text) p { margin: 0 0 .9rem; }
.mc-image { text-align: center; }
:where(.mc-image) a { display: inline-block; }
:where(.mc-image) img { display: inline-block; vertical-align: middle; }
.mc-image.wp-block-image img { box-sizing: border-box; }

/* 動画 */
.mc-video video { display: block; width: 100%; max-width: 100%; border: 0; }
.mc-video.wp-block-embed { margin: 0; }
.mc-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.mc-video .wp-block-embed__wrapper::before { display: none; }
.mc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ギャラリー(石積み / 行の高さをそろえる) */
.mc-gallery.wp-block-gallery { display: block; margin: 0; --mc-gap: 10px; }
.mc-gallery .wp-block-image { margin: 0 !important; position: relative; overflow: hidden; }
.mc-gallery .wp-block-image a { display: block; }
.mc-gallery .wp-block-image img { display: block; width: 100%; height: auto; transition: transform .4s, opacity .3s; }
.mc-gallery .wp-block-image a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; pointer-events: none; }
.mc-gallery .wp-block-image a:hover::after { opacity: 1; }
.mc-gallery--masonry.wp-block-gallery { column-count: 4; column-gap: var(--mc-gap); }
.mc-gallery--masonry:not(.is-js) figure.wp-block-image { break-inside: avoid; margin-bottom: var(--mc-gap) !important; width: 100% !important; }
.mc-gallery--masonry.is-js.wp-block-gallery { column-count: auto; position: relative; }
.mc-gallery--masonry.is-js.wp-block-gallery figure.wp-block-image { position: absolute !important; margin: 0 !important; }
.mc-gallery--justified.wp-block-gallery { display: flex; flex-wrap: wrap; gap: var(--mc-gap); --mc-row: 200px; }
.mc-gallery--justified.wp-block-gallery figure.wp-block-image { flex: 1 1 auto; width: auto !important; height: var(--mc-row); }
.mc-gallery--justified.is-js.wp-block-gallery figure.wp-block-image { flex: 0 0 auto !important; }
.mc-gallery--justified .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
	.mc-gallery--masonry.wp-block-gallery { column-count: 2; }
	.mc-gallery--justified.wp-block-gallery { --mc-row: 150px; }
}
@media (max-width: 767px) { .mc-gallery--masonry.wp-block-gallery { column-count: 1; } }

/* ギャラリーのキャプション(現行と同じく、マウスを乗せたときだけ中央に表示) */
.mc-gallery.wp-block-gallery figure.wp-block-image figcaption {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	margin: 0; padding: 20px; max-height: none; overflow: hidden;
	background: rgba(0, 0, 0, .5); color: #fff; font-size: 14px; text-align: center; text-shadow: none;
	opacity: 0; pointer-events: none; transition: opacity .8s;
}
.mc-gallery.wp-block-gallery figure.wp-block-image:hover figcaption,
.mc-gallery.wp-block-gallery figure.wp-block-image:focus-within figcaption { opacity: 1; }
.mc-gallery .wp-block-image:has(figcaption) a::after { display: none; }

/* 拡大表示 */
.mc-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.mc-lightbox[hidden] { display: none; }
.mc-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.mc-lightbox button { position: absolute; padding: 12px 16px; border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.mc-lightbox button:hover, .mc-lightbox button:focus { background: rgba(255, 255, 255, .1); color: #fff; }
.mc-lightbox .lb-close { top: 10px; right: 10px; }
.mc-lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.mc-lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- ヘッダー ---------- */
.mc-con.site-head {
	--min-height: 90px; --flex-direction: row; --justify-content: space-between; --align-items: center;
	--container-widget-width: calc((1 - var(--container-widget-flex-grow)) * 100%); --container-widget-height: 100%;
	--container-widget-flex-grow: 1; --container-widget-align-self: stretch;
	--gap: 0px; --row-gap: 0px; --column-gap: 0px;
	--padding-top: 0%; --padding-bottom: 0%; --padding-left: 5%; --padding-right: 5%;
	--z-index: 999;
	position: sticky; top: 0;
	background-color: var(--mc-beige);
}
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
.site-head > .mc-inner > .mc-w { width: auto; height: auto; flex-grow: 0; }
.head-logo { text-align: start; }
.head-logo a { display: inline-block; }
.head-logo img { display: block; width: 150px; height: 75px; object-fit: contain; object-position: center center; }

/* グローバルメニュー */
.gnav { --gap-item: 52px; }
.gnav ul { list-style: none; margin: 0; padding: 0; }
.gnav > ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.gnav > ul > li { position: relative; margin: 0 calc(var(--gap-item) / 2); }
.gnav a {
	position: relative; display: flex; align-items: center;
	padding: 3px 0; color: var(--mc-red);
	font-family: "Inter", sans-serif; font-size: 16px; font-weight: 500; line-height: 1em; letter-spacing: -.2px; text-transform: capitalize;
}
.gnav > ul > li > a::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
	background: var(--mc-red); opacity: 0; transition: opacity .3s;
}
.gnav > ul > li > a:hover::after, .gnav > ul > li > a:focus-visible::after,
.gnav > ul > li.current-menu-item > a::after, .gnav > ul > li.current-menu-ancestor > a::after { opacity: 1; }
.gnav a:hover { color: var(--mc-red); }
.gnav .sub-arrow { display: inline-flex; margin-left: 10px; }
.gnav .sub-arrow svg { width: .65em; height: 1em; fill: currentColor; }
.gnav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10; min-width: 220px;
	background: var(--mc-pink); border: 1px solid var(--mc-red); border-width: 0;
	visibility: hidden; opacity: 0; transition: opacity .2s;
}
.gnav li:hover > .sub-menu, .gnav li:focus-within > .sub-menu, .gnav li.is-open > .sub-menu { visibility: visible; opacity: 1; }
.gnav .sub-menu li:not(:last-child) { border-bottom: 1px solid var(--mc-red); }
.gnav .sub-menu a { padding: 13px 20px; line-height: 1.2; white-space: nowrap; }
.gnav .sub-menu a:hover { background: transparent; }
.menu-toggle {
	display: none; align-items: center; justify-content: center; margin-left: auto;
	width: 40px; height: 40px; padding: 0; border: 0; border-radius: 3px;
	background: transparent; color: var(--mc-red); cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus { background: transparent; color: var(--mc-red); }
.menu-toggle svg { width: 25px; height: 25px; fill: currentColor; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-open { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ヘッダーのお問い合わせボタン */
.head-btn { text-align: right; }
.mc-btn {
	display: inline-block; padding: 15px 30px;
	background: var(--mc-red); color: #fff; border: 2px solid var(--mc-red); border-radius: 60px;
	font-family: "Inter", sans-serif; font-size: 16px; font-weight: 500; line-height: 1em; letter-spacing: -.2px; text-transform: capitalize;
	transition: all .3s;
}
.mc-btn:hover, .mc-btn:focus { background: var(--mc-pink); color: var(--mc-red); border-color: var(--mc-red); }

@media (max-width: 1024px) {
	.gnav { --gap-item: 30px; }
	.gnav a, .mc-btn { font-size: 14px; }
}
@media (max-width: 767px) {
	.mc-con.site-head { --min-height: 70px; --gap: 15px; --row-gap: 15px; --column-gap: 15px; --flex-wrap: wrap; }
	.site-head > .mc-inner { flex-wrap: wrap; }
	.head-logo { margin: 0; }
	.gnav-wrap { flex: 1 0 auto !important; order: 0; position: static; }
	.menu-toggle { display: flex; }
	.gnav {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 998;
		background: var(--mc-pink);
		max-height: 0; overflow: hidden; transition: max-height .3s;
	}
	.gnav.is-open { max-height: 80vh; overflow: auto; border-bottom: 1px solid var(--mc-red); }
	.gnav > ul { display: block; }
	.gnav > ul > li { margin: 0; }
	.gnav li:not(:last-child) { border-bottom: 1px solid var(--mc-red); }
	.gnav a { padding: 12px 20px; font-size: 14px; justify-content: space-between; }
	.gnav > ul > li > a::after { display: none; }
	.gnav .sub-menu { position: static; visibility: visible; opacity: 1; display: none; min-width: 0; border-top: 1px solid var(--mc-red); }
	.gnav li.is-open > .sub-menu { display: block; }
	.gnav .sub-menu a { padding-left: 40px; }
	.mc-btn { font-size: 14px; padding: 10px 18px; }
}

/* ---------- お問い合わせ帯(フッター上) ---------- */
.mc-con.foot-cta { --margin-top: 100px; --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; --align-items: stretch; }
.cta { display: flex; overflow: hidden; position: relative; }
.cta__content {
	display: flex; flex-wrap: wrap; align-content: center; align-items: center;
	flex-grow: 1; width: 100%; min-height: 40vh; padding: 0 10% 0 14%;
	background: var(--mc-beige); text-align: start; position: relative; z-index: 1;
}
.cta__desc {
	width: 100%; margin: 0 0 35px;
	font-family: "Playfair Display", serif; font-size: 40px; font-weight: 400; line-height: 44px; letter-spacing: -1.13px; text-transform: capitalize;
	color: var(--mc-sage);
}
.cta__btn {
	display: inline-block; padding: 15px 30px;
	border: 2px solid var(--mc-sage); border-radius: 0; background: transparent;
	font-family: "Helvetica", sans-serif; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: -.45px; text-transform: capitalize;
	color: var(--mc-sage); transition: all .3s;
}
.cta__btn:hover, .cta__btn:focus { color: #fffaf5; background: var(--mc-sage); }
.cta__bg-wrap { position: relative; flex: 0 0 50%; width: 50%; min-height: 200px; overflow: hidden; order: 2; }
.cta__bg { position: absolute; inset: 0; background-size: cover; background-position: 50%; transition: transform 1.5s; }
.cta:hover .cta__bg { transform: scale(1.2); }
@media (max-width: 1024px) {
	.cta__content { min-height: 35vh; padding: 0 0 0 7%; }
	.cta__desc { font-size: 32px; line-height: 36px; }
}
@media (max-width: 767px) {
	.cta { flex-direction: column; }
	.cta__bg-wrap { order: 0; width: 100%; flex-basis: auto; }
	.cta__content { min-height: 45vh; padding: 0 15%; }
	.cta__desc { font-size: 28px; line-height: 32px; }
}

/* ---------- フッター ---------- */
.mc-con.foot-main {
	--flex-direction: row; --container-widget-width: initial; --container-widget-height: 100%; --container-widget-flex-grow: 1; --container-widget-align-self: stretch;
}
.mc-con.foot-col { --justify-content: center; }
.foot-logo { text-align: start; }
.foot-logo img { width: 150px; }
.foot-name, .foot-addr, .foot-mail { font-family: "Helvetica", sans-serif; font-size: 16px; font-weight: 300; line-height: 22px; color: #000; }
.foot-name { font-size: 20px; }
.foot-name p, .foot-addr p, .foot-mail p { margin: 0 0 .9rem; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { position: relative; }
.foot-nav li:not(:last-child) { margin-bottom: 0; }
.foot-nav a {
	position: relative; display: flex; align-items: center; padding: 13px 20px;
	font-family: var(--mc-font); font-weight: 600; line-height: 20px; color: var(--mc-text);
}
.foot-nav a:hover, .foot-nav .current-menu-item > a { color: var(--mc-accent); }
.foot-nav > ul > li > a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--mc-accent); opacity: 0; transition: opacity .3s; }
.foot-nav > ul > li > a:hover::after, .foot-nav > ul > li.current-menu-item > a::after { opacity: 1; }
.foot-nav .sub-arrow { display: inline-flex; margin-left: 10px; }
.foot-nav .sub-arrow svg { width: .65em; height: 1em; fill: currentColor; }
.foot-nav .sub-menu { display: none; padding-left: 20px; }
.foot-nav li:hover > .sub-menu, .foot-nav li:focus-within > .sub-menu { display: block; }
.foot-copy { background: var(--mc-beige); }
.foot-copy p { margin: 0; text-align: center; font-family: "Helvetica", sans-serif; font-size: 12px; font-weight: 300; line-height: 1; color: #000; }
@media (max-width: 1024px) {
	.foot-name, .foot-addr, .foot-mail { font-size: 14px; line-height: 20px; }
}

/* ---------- お問い合わせフォーム(Contact Form 7) ---------- */
.wpcf7 { font-family: var(--mc-font); }
.wpcf7 label { display: inline-block; line-height: 1; vertical-align: middle; color: #333; }
.wpcf7 p { margin: 0 0 .9rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea {
	width: 100%; padding: .5rem 1rem; border: 1px solid #666; border-radius: 3px;
	font-family: inherit; font-size: 1rem; line-height: 1.5; transition: all .3s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: #333; outline: 0; }
.wpcf7 textarea { resize: vertical; }
.wpcf7 input[type=submit] {
	padding: .5rem 1rem; border: 1px solid #c36; border-radius: 3px; background: transparent; color: #c36;
	font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 1.5; cursor: pointer; transition: all .3s;
}
.wpcf7 input[type=submit]:hover, .wpcf7 input[type=submit]:focus { background: #c36; color: #fff; }

/* 表示を抑える指定 */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
