:root {
  /* キルギス伝統カラーパレット：深紅（国旗・シルダック）、遊牧の黄金（トゥンドゥク）、イシク・クル湖の碧、フェルトの生成り色 */
  --bg: #faf6ef;
  --bg-pattern: #f3ece0;
  --surface: #fffdf9;
  --text-main: #231815;
  --text-muted: #5c4b45;
  --border: #e6d7c3;
  --kyrgyz-red: #a6192e;
  --kyrgyz-red-dark: #6e0d1c;
  --kyrgyz-gold: #ffd100;
  --kyrgyz-amber: #d97706;
  --issyk-kul: #0e7490;
  --issyk-kul-bg: #ecfeff;
  --tg-blue: #0284c7;
  --tg-bg: #f0f9ff;
  --note-green: #0f766e;
  --note-bg: #f0fdfa;
  --shadow: 0 6px 18px rgba(82, 34, 24, 0.07);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(166, 25, 46, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(14, 116, 144, 0.04) 0%, transparent 45%);
  color: var(--text-main);
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* トップの伝統幾何学リボン */
.oymok-ribbon {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--kyrgyz-red) 0px,
    var(--kyrgyz-red) 18px,
    var(--kyrgyz-gold) 18px,
    var(--kyrgyz-gold) 26px,
    var(--kyrgyz-red-dark) 26px,
    var(--kyrgyz-red-dark) 44px,
    var(--kyrgyz-gold) 44px,
    var(--kyrgyz-gold) 52px
  );
}

/* シルダック（伝統フェルト絨毯）のひし形＆羊角文様ディバイダー */
.shyrdak-divider {
  height: 24px;
  background-color: var(--kyrgyz-red-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M24 2 L36 12 L24 22 L12 12 Z' fill='none' stroke='%23FFD100' stroke-width='2'/%3E%3Ccircle cx='24' cy='12' r='3' fill='%23FFD100'/%3E%3Cpath d='M0 12 L6 6 M0 12 L6 18 M48 12 L42 6 M48 12 L42 18' stroke='%23F59E0B' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  border-top: 2px solid var(--kyrgyz-gold);
  border-bottom: 2px solid var(--kyrgyz-gold);
}

/* Header */
.site-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #8b0e1a 0%, #a6192e 52%, #5c0812 100%);
  color: #ffffff;
  padding: 36px 0 34px;
}

.alatoo-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 170px;
  pointer-events: none;
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tunduk-emblem {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  animation: slow-pulse 8s ease-in-out infinite;
}

@keyframes slow-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.brand-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.brand-badge {
  display: inline-block;
  background: var(--kyrgyz-gold);
  color: #5c0812;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 11px;
  border-radius: 999px;
}

.brand-subbadge {
  font-size: 0.78rem;
  color: #fde68a;
  border: 1px solid rgba(255, 209, 0, 0.45);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.site-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  color: rgba(255, 248, 231, 0.9);
  font-size: 0.92rem;
  margin-top: 4px;
}

.meta-box {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  background: rgba(45, 6, 12, 0.55);
  border: 1.5px solid rgba(255, 209, 0, 0.55);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  backdrop-filter: blur(6px);
}

.meta-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.meta-label {
  color: var(--kyrgyz-gold);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Main */
.main-content {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, sans-serif;
  padding: 34px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oymok-diamond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--kyrgyz-red);
  color: var(--kyrgyz-gold);
  border-radius: 6px;
  transform: rotate(45deg);
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(166, 25, 46, 0.25);
}

.oymok-diamond.tg-diamond {
  background: var(--issyk-kul);
  color: #ffffff;
}

.oymok-diamond.note-diamond {
  background: var(--note-green);
  color: #ffffff;
}

.section-header h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #3b1318;
}

.section-tag {
  font-size: 0.8rem;
  background: #f3e5d0;
  color: #6e0d1c;
  border: 1px solid #dec39d;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.section-tag.tg-tag {
  background: var(--issyk-kul-bg);
  color: var(--issyk-kul);
  border: 1px solid #a5f3fc;
}

.section-tag.note-tag {
  background: var(--note-bg);
  color: var(--note-green);
  border: 1px solid #99f6e4;
}

/* Kyrgyz Ornamental Cards */
.kyrgyz-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--kyrgyz-red);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

/* Vitals Grid */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.vital-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.vital-icon {
  font-size: 1.5rem;
  background: #fdf3e7;
  border: 1px solid #ebd5b3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.vital-card-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #3b1318;
}

.card-kicker {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.vital-rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #f8f2e7;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid #e6d7c3;
}

.rate-row {
  display: flex;
  flex-direction: column;
}

.rate-pair {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rate-row strong {
  font-size: 1.12rem;
  color: var(--kyrgyz-red-dark);
  font-weight: 800;
}

.weather-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f8f2e7;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid #e6d7c3;
}

.temp-main {
  font-size: 1.75rem;
  font-weight: 800;
  color: #3b1318;
  line-height: 1.2;
}

.temp-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.weather-desc {
  font-size: 0.86rem;
  margin-top: 2px;
  font-weight: 600;
}

.aqi-badge-wrap {
  text-align: right;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  padding: 8px 14px;
  border-radius: 10px;
}

.aqi-label {
  display: block;
  font-size: 0.72rem;
  color: #92400e;
  font-weight: 800;
}

.aqi-value {
  font-size: 1.45rem;
  color: #b45309;
  font-weight: 800;
}

.aqi-status {
  display: block;
  font-size: 0.74rem;
  color: #92400e;
}

.vital-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Infrastructure Alerts */
.alerts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.alerts-title {
  font-size: 1.05rem;
  color: #3b1318;
  font-weight: 800;
}

.alerts-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-item {
  padding: 13px 16px;
  border-radius: 10px;
  background: #f5f9fc;
  border-left: 5px solid var(--issyk-kul);
  border-top: 1px solid #dbeafe;
  border-right: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

.alert-item.warning {
  background: #fff9eb;
  border-left-color: var(--kyrgyz-red);
  border-top-color: #fde68a;
  border-right-color: #fde68a;
  border-bottom-color: #fde68a;
}

.alert-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.alert-badge {
  background: var(--kyrgyz-red);
  color: #ffffff;
  padding: 2px 9px;
  border-radius: 5px;
}

.alert-area {
  color: var(--text-muted);
}

.alert-item h4 {
  font-size: 0.96rem;
  margin-bottom: 3px;
  color: var(--text-main);
}

.alert-item p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* Telegram Section */
.telegram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.tg-card {
  background: var(--surface);
  border: 1.5px solid #bae6fd;
  border-top: 4px solid var(--issyk-kul);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  margin-bottom: 8px;
}

.tg-channel {
  background: var(--issyk-kul-bg);
  color: var(--issyk-kul);
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.tg-time {
  color: var(--text-muted);
}

.tg-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  line-height: 1.48;
  color: #1e293b;
}

.tg-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tg-link {
  color: var(--issyk-kul);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 800;
}

.tg-link:hover {
  text-decoration: underline;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--kyrgyz-red);
  color: var(--kyrgyz-red);
}

.filter-btn.active {
  background: var(--kyrgyz-red);
  border-color: var(--kyrgyz-red);
  color: var(--kyrgyz-gold);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--kyrgyz-red);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.cat-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  background: #f3ece0;
  color: #5c4b45;
}

.cat-tag.security {
  background: #fef2f2;
  color: var(--kyrgyz-red);
  border: 1px solid #fecaca;
}

.cat-tag.life {
  background: var(--issyk-kul-bg);
  color: var(--issyk-kul);
  border: 1px solid #a5f3fc;
}

.cat-tag.economy {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fde047;
}

.article-date {
  color: var(--text-muted);
}

.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.48;
  color: #2b1115;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  font-size: 0.82rem;
}

.source-label {
  color: var(--text-muted);
  font-weight: 700;
}

.source-link {
  color: var(--kyrgyz-red);
  text-decoration: none;
  font-weight: 800;
}

.source-link:hover {
  text-decoration: underline;
}

/* note Grid */
.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.note-card {
  background: var(--surface);
  border: 1.5px solid #99f6e4;
  border-top: 4px solid var(--note-green);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.note-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  margin-bottom: 8px;
}

.note-tag-pill {
  background: var(--note-bg);
  color: var(--note-green);
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.note-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.45;
}

.note-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  font-size: 0.8rem;
}

.note-author {
  color: var(--text-muted);
  font-weight: 700;
}

.note-link {
  color: var(--note-green);
  text-decoration: none;
  font-weight: 800;
}

.note-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #3b080e 0%, #230408 100%);
  color: #e6d7c3;
  padding: 34px 0;
  font-size: 0.85rem;
  text-align: center;
}

.footer-ornament {
  color: var(--kyrgyz-gold);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-sub {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #b59e84;
}
