/* ===================================================
   ページバナー（各コンテンツページ共通）
   =================================================== */
.page-banner {
  position: relative;
  height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #3a2010;
}
.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.7);
}
.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 100%);
}
.page-banner__content {
  position: relative;
  padding: 0 var(--gutter) 32px;
  color: #fff;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}
.page-banner__label {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.page-banner__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.page-banner__sub {
  font-size: .9375rem;
  opacity: .85;
  margin-top: 6px;
}

/* ===================================================
   コンテンツページ共通レイアウト
   =================================================== */
.content-page { padding: 40px 0 64px; }

.content-page__inner {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .content-page__inner {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
  .content-page__main  { min-width: 0; }
  .content-page__aside { position: sticky; top: 80px; }
}

/* ===================================================
   セクション区切り
   =================================================== */
.content-section { margin-bottom: 48px; }
.content-section__title {
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-section__subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.content-section__subtitle::before {
  content: '';
  display: block;
  width: 4px;
  height: 1em;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===================================================
   情報テーブル
   =================================================== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  margin-bottom: 16px;
}
.info-table th,
.info-table td {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.info-table th {
  background: #FAF8F5;
  font-weight: 700;
  width: 8em;
  white-space: nowrap;
  color: var(--color-primary-dark);
}
.info-table tr:hover td { background: #FDFBF9; }

/* ===================================================
   コールアウトボックス
   =================================================== */
.callout {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout__icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.3; }
.callout__body { flex: 1; }
.callout__title { font-weight: 700; margin-bottom: 4px; font-size: .9375rem; }
.callout__text  { font-size: .9rem; line-height: 1.65; }

.callout--tip    { background: #E8F5EE; border-left: 4px solid var(--color-secondary); }
.callout--warn   { background: #FFF8E8; border-left: 4px solid var(--color-accent); }
.callout--danger { background: #FFF0F0; border-left: 4px solid var(--color-danger); }
.callout--info   { background: #EEF4FF; border-left: 4px solid #4A7FD4; }

/* ===================================================
   スワヒリ語テーブル
   =================================================== */
.phrase-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.phrase-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-size: .8125rem;
}
.phrase-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.phrase-table tr:nth-child(even) td { background: #FAF8F5; }
.phrase-table .jp  { font-weight: 600; }
.phrase-table .sw  { color: var(--color-primary); font-weight: 700; font-size: 1rem; }
.phrase-table .pron{ color: var(--color-text-muted); font-size: .8rem; }

/* ===================================================
   交通手段カード
   =================================================== */
.transport-grid { display: grid; gap: 16px; }
.transport-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.transport-card__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.transport-card__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.transport-card__text  { font-size: .9rem; color: var(--color-text-muted); line-height: 1.65; }
.transport-card__meta  {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.transport-card__badge {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: .75rem;
  font-weight: 600;
}
.transport-card__badge--price { border-color: var(--color-secondary); color: var(--color-secondary); }
.transport-card__badge--time  { border-color: #4A7FD4; color: #4A7FD4; }

@media (min-width: 768px) {
  .transport-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================
   サファリ会社カード
   =================================================== */
.tour-company-list { display: grid; gap: 16px; }
.tour-company-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tour-company-card__header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #9E4A10 100%);
  padding: 20px;
  color: #fff;
}
.tour-company-card__name { font-size: 1.125rem; font-weight: 900; margin-bottom: 4px; }
.tour-company-card__tag  { font-size: .8rem; opacity: .85; }
.tour-company-card__body { padding: 16px; flex: 1; }
.tour-company-card__row  {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .875rem;
  gap: 8px;
}
.tour-company-card__row:last-child { border-bottom: none; }
.tour-company-card__key   { color: var(--color-text-muted); flex-shrink: 0; }
.tour-company-card__value { font-weight: 600; text-align: right; }

@media (min-width: 768px) {
  .tour-company-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================
   緊急連絡先カード
   =================================================== */
.emergency-grid { display: grid; gap: 12px; }
.emergency-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}
.emergency-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--color-text);
}
.emergency-card--danger { border-color: var(--color-danger); }
.emergency-card__icon { font-size: 2rem; flex-shrink: 0; }
.emergency-card__body { flex: 1; min-width: 0; }
.emergency-card__label { font-size: .8125rem; color: var(--color-text-muted); }
.emergency-card__name  { font-size: 1rem; font-weight: 700; }
.emergency-card__num   { font-size: 1.25rem; font-weight: 900; color: var(--color-danger); letter-spacing: .02em; }

@media (min-width: 600px) {
  .emergency-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================
   サイドバー ウィジェット
   =================================================== */
.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-widget__title {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  font-size: .9375rem;
  font-weight: 700;
}
.sidebar-widget__body { padding: 16px; }
.sidebar-widget__list { list-style: none; padding: 0; margin: 0; }
.sidebar-widget__list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .9rem;
}
.sidebar-widget__list li:last-child { border-bottom: none; }
.sidebar-widget__list a { color: var(--color-text); }
.sidebar-widget__list a:hover { color: var(--color-primary); }

/* ===================================================
   キリマンジャロ ルート表
   =================================================== */
.route-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.route-table th {
  background: #1A2A40;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
}
.route-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.5;
}
.route-table tr:nth-child(even) td { background: #F6F6F8; }
.route-table .difficulty-easy   { color: var(--color-secondary); font-weight: 700; }
.route-table .difficulty-medium { color: var(--color-accent); font-weight: 700; }
.route-table .difficulty-hard   { color: var(--color-danger); font-weight: 700; }

/* ===================================================
   ニュースアーカイブ
   =================================================== */
.news-grid { display: grid; gap: 16px; }
.news-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.news-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #E8D8C0, #C8A870);
}
.news-card__body { padding: 16px; flex: 1; }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .75rem;
  color: var(--color-text-muted);
}
.news-card__cat {
  background: var(--color-primary);
  color: #fff;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 700;
}
.news-card__cat--safety { background: var(--color-danger); }
.news-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.news-card__excerpt { font-size: .875rem; color: var(--color-text-muted); line-height: 1.6; }

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===================================================
   単一ニュース記事
   =================================================== */
.single-news__header { margin-bottom: 32px; }
.single-news__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.single-news__title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 900;
  line-height: 1.3;
}
.single-news__eyecatch {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.entry-content p    { margin-bottom: 1.5em; line-height: 1.85; }
.entry-content h2   { font-size: 1.375rem; font-weight: 900; margin: 2em 0 .75em; padding-left: 14px; border-left: 4px solid var(--color-primary); }
.entry-content h3   { font-size: 1.125rem; font-weight: 700; margin: 1.5em 0 .5em; }
.entry-content ul,
.entry-content ol   { margin: 0 0 1.5em 1.5em; line-height: 1.8; }
.entry-content table{ width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .9rem; }
.entry-content th,
.entry-content td   { padding: 10px 12px; border: 1px solid var(--color-border); }
.entry-content th   { background: #FAF8F5; font-weight: 700; }
.entry-content img  { border-radius: var(--radius-sm); }
.entry-content a    { text-decoration: underline; }

/* ===================================================
   掲示板
   =================================================== */
.board-post-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}
.board-thread { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.board-thread__header { background: #FAF8F5; padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
.board-thread__title  { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.board-thread__meta   { font-size: .75rem; color: var(--color-text-muted); display: flex; gap: 12px; }
.board-thread__body   { padding: 14px 16px; font-size: .9rem; line-height: 1.7; }
.board-thread__foot   { padding: 10px 16px; background: #FAF8F5; border-top: 1px solid var(--color-border); display: flex; justify-content: flex-end; }

/* ===================================================
   Ajax フィルター
   =================================================== */
#tz-results.is-loading {
  opacity: .4;
  pointer-events: none;
  position: relative;
  min-height: 120px;
}
#tz-results.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23C8601A' stroke-width='4' stroke-dasharray='31.4 31.4' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center 40px no-repeat;
}
.filter-empty { color: var(--color-text-muted); padding: 32px 0; }
.page-btn {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  font-size: .875rem;
  color: var(--color-text);
  transition: background .15s, color .15s;
}
.page-btn:hover    { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.page-btn.is-active{ background: var(--color-primary); color: #fff; border-color: var(--color-primary); font-weight: 700; }
