/* ================================================================
   ARTICLES — common.css
   新記事デザインシステム共通スタイル
   ================================================================ */

/* ---- カラートークン ---- */
:root {
  --blue:    #043F6D;
  --blue2:   #105b9f;
  --blue3:   #2a78c8;
  --blue4:   #7ab0de;
  --blue5:   #d4e8f7;
  --lb:      #46A2DA;
  --lb2:     #65b5e4;
  --lb3:     #85c7ed;
  --lb4:     #b0d9f3;
  --lb5:     #e2f3fc;
  --pink:    #EB4878;
  --orange:  #F5A100;
  --white:   #F9F9F9;
  --pw:      #FFFFFF;
  --black:   #35393C;
  --gray:    #5D6062;
  --gray2:   #6e7375;
  --gray3:   #7f8588;
  --gray4:   #909798;
  --gray5:   #a1a9ac;
  --gray6:   #b2bbbf;
  --gray7:   #c3cdd2;
}

/* ================================================================
   HERO
   ================================================================ */
.a-hero {
  padding: 2.6rem 1.5rem 2.4rem;
  background: linear-gradient(135deg, #021f2e 0%, #063e56 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -2px 0 rgba(70,162,218,.45);
}
/* ドットパターン */
.a-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(70,162,218,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
/* 右上グロウ */
.a-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(70,162,218,.22) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}
.a-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
/* カテゴリバッジ + Part番号 の行 */
.a-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .9rem;
}
.a-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lb);
  background: rgba(70,162,218,.18);
  padding: .28rem .9rem;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
}
.a-hero__part {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  font-family: 'Raleway', sans-serif;
}
/* メインタイトル */
.a-hero__title {
  font-size: clamp(1.85rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 .75rem;
  letter-spacing: -.02em;
}
/* サブ説明文 */
.a-hero__desc {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin: 0;
}

/* ================================================================
   BREADCRUMB
   ================================================================ */
.a-bc {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: .6rem 1.5rem;
}
.a-bc__list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .25rem;
  font-size: .77rem;
  color: var(--gray3);
}
.a-bc__item {
  display: flex;
  align-items: center;
}
.a-bc__item:not(:last-child)::after {
  content: '/';
  color: var(--gray6);
  margin: 0 .35rem;
}
.a-bc__item a {
  color: var(--gray2);
  text-decoration: none;
  transition: color .15s;
}
.a-bc__item a:hover { color: var(--lb); }
.a-bc__item--current { color: var(--gray4); }

/* ================================================================
   レイアウト
   ================================================================ */
.a-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* ================================================================
   記事タイポグラフィ
   ================================================================ */
.a-main {
  font-size: .95rem;
  color: var(--black);
  line-height: 1.85;
}
.a-main p {
  margin: 0 0 1rem;
}
.a-main p:last-child {
  margin-bottom: 0;
}

/* ================================================================
   LEAD（リード文）
   ================================================================ */
.a-lead {
  background: rgba(70,162,218,.07);
  border-radius: 10px;
  padding: 1.4rem 1.7rem;
  margin-bottom: 2.5rem;
  font-size: .97rem;
  line-height: 1.9;
}
.a-lead p:last-child { margin-bottom: 0; }

/* ================================================================
   TOC（目次）
   ================================================================ */
.a-toc {
  border: 1.5px solid rgba(4,63,109,.14);
  border-radius: 10px;
  padding: 1.3rem 1.5rem 1.5rem;
  margin-bottom: 3rem;
  background: #fff;
}
.a-toc__title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  font-family: 'Raleway', sans-serif;
}
.a-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc-cnt;
}
.a-toc__list li {
  counter-increment: toc-cnt;
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.a-toc__list li:last-child { border-bottom: none; }
.a-toc__list li::before {
  content: counter(toc-cnt, decimal-leading-zero);
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 700;
  color: var(--lb);
  font-family: 'Raleway', sans-serif;
  min-width: 1.8em;
}
.a-toc__list a {
  color: var(--black);
  text-decoration: none;
  font-size: .88rem;
  line-height: 1.5;
  transition: color .15s;
}
.a-toc__list a:hover { color: var(--lb); }

/* ================================================================
   セクション
   ================================================================ */
.a-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.a-section:last-of-type { border-bottom: none; }

/* H2：数字バッジ付き */
.a-h2 {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: clamp(1.05rem, 3vw, 1.22rem);
  font-weight: 800;
  color: var(--blue);
  margin: 2.8rem 0 1.1rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--lb5);
  line-height: 1.4;
}
.a-section:first-of-type .a-h2 { margin-top: 0; }

.a-h2__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.3rem;
  height: 2.3rem;
  background: var(--lb);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  letter-spacing: .05em;
}

/* まとめ用アイコンバッジ */
.a-h2__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.3rem;
  height: 2.3rem;
  background: var(--blue4);
  color: var(--blue);
  font-size: .88rem;
  border-radius: 6px;
}

/* サブ見出し（タグラベル）*/
.a-subhead {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(4,63,109,.07);
  padding: .28rem .85rem;
  border-radius: 4px;
  margin: 1.5rem 0 .55rem;
  font-family: 'Raleway', sans-serif;
}

/* 回答例の質問文（a-subheadの直後に置く）*/
.a-ex-q {
  font-size: .83rem;
  color: var(--gray3);
  margin: 0 0 .65rem;
  line-height: 1.6;
}

/* ================================================================
   FULL-WIDTH EXTENSION SECTIONS
   ================================================================ */
.a-ext { width: 100%; }
.a-ext__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.a-ext--expert {
  background: linear-gradient(135deg, #021f2e 0%, #063e56 100%);
  border: none;
  position: relative;
  overflow: hidden;
}
/* ドットパターン（ヒーローと統一） */
.a-ext--expert::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(70,162,218,.1) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.a-ext--author {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.a-ext--related {
  background: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 2.5rem 0 3rem;
}

/* ================================================================
   ASK THE EXPERT — バナースタイル（mypage 風）
   ================================================================ */

/* セクション内パディングを compact に */
.a-ext--expert .a-ext__inner { padding: 2rem 1.5rem; }

.ae-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.ae-banner__content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
  min-width: 0;
}
.ae-banner__icon {
  width: 3rem; height: 3rem;
  background: rgba(70,162,218,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--lb);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ae-banner__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .2rem;
  letter-spacing: -.01em;
  font-family: 'Noto Sans JP', sans-serif;
}
.ae-banner__desc {
  font-size: .87rem;
  color: rgba(255,255,255,.62);
  margin: 0;
  line-height: 1.55;
}
.ae-banner__btn {
  display: inline-flex;
  align-items: center; gap: .5rem;
  flex-shrink: 0;
  padding: .7rem 1.8rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: .9rem; font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.ae-banner__btn:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff !important;
  text-decoration: none;
}
.ae-banner__btn i { font-size: .82rem; transition: transform .2s ease; }
.ae-banner__btn:hover i { transform: translateX(3px); }

/* ================================================================
   AUTHOR
   ================================================================ */
.author-section {
  background: none; border-radius: 0;
  padding: 0; margin: 0;
  box-shadow: none; border: none;
  display: flex; align-items: flex-start; gap: 2rem;
  transition: none;
}
.author-section:hover { transform: none; box-shadow: none; }
.author-section img {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--lb4);
  box-shadow: 0 4px 12px rgba(70,162,218,.2);
  flex-shrink: 0;
  transition: transform .3s ease, border-color .3s ease;
}
.author-section img:hover { transform: scale(1.04); border-color: var(--lb); }
.author-section .text-content { flex: 1; }
.author-section .text-content h3 {
  font-size: 1rem; color: var(--blue);
  margin: 0 0 .3rem; font-weight: 700;
  padding-bottom: .4rem; position: relative;
}
.author-section .text-content h3::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 44px; height: 2px;
  background: var(--lb); border-radius: 2px;
}
.author-section .text-content h6 {
  font-size: .95rem; color: var(--lb);
  margin: 0 0 .7rem; font-weight: 600;
}
.author-section .text-content p {
  font-size: .83rem; line-height: 1.8;
  color: var(--gray); margin: 0; text-align: justify;
}

/* ================================================================
   RELATED ARTICLES
   ================================================================ */
.a-ext--related h2.text-center,
main.main-content-new > h2.text-center {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 .8rem;
  letter-spacing: -.01em;
  padding: 0 1.5rem;
}
.scroll-arrow-indicator {
  text-align: center;
  color: var(--lb);
  margin-bottom: .6rem;
  opacity: .7;
  transition: opacity .4s;
}
.scroll-arrow-indicator i { font-size: .95rem; }
.article-list-wrapper {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1.2rem;
}
.article-list-wrapper .article-list {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: .75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(70,162,218,.3) rgba(70,162,218,.1);
}
.article-list-wrapper .article-list::-webkit-scrollbar { height: 6px; }
.article-list-wrapper .article-list::-webkit-scrollbar-track {
  background: rgba(70,162,218,.1); border-radius: 10px;
}
.article-list-wrapper .article-list::-webkit-scrollbar-thumb {
  background: rgba(70,162,218,.35); border-radius: 10px;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.article-card-new {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(4,63,109,.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  min-width: 238px;
  max-width: 238px;
  flex-shrink: 0;
  transition: transform .35s ease, box-shadow .35s ease;
}
.article-card-new.animate-in { animation: fadeInUp .55s ease forwards; }
.article-card-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 32px rgba(4,63,109,.14);
}
.article-card-new:hover .article-card-image { transform: scale(1.08); }
.article-card-new:hover .article-card-link {
  background: var(--blue);
  color: #fff !important;
}
.article-card-new:hover .article-card-link i { transform: translateX(4px); }
.article-card-image-wrapper {
  width: 100%; height: 146px;
  position: relative; overflow: hidden;
}
.article-card-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.article-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.22) 100%);
  pointer-events: none;
}
.article-card-body {
  padding: .85rem;
  display: flex; flex-direction: column; flex: 1;
}
.article-card-meta {
  display: flex; flex-direction: column;
  align-items: center; gap: .2rem;
  margin-bottom: .4rem;
}
.article-category-badge {
  display: inline-block;
  padding: .25rem .75rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--lb) 100%);
  color: #fff !important;
  border-radius: 50px;
  font-size: .7rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(4,63,109,.15);
  transition: transform .2s, box-shadow .2s;
}
.article-category-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(4,63,109,.22);
}
.article-date-text {
  font-size: .6rem;
  color: rgba(93,96,98,.55);
  list-style: none; padding: 0; margin: 0;
}
.article-date-text li {
  font-size: .6rem; list-style: none; margin: 0;
}
.article-card-title {
  font-size: .92rem !important;
  font-weight: 700 !important;
  color: var(--blue) !important;
  margin: 0 0 .3rem !important;
  line-height: 1.35 !important;
  text-align: left !important;
}
.article-card-excerpt {
  font-size: .67rem !important;
  color: var(--gray) !important;
  line-height: 1.55 !important;
  margin-bottom: .5rem !important;
  flex: 1; text-align: left;
}
.article-card-link {
  display: inline-flex;
  align-items: center; gap: .35rem;
  margin: 0 auto;
  padding: .4rem .9rem;
  background: var(--white);
  border: 1.5px solid var(--blue);
  color: var(--blue) !important;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600; font-size: .76rem;
  transition: background .2s ease, color .2s ease;
}
.article-card-link i { transition: transform .2s ease; font-size: .72rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 640px) {
  .a-hero {
    padding: 2rem 1.1rem 1.8rem;
  }
  .a-bc {
    padding: .5rem 1.1rem;
  }
  .a-wrap {
    padding: 1.8rem 1.1rem 3rem;
  }
  .a-lead {
    padding: 1.1rem 1.2rem;
    font-size: .93rem;
  }
  .a-toc {
    padding: 1rem 1.1rem 1.2rem;
  }
  .a-h2 {
    margin-top: 2.2rem;
    font-size: 1.05rem;
    gap: .65rem;
  }
  .a-h2__num,
  .a-h2__icon {
    width: 2rem;
    height: 2rem;
    font-size: .64rem;
  }
  .a-subhead {
    font-size: .68rem;
  }

  /* Extension sections */
  .a-ext__inner { padding: 2.5rem 1.1rem; }

  /* Ask the Expert バナー — 縦積み */
  .ae-banner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .ae-banner__btn { align-self: flex-start; }

  /* Author */
  .author-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .author-section .text-content h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .author-section .text-content p { text-align: left; }

  /* Related articles */
  .article-list-wrapper { padding: 0 .8rem; }
  .article-card-new { min-width: 210px; max-width: 210px; }
}

/* ================================================================
   CTA SECTION（フッター上部）
   ================================================================ */
.cta-section-new {
  background: #0d1627;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.cta-container-new {
  max-width: 680px;
  margin: 0 auto;
}
.cta-title-new {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.cta-subtitle-new {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin: 0 0 1.8rem;
  line-height: 1.65;
}
.cta-button-new {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 2.4rem;
  background: transparent;
  border: 2px solid rgba(255,255,255,.55);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.cta-button-new:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff !important;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ================================================================
   FOOTER（mypage スタイルに合わせた上書き）
   ================================================================ */
.footer-new {
  background: #0d1627;
  color: rgba(255,255,255,.75);
  padding: 3rem 1.5rem 2rem;
}
.footer-container-new { max-width: 1200px; margin: 0 auto; }
.footer-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-heading-new {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-heading-spacer { margin-top: 1.8rem; }
.footer-links-new {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer-links-new li a {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  line-height: 1.6;
  transition: color .15s ease;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-links-new li a:hover { color: #fff; text-decoration: none; }
.footer-links-new li a i { font-size: .72rem; opacity: .7; }
.footer-links-new .footer-sub-link a {
  font-size: .78rem;
  padding-left: .8rem;
  color: rgba(255,255,255,.45);
}
.footer-links-new .footer-sub-link a:hover { color: rgba(255,255,255,.75); }
.footer-bottom-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo-new img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-copyright-new p {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  margin: 0;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 960px) {
  .footer-grid-new { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-grid-new { grid-template-columns: 1fr; }
  .footer-bottom-new { flex-direction: column; align-items: flex-start; }
  .footer-copyright-new p { text-align: left; }
  .cta-section-new { padding: 2.5rem 1.1rem; }
}

/* ================================================================
   Reference Article Link
   ================================================================ */
.a-ref-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.1rem;
  background: rgba(70,162,218,.06);
  border: 1px solid rgba(70,162,218,.25);
  border-radius: 8px;
  text-decoration: none;
  color: var(--black);
  margin: 1rem 0 1.2rem;
  transition: background .2s ease, border-color .2s ease;
}
.a-ref-link:hover {
  background: rgba(70,162,218,.12);
  border-color: var(--lb);
  text-decoration: none;
  color: var(--black);
}
.a-ref-link__label {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lb);
  background: rgba(70,162,218,.15);
  padding: .22rem .65rem;
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
  white-space: nowrap;
}
.a-ref-link__title {
  flex: 1;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.5;
}
.a-ref-link__icon {
  flex-shrink: 0;
  color: var(--lb);
  font-size: .78rem;
  transition: transform .2s ease;
}
.a-ref-link:hover .a-ref-link__icon { transform: translateX(3px); }

/* ================================================================
   Article Bullet List
   ================================================================ */
.a-list {
  list-style: none;
  padding: .35rem 0 .5rem;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.a-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .93rem;
  line-height: 1.75;
  padding: .2rem 0;
}
.a-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--lb);
  border-radius: 50%;
  margin-top: .6rem;
}

/* ================================================================
   Quote Block
   ================================================================ */
.a-quote {
  background: rgba(4,63,109,.05);
  border-left: 3px solid var(--lb);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.4rem;
  margin: 1.2rem 0 1.4rem;
}
.a-quote__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lb);
  font-family: 'Raleway', sans-serif;
  margin-bottom: .5rem;
}
.a-quote__text {
  font-size: .97rem;
  color: var(--blue);
  font-weight: 600;
  margin: 0;
  line-height: 1.7;
}

/* ================================================================
   Example Answer Block
   ================================================================ */
.a-ex-block {
  background: var(--lb5);
  border-radius: 8px;
  padding: 1rem 1.3rem;
  margin: .4rem 0 1.2rem;
  font-size: .92rem;
  line-height: 1.85;
  color: var(--black);
}
.a-ex-block p:last-child { margin-bottom: 0; }

/* ================================================================
   Video Embed
   ================================================================ */
.a-video {
  margin: 1.2rem 0 1.6rem;
}
.a-video iframe {
  display: block;
  width: 100%;
  border-radius: 8px;
}
.a-video--short {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.a-video__caption {
  font-size: .8rem;
  color: var(--gray3);
  text-align: center;
  margin: .5rem 0 0;
  line-height: 1.5;
}

/* ================================================================
   Numbered Step List
   ================================================================ */
.a-steps {
  list-style: none;
  padding: .35rem 0 .5rem;
  margin: 0 0 1rem;
  counter-reset: step-cnt;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.a-steps li {
  counter-increment: step-cnt;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .93rem;
  line-height: 1.75;
  padding: .2rem 0;
}
.a-steps li::before {
  content: counter(step-cnt);
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  background: var(--lb);
  color: #fff;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  text-align: center;
  line-height: 1.5rem;
  margin-top: .22rem;
}

/* ================================================================
   Method / Step Card
   ================================================================ */
.a-method {
  border: 1px solid rgba(70,162,218,.2);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.4rem 0;
}
.a-method__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.2rem;
  background: rgba(70,162,218,.08);
  border-bottom: 1px solid rgba(70,162,218,.15);
}
.a-method__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--lb);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
}
.a-method__title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--blue);
}
.a-method__body {
  padding: 1rem 1.2rem 1.1rem;
}
.a-method__body > p:last-child,
.a-method__body > .a-list:last-child { margin-bottom: 0; }
.a-method__body .a-subhead { margin-top: .9rem; }

@media (max-width: 640px) {
  .a-method__head { padding: .75rem 1rem; }
  .a-method__body { padding: .85rem 1rem 1rem; }
}

/* ================================================================
   IELTS Task Card
   ================================================================ */
.a-task-card {
  border: 1.5px solid rgba(4,63,109,.18);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  margin: 1rem 0 1.4rem;
  background: rgba(4,63,109,.02);
}
.a-task-card__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lb);
  font-family: 'Raleway', sans-serif;
  margin-bottom: .9rem;
}
.a-task-card__q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 .9rem;
  line-height: 1.55;
}
.a-task-card__say,
.a-task-card__and {
  font-size: .88rem;
  color: var(--gray2);
  margin: 0 0 .35rem;
}
.a-task-card__and { margin: 0; }
.a-task-card__list {
  list-style: none;
  padding: 0 0 0 .5rem;
  margin: 0 0 .5rem;
}
.a-task-card__list li {
  font-size: .88rem;
  color: var(--gray2);
  line-height: 1.7;
  padding: .1rem 0;
  display: flex;
  align-items: flex-start;
  gap: .4rem;
}
.a-task-card__list li::before {
  content: '–';
  color: var(--lb);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .a-task-card { padding: 1rem 1.1rem; }
}

/* ================================================================
   Process Flow Diagram
   ================================================================ */
.a-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 1.2rem 0 1.4rem;
  padding: 1rem 1.2rem;
  background: rgba(4,63,109,.04);
  border-radius: 8px;
}
.a-flow__step {
  display: inline-flex;
  align-items: center;
  padding: .35rem .8rem;
  background: #fff;
  border: 1.5px solid rgba(70,162,218,.35);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.4;
  white-space: nowrap;
}
.a-flow__arrow {
  color: var(--lb);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}
.a-flow--goal .a-flow__step {
  background: rgba(70,162,218,.1);
  border-color: var(--lb);
}

@media (max-width: 640px) {
  .a-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    padding: .85rem 1rem;
  }
  .a-flow__step { white-space: normal; }
  .a-flow__arrow {
    display: block;
    transform: rotate(90deg);
    margin-left: .4rem;
  }
}

/* ================================================================
   Aside Block (tangent / supplementary note)
   ================================================================ */
.a-aside {
  background: rgba(0,0,0,.035);
  border-radius: 8px;
  padding: .9rem 1.2rem 1rem;
  margin: 1.2rem 0 1.4rem;
}
.a-aside__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray3);
  font-family: 'Raleway', sans-serif;
  margin-bottom: .45rem;
}
.a-aside p {
  font-size: .88rem;
  color: var(--gray2);
  line-height: 1.8;
  margin: 0;
}

/* ================================================================
   CATEGORY INDEX PAGE  (.cat-index)
   カテゴリー別記事一覧ページ共通スタイル
   ================================================================ */
.cat-index {
  background: var(--white);
  padding: 2.5rem 1.5rem 4rem;
}
.cat-index__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- 検索ボックス ---- */
.cat-search-box {
  background: #fff;
  border: 2px solid rgba(70,162,218,.15);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 18px rgba(4,63,109,.07);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.cat-search-box:focus-within {
  border-color: rgba(70,162,218,.35);
  box-shadow: 0 6px 24px rgba(4,63,109,.1);
}
.cat-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.cat-search-icon {
  position: absolute;
  left: 1.1rem;
  color: var(--lb);
  font-size: 1rem;
  pointer-events: none;
}
.cat-search-input {
  width: 100%;
  padding: .85rem 2.8rem .85rem 3rem;
  border: 2px solid rgba(70,162,218,.2);
  border-radius: 50px;
  font-size: .95rem;
  color: var(--blue);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cat-search-input::placeholder { color: rgba(102,102,102,.45); }
.cat-search-input:focus {
  outline: none;
  border-color: var(--lb);
  box-shadow: 0 0 0 3px rgba(70,162,218,.12);
}
.cat-search-clear {
  position: absolute;
  right: 1.1rem;
  color: var(--gray);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: color .2s ease;
}
.cat-search-clear:hover { color: var(--pink); }
.cat-search-result-info {
  margin-top: 1rem;
  padding: .75rem 1.2rem;
  background: rgba(70,162,218,.06);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--gray2);
}
.cat-search-result-info strong { color: var(--blue); font-weight: 700; }
.cat-result-count { font-weight: 700; color: var(--pink); font-size: 1rem; }

/* ---- 記事グリッド ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* グリッド内カードは幅固定を解除してセルを埋める */
.cat-grid .article-card-new {
  min-width: 0;
  max-width: none;
  flex-shrink: 1;
  width: 100%;
}

/* ---- 検索なし・空状態 ---- */
.cat-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray3);
}
.cat-no-results i {
  font-size: 3rem;
  color: rgba(70,162,218,.3);
  margin-bottom: 1rem;
  display: block;
}
.cat-no-results p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: .5rem;
}
.cat-no-results p strong { color: var(--blue); font-weight: 700; }
.cat-no-results__suggestion { font-size: .88rem; color: var(--gray); }
.cat-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray3);
  font-size: .95rem;
}
