/* v18: restrained editorial hierarchy, compact procedures, and persistent image sheen. */

.gg-article .heading-keep {
  display: inline-block;
  white-space: nowrap;
}

/* Keep the long download title on one desktop line without widening article copy. */
@media (min-width: 960px) {
  .gg-article[data-article-id="download"] h1 {
    position: relative;
    left: 50%;
    width: min(1080px, calc(100vw - 64px));
    font-size: clamp(36px, 3.8vw, 42px);
    line-height: 1.34;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .gg-article[data-article-id="download"] .download-heading-line {
    display: block;
    overflow-wrap: normal;
    text-wrap: nowrap;
    white-space: nowrap;
  }

  .gg-article[data-article-id="download"] .download-heading-divider {
    display: inline-block;
    width: .38em;
  }
}

/* A single colored editorial panel; items remain calm rows rather than small cards. */
.gg-article .toc {
  margin-top: 20px;
  padding: 14px 18px 10px;
  border: 1px solid #c7deed;
  border-left: 4px solid #087dcc;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5fafe 0%, #eaf5fb 100%);
}

.gg-article .toc h2 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: #123e5d;
  background: transparent;
  font-size: 17px;
  letter-spacing: .035em;
}

.gg-article .toc ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  border: 0;
}

.gg-article .toc li {
  border-bottom: 1px solid rgba(11, 108, 174, .16);
}

.gg-article .toc a {
  min-height: 50px;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  gap: 8px;
  padding: 7px 2px;
  color: #173a53;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0;
}

.gg-article .toc a::before {
  align-self: center;
  padding: 1px 9px 1px 0;
  border: 0;
  border-right: 2px solid #9ac9e6;
  color: #087dcc;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}

.gg-article .toc a:hover {
  color: #075f9f;
  background: rgba(255, 255, 255, .52);
}

/* Continuous, low-contrast light sweep on eye-catches and linked image CTAs. */
.gg-article .image-cta,
.gg-article .article-hero-figure picture {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gg-article .image-cta {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(4, 55, 96, .10);
}

.gg-article .article-hero-figure picture {
  display: block;
  border-radius: 6px;
}

.gg-article .image-cta::after,
.gg-article .article-hero-figure picture::after {
  position: absolute;
  top: -38%;
  bottom: -38%;
  left: -30%;
  z-index: 3;
  display: block;
  width: 15%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg);
  animation: gg-v18-image-shine 4.6s linear infinite;
  will-change: left;
}

@keyframes gg-v18-image-shine {
  from { left: -30%; }
  to { left: 120%; }
}

/* One procedure language: blue rule, blue label, quiet pale surface. */
.gg-article .wide-step-rail .step-card,
.gg-article .visual-step-gallery .visual-step,
.gg-article .pc-step {
  align-self: start;
  padding: 16px 18px 18px;
  border: 0;
  border-top: 4px solid #72b9e6;
  border-bottom: 1px solid #cfe1ec;
  border-radius: 0;
  background: linear-gradient(180deg, #f4f9fd 0, #fff 112px);
  box-shadow: none;
}

.gg-article[data-article-id="download"] .wide-step-rail .step-card {
  border-top-width: 4px;
  border-top-color: #72b9e6;
  background: linear-gradient(180deg, #f4f9fd 0, #fff 112px);
}

.gg-article .step-title,
.gg-article .visual-step .procedure-step-heading {
  display: block;
  margin: 0 0 11px !important;
  padding: 0;
  border: 0;
  background: transparent;
}

.gg-article .step-title .procedure-step-label,
.gg-article .visual-step .procedure-step-heading .procedure-step-label {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  padding: 0;
  color: #087dcc;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1.35;
}

.gg-article .step-title .procedure-step-label::after,
.gg-article .visual-step .procedure-step-heading .procedure-step-label::after {
  height: 1px;
  flex: 1;
  background: #bfdcec;
  content: "";
}

.gg-article .step-title .procedure-step-action,
.gg-article .visual-step .procedure-step-heading .procedure-step-action {
  display: block;
  color: #252525;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}

.gg-article .pc-step {
  padding-top: 48px;
}

.gg-article .pc-step::before {
  top: 15px;
  left: 18px;
  color: #087dcc;
  content: "手順 " attr(data-step-label);
  font-size: 12px;
  font-weight: 850;
}

.gg-article .step-card .step-figure,
.gg-article .visual-step .article-screenshot {
  margin: 12px 0 0;
}

.gg-article .step-card figcaption,
.gg-article .visual-step figcaption {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.55;
}

/* Editorial 01–04 anchors for short comparison and evidence groups. */
.gg-article .article-check-list,
.gg-article .fact-list,
.gg-article .method-summary-rail,
.gg-article .withdrawal-choice-grid,
.gg-article.crypto-exchange-article .binance-feature-grid {
  counter-reset: gg-v18-item;
}

.gg-article .article-check-list > li,
.gg-article .fact-item,
.gg-article .method-summary-card,
.gg-article .withdrawal-choice-card,
.gg-article.crypto-exchange-article .binance-feature-card {
  counter-increment: gg-v18-item;
}

.gg-article .article-check-list > li::before {
  top: 50%;
  left: 2px;
  display: block;
  width: 38px;
  height: auto;
  padding-right: 9px;
  border: 0;
  border-right: 2px solid #9ac9e6;
  border-radius: 0;
  background: transparent;
  color: #087dcc;
  content: counter(gg-v18-item, decimal);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
  text-align: left;
  transform: translateY(-50%);
}

.gg-article .article-check-list > li {
  min-height: 54px;
  padding: 10px 4px 10px 52px;
}

.gg-article.safety-article .fact-list {
  margin-block: 15px 18px;
}

.gg-article.safety-article .fact-item {
  position: relative;
  display: block;
  padding: 16px 3px 16px 52px;
}

.gg-article.safety-article .fact-item::before {
  position: absolute;
  top: 18px;
  left: 2px;
  width: 38px;
  padding-right: 9px;
  border-right: 2px solid #9ac9e6;
  color: #087dcc;
  content: counter(gg-v18-item, decimal);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.gg-article .method-summary-card,
.gg-article .withdrawal-choice-card,
.gg-article.crypto-exchange-article .binance-feature-card {
  position: relative;
}

.gg-article .method-summary-card::before,
.gg-article .withdrawal-choice-card::before,
.gg-article.crypto-exchange-article .binance-feature-card::before {
  position: absolute;
  top: 9px;
  right: 10px;
  color: #087dcc;
  content: counter(gg-v18-item, decimal);
  font-size: 13px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.gg-article .method-summary-card h3,
.gg-article .withdrawal-choice-card h3,
.gg-article.crypto-exchange-article .binance-feature-card h3 {
  padding-right: 28px;
}

.gg-article .withdrawal-choice-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 5px;
}

.gg-article .withdrawal-choice-card.is-recommended .withdrawal-choice-label {
  background: none;
}

.gg-article .method-recommendation {
  margin-left: 0;
  background: linear-gradient(transparent 55%, var(--article-marker) 55%);
  font-size: 12px;
  font-weight: 850;
}

.gg-article.crypto-exchange-article .binance-feature-grid {
  gap: 0;
  margin-block: 15px 18px;
  border-block: 1px solid var(--article-border);
}

.gg-article.crypto-exchange-article .binance-feature-card {
  padding: 38px 18px 16px;
  border: 0;
  border-right: 1px solid var(--article-border);
  border-radius: 0;
  background: #fff;
}

.gg-article.crypto-exchange-article .binance-feature-card:last-child {
  border-right: 0;
}

.gg-article .article-number-list > li::before,
.gg-article .process-list > li::before {
  width: 34px;
  height: auto;
  padding-right: 9px;
  border-right: 2px solid #9ac9e6;
  border-radius: 0;
  background: transparent;
  color: #087dcc;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.55;
}

.gg-article .article-number-list > li::before {
  content: counter(article-number, decimal);
}

.gg-article .process-list > li::before {
  content: counter(gg-step, decimal);
}

.gg-article[data-article-id="download"] .pc-install-flow > li::before {
  content: counter(pc-install-step, decimal);
  font-size: 15px;
}

/* Reduce pressure only where copy is dense; keep headings at their established size. */
.gg-article section > p:not([class]),
.gg-article .step-card > p:not(.step-title),
.gg-article .visual-step > p:not(.step-title),
.gg-article .article-check-list > li,
.gg-article .article-number-list > li,
.gg-article .process-list > li,
.gg-article .fact-item p,
.gg-article .withdrawal-choice-card p,
.gg-article.crypto-exchange-article .binance-feature-card p,
.gg-article .faq-answer {
  font-size: 15.5px;
  line-height: 1.68;
}

@media (max-width: 700px) {
  .gg-article.crypto-exchange-article .binance-feature-grid {
    grid-template-columns: 1fr;
  }

  .gg-article.crypto-exchange-article .binance-feature-card,
  .gg-article.crypto-exchange-article .binance-feature-card:last-child {
    padding: 34px 4px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--article-border);
  }

  .gg-article.crypto-exchange-article .binance-feature-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .gg-article h1,
  .gg-article.bank-transfer-article h1 {
    font-size: clamp(26px, 7vw, 28px);
    line-height: 1.26;
  }

  .gg-article h1 .heading-kicker {
    font-size: 13px;
    line-height: 1.35;
  }

  .gg-article h1 .heading-phrase-part {
    white-space: nowrap;
  }

  .gg-article[data-article-id="download"] .download-heading-line {
    white-space: normal;
  }

  .gg-article[data-article-id="download"] .download-heading-line .heading-phrase-part {
    display: block;
  }

  .gg-article[data-article-id="download"] .download-heading-divider {
    display: none;
  }

  .gg-article h2 {
    margin: 24px 0 10px;
    font-size: clamp(20px, 5.3vw, 22px);
    line-height: 1.35;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .gg-article .toc {
    margin-top: 14px;
    padding: 8px 9px 4px;
    border-radius: 7px;
  }

  .gg-article .toc h2 {
    margin-bottom: 2px;
    font-size: 15px;
  }

  .gg-article .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }

  .gg-article .toc a {
    min-height: 44px;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 6px;
    padding: 5px 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .gg-article .toc a::before {
    padding-right: 6px;
    font-size: 15px;
    line-height: 1.45;
  }

  .gg-article .wide-step-rail .step-card,
  .gg-article .visual-step-gallery .visual-step,
  .gg-article .pc-step {
    padding: 14px 14px 16px;
  }

  .gg-article .step-title .procedure-step-action,
  .gg-article .visual-step .procedure-step-heading .procedure-step-action {
    font-size: 17px;
  }

  .gg-article section > p:not([class]),
  .gg-article .step-card > p:not(.step-title),
  .gg-article .visual-step > p:not(.step-title),
  .gg-article .article-check-list > li,
  .gg-article .article-number-list > li,
  .gg-article .process-list > li,
  .gg-article .fact-item p,
  .gg-article .withdrawal-choice-card p,
  .gg-article.crypto-exchange-article .binance-feature-card p,
  .gg-article .faq-answer {
    font-size: 15px;
    line-height: 1.66;
  }

  .gg-article.safety-article .fact-item {
    padding-left: 48px;
  }

  .gg-article .method-summary-card::before,
  .gg-article .withdrawal-choice-card::before,
  .gg-article.crypto-exchange-article .binance-feature-card::before {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .gg-article h1,
  .gg-article.bank-transfer-article h1 {
    font-size: 26px;
  }

  .gg-article .toc a {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 4px;
    font-size: 12px;
  }

  .gg-article .toc a::before {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gg-article .image-cta::after,
  .gg-article .article-hero-figure picture::after {
    left: 10%;
    opacity: .2;
    animation: none;
  }
}
