/* = Payment guide redesign
--------------------------------------------------- */
#pg,
#pg-howto {
  --pay-ink: #333;
  --pay-muted: #666;
  --pay-line: #DFDFDF;
  --pay-soft: #F5F5F5;
  --pay-paper: #ffffff;
  --pay-red: #fa4647;
  --pay-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  width: calc(100% + 40px);
  margin: 0 -20px -70px;
  padding: 0;
  color: var(--pay-ink);
  background: var(--pay-soft);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  line-height: 1.7;
}
#pg *,
#pg *::before,
#pg *::after,
#pg-howto *,
#pg-howto *::before,
#pg-howto *::after {
  box-sizing: border-box;
}
#pg a,
#pg-howto a {
  text-decoration: none;
}
#pg button,
#pg-howto button {
  font-family: inherit;
}
#pg .pg-container,
#pg-howto .ht-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
#pg .pg-kicker,
#pg-howto .ht-kicker {
  margin: 0 0 10px;
  color: var(--pay-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
#pg h1,
#pg h2,
#pg h3,
#pg p,
#pg ul,
#pg ol,
#pg-howto h1,
#pg-howto h2,
#pg-howto h3,
#pg-howto p,
#pg-howto ul,
#pg-howto ol {
  letter-spacing: 0;
}

#pg .pg-hero,
#pg-howto .ht-hero {
  background: #fff;
  border-bottom: 1px solid var(--pay-line);
}
#pg .pg-hero-grid,
#pg-howto .ht-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 32px;
  align-items: center;
  min-height: 430px;
  padding-top: 56px;
  padding-bottom: 56px;
}
#pg .pg-hero-copy h1,
#pg-howto .ht-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pay-ink);
}
#pg .pg-hero-lead,
#pg-howto .ht-hero-lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--pay-muted);
  font-size: 16px;
}
#pg .pg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
#pg .pg-primary-action,
#pg .pg-secondary-action,
#pg .pg-fill-action,
#pg .pg-band-action,
#pg .pg-next-action,
#pg-howto .ht-method-action,
#pg-howto .ht-bottom-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  border: 1px solid transparent;
  cursor: pointer;
}
#pg .pg-primary-action,
#pg .pg-fill-action,
#pg .pg-next-action,
#pg-howto .ht-method-action,
#pg-howto .ht-bottom-action {
  color: #fff;
  background: var(--pay-red);
}
#pg .pg-secondary-action,
#pg .pg-link-action {
  color: var(--pay-ink);
  background: #fff;
  border: 1px solid var(--pay-line);
}
#pg .pg-primary-action:hover,
#pg .pg-fill-action:hover,
#pg .pg-band-action:hover,
#pg .pg-next-action:hover,
#pg-howto .ht-method-action:hover,
#pg-howto .ht-bottom-action:hover {
  color: #fff;
  background: #e60012;
}
#pg .pg-secondary-action:hover,
#pg .pg-link-action:hover {
  color: var(--pay-red);
  border-color: var(--pay-red);
}

#pg .pg-decision,
#pg-howto .ht-hero-panel {
  padding: 22px;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--pay-shadow);
}
#pg .pg-decision-title,
#pg-howto .ht-hero-panel p {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pay-muted);
}
#pg .pg-decision-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  color: var(--pay-ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--pay-line);
  cursor: pointer;
}
#pg .pg-decision-row b,
#pg .pg-route-btn span,
#pg-howto .ht-nav-btn span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
#pg .pg-decision-row small,
#pg .pg-route-btn small {
  display: block;
  margin-top: 2px;
  grid-column: 2;
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.5;
}
#pg .pg-decision-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 16px;
}
#pg .pg-tone-red,
#pg .pg-method--credit .pg-method-icon,
#pg-howto .ht-method--credit .ht-step-num {
  color: var(--pay-red);
  background: #fdecec;
}
#pg .pg-tone-blue,
#pg .pg-method--nrc .pg-method-icon,
#pg-howto .ht-method--nrc .ht-step-num {
  color: var(--pay-red);
  background: #feecec;
}
#pg .pg-tone-amber,
#pg .pg-method--bitcash .pg-method-icon,
#pg-howto .ht-method--bitcash .ht-step-num {
  color: var(--pay-red);
  background: #feecec;
}

#pg .pg-route {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 12px 0;
  background: rgba(249, 245, 246, 0.96);
  border-bottom: 1px solid var(--pay-line);
}
#pg .pg-route-grid,
#pg-howto .ht-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
/* 決済手段が減っているときに列が空かないようにする（ビットキャッシュ停止中） */
#pg .pg-route-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
/* ビットキャッシュ・NetRideCash 停止中（#2383） */
#pg .pg-route-grid--two {
  grid-template-columns: repeat(2, 1fr);
}
#pg .pg-route-btn,
#pg-howto .ht-nav-btn {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  color: var(--pay-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  cursor: pointer;
}
#pg .pg-route-btn i,
#pg-howto .ht-nav-btn i {
  color: var(--pay-red);
  font-size: 18px;
}
#pg .pg-route-btn i {
  grid-row: 1 / span 2;
}
#pg .pg-route-btn span {
  grid-column: 2;
}
#pg .pg-route-btn:hover,
#pg-howto .ht-nav-btn:hover {
  border-color: var(--pay-red);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

#pg .pg-methods,
#pg .pg-compare-section,
#pg .pg-faq-section,
#pg-howto .ht-method {
  padding: 58px 0;
}
#pg .pg-section-head,
#pg .pg-faq-intro {
  margin-bottom: 24px;
}
#pg .pg-section-head h2,
#pg .pg-faq-intro h2,
#pg .pg-point-grid h2,
#pg .pg-next h2,
#pg-howto .ht-method-head h2,
#pg-howto .ht-bottom h2 {
  margin: 0;
  color: var(--pay-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}
#pg .pg-section-head p,
#pg .pg-faq-intro p,
#pg .pg-point-grid p,
#pg-howto .ht-method-head p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--pay-muted);
  font-size: 14px;
}
#pg .pg-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
/* 決済手段が減っているときに列が空かないようにする（ビットキャッシュ停止中） */
#pg .pg-method-grid--two {
  grid-template-columns: repeat(2, 1fr);
}
/* ビットキャッシュ・NetRideCash 停止中（#2383） */
#pg .pg-method-grid--one {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}
#pg .pg-method {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  scroll-margin-top: 92px;
}
#pg .pg-method-media {
  aspect-ratio: 16 / 10;
  background: #F5F5F5;
  border-bottom: 1px solid var(--pay-line);
  overflow: hidden;
}
#pg .pg-method-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}
#pg .pg-method-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
#pg .pg-method-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
#pg .pg-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 19px;
}
#pg .pg-method-label {
  padding: 4px 9px;
  color: var(--pay-muted);
  background: var(--pay-soft);
  border: 1px solid var(--pay-line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
#pg .pg-method h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
#pg .pg-method-sub {
  margin: 2px 0 0;
  color: var(--pay-muted);
  font-size: 12px;
  font-weight: 700;
}
#pg .pg-method-copy {
  margin: 14px 0 0;
  color: #333;
  font-size: 14px;
}
#pg .pg-feature-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #333;
  font-size: 13px;
}
#pg .pg-feature-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
#pg .pg-feature-list i {
  margin-top: 4px;
  color: var(--pay-red);
  font-size: 12px;
}
#pg .pg-method-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}
#pg .pg-method-specs span {
  padding: 10px;
  background: var(--pay-soft);
  border-radius: 8px;
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.5;
}
#pg .pg-method-specs b {
  display: block;
  color: var(--pay-ink);
  font-size: 12px;
}
#pg .pg-method-actions {
  display: grid;
  gap: 8px;
  padding: 0 20px 20px;
}
#pg .pg-link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  color: var(--pay-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

#pg .pg-point-band,
#pg .pg-next,
#pg-howto .ht-bottom {
  padding: 44px 0;
  color: #fff;
  background: #333;
}
#pg .pg-point-grid,
#pg .pg-next-inner,
#pg-howto .ht-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#pg .pg-point-grid .pg-kicker,
#pg .pg-next .pg-kicker,
#pg-howto .ht-bottom .ht-kicker {
  color: #feecec;
}
#pg .pg-point-grid h2,
#pg .pg-point-grid p,
#pg .pg-next h2,
#pg-howto .ht-bottom h2 {
  color: #fff;
}
#pg .pg-band-action {
  color: #333;
  background: #fff;
  white-space: nowrap;
}
#pg .pg-band-action:hover {
  color: #333;
  background: #EEE;
}

#pg .pg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}
#pg .pg-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
#pg .pg-table th,
#pg .pg-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--pay-line);
  color: #333;
  font-size: 13px;
  text-align: center;
}
#pg .pg-table thead th {
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
#pg .pg-table tbody th {
  color: var(--pay-ink);
  font-weight: 700;
  text-align: left;
  background: #F5F5F5;
}
#pg .pg-table tr:last-child th,
#pg .pg-table tr:last-child td {
  border-bottom: 0;
}
#pg .pg-yes,
#pg .pg-no {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
#pg .pg-yes {
  color: var(--pay-red);
  background: #feecec;
}
#pg .pg-no {
  color: #777;
  background: #edf0f3;
}

#pg .pg-faq-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
}
#pg .pg-faq-wrap {
  overflow: hidden;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  background: #fff;
}
#pg .pg-faq {
  padding: 0 20px;
  border-bottom: 1px solid var(--pay-line);
}
#pg .pg-faq:last-child {
  border-bottom: 0;
}
#pg .pg-faq summary {
  padding: 18px 0;
  color: var(--pay-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}
#pg .pg-faq summary::-webkit-details-marker {
  display: none;
}
#pg .pg-faq p {
  margin: -6px 0 18px;
  color: var(--pay-muted);
  font-size: 13px;
}
#pg .pg-faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}
#pg .pg-faq-links a {
  padding: 7px 10px;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  color: var(--pay-ink);
  background: var(--pay-soft);
  font-size: 12px;
  font-weight: 700;
}
#pg .pg-next-action,
#pg-howto .ht-bottom-action {
  background: #fff;
  color: #333;
  white-space: nowrap;
}
#pg .pg-next-action:hover,
#pg-howto .ht-bottom-action:hover {
  color: #333;
  background: #EEE;
}

#pg-howto .ht-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--pay-muted);
  font-size: 13px;
  font-weight: 700;
}
#pg-howto .ht-back-link:hover {
  color: var(--pay-red);
}
#pg-howto .ht-hero-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: htHero;
}
#pg-howto .ht-hero-panel li {
  counter-increment: htHero;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}
#pg-howto .ht-hero-panel li::before {
  content: counter(htHero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--pay-red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
#pg-howto .ht-method-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 12px 0;
  background: rgba(249, 245, 246, 0.96);
  border-bottom: 1px solid var(--pay-line);
}
#pg-howto .ht-nav-grid {
  grid-template-columns: repeat(3, 1fr);
}
/* 決済手段が 2 つのときに右側が空かないようにする（ビットキャッシュ停止中） */
#pg-howto .ht-nav-grid--two {
  grid-template-columns: repeat(2, 1fr);
}
/* ビットキャッシュ・NetRideCash 停止中（#2383） */
#pg-howto .ht-nav-grid--one {
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}
#pg-howto .ht-method {
  background: #fff;
  border-bottom: 1px solid var(--pay-line);
  scroll-margin-top: 90px;
}
#pg-howto .ht-method:nth-of-type(even) {
  background: #F5F5F5;
}
#pg-howto .ht-method-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
#pg-howto .ht-method-action {
  flex: 0 0 auto;
}
#pg-howto .ht-method-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
#pg-howto .ht-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}
#pg-howto .ht-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--pay-line);
}
#pg-howto .ht-shot figcaption {
  margin: 0;
  padding: 12px 14px;
  color: var(--pay-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
#pg-howto .ht-method-content > .ht-shot {
  display: none;
}
#pg-howto .ht-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: htStep;
}
#pg-howto .ht-flow--six {
  grid-template-columns: 1fr;
}
#pg-howto .ht-step {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 220px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--pay-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}
#pg-howto .ht-step-shot {
  min-height: 220px;
  margin: 0;
  background: #F5F5F5;
  border-right: 1px solid var(--pay-line);
}
#pg-howto .ht-step-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
#pg-howto .ht-step-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 18px;
}
#pg-howto .ht-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
#pg-howto .ht-step h3 {
  margin: 14px 0 8px;
  color: var(--pay-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
#pg-howto .ht-step p {
  margin: 0;
  color: var(--pay-muted);
  font-size: 13px;
  line-height: 1.7;
}
#pg-howto .ht-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: -6px 0 22px;
  padding: 14px 16px;
  color: #333;
  background: #feecec;
  border: 1px solid #f5b7b8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
#pg-howto .ht-alert i {
  margin-top: 4px;
}

/* PC版では固定ヘッダー直下の余白とヒーローの縦中央寄せを抑え、タイトルを早く見せる */
@media (min-width: 901px) {
  body.payment-info-page > .container .contents {
    padding-top: 18px !important;
  }
  #pg .pg-hero-grid,
  #pg-howto .ht-hero-grid {
    align-items: start;
    min-height: 0;
    padding-top: 32px;
    padding-bottom: 38px;
  }
}

@media (max-width: 900px) {
  #pg .pg-hero-grid,
  #pg-howto .ht-hero-grid,
  #pg .pg-method-grid,
  #pg .pg-faq-grid,
  #pg-howto .ht-method-content,
  #pg-howto .ht-flow,
  #pg-howto .ht-flow--six {
    grid-template-columns: 1fr;
  }
  #pg .pg-route-grid,
  #pg-howto .ht-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #pg .pg-point-grid,
  #pg .pg-next-inner,
  #pg-howto .ht-method-head,
  #pg-howto .ht-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  #pg .pg-band-action,
  #pg .pg-next-action,
  #pg-howto .ht-method-action,
  #pg-howto .ht-bottom-action {
    width: 100%;
  }
}
@media (max-width: 520px) {
  #pg,
  #pg-howto {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }
  #pg .pg-container,
  #pg-howto .ht-container {
    padding: 0 14px;
  }
  #pg .pg-hero-grid,
  #pg-howto .ht-hero-grid {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 34px;
  }
  #pg .pg-hero-copy h1,
  #pg-howto .ht-hero h1 {
    font-size: 27px;
  }
  #pg .pg-hero-lead,
  #pg-howto .ht-hero-lead {
    font-size: 14px;
  }
  #pg .pg-route,
  #pg-howto .ht-method-nav {
    position: static;
  }
  #pg .pg-route-grid,
  #pg-howto .ht-nav-grid {
    grid-template-columns: 1fr;
  }
  #pg .pg-methods,
  #pg .pg-compare-section,
  #pg .pg-faq-section,
  #pg-howto .ht-method {
    padding: 40px 0;
  }
  #pg .pg-method-specs {
    grid-template-columns: 1fr;
  }
  #pg-howto .ht-step {
    grid-template-columns: 1fr;
  }
  #pg-howto .ht-step-shot {
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--pay-line);
  }
  #pg .pg-section-head h2,
  #pg .pg-faq-intro h2,
  #pg .pg-point-grid h2,
  #pg .pg-next h2,
  #pg-howto .ht-method-head h2,
  #pg-howto .ht-bottom h2 {
    font-size: 23px;
  }
}
