:root {
  --navy: #06182e;
  --navy-2: #0b2748;
  --navy-3: #03101f;
  --blue: #0f62d8;
  --blue-2: #0849a5;
  --cyan: #06b6c9;
  --cyan-2: #10d8ea;
  --cyan-soft: #e6fbfd;
  --paper: #f5f9fc;
  --paper-2: #edf6fb;
  --white: #ffffff;
  --text: #12243a;
  --muted: #5d6f84;
  --line: rgba(6, 24, 46, 0.14);
  --shadow: 0 22px 54px rgba(6, 24, 46, 0.16);
  --soft-shadow: 0 12px 32px rgba(6, 24, 46, 0.1);
  --button-shadow: 0 14px 30px rgba(15, 98, 216, 0.34);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  background: var(--white);
}

body.has-mobile-bar { padding-bottom: 78px; }

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin-top: 0; }
p { margin-bottom: 0; }
ul, ol { margin-top: 0; }

.container, .wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(6, 24, 46, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 11px;
}

.brand-logo, .brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(183, 128, 22, 0.34);
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(6, 24, 46, 0.12);
}

.brand-mark {
  display: grid;
  place-items: center;
  color: #7a4b00;
  background: linear-gradient(145deg, #fff8df, #f0c35f);
  font-family: Georgia, serif;
  font-size: 1.08rem;
  font-weight: 900;
}

.brand-text { display: grid; gap: 1px; line-height: 1.16; }
.brand-text strong { color: var(--navy); font-size: 0.98rem; }
.brand-text small { color: var(--muted); font-size: 0.68rem; font-weight: 900; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}

.header-nav a {
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.header-nav a:hover { border-color: var(--cyan); color: var(--blue-2); }

.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #12bfe0);
  box-shadow: var(--button-shadow);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(6, 182, 201, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(3, 16, 31, 0.96) 0%, rgba(6, 24, 46, 0.82) 44%, rgba(6, 24, 46, 0.36) 100%),
    linear-gradient(180deg, rgba(6, 24, 46, 0.1), rgba(6, 24, 46, 0.5));
}

.hero-home {
  min-height: 650px;
  background-image: url("../assets/car-guide/hero-home.jpg");
  background-position: center right;
}

.hero-repair { background-image: url("../assets/car-guide/case-repair.jpg"); }
.hero-haisha { background-image: url("../assets/car-guide/case-haisha.jpg"); }
.hero-import { background-image: url("../assets/car-guide/case-import.jpg"); }
.hero-keep { background-image: url("../assets/car-guide/case-keep.jpg"); }
.hero-loan { background-image: url("../assets/car-guide/case-loan.jpg"); }

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  align-items: center;
  padding: 76px 0 90px;
}

.hero-copy { max-width: 820px; }

.kicker, .section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #76f2ff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.section-kicker { color: #087d91; }

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 5.15rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-hero h1 { font-size: clamp(2rem, 3.9vw, 3.55rem); }
.hero h1 span { color: #8ff4ff; text-shadow: 0 0 24px rgba(6, 182, 201, 0.22); }

.hero-lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 750;
}

.hero-actions, .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button, .hero-button, .service-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 950;
  text-align: center;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button::after, .hero-button::after, .service-button::after, .case-link::after, .service-sub::after {
  content: "›";
  display: inline-flex;
  margin-left: 8px;
  font-size: 1.15em;
  font-weight: 950;
  line-height: 1;
}

.button-primary, .hero-button-primary, .service-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #07b9d4);
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--button-shadow), inset 0 1px 0 rgba(255,255,255,0.22);
}

.button-primary:hover, .hero-button-primary:hover, .service-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--blue-2), var(--cyan));
  box-shadow: 0 18px 36px rgba(15, 98, 216, 0.42), inset 0 1px 0 rgba(255,255,255,0.24);
}

.button-secondary, .hero-button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: rgba(6, 182, 201, 0.35);
  box-shadow: 0 12px 26px rgba(6, 24, 46, 0.16);
}

.button-secondary:hover, .hero-button-secondary:hover {
  transform: translateY(-2px);
  color: var(--blue-2);
  border-color: var(--cyan);
  box-shadow: 0 18px 34px rgba(6, 24, 46, 0.22);
}

.button-outline, .service-sub {
  color: var(--blue-2);
  border: 2px solid rgba(15, 98, 216, 0.34);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(6, 24, 46, 0.06);
}

.button-outline:hover, .service-sub:hover {
  border-color: var(--cyan);
  color: var(--navy);
  background: var(--cyan-soft);
}

.hero-button {
  min-width: min(100%, 310px);
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  border-radius: 16px;
}

.button-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  font-weight: 950;
}

.hero-button-secondary .button-icon { color: var(--white); background: var(--blue); }
.button-text { display: grid; gap: 2px; }
.button-text small { color: inherit; opacity: 0.82; font-size: 0.78rem; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.trust-badges li {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 850;
}

.how-strip {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.how-item { padding: 24px; border-right: 1px solid var(--line); }
.how-item:last-child { border-right: 0; }
.how-item span { display: inline-block; margin-bottom: 7px; color: var(--cyan); font-weight: 950; }
.how-item strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 1.06rem; }
.how-item p { color: var(--muted); font-size: 0.94rem; }

.section { padding: 74px 0; }
.section-soft { background: var(--paper); }
.section-blue { color: var(--white); background: linear-gradient(135deg, var(--navy), var(--navy-2)); }

.section-heading, .section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.section-heading {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px;
}

.section-heading h2, .section-head h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-blue .section-heading h2, .section-blue .section-head h2, .section-blue .section-kicker { color: var(--white); }
.section-heading p, .section-lead { color: var(--muted); font-size: 1rem; font-weight: 650; }
.section-blue .section-heading p, .section-blue .section-lead { color: rgba(255, 255, 255, 0.84); }

.case-grid, .card-grid, .service-grid, .related-grid, .faq-grid, .check-grid, .point-grid {
  display: grid;
  gap: 18px;
}

.case-grid { grid-template-columns: repeat(3, 1fr); }
.service-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.service-grid-narrow { grid-template-columns: repeat(3, 1fr); }
#primary-cta .card-grid { grid-template-columns: 1fr; }
.card-grid, .check-grid, .point-grid { grid-template-columns: repeat(3, 1fr); }
.faq-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }

.case-card, .service-card, .info-card, .check-card, .related-card, .faq-card, .ad-card, .notice-box, .operator-card, .comparison-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.case-card, .service-card, .related-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.case-card:hover, .service-card:hover, .related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 201, 0.48);
  box-shadow: 0 20px 44px rgba(6, 24, 46, 0.16);
}

.case-card::after, .service-card::after, .related-card::after {
  content: "クリックして確認";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(6, 24, 46, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.case-card:hover::after, .service-card:hover::after, .related-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.case-image, .service-image, .page-card-image {
  min-height: 150px;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
}

.case-image { min-height: 170px; }
.service-image { min-height: 142px; }

.img-repair { background-image: linear-gradient(180deg, rgba(6,24,46,0), rgba(6,24,46,0.18)), url("../assets/car-guide/case-repair.jpg"); }
.img-haisha { background-image: linear-gradient(180deg, rgba(6,24,46,0), rgba(6,24,46,0.18)), url("../assets/car-guide/case-haisha.jpg"); }
.img-import { background-image: linear-gradient(180deg, rgba(6,24,46,0), rgba(6,24,46,0.18)), url("../assets/car-guide/case-import.jpg"); }
.img-keep { background-image: linear-gradient(180deg, rgba(6,24,46,0), rgba(6,24,46,0.18)), url("../assets/car-guide/case-keep.jpg"); }
.img-loan { background-image: linear-gradient(180deg, rgba(6,24,46,0), rgba(6,24,46,0.18)), url("../assets/car-guide/case-loan.jpg"); }
.img-service { background-image: linear-gradient(180deg, rgba(6,24,46,0), rgba(6,24,46,0.18)), url("../assets/car-guide/case-services.jpg"); }

.case-content, .service-content { padding: 22px; }
.case-number, .badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #04798d;
  background: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 950;
}

.case-card h3, .service-card h3, .info-card h3, .check-card h3, .related-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.45;
}

.case-card p, .service-card p, .info-card p, .check-card p, .related-card p, .faq-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.case-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(15, 98, 216, 0.22);
  font-size: 0.9rem;
  font-weight: 950;
}

.service-content { display: grid; gap: 12px; }
.service-button { width: 100%; margin-top: 6px; }
.service-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 950;
}

.guide-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.guide-panel h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.16; }
.guide-list { display: grid; gap: 12px; }
.guide-list a {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(6, 182, 201, 0.28);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #f9fdff);
}
.guide-list a:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.guide-list strong { color: var(--navy); }
.guide-list span { color: var(--muted); font-size: 0.92rem; }

.notice-box, .operator-card, .comparison-wrap { padding: 24px; }
.notice-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; color: var(--navy); font-weight: 950; }
.notice-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.93rem; }
.notice-list li::marker { color: var(--blue); }

.faq-card { padding: 18px; }
.faq-card summary { cursor: pointer; color: var(--navy); font-weight: 950; }
.faq-card p { margin-top: 12px; }

.bottom-cta {
  padding: 36px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-3), var(--navy), #0d3e68);
}

.bottom-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.bottom-cta-copy { display: grid; gap: 4px; }
.bottom-cta-copy span { color: #76f2ff; font-size: 0.82rem; font-weight: 950; }
.bottom-cta-copy strong { font-size: clamp(1.1rem, 3vw, 1.65rem); }
.bottom-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 18px;
  background: rgba(6, 24, 46, 0.88);
  box-shadow: 0 18px 36px rgba(6, 24, 46, 0.28);
  backdrop-filter: blur(14px);
}

.mobile-bar a {
  flex: 1;
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 0.9rem;
  font-weight: 950;
}

.site-footer { padding: 34px 0; color: rgba(255,255,255,0.82); background: var(--navy-3); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-brand p { margin-top: 8px; font-size: 0.88rem; }
.site-footer .brand-text strong { color: var(--white); }
.site-footer .brand-text small { color: rgba(255,255,255,0.66); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 850; }
.footer-links a:hover { color: var(--cyan-2); }

.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--navy); background: var(--paper); }

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .header-nav { display: none; }
}

@media (max-width: 900px) {
  .hero-home { min-height: 610px; background-position: center; }
  .section-heading, .guide-panel { grid-template-columns: 1fr; }
  .case-grid, .service-grid, .service-grid-narrow, .card-grid, .check-grid, .point-grid, .faq-grid, .related-grid, .how-grid { grid-template-columns: 1fr; }
  .how-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .how-item:last-child { border-bottom: 0; }
  .notice-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.has-mobile-bar { padding-bottom: 88px; }
  .container, .wrap { width: min(100% - 24px, var(--max)); }
  .header-inner { width: min(100% - 20px, 1240px); min-height: 64px; }
  .brand-logo, .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 0.9rem; }
  .brand-text small { font-size: 0.62rem; }
  .header-cta { display: none; }
  .hero-inner { padding: 58px 0 72px; }
  .hero h1 { font-size: clamp(2.15rem, 12vw, 3.25rem); }
  .hero-lead { font-size: 0.98rem; }
  .hero-actions { display: grid; }
  .hero-button { width: 100%; min-width: 0; }
  .section { padding: 52px 0; }
  .how-strip { margin-top: -28px; }
  .case-image { min-height: 150px; }
  .service-image { min-height: 132px; }
  .case-content, .service-content, .notice-box { padding: 18px; }
  .bottom-cta-inner, .footer-inner { display: grid; }
  .bottom-cta-actions { display: grid; }
  .mobile-bar { display: flex; }
  .case-card::after, .service-card::after, .related-card::after { opacity: 1; transform: none; }
}


/* BRIDGE affiliate material layout 20260813 */
.hero-truck {
  background-image: url("../assets/car-guide/case-services.jpg");
  background-position: center;
}

.img-truck {
  background-image: linear-gradient(180deg, rgba(6,24,46,0), rgba(6,24,46,0.18)), url("../assets/car-guide/case-services.jpg");
}

.service-card-featured {
  border-color: rgba(15, 98, 216, 0.34);
}

.affiliate-banner,
.affiliate-cta {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.affiliate-banner {
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.affiliate-banner a {
  display: grid;
  place-items: center;
  max-width: 100%;
}

.affiliate-banner img:not([width="1"]) {
  display: block;
  max-width: 100%;
  height: auto;
}

.affiliate-banner > img[width="1"],
.affiliate-cta > img[width="1"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.affiliate-cta > a {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: var(--button-shadow);
  font-weight: 950;
  text-align: center;
  line-height: 1.45;
}

.affiliate-cta > a::after {
  content: "›";
  margin-left: 8px;
  font-size: 1.15em;
}

.affiliate-cta > a:hover,
.affiliate-cta > a:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--blue-2), var(--cyan));
}

.service-note {
  padding: 12px 14px;
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.86rem !important;
}

@media (max-width: 640px) {
  .affiliate-banner-wide {
    display: none;
  }

  .affiliate-cta > a {
    min-height: 62px;
    padding: 13px 14px;
    font-size: 0.95rem;
  }
}
