/* 記事・一覧ページ共通。本文をWPのthe_content()へ置換できます。 */
.editorial-page {
  background: var(--aqua);
}

.editorial-main {
  position: relative;
  isolation: isolate;
  padding: 108px 24px 60px;
}

.editorial-main::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 450px;
  height: 450px;
  left: max(16px, calc(50% - 700px));
  top: 100px;
  background: url('../images/bg_circle_img.svg') center / contain no-repeat;
}

.editorial-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto 22px;
  font-size: 11px;
  color: var(--navy);
}

.editorial-breadcrumb a:hover {
  text-decoration: underline;
}

.editorial-heading {
  text-align: center;
  margin: 0 auto 48px;
}

.editorial-heading > h1, .editorial-heading > p:first-child {
  font-size: 34px;
  color: var(--navy);
  font-weight: 900;
}

.editorial-heading > p:last-child {
  font-size: 13px;
  margin-top: 12px;
}

.editorial-sheet {
  max-width: 1100px;
  margin: auto;
  padding: 52px 90px 65px;
  background: white;
  border-radius: 34px;
}

.editorial-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.editorial-meta > :first-child {
  background: var(--blue);
  color: white;
  min-width: 120px;
  padding: 4px 16px;
  text-align: center;
}

.editorial-sheet h1 {
  color: var(--navy);
  font-size: 28px;
  line-height: 1.6;
  margin: 18px 0 12px;
}

.editorial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.editorial-tags span {
  border: 1px solid #9ed3e2;
  border-radius: 20px;
  color: var(--navy);
  font-size: 11px;
  padding: 2px 12px;
}

.draft-note {
  font-size: 12px;
  color: #536371;
  margin: 14px 0 22px;
  line-height: 1.9;
}

.editorial-cover {
  margin: 26px 0 38px;
}

.editorial-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.65;
  object-fit: cover;
}

.editorial-content {
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.editorial-content section {
  margin: 28px 0;
}

.editorial-content h2 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 21px;
  margin: 30px 0 10px;
}

.heading-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--gradient);
  color: var(--blue);
  font-size: 17px;
}

.editorial-content h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 24px 0 10px;
}

.editorial-content p {
  margin: 12px 0;
}

.editorial-content a {
  color: var(--blue);
  text-decoration: underline;
}

.editorial-content img {
  max-width: 100%;
  height: auto;
}

.editorial-content figure {
  margin: 24px 0;
}

.editorial-content blockquote {
  margin: 25px 0;
  border-left: 4px solid #64cdd6;
  background: #f0fbfd;
  padding: 20px;
}

.editorial-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 24px 0;
}

.editorial-content th, .editorial-content td {
  border: 1px solid #cbdde3;
  padding: 12px;
}

.editorial-content th {
  background: var(--aqua);
}

.article-cta, .editorial-contact {
  max-width: 920px;
  padding: 32px 24px;
  text-align: center;
}

.article-cta {
  margin: 40px auto 0;
  background: #fff;
  border: 6px solid #52ccef;
  border-image: var(--gradient) 1;
}

.editorial-contact {
  margin: 50px auto;
  background: var(--gradient);
}

.article-cta h2, .editorial-contact h2 {
  font-size: 23px;
}

.article-cta .button, .editorial-contact .button {
  background: white;
  margin-top: 18px;
}

.editorial-contact p {
  margin-top: 12px;
}

.related-articles, .editorial-list {
  max-width: 1000px;
  margin: 45px auto;
}

.related-articles > h2 {
  text-align: center;
}

.related-articles .draft-note {
  text-align: center;
}

.article-navigation {
  display: flex;
  justify-content: center;
  max-width: 920px;
  margin: 35px auto;
  gap: 25px;
  color: var(--blue);
  font-size: 13px;
}

.article-navigation a {
  text-decoration: underline;
}

.news-navigation {
  justify-content: space-between;
}

.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.category-filter a {
  padding: 10px 22px;
  border: 1px solid #50b1db;
  border-radius: 30px;
  background: white;
  color: var(--navy);
  font-weight: 700;
}

.category-filter a[aria-current='page'] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

[data-category][hidden] {
  display: none;
}

.image-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 2.65;
  background: #ecf3f6;
  border: 1px dashed #99bac9;
  color: #526877;
  margin: 28px 0;
}

@media (max-width: 700px) {
  .editorial-main {
    padding: 85px 16px 30px;
  }

  .editorial-main::before {
    width: 230px;
    height: 230px;
    left: -45px;
    top: 100px;
  }

  .editorial-heading {
    margin-bottom: 30px;
  }

  .editorial-heading > h1, .editorial-heading > p:first-child {
    font-size: 26px;
  }

  .editorial-heading > p:last-child {
    font-size: 11px;
  }

  .editorial-sheet {
    padding: 26px 20px 34px;
    border-radius: 24px;
  }

  .editorial-sheet h1 {
    font-size: 23px;
  }

  .editorial-content {
    font-size: 14px;
  }

  .editorial-content h2 {
    font-size: 18px;
  }

  .editorial-cover img {
    aspect-ratio: 1.7;
  }

  .category-filter {
    gap: 8px;
  }

  .category-filter a {
    font-size: 12px;
    padding: 8px 14px;
  }

  .article-cta h2 {
    font-size: 20px;
  }

  .editorial-contact {
    display: none;
  }

}

/* くらしのお役立ち情報：支給原稿の本文・図表 */
.article-card-lead {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
}

.article-image-unset,
.article-art-placeholder {
  border: 1px dashed #99bac9;
  background: #ecf3f6;
  aspect-ratio: 16 / 9;
}

.editorial-cover.article-art-placeholder,
.editorial-content .article-art-placeholder {
  aspect-ratio: 2.65;
}

.editorial-content > section > :is(ul, ol):not(.article-flow) {
  padding-inline-start: 1.5em;
  margin-block: 12px;
}

.editorial-content :is(ul, ol) > li + li {
  margin-top: 4px;
}

.article-note {
  font-size: 0.85em;
  color: var(--navy);
}

.article-cta-secondary {
  display: inline-block;
  margin-top: 12px;
  text-decoration: underline;
}

.article-chart {
  background: #f0fbfd;
  padding: 18px;
  border-radius: 10px;
}

.article-chart figcaption {
  color: var(--navy);
  font-weight: 700;
}

.article-chart ul {
  list-style: none;
  margin-top: 14px;
  padding: 0;
}

.article-chart li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: baseline;
}

.editorial-content .article-chart li + li {
  margin-top: 12px;
}

.article-chart-track {
  grid-column: 1 / -1;
  height: 12px;
  background: #dceef4;
  border-radius: 6px;
  overflow: hidden;
}

.article-chart-track > span {
  display: block;
  height: 100%;
  background: #64cdd6;
}

.article-chart .is-emphasized .article-chart-track > span {
  background: var(--blue);
}

.article-chart .is-emphasized {
  color: var(--blue);
  font-weight: 700;
}

.article-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
  font-size: 13px;
}

.editorial-content .article-flow li {
  position: relative;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--aqua);
}

.article-flow strong {
  display: block;
  color: var(--navy);
}

.article-flow li + li::before {
  content: "›";
  position: absolute;
  right: 100%;
  width: 18px;
  text-align: center;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .article-flow {
    grid-template-columns: 1fr;
  }

  .article-flow li + li::before {
    top: -23px;
    right: calc(50% - 9px);
    transform: rotate(90deg);
  }
}

/* あおぞらチャージサービス：3つの0円 */
.article-zero-benefits {
  margin: 24px 0;
  padding: 24px;
  background: #def8fb;
}
.article-zero-benefits > div {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.article-zero-benefits > div + div { margin-top: 14px; }
.article-zero-benefits dt {
  padding: 12px 8px;
  border: 5px solid transparent;
  border-radius: 15px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, #50cfff, #92ef97) border-box;
  color: #00346d;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.article-zero-benefits dt strong { font-size: 1.35em; }
.article-zero-benefits dd { margin: 0; min-width: 0; color: #111; line-height: 1.7; }
@media (max-width: 767px) {
  .article-zero-benefits { padding: 20px 16px; }
  .article-zero-benefits > div { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .article-zero-benefits > div + div { margin-top: 24px; }
  .article-zero-benefits dt { width: 100%; max-width: 280px; box-sizing: border-box; }
  .article-zero-benefits dd br { display: none; }
}

/* あおぞらチャージサービス：お申込みの流れ（縦並び） */
.article-flow.article-flow-vertical {
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  margin: 48px 0 24px 14px;
  font-size: inherit;
}
.editorial-content .article-flow-vertical > li {
  min-width: 0;
  padding: 22px 28px 26px 112px;
  border-radius: 14px;
}
.article-flow-vertical .article-flow-step {
  position: absolute;
  top: 16px;
  left: -14px;
  width: 106px;
  padding: 5px 8px;
  box-sizing: border-box;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.article-flow-vertical strong {
  font-size: 20px;
  line-height: 1.6;
}
.editorial-content .article-flow-vertical p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.editorial-content .article-flow-vertical .article-flow-note {
  margin-top: 24px;
  font-size: 0.9em;
}
.article-flow-vertical li + li::before {
  content: "";
  top: -29px;
  right: auto;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--navy);
  transform: translateX(-50%);
}
@media (max-width: 700px) {
  .article-flow.article-flow-vertical {
    margin: 32px 0 20px;
    gap: 36px;
  }
  .editorial-content .article-flow-vertical > li {
    padding: 54px 18px 22px;
  }
  .article-flow-vertical .article-flow-step {
    top: 14px;
    left: -6px;
    width: 92px;
    font-size: 16px;
  }
  .article-flow-vertical strong { font-size: 18px; }
  .article-flow-vertical li + li::before { top: -24px; }
}

/* 本文リンク：FAQと共通の装飾 */
.editorial-content a.article-text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* 記事一覧の公開日 */
.column-page .article-text > small {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
