/*
Theme Name: AUTO PRO Renewal
Theme URI: https://auto-pro.co.jp/
Author: LSHORT
Author URI: https://lshort.co.jp/
Description: AUTO PRO リニューアル用 独自WordPressテーマ。トップページ、整備実績、Blog表示対応版。
Version: 1.4.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: autopro-renewal
*/

:root {
  --ap-navy: #001f47;
  --ap-deep: #001326;
  --ap-blue: #005eaf;
  --ap-sky: #eaf3fb;
  --ap-red: #d8132f;
  --ap-white: #ffffff;
  --ap-text: #081d3f;
  --ap-muted: #5b6c84;
  --ap-border: rgba(8, 29, 63, .13);
  --ap-shadow: 0 26px 60px rgba(0, 20, 50, .16);
  --ap-radius: 18px;
  --ap-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --ap-sans: "Inter", "Helvetica Neue", Arial, "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --ap-width: min(1180px, calc(100vw - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ap-text);
  font-family: var(--ap-sans);
  line-height: 1.9;
  background: #f6f9fc;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.ap-container { width: var(--ap-width); margin: 0 auto; }
.ap-section-title { text-align: center; margin: 0 0 34px; }
.ap-section-title__line { width: 116px; height: 3px; margin: 0 auto 12px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.ap-section-title__line span:nth-child(2) { background: var(--ap-white); }
.ap-section-title__line span:nth-child(3) { background: var(--ap-red); }
.ap-section-title__en { margin: 0; display: block; color: #fff; font-weight: 800; letter-spacing: .18em; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.2; }
.ap-section-title__ja { display: block; color: rgba(255,255,255,.82); font-weight: 700; font-size: .88rem; margin-top: 4px; }

/* Header */
.ap-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(0, 19, 38, .08);
}
.ap-header__inner {
  width: 100%;
  min-height: 80px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 29vw) 1fr 194px;
  align-items: stretch;
}
.ap-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(30px, 3.9vw, 56px);
  padding-right: 16px;
  line-height: 1;
  min-width: 0;
}
.ap-logo__main {
  display: block;
  white-space: nowrap;
  font-size: clamp(1.85rem, 2.55vw, 2.42rem);
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--ap-navy);
}
.ap-logo__main span { color: var(--ap-red); }
.ap-logo__sub { margin-top: 7px; white-space: nowrap; font-size: .72rem; letter-spacing: .05em; color: var(--ap-navy); font-weight: 600; }
.ap-logo .custom-logo { display: block; object-fit: contain; }
.ap-nav { display: flex; align-items: center; justify-content: center; min-width: 0; }
.ap-nav__list { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.75vw, 46px); padding: 0; margin: 0; list-style: none; }
.ap-nav__list a { display: grid; gap: 3px; text-align: center; font-weight: 900; font-size: .72rem; letter-spacing: .13em; color: var(--ap-deep); white-space: nowrap; }
.ap-nav__list a small { font-size: .58rem; letter-spacing: .04em; font-weight: 700; color: #43546c; }
.ap-header-contact { background: var(--ap-navy); color: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; }
.ap-header-contact svg { width: 27px; height: 27px; flex: 0 0 auto; }
.ap-header-contact strong { display: block; font-size: .78rem; letter-spacing: .18em; line-height: 1.1; }
.ap-header-contact small { display: block; font-size: .6rem; letter-spacing: .03em; opacity: .86; }
.ap-menu-button { display: none; width: 52px; height: 52px; margin-right: 14px; border: 0; background: var(--ap-navy); border-radius: 999px; color: #fff; align-self: center; }
.ap-menu-button span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: .25s ease; }

/* Hero */
.ap-hero {
  position: relative;
  min-height: clamp(458px, 42.5vw, 560px);
  overflow: hidden;
  color: #fff;
}
.ap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 73%, rgba(0, 19, 38, .34) 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.026) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.ap-hero::after { content: none; }
.ap-hero__inner { position: relative; z-index: 1; min-height: inherit; display: flex; align-items: flex-start; padding: clamp(58px, 5.4vw, 82px) 0 118px; }
.ap-hero__copy { width: min(540px, 48vw); padding-top: 0; }
.ap-hero__title {
  margin: 0;
  font-family: var(--ap-serif);
  font-weight: 500;
  letter-spacing: .11em;
  line-height: 1.55;
  font-size: clamp(2.25rem, 3.05vw, 3.28rem);
  text-shadow: 0 8px 24px rgba(0,0,0,.25);
  white-space: nowrap;
}
.ap-tricolor { width: 300px; max-width: 70%; height: 3px; margin: 26px 0 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.ap-tricolor span:nth-child(2) { background: var(--ap-white); }
.ap-tricolor span:nth-child(3) { background: var(--ap-red); }
.ap-hero__lead { margin: 0; font-size: clamp(.92rem, 1.04vw, 1rem); line-height: 2.25; max-width: 430px; text-shadow: 0 6px 18px rgba(0,0,0,.24); }
.ap-hero-features { position: absolute; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); backdrop-filter: blur(8px); }
.ap-hero-feature { display: grid; justify-items: center; align-content: center; text-align: center; border-right: 1px solid rgba(255,255,255,.24); }
.ap-hero-feature:last-child { border-right: 0; }
.ap-hero-feature strong { display: block; }
.ap-hero-feature small { display: block; }

/* Service */
.ap-service { padding: 36px 0 70px; background: linear-gradient(135deg, #001326, #002e60 55%, #001b38); }
.ap-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ap-service-card { position: relative; overflow: hidden; background: #fff; border-radius: 4px; box-shadow: var(--ap-shadow); }
.ap-service-card__image { position: relative; z-index: 2; height: 170px; overflow: visible; background: #d8e5ef; }
.ap-service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: .45s ease; }
.ap-service-card:hover img { transform: scale(1.04); }
.ap-service-card__icon { position: absolute; left: 50%; bottom: -36px; z-index: 5; transform: translateX(-50%); width: 74px; height: 74px; border-radius: 50%; background: var(--ap-navy); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 31, 71, .22); pointer-events: none; }
.ap-service-card:nth-child(2) .ap-service-card__icon { background: #fff; color: var(--ap-navy); }
.ap-service-card:nth-child(3) .ap-service-card__icon { background: var(--ap-red); color: #fff; }
.ap-service-card:nth-child(4) .ap-service-card__icon { background: #fff; color: var(--ap-blue); }
.ap-service-card__icon svg { width: 36px; height: 36px; }
.ap-service-card__body { position: relative; z-index: 1; padding: 56px 20px 22px; display: flex; flex-direction: column; background: #fff; }
.ap-service-card__body h3 { margin: 0 0 12px; text-align: center; }
.ap-service-card__body p { margin: 0 0 18px; font-weight: 650; font-size: .88rem; line-height: 2; }
.ap-more { margin-top: auto; display: inline-flex; align-items: center; gap: 14px; color: var(--ap-navy); font-weight: 800; font-size: .82rem; letter-spacing: .08em; }
.ap-more::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Content hub / Works search / Latest cards */
.ap-content-hub {
  position: relative;
  padding: 70px 0 72px;
  background:
    radial-gradient(circle at 8% 14%, rgba(0, 94, 175, .11), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(216, 19, 47, .08), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #edf5fc 100%);
}
.ap-content-hub .ap-section-title__en { color: var(--ap-navy); }
.ap-content-hub .ap-section-title__ja { color: var(--ap-muted); }
.ap-works-search {
  position: relative;
  overflow: hidden;
  margin: 0 0 62px;
  padding: clamp(26px, 3.5vw, 42px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0, 19, 38, .96), rgba(0, 47, 103, .94)),
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 15px);
  border-radius: 8px;
  box-shadow: 0 26px 64px rgba(0, 31, 71, .18);
}
.ap-works-search::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.ap-works-search__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, .62fr) 1fr;
  column-gap: 34px;
  align-items: end;
  margin: 0 0 28px;
}
.ap-kicker {
  margin: 0 0 8px;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  grid-column: 1 / -1;
}
.ap-works-search__head h2 {
  margin: 0;
  font-family: var(--ap-serif);
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1.4;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}
.ap-works-search__head p:not(.ap-kicker) {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-weight: 750;
  line-height: 2;
}
.ap-works-search__form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 150px;
  gap: 14px;
  align-items: end;
}
.ap-works-search__form label { display: block; }
.ap-works-search__form label span {
  display: block;
  margin: 0 0 8px;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.ap-works-search__form select {
  width: 100%;
  height: 54px;
  padding: 0 40px 0 16px;
  color: var(--ap-text);
  font-weight: 850;
  background: #fff;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
}
.ap-works-search__form button {
  height: 54px;
  color: #fff;
  background: var(--ap-red);
  border: 0;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(216, 19, 47, .24);
  transition: .22s ease;
}
.ap-works-search__form button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.ap-latest-block { margin: 0 0 62px; }
.ap-latest-block:last-child { margin-bottom: 0; }
.ap-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ap-latest-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(8,29,63,.08);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 31, 71, .10);
  transition: .25s ease;
}
.ap-latest-card:hover { transform: translateY(-4px); box-shadow: 0 24px 62px rgba(0, 31, 71, .16); }
.ap-latest-card__image {
  display: block;
  position: relative;
  overflow: hidden;
  background: #dbe8f1;
}
.ap-latest-card__image img {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  object-fit: cover;
  transition: .45s ease;
}
.ap-latest-card:hover .ap-latest-card__image img { transform: scale(1.04); }
.ap-latest-card__body { padding: 22px 22px 24px; }
.ap-latest-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}
.ap-latest-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: var(--ap-navy);
  background: #edf5fc;
  border: 1px solid rgba(0,94,175,.12);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.ap-latest-card__meta span:first-child {
  color: #fff;
  background: var(--ap-navy);
  border-color: var(--ap-navy);
}
.ap-latest-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1rem, 1.24vw, 1.15rem);
  line-height: 1.65;
  letter-spacing: .04em;
}
.ap-latest-card h3 a { transition: .2s ease; }
.ap-latest-card h3 a:hover { color: var(--ap-blue); }
.ap-latest-card p {
  margin: 0 0 18px;
  color: var(--ap-muted);
  font-size: .88rem;
  font-weight: 650;
  line-height: 2;
}
.ap-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ap-navy);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.ap-text-link::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.ap-latest-card--blog .ap-latest-card__meta span:first-child { background: var(--ap-blue); border-color: var(--ap-blue); }

/* About */
.ap-about { position: relative; padding: 62px 0 18px; overflow: hidden; background: linear-gradient(120deg, rgba(255,255,255,.95), rgba(235,246,255,.92)), linear-gradient(135deg, #fff, #d9ecfa); }
.ap-about::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 22%, rgba(0,94,175,.10), transparent 34%), radial-gradient(circle at 88% 88%, rgba(216,19,47,.08), transparent 26%); pointer-events: none; }
.ap-about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.45fr; gap: 48px; align-items: center; }
.ap-about__label { margin: 0 0 18px; color: var(--ap-navy); font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.ap-about__label::before { content: ""; display: inline-block; width: 70px; height: 3px; margin-right: 10px; vertical-align: middle; }
.ap-about h2 { margin: 0 0 22px; font-family: var(--ap-serif); font-weight: 500; letter-spacing: .09em; line-height: 1.7; font-size: clamp(1.7rem, 2.9vw, 2.6rem); }
.ap-about p { margin: 0 0 26px; font-weight: 650; line-height: 2.15; }
.ap-about__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.ap-about-point { text-align: center; font-weight: 800; font-size: .82rem; line-height: 1.7; }
.ap-about-point svg { display: block; width: 44px; height: 44px; margin: 0 auto 8px; color: var(--ap-navy); }
.ap-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-width: 280px; min-height: 56px; padding: 0 30px; color: #fff; background: var(--ap-navy); font-weight: 800; letter-spacing: .08em; border-radius: 3px; box-shadow: 0 18px 34px rgba(0, 31, 71, .22); transition: .25s ease; }
.ap-button:hover { transform: translateY(-2px); background: #002e68; }
.ap-about__image { position: relative; overflow: hidden; box-shadow: var(--ap-shadow); }
.ap-about__image img { width: 100%; object-fit: cover; }

/* Contact strip */
.ap-contact-strip { position: relative; z-index: 1; padding: 36px 0 28px; background: linear-gradient(120deg, rgba(255,255,255,.7), rgba(235,246,255,.9)); }
.ap-contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ap-contact-card { background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.78); min-height: 112px; display: grid; grid-template-columns: 48px 1fr 18px; align-items: center; gap: 10px; padding: 22px 22px; box-shadow: 0 18px 40px rgba(0, 31, 71, .06); }
.ap-contact-card svg { width: 36px; height: 36px; color: var(--ap-navy); }
.ap-contact-card strong { display: block; font-size: clamp(1rem, 1.5vw, 1.25rem); letter-spacing: .08em; line-height: 1.3; }
.ap-contact-card small { display: block; font-size: .78rem; color: var(--ap-text); font-weight: 700; line-height: 1.8; }
.ap-contact-card__arrow { color: var(--ap-navy); font-weight: 900; justify-self: end; }

.ap-footer { position: relative; background: linear-gradient(90deg, #001326, #002c62 50%, #001326); color: #fff; font-size: .78rem; }
.ap-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.ap-page-top { position: fixed; right: 26px; bottom: 22px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: rgba(0,31,71,.92); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 15px 32px rgba(0,0,0,.2); }

@media (max-width: 1100px) {
  .ap-works-search__head { grid-template-columns: 1fr; row-gap: 10px; }
  .ap-works-search__form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-works-search__form button { grid-column: 1 / -1; width: min(280px, 100%); justify-self: center; }
  .ap-latest-grid { gap: 18px; }
  :root { --ap-width: min(100% - 36px, 980px); }
   .ap-header__inner { grid-template-columns: 205px minmax(0, 1fr); }
  .ap-header-contact { display: none; }
  .ap-nav__list { gap: clamp(7px, 1vw, 14px); }
  .ap-logo { padding-left: 18px; padding-right: 10px; }
  .ap-service-grid { grid-template-columns: repeat(2, 1fr); }
   .ap-service-card__image { height: 210px; }
  .ap-contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .ap-content-hub { padding: 52px 0 56px; }
  .ap-works-search { margin-bottom: 48px; }
  .ap-works-search__form { grid-template-columns: 1fr; }
  .ap-works-search__form button { width: 100%; }
  .ap-latest-grid { grid-template-columns: 1fr; }
  .ap-latest-card { display: grid; grid-template-columns: minmax(210px, .42fr) 1fr; }
  .ap-latest-card__image img { height: 100%; min-height: 230px; aspect-ratio: auto; }
  .ap-header__inner { height: 72px; }
  .ap-logo { padding-left: 18px; }
  .ap-menu-button { display: block; }
  .ap-nav { position: fixed; top: 72px; left: 0; right: 0; display: block; background: rgba(255,255,255,.98); border-top: 1px solid var(--ap-border); transform: translateY(-115%); transition: .25s ease; box-shadow: 0 24px 40px rgba(0,0,0,.12); }
  .ap-nav.is-open { transform: translateY(0); }
  .ap-nav__list { display: grid; gap: 0; }
  .ap-nav__list a { padding: 14px 22px; border-bottom: 1px solid var(--ap-border); text-align: left; }
  .ap-menu-open .ap-menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ap-menu-open .ap-menu-button span:nth-child(2) { opacity: 0; }
  .ap-menu-open .ap-menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .ap-hero { min-height: auto; }
  .ap-hero__inner { min-height: 680px; padding: 62px 0 210px; }
  .ap-hero__copy { width: 100%; max-width: 560px; }
  .ap-hero__title { white-space: normal; }
  .ap-hero-features { grid-template-columns: 1fr; }
  .ap-hero-feature { grid-template-columns: 48px 1fr; justify-items: start; text-align: left; gap: 12px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .ap-about__grid { grid-template-columns: 1fr; gap: 30px; }
  .ap-about__image { order: -1; }
}

@media (max-width: 620px) {
  .ap-works-search { padding: 26px 18px; }
  .ap-works-search__head h2 { font-size: 1.6rem; }
  .ap-latest-card { display: block; }
  :root { --ap-width: min(100% - 28px, 560px); }
  .ap-logo__main { font-size: 1.55rem; letter-spacing: .13em; }
  .ap-logo__sub { font-size: .62rem; }
  .ap-service-grid { grid-template-columns: 1fr; }
  .ap-about { padding-top: 44px; }
  .ap-about__points { text-align: left; }
  .ap-about-point { grid-template-columns: 44px 1fr; text-align: left; }
  .ap-about-point svg { margin: 0; }
  .ap-button { width: 100%; min-width: 0; }
  .ap-contact-grid { grid-template-columns: 1fr; }
  .ap-contact-card { min-height: 96px; }
}

/* Archive / Single pages */
.ap-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 7vw, 108px) 0 clamp(54px, 6vw, 82px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0, 19, 38, .98), rgba(0, 55, 112, .88)),
    repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, #001326, #004889);
}
.ap-page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
}
.ap-page-hero .ap-container { position: relative; z-index: 1; }
.ap-page-hero__label {
  margin: 0 0 10px;
  color: rgba(255,255,255,.76);
  font-weight: 900;
  letter-spacing: .2em;
  font-size: .82rem;
}
.ap-page-hero h1 {
  margin: 0;
  font-family: var(--ap-serif);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.45;
  font-size: clamp(2rem, 4vw, 3.6rem);
}
.ap-page-hero p:not(.ap-page-hero__label) {
  max-width: 760px;
  margin: 18px 0 0;
  font-weight: 720;
  line-height: 2;
  color: rgba(255,255,255,.86);
}
.ap-content-hub--archive { padding-top: 58px; }
.ap-works-search--compact { margin-bottom: 44px; }
.ap-search-reset { position: relative; z-index: 1; margin: 18px 0 0; }
.ap-search-reset a { color: #fff; text-decoration: underline; font-weight: 800; }
.ap-archive-grid { margin-top: 0; }
.ap-empty {
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border: 1px solid rgba(8,29,63,.08);
  box-shadow: 0 16px 36px rgba(0,31,71,.08);
  text-align: center;
  font-weight: 800;
}
.ap-pagination { margin-top: 38px; text-align: center; }
.ap-pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ap-pagination a,
.ap-pagination span {
  min-width: 38px;
  min-height: 38px;
  padding: 9px 12px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(8,29,63,.12);
  color: var(--ap-navy);
  font-weight: 900;
}
.ap-pagination .current { background: var(--ap-navy); color: #fff; }
.ap-single-body {
  padding: clamp(48px, 6vw, 78px) 0;
  background:
    radial-gradient(circle at 8% 14%, rgba(0,94,175,.1), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #edf5fc 100%);
}
.ap-single-container { max-width: 980px; }
.ap-entry-card {
  background: #fff;
  border: 1px solid rgba(8,29,63,.08);
  box-shadow: 0 28px 70px rgba(0,31,71,.13);
  padding: clamp(24px, 4.5vw, 58px);
}
.ap-entry-eyecatch { margin: 0 0 34px; }
.ap-entry-eyecatch img { width: 100%; height: auto; display: block; }
.ap-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.ap-badges a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 850;
  font-size: .78rem;
  letter-spacing: .04em;
}
.ap-entry-card .ap-badges a { color: var(--ap-navy); border-color: rgba(8,29,63,.14); background: #f2f7fc; }
.ap-work-summary-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 42px;
}
.ap-work-summary-box dl {
  margin: 0;
  padding: 20px 22px;
  background: linear-gradient(180deg, #f7fbff, #edf5fc);
  border-left: 4px solid var(--ap-blue);
}
.ap-work-summary-box dt {
  margin: 0 0 7px;
  color: var(--ap-muted);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
}
.ap-work-summary-box dd { margin: 0; font-weight: 900; color: var(--ap-navy); line-height: 1.7; }
.ap-work-section { margin-top: clamp(34px, 5vw, 54px); }
.ap-work-section:first-of-type { margin-top: 0; }
.ap-work-section h2 {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 14px;
  color: var(--ap-navy);
  font-family: var(--ap-serif);
  font-weight: 600;
  letter-spacing: .07em;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
.ap-work-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 3px;
}
.ap-entry-content { color: var(--ap-text); font-size: 1rem; line-height: 2.05; }
.ap-entry-content > *:first-child { margin-top: 0; }
.ap-entry-content > *:last-child { margin-bottom: 0; }
.ap-entry-content h2,
.ap-entry-content h3,
.ap-entry-content h4 { color: var(--ap-navy); line-height: 1.55; }
.ap-entry-content img { max-width: 100%; height: auto; }
.ap-entry-content figure { margin-left: 0; margin-right: 0; }
.ap-entry-content a { color: var(--ap-blue); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .ap-work-summary-box { grid-template-columns: 1fr; }
  .ap-entry-card { padding: 24px 18px; }
  .ap-page-hero { padding-top: 62px; }
}

/* ==========================================================
   Client adjustments integrated from Customizer CSS (2026-10-19 backup)
   NOTE: preserve this order for cascade compatibility.
   ========================================================== */

/* ヒーロー：背景画像の差し替え（308 夕景） */
.ap-hero {
  background:
    linear-gradient(90deg, rgba(0,31,71,.96) 0%, rgba(0,31,71,.9) 25%, rgba(0,31,71,.4) 42%, rgba(0,31,71,0) 55%),
    var(--ap-dynamic-about-bg) right bottom / auto 100% no-repeat,
    #0f2a5c;
}
@media (max-width: 860px) {
  .ap-hero {
    background-position: left top, 72% bottom, center;
  }
}

/* ヘッダーロゴ：サイズと位置 */
.ap-logo {
  align-items: flex-start;
}
.ap-logo .custom-logo {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 62px;
}
@media (max-width: 860px) {
  .ap-logo .custom-logo {
    max-height: 48px;
  }
}

/* 案1：トリコロールの青をロゴの青に揃える */
.ap-tricolor span:nth-child(1),
.ap-section-title__line span:nth-child(1) {
  background: #0017fc;
}
.ap-works-search::before {
  background: linear-gradient(90deg, #0017fc 0 35%, #fff 35% 62%, var(--ap-red) 62% 100%);
}
.ap-about__label::before {
  background: linear-gradient(90deg, #0017fc 0 48%, #fff 48% 62%, var(--ap-red) 62% 100%);
}
.ap-footer::before {
  background: linear-gradient(90deg, #0017fc 0 32%, transparent 32% 68%, var(--ap-red) 68% 100%);
}
.ap-page-hero::before,
.ap-work-section h2::after {
  background: linear-gradient(90deg, #0017fc 0 34%, #fff 34% 62%, var(--ap-red) 62% 100%);
}

/* 案2：ロゴをホーロー看板のように見せる */
.ap-logo .custom-logo {
  box-shadow: 0 2px 4px rgba(0, 19, 38, .12), 0 8px 18px rgba(0, 19, 38, .14);
  border-radius: 2px;
}

/* ロゴの左端を本文の左端に揃える（PC表示のみ） */
@media (min-width: 1101px) {
  .ap-logo {
    padding-left: max(30px, calc((100vw - var(--ap-width)) / 2));
  }
}

/* サイト全体の本文幅を広げる（大きな画面のみ） */
@media (min-width: 1101px) {
  :root {
    --ap-width: min(1280px, calc(100vw - 56px));
  }
}

/* ヒーロー：サブコピーを細めに、ボックス下の余白を広げる */
.ap-hero__lead {
  font-weight: 500;
  letter-spacing: .1em;
}
.ap-hero-features {
  bottom: 56px;
}
.ap-hero__inner {
  padding-bottom: 226px;
}

/* ヒーローのボックス：新デザイン */
.ap-hero-features {
  width: min(660px, 56vw);
  background: rgba(5, 30, 66, .82);
  border: 1px solid rgba(255, 255, 255, .22);
}
.ap-hero-feature {
  min-height: 112px;
  padding: 20px 14px 18px;
  border-right-color: rgba(255, 255, 255, .18);
}
.ap-hero-feature svg { width: 26px; height: 26px; margin-bottom: 10px; }
.ap-hero-feature strong { font-size: 1rem; letter-spacing: .08em; }
.ap-hero-feature small {
  margin-top: 6px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .8;
}
@media (min-width: 1101px) {
  .ap-hero-feature small { white-space: nowrap; }
}
/* タブレット（621〜860px）：後続の全幅指定で下余白が226pxに戻り、説明文と3つのボックスが重なるのを解消 */
@media (min-width: 621px) and (max-width: 860px) {
  .ap-hero__inner { padding-bottom: 430px; }
}

/* 初めてのお客様へ：トップの帯 */
.ap-guide-band { padding: 22px 0; background: #f4f7fb; }
.ap-guide-banner { display: grid; grid-template-columns: 96px 1fr 300px; align-items: center; gap: 28px; padding: 26px 34px; background: #e9f0f8; border-radius: 6px; }
.ap-guide-banner__icon { color: var(--ap-navy); justify-self: center; }
.ap-guide-banner__icon svg { width: 64px; height: 64px; }
.ap-guide-banner__kicker { margin: 0 0 2px; color: var(--ap-navy); font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.ap-guide-banner__title { margin: 0 0 6px; color: var(--ap-navy); font-family: var(--ap-serif); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.85rem); letter-spacing: .08em; line-height: 1.5; }
.ap-guide-banner__text { margin: 0 0 14px; color: var(--ap-text); font-size: .88rem; font-weight: 500; letter-spacing: .04em; line-height: 1.8; }
.ap-guide-banner__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ap-guide-banner__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 10px; background: #fff; border: 1px solid rgba(0, 31, 71, .1); border-radius: 4px; color: var(--ap-navy); font-size: .82rem; font-weight: 600; letter-spacing: .04em; line-height: 1.4; }
.ap-guide-banner__chips li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ap-navy); color: #fff; font-size: .7rem; font-weight: 900; }
.ap-guide-banner__action { padding-left: 28px; border-left: 1px solid rgba(0, 31, 71, .15); }
.ap-guide-banner__button { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 22px 0 28px; background: var(--ap-navy); color: #fff; border-radius: 4px; font-weight: 700; letter-spacing: .12em; transition: .2s ease; }
.ap-guide-banner__button span { font-size: 1.3rem; line-height: 1; }
.ap-guide-banner__button:hover { background: #002e68; transform: translateY(-2px); }
@media (max-width: 1100px) {
  .ap-guide-banner { grid-template-columns: 72px 1fr; }
  .ap-guide-banner__icon svg { width: 52px; height: 52px; }
  .ap-guide-banner__action { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}
@media (max-width: 620px) {
  .ap-guide-banner { grid-template-columns: 1fr; gap: 16px; }
  .ap-guide-banner__icon { justify-self: start; }
}

/* お願いのページ（/guide/） */
.ap-guide { color: var(--ap-text); line-height: 2; letter-spacing: .03em; }
.ap-guide p { margin: 0 0 1em; }
.ap-guide section + section { margin-top: 56px; }
.ap-guide__label { margin: 0 0 4px !important; color: var(--ap-navy); font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.ap-guide__h2 { position: relative; margin: 0 0 22px !important; padding-bottom: 14px; color: var(--ap-navy); font-family: var(--ap-serif); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: .07em; line-height: 1.5; }
.ap-guide__h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 92px; height: 3px; background: linear-gradient(90deg, #0017fc 0 34%, #dfe6ee 34% 62%, var(--ap-red) 62% 100%); }
.ap-guide__philosophy { padding: clamp(24px, 4vw, 40px); background: #eef3f9; border-radius: 6px; }
.ap-guide__priority { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 22px; }
.ap-guide__priority-item { padding: 16px 20px; background: #fff; border-left: 4px solid var(--ap-navy); border-radius: 4px; }
.ap-guide__priority-item--now { border-left-color: var(--ap-red); }
.ap-guide__priority-item strong { display: block; color: var(--ap-navy); font-size: 1.02rem; line-height: 1.6; }
.ap-guide__priority-item span { display: block; color: var(--ap-muted); font-size: .84rem; line-height: 1.7; }
.ap-guide__bridge { margin-bottom: 26px !important; }
.ap-guide__list { display: grid; gap: 14px; }
.ap-guide__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 24px; background: #fff; border: 1px solid rgba(0, 31, 71, .1); border-radius: 6px; }
.ap-guide__num { color: var(--ap-navy); font-family: var(--ap-serif); font-size: 1.6rem; line-height: 1.2; letter-spacing: .04em; opacity: .55; }
.ap-guide__item h3 { margin: 0 0 8px !important; color: var(--ap-navy); font-size: 1.08rem; letter-spacing: .06em; line-height: 1.6; }
.ap-guide__item p:last-child { margin-bottom: 0; }
.ap-guide__item ul { margin: 0; padding-left: 1.2em; }
.ap-guide__item li { margin: 0 0 .4em; }
.ap-guide__item strong { color: var(--ap-navy); }
.ap-guide__note { margin: 10px 0 0 !important; padding: 10px 14px; background: #eef3f9; border-radius: 4px; font-size: .88rem; }
.ap-guide__closing { text-align: center; }
.ap-guide__tel { display: inline-grid; gap: 2px; margin-top: 8px; padding: 22px 48px; background: var(--ap-navy); color: #fff !important; border-radius: 6px; text-decoration: none !important; box-shadow: 0 16px 34px rgba(0, 31, 71, .2); transition: .2s ease; }
.ap-guide__tel:hover { transform: translateY(-2px); }
.ap-guide__tel-label { font-size: .8rem; letter-spacing: .12em; opacity: .85; }
.ap-guide__tel-number { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: .1em; line-height: 1.4; }
.ap-guide__tel-hours { font-size: .76rem; opacity: .8; }
@media (max-width: 620px) {
  .ap-guide__priority { grid-template-columns: 1fr; }
  .ap-guide__item { grid-template-columns: 1fr; gap: 4px; padding: 18px; }
  .ap-guide__num { font-size: 1.2rem; }
  .ap-guide__tel { display: grid; padding: 20px; }
  .ap-guide br { display: none; }
}

/* お願いのページ：工場写真のセクション */
.ap-guide__photo { margin: 0 0 18px; overflow: hidden; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 31, 71, .14); }
.ap-guide__photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ap-guide__reality-text { margin: 0 !important; color: var(--ap-navy); font-family: var(--ap-serif); font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600; letter-spacing: .06em; line-height: 2; }

/* ページタイトル：言葉の途中で改行しない */
body:has(.ap-guide) h1 {
  word-break: auto-phrase;
}

/* ヘッダー右上：電話ボタン */
.ap-header-tel { gap: 10px; transition: background .2s ease; }
.ap-header-tel:hover { background: #002e68; }
.ap-header-tel svg { width: 24px; height: 24px; }
.ap-header-tel strong { font-size: 1.02rem; letter-spacing: .06em; line-height: 1.2; white-space: nowrap; }
.ap-header-tel small { margin-top: 3px; font-size: .6rem; letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 860px) {
  .ap-header__inner { grid-template-columns: 1fr auto auto; }
  .ap-header-tel { display: flex; align-self: center; width: 52px; height: 52px; margin-right: 10px; padding: 0; border-radius: 999px; }
  .ap-header-tel span { display: none; }
}

/* サービス：アイコンの色を紺に統一 */
.ap-service-card .ap-service-card__icon,
.ap-service-card:nth-child(n) .ap-service-card__icon {
  background: var(--ap-navy);
  color: #fff;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(0, 31, 71, .25);
}
/* サービス：「詳しく見る」を非表示 */
.ap-service-card .ap-more { display: none; }
.ap-service-card__body { min-height: 0; padding-bottom: 28px; }
.ap-service-card__body p { margin-bottom: 0; }

/* サービス：見出しを1行に収め、言葉の切れ目で改行する */
.ap-service-card__body h3 {
  font-size: 1rem;
  letter-spacing: .03em;
  word-break: auto-phrase;
}

/* サービス：説明文の改行を元の詰めた形に戻す */
.ap-service-card__body p {
  word-break: normal;
  text-wrap: pretty;
}

/* サービス：チューニングのカードだけ ARB へのリンクを表示 */
.ap-service-card .ap-more--arb {
  display: inline-flex;
  margin-top: 18px;
}

/* トップページだけ「整備実績を探す」を非表示（一覧ページには残す） */
.home .ap-works-search {
  display: none;
}

/* ABOUT：店舗写真の比率を3:2に、看板が切れないよう上基準で表示 */
.ap-about__image img {
  aspect-ratio: 3 / 2;
  object-position: center top;
}

/* ABOUT：3つのポイント（見出し＋説明） */
.ap-about-point__text { display: block; }
.ap-about-point__text strong { display: block; color: var(--ap-navy); font-size: .92rem; letter-spacing: .08em; line-height: 1.6; }
.ap-about-point__text span { display: block; margin-top: 2px; color: var(--ap-muted); font-size: .72rem; font-weight: 600; letter-spacing: 0; line-height: 1.6; white-space: nowrap; }

/* スタッフ紹介ページ（/staff/） */
.ap-staffp { container-type: inline-size; color: var(--ap-text); letter-spacing: .03em; }
.ap-staffp p { margin: 0; }
.ap-staffp h2, .ap-staffp h3 { margin: 0; }
.ap-staffp__label { display: flex; align-items: center; gap: 10px; color: var(--ap-navy); font-size: .7rem; font-weight: 700; letter-spacing: .2em; }
.ap-staffp__label::before { content: ""; width: 54px; height: 3px; background: linear-gradient(90deg, #0017fc 0 42%, transparent 42% 58%, var(--ap-red) 58% 100%); }
/* ① 冒頭 */
.ap-staffp__intro { display: grid; align-items: center; }
.ap-staffp__title { margin: 14px 0 18px !important; color: var(--ap-navy); font-family: var(--ap-serif); font-weight: 600; }
.ap-staffp__lead { font-size: .92rem; font-weight: 500; line-height: 2.1; }
.ap-staffp__duo { grid-template-columns: 1fr 1fr; gap: 6px; }
.ap-staffp__duo-item { overflow: hidden; background-color: #1c3557; background-size: cover; }
.ap-staffp__duo-item::before { content: ""; position: absolute; inset: 0; }
.ap-staffp__duo-item--challenge { background-color: #2b4a73; }
.ap-staffp__duo-caption { position: absolute; color: #fff; }
.ap-staffp__duo-caption span { display: block; font-weight: 700; letter-spacing: .2em; }
.ap-staffp__duo-caption strong { display: block; font-family: var(--ap-serif); font-size: 2rem; font-weight: 600; letter-spacing: .2em; line-height: 1.3; }
.ap-staffp__duo-caption small { display: block; line-height: 1.7; }
/* ② スタッフ紹介 */
.ap-staffp__members { margin-top: 64px; }
.ap-staffp__members-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-bottom: 22px; }
.ap-staffp__h2 { display: flex; align-items: baseline; gap: 12px; color: var(--ap-navy); font-family: var(--ap-serif); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: .08em; }
.ap-staffp__h2 span { font-family: var(--ap-sans); font-size: .66rem; font-weight: 700; letter-spacing: .2em; }
.ap-staffp__members-head p { color: var(--ap-muted); font-size: .82rem; font-weight: 600; }
.ap-staffp__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@container (min-width: 1040px) { .ap-staffp__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ap-staffp__card { overflow: hidden; background: #fff; border: 1px solid rgba(0, 31, 71, .1); border-radius: 6px; box-shadow: 0 14px 34px rgba(0, 31, 71, .08); }
.ap-staffp__photo { aspect-ratio: 4 / 3; background-color: #d6e0ea; background-image: none; background-size: cover; background-position: center 25%; }
.ap-staffp__body { padding: 18px 18px 16px; }
.ap-staffp__body h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 10px; margin-bottom: 12px !important; border-bottom: 1px solid rgba(0, 31, 71, .12); color: var(--ap-navy); font-family: var(--ap-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .1em; line-height: 1.4; }
.ap-staffp__body h3 small { font-family: var(--ap-sans); font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--ap-muted); }
.ap-staffp__body > p { font-size: .84rem; font-weight: 500; line-height: 1.95; }
.ap-staffp details { margin-top: 12px; border-top: 1px dashed rgba(0, 31, 71, .18); }
.ap-staffp summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 2px; color: var(--ap-navy); font-size: .8rem; font-weight: 700; letter-spacing: .1em; cursor: pointer; list-style: none; }
.ap-staffp summary::-webkit-details-marker { display: none; }
.ap-staffp summary::after { content: "＋"; font-size: .9rem; }
.ap-staffp details[open] summary::after { content: "－"; }
.ap-staffp details ul { margin: 8px 0 0; padding: 12px 14px 12px 28px; background: #f2f6fa; border-radius: 4px; }
.ap-staffp details li { margin: 0 0 .5em; font-size: .8rem; line-height: 1.85; }
.ap-staffp details li:last-child { margin-bottom: 0; }
/* ③ 結び */
.ap-staffp__closing { margin-top: 60px; padding: 34px 36px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 32px; background: #eef3f9; border-radius: 6px; }
.ap-staffp__closing h2 { margin-bottom: 8px !important; color: var(--ap-navy); font-family: var(--ap-serif); font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 1.5rem); letter-spacing: .08em; }
.ap-staffp__closing p { font-size: .84rem; font-weight: 500; line-height: 1.9; }
.ap-staffp__button { display: grid; justify-items: center; gap: 0; padding: 14px 26px; background: var(--ap-navy); color: #fff !important; border-radius: 4px; text-decoration: none !important; font-size: .78rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap; box-shadow: 0 12px 26px rgba(0, 31, 71, .2); }
.ap-staffp__button span { font-size: 1.2rem; letter-spacing: .1em; }
@media (max-width: 1100px) {
  .ap-staffp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-staffp__closing { grid-template-columns: 1fr; text-align: center; }
  .ap-staffp__button { justify-self: center; }
}
@media (max-width: 620px) {
  .ap-staffp__grid { grid-template-columns: 1fr; }
  .ap-staffp__h2 { flex-wrap: wrap; }
  .ap-staffp__closing { padding: 26px 18px; }
}

/* スタッフ紹介ページ：見出しの改行修正＋「経験」「挑戦」を斜めに切り分け（前回のCSSの下に追加） */
.ap-staffp__intro { grid-template-columns: 1fr 1.05fr; gap: 32px; }
.ap-staffp__title { font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: .05em; line-height: 1.6; white-space: nowrap; }
.ap-staffp__duo { display: block; position: relative; height: 360px; overflow: hidden; border-radius: 6px; background: #fff; }
.ap-staffp__duo-item { position: absolute; top: 0; bottom: 0; width: 60%; border-radius: 0; background-position: center 20%; }
.ap-staffp__duo-item:first-child { left: 0; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
.ap-staffp__duo-item--challenge { right: 0; clip-path: polygon(35% 0, 100% 0, 100% 100%, 15% 100%); }
.ap-staffp__duo-item::before { background: linear-gradient(160deg, rgba(0, 31, 71, 0) 40%, rgba(0, 31, 71, .88) 100%); }
.ap-staffp__duo-caption { left: 22px; right: auto; bottom: 20px; }
.ap-staffp__duo-item--challenge .ap-staffp__duo-caption { left: auto; right: 22px; text-align: right; color: var(--ap-navy); }
.ap-staffp__duo-caption span { font-size: .62rem; opacity: .9; }
.ap-staffp__duo-caption span::after { content: ""; display: block; width: 22px; height: 1px; margin: 8px 0 4px; background: currentColor; }
.ap-staffp__duo-item--challenge .ap-staffp__duo-caption span::after { margin-left: auto; }
.ap-staffp__duo-caption strong { margin: 0 0 4px; }
.ap-staffp__duo-caption small { font-size: .76rem; font-weight: 600; opacity: 1; }
@media (max-width: 1100px) {
  .ap-staffp__intro { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ap-staffp__duo { height: 250px; }
  .ap-staffp__duo-caption { left: 14px; bottom: 14px; }
  .ap-staffp__duo-item--challenge .ap-staffp__duo-caption { right: 14px; }
  .ap-staffp__duo-caption strong { font-size: 1.4rem; }
  .ap-staffp__duo-caption small { font-size: .66rem; }
  .ap-staffp__title { font-size: 1.45rem; }
}

/* スタッフ紹介：こぼれ話（文章1段落） */
.ap-staffp details p { margin: 8px 0 0 !important; padding: 12px 14px; background: #f2f6fa; border-radius: 4px; font-size: .8rem; line-height: 1.9; }

/* スタッフ紹介：note へのリンク */
.ap-staffp__sns { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border: 1px solid rgba(0, 31, 71, .14); border-radius: 999px; color: var(--ap-navy) !important; text-decoration: none !important; font-size: .76rem; font-weight: 700; transition: .2s ease; }
.ap-staffp__sns:hover { background: #f2f6fa; border-color: rgba(0, 31, 71, .3); }
.ap-staffp__sns-logo { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 1.05rem; font-weight: 900; letter-spacing: .08em; color: #111; line-height: 1; }
.ap-staffp__sns-text { flex: 1; letter-spacing: .04em; }

/* 会社概要ページ（/company/） */
.ap-company { color: var(--ap-text); letter-spacing: .03em; }
.ap-company p { margin: 0 0 1em; line-height: 2; }
.ap-company__label { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; color: var(--ap-navy); font-size: .7rem; font-weight: 700; letter-spacing: .2em; }
.ap-company__label::before { content: ""; width: 54px; height: 3px; background: linear-gradient(90deg, #0017fc 0 42%, transparent 42% 58%, var(--ap-red) 58% 100%); }
.ap-company__h2 { margin: 0 0 18px !important; color: var(--ap-navy); font-family: var(--ap-serif); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: .06em; line-height: 1.6; }
.ap-company__intro p:last-child { font-size: .92rem; font-weight: 500; }
.ap-company__block { margin-top: 56px; }
.ap-company__h3 { position: relative; margin: 0 0 22px !important; padding-bottom: 12px; color: var(--ap-navy); font-family: var(--ap-serif); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: .08em; }
.ap-company__h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 80px; height: 3px; background: linear-gradient(90deg, #0017fc 0 34%, #dfe6ee 34% 62%, var(--ap-red) 62% 100%); }
.ap-company__table { width: 100%; border-collapse: collapse; border-top: 1px solid rgba(0, 31, 71, .15); }
.ap-company__table th, .ap-company__table td { padding: 18px 20px; border-bottom: 1px solid rgba(0, 31, 71, .12); text-align: left; vertical-align: top; font-size: .92rem; line-height: 1.9; }
.ap-company__table th { width: 180px; background: #f2f6fa; color: var(--ap-navy); font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.ap-company__table a { color: var(--ap-navy); font-weight: 700; text-decoration: none; }
.ap-company__brands { display: grid; gap: 14px; }
.ap-company__brand { display: block; padding: 20px 22px; background: #fff; border: 1px solid rgba(0, 31, 71, .12); border-radius: 6px; color: var(--ap-text) !important; text-decoration: none !important; transition: .2s ease; }
a.ap-company__brand:hover { border-color: rgba(0, 31, 71, .35); transform: translateY(-2px); }
.ap-company__brand strong { display: block; margin-bottom: 8px; color: var(--ap-navy); font-size: 1.15rem; line-height: 1.4; }
.ap-company__brand small { display: block; margin-top: 2px; color: var(--ap-muted); font-size: .68rem; letter-spacing: .08em; }
.ap-company__brand span { display: block; font-size: .82rem; line-height: 1.8; }
.ap-company__access { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.ap-company__map { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: #e6ecf2; }
.ap-company__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.ap-company__note { font-size: .86rem; }
.ap-company__note a { color: var(--ap-navy); font-weight: 700; text-decoration: underline; }
.ap-company__tel { display: grid; gap: 2px; justify-items: start; padding: 18px 24px; background: var(--ap-navy); color: #fff !important; border-radius: 6px; text-decoration: none !important; font-size: 1.6rem; font-weight: 700; letter-spacing: .1em; box-shadow: 0 14px 30px rgba(0, 31, 71, .2); }
.ap-company__tel span { font-size: .74rem; letter-spacing: .1em; opacity: .85; }
@media (max-width: 860px) {
  .ap-company__access { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ap-company__table th, .ap-company__table td { display: block; width: 100%; padding: 10px 14px; }
  .ap-company__table th { border-bottom: 0; }
  .ap-company br.sp-hide { display: none; }
}

/* 会社概要：ページ上部の写真の帯 */
body:has(.ap-company) main :is(section, div, header):has(h1:not(.ap-company h1)):not(:has(.ap-company)) { display: none; }
.ap-company__hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 300px; margin-bottom: 48px; border-radius: 6px; background-color: #001f47; background-size: cover; background-position: center 35%; color: #fff; }
.ap-company__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 31, 71, .95) 0%, rgba(0, 31, 71, .82) 35%, rgba(0, 31, 71, .25) 70%, rgba(0, 31, 71, .1) 100%); }
.ap-company__hero-inner { position: relative; padding: 40px 44px; }
.ap-company__hero-line { display: grid; grid-template-columns: repeat(3, 1fr); width: 150px; height: 3px; margin: 0 0 18px !important; }
.ap-company__hero-line span:nth-child(1) { background: #0017fc; }
.ap-company__hero-line span:nth-child(2) { background: #fff; }
.ap-company__hero-line span:nth-child(3) { background: var(--ap-red); }
.ap-company__hero-en { margin: 0 !important; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: .2em; line-height: 1.2; }
.ap-company__hero-ja { margin: 8px 0 0 !important; color: #fff !important; font-family: var(--ap-sans) !important; font-size: 1rem !important; font-weight: 700; letter-spacing: .12em; line-height: 1.5; }
@media (max-width: 620px) {
  .ap-company__hero { min-height: 220px; margin-bottom: 36px; background-position: 70% center; }
  .ap-company__hero::before { background: linear-gradient(90deg, rgba(0, 31, 71, .92) 0%, rgba(0, 31, 71, .55) 60%, rgba(0, 31, 71, .25) 100%); }
  .ap-company__hero-inner { padding: 28px 22px; }
}

/* 会社概要：冒頭「受け継ぐ技術。挑戦する未来。」 */
.ap-company__h2--line { position: relative; padding-bottom: 16px; margin-bottom: 24px !important; }
.ap-company__h2--line::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; }
.ap-company__intro p { margin: 0 0 1.2em !important; font-size: .95rem; font-weight: 500; line-height: 2; }
.ap-company__intro p:last-child { margin-bottom: 0 !important; }
@media (max-width: 620px) {
  .ap-company__intro br { display: none; }
}

/* 会社概要：冒頭の線を下の見出しと同じサイズ・色に揃える */
.ap-company__h2--line::after {
  width: 80px;
  background: linear-gradient(90deg, #0017fc 0 34%, #dfe6ee 34% 62%, var(--ap-red) 62% 100%);
}

/* 会社概要：テーマのページタイトル（PAGE＋会社概要）を隠す */
body:has(.ap-company) h1:not(.ap-company h1),
body:has(.ap-company) :has(+ h1:not(.ap-company h1)) {
  display: none;
}

/* フッター */
.ap-footer { padding: 44px 0 26px; text-align: left; letter-spacing: .04em; }
.ap-footer__inner { display: grid; gap: 26px; }
.ap-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ap-footer__nav a { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .08em; opacity: .9; transition: opacity .2s ease; }
.ap-footer__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.ap-footer__info p { margin: 0 0 4px; color: rgba(255, 255, 255, .8); font-size: .78rem; line-height: 1.9; }
.ap-footer__info a { color: #fff; font-weight: 700; white-space: nowrap; }
.ap-footer__name { color: #fff !important; font-size: .98rem !important; font-weight: 700; letter-spacing: .1em; }
.ap-footer__name span { margin-left: 12px; font-size: .72rem; font-weight: 600; opacity: .75; }
.ap-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.ap-footer__bottom a { color: rgba(255, 255, 255, .85); font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }
.ap-footer__bottom small { color: rgba(255, 255, 255, .7); font-size: .74rem; letter-spacing: .08em; }
@media (max-width: 620px) {
  .ap-footer { padding: 34px 0 22px; }
  .ap-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .ap-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* プライバシーポリシー（/privacy-policy/） */
.ap-policy__hero { min-height: 220px; background: linear-gradient(120deg, #001326, #002e60 60%, #001b38); }
.ap-policy__hero::before { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 14px); }
.ap-policy__hero .ap-company__hero-en { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.ap-policy__lead { margin: 0 0 36px !important; font-size: .95rem; font-weight: 500; line-height: 2.1; }
.ap-policy__list { display: grid; gap: 14px; }
.ap-policy__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 26px; background: #fff; border: 1px solid rgba(0, 31, 71, .1); border-radius: 6px; }
.ap-policy__num { color: var(--ap-navy); font-family: var(--ap-serif); font-size: 1.6rem; line-height: 1.2; opacity: .55; }
.ap-policy__item h2 { margin: 0 0 10px !important; color: var(--ap-navy); font-family: var(--ap-sans) !important; font-size: 1.08rem !important; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.ap-policy__item p { margin: 0 0 .8em !important; font-size: .9rem; line-height: 1.95; }
.ap-policy__item p:last-child { margin-bottom: 0 !important; }
.ap-policy__item ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin: 0 0 .8em; padding: 14px 18px 14px 34px; background: #f2f6fa; border-radius: 4px; }
.ap-policy__item ul:last-child { margin-bottom: 0; }
.ap-policy__item li { font-size: .88rem; line-height: 1.8; }
.ap-policy__contact { margin-top: 48px; padding: 30px 32px; background: #eef3f9; border-radius: 6px; }
.ap-policy__contact-label { display: flex; align-items: center; gap: 10px; margin: 0 0 6px !important; color: var(--ap-navy); font-size: .7rem; font-weight: 700; letter-spacing: .2em; }
.ap-policy__contact-label::before { content: ""; width: 54px; height: 3px; background: linear-gradient(90deg, #0017fc 0 34%, #dfe6ee 34% 62%, var(--ap-red) 62% 100%); }
.ap-policy__contact h2 { margin: 0 0 16px !important; color: var(--ap-navy); font-family: var(--ap-serif); font-size: 1.3rem !important; font-weight: 600; letter-spacing: .06em; }
.ap-policy__contact dl { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(0, 31, 71, .12); }
.ap-policy__contact dl div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 4px; border-bottom: 1px solid rgba(0, 31, 71, .12); }
.ap-policy__contact dt { color: var(--ap-navy); font-size: .86rem; font-weight: 700; letter-spacing: .06em; }
.ap-policy__contact dd { margin: 0; font-size: .9rem; }
.ap-policy__contact a { color: var(--ap-navy); font-weight: 700; text-decoration: none; }
@media (max-width: 620px) {
  .ap-policy__hero { min-height: 180px; }
  .ap-policy__item { grid-template-columns: 1fr; gap: 4px; padding: 20px 18px; }
  .ap-policy__num { font-size: 1.2rem; }
  .ap-policy__item ul { grid-template-columns: 1fr; }
  .ap-policy__contact { padding: 24px 18px; }
  .ap-policy__contact dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* スマホ表示：ヒーローを縦長レイアウトに（文字 → 車 → 3つのボックス） */
@media (max-width: 620px) {
  .ap-hero {
    min-height: 0;
  }
  .ap-hero::before { content: none; }
  .ap-hero__inner {
    min-height: 0;
    display: block;
    padding: 40px 0 28px;
  }
  .ap-hero__title { font-size: 1.75rem; letter-spacing: .06em; line-height: 1.6; }
  .ap-tricolor { width: 210px; margin: 18px 0 18px; }
  .ap-hero__lead { font-size: .9rem; line-height: 2; }
  .ap-hero-features {
    position: static;
    width: 100%;
    gap: 10px;
    border: 0;
    background: none;
    backdrop-filter: none;
  }
  .ap-hero-feature {
    min-height: 0;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(5, 30, 66, .78);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
  }
  .ap-hero-feature:last-child { border-right: 1px solid rgba(255, 255, 255, .22); }
  .ap-hero-feature svg { margin: 0; justify-self: center; }
  .ap-hero-feature small { margin-top: 2px; white-space: normal; }
}

/* スマホ：差し替えた縦長写真に合わせて、車の下からボックスが始まるよう調整 */
@media (max-width: 620px) {
  .ap-hero {
    background: var(--ap-dynamic-hero-mobile) center top / 100% auto no-repeat, #0a1e42 !important;
  }
  .ap-hero-features { margin-top: calc(122vw - 230px); }
}

/* スマホ：「初めてのお客様へ」の帯をコンパクトに */
.ap-guide-banner br.sp-br { display: none; }
@media (max-width: 620px) {
  .ap-guide-band { padding: 16px 0; }
  .ap-guide-banner { display: block; position: relative; padding: 20px 14px 16px; }
  .ap-guide-banner__icon { position: absolute; left: 16px; top: 22px; }
  .ap-guide-banner__icon svg { width: 36px; height: 36px; }
  .ap-guide-banner__body { display: contents; }
  .ap-guide-banner__kicker, .ap-guide-banner__title, .ap-guide-banner__text { margin-left: 52px !important; }
  .ap-guide-banner__kicker { font-size: .6rem; letter-spacing: .12em; }
  .ap-guide-banner__title { font-size: 1.12rem; letter-spacing: .04em; line-height: 1.45; margin-bottom: 6px !important; word-break: auto-phrase; }
  .ap-guide-banner__text { font-size: .76rem; line-height: 1.7; margin-bottom: 14px !important; }
  .ap-guide-banner__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .ap-guide-banner__chips li { white-space: nowrap; letter-spacing: 0; }
  .ap-guide-banner br.sp-br { display: inline; }
  .ap-guide-banner__action { padding: 0; border: 0; }
  .ap-guide-banner__button { min-height: 46px; justify-content: center; gap: 14px; padding: 0 18px; font-size: .9rem; }
}

/* スマホ：チップはチェックを上、文字を中央2行に */
@media (max-width: 620px) {
  .ap-guide-banner__chips li { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; text-align: center; font-size: .7rem; line-height: 1.45; }
  .ap-guide-banner__chips li::before { flex: 0 0 auto; }
}
@media (max-width: 380px) {
  .ap-guide-banner__title { font-size: 1rem; letter-spacing: .02em; }
}

/* スマホ：サービスのカードをコンパクトに */
@media (max-width: 620px) {
  .ap-service { padding: 40px 0 44px; }
  .ap-service .ap-section-title { margin-bottom: 22px; }
  .ap-service-grid { gap: 14px; }
  .ap-service-card__image { height: 150px; }
  .ap-service-card__icon { width: 54px; height: 54px; bottom: -27px; border-width: 3px; }
  .ap-service-card__icon svg { width: 26px; height: 26px; }
  .ap-service-card__body { padding: 38px 18px 20px; }
  .ap-service-card__body h3 { margin-bottom: 8px; }
  .ap-service-card__body p { font-size: .82rem; font-weight: 500; line-height: 1.85; }
  .ap-service-card__body p br { display: none; }
  .ap-service-card .ap-more--arb { margin-top: 12px; font-size: .78rem; }
}

/* WORKS・BLOG：スマホでコンパクト＋2件表示（2件表示はトップページだけ） */
@media (max-width: 620px) {
  .ap-latest-block { margin-bottom: 44px; }
  .ap-latest-grid { gap: 14px; }
  body.home .ap-latest-grid > .ap-latest-card:nth-child(n+3) { display: none; }
  .ap-latest-card__image img { height: 150px; min-height: 0; aspect-ratio: auto; }
  .ap-latest-card__body { padding: 16px 18px 18px; }
  .ap-latest-card__meta { margin-bottom: 8px; }
  .ap-latest-card__meta span { padding: 3px 12px; }
  .ap-latest-card h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.55; }
  .ap-latest-card p { margin: 0 0 10px; font-size: .82rem; font-weight: 500; line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ap-latest-card .ap-text-link { font-size: .82rem; }
}

/* WORKS・BLOG 一覧ボタン */
.ap-latest-more { margin-top: 28px; text-align: center; }
@media (max-width: 620px) {
  .ap-latest-more { margin-top: 20px; }
}

/* ABOUT：スマホ調整 */
.ap-about br.sp-br { display: none; }
@media (max-width: 620px) {
  .ap-about br.sp-br { display: inline; }
  .ap-about__image { width: 100vw; max-width: none; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .ap-about__image img { border-radius: 0 !important; }
  .ap-about__content > p:not(.ap-about__label) { margin: 0 0 1em !important; font-size: .9rem !important; font-weight: 500 !important; line-height: 1.95 !important; letter-spacing: .03em; }
  .ap-about__points { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; margin: 26px 0 24px !important; padding: 4px 18px !important; background: #fff; border: 1px solid rgba(0, 31, 71, .1); border-radius: 8px; }
  .ap-about-point { display: flex !important; align-items: center; gap: 16px !important; padding: 14px 0 !important; border-bottom: 1px solid rgba(0, 31, 71, .08); }
  .ap-about-point:last-child { border-bottom: 0; }
  .ap-about-point svg { flex: 0 0 auto; width: 30px !important; height: 30px !important; }
  .ap-about-point__text strong { font-size: .9rem; }
  .ap-about-point__text span { font-size: .74rem; }
  .ap-about .ap-button { min-height: 0 !important; padding: 15px 20px !important; font-size: .92rem !important; }
}

/* ABOUT：PCの段落間を少し詰める */
@media (min-width: 621px) {
  .ap-about__content > p:not(.ap-about__label) { margin-bottom: 1em !important; }
}

/* FACEBOOK 最新情報 */
.ap-fb { padding: 64px 0; background: #fff; }
.ap-fb .ap-section-title__en { color: var(--ap-navy) !important; }
.ap-fb .ap-section-title__ja { color: var(--ap-muted, #5b6b80) !important; }
.ap-fb .ap-section-title__line span:nth-child(2) { background: #dfe6ee !important; }
.ap-fb__grid { display: grid; grid-template-columns: 1fr 500px; gap: 48px; align-items: center; max-width: 980px; margin: 0 auto; }
.ap-fb__text p { margin: 0 0 24px !important; color: var(--ap-navy); font-size: .95rem !important; font-weight: 500 !important; line-height: 2 !important; }
.ap-fb__embed { width: 100%; max-width: 500px; }
@media (max-width: 860px) {
  .ap-fb__grid { grid-template-columns: 1fr; gap: 20px; }
  .ap-fb__embed { margin: 0 auto; }
}
@media (max-width: 620px) {
  .ap-fb { padding: 44px 0; }
  .ap-fb__text { order: 2; text-align: center; }
  .ap-fb__text p { margin-bottom: 16px !important; font-size: .86rem !important; line-height: 1.9 !important; }
  .ap-fb__text br { display: none; }
  .ap-fb .ap-button { min-height: 0 !important; padding: 15px 20px !important; font-size: .92rem !important; }
}

/* 記事ページ末尾：相談＋一覧へ戻る */
.ap-post-end { padding: 56px 20px 64px; background: linear-gradient(180deg, #f4f7fb, #e9f0f8); }
.ap-post-end__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.ap-post-end__lead { margin: 0 0 22px; color: var(--ap-navy); font-size: 1rem; font-weight: 700; letter-spacing: .06em; line-height: 1.8; }
.ap-post-end__buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; }
.ap-post-end__tel { display: inline-flex; flex-direction: column; align-items: center; min-width: 280px; padding: 14px 32px; background: var(--ap-navy); color: #fff !important; font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; border-radius: 4px; box-shadow: 0 14px 30px rgba(0, 31, 71, .18); transition: transform .2s ease; }
.ap-post-end__tel span { font-size: .72rem; font-weight: 600; letter-spacing: .12em; opacity: .8; }
.ap-post-end__tel:hover { transform: translateY(-2px); }
.ap-post-end__back { color: var(--ap-navy) !important; font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 620px) {
  .ap-post-end { padding: 40px 16px 48px; }
  .ap-post-end__lead { font-size: .9rem; }
  .ap-post-end__buttons { flex-direction: column; }
  .ap-post-end__tel { width: 100%; min-width: 0; }
}

/* 記事ページ：タイトルと本文画像のサイズ調整 */
body.single-maintenance_work h1,
body.single-autopro_blog h1 { font-size: clamp(1.35rem, 2.4vw, 2.1rem) !important; line-height: 1.6 !important; letter-spacing: .06em !important; }
body.single-maintenance_work figure.wp-block-image,
body.single-autopro_blog figure.wp-block-image { max-width: 720px; margin: 28px auto !important; }
body.single-maintenance_work figure.wp-block-image img,
body.single-autopro_blog figure.wp-block-image img { width: 100%; height: auto; border-radius: 4px; }
body.single-maintenance_work figure.wp-block-image figcaption,
body.single-autopro_blog figure.wp-block-image figcaption { margin-top: 10px; color: var(--ap-navy); font-size: .88rem; font-weight: 500; text-align: center; opacity: .8; }

/* ARB 導線の帯 */
.ap-arb { position: relative; padding: 88px 0; background: #0a0a0a; color: #e9e4d8; overflow: hidden; }
.ap-arb::before, .ap-arb::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #c9a45c 20%, #e6cd8f 50%, #c9a45c 80%, transparent); }
.ap-arb::before { top: 0; } .ap-arb::after { bottom: 0; }
.ap-arb__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 70%; background-size: cover; background-position: center right; }
.ap-arb__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a0a 0%, rgba(10, 10, 10, .88) 18%, rgba(10, 10, 10, .35) 50%, rgba(10, 10, 10, 0) 75%); }
.ap-arb__inner { position: relative; z-index: 1; }
.ap-arb__text { max-width: 520px; }
.ap-arb__label { display: flex; align-items: center; gap: 12px; margin: 0 0 14px !important; color: #c9a45c; font-size: .72rem; font-weight: 700; letter-spacing: .28em; }
.ap-arb__label::before { content: ""; width: 36px; height: 1px; background: #c9a45c; }
.ap-arb__logo { display: block; width: 240px; height: auto; margin: 0 0 24px; }
.ap-arb__title { margin: 0 0 14px !important; color: #fff !important; font-family: var(--ap-serif, serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important; font-weight: 600; letter-spacing: .06em; line-height: 1.7; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.ap-arb__desc { margin: 0 0 28px !important; color: rgba(233, 228, 216, .82) !important; font-size: .9rem; line-height: 2; }
.ap-arb__btn { box-sizing: border-box; display: inline-flex; align-items: center; gap: 18px; padding: 15px 30px; border: 1px solid #c9a45c; background: rgba(10, 10, 10, .4); color: #e6cd8f !important; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; transition: background .25s ease, color .25s ease; }
.ap-arb__btn:hover { background: #c9a45c; color: #0a0a0a !important; }
@media (max-width: 860px) {
  .ap-arb { padding: 0 0 48px; }
  .ap-arb__bg { position: relative; width: 100%; aspect-ratio: 16 / 10; }
  .ap-arb__bg::after { background: linear-gradient(180deg, rgba(10, 10, 10, 0) 55%, #0a0a0a 100%); }
  .ap-arb__inner { margin-top: -24px; }
  .ap-arb__text { max-width: none; }
}
@media (max-width: 620px) {
  .ap-arb__logo { width: 190px; }
  .ap-arb__title { font-size: 1.12rem !important; letter-spacing: .03em; }
  .ap-arb__desc { font-size: .84rem; }
  .ap-arb__btn { width: 100%; justify-content: center; }
}
/* サービスカードのARBリンクを1行に */
.ap-more--arb { white-space: nowrap; }

/* スタッフ紹介：「挑戦」側の文字を読みやすく */
.ap-staffp__duo-item--challenge::before { background: linear-gradient(195deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .55) 62%, rgba(255, 255, 255, .95) 88%) !important; }
.ap-staffp__duo-item--challenge .ap-staffp__duo-caption { text-shadow: 0 0 10px rgba(255, 255, 255, .9), 0 0 2px rgba(255, 255, 255, .9); }
.ap-staffp__duo-item--challenge .ap-staffp__duo-caption strong { color: #001f47; }

/* PARTNERS 取扱ブランド */
.ap-partners { padding: 64px 0 56px; background: #fff; }
.ap-partners .ap-section-title__en { color: var(--ap-navy) !important; }
.ap-partners .ap-section-title__ja { color: var(--ap-muted, #5b6b80) !important; }
.ap-partners .ap-section-title__line span:nth-child(2) { background: #dfe6ee !important; }
.ap-partners__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 32px auto 0; }
.ap-partner { display: flex; flex-direction: column; align-items: center; padding: 26px 20px 22px; background: #fff; border: 1px solid rgba(0, 31, 71, .12); border-radius: 6px; text-align: center; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.ap-partner:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 31, 71, .1); }
.ap-partner__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; margin-bottom: 16px; }
.ap-partner__logo img { display: block; max-width: 82%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.ap-partner--wide .ap-partner__logo img { max-width: 100%; }
.ap-partner strong { color: var(--ap-navy); font-size: .92rem; font-weight: 700; }
.ap-partner small { margin-top: 4px; color: var(--ap-muted, #5b6b80); font-size: .76rem; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 1000px) {
  .ap-partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ap-partners { padding: 44px 0 40px; }
  .ap-partners__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .ap-partner { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 16px 18px; text-align: left; }
  .ap-partner__logo { grid-row: 1 / 3; width: 110px; height: 48px; margin: 0; justify-content: flex-start; }
  .ap-partner__logo img { max-width: 110px; max-height: 44px; }
  .ap-partner small { margin-top: 0; }
  .ap-partner--wide { grid-template-columns: 1fr; text-align: center; }
  .ap-partner--wide .ap-partner__logo { grid-row: auto; width: 100%; height: 36px; margin-bottom: 8px; justify-content: center; }
  .ap-partner--wide .ap-partner__logo img { max-width: 92%; }
}

/* 取扱ブランドの英字名を英字用フォントに */
.ap-partner strong,
.ap-company__brand strong { font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif !important; letter-spacing: .04em !important; font-feature-settings: "palt"; }

/* ABOUT：スマホの背景イラスト */
@media (max-width: 620px) {
  .ap-about__content { position: relative; isolation: isolate; }
  .ap-about__content::before { content: ""; position: absolute; z-index: -1; top: 40px; right: -16px; height: 560px; width: 88%; background: var(--ap-dynamic-about-mobile) right top / 100% auto no-repeat; opacity: .38; mix-blend-mode: multiply; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 75% 60% at 70% 55%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 75% 60% at 70% 55%, #000 45%, transparent 100%); }
}

/* フッター：営業時間と定休日を別の行に */
.ap-footer .ap-footer__hours,
.ap-footer .ap-footer__closed { display: inline-block !important; margin-right: 1.2em !important; }
@media (max-width: 620px) {
  .ap-footer .ap-footer__hours,
  .ap-footer .ap-footer__closed { display: block !important; margin-right: 0 !important; }
}
/* スマホ：ページ上部へ戻るボタンを小さく */
@media (max-width: 620px) {
  .ap-page-top { width: 44px !important; height: 44px !important; right: 12px !important; bottom: 16px !important; font-size: .9rem !important; opacity: .85; }
}

/* 見出し・カードタイトルの折り返しをそろえる（1文字だけ落ちるのを防ぐ） */
h1, h2, h3,
.ap-latest-card h3,
.ap-service-card__body h3,
.ap-partner strong,
.ap-company__brand strong { text-wrap: balance; }
/* 本文は最後の行が1文字だけにならないように */
p { text-wrap: pretty; }

/* カードのタイトルは行そろえをやめる（日本語の単語が途中で割れるため） */
.ap-latest-card h3 { text-wrap: wrap !important; }

/* 固定ページ：下に行くほどピンクになるのを止める（トップページは今のまま） */
body.page:not(.home) .ap-about::before { background: radial-gradient(circle at 18% 6%, rgba(0, 94, 175, .08), transparent 40%) !important; }
body.page:not(.home) article,
body.page:not(.home) .entry-content { background-image: none !important; }

/* 会社概要：取扱・提携ブランドにロゴ */
.ap-company__brands { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.ap-company__brand-logo { display: flex !important; align-items: center; justify-content: center; height: 88px; margin: -4px -6px 16px; padding: 12px 18px; background: #fff; border-bottom: 1px solid rgba(0, 31, 71, .08); border-radius: 4px 4px 0 0; }
.ap-company__brand-logo img { display: block; max-width: 70%; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.ap-company__brand-logo--dark { background: #0a0a0a; border-bottom: 0; border-radius: 4px; }
.ap-company__brand-logo--wide img { max-width: 92%; }
.ap-company__brands > .ap-company__brand:first-child { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .ap-company__brands { grid-template-columns: 1fr !important; }
  .ap-company__brand-logo { height: 72px; }
  .ap-company__brand-logo img { max-height: 48px; }
}

/* 会社概要：見出しをスマホだけ2行に */
.ap-company__h2 br.sp-br { display: none; }
@media (max-width: 620px) {
  .ap-company__h2 br.sp-br { display: inline; }
}

/* スマホ：メニュー（白背景・左寄せ・控えめなサイズ・後ろを暗く沈める） */
@media (max-width: 860px) {
  /* メニュー本体 */
  body:has(.ap-menu-button[aria-expanded="true"]) .ap-nav { min-height: 0 !important; overflow-y: auto; background: #fff !important; opacity: 1 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 18px 30px rgba(0, 31, 71, .18); }
  body:has(.ap-menu-button[aria-expanded="true"]) .ap-nav::before,
  body:has(.ap-menu-button[aria-expanded="true"]) .ap-nav::after { opacity: 0 !important; }
  body:has(.ap-menu-button[aria-expanded="true"]) .ap-nav__list { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 8px 28px 20px !important; box-sizing: border-box; text-align: left !important; background: #fff !important; }
  .ap-nav__list li { width: 100% !important; margin: 0 !important; border-bottom: 1px solid rgba(0, 31, 71, .1); }
  .ap-nav__list li a { display: flex !important; flex-direction: row !important; align-items: baseline; justify-content: flex-start !important; gap: 10px; width: 100% !important; padding: 14px 2px !important; border: 0 !important; box-sizing: border-box; text-align: left !important; font-size: .8rem !important; letter-spacing: .1em !important; }
  .ap-nav__list li a small { margin: 0 !important; font-size: .64rem !important; letter-spacing: .04em !important; opacity: .85; }
  .ap-nav__list li a::after { content: "›"; margin-left: auto; color: var(--ap-navy); font-size: .9rem; line-height: 1; opacity: .5; }

  /* 後ろのページを暗く沈める */
  body:has(.ap-menu-button[aria-expanded="true"])::after { content: ""; position: fixed; inset: 0; z-index: 35; background: rgba(0, 15, 35, .55); pointer-events: none; }
  body:has(.ap-menu-button[aria-expanded="true"]) .ap-header { z-index: 60 !important; }
  body:has(.ap-menu-button[aria-expanded="true"]) .ap-page-top { opacity: 0 !important; pointer-events: none; }
}

/* 会社概要：見出しをスマホだけ2行に（横幅を7文字分に絞る） */
@media (max-width: 620px) {
  .ap-company .ap-company__h2--line { max-width: 7.6em !important; letter-spacing: .06em !important; }
}

/* ご利用案内：スマホの改行調整 */
@media (max-width: 620px) {
  /* 見出しを1行に収まるサイズに */
  .ap-guide .ap-guide__h2 { font-size: 1.22rem !important; letter-spacing: .02em !important; }
  /* 優先順位の箱の見出しを少し小さく */
  .ap-guide__priority-item strong { font-size: .92rem !important; letter-spacing: 0 !important; }
  .ap-guide__priority-item span { font-size: .8rem !important; }
  /* 電話ボタン：営業時間と定休日を別の行に */
  .ap-guide .ap-guide__tel-hours br { display: inline !important; }
  .ap-guide__tel-hours { line-height: 1.8; }
}

/* ご利用案内：締めの文はスマホでも「まずはお気軽に〜」から改行 */
@media (max-width: 620px) {
  .ap-guide .ap-guide__closing br { display: inline !important; }
  .ap-guide__closing p { font-size: .88rem; line-height: 1.9; }
}

/* ブログ一覧：説明文を「メンテナンス情報」のあとで改行（スマホ） */
@media (max-width: 620px) {
  body.post-type-archive-autopro_blog .ap-page-hero p { max-width: 21.6em; letter-spacing: .02em !important; }
}

/* 記事末尾：スマホで「〜お困りの方は、」のあとで改行（整備実績） */
@media (max-width: 620px) {
  body.single-maintenance_work .ap-post-end__lead { max-width: 15.5em; margin-left: auto !important; margin-right: auto !important; font-size: .9rem !important; letter-spacing: .02em !important; }
}

/* プライバシーポリシー：お問い合わせ見出しの改行（スマホ） */
@media (max-width: 620px){
  .ap-policy__contact h2{
    max-width: 9.6em;
    font-size: 1.35rem;
    text-wrap: wrap;
  }
}

/* ===== 営業日カレンダー（フッター） ===== */
.ap-footer__main { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: start; }
.ap-cal { padding: 18px 20px 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; color: #fff; }
.ap-cal__title { margin: 0 0 12px !important; color: #fff !important; font-size: .68rem !important; font-weight: 700; letter-spacing: .2em; line-height: 1.4 !important; }
.ap-cal__title span { margin-left: 10px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; opacity: .7; }
.ap-cal__months { display: grid; grid-template-columns: repeat(2, 210px); gap: 22px; }
.ap-cal__month { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; background: none; border: 0; }
.ap-cal__month caption { padding: 0 0 6px; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-align: left; caption-side: top; }
.ap-cal__month th,
.ap-cal__month td { padding: 2px 0; background: none !important; border: 0 !important; text-align: center; line-height: 1; }
.ap-cal__month th { padding-bottom: 5px; color: rgba(255, 255, 255, .55); font-size: .62rem; font-weight: 700; }
.ap-cal__month td span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: rgba(255, 255, 255, .88); font-size: .72rem; font-weight: 600; font-family: var(--ap-sans, sans-serif); }
.ap-cal__month td.is-closed span { background: #d0343b; color: #fff; }
.ap-cal__month td.is-today span { box-shadow: 0 0 0 1.5px #fff; }
.ap-cal__month td.is-past span { opacity: .35; }
.ap-cal__legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0 !important; color: rgba(255, 255, 255, .7) !important; font-size: .68rem !important; line-height: 1.4 !important; }
.ap-cal__mark { width: 10px; height: 10px; border-radius: 50%; background: #d0343b; }
@media (max-width: 860px) {
  .ap-footer__main { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ap-cal { padding: 16px 14px 12px; }
  .ap-cal__months { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ap-cal__month td span { width: 20px; height: 20px; font-size: .64rem; }
  .ap-cal__month th { font-size: .56rem; }
}

/* ===== フッター左側（ロゴ・リード・ボタン） ===== */
.ap-footer__logo { display: inline-block; margin-bottom: 14px; }
.ap-footer__logo img { display: block; width: auto; height: 52px; }
.ap-footer__lead { margin: 0 0 18px !important; color: #fff !important; font-family: var(--ap-serif, serif); font-size: .95rem !important; font-weight: 600; letter-spacing: .1em; line-height: 1.9 !important; }
.ap-footer__cal-note { margin-top: 6px !important; font-size: .72rem !important; opacity: .75; }
.ap-footer__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ap-footer__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; white-space: nowrap; transition: .2s ease; }
.ap-footer__links a:hover { background: #fff; color: var(--ap-navy, #0b1f47); }
.ap-footer__links svg { width: 15px; height: 15px; }
@media (max-width: 620px) {
  .ap-footer__logo img { height: 44px; }
  .ap-footer__lead { font-size: .88rem !important; }
  .ap-footer__links a { padding: 8px 14px; font-size: .72rem; }
}

/* 記事ページ：スマホの見出し */
body.single-maintenance_work .sp-br,
body.single-autopro_blog .sp-br { display: none !important; }
@media (max-width: 620px) {
  body.single-maintenance_work h3,
  body.single-autopro_blog h3 { font-size: 1.15rem !important; line-height: 1.6 !important; }
  body.single-maintenance_work .sp-br,
  body.single-autopro_blog .sp-br { display: inline !important; }
}

/* 404ページ（404.php のインライン<style>から移設。内容は同一） */
.ap-404 {
    padding: clamp(72px, 10vw, 140px) 20px clamp(80px, 10vw, 140px);
    background: linear-gradient(180deg, #f3f6fa 0%, #fff 70%);
    text-align: center;
}
.ap-404__inner { max-width: 760px; margin: 0 auto; }
.ap-404__code {
    margin: 0;
    color: var(--ap-navy, #0b1f47);
    font-family: var(--ap-serif, serif);
    font-size: clamp(4.5rem, 12vw, 7.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .08em;
    opacity: .14;
}
.ap-404__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px;
    color: var(--ap-navy, #0b1f47);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
}
.ap-404__label::before {
    content: "";
    width: 54px;
    height: 3px;
    background: linear-gradient(90deg, #0017fc 0 42%, #dfe6ee 42% 58%, var(--ap-red, #d0343b) 58% 100%);
}
.ap-404__title {
    margin: 0 0 18px;
    color: var(--ap-navy, #0b1f47);
    font-family: var(--ap-serif, serif);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 600;
    letter-spacing: .07em;
    line-height: 1.6;
}
.ap-404__text {
    margin: 0 0 36px;
    color: var(--ap-text, #333);
    font-size: .92rem;
    line-height: 2;
    letter-spacing: .04em;
}
.ap-404__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
.ap-404__links a {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 20px 40px 20px 22px;
    background: #fff;
    border: 1px solid rgba(0, 31, 71, .12);
    border-left: 4px solid var(--ap-navy, #0b1f47);
    border-radius: 4px;
    color: var(--ap-navy, #0b1f47);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 31, 71, .06);
    transition: .2s ease;
}
.ap-404__links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 31, 71, .12);
}
.ap-404__en { font-size: .68rem; font-weight: 700; letter-spacing: .2em; opacity: .6; }
.ap-404__ja { font-size: .98rem; font-weight: 700; letter-spacing: .06em; }
.ap-404__arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    line-height: 1;
}
.ap-404__tel {
    margin: 0;
    color: var(--ap-muted, #667);
    font-size: .86rem;
    letter-spacing: .04em;
}
.ap-404__tel a {
    color: var(--ap-navy, #0b1f47);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}
.ap-404 .sp-br { display: none; }

@media (max-width: 620px) {
    .ap-404 { padding: 56px 20px 72px; }
    .ap-404 .sp-br { display: inline; }
    .ap-404__title { font-size: 1.3rem; }
    .ap-404__text { font-size: .86rem; }
    .ap-404__links { grid-template-columns: 1fr; gap: 10px; }
    .ap-404__links a { padding: 16px 40px 16px 18px; }
}
