/*
Theme Name: eCruiz Jeep
Description: eCruiz AutoのJeep修理・補修パーツ専門ページ。トップページおよび固定ページ用テンプレートを収録。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ecruiz-jeep
*/

:root {
	--ink: #101824;
	--blue: #0b2450;
	--navy: #102843;
	--navy-dark: #0c2137;
	--border: #ced6e1;
	--muted: #edf2f7;
	--red: #a70905;
	--width: 1260px;
}
*, *::before, *::after { box-sizing: border-box; }
html { color: var(--ink); background: #fafbfc; }
body {
	margin: 0;
	font-family: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, p, ul, address { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #2273c6; outline-offset: 3px; }
[id] { scroll-margin-top: 1rem; }
.ec-wrap { width: min(100% - 16px, var(--width)); margin-inline: auto; }
.ec-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -.13em; }
.ec-icon--raster { background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ec-screen-reader, .screen-reader-text, .ec-skip:not(:focus) {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ec-skip:focus, .screen-reader-text:focus {
	position: fixed; z-index: 100000; top: 10px; left: 10px; padding: 10px 16px; background: white; color: var(--blue);
}
.ec-top a, .ec-mast a, .ec-nav a, .ec-sidebar a, .ec-main a, .ec-footer a { text-decoration: none; }
.ec-top a:hover, .ec-footer a:hover, .ec-section-head a:hover, .ec-news a:hover strong { text-decoration: underline; }

.ec-top { background: linear-gradient(115deg, #183a62, var(--navy-dark)); color: white; }
.ec-top-inner {
	min-height: 26px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
	padding-inline: 16px; font-weight: 700; font-size: 11px;
}
.ec-top nav { display: flex; align-items: center; }
.ec-top nav a { padding-inline: 16px; border-left: 1px solid #657489; white-space: nowrap; }
.ec-mast {
	display: grid; grid-template-columns: minmax(166px, 1.02fr) minmax(270px, 2fr) minmax(176px, 1.03fr) minmax(152px, 1fr);
	align-items: center; gap: 12px; min-height: 107px; padding: 12px 14px;
}
.ec-brand { display: grid; justify-items: center; line-height: 1.3; font-size: clamp(11px, 1.33vw, 15px); font-weight: 900; }
.ec-brand img { width: min(100%, 240px); aspect-ratio: 211 / 51; mix-blend-mode: multiply; }
.ec-promises { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ec-promises a {
	display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
	min-height: 72px; padding: 3px 0 5px; gap: 3px; border-radius: 5px; background: linear-gradient(#eff2f6, #e8edf0);
	color: var(--blue); font-size: clamp(8px, 1vw, 11px); font-weight: 850; line-height: 1.35;
}
.ec-promises a:hover { background: #dfe9f4; }
.ec-promises .ec-icon { width: 32px; height: 32px; }
.ec-phone { display: grid; align-content: center; justify-content: center; padding-left: 9px; border-left: 1px solid var(--border); }
.ec-phone a, .ec-phone strong { color: var(--blue); font-size: clamp(16px, 1.85vw, 21px); font-weight: 900; line-height: 1.27; white-space: nowrap; }
.ec-phone a:hover { text-decoration: underline; }
.ec-phone small { font-size: 11px; text-align: right; color: var(--ink); margin-top: 2px; }
.ec-red {
	background: linear-gradient(#d44947, #b1110d 48%, #9f0602 79%, #b00d08);
	border: 1px solid #cc2a22; box-shadow: inset 0 0 0 2px #ffffff19, 0 2px 4px #53140829;
	color: white; font-weight: 800; border-radius: 8px;
}
.ec-red:hover, .ec-fax:hover .ec-red { background: linear-gradient(#d43835, #9d0a07); }
.ec-header-quote, .ec-main-quote { display: flex; justify-content: center; align-items: center; gap: 9px; line-height: 1.35; }
.ec-header-quote { min-height: 71px; padding: 9px 10px; font-size: clamp(12px, 1.28vw, 15px); }
.ec-header-quote > .ec-icon:first-child { width: 28px; height: 28px; }
.ec-header-quote > .ec-icon:last-child { width: 13px; }
.ec-nav { color: white; background: linear-gradient(100deg, #122f50 0%, var(--navy-dark) 65%, #102741 100%); }
.ec-nav ul { list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); padding: 0; }
.ec-nav li + li { position: relative; }
.ec-nav li + li::before { position: absolute; content: ""; left: 0; top: 20%; height: 60%; border-left: 1px solid #8795a8; }
.ec-nav a { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 37px; text-align: center; font-weight: 800; }
.ec-nav a:hover, .ec-nav a[aria-current] { background: #123f7d; }
.ec-nav .ec-icon { width: 17px; height: 17px; }

.ec-layout {
	display: grid; grid-template-columns: minmax(192px, 20.7%) minmax(0, 1fr); gap: 16px;
	grid-template-areas: "sidebar main"; align-items: start; padding-block: 20px;
}
.ec-main { grid-area: main; }
.ec-mobile-links { display: none; }
.ec-sidebar { grid-area: sidebar; display: grid; gap: 16px; padding-top: 7px; }
.ec-panel { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #f3f5f7; }
.ec-panel h2 {
	background: linear-gradient(115deg, #153658, var(--navy-dark)); color: white; display: flex;
	align-items: center; gap: 6px; padding: 8px 9px; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.35;
}
.ec-panel h2 .ec-icon { font-size: 1.43em; }
.ec-panel ul, .ec-quick ul, .ec-popular, .ec-news, .ec-footer ul { list-style: none; padding: 0; }
.ec-model-list { background: linear-gradient(125deg, #fdfefe, #f0f3f6); }
.ec-model-list li + li, .ec-quick li + li { border-top: 1px solid var(--border); }
.ec-model-list a, .ec-quick a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.ec-model-list a { padding: 6px 7px 6px 11px; min-height: 51px; line-height: 1.15; }
.ec-model-list a:hover, .ec-quick a:hover { background: #e7eff8; color: var(--blue); }
.ec-model-list a > .ec-icon:first-child { width: 27px; height: 20px; }
.ec-model-list a > .ec-icon:last-child, .ec-quick a > .ec-icon:last-child { width: 12px; }
.ec-model-list strong { display: block; font-size: 16px; font-weight: 850; }
.ec-model-list small { display: block; font-size: 11px; font-weight: 750; margin-top: 3px; }
.ec-search form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px; padding: 9px 7px; }
.ec-search input { min-width: 0; width: 100%; border: 1px solid #acb7c3; border-radius: 3px; padding: 5px 6px; background: white; font-size: 11px; }
.ec-search button { border: 0; border-radius: 3px; background: var(--blue); color: white; padding: 5px 11px; font-weight: 800; cursor: pointer; }
.ec-search button:hover { background: #184a88; }
.ec-vin {
	display: grid; gap: 7px; padding: 8px 10px; border: 1px solid #455f80;
	border-radius: 4px; background: linear-gradient(105deg, #f7fafd, #eaf0f7);
}
.ec-vin:hover { background: #e2edf8; }
.ec-vin strong { display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: clamp(13px, 1.4vw, 16px); line-height: 1.4; }
.ec-vin .ec-icon { width: 42px; height: 32px; }
.ec-vin > span { font-size: 12px; font-weight: 600; }
.ec-quick { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #f7f9fb; }
.ec-quick a { min-height: 34px; padding: 4px 7px 4px 10px; font-weight: 800; font-size: 12px; line-height: 1.35; }
.ec-quick a > .ec-icon:first-child { width: 17px; height: 17px; }
.ec-quick small { display: block; font-size: 10px; }

.ec-hero {
	position: relative; isolation: isolate; overflow: hidden; border-radius: 8px;
	display: flex; align-items: center; min-height: clamp(216px, 20vw, 250px); background: #fafbfc;
}
.ec-hero-image {
	position: absolute; z-index: -2; right: 0; top: 0; width: 56%; height: 100%; object-fit: cover; object-position: right center;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 26%); mask-image: linear-gradient(90deg, transparent, #000 26%);
}
.ec-hero::before {
	position: absolute; z-index: -1; inset: 0; content: "";
	background: linear-gradient(90deg, #fafbfc 0%, #f9fafb 36%, #f9fafbe3 44%, #f9fafb55 52%, #f9fafb00 63%);
}
.ec-hero-copy { padding: 15px 18px; }
.ec-hero h1 { font-size: clamp(23px, 2.85vw, 37px); color: #0c1b31; font-weight: 900; line-height: 1.2; letter-spacing: -.04em; }
.ec-hero-brand {
	color: #102e63; font-size: clamp(31px, 4.2vw, 54px); font-weight: 950; font-style: italic;
	line-height: 1.15; letter-spacing: -.025em; margin-bottom: 6px;
}
.ec-hero-description { font-weight: 650; font-size: clamp(12px, 1.35vw, 16px); line-height: 1.55; }
.ec-estimate { display: grid; grid-template-columns: 41% minmax(0, 1fr); gap: 15px; margin: 6px 0 17px; }
.ec-main-quote { min-height: 64px; padding: 8px 9px; font-size: clamp(13px, 1.7vw, 20px); letter-spacing: -.035em; }
.ec-main-quote > .ec-icon:first-child { font-size: 1.6em; }
.ec-main-quote > .ec-icon:last-child { font-size: .75em; }
.ec-fax {
	display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 64px;
	border: 2px solid #c41712; border-radius: 8px; padding: 5px 9px; color: var(--red); background: #fff;
	box-shadow: 0 2px 4px #53140820;
}
.ec-fax:hover { background: #fff5f3; }
.ec-fax > .ec-icon { font-size: clamp(27px, 3.4vw, 43px); }
.ec-fax strong { font-size: clamp(15px, 1.7vw, 22px); font-weight: 900; line-height: 1.14; white-space: nowrap; }
.ec-fax-note { border-left: 1px solid var(--border); padding-left: 8px; color: var(--ink); font-size: clamp(9px, 1vw, 12px); font-weight: 700; }
.ec-pdf { display: flex; align-items: center; gap: 3px; padding: 5px 7px; border-radius: 4px; font-size: 12px; }
.ec-section { margin: 0 0 11px 6px; }
.ec-section h2 {
	border-left: 6px solid var(--blue); padding-left: 10px; color: var(--blue); font-size: clamp(16px, 1.65vw, 21px);
	line-height: 1.2; font-weight: 900; margin: 0 0 7px;
}
.ec-section h2 span { font-size: .87em; }
.ec-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ec-section-head > a { white-space: nowrap; color: var(--blue); font-size: 12px; font-weight: 800; }
.ec-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 7px; gap: 9px; border: 1px solid var(--border); border-radius: 6px; }
.ec-services a { display: flex; flex-direction: column; gap: 6px; justify-content: flex-start; min-height: 110px; border-radius: 5px; padding: 10px; background: linear-gradient(135deg, #f3f7fa, #e8eff6); }
.ec-services a:hover { background: #e1ebf7; }
.ec-services strong { display: flex; align-items: center; gap: 5px; color: var(--blue); font-size: clamp(13px, 1.45vw, 18px); line-height: 1.25; min-height: 39px; }
.ec-service-title-line { display: block; }
.ec-services strong .ec-icon { font-size: clamp(24px, 3vw, 36px); }
.ec-services a > span { font-size: clamp(11px, 1.19vw, 14px); font-weight: 600; line-height: 1.5; }
.ec-news { border-bottom: 1px solid var(--border); }
.ec-news a { display: flex; align-items: baseline; gap: clamp(8px, 4vw, 38px); border-top: 1px solid var(--border); padding: 4px 8px; font-size: 13px; }
.ec-news time { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.ec-news a:hover { color: var(--blue); background: #eef4fa; }
.ec-ruled h2 { position: relative; margin-bottom: 13px; }
.ec-ruled h2::after { position: absolute; left: -6px; right: 0; bottom: -5px; content: ""; border-bottom: 1px solid #768aab; }
.ec-parts, .ec-popular { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.ec-parts a, .ec-popular a, .ec-help a, .ec-brands {
	border: 1px solid var(--border); border-radius: 5px; background: linear-gradient(135deg, #fff, #f1f4f7);
}
.ec-parts a:hover, .ec-popular a:hover, .ec-help a:hover { background: #eaf1f8; border-color: #8da9c6; }
.ec-parts a { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 3px 4px 6px; text-align: center; line-height: 1.35; }
.ec-parts img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; }
.ec-parts strong, .ec-popular strong { display: block; color: var(--blue); font-size: clamp(12px, 1.27vw, 15px); font-weight: 850; }
.ec-parts small { margin-top: 2px; font-size: 10px; font-weight: 650; }
.ec-brands { display: flex; justify-content: space-evenly; align-items: center; padding: 7px; gap: 7px; text-align: center; }
.ec-brands > span { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 30px; flex-wrap: wrap; font-weight: 700; }
.ec-brands > span:last-child { border-left: 1px solid #8b98a7; padding-left: 10px; }
.ec-brands img { width: 36px; mix-blend-mode: multiply; }
.ec-brands b { color: #112748; font-size: 20px; font-weight: 950; line-height: 1; }
.ec-brands .ec-jeep-wordmark { color: #171717; font-size: 25px; }
.ec-popular a { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; min-height: 45px; padding: 4px 13px 4px 4px; }
.ec-popular a .ec-icon { position: absolute; right: 2px; color: var(--blue); font-size: 12px; }
.ec-popular small { display: block; font-size: 10px; font-weight: 650; }
.ec-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-left: 6px; }
.ec-help a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; min-height: 72px; padding: 6px 8px; }
.ec-help a > .ec-icon:first-child { font-size: clamp(24px, 3vw, 37px); color: var(--blue); align-self: start; margin-top: 7px; }
.ec-help a > .ec-icon:last-child { font-size: 13px; color: var(--blue); }
.ec-help strong { color: var(--blue); font-size: 14px; font-weight: 850; }
.ec-help small { display: block; font-size: 11px; font-weight: 650; }
.ec-extra { margin: 16px 6px 0; }

.ec-footer { background: linear-gradient(110deg, #122f4d, #0e243b 70%); color: white; padding: 16px 0 21px; }
.ec-footer-grid { display: grid; grid-template-columns: 22% 32% 1fr; padding-inline: 12px; align-items: start; }
.ec-footer-brand { font-size: 13px; line-height: 1.4; font-weight: 700; }
.ec-footer-brand img { display: block; }
.ec-footer-grid address { font-style: normal; padding-inline: 20px; border-left: 1px solid #9aa8b8; font-size: 12px; line-height: 1.55; }
.ec-footer-nav { display: grid; grid-template-columns: 1fr 1fr 1.45fr; font-size: 11px; }
.ec-footer-nav ul { padding-left: 14px; border-left: 1px solid #788c9e; }
.ec-footer-nav .ec-icon { width: 10px; margin-right: 3px; }
.ec-copyright { display: block; text-align: center; margin: 12px 10px 0; padding-top: 8px; border-top: 1px solid #a3b0bf; font-size: 11px; }
.ec-reading { max-width: 900px; min-height: 50vh; padding: 32px 16px; overflow-wrap: anywhere; }
.ec-reading article { margin-bottom: 26px; }
.ec-reading :is(h1, h2, h3, p, ul, ol) { margin-block: 0 1em; }
.ec-reading iframe, .ec-extra iframe { max-width: 100%; }

@media (max-width: 1000px) {
	.ec-promises .ec-icon { width: 24px; height: 24px; }
	.ec-mast { padding-inline: 4px; gap: 6px; grid-template-columns: minmax(140px, .93fr) minmax(224px, 1.8fr) minmax(152px, 1fr) minmax(140px, .86fr); }
	.ec-fax { grid-template-columns: auto 1fr auto; }
	.ec-fax-note { display: none; }
	.ec-layout { gap: 10px; }
	.ec-services { gap: 5px; padding: 5px; }
	.ec-services a { padding: 6px; }
}
@media (max-width: 780px) {
	.ec-mast { grid-template-columns: 1fr auto minmax(148px, auto); padding: 7px 5px; min-height: 0; }
	.ec-brand { max-width: 200px; }
	.ec-promises { display: none; }
	.ec-header-quote { min-height: 53px; }
	.ec-nav ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.ec-nav li:nth-child(6)::before { display: none; }
	.ec-nav a { font-size: 12px; }
	.ec-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "sidebar"; padding-top: 13px; }
	.ec-sidebar { grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; padding-top: 0; }
	.ec-sidebar > :first-child { grid-row: span 3; }
	.ec-mobile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: -5px 0 13px; }
	.ec-mobile-links a { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 37px; color: var(--blue); border: 1px solid var(--border); border-radius: 4px; background: #f0f5fa; font-weight: 800; }
	.ec-mobile-links .ec-icon { font-size: 1.25em; }
	.ec-section, .ec-help { margin-left: 0; }
	.ec-footer-grid { grid-template-columns: 1fr 1.3fr; gap: 10px; }
	.ec-footer-nav { grid-column: 1 / -1; }
	.ec-top-inner { padding-inline: 5px; }
	.ec-top nav a { padding-inline: 6px; }
}
@media (max-width: 540px) {
	.ec-top-inner { justify-content: flex-end; }
	.ec-top-inner > span { display: none; }
	.ec-mast { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
	.ec-brand { justify-items: start; }
	.ec-brand img { max-width: 160px; }
	.ec-brand span { padding-left: 4px; }
	.ec-phone { grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto auto; align-items: center; gap: 1px 11px; border: 0; padding: 1px 0 0; }
	.ec-phone a, .ec-phone strong { font-size: 13px; }
	.ec-phone small { grid-column: 1 / -1; font-size: 10px; text-align: center; margin: 0; }
	.ec-header-quote { font-size: 12px; padding: 6px; min-height: 48px; gap: 4px; }
	.ec-header-quote > .ec-icon:first-child { width: 21px; height: 21px; }
	.ec-nav a { font-size: 10px; min-height: 36px; }
	.ec-nav .ec-icon { width: 12px; height: 12px; }
	.ec-hero { display: block; }
	.ec-hero-image { position: relative; z-index: 0; display: block; width: 100%; height: 158px; object-fit: cover; object-position: center 49%; -webkit-mask-image: none; mask-image: none; }
	.ec-hero::before { display: none; }
	.ec-hero-copy { padding: 10px 10px 13px; }
	.ec-hero h1 { font-size: clamp(20px, 5.6vw, 29px); }
	.ec-hero-brand { font-size: 32px; margin-bottom: 3px; }
	.ec-hero-description { font-size: 13px; }
	.ec-desktop-break { display: none; }
	.ec-estimate { grid-template-columns: 1fr; gap: 6px; margin-bottom: 15px; }
	.ec-main-quote { min-height: 49px; font-size: 16px; }
	.ec-fax { min-height: 50px; grid-template-columns: auto auto 1fr auto; }
	.ec-fax-note { display: block; font-size: 10px; }
	.ec-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ec-services a { min-height: 86px; }
	.ec-services strong { min-height: 30px; }
	.ec-parts, .ec-popular { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ec-brands { flex-wrap: wrap; justify-content: center; gap: 5px 10px; }
	.ec-brands > span:last-child { flex-basis: 100%; border-top: 1px solid var(--border); border-left: 0; padding: 5px 0 0; }
	.ec-help { grid-template-columns: 1fr; }
	.ec-help a { min-height: 52px; }
	.ec-help a > .ec-icon:first-child { align-self: center; margin: 0; }
	.ec-sidebar { grid-template-columns: 1fr; }
	.ec-sidebar > :first-child { grid-row: auto; }
	.ec-model-list { display: grid; grid-template-columns: 1fr 1fr; }
	.ec-model-list li { border-top: 1px solid var(--border); }
	.ec-model-list li:nth-child(odd) { border-right: 1px solid var(--border); }
	.ec-model-list strong { font-size: 13px; }
	.ec-model-list a { padding-left: 5px; gap: 4px; }
	.ec-model-list a > .ec-icon:first-child { width: 22px; }
	.ec-footer-grid { display: block; }
	.ec-footer-grid address { margin-block: 10px; padding-left: 9px; }
	.ec-footer-nav ul { padding-left: 4px; }
	.ec-footer-nav { font-size: 10px; }
}
