/* ========================================
   共通
======================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  background: #ffffff;
  color: #111111;
}

a,
button {
  font: inherit;
}


/* ========================================
   全体
======================================== */

.app {
  width: min(100%, 430px);
  min-height: 100vh;

  margin: 0 auto;

  background: #5e5a5a;

  display: flex;
  flex-direction: column;
}


/* ========================================
   ヘッダー
======================================== */

.header {
  background: #0da5df;

  border-bottom: 3px solid #111;

  padding: 16px 12px;
}

.header h1 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(26px, 7vw, 34px);
  font-weight: 500;

  letter-spacing: 0.03em;

  text-align: center;
}

.header h1 a {
  color: inherit;
  text-decoration: none;
}


/* ========================================
   トップページ
======================================== */

.top-page {
  padding: 12px;

  flex: 1;
}


/* ========================================
   カテゴリ一覧
======================================== */

.category-list {
  display: flex;
  flex-direction: column;

  gap: 8px;
}


/* aタグ用にする */

.category-button {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 62px;

  padding: 8px 12px;

  background: #ffffff;
  color: #111111;

  border: 4px solid #111111;
  border-radius: 24px;

  font-size: 28px;

  text-decoration: none;
  text-align: center;

  cursor: pointer;
}

.category-button:hover {
  background: #f1f1f1;
}

.category-button:active {
  transform: scale(0.99);
}


/* ========================================
   八代市役所ボタン
======================================== */

.city-link {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 58px;

  margin-top: 12px;

  padding: 8px 12px;

  background: #0da5df;
  color: #ffffff;

  border: 4px solid #111111;
  border-radius: 24px;

  text-decoration: none;
  text-align: center;

  font-size: 27px;
}


/* ========================================
   フッター
======================================== */

.footer {
  padding: 14px 10px;

  color: #ffffff;

  font-size: 13px;
  text-align: center;
}


/* ========================================
   class.html
======================================== */

.category-title {
  background: #ffffff;

  margin: 14px 12px 0;

  padding: 12px;

  border: 3px solid #111111;
  border-radius: 18px;

  text-align: center;

  font-size: 28px;
  font-weight: 700;
}


.content-zone {
  background: #ffffff;

  margin: 12px;

  min-height: 520px;

  overflow: hidden;

  position: relative;
}


.content-frame {
  display: block;

  width: 100%;
  height: 520px;

  border: 0;
}


.info-content {
  padding: 20px;
}


.info-content h2 {
  margin: 0 0 18px;

  font-size: 28px;
}


.info-content p {
  margin: 10px 0;

  font-size: 20px;
  line-height: 1.7;
}


.meta {
  margin-top: 24px;

  padding-top: 16px;

  border-top: 2px solid #dddddd;

  font-size: 16px;
  line-height: 1.8;
}


.meta a {
  color: #005fcc;

  overflow-wrap: anywhere;
}


.external-button {
  display: block;

  width: 100%;

  margin-top: 22px;

  padding: 14px;

  background: #0da5df;
  color: #ffffff;

  border: 3px solid #111111;
  border-radius: 24px;

  text-align: center;
  text-decoration: none;

  font-size: 21px;
  font-weight: 700;
}


/* ========================================
   classページのナビ
======================================== */

.navigation {
  display: flex;

  gap: 18px;

  padding: 0 14px;
}


.nav-button {
  flex: 1;

  padding: 9px 8px;

  border: 0;
  border-radius: 24px;

  background: #0da5df;
  color: #ffffff;

  font-size: 21px;

  cursor: pointer;
}


.top-button {
  display: block;

  margin: 12px 14px;

  padding: 10px;

  border-radius: 25px;

  background: #0da5df;
  color: #ffffff;

  text-decoration: none;
  text-align: center;

  font-size: 21px;
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 430px) {

  .app {
    width: 100%;
  }

}


@media (max-width: 360px) {

  .header h1 {
    font-size: 26px;
  }

  .category-button {
    font-size: 23px;
  }

  .city-link {
    font-size: 23px;
  }

  .nav-button,
  .top-button {
    font-size: 20px;
  }

}

/* ===============================
   コンテンツ内メニュー
================================ */

.menu-zone {
  display: flex;
  flex-direction: column;

  gap: 24px;

  padding: 18px 12px;

  background: #5e5a5a;
}


.content-menu-button {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 120px;

  padding: 18px;

  background: #ffffff;
  color: #111111;

  border-radius: 18px;

  text-decoration: none;
  text-align: center;

  font-size: 24px;
  font-weight: 700;

  line-height: 1.45;
}


/* ナビaタグ */

.navigation .nav-button {
  display: flex;

  align-items: center;
  justify-content: center;

  text-decoration: none;
}


/* ===============================
   Google Map
================================ */

.map-zone {
  padding: 0;
}


.map-frame {
  display: block;

  width: 100%;
  height: 520px;

  border: 0;
}


.map-meta {
  margin: 0 12px 12px;

  padding: 12px 16px;

  background: #ffffff;

  font-size: 15px;
  line-height: 1.5;
}


.map-meta p {
  margin: 3px 0;
}

/* ===============================
   通れた道マップ
================================ */

.road-map-zone {
  margin: 12px;
  padding: 0;

  height: 620px;

  background: #fff;

  overflow: hidden;
}


/* iframeをPC幅で読み込む */
.road-map-scale {
  width: 1200px;
  height: 1600px;

  transform: scale(0.34);
  transform-origin: top left;
}


.road-map-frame {
  display: block;

  width: 1200px;
  height: 1600px;

  border: 0;
}

/* =========================
   タイムライン
========================= */

.timeline-zone {
  flex: 1;
  margin: 12px;
  padding: 14px;

  background: #f4f6f5;

  overflow-y: auto;
}

.page-title {
  margin: 0 0 16px;

  font-size: 28px;
  font-weight: 700;
}

#timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-card {
  padding: 18px;

  background: #ffffff;

  border: 1px solid #d9dfdc;
  border-radius: 20px;

  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.12);
}

.timeline-title {
  margin: 0 0 10px;

  font-size: 23px;
  line-height: 1.35;
}

.timeline-text {
  margin: 8px 0 14px;

  font-size: 18px;
  line-height: 1.6;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 6px 14px;

  font-size: 15px;
  line-height: 1.5;

  color: #647d75;
}

.timeline-status {
  font-weight: 700;
}

.timeline-source {
  margin-top: 12px;
  padding-top: 10px;

  border-top: 1px solid #e1e5e4;

  font-size: 15px;
}

.timeline-source a {
  color: #005fcc;
  font-weight: 700;

  overflow-wrap: anywhere;
}

.timeline-message {
  padding: 24px 10px;

  background: #ffffff;

  border-radius: 16px;

  text-align: center;

  font-size: 18px;
}

.timeline-checked {
  margin-bottom: 10px;

  color: #4f6662;

  font-size: 15px;
  font-weight: 700;
}

/* ========================================
   その他の情報
======================================== */

.sonota-checked {
  margin-bottom: 10px;

  color: #4f6662;

  font-size: 15px;
  font-weight: 700;
}

.sonota-type {
  display: inline-block;

  margin-bottom: 12px;

  padding: 6px 12px;

  background: #087f6b;
  color: #ffffff;

  border-radius: 999px;

  font-size: 15px;
  font-weight: 700;
}