/*
Theme Name: Advance Pay Guide
Theme URI: https://advance-pay.click/
Author: Codex
Description: 先払い買取・即日現金化サービス比較サイト向けテーマ
Version: 1.0.6
Text Domain: advance-pay-guide
*/

:root {
  --navy: #06183a;
  --navy-2: #0b2555;
  --gold: #d7a53d;
  --gold-2: #f6d889;
  --green: #078041;
  --ink: #172033;
  --muted: #667085;
  --line: #e5e9f2;
  --paper: #fffaf0;
  --white: #fff;
  --shadow: 0 24px 70px rgba(6, 24, 58, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fc;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.ap-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ap-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(215, 165, 61, .28);
  backdrop-filter: blur(14px);
}

.ap-header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ap-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.ap-logo img {
  display: block;
  width: min(320px, 42vw);
  height: auto;
  object-fit: contain;
}

.ap-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.ap-nav a {
  padding: 9px 0;
}

.ap-nav .ap-nav-cta,
.ap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #026b37;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(180deg, #10a85b 0%, #04723b 100%);
  box-shadow: 0 10px 24px rgba(4, 114, 59, .24);
  font-weight: 900;
}

.ap-button.ap-secondary {
  border-color: rgba(215, 165, 61, .6);
  color: var(--navy);
  background: #fff;
  box-shadow: none;
}

.ap-hero {
  padding: 0 0 34px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.ap-hero-card {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.ap-hero-card img {
  display: block;
  width: 100%;
  height: auto;
}

.ap-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  border: 1px solid rgba(215, 165, 61, .42);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.ap-trust-strip span {
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, .14);
  font-weight: 800;
  text-align: center;
}

.ap-trust-strip span:last-child {
  border-right: 0;
}

.ap-section {
  padding: 56px 0;
}

.ap-section.ap-cream {
  background: var(--paper);
}

.ap-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ap-kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.35;
}

h1,
h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.ap-lead {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
}

.ap-notice {
  padding: 16px 18px;
  border: 1px solid rgba(215, 165, 61, .45);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
  color: #4c5568;
  font-size: 14px;
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ap-provider-card,
.ap-column-card,
.ap-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 44px rgba(6, 24, 58, .08);
}

.ap-provider-card {
  overflow: hidden;
}

.ap-provider-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #edf1f7;
}

.ap-provider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-provider-body {
  padding: 18px;
}

.ap-provider-rank {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: linear-gradient(90deg, var(--gold-2), #fff3c9);
  font-size: 12px;
  font-weight: 900;
}

.ap-provider-body h3 {
  font-size: 20px;
}

.ap-provider-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ap-spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.ap-spec-list span {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #f2f5fa;
  color: #3e4a5d;
  font-size: 12px;
  font-weight: 800;
}

.ap-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.ap-card-actions .ap-button {
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
  font-size: 14px;
}

.ap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.ap-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.ap-panel {
  padding: 20px;
}

.ap-panel h2,
.ap-panel h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.ap-panel ul {
  margin: 0;
  padding-left: 1.2em;
}

.ap-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.ap-table th,
.ap-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ap-table th {
  width: 28%;
  color: var(--navy);
  background: #f3f6fb;
  font-weight: 900;
}

.ap-table tr:last-child th,
.ap-table tr:last-child td {
  border-bottom: 0;
}

.ap-article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 44px rgba(6, 24, 58, .08);
}

.ap-article-header {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.ap-article-header h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.ap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ap-article-content h2 {
  margin: 34px 0 14px;
  padding-left: 14px;
  border-left: 5px solid var(--gold);
  font-size: 28px;
}

.ap-article-content h3 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.ap-article-content p {
  margin: 0 0 1.15em;
}

.ap-article-content a {
  color: #0757b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ap-article-content img {
  border-radius: var(--radius);
}

.ap-toc a,
.ap-side-list a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.ap-toc a:last-child,
.ap-side-list a:last-child {
  border-bottom: 0;
}

.ap-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ap-column-card {
  overflow: hidden;
  padding: 0;
}

.ap-column-thumb {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #edf1f7;
}

.ap-column-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.ap-column-card:hover .ap-column-thumb img {
  transform: scale(1.035);
}

.ap-column-body {
  padding: 16px 18px 18px;
}

.ap-column-card time,
.ap-column-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.ap-column-card h3 {
  margin-top: 8px;
  font-size: 18px;
}

.ap-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, .76);
  background: var(--navy);
}

.ap-footer a {
  color: #fff;
}

.ap-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.ap-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 800;
}

.ap-search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(215, 165, 61, .36);
  border-radius: var(--radius);
  background: #fff;
}

.ap-search-panel input,
.ap-search-panel select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
}

.ap-breadcrumb {
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.ap-breadcrumb a {
  color: var(--navy);
  font-weight: 800;
}

.ap-page-hero {
  padding: 42px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 24, 58, .96), rgba(11, 37, 85, .9)),
    radial-gradient(circle at 90% 20%, rgba(215, 165, 61, .44), transparent 30%);
}

.ap-page-hero h1 {
  color: #fff;
}

.ap-page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 980px) {
  .ap-nav {
    display: none;
  }

  .ap-grid,
  .ap-column-grid,
  .ap-layout,
  .ap-footer-grid {
    grid-template-columns: 1fr;
  }

  .ap-sidebar {
    position: static;
  }

  .ap-search-panel,
  .ap-trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .ap-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .ap-container {
    width: min(100% - 22px, 1120px);
  }

  .ap-logo img {
    width: min(260px, 64vw);
    max-height: 50px;
  }

  .ap-section {
    padding: 42px 0;
  }

  .ap-section-head {
    display: block;
  }

  .ap-trust-strip,
  .ap-search-panel,
  .ap-spec-list {
    grid-template-columns: 1fr;
  }

  .ap-article {
    padding: 20px;
  }

  .ap-table th,
  .ap-table td {
    display: block;
    width: 100%;
  }
}


/* polish inspired by the hero creative */
.ap-site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--green), var(--navy));
}

.ap-hero-card {
  position: relative;
}

.ap-trust-strip span::before {
  content: "✓";
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  border: 1px solid rgba(246, 216, 137, .8);
  border-radius: 999px;
  color: var(--gold-2);
}

.ap-provider-header {
  border-bottom: 0;
}

.ap-provider-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 165, 61, .34);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ap-provider-visual img {
  display: block;
  width: 100%;
}

.ap-hero-cta {
  position: absolute;
  right: 20px;
  bottom: 20px;
  min-width: 260px;
  min-height: 56px;
  border: 2px solid var(--gold-2);
  font-size: 18px;
}

.ap-confirm-panel {
  margin: 28px 0;
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.ap-related {
  margin-top: 42px;
}

.ap-related > h2 {
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 5px solid var(--gold);
}

.ap-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ap-related-head h2 {
  margin: 0;
  padding-left: 14px;
  border-left: 5px solid var(--gold);
}

.ap-slider-controls {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.ap-slider-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(215, 165, 61, .55);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(6, 24, 58, .1);
  cursor: pointer;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.ap-slider-button:hover {
  transform: translateY(-2px);
  background: var(--navy);
  color: #fff;
}

.ap-slider-button:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.ap-slider-viewport {
  position: relative;
  margin-inline: -4px;
  overflow: hidden;
}

.ap-slider-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 4px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.ap-slider-track > .ap-provider-card,
.ap-slider-track > .ap-column-card {
  flex: 0 0 min(82%, 560px);
  scroll-snap-align: start;
}

.ap-slider-track .ap-provider-thumb {
  aspect-ratio: 16 / 9;
}

.ap-slider-track .ap-provider-body h3,
.ap-slider-track .ap-column-card h3 {
  font-size: clamp(20px, 2vw, 26px);
}

.ap-slider-track .ap-provider-body p,
.ap-slider-track .ap-column-card p {
  font-size: 15px;
}

.ap-slider-track .ap-provider-card,
.ap-slider-track .ap-column-card {
  box-shadow: 0 18px 44px rgba(6, 24, 58, .1);
}

.ap-page-hero {
  border-bottom: 4px solid var(--gold);
}

.ap-provider-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.ap-provider-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(6, 24, 58, .13);
}

.ap-article-content table,
.provider-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.ap-article-content table th,
.ap-article-content table td,
.provider-info-table th,
.provider-info-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ap-article-content table th,
.provider-info-table th {
  width: 30%;
  color: var(--navy);
  background: #f3f6fb;
  font-weight: 900;
}

.ap-column-card {
  border-top: 4px solid var(--gold);
}

@media (max-width: 640px) {
  .ap-related-head {
    align-items: flex-end;
  }

  .ap-slider-button {
    width: 38px;
    height: 38px;
  }

  .ap-slider-track {
    gap: 14px;
  }

  .ap-slider-track > .ap-provider-card,
  .ap-slider-track > .ap-column-card {
    flex-basis: 88%;
  }
}

@media (max-width: 640px) {
  .ap-hero-cta {
    position: static;
    width: calc(100% - 24px);
    margin: 12px;
  }
}
.ap-cv-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 22px;
  align-items: center;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(215, 165, 61, .55);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #fffaf0 58%, #eefaf4 100%);
  box-shadow: 0 18px 44px rgba(6, 24, 58, .1);
}

.ap-cv-panel-compact {
  grid-template-columns: 1fr;
}

.ap-cv-copy h2 {
  margin: 8px 0 8px;
  font-size: 24px;
}

.ap-cv-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.ap-cv-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(215, 165, 61, .65);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ap-cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ap-cv-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf1f7;
}

.ap-cv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .ap-cv-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .ap-cv-copy h2 {
    font-size: 21px;
  }

  .ap-cv-actions .ap-button {
    width: 100%;
  }
}


/* Clean rewritten provider article content */
.ap-article-content > h2 {
  margin-top: 38px;
}

.ap-article-content h3 {
  margin: 24px 0 8px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: #f7f9fc;
  font-size: 18px;
}

.ap-article-content > ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 24px;
  padding: 0;
  list-style: none;
}

.ap-article-content > ul > li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 700;
}

.ap-article-content > ul > li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.05em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(7, 128, 65, .12);
}

.ap-article-content .provider-info-table {
  margin: 16px 0 28px;
}

.ap-article-content .provider-info-table a {
  overflow-wrap: anywhere;
}

.ap-article-content p + p {
  margin-top: -.35em;
}


.ap-text-url {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-weight: 700;
}
