@charset "UTF-8";

/* ============================================================ */
/* --- デザインシステム定義 --- */
/* ============================================================ */
html {
  font-size: 125%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

:root {
  --color-all: #707070;
  --color-budget: #D15D49;
  --color-health-biz: #E89C7C;
  --color-minna: #ED9121;
  --color-walking: #F2C04A;
  --color-medicine: #99BB4E;
  
  --bg-color: #d0d8e0; 
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-sub: #666666;
  --duskin-blue: #2c5282; 
  --duskin-blue-light: #3a6db5;
  --accent-blue: #4a7ab5;
  
  --font-base: 'Noto Sans JP', sans-serif;
  --font-round: 'Zen Maru Gothic', sans-serif;

  --sidebar-width: 300px;
}

body {
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: #c4e5f2; 
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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


/* ============================================================ */
/* --- メインレイアウト --- */
/* ============================================================ */
.webmagazine-container {
  width: 100%;
  position: relative;
  min-height: 100vh;
  overflow-x: clip; 
  overflow-y: clip;  
}

.bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1; 
}
.deco-cloud, .deco-sun {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
}
.doco-c1 { background-image: url('../images/cloud01.svg'); width: 140px; height: 70px; top: 75%; left: -6%;  opacity: 0.8; }
.doco-c2 { background-image: url('../images/cloud02.svg'); width:  90px; height: 45px; top: 85%; right:-4%;  opacity: 0.7; }
.doco-c3 { background-image: url('../images/cloud03.svg'); width: 110px; height: 55px; top: 90%; left: -13%;  opacity: 0.8; }
.doco-c4 { background-image: url('../images/cloud04.svg'); width:  80px; height: 40px; top: 77%; right:-17%;  opacity: 0.8; }
.doco-c5 { background-image: url('../images/cloud05.svg'); width: 130px; height: 65px; top: 104%; left:  2%;  opacity: 0.9; }
.doco-c6 { background-image: url('../images/cloud06.svg'); width: 100px; height: 50px; top: 99%; right: -1%;  opacity: 0.8; }
.doco-c7 { background-image: url('../images/cloud07.svg'); width:  85px; height: 45px; top: 100%; left: 32%;  opacity: 0.6; }

.deco-sun {
  background-image: url('../images/sun.svg');
  width: 120px; height: 120px; 
  top: 60%; right: -10%; 
  opacity: 0.9; 
}

/* ============================================================ */
/* --- ヘッダーエリア --- */
/* ============================================================ */
.site-header {
  position: relative;
  z-index: 10;
  text-align: center;
}

.header-logo-area {
  padding: 40px 20px 20px;
}

.header-logo-link {
  display: inline-block;
  margin-bottom: 5px;
}

.header-logo-img {
  display: block;
  max-width: 100%;
}

.header-subtitle {
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--duskin-blue);
  line-height: 1.5;
  margin-top: 5px;
}

.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.pill-nav-container {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.sticky-nav-wrapper.is-stuck .pill-nav-container {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sticky-nav-wrapper.is-stuck .topics-banner-full {
  margin-top: 0;
}

.pill-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.pill-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.bg-budget { background-color: var(--color-budget); }
.bg-health-biz { background-color: var(--color-health-biz); }
.bg-minna { background-color: var(--color-minna); }
.bg-health-promotion { background-color: var(--color-minna); }
.bg-walking { background-color: var(--color-walking); }

@media (max-width: 768px) {
  .pill-nav-container {
    padding: 15px; 
    box-sizing: border-box; 
  }
  
  .pill-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 8px; 
    padding: 0; 
  }

  .pill-btn {
    padding: 10px 0; 
    font-size: clamp(10px, 3.3vw, 14px); 
    width: 100%;
    box-sizing: border-box;
    letter-spacing: -0.05em; 
    white-space: nowrap;
  }
}

/* ============================================================ */
/* --- Topics バナー --- */
/* ============================================================ */
.topics-banner-full {
  width: 100%;
  background-color: #f2c75c; 
  padding: 15px 0;
  margin-top: 10px;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.topics-banner-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 5px 0;
}

.topics-link {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.topics-link:hover {
  opacity: 0.8;
}

.topics-image {
  max-width: 90%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .topics-banner-full {
    margin-top: 0;
  }
}

/* ============================================================ */
/* --- メインコンテンツエリア --- */
/* ============================================================ */
.site-main {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 0;
}


/* ============================================================ */
/* --- 記事カードグリッド --- */
/* ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px; 
  margin: 30px auto 0; 
}

.card-article {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-article:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-article:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  position: relative;
}

.card-category-label {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.5;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.5;
  width: 100%;
  padding-right: 45px;
  box-sizing: border-box;
}

.card-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--text-sub);
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.card-arrow-btn::before {
  content: "→";
  display: block;
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: bold;
  color: var(--text-sub);
  margin-top: -2px; 
  transition: color 0.2s;
}

.card-article:hover .card-arrow-btn {
  background-color: var(--text-main);
  border-color: var(--text-main);
}
.card-article:hover .card-arrow-btn::before {
  color: #fff;
}
.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #666;
}

.category-title {
  font-size: 1.8rem;
  border-bottom: 2px solid #5BA3D9;
  padding-bottom: 10px;
  margin-bottom: 30px;
  color: #333;
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px; 
  }
  
  .topics-link {
    font-size: 0.85rem;
    gap: 8px;
    white-space: nowrap; 
  }
  .topics-image {
    max-width: 130px; 
  }
}



/* ============================================================ */
/* --- フッターエリア --- */
/* ============================================================ */
.site-footer {
  width: 100%;
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}

.footer-bg-wrap {
  width: 100%;
  position: relative;
}

.bg-city-img {
  width: 100%;
  min-height: 220px; 
  object-fit: cover; 
  object-position: bottom center; 
  max-width: none;
  display: block;
  margin: 0;
  pointer-events: none;
}

.footer-buttons-band {
  position: absolute;
  bottom: 0 ; 
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.75); 
  padding: 20px 0;
  z-index: 10;
}

.footer-buttons-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
}

.big-white-btn {
  display: inline-block;
  background: #fff;
  color: var(--duskin-blue);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  flex: 1;
  max-width: 350px;
}

.big-white-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .bg-city-img {
    min-height: 310px; 
  }
  .footer-buttons-band {
    padding: 16px 0 20px;
  }
  .footer-buttons-inner {
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
  }
  .big-white-btn {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    font-size: 1rem;
    padding: 14px 20px;
  }
}


/* ============================================================ */
/* --- 記事詳細ページ (Article Detail) --- */
/* ============================================================ */
.article-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.article-header {
  margin-bottom: 40px;
  text-align: left;
}

.article-header h1 {
  font-size: 2rem;
  line-height: 1.4;
  margin: 0 0 15px 0;
  color: #333;
  position: relative;
  padding-left: 30px;
}

.article-header h1::before {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 6px;
  width: 12px;
  height: 1.1em;
  background-color: #EF8574;
  transform: skewX(-25deg);
}

.article-header .date {
  color: #666;
  font-size: 0.9rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 1.5em;
}

.section-title {
  position: relative;
  padding: 16px 24px 22px;
  color: #333;
  font-size: 1.35rem;
  font-weight: bold;
  border-bottom: none;
  margin: 60px 0 30px;
  line-height: 1.4;
  width: fit-content;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 24px;
  right: 24px;
  height: 10px;
  background-color: #f6c855;
}

.category-label {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 20px;
  background-color: var(--color-all);
  line-height: 1;
}

.category-label.budget            { background-color: var(--color-budget); }
.category-label.health-biz        { background-color: var(--color-health-biz); }
.category-label.minna             { background-color: var(--color-minna); }
.category-label.health-promotion  { background-color: var(--color-minna); }
.category-label.walking           { background-color: var(--color-walking); }
.category-label.medicine          { background-color: var(--color-medicine); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 0.95rem;
  background-color: #fff;
}

.info-table th, .info-table td {
  border: 1px solid #ccc;
  padding: 12px;
  vertical-align: top;
  line-height: 1.5;
}

.info-table th {
  background-color: rgba(224, 244, 249, 0.4);
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
  width: 30%;
}

.walking-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.stat-box {
  background-color: #E0F7FA;
  border-radius: 12px;
  padding: 15px 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-label {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: #d32f2f;
  display: block;
}

.stat-prev {
  font-size: 0.8rem;
  color: #546e7a;
  display: block;
  margin-top: 3px;
}

.award-banner {
  background-color: #1a6380;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 40px 0 20px;
}

.rank-section-title {
  font-weight: bold;
  color: #1a6380;
  margin-top: 30px;
  margin-bottom: 10px;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.rank-table th {
  background-color: #FFF3E0;
  padding: 12px;
  border: 1px solid #FFE0B2;
  text-align: center;
}

.rank-table td {
  padding: 12px;
  border: 1px solid #FFE0B2;
  background-color: #fff;
}

.rank-table tr:nth-child(even) td {
  background-color: #FFFBEA;
}

.rank-table .rank-col { width: 40px; text-align: center; font-weight: bold; }
.rank-table .score-col { text-align: center; color: #d32f2f; font-weight: bold; position: relative; }

.champion-bubble::after {
  content: "7連覇！";
  position: absolute;
  top: -11px;
  right: -8px;
  background: #db2777;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.champion-bubble::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 4px;
  border-style: solid;
  border-width: 6px 4px 0 4px;
  border-color: #db2777 transparent transparent transparent;
  z-index: 5;
}

.character-bubble-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
  padding: 20px;
}

.character-img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.talk-bubble {
  position: relative;
  background: #E8F5E9;
  border-radius: 15px;
  padding: 20px;
  flex-grow: 1;
  color: #2e7d32;
  font-size: 0.95rem;
  line-height: 1.6;
}

.talk-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 10px 20px 10px 0;
  border-color: transparent #E8F5E9 transparent transparent;
}

@media (max-width: 768px) {
  .walking-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .character-bubble-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .talk-bubble::before {
    top: -20px;
    left: 20px;
    transform: none;
    border-width: 0 10px 20px 10px;
    border-color: transparent transparent #E8F5E9 transparent;
  }

  .info-table th, .info-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .info-table th {
    border-bottom: none;
    white-space: normal; 
  }
  .info-table td {
    border-top: none;
  }
}


/* ============================================================ */
/* --- 記事ページネーション --- */
/* ============================================================ */
.article-pagination {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  margin: 50px 0 20px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.pager-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  min-width: 0;
}

.pager-item:hover {
  background: #f0f7ff;
  border-color: #aac8ee;
  transform: translateY(-2px);
}

.pager-prev { text-align: left; }
.pager-next { text-align: right; justify-content: flex-end; }

.pager-arrow {
  font-size: 1.4rem;
  color: var(--duskin-blue);
  flex-shrink: 0;
}

.pager-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pager-label {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
}

.pager-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pager-item.disabled {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .article-pagination {
    flex-direction: column;
  }
  .pager-next {
    justify-content: flex-start;
    text-align: left;
  }
}

/* ============================================================ */
/* --- 健康経営優良法人テーブル (新レイアウト) --- */
/* ============================================================ */
.kenkou-wrapper {
  background-color: #f0f7ff;
  padding: 30px;
  border-radius: 12px;
  margin: 10px 0 40px;
}

.kenkou-row {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.kenkou-row:last-child {
  margin-bottom: 0;
}

.kenkou-logo-col {
  flex: 0 0 auto;
  text-align: center;
}
.kenkou-tier-logo {
  width: 170px;
  height: auto;
  display: block;
}

.kenkou-content-col {
  flex: 1;
  min-width: 0;
}

.kenkou-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.kenkou-dept-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1a5fb4;
  margin: 0;
}

.kenkou-dept-name-g {
  font-size: 1.25rem;
  font-weight: bold;
  color: #059669;
  margin: 0;
}

.kenkou-badge {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 20px;
}

.kenkou-badge.next-bright {
  background: #059669;
}

.kenkou-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.kenkou-list-table td {
  padding: 10px 0;
  vertical-align: middle;
  border-bottom: none;
  line-height: 1.4;
}

.kenkou-list-table td.company-name {
  font-weight: 500;
  color: #111;
}

.kenkou-list-table td.company-count {
  text-align: right;
  color: #555;
  white-space: nowrap;
}

.kenkou-division-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1a5fb4;
  margin: 40px 0 20px;
  display: block;
  border-bottom: 2px solid #1a5fb4;
  padding-bottom: 6px;
}

@media (max-width: 768px) {
  .kenkou-row {
    flex-direction: column;
    gap: 16px;
  }

  .kenkou-logo-col {
    width: 100%;
    text-align: left;
  }

  .kenkou-tier-logo {
    width: 140px;
  }

  .kenkou-wrapper {
    padding: 20px 15px;
  }

  .kenkou-list-table,
  .kenkou-list-table tbody,
  .kenkou-list-table tr,
  .kenkou-list-table td {
    display: block;
    width: 100%;
  }

  .kenkou-list-table tr {
    border-bottom: 1px solid #e0ebf5;
    padding: 10px 0;
  }
  .kenkou-list-table tr:last-child {
    border-bottom: none;
  }

  .kenkou-list-table td {
    padding: 2px 0;
    border: none;
  }

  .kenkou-list-table td.company-name {
    font-size: 1rem;
    font-weight: bold;
    word-break: auto-phrase; 
  }

  .kenkou-list-table td.company-count {
    text-align: left; 
    font-size: 0.9rem;
    color: #666;
    white-space: normal;
  }
}

/* ============================================================ */
/* --- ウォーキングキャンペーン ランキングリスト --- */
/* ============================================================ */
.walking-ranking-list {
  border-top: 2px solid #1a5fb4;
  border-bottom: 2px solid #1a5fb4;
  margin: 30px 0 40px;
}

.ranking-row {
  display: flex;
  align-items: center;
  padding: 20px 10px;
  border-bottom: 1px dashed #ced4da;
}

.ranking-row:last-child {
  border-bottom: none;
}

.ranking-num {
  width: 50px;
  flex-shrink: 0;
  text-align: center;
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  color: #333;
  line-height: 1;
}

.ranking-row.rank-1 .ranking-num {
  font-size: 3rem;
  background: linear-gradient(135deg, #ffe066 0%, #d4af37 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ranking-row.rank-2 .ranking-num {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #ffffff 0%, #aeb5bc 50%, #6c757d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ranking-row.rank-3 .ranking-num {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #f4c28d 0%, #c47222 50%, #825a2c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ranking-num::after {
  content: '位';
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: bold;
  margin-top: -2px;
}

.ranking-row.rank-1 .ranking-num::after { 
  -webkit-text-fill-color: #d4af37; 
  color: #d4af37; 
  font-size: 1rem; 
}
.ranking-row.rank-2 .ranking-num::after { 
  -webkit-text-fill-color: #aeb5bc; 
  color: #aeb5bc; 
}
.ranking-row.rank-3 .ranking-num::after { 
  -webkit-text-fill-color: #c47222; 
  color: #c47222; 
}

.ranking-info {
  flex: 1;
  padding: 0 45px;
}

.ranking-info .team-name {
  font-size: 1.15rem;
  font-weight: bold;
  color: #222;
  margin: 0 0 6px;
}

.ranking-info .team-dept {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.ranking-score {
  text-align: right;
  min-width: 120px;
}

.ranking-score .score-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 2px;
}

.ranking-score .score-val {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #e63946; 
  letter-spacing: 0.05em;
}


.ranking-row.rank-1 {
  background-color: #fffdf2; 
  border: 2px solid #e1ca77; 
  border-radius: 12px;
  padding: 20px 15px;
  margin: 15px 0 25px 0; 
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.ranking-row.rank-1 .team-name {
  font-size: 1.4rem; 
  color: #8c6a00; 
}



@media (max-width: 640px) {
  .ranking-row {
    flex-wrap: wrap;
    padding: 15px 5px;
  }
  .ranking-row.rank-1 {
    padding: 15px 10px;
    margin: 15px 0 20px 0;
  }
  .ranking-num {
    width: 40px;
  }
  .ranking-info {
    padding: 0 0 0 20px;
    width: calc(100% - 40px);
  }
  .ranking-score {
    width: 100%;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dotted #e5e7eb;
    text-align: right;
  }
  .ranking-score .score-val {
    font-size: 1.3rem;
  }
}
