/* ==========================================================================
   行政書士オフィスただ | Office Tada
   Zero-Base Redesign: Calm Editorial Clarity & Approachable Professionalism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

:root {
  /* OFFICE TADA Brand Palette: Deep Navy (#173659) × Forest Green (#38664c) */
  --bg-main: #f7f9fc;          /* 清潔感のあるクールホワイト・アラバスター */
  --bg-surface: #ffffff;       /* カード・ヘッダー・コンテンツ背景 */
  --bg-Subtle: #eef2f7;        /* セクション区切り用のソフトスレート */
  --bg-tint: #ebf1f8;          /* ロゴのネイビーに調和する淡いアイスブルー背景 */
  --bg-green-tint: #eef5f1;    /* ロゴのグリーンに調和する淡いセージグリーン背景 */
  --bg-amber-tint: #fef6ec;    /* 注意喚起・ポイント解説用の淡いアンバー */

  --brand: #173659;            /* ロゴメインカラー：知性と信頼のディープネイビー */
  --navy: #173659;             /* エイリアス：ブランドネイビー */
  --brand-dark: #0f243d;       /* ホバー・強調用ダークネイビー */
  --brand-mid: #38664c;        /* ロゴサブカラー：安心と調和のフォレストグリーン */
  --brand-green: #38664c;
  --brand-green-dark: #294d39;
  --brand-border: #c5d4e5;     /* ネイビー系の洗練されたボーダー */
  --green-border: #bfd6c8;     /* グリーン系の優しいボーダー */

  --cta: #38664c;              /* セカンダリCTA：ロゴのフォレストグリーン */
  --cta-hover: #294d39;

  --text-primary: #16202c;     /* 視認性の高いディープスレート */
  --text-secondary: #435163;   /* 本文サブ・解説文 */
  --text-muted: #6c7a8c;

  --border-light: #dce3ec;
  --border-card: #d0d7de;      /* 記事一覧カード枠線 */
  --amber-border: #e6b86a;     /* 注意喚起コールアウト枠線 */
  --amber-text: #975a16;       /* 注意喚起見出し・テキスト */
  --amber-icon: #b7791f;       /* 注意喚起アイコン・マーカー */
  --tag-bg: #eef3f8;           /* 記事タグ・バッジ背景 */
  --line-color: #06c755;

  --link-color: #1a5fb4;       /* 本文内ハイパーリンク（視認性の高いクラシックブルー） */
  --link-hover: #0d3e78;       /* リンクホバーカラー */
  --link-underline: rgba(26, 95, 180, 0.4); /* リンク下線色 */

  --font-sans: 'Plus Jakarta Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1040px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 6px 24px rgba(23, 54, 89, 0.05);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

/* --- Content Inline Links (Site-Wide Global Rule) --- */
.article-sheet p a,
.article-sheet li a,
.article-sheet td a,
.callout-box a,
.official-ref-box a,
.article-other-topics a,
.article-lead a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.article-sheet p a:hover,
.article-sheet li a:hover,
.article-sheet td a:hover,
.callout-box a:hover,
.official-ref-box a:hover,
.article-other-topics a:hover,
.article-lead a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

/* Standardized In-Article Pointer Reference Link */
.article-ref-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--link-color) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--link-underline) !important;
  text-underline-offset: 4px;
  line-height: 1.5;
  transition: color 0.15s ease, text-decoration-color 0.15s ease, transform 0.15s ease;
}

.article-ref-link:hover {
  color: var(--link-hover) !important;
  text-decoration-color: currentColor !important;
  transform: translateX(3px);
}



ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 3px solid var(--brand);
  border-image: linear-gradient(90deg, var(--brand) 0%, var(--brand) 62%, var(--brand-green) 100%) 1;
  border-bottom: 1px solid var(--border-light);
  height: 82px;
  display: flex;
  align-items: center;
}

.header .container {
  width: 100%;
  max-width: 1140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.logo-img-jp {
  height: 54px;
  width: auto;
  display: block;
}

.logo-img-en {
  height: 44px;
  width: auto;
  display: block;
}

.logo-symbol-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: none;
}

@media (min-width: 960px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 82px;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  gap: 1rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--brand);
}

.nav-link.active {
  color: var(--brand);
  font-weight: 700;
  border-bottom-color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-swapper {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--bg-Subtle);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.lang-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.68rem;
  border-radius: 4px;
  color: var(--text-secondary);
  white-space: nowrap;
  display: inline-block;
  line-height: 1.2;
}

.lang-btn.active {
  background: var(--bg-surface);
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
}

@media (min-width: 960px) {
  .hamburger {
    display: none;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  color: #fff;
}

.btn-cta {
  background-color: var(--cta);
  color: #fff;
}

.btn-cta:hover {
  background-color: var(--cta-hover);
  color: #fff;
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

.btn-outline:hover {
  background-color: var(--bg-tint);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-line {
  background-color: var(--line-color);
  color: #fff;
}

.btn-line:hover {
  background-color: #05b04b;
  color: #fff;
}

/* --- Hero (Home) --- */
.hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #ebf1f8 0%, #ffffff 55%, #eef5f1 100%);
}

@media (min-width: 768px) {
  .hero {
    padding: 4.25rem 0 3.5rem;
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 840px) {
  .hero-layout {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-tint);
  border: 1px solid var(--brand-border);
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero-heading {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 2.1rem;
  }
}

.hero-lead {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero Profile & Pictogram Card */
.hero-side-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.hero-lawyer-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-light);
}

.hero-lawyer-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--bg-tint);
  flex-shrink: 0;
}

.hero-lawyer-meta h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-lawyer-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.15rem;
}

.hero-stance-points li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.55;
}

.hero-stance-points li i {
  color: var(--brand-mid);
  margin-top: 0.28rem;
}

/* --- Purpose Navigation Cards (3 Situations on Home) --- */
.situation-section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head-center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.7rem;
  }
}

.section-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-top: 0.45rem;
}

.situation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .situation-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.situation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.situation-card:hover {
  border-color: var(--brand-border);
}

.situation-card.highlight {
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-surface) 38%);
}

.situation-picto {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.situation-picto svg {
  width: 26px;
  height: 26px;
}

.situation-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: var(--bg-Subtle);
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.situation-card.highlight .situation-badge {
  background: var(--brand);
  color: #fff;
}

.situation-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.situation-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.situation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.situation-tags span {
  font-size: 0.78rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* --- Section Spacing & Backgrounds --- */
.section {
  padding: 3.75rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

.bg-subtle {
  background-color: var(--bg-Subtle);
}

.bg-surface {
  background-color: var(--bg-surface);
}

/* --- Key Insight Box (Why Legal Structure & Preparation Matter) --- */
.insight-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .insight-box {
    padding: 2.5rem;
  }
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .insight-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.insight-item {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.insight-num {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-tint);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.insight-item h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.insight-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Subpage Header --- */
.page-header {
  background: linear-gradient(135deg, #ebf1f8 0%, #f5f8fc 60%, #eef5f1 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 0 2.25rem;
}

.page-header h1 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 1.9rem;
  }
}

.page-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Service Detail Cards (Services Page) --- */
.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .service-detail-card {
    padding: 2.5rem;
  }
}

.service-detail-header,
.service-detail-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-light);
}

.card-picto {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-picto svg {
  width: 24px;
  height: 24px;
}

.service-detail-header h2,
.service-detail-head h2 {
  font-size: 1.22rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.service-detail-card > p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.service-detail-header span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.service-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .service-detail-body {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }
}

.service-point-box {
  background: var(--bg-green-tint);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
}

.service-point-box h4 {
  font-size: 0.92rem;
  color: var(--brand-green-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.service-point-box ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  padding-left: 1rem;
  position: relative;
}

.service-point-box ul li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--brand-green);
  font-weight: 700;
}

/* --- Refugee Visa Package Page --- */
.pkg-banner {
  background: var(--bg-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .pkg-banner {
    padding: 2.5rem;
  }
}

.pkg-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .pkg-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pkg-price-display {
  background: var(--bg-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.pkg-price-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.pkg-price-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.pkg-price-num small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pkg-breakdown {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--brand-border);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.pkg-check-list li {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.pkg-check-list li i {
  color: var(--brand);
  margin-top: 0.3rem;
}

/* 3 Steps Pictogram Cards */
.steps-3-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0 2.25rem;
}

@media (min-width: 768px) {
  .steps-3-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card-clean {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.step-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  padding: 0.18rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.step-picto-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.step-picto-circle svg {
  width: 26px;
  height: 26px;
}

.step-card-clean h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.step-card-clean p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: left;
}

/* Two-column Info Grid */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.info-panel h3 {
  font-size: 1.02rem;
  color: var(--brand);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.info-panel ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.info-panel ul li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--brand);
}

/* --- Pricing & Flow & FAQ --- */
.price-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.94rem;
}

.price-table th {
  background: var(--bg-tint);
  color: var(--brand);
  font-weight: 700;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td.cost {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 1.02rem;
}

.price-desc-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

.flow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.flow-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  align-items: center;
}

@media (min-width: 640px) {
  .flow-row {
    grid-template-columns: 88px 1fr;
    gap: 1.25rem;
  }
}

.flow-badge {
  background: var(--bg-tint);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.flow-row h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.flow-row p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

.faq-box h4 {
  font-size: 0.98rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.faq-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Profile & Contact Page --- */
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .profile-card {
    padding: 2.75rem;
  }
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 740px) {
  .profile-layout {
    grid-template-columns: 230px 1fr;
    gap: 2.5rem;
  }
}

.profile-photo-box {
  text-align: center;
}

.profile-photo-box img {
  width: 190px;
  height: 235px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  border: 3px solid var(--bg-Subtle);
  margin: 0 auto 0.75rem;
}

@media (min-width: 740px) {
  .profile-photo-box img {
    width: 100%;
    height: 270px;
  }
}

.profile-body h2 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-light);
}

.profile-body h2 span {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.profile-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.channel-btn-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.channel-btn-card:hover {
  background: var(--bg-tint);
  border-color: var(--brand);
  color: var(--text-primary);
}

.channel-btn-card i {
  font-size: 1.35rem;
  color: var(--brand);
  width: 28px;
  text-align: center;
}

.channel-btn-card small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.channel-btn-card strong {
  font-size: 1rem;
}

.qr-inline-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.qr-inline-box img {
  width: 80px;
  height: 80px;
  background: #fff;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.qr-inline-box p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.map-frame {
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.map-frame iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

/* --- Bottom CTA Banner --- */
.cta-banner {
  background: var(--bg-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.cta-banner h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

.cta-banner-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.footer-logo-img {
  height: 58px;
  width: auto;
  display: block;
}

.footer-logo-img-en {
  height: 46px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-bottom: 0.85rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--brand);
}

/* --- Immigration Info: Visa Category Hub & Article Pages --- */
.category-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.category-block-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.category-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--bg-tint);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
}

.category-block-head h2 {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.article-link-card:hover {
  background: var(--bg-tint);
  border-color: var(--brand);
  color: var(--text-primary);
}

.article-link-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.article-link-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.article-link-arrow {
  color: var(--brand);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Single Article Page */
.breadcrumb {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--brand);
  text-decoration: underline;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
}

.article-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .article-sheet {
    padding: 2.75rem 3rem;
  }
}

.article-sheet h1 {
  font-size: 1.45rem;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0.6rem 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .article-sheet h1 {
    font-size: 1.7rem;
  }
}

.article-sheet h2 {
  font-size: 1.18rem;
  color: var(--brand);
  margin: 2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--brand);
  line-height: 1.4;
}

.article-sheet p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.85;
}

.article-nav-bottom {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Article Author Card & Other Topics */
.article-author-card {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.article-author-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.article-author-info h4 {
  font-size: 0.94rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.article-author-info p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.article-other-topics {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* --- Article / Column Disclaimer Box --- */
.article-disclaimer,
.column-disclaimer {
  margin-top: 2.2rem;
  padding: 1.15rem 1.35rem;
  background-color: var(--bg-Subtle);
  border-left: 4px solid var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-disclaimer strong,
.column-disclaimer strong,
.article-disclaimer h4,
.column-disclaimer h4 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-disclaimer p,
.column-disclaimer p {
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-other-topics h3 {
  font-size: 0.96rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.article-other-topics ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-other-topics li a {
  font-size: 0.88rem;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.article-other-topics li a:hover {
  text-decoration: underline;
}

/* --- Renewal / News Notice Bar --- */
.renewal-notice-bar {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--brand-border);
  padding: 0.65rem 0;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.renewal-notice-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.news-badge-red {
  background: #c53030;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  display: inline-block;
  flex-shrink: 0;
}

.renewal-notice-badge {
  background: var(--brand);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  display: inline-block;
  flex-shrink: 0;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.news-link {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-link:hover {
  text-decoration: underline;
  color: var(--brand);
}

/* ==========================================================================
   Unified Column Callout Boxes, Visual Diagrams, Series Nav & Official Box
   ========================================================================== */

/* --- Standardized Callout Boxes (Summary / Important / Detail) --- */
.callout-box {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-light);
}

.callout-box h4 {
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.callout-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.callout-box ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.7;
}

.callout-box ul li:last-child {
  margin-bottom: 0;
}

.callout-box ul li::before {
  content: '・';
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Pattern 1: 【要点整理】 Summary / Checklist (Forest Green) */
.callout-summary {
  background: var(--bg-green-tint);
  border-color: var(--green-border);
}

.callout-summary h4 {
  color: var(--brand-green-dark);
}

.callout-summary h4 i {
  color: var(--brand-green);
}

.callout-summary ul li::before {
  color: var(--brand-green);
}

/* Pattern 2: 【重要・注意点】 Important / Warning (Warm Amber) */
.callout-important {
  background: var(--bg-amber-tint);
  border-color: var(--amber-border);
}

.callout-important h4 {
  color: var(--amber-text);
}

.callout-important h4 i {
  color: var(--amber-icon);
}

.callout-important ul li::before {
  color: var(--amber-icon);
}

/* Pattern 3: 【さらに詳しく】 In-Depth / Practical Analysis (Deep Navy) */
.callout-detail {
  background: var(--bg-tint);
  border-color: var(--brand-border);
}

.callout-detail h4 {
  color: var(--brand);
}

.callout-detail h4 i {
  color: var(--brand);
}

.callout-detail ul li::before {
  color: var(--brand);
}

/* Pattern 4: 【情報・ツール補足】 Info / Tool / Supplementary (Subtle Slate/Navy) */
.callout-info,
.callout-tool {
  background: var(--bg-tint);
  border-color: var(--brand-border);
}

.callout-info h4,
.callout-tool h4 {
  color: var(--brand);
}

.callout-info h4 i,
.callout-tool h4 i {
  color: var(--brand);
}

.callout-info ul li::before,
.callout-tool ul li::before {
  color: var(--brand);
}

/* --- Series Navigation Box (e.g., 4-Part Refugee Visa Guide) --- */
.series-nav-box {
  margin: 1.5rem 0 2rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
}

.series-nav-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.series-nav-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.series-nav-item {
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.series-nav-item.active {
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.series-nav-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.series-nav-item a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.series-step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: var(--brand-border);
  color: var(--brand);
  flex-shrink: 0;
}

.series-nav-item.active .series-step-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* --- Visual Diagram Container & Flow Steps --- */
.diagram-box {
  margin: 1.6rem 0;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.diagram-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.flow-steps-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.flow-step-card {
  flex: 1 1 140px;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.95rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flow-step-card:hover {
  border-color: var(--brand-border);
  box-shadow: 0 4px 12px rgba(23, 54, 89, 0.06);
}

.flow-step-label {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--tag-bg);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.flow-step-main {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.45;
  text-align: left;
}

.flow-step-sub {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
  flex-grow: 1;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-light);
  font-size: 1.15rem;
  padding: 0 0.2rem;
}

@media (max-width: 680px) {
  .flow-steps-row {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg);
    padding: 0.2rem 0;
  }
}

/* --- Comparison Table --- */
.comparison-table-wrap {
  margin: 1.5rem 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.5;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.comparison-table th {
  background: var(--bg-tint);
  color: var(--brand);
  font-weight: 700;
  white-space: normal;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
  background: var(--bg-main);
}

.badge-inline {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  white-space: normal;
  line-height: 1.35;
}

.badge-green {
  background: var(--bg-green-tint);
  color: var(--brand-green-dark);
  border: 1px solid var(--green-border);
}

.badge-amber {
  background: var(--bg-amber-tint);
  color: var(--amber-text);
  border: 1px solid #f6e05e;
}

.badge-red {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

/* --- Official Reference Links Box --- */
.official-ref-box {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
}

.official-ref-box h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.official-ref-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.official-ref-box li {
  font-size: 0.84rem;
  line-height: 1.5;
}

.official-ref-box a {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.official-ref-box a:hover {
  color: var(--cta);
}

/* --- Top-Right Latest Update Pill --- */
.hero-side-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.top-news-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.top-news-pill:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(23, 54, 89, 0.08);
}

.top-news-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--tag-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.top-news-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-grow: 1;
  min-width: 0;
}

.top-news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.top-news-title {
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.top-news-link:hover .top-news-title {
  color: var(--brand);
}

.top-news-arrow {
  color: var(--brand);
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.top-news-link:hover .top-news-arrow {
  transform: translateX(3px);
}


/* --- Articles Grid & Cards (Column Index) --- */
.category-block {
  margin-bottom: 3.5rem;
}

.category-block-head {
  margin-bottom: 1.5rem;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-tint);
  border: 1px solid var(--brand-border);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(23, 54, 89, 0.1);
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-tag {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--tag-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.article-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.article-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: var(--brand);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.read-more:hover {
  color: var(--navy);
  transform: translateX(4px);
}

/* --- Top-Right Latest Update Row --- */
.top-news-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.top-news-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.9rem;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 580px;
  transition: all 0.2s ease;
}

.top-news-pill:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(23, 54, 89, 0.08);
}

@media (max-width: 640px) {
  .top-news-row {
    justify-content: stretch;
  }
  .top-news-pill {
    width: 100%;
    max-width: 100%;
  }
}

/* --- Consultation CTA Box inside Column Articles --- */
.consultation-cta-box {
  margin: 2rem 0;
  padding: 1.35rem 1.6rem;
  background: var(--bg-tint);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.consultation-cta-text {
  flex: 1 1 300px;
}

.consultation-cta-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.consultation-cta-text p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.consultation-cta-box .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .consultation-cta-box {
    padding: 1.15rem 1.25rem;
  }
  .consultation-cta-box .btn-primary {
    width: 100%;
    text-align: center;
  }
}
