/*
Theme Name: MAXY PAINT DESIGN
Description: MAXY PAINT DESIGN のホームページ用テーマ。黒い背景・銀のロゴ・明朝体の見出しという今までの見た目を、軽い作りで引き継ぐ。
Version: 0.7.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: maxy-paint
*/

:root {
	--bg: #080809;
	--line: #5d4c55;
	--line-soft: #3b3237;
	--text: #ddd8db;
	--heading: #ece6ea;
	--muted: #b1a8af;
	--wine: #61162d;
	--wine-line: #c1a9b5;
	--th: #2b111b;
	--td: #111013;
	--cell-line: #50454c;
	--gold: #c3a46c;
	--mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
	--gothic: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--gothic);
	font-size: 16px;
	line-height: 1.9;
	overflow-wrap: break-word;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: #f0e5eb; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 400; color: var(--heading); line-height: 1.5; text-wrap: balance; }
.center p { text-wrap: balance; }
p { margin: 0 0 12px; }
.wrap { max-width: 1076px; margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 上の部分（ロゴ・電話・メニュー・動画） ---------- */
.site-top { display: flex; flex-direction: column; background: #000; }
.site-header { order: 1; }
.site-nav { order: 2; }
.hero { order: 3; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; max-width: 380px; text-decoration: none; }
.brand img { display: block; width: 100%; }
.brand-tagline { margin: 6px 0 0; font-family: var(--mincho); font-size: 13px; letter-spacing: .18em; color: var(--muted); font-weight: 400; line-height: 1.5; }
.head-contact { text-align: right; flex: 0 1 330px; }
.head-tel { display: block; }
.head-tel img { display: block; width: 100%; max-width: 330px; margin-left: auto; }
.head-hours { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }

.site-nav { border-top: 1px solid #2a2529; border-bottom: 1px solid #2a2529; background: #050505; }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1150px; display: grid; grid-template-columns: repeat(5, 1fr); }
.site-nav li { border-right: 1px solid #2a2529; border-bottom: 1px solid #2a2529; }
.site-nav li:nth-child(5n+1) { border-left: 1px solid #2a2529; }
.site-nav li:nth-child(n+6) { border-bottom: 0; }
.site-nav a { display: block; padding: 13px 8px; text-align: center; text-decoration: none; font-family: var(--mincho); font-size: 15px; line-height: 1.6; color: #e6e3e6; transition: background-color .2s; }
.site-nav a:hover, .site-nav .is-current a { background: #2a1620; color: #fff; }

.hero { max-width: 1150px; width: 100%; margin: 0 auto; background: #000; }
.hero video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 560; object-fit: cover; }

/* ---------- 本文の枠 ---------- */
.site-main { padding: 36px 0 28px; }
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 24px; margin: 0 0 20px; }
.panel > h2, .section-title { margin: 0 0 16px; padding: 12px 0; font-size: 23px; border-bottom: 1px solid var(--line-soft); }
.panel > :last-child { margin-bottom: 0; }
.lead { font-size: 25px; font-weight: 700; line-height: 1.6; margin: 0 0 10px; color: var(--text); }
.group-title { margin: 30px 0 14px; font-size: 20px; }
.note { font-size: 14px; color: var(--muted); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols-2 .panel { margin: 0; }
.center { text-align: center; }

.btn { display: inline-block; padding: 12px 22px; background: var(--wine); border: 1px solid var(--wine-line); border-radius: 3px; color: #fff; font-family: var(--gothic); font-size: 15px; font-weight: 600; line-height: 1.6; text-decoration: none; transition: background-color .2s; }
.btn:hover { background: #82263f; color: #fff; }
.text-link { font-weight: 700; color: #f0e5eb; text-underline-offset: 4px; }

/* ペイントメニュー */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { position: relative; display: grid; grid-template-columns: 1fr 58%; min-height: 146px; overflow: hidden; border: 1px solid #64545f; background: linear-gradient(120deg, #0a090c 35%, #29121e 70%, #09070a); color: #fff; text-decoration: none; }
.work-card-text { padding: 14px 0 14px 16px; position: relative; z-index: 1; }
.menu-index { display: block; font-family: Impact, "Arial Narrow", sans-serif; font-size: 35px; line-height: 1; letter-spacing: .03em; color: #e4d7df; opacity: .45; font-style: italic; }
.menu-en { display: block; margin-top: 10px; font-family: Arial, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .18em; color: #cab6c1; line-height: 1.4; }
.menu-jp { display: block; font-size: 24px; font-weight: 700; font-style: italic; letter-spacing: -.03em; line-height: 1.4; color: #f5f0f4; white-space: nowrap; }
.menu-jp::after { content: ""; display: block; width: 44px; height: 2px; margin-top: 8px; background: linear-gradient(90deg, #ffb5d1, transparent); }
.work-card img { display: block; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); transition: transform .4s; }
.work-card:hover img { transform: scale(1.05); }
.work-card-arrow { position: absolute; right: 8px; bottom: 6px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); font-size: 14px; line-height: 1; }
.work p { margin: 12px 0 6px; font-size: 15px; line-height: 1.8; }

/* AI画像のお知らせ */
.ai-notice { border: 1.5px solid var(--line); border-radius: 8px; padding: 16px 18px; margin: 0 0 20px; color: #e6e0e3; }
.ai-notice-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.ai-notice-title { margin: 0; font-size: 17px; font-weight: 700; }
.ai-notice-btn { display: inline-block; padding: 9px 14px; background: var(--gold); border-radius: 8px; color: #1a1410; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.ai-notice-btn:hover { background: #d8bb85; color: #1a1410; }
.ai-notice p { font-size: 14px; line-height: 1.9; margin: 0 0 4px; }

/* ご依頼の流れ */
.flow { margin: 0 0 14px; padding-left: 1.6em; }
.flow li { padding: 2px 0; }

/* お問い合わせの案内 */
.cta .tel { display: inline-block; margin: 16px 0 6px; font-size: 24px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .02em; }
.cta address { font-style: normal; }

/* 新着情報 */
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.news-head h2 { margin: 0; padding: 0; border: 0; font-size: 23px; }
.news-list { width: 100%; border-collapse: collapse; }
.news-list th, .news-list td { border: 1px solid var(--cell-line); padding: 10px; text-align: left; vertical-align: middle; line-height: 1.95; }
.news-list th { width: 120px; background: var(--th); color: #e6e2e4; font-weight: 700; white-space: nowrap; text-align: center; }
.news-list td { background: var(--td); }
.news-list a { color: #e6e2e4; text-decoration: none; }
.news-list a:hover { text-decoration: underline; color: #fff; }

/* ---------- 記事・ページ ---------- */
.entry-header { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.entry-title { margin: 0; font-size: 26px; }
.entry-date { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content img { border-radius: 2px; }
.entry-content h2 { font-size: 22px; margin: 28px 0 12px; }
.entry-content h3 { font-size: 19px; margin: 24px 0 10px; }
.entry-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.post-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.pagination { margin-top: 20px; text-align: center; }
.pagination .page-numbers { display: inline-block; min-width: 40px; padding: 6px 10px; margin: 0 2px; border: 1px solid var(--cell-line); text-decoration: none; }
.pagination .current { background: var(--th); }

/* ---------- 下の部分 ---------- */
.site-footer { border-top: 1px solid #2a2529; background: #050505; padding: 26px 0 30px; text-align: center; }
.footer-links { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.footer-links li { padding: 0 22px; border-left: 1px solid #3b3237; line-height: 1.4; }
.footer-links li:first-child { border-left: 0; }
.footer-links a { font-size: 14px; text-decoration: none; color: #ded8dc; }
.footer-links a:hover { text-decoration: underline; }
.access { text-align: left; }
.access h2 { margin: 0 0 12px; font-size: 22px; }
.access-map { display: block; width: 100%; height: 320px; border: 0; background: #1b1a1c; }
.access-more { margin: 6px 0 16px; text-align: right; font-size: 13px; }
.access-info { text-align: center; font-size: 14px; line-height: 2; }
.access-info .tel { font-size: 18px; font-weight: 700; color: #fff; text-decoration: none; }
.copyright { display: block; margin-top: 18px; font-size: 11px; letter-spacing: .14em; color: #777; }

/* スマホ用：画面下の固定ボタン（パソコンでは出さない） */
.mobile-bar { display: none; }

/* ---------- スマホ ---------- */
@media (max-width: 700px) {
	body { padding-bottom: 62px; }
	.site-header .wrap { flex-direction: column; gap: 6px; padding: 10px 0 12px; }
	.brand-box { width: 100%; text-align: center; }
	.brand { max-width: 100%; width: 100%; }
	.brand-tagline { font-size: 11px; letter-spacing: .12em; margin-top: 2px; padding: 0 12px; }
	.cta h2 { font-size: 18px; }
	.head-contact { flex: none; width: 100%; text-align: center; }
	.head-tel img { margin: 0 auto; max-width: 290px; }
	.head-hours { display: none; }
	.hero { order: 2; }
	.site-nav { order: 3; border-top: 0; }
	.site-nav ul { grid-template-columns: 1fr 1fr; }
	.site-nav li, .site-nav li:nth-child(5n+1) { border-left: 0; border-right: 0; border-bottom: 1px solid #2a2529; }
	.site-nav li:nth-child(n+6) { border-bottom: 1px solid #2a2529; }
	.site-nav li.nav-sub { display: none; }
	.site-nav a { padding: 14px 6px; font-size: 16px; }
	.site-main { padding: 22px 0 20px; }
	.panel { padding: 18px 16px; }
	.panel > h2, .section-title, .news-head h2 { font-size: 20px; }
	.lead { font-size: 20px; }
	.works { grid-template-columns: 1fr; gap: 22px; }
	.work-card { min-height: 150px; }
	.cols-2 { grid-template-columns: 1fr; }
	.news-list th { width: 92px; font-size: 13px; padding: 8px 4px; }
	.news-list td { font-size: 15px; line-height: 1.7; }
	.entry-title { font-size: 21px; }
	.footer-links li { padding: 0 14px; }
	.access-map { height: 260px; }
	.mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #0a090b; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
	.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-size: 16px; font-weight: 700; text-decoration: none; color: #fff; }
	.mobile-bar .bar-tel { background: var(--wine); }
	.mobile-bar .bar-form { background: #151416; border-left: 1px solid var(--line); }
	.mobile-bar svg { width: 20px; height: 20px; flex: none; }
}
@media (min-width: 701px) and (max-width: 1000px) {
	.works { gap: 12px; }
	.menu-jp { font-size: 19px; }
	.work-card { grid-template-columns: 1fr 50%; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ==========================================================
   固定ページの中身
   ========================================================== */
.page-title { margin: 0 0 16px; font-family: var(--gothic); font-size: 14px; letter-spacing: .12em; color: var(--muted); }
.page-title::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--muted); }
.page-content > .section-title { margin: 0 0 16px; padding: 0 0 12px; }
.page-crumbs { font-size: 14px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.news-head h1 { margin: 0; font-size: 23px; }

/* 施工事例（バイク・ヘルメット・エアブラシ）と会社概要 */
.mxg { line-height: 1.9; }
.mxg h2 { font-size: 25px; line-height: 1.6; margin: 12px 0 18px; }
.mxg h3 { font-size: 16px; line-height: 1.7; margin: 8px 0 12px; }
.mxg p { font-size: 14px; line-height: 2; margin: 0 0 16px; color: #ddd5da; }
.mxg a { color: #fff; }
.mxg .mx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.mxg .mx-card { min-width: 0; background: #141214; border: 1px solid #58404b; border-radius: 5px; overflow: hidden; }
.mxg .mx-photo { display: block; background: #0a090b; cursor: zoom-in; }
.mxg .mx-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 0; }
.mxg .mx-body { padding: 16px; }
.mxg .mx-body p { font-size: 13px; margin: 0; }
.mxg .mx-num { font-size: 11px; letter-spacing: 1px; color: #e6e0e3; }
.mxg .mx-intro { padding: 28px; margin: 24px 0 20px; background: #141214; border: 1px solid #58404b; }
.mxg .mx-panel { padding: 25px; margin: 24px 0; background: #141214; border: 1px solid #57404b; border-radius: 5px; }
.mxg .copy-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mxg details { border-top: 1px solid var(--line-soft); padding: 16px 0; }
.mxg summary { font-size: 15px; font-weight: 700; color: var(--heading); cursor: pointer; }
.mxg details p { margin: 10px 0 0; }
.mxg .eyebrow { margin: 0 0 4px; font-size: 11px; letter-spacing: 2px; color: #ddd5da; }
.mxg .mx-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-top: 1px solid #55454c; border-bottom: 1px solid #55454c; }
.mxg .mx-tabs a { padding: 9px 14px; background: #251018; border: 1px solid #58434d; border-radius: 3px; font-size: 13px; text-decoration: none; }
.mxg .mx-tabs a:hover { background: var(--wine); }
.mxg .mx-cta { display: inline-block; padding: 13px 20px; background: var(--wine); border: 1px solid var(--wine-line); border-radius: 3px; color: #fff; font-weight: 600; text-decoration: none; }
.mxg .mx-cta:hover { background: #82263f; }
.mxg .mx-panel p a { margin-right: 18px; font-weight: 700; text-underline-offset: 4px; }

#mxcompany .co-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
#mxcompany .co-label { font-size: 14px; font-weight: 700; color: #cab6c1; }
#mxcompany .co-value { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
#mxcompany .co-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#mxcompany .co-service { padding: 22px; background: #141214; border: 1px solid #58404b; border-radius: 5px; }
#mxcompany .co-map { display: block; width: 100%; height: 360px; margin: 20px 0; border: 0; border-radius: 4px; }
#mxcompany .co-time { margin-bottom: 8px; font-size: 28px; line-height: 1.5; color: #fff; }
#mxcompany .co-contact { display: flex; flex-wrap: wrap; gap: 12px; }

/* 料金・申し込みの手順・よくあるご質問・お問い合わせ（線の色を黒い背景に合わせる） */
#maxy-prices [style*="border"],
#maxy-price-notes [style*="border"],
#maxy-order-flow [style*="border"],
#maxy-faq [style*="border"],
#maxy-phone-guide { border-color: var(--line) !important; }
#maxy-prices h2, #maxy-prices h3, #maxy-order-flow h2, #maxy-order-flow h3, #maxy-faq h2, #maxy-faq h3 { font-family: var(--mincho) !important; }
#maxy-prices table { font-size: 15px; }
/* 料金表の下の注意書き・色合わせ・お見積もり案内 */
#maxy-price-notes { margin-top: 28px; font-family: inherit !important; }
#maxy-price-notes h2, #maxy-price-notes h3 { font-family: var(--mincho) !important; color: #fff; }
#maxy-price-notes > div:first-child { border-color: var(--gold) !important; }
#maxy-price-notes strong { color: #f0dcb4; }
#maxy-price-notes a[href*="page_id=32"], #maxy-price-notes a[href*="/contact/"] { background: var(--wine); border: 1px solid var(--wine-line); color: #fff !important; }
#maxy-price-notes a[href*="page_id=32"]:hover, #maxy-price-notes a[href*="/contact/"]:hover { background: #82263f; }
#maxy-price-notes a[href^="tel:"] { color: var(--gold); }
#maxy-prices a, #maxy-order-flow a, #maxy-faq a { text-underline-offset: 4px; }
#maxy-ai-notice, #maxy-faq #maxy-ai-notice { border-color: var(--gold) !important; }
#maxy-ai-notice a { display: inline-block; padding: 9px 14px; background: var(--gold); border-radius: 8px; color: #1a1410; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; }
#maxy-ai-notice a:hover { background: #d8bb85; color: #1a1410; }
#maxy-ai-prompt { background: var(--td); border-color: var(--line) !important; }
#maxy-ai-copy { background: var(--wine); color: #fff; border-color: var(--wine-line) !important; }
#maxy-ai-copy:hover { background: #82263f; }
#maxy-phone-guide { color: #fff; }
#maxy-form-fallback { font-size: 14px; }
#maxy-saved-inquiry { background: #fff; border-radius: 4px; }
.maxy-faq-card { scroll-margin-top: 16px; }

/* ==========================================================
   ボタンの光る動き（今までのホームページのメニューと同じ調子）
   触れる：浮き上がって縁が光る ／ 押す：光の帯が走り、小さな星がきらめく
   ========================================================== */
.mx-fx { position: relative; overflow: hidden; isolation: isolate; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, filter .2s ease; }
.mx-fx.mx-touch { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 7px 18px #0009, inset 0 0 0 1px #c29aaa, inset 0 1px 0 #ffffff40; }
.mx-flash { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: linear-gradient(110deg, transparent 16%, #dceaff55 34%, #fff 50%, #e7efff77 65%, transparent 84%); }
.mx-spark { position: absolute; top: 18%; right: 9%; z-index: 6; width: 15px; height: 15px; pointer-events: none; opacity: 0; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.mx-flashing { animation: mx-frame .55s ease-out; }
.mx-flashing > .mx-flash { animation: mx-sweep .55s ease-out; }
.mx-flashing > .mx-spark { animation: mx-spark .62s ease-out; }
@keyframes mx-sweep {
	0% { transform: translateX(-110%); opacity: 0; }
	14%, 40% { opacity: 1; }
	100% { transform: translateX(110%); opacity: 0; }
}
@keyframes mx-frame {
	0%, 100% { box-shadow: 0 7px 18px #0009, inset 0 0 0 1px #c29aaa; }
	18% { box-shadow: 0 0 15px #e8f1ff99, inset 0 0 0 2px #fff, inset 0 0 18px #eef4ff55; }
}
@keyframes mx-spark {
	0%, 38% { opacity: 0; transform: scale(0) rotate(0deg); }
	58% { opacity: 1; transform: scale(1.3) rotate(45deg); }
	100% { opacity: 0; transform: scale(0) rotate(90deg); }
}

/* 上のメニュー：触れると光の帯がゆっくり流れ、下に細い線が出る */
.site-nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 20%, #ffffff24 50%, transparent 80%); transform: translateX(-130%); transition: transform .5s ease; }
.site-nav a::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 5px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, #f3cfdf, transparent); opacity: 0; transform: scaleX(.25); transition: transform .25s ease, opacity .2s ease; }
.site-nav a.mx-touch, .site-nav a:focus-visible { z-index: 2; transform: translateY(-3px) scale(1.025); filter: none; background: #32111f; color: #fff; box-shadow: 0 7px 18px #0009, inset 0 0 0 1px #c29aaa, inset 0 1px 0 #ffffff40; }
.site-nav a.mx-touch::before, .site-nav a:focus-visible::before { transform: translateX(130%); }
.site-nav a.mx-touch::after, .site-nav a:focus-visible::after { opacity: 1; transform: scaleX(1); }

/* 写真が入ったボタン（メニューの大きな札・電話番号の画像）は、光を写真の上に重ねる */
.work-card > .mx-flash, .head-tel > .mx-flash { z-index: 5; background: linear-gradient(110deg, transparent 20%, #e6efff22 37%, #ffffffb3 50%, #eef3ff44 62%, transparent 80%); }
.work-card.mx-touch { transform: translateY(-3px) scale(1.012); filter: none; border-color: #f1dce7; box-shadow: 0 10px 25px #0009, 0 0 12px #e5d7e633; }
.work-card.mx-touch img { transform: scale(1.12); filter: brightness(1.08); }
.head-tel.mx-touch { box-shadow: none; }
.mobile-bar a.mx-touch { transform: none; filter: brightness(1.2); }

/* 施工事例の札：触れると少し浮く */
.mxg .mx-card { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.mxg .mx-card:hover { transform: translateY(-3px); border-color: #c29aaa; box-shadow: 0 10px 22px #0009; }

@media (any-pointer: coarse) {
	.mx-fx, .mx-fx * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mx-fx, .mx-fx.mx-touch, .site-nav a.mx-touch, .work-card.mx-touch, .mxg .mx-card:hover { transform: none !important; }
	.mx-flashing, .mx-flashing > .mx-flash, .mx-flashing > .mx-spark { animation: none !important; }
	.site-nav a::before { display: none; }
}

/* ==========================================================
   最初の画面のひとこと（動画の上）と、ホームの施工写真
   ========================================================== */
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .62) 24%, rgba(0, 0, 0, 0) 56%), linear-gradient(90deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 50%); }
.hero-copy { position: absolute; left: 4.5%; bottom: 9%; z-index: 1; max-width: 62%; }
.hero-lead { margin: 0 0 6px; font-family: var(--mincho); font-size: clamp(22px, 3.1vw, 38px); line-height: 1.5; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.hero-sub { margin: 0 0 16px; font-size: 14px; letter-spacing: .08em; color: #ece6ea; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.hero-btn { padding: 13px 26px; font-size: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }

.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick { position: relative; overflow: hidden; display: block; border: 1px solid #58404b; background: #0a090b; text-decoration: none; color: #fff; }
.pick img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease, filter .3s ease; }
.pick.mx-touch { transform: translateY(-3px); filter: none; border-color: #f1dce7; box-shadow: 0 10px 25px #0009, 0 0 12px #e5d7e633; }
.pick.mx-touch img { transform: scale(1.07); filter: brightness(1.08); }
.pick > .mx-flash { z-index: 5; background: linear-gradient(110deg, transparent 20%, #e6efff22 37%, #ffffffb3 50%, #eef3ff44 62%, transparent 80%); }
.pick-label { position: absolute; left: 0; bottom: 0; z-index: 4; padding: 5px 12px; background: rgba(8, 8, 9, .82); border-top: 1px solid #58404b; border-right: 1px solid #58404b; font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1.6; }

/* 読みやすさ：小さかった文字を大きく、色を濃くする */
.head-hours { font-size: 14px; line-height: 1.75; color: #d9d2d6; }
.brand-tagline { font-size: 15px; letter-spacing: .14em; color: #d9d2d6; }
.mxg .mx-body p { font-size: 14.5px; line-height: 1.9; color: #e6e0e3; }
.mxg .mx-num { font-size: 12px; }
.mxg .mx-body h3 { font-size: 17px; }

@media (max-width: 700px) {
	.hero::after { display: none; }
	.hero-copy { position: static; max-width: none; padding: 12px 16px 14px; text-align: center; background: #000; }
	.hero-lead { font-size: 19px; margin: 0 0 2px; text-shadow: none; }
	.hero-sub { margin: 0; font-size: 11px; letter-spacing: 0; text-shadow: none; color: #d9d2d6; text-wrap: balance; }
	.hero-btn { margin-top: 10px; padding: 10px 24px; font-size: 15px; box-shadow: none; }
	.picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pick-label { font-size: 12px; padding: 4px 9px; }
	.brand-tagline { font-size: 13px; letter-spacing: .08em; }
	.mxg .mx-body p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.pick.mx-touch, .pick.mx-touch img { transform: none !important; }
}

/* お問い合わせフォーム */
#maxy-form-area { margin: 0 0 20px; scroll-margin-top: 16px; }
#maxy-ai-notice { scroll-margin-top: 14px; }
.inq-form { padding: 24px; border: 1px solid var(--line); border-radius: 6px; }
.inq-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 20px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.inq-row label { padding-top: 10px; font-weight: 700; }
.inq-row label b { display: inline-block; margin-left: 6px; padding: 1px 7px; background: var(--wine); border-radius: 3px; color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.inq-form input:not([type="checkbox"]):not([type="file"]), .inq-form textarea { width: 100%; padding: 11px 12px; background: #f4f1f3; border: 1px solid #8d7f87; border-radius: 4px; color: #1a1719; font: inherit; font-size: 16px; line-height: 1.6; }
.inq-form textarea { min-height: 170px; resize: vertical; }
.inq-form input:focus, .inq-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.inq-form input[type="file"] { width: 100%; padding: 8px 0; color: var(--text); font-size: 15px; }
.inq-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.inq-photo-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; font-size: 12px; }
.inq-photo-list:empty { display: none; }
.inq-photo-list li { position: relative; background: var(--td); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.inq-photo-list img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.inq-photo-name { display: block; padding: 3px 6px 4px; text-align: center; color: var(--muted); line-height: 1.5; }
.inq-photo-remove { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0; background: rgba(8, 8, 9, .82); border: 1px solid #c29aaa; border-radius: 50%; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.inq-photo-remove:hover { background: var(--wine); }
.inq-form select { width: 100%; padding: 11px 12px; background: #f4f1f3; border: 1px solid #8d7f87; border-radius: 4px; color: #1a1719; font: inherit; font-size: 16px; line-height: 1.6; }
.inq-form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.inq-row > .inq-label { padding-top: 10px; font-weight: 700; }
.inq-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.inq-row .inq-choice { position: relative; padding: 0; font-weight: 400; cursor: pointer; }
.inq-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.inq-choice span { display: block; padding: 9px 14px; background: #151416; border: 1px solid #8d7f87; border-radius: 4px; font-size: 15px; line-height: 1.5; transition: background-color .15s, border-color .15s; }
.inq-choice:hover span { border-color: #c29aaa; }
.inq-choice input:checked + span { background: var(--wine); border-color: var(--wine-line); color: #fff; font-weight: 700; }
.inq-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.inq-group { margin: 22px 0 0; padding: 0 0 8px; border-bottom: 1px solid var(--line); font-family: var(--mincho); font-size: 18px; color: var(--heading); }
.inq-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; padding: 10px 14px; background: #1c1418; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; }
.inq-draft button { padding: 5px 12px; background: transparent; border: 1px solid #8d7f87; border-radius: 3px; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.inq-draft button:hover { background: var(--wine); color: #fff; }
.inq-address { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.inq-address summary { cursor: pointer; font-weight: 700; }
.inq-address .inq-row:last-child { border-bottom: 0; padding-bottom: 0; }
.inq-consent { display: flex; align-items: center; gap: 10px; margin: 20px 0 16px; font-weight: 700; cursor: pointer; }
.inq-consent input { width: 22px; height: 22px; accent-color: #82263f; }
.inq-send { min-width: 240px; padding: 14px 26px; font-size: 16px; cursor: pointer; }
.inq-send:disabled { opacity: .55; cursor: default; }
.inq-status { min-height: 1.9em; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.inq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq-errors { margin: 0 0 16px; padding: 14px 16px; background: #2a1016; border: 1px solid #b4485f; border-radius: 4px; }
.inq-errors p { margin: 0 0 6px; font-weight: 700; }
.inq-errors ul { margin: 0 0 6px; padding-left: 1.4em; }
.inq-fallback { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.inq-done h2 { margin: 0 0 14px; font-size: 24px; }
.inq-receipt { font-size: 18px; }
.inq-receipt strong { font-size: 24px; letter-spacing: .04em; color: #fff; }
@media (max-width: 700px) {
	.inq-form { padding: 16px; }
	.inq-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
	.inq-row label, .inq-row > .inq-label { padding-top: 0; }
	.inq-send { width: 100%; min-width: 0; }
}

/* 新着情報の一覧（小さな写真つき） */
.news-list-thumbs .news-thumb { width: 88px; padding: 6px; background: var(--td); text-align: center; }
.news-list-thumbs .news-thumb a { display: block; }
.news-thumb-img { display: block; width: 74px; height: 74px; margin: 0 auto; object-fit: cover; border-radius: 2px; }

/* 写真の拡大表示 */
.mx-lightbox { max-width: min(96vw, 1100px); max-height: 94vh; padding: 14px; background: #0a090b; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.mx-lightbox::backdrop { background: rgba(0, 0, 0, .84); }
.mx-lightbox figure { margin: 0; }
.mx-lightbox img { display: block; max-width: 100%; max-height: 74vh; margin: 0 auto; object-fit: contain; }
.mx-lightbox figcaption { margin-top: 10px; text-align: center; font-size: 14px; }
.mx-lightbox button { min-width: 44px; min-height: 44px; background: #151416; border: 1px solid var(--line); border-radius: 3px; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.mx-lightbox button:hover { background: var(--wine); }
.mx-lightbox form { margin: 0 0 8px; text-align: right; }
.mx-lightbox-nav { display: flex; justify-content: space-between; margin-top: 8px; }

@media (max-width: 760px) {
	.mxg .mx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
	.mxg .copy-columns { grid-template-columns: 1fr; }
	.mxg .mx-body { padding: 12px; }
}
@media (max-width: 600px) {
	#mxcompany .co-services { grid-template-columns: 1fr; }
	#mxcompany .co-row { grid-template-columns: 1fr; gap: 5px; padding: 15px 0; }
	#mxcompany .co-map { height: 290px; }
	#maxy-prices, #maxy-price-notes, #maxy-order-flow, #maxy-faq { padding: 0 !important; }
	.news-list-thumbs .news-thumb { width: 64px; padding: 4px; }
	.news-thumb-img { width: 54px; height: 54px; }
	.news-list-thumbs th { width: 78px; font-size: 12px; }
}
@media (max-width: 520px) {
	.mxg .mx-grid { grid-template-columns: 1fr; }
	.mxg .mx-intro, .mxg .mx-panel { padding: 20px 16px; }
	.mxg h2 { font-size: 22px; }
}
