/* 部品のページ。style.css の上に重ねて使う。
   会社トップより力強く、電話と買取の窓口を前に出す。 */
.parts-page {
  --p-blue: #0F52B5;
  --p-blue-deep: #0B3F8C;
  --p-yellow: #F4C430;
  --p-gray: #F1F2F4;
  --p-dark: #1C2230;
  padding-bottom: 92px;
}

.p-wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ヘッダー */
.p-header { background: #fff; border-bottom: 1px solid var(--line); }
.p-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding: 12px 0; }
.p-brand { display: block; line-height: 1.2; text-decoration: none; }
.p-brand small { display: block; font-size: 11px; font-weight: 500; }
.p-brand span { font-family: var(--en); font-size: 30px; font-weight: 600; letter-spacing: .03em; }
.p-nav { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.p-nav a { font-size: 14px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.p-nav a:hover { color: var(--p-blue); }
.p-nav small { display: block; font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: .08em; color: var(--ink-soft); }

/* ヒーロー */
.p-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #101A2E 0%, #1B2C4F 60%, #2B4A82 100%);
}
.p-hero-photo { position: absolute; top: 0; right: 0; width: 50%; height: 100%; object-fit: cover; object-position: center; }
.p-hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  width: min(66%, 900px);
  min-height: clamp(420px, 62vh, 620px);
  padding: 48px 12% 48px max(16px, calc((100vw - 1080px) / 2));
  background: var(--p-blue);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
  color: #fff;
}
.p-hero-copy { position: relative; z-index: 1; }
.p-hero-sub { font-size: clamp(17px, 2.3vw, 27px); font-weight: 700; line-height: 1.5; transform: skewX(-6deg); transform-origin: left; }
.p-hero h1 {
  margin-top: 4px;
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .02em;
  transform: skewX(-6deg);
  transform-origin: left;
}
.p-hero-lead { margin-top: 20px; font-size: clamp(15px, 1.7vw, 20px); font-weight: 700; line-height: 1.8; }
.p-ghost {
  position: absolute;
  left: max(16px, calc((100vw - 1080px) / 2));
  bottom: 10px;
  font-family: var(--en);
  font-size: clamp(40px, 5.6vw, 72px);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .08);
}

/* 見出し */
.p-section { padding: clamp(48px, 7vw, 80px) 0; scroll-margin-top: 8px; }
.p-gray { background: var(--p-gray); }
.p-title { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.5; text-align: center; }
.p-title small { display: block; margin-top: 2px; font-family: var(--en); font-size: 13px; font-weight: 400; letter-spacing: .12em; color: var(--ink-soft); }
.p-title-note { margin-top: 14px; font-size: 15px; text-align: center; color: var(--ink-soft); }

/* 電話 */
.p-tel-block { text-align: center; }
.p-tel-big {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 0;
  border-block: 1px solid var(--ink);
  width: min(720px, 100%);
  font-family: var(--en);
  font-size: clamp(38px, 8.6vw, 76px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
  text-decoration: none;
}
.p-tel-note { margin-top: 12px; font-size: 14px; font-weight: 500; }

/* 買取の流れ */
.p-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.p-flow li { padding: 28px 24px; border-top: 5px solid var(--p-blue); background: #fff; }
.p-step { font-family: var(--en); font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--p-blue); }
.p-flow h3 { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.p-flow p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* 再生の流れ */
.p-slant { padding: clamp(32px, 4vw, 56px) 0; scroll-margin-top: 8px; }
.p-slant-inner {
  padding: clamp(36px, 5vw, 60px) clamp(24px, 10%, 120px) clamp(36px, 5vw, 60px) clamp(24px, 5%, 64px);
  background: var(--p-blue);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  color: #fff;
}
.p-slant-label { font-size: 15px; font-weight: 700; }
.p-slant-label small { margin-left: 10px; font-family: var(--en); font-size: 12px; font-weight: 400; letter-spacing: .12em; }
.p-slant h2 { margin-top: 8px; font-size: clamp(23px, 3.4vw, 36px); font-weight: 900; line-height: 1.5; }
.p-slant-body { max-width: 40em; margin-top: 16px; font-size: 15px; }
.p-remake { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; }
.p-remake li { font-size: 16px; font-weight: 700; }
.p-remake li + li::before { content: "→"; margin-right: 10px; font-family: var(--en); color: var(--p-yellow); }

/* 買取のポイント */
.p-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.p-points > div { padding: 24px; border: 1px solid var(--line); border-left: 5px solid var(--p-blue); }
.p-points dt { font-size: 18px; font-weight: 700; line-height: 1.6; }
.p-points dd { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

/* 補修の実例 */
.p-case { margin-top: 44px; }
.p-case h3 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; line-height: 1.5; }
.p-case > p { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.p-process { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; }
.p-process li { font-size: 14px; font-weight: 700; }
.p-process li + li::before { content: "→"; margin-right: 10px; font-family: var(--en); color: var(--p-blue); }
.p-photos { display: grid; gap: 10px; margin-top: 16px; }
.p-photos-3 { grid-template-columns: repeat(3, 1fr); }
.p-photos-4 { grid-template-columns: repeat(4, 1fr); }
.p-photos figure { position: relative; }
.p-photos img { display: block; width: 100%; height: auto; }
.p-photos figcaption {
  position: absolute;
  left: 0;
  top: 0;
  padding: 4px 12px;
  background: var(--p-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.p-photos figcaption.is-before { background: #B3261E; }
.p-photos figcaption.is-after { background: var(--p-blue); }

/* よくある質問 */
.p-faq { max-width: 820px; margin: 32px auto 0; }
.p-faq > div { padding: 20px 24px; background: var(--p-gray); }
.p-faq > div + div { margin-top: 10px; }
.p-faq dt { font-size: 16px; font-weight: 700; line-height: 1.6; }
.p-faq dt::before { content: "Q. "; font-family: var(--en); color: var(--p-blue); }
.p-faq dd { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* エリア */
.p-area { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.p-area li { padding: 16px 4px; background: var(--p-blue); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.4; text-align: center; }

/* 写真を送る帯 */
.p-cta { padding: clamp(28px, 4vw, 44px) 20px; border-radius: 8px; background: var(--p-yellow); text-align: center; }
.p-cta-sub { font-size: clamp(15px, 2vw, 18px); font-weight: 700; }
.p-cta-main { margin-top: 4px; font-size: clamp(22px, 4vw, 40px); font-weight: 900; line-height: 1.45; }
.p-cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 32px;
  border-radius: 6px;
  background: var(--p-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.p-cta-btn:hover { background: var(--p-blue); }

/* 事業者情報 */
.p-info { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.p-info caption { padding-bottom: 8px; font-size: 16px; font-weight: 700; text-align: left; }
.p-info th, .p-info td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.p-info th { width: 8em; padding-right: 12px; font-weight: 500; }

/* フッター */
.p-footer { padding: 28px 0; background: var(--p-dark); color: #fff; font-size: 13px; }
.p-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; }
.p-footer a { color: #fff; text-decoration: none; }
.p-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-footer nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.p-footer-brand { font-family: var(--en); font-size: 22px; font-weight: 600; }
.p-footer :focus-visible { outline-color: #fff; }

/* 画面下の窓口 */
.p-quick {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px max(8px, calc((100vw - 1080px) / 2));
  background: rgba(28, 34, 48, .94);
}
.p-quick a { display: block; padding: 8px 10px; border-radius: 6px; line-height: 1.3; text-align: center; text-decoration: none; }
.p-quick small { display: block; font-size: 11px; font-weight: 500; }
.p-quick strong { display: block; font-size: 17px; font-weight: 900; }
.p-quick-tel { background: var(--p-yellow); color: var(--p-dark); }
.p-quick-tel strong { font-family: var(--en); font-size: 21px; font-weight: 600; }
.p-quick-dm { background: var(--p-blue); color: #fff; }
.p-quick-sub { background: #fff; color: var(--p-dark); }
.p-quick :focus-visible { outline-color: #fff; }

/* タブレット以下 */
@media (max-width: 860px) {
  .p-hero-panel { width: 100%; min-height: 0; padding: 44px 16px 72px; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .p-hero { padding-bottom: 150px; }
  .p-hero-photo { width: 100%; }
  .p-flow { grid-template-columns: 1fr; }
  .p-photos-3 figure:nth-child(3) { display: none; }
  .p-photos-3, .p-photos-4 { grid-template-columns: repeat(2, 1fr); }
  .p-area { grid-template-columns: repeat(3, 1fr); }
  .p-slant-inner { clip-path: none; }
  .p-quick { grid-template-columns: 1.5fr 1fr; }
  .p-quick .p-quick-sub { display: none; }
  .p-ghost { display: none; }
}

/* スマホ */
@media (max-width: 480px) {
  .parts-page { padding-bottom: 76px; }
  .p-nav { gap: 2px 18px; }
  .p-nav a { font-size: 13px; }
  .p-nav small { display: none; }
  .p-points { grid-template-columns: 1fr; }
  .p-quick strong { font-size: 15px; }
  .p-quick-tel strong { font-size: 19px; }
}
