/* ============================================================
   cocokaji — top.css（トップページ専用 / design/top.png 準拠）
   ============================================================ */
:root {
  --red: #e53935;
  --red-dark: #c62828;
  --orange: #ff7043;
  --orange-deep: #f4511e;
  --amber: #ff9800;
  --ink: #1a2233;
  --ink-2: #46505e;
  --ink-3: #7b8494;
  --line: #e9e2dc;
  --bg: #ffffff;
  --bg-soft: #faf7f4;
  --peach: #fdf1ea;
  --peach-deep: #fbe3d6;
  --navy: #1b2430;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(26, 34, 51, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- ヘッダー ---- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--red));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: #fff; flex-shrink: 0;
}
.nav { display: flex; gap: 22px; margin-left: 8px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.nav a { padding: 19px 2px 16px; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); border-bottom-color: var(--red); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-emergency {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  padding: 9px 18px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
  transition: background 0.2s;
}
.btn-emergency:hover { background: var(--red-dark); }
.hamburger {
  display: none; background: none; border: none;
  font-size: 1.5rem; color: var(--ink); cursor: pointer;
}
.nav-mobile { display: none; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 13px 24px; border-bottom: 1px solid var(--bg-soft); font-weight: 600; font-size: 0.95rem; }

/* ---- ヒーロー ---- */
.hero {
  position: relative;
  background: linear-gradient(105deg, #fdfbf9 0%, #fbf3ec 45%, #f4e3d8 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  /* 高さに合わせて等倍表示し、日本列島が上下で切れないようにする */
  background: url("hero.jpg") center right / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 72%);
}
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  background: linear-gradient(90deg, #fcf7f2 0%, rgba(252, 247, 242, 0.7) 20%, rgba(252, 247, 242, 0) 48%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 44px 20px 48px;
  display: grid; grid-template-columns: 1.15fr 0.5fr 0.55fr;
  gap: 28px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--red), var(--orange-deep));
  color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 6px 16px; border-radius: 4px 999px 999px 4px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900; line-height: 1.35; letter-spacing: 0.01em;
}
.hero-title span { color: var(--red); }
.hero-sub { margin-top: 16px; color: var(--ink-2); font-size: 1rem; }
.hero-buttons { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(90deg, var(--amber), var(--red));
  color: #fff; box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}
.btn-outline { background: #fff; color: var(--ink-2); border: 1.5px solid #d9cfc6; }
.hero-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(26, 34, 51, 0.14);
  padding: 20px 22px;
}
.hero-card-title { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; }
.hero-card-num { font-size: 2.5rem; font-weight: 900; color: var(--red); text-align: center; line-height: 1.2; margin-top: 6px; }
.hero-card-num small { font-size: 1.2rem; }
.hero-card-sub { text-align: center; font-size: 0.8rem; color: var(--ink-3); margin-bottom: 12px; }
.hero-card-rows { border-top: 1px solid var(--bg-soft); }
.hero-card-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid var(--bg-soft);
  font-size: 0.85rem; font-weight: 600;
}
.hero-card-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: var(--red); }
.dot-green { background: #43a047; }
.dot-orange { background: #ef9a76; }
.hero-card-row .val { margin-left: auto; font-weight: 800; }

/* ---- セクション共通 ---- */
.section { padding: 56px 0; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; margin-bottom: 26px; }
.section-title .ico { color: var(--red); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.section-head .section-title { margin-bottom: 0; }
.more-link { font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.more-link:hover { color: var(--red); }

/* ---- 特徴 4カード ---- */
.features { padding: 40px 0 8px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--peach); border-radius: var(--radius);
  padding: 28px 18px; text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 14px rgba(229, 57, 53, 0.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.feature-card p { font-size: 0.83rem; color: var(--ink-2); }

/* ---- 火災情報マップ ---- */
.map-panel { border: 1px solid #f3c8b8; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-panel-head {
  background: linear-gradient(90deg, var(--red-dark), var(--orange-deep));
  color: #fff; padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
}
.map-panel-head h2 { font-size: 1.1rem; font-weight: 800; flex: 1; }
.map-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; opacity: 0.9; }
.map-live .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.map-full-btn {
  border: 1px solid rgba(255,255,255,0.7); border-radius: 8px;
  padding: 6px 14px; font-size: 0.82rem; font-weight: 700; color: #fff;
}
.map-full-btn:hover { background: rgba(255,255,255,0.15); }
.map-panel-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; padding: 18px; background: #fff; }
#miniMap { height: 380px; border-radius: 10px; overflow: hidden; background: #0d1520; }
.recent-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.98rem; margin-bottom: 10px; }
.recent-head::before { content: ""; width: 4px; height: 18px; background: var(--red); border-radius: 2px; }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft); border-radius: 10px; padding: 10px 14px;
}
.recent-item .ri-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--amber), var(--red));
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.recent-item .ri-body { flex: 1; min-width: 0; }
.recent-item .ri-title { font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recent-item .ri-tag {
  font-size: 0.68rem; font-weight: 700; padding: 1px 8px; border-radius: 4px;
  background: #ffe6e2; color: var(--red-dark);
}
.recent-item .ri-tag.tag-mid { background: #fff3e0; color: #e65100; }
.recent-item .ri-tag.tag-low { background: #f0f1f4; color: var(--ink-3); }
.recent-item .ri-desc { font-size: 0.76rem; color: var(--ink-3); }
.recent-item .ri-badge {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 800; color: #fff;
  background: var(--red); border-radius: 4px; padding: 3px 9px;
}
.recent-more { text-align: right; margin-top: 12px; font-size: 0.88rem; font-weight: 700; }
.recent-more a { color: #1565c0; }
.data-note { margin-top: 14px; font-size: 0.76rem; color: var(--ink-3); }
.loading-note { padding: 20px 0; text-align: center; color: var(--ink-3); font-size: 0.85rem; }

/* ---- 地域カード ---- */
.region-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.region-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 12px; text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #f3c8b8; }
.region-card .rg-icon { font-size: 1.7rem; margin-bottom: 8px; }
.region-card .rg-name { font-size: 0.92rem; font-weight: 800; }
.region-card .rg-arrow { color: var(--ink-3); font-size: 0.8rem; }

/* ---- 防災（火災から身を守る） ---- */
.safety { background: linear-gradient(135deg, #fdeee7, #fbe3d6); }
.safety .section-title { color: var(--red-dark); }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: 16px; }
.safety-card {
  background: #fff; border-radius: var(--radius); padding: 26px 14px;
  text-align: center; box-shadow: 0 4px 14px rgba(229, 57, 53, 0.08);
  transition: transform 0.15s;
}
.safety-card:hover { transform: translateY(-3px); }
.safety-card .sc-icon { font-size: 1.9rem; margin-bottom: 10px; }
.safety-card h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 4px; }
.safety-card p { font-size: 0.78rem; color: var(--ink-2); }
.safety-cta {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--amber), var(--orange-deep));
  color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  font-size: 1.05rem; font-weight: 800; text-align: center;
  box-shadow: 0 8px 22px rgba(244, 81, 30, 0.35);
  transition: transform 0.15s; padding: 20px;
}
.safety-cta:hover { transform: translateY(-3px); }
.safety-cta .cta-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}

/* ---- コラムカード ---- */
.column-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.column-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.15s, box-shadow 0.15s;
}
.column-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.column-thumb {
  height: 120px; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
}
.column-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-a { background: linear-gradient(135deg, #3e2723, #e64a19); }
.thumb-b { background: linear-gradient(135deg, #b71c1c, #ff8a65); }
.thumb-c { background: linear-gradient(135deg, #37474f, #90a4ae); }
.thumb-d { background: linear-gradient(135deg, #1a237e, #e53935); }
.column-thumb .ct-tag {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255,255,255,0.95); color: var(--red-dark);
  font-size: 0.68rem; font-weight: 800; padding: 2px 10px; border-radius: 4px;
}
.column-body { padding: 14px 16px 18px; }
.column-body h3 { font-size: 0.95rem; font-weight: 800; line-height: 1.5; }
.column-body time { display: block; margin-top: 10px; font-size: 0.76rem; color: var(--ink-3); }

/* ---- コラム全記事（リンクカード小） ---- */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; transition: border-color 0.15s, box-shadow 0.15s;
}
.link-card:hover { border-color: #f3c8b8; box-shadow: var(--shadow); }
.link-card .lc-icon { font-size: 1.3rem; flex-shrink: 0; }
.link-card .lc-body { min-width: 0; }
.link-card h3 { font-size: 0.9rem; font-weight: 700; }
.link-card p { font-size: 0.76rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 都道府県・市区町村 ---- */
.bg-soft { background: var(--bg-soft); }
.pref-region { margin-bottom: 22px; }
.pref-region-name { font-size: 0.95rem; font-weight: 800; color: var(--red-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pref-region-name::before { content: ""; width: 4px; height: 16px; background: var(--red); border-radius: 2px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.city-pref-block { margin-bottom: 18px; }
.city-pref-name { font-size: 0.9rem; font-weight: 800; margin-bottom: 8px; color: var(--ink-2); }
.city-link {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 12px; font-size: 0.8rem; color: var(--ink-2);
}
.city-link:hover { border-color: var(--red); color: var(--red); }
.city-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; position: absolute; right: 0; color: var(--red); font-weight: 800; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { padding: 0 0 14px; font-size: 0.88rem; color: var(--ink-2); }
.faq-item a { color: var(--red); font-weight: 600; }

/* ---- CTAバナー ---- */
.cta-banner {
  background: linear-gradient(90deg, var(--red), var(--amber));
  border-radius: var(--radius); color: #fff;
  padding: 30px 34px; display: flex; align-items: center; gap: 22px;
  box-shadow: 0 10px 28px rgba(229, 57, 53, 0.3);
}
.cta-banner .cb-icon { font-size: 2.4rem; flex-shrink: 0; }
.cta-banner h2 { font-size: 1.25rem; font-weight: 800; }
.cta-banner p { font-size: 0.88rem; opacity: 0.92; }
.cta-banner .cb-btn {
  margin-left: auto; flex-shrink: 0;
  background: #fff; color: var(--red-dark);
  padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---- 広告 ---- */
.adsense-area { padding: 24px 0; }
.adsense-placeholder {
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 30px; text-align: center; color: var(--ink-3); font-size: 0.8rem;
}

/* ---- フッター ---- */
.footer { background: var(--navy); color: #cfd6e0; padding: 48px 0 0; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 34px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 0.82rem; color: #97a1b0; }
.footer-sns { display: flex; gap: 10px; margin-top: 16px; }
.footer-sns a {
  width: 34px; height: 34px; border-radius: 50%; background: #2a3543;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.footer-links h4 { color: #fff; font-size: 0.88rem; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 0.84rem; padding: 4px 0; color: #97a1b0; }
.footer-119 {
  background: #26313f; border: 1px solid #374455; border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px; align-self: start;
}
.footer-119 .f1-icon { font-size: 1.6rem; }
.footer-119 strong { color: #ff8a65; font-size: 1rem; display: block; }
.footer-119 span { font-size: 0.78rem; color: #97a1b0; }
.footer-bottom {
  border-top: 1px solid #2a3543; padding: 18px 0;
  text-align: center; font-size: 0.78rem; color: #97a1b0;
}
.footer-bottom a { color: #cfd6e0; }

/* ---- スマホ固定フッターメニュー（main.js が挿入） ---- */
.mobile-footer-nav { display: none; }
@media (max-width: 768px) {
  .mobile-footer-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(26,34,51,0.12);
    padding: 4px 2px env(safe-area-inset-bottom, 4px);
  }
  .mobile-footer-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px; padding: 6px 2px;
    font-size: 10px; color: var(--ink-2);
  }
  .mobile-footer-nav a .mfn-icon { font-size: 18px; line-height: 1; }
  .mobile-footer-nav a:active,
  .mobile-footer-nav a.active { color: var(--red); }
  body { padding-bottom: 60px; }
}

/* ---- レスポンシブ ---- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; }
  .hero::before, .hero::after { width: 75%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-cta { grid-column: 1 / -1; flex-direction: row; }
  .column-grid { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .btn-emergency { padding: 8px 14px; font-size: 0.8rem; }
  .hero-inner { grid-template-columns: 1fr; padding: 32px 20px 36px; }
  .hero::before { width: 100%; }
  .hero::after {
    width: 100%;
    background: linear-gradient(90deg, rgba(252,247,242,0.94) 0%, rgba(252,247,242,0.86) 100%);
  }
  .map-panel-body { grid-template-columns: 1fr; }
  #miniMap { height: 300px; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .column-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner .cb-btn { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
