@charset "UTF-8";

/* ===== CSS変数 ===== */
:root {
  --color-dark: #2d3748;    /* クリーンでモダンなチャコールグレー */
  --color-primary: #3182ce; /* 北海道らしいクリアなブルー */
  --color-bg: #ffffff;      /* サイト全体を白背景に変更 */
  --color-surface: #ffffff; /* カード等用ピュアホワイト */
  --color-text: #4a5568;
  --color-border: #e2e8f0;
  --color-red: #e53e3e;     /* YouTube等用 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.05), 0 4px 8px rgba(0, 0, 0, 0.03);
}

/* ===== ベース ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Helvetica Neue", "Helvetica", "Inter", "YuGothic Medium", "游ゴシック", "YuGothic",
    "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

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

hr {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

/* ===== 見出し ===== */
h1 {
  color: var(--color-dark);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

h2 {
  position: relative;
  margin: 2.5em 0 1em;
  padding-bottom: 0.5em;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-border);
}

/* アクセントライン（左端だけ青）を疑似要素で追加 */
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

h2 .fas,
h2 .fab {
  color: var(--color-primary); /* アイコンをアクセントカラーに */
}

.awesome {
  color: var(--color-primary);
}

/* ページ最上部等のパラグラフ調整 */
p {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* ===== コンテナ ===== */
.container {
  max-width: 100%;
  width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.section {
  margin: 40px 0;
}

/* ===== リンク ===== */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #2b6cb0;
}

.container a:not(.camera-list-item a, .area-nav a, .btn-social a) {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: .3s;
}

/* ===== ナビゲーション ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); /* 影をほんのり弱める */
  border-bottom: 1px solid #f0f0f0; /* 全体が白になったので区切り線を足す */
}


.nav ul {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px; /* 固定の高さをやめてパディングで上下中央に */
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav li:hover a {
  background: #f7fafc; /* 白背景の上でのホバーを薄いグレーに */
  color: var(--color-primary);
}

/* ===== エリアジャンプナビ (モダンなピル型デザイン) ===== */
.area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.area-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 99px; /* ピル形状 */
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s, background 0.2s, color 0.2s;
}

.area-nav a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(49, 130, 206, 0.25);
  text-decoration: none;
}

.area-nav a i {
  font-size: 1rem;
}

/* ===== ライブカメラ リスト (モダンカードUI) ===== */
.camera-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.camera-list-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px; /* 柔らかく大きめの角丸 */
  color: var(--color-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s, border-color 0.25s;
}

/* ホバー時のフワッとした動きと美しい影 */
.camera-list-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  text-decoration: none;
}

/* アイコンに専用の背景を持たせて華やかに */
.camera-icon,
.camera-icon-blue {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* YouTubeレッド */
.camera-icon {
  background: #fff5f5;
  color: var(--color-red);
}

/* 一般カメラブルー */
.camera-icon-blue {
  background: #ebf8ff;
  color: var(--color-primary);
}

.camera-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.camera-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-dark);
}

.camera-admin {
  font-size: 0.75rem;
  color: #718096;
}

.camera-ext-icon {
  color: #a0aec0;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.camera-list-item a:hover .camera-ext-icon {
  transform: translateX(3px) translateY(-3px);
  color: var(--color-primary);
}

/* ===== FAQ (エレガントなボックス表現) ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 2.5rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-q {
  margin: 0;
  padding: 16px 20px;
  background: transparent;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-border);
}

.faq-a {
  margin: 0;
  padding: 20px;
  background: #fafbfc;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
}

.faq-a a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.faq-a a:hover {
  text-decoration: none;
}

/* ===== シェアボタン (フラットモダン) ===== */
.share {
  margin: 40px 0;
  text-align: center;
  padding: 30px 0;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
}

.share-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a0aec0;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.share-title p {
  margin: 0;
}

/* 昔のinset shadow等を削除 */
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 6px;
  font-size: 1.2rem;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}

.btn-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff !important;
  text-decoration: none !important;
}

.btn-social:hover {
  transform: translateY(-3px) scale(1.05); /* 少しバウンドさせる */
  box-shadow: var(--shadow-lg);
}

.btn-social--twitter {
  background: #1da1f3;
}

.btn-social--facebook {
  background: #1877f2;
}

.btn-social--line {
  background: #06c755;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  margin: 0;
  padding: 10px 0;
  list-style: none;
  font-size: 0.8rem;
}

.breadcrumb li {
  display: inline;
  color: #718096;
}

.breadcrumb li:after {
  content: '/';
  padding: 0 0.4em;
  color: #cbd5e1;
}

.breadcrumb li:last-child:after {
  content: '';
}

.breadcrumb li a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb li a:hover {
  text-decoration: underline;
}

/* ===== バナー・広告 ===== */
.banner,
.adsense {
  margin: 40px 0;
}

/* ===== トップに戻るボタン ===== */
.page_top {
  width: 48px;
  height: 48px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--color-dark);
  box-shadow: var(--shadow-lg);
  border-radius: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  opacity: 0.8;
  text-decoration: none;
  color: #fff !important;
}

.page_top:hover {
  opacity: 1;
  background: var(--color-primary);
  transform: translateY(-3px);
}

.page_top::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f106';
  font-size: 1.2rem;
}

/* ===== マップ ===== */
#map {
  height: 500px;
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
