/*
Theme Name: Answer Cash Navi
Theme URI: https://creca-kaitorii.click/
Author: Codex
Description: Cash comparison theme with CV tracking.
Version: 1.2.1
Text Domain: answer-cash-navi
*/

:root {
  --deep: #061225;
  --deep-2: #0a1e3d;
  --panel: #101d34;
  --paper: #f5f7fb;
  --white: #ffffff;
  --ink: #142033;
  --muted: #657187;
  --gold: #20b7c9;
  --gold-dark: #1769aa;
  --red: #1769aa;
  --red-dark: #0d4c86;
  --line: #dfe5ef;
  --radius: 8px;
  --shadow: 0 22px 50px rgba(5, 18, 37, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.ap-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--white);
  background: rgba(6, 18, 37, .94);
  border-bottom: 1px solid rgba(244, 200, 75, .45);
  backdrop-filter: blur(14px);
}

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

.ap-text-logo {
  display: grid;
  gap: 2px;
  min-width: 250px;
}

.ap-text-logo span {
  color: #20b7c9;
  font-size: 12px;
  font-weight: 900;
}

.ap-text-logo strong {
  color: var(--white);
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: 0;
}

.ap-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  font-weight: 900;
}

.ap-nav a:not(.ap-nav-cta) {
  color: rgba(255, 255, 255, .86);
}

.ap-nav-cta,
.ap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(32, 183, 201, .54);
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(180deg, #1887c7 0%, #0d4c86 100%);
  box-shadow: 0 12px 26px rgba(13, 76, 134, .22);
  font-weight: 1000;
  text-align: center;
}

.ap-button.ap-secondary {
  color: var(--deep);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(8, 23, 42, .08);
}

.ap-visual-hero {
  padding: 0;
  background: var(--deep);
}

.ap-hero-stage {
  position: relative;
  overflow: hidden;
  background: var(--deep);
}

.ap-hero-stage img {
  display: block;
  width: 100%;
}

.ap-hero-hotspot {
  position: absolute;
  right: 5.6%;
  bottom: 7.4%;
  width: 28.5%;
  height: 14.5%;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 120%;
}

.ap-quick-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -24px;
  overflow: hidden;
  border: 1px solid rgba(32, 183, 201, .22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}

.ap-quick-panel div {
  padding: 18px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.ap-quick-panel div:last-child {
  border-right: 0;
}

.ap-quick-panel strong {
  display: block;
  color: var(--deep);
  font-size: 22px;
  font-weight: 1000;
  line-height: 1.25;
}

.ap-quick-panel span {
  display: block;
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
}

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

.ap-dark-band {
  color: var(--ink);
  background: #ffffff;
}

.ap-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.ap-section-head h1,
.ap-section-head h2,
.ap-article h1,
.ap-article h2,
.ap-article h3 {
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0;
}

.ap-section-head h1,
.ap-section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.ap-section-head-invert h1,
.ap-section-head-invert .ap-lead {
  color: var(--ink);
}

.ap-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.ap-lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.ap-dark-band .ap-lead {
  color: var(--muted);
}

.ap-feature-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ap-feature-tiles article {
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.ap-feature-tiles span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.ap-feature-tiles h3 {
  margin: 14px 0 6px;
  color: var(--deep);
  font-size: 20px;
}

.ap-feature-tiles p {
  margin: 0;
  color: var(--muted);
}

.ap-search-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(32, 183, 201, .26);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(8, 23, 42, .08);
}

.ap-search-panel input,
.ap-search-panel select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(244, 200, 75, .58);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.ap-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.ap-provider-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(183, 123, 18, .55);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(5, 18, 37, .12);
}

.ap-provider-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #20b7c9, #7aa7ff);
}

.ap-provider-thumb {
  display: block;
  height: 168px;
  padding: 12px;
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
}

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

.ap-provider-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.ap-provider-rank {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(180deg, #1d83c5, #0d4c86);
  font-size: 12px;
  font-weight: 1000;
}

.ap-provider-card h3 {
  margin: 0;
  color: var(--deep);
  font-size: 20px;
}

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

.ap-spec-list {
  display: grid;
  gap: 6px;
}

.ap-spec-list span {
  min-height: 31px;
  padding: 5px 9px;
  border: 1px solid #ead27c;
  border-radius: 6px;
  background: #fff9df;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
}

.ap-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.ap-card-actions .ap-button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.ap-column-band {
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}

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

.ap-column-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(5, 18, 37, .08);
}

.ap-column-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--deep);
}

.ap-column-thumb img,
.ap-column-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.ap-column-body time {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 1000;
}

.ap-column-body h3 {
  margin: 8px 0;
  color: var(--deep);
}

.ap-column-body p {
  margin: 0;
  color: var(--muted);
}

.ap-page-hero,
.ap-provider-page,
.ap-column-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 200, 75, .2), transparent 32%),
    linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
}

.ap-page-hero {
  padding: 58px 0;
  color: var(--white);
}

.ap-page-hero h1,
.ap-page-hero p {
  color: var(--white);
}

.ap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
}

.ap-article {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.ap-article-header {
  padding: 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(244, 200, 75, .18), transparent 44%),
    var(--deep);
  color: var(--white);
}

.ap-article-header h1 {
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
}

.ap-article-header .ap-lead,
.ap-article-header .ap-meta {
  color: rgba(255,255,255,.84);
}

.ap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 800;
}

.ap-provider-billboard {
  position: relative;
  margin: 22px;
  padding: 14px;
  border: 1px solid rgba(32, 183, 201, .35);
  border-radius: var(--radius);
  background: var(--deep);
}

.ap-provider-billboard img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.ap-hero-cta {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.ap-alert-line,
.ap-notice {
  margin: 22px;
  padding: 14px 16px;
  border-left: 5px solid #20b7c9;
  border-radius: 6px;
  background: #edf8fb;
  color: var(--deep);
  font-weight: 800;
}

.ap-article section,
.ap-article-content {
  padding: 0 30px 30px;
}

.ap-article-content h2,
.ap-article section > h2 {
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 3px solid #20b7c9;
  color: var(--deep);
}

.ap-article-content h3 {
  margin-top: 22px;
  color: var(--deep);
}

.ap-article-content p,
.ap-article-content li {
  color: #26354d;
}

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

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

.ap-table th,
.provider-info-table th {
  width: 28%;
  color: var(--white);
  background: var(--deep);
}

.ap-table td,
.provider-info-table td {
  background: #fffdf3;
}

.ap-text-url {
  color: var(--deep);
  font-weight: 900;
  word-break: break-all;
}

.ap-cv-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin: 24px 30px;
  padding: 24px;
  border: 1px solid rgba(32, 183, 201, .35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0b1c31 0%, #12466b 60%, #0d5b66 100%);
  color: var(--white);
}

.ap-cv-panel h2,
.ap-cv-panel p {
  color: var(--white);
}

.ap-cv-badge {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: #063341;
  background: #b7edf3;
  font-size: 12px;
  font-weight: 1000;
}

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

.ap-cv-thumb {
  width: 180px;
  align-self: center;
}

.ap-cv-thumb img {
  border-radius: var(--radius);
}

.ap-related-list,
.ap-related {
  padding-top: 26px;
}

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

.ap-confirm-panel {
  margin: 0 30px 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.ap-sidebar {
  display: grid;
  gap: 16px;
}

.ap-sidebar .widget,
.ap-sidebar section,
.ap-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(5, 18, 37, .08);
}

.ap-footer {
  padding: 42px 0;
  color: rgba(255,255,255,.82);
  background: var(--deep);
  border-top: 4px solid #20b7c9;
}

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

.ap-footer .ap-text-logo {
  margin-bottom: 14px;
}

.ap-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
}

.ap-footer-links a {
  color: var(--white);
  font-weight: 800;
}

.ap-footer-note {
  color: rgba(255,255,255,.64);
}

.ap-slider-controls,
.ap-slider-button {
  display: none;
}

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

@media (max-width: 980px) {
  .ap-layout,
  .ap-search-panel,
  .ap-footer-grid {
    grid-template-columns: 1fr;
  }

  .ap-ranking-grid,
  .ap-column-grid,
  .ap-feature-tiles,
  .ap-slider-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .ap-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .ap-nav {
    justify-content: flex-start;
  }

  .ap-quick-panel,
  .ap-ranking-grid,
  .ap-column-grid,
  .ap-feature-tiles,
  .ap-slider-track {
    grid-template-columns: 1fr;
  }

  .ap-quick-panel {
    margin: 0;
    border-radius: 0;
  }

  .ap-quick-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(90, 52, 0, .22);
  }

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

  .ap-article-header,
  .ap-article section,
  .ap-article-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ap-provider-billboard,
  .ap-cv-panel,
  .ap-confirm-panel,
  .ap-alert-line,
  .ap-notice {
    margin-left: 18px;
    margin-right: 18px;
  }

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

  .ap-cv-thumb {
    width: 100%;
  }

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