@charset "UTF-8";

/* ===== CSS変数 ===== */
:root {
  --color-dark:    #2d3748;
  --color-primary: #3182ce;
  --color-header:  #093f39;
  --color-bg:      #f5f5f5;
  --color-surface: #ffffff;
  --color-text:    #4a5568;
  --color-border:  #e2e8f0;
  --color-red:     #e53e3e;
  --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);
}

/* ===== リセット・ベース ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ===== ヘッダー ===== */
header {
  background-color: white;
  color: #333;
  padding: 1.4rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  max-height: 50px;
  width: auto;
  display: block;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* ハンバーガーボタン（モバイル） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 101;
}

/* ナビゲーション */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: #333;
  font-weight: bold;
  transition: opacity 0.3s;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

nav ul li a:hover {
  color: #1a73e8;
  text-decoration: none;
}

/* ===== コンテナ ===== */
.container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== 2カラムレイアウト（content-wrapper） ===== */
.content-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

/* メインコンテンツ */
.content-wrapper main {
  flex: 1;
  min-width: 0;
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

/* ===== サイドバー ===== */
.sidebar {
  flex: 0 0 336px;
  align-self: flex-start;
}

.sidebar-section {
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.sidebar-banner {
  text-align: center;
  margin-bottom: 0.5rem;
}

.sidebar-banner img {
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}

.sidebar-category-list {
  list-style: none;
}

.sidebar-category-list li {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-category-list li:last-child {
  border-bottom: none;
}

.sidebar-category-list li a {
  display: block;
  padding: 0.6rem 0;
  color: var(--color-primary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-category-list li a:hover {
  color: #2b6cb0;
  padding-left: 0.4rem;
  text-decoration: none;
}

/* ===== 天気ウィジェット ===== */
.weather-widget {
  background: linear-gradient(135deg, #f8fafd 0%, #edf2f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.weather-widget-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.weather-widget-icon {
  font-size: 2.4rem;
  color: #4a6fa5;
}

.weather-widget-icon .fa-sun              { color: #FC913A; }
.weather-widget-icon .fa-cloud-sun        { color: #F5A623; }
.weather-widget-icon .fa-cloud            { color: #B6B6B6; }
.weather-widget-icon .fa-snowflake        { color: #7ecadc; }
.weather-widget-icon .fa-cloud-showers-heavy { color: #516C9D; }
.weather-widget-icon .fa-cloud-rain       { color: #516C9D; }
.weather-widget-icon .fa-smog             { color: #B0D7D5; }
.weather-widget-icon .fa-wind             { color: #94a3b8; }
.weather-widget-icon .fa-bolt             { color: #FCAA00; }

.weather-widget-temp-info {
  display: flex;
  flex-direction: column;
}

.weather-widget-condition {
  font-size: 0.85rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.1rem;
}

.weather-widget-temp {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.weather-widget-temp span {
  font-size: 0.9rem;
  font-weight: normal;
  color: #666;
}

.weather-widget-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.weather-detail-item {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  border: 1px solid #f0f4f8;
}

.weather-detail-label {
  font-size: 0.7rem;
  color: #8da0b3;
  font-weight: bold;
  margin-bottom: 0.1rem;
}

.weather-detail-value {
  font-size: 0.82rem;
  color: #34495e;
  font-weight: 600;
}

.weather-widget-footer {
  text-align: right;
}

.weather-widget-time {
  font-size: 0.7rem;
  color: #95a5a6;
}

.weather-widget-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8faff;
  color: var(--color-primary);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.88rem;
  border: 1px solid #e8f0fe;
  transition: all 0.2s;
  text-decoration: none;
}

.weather-widget-link:hover {
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
}

/* ===== 見出し ===== */
h1 {
  font-size: 1.8rem;
  color: #333;
  line-height: 1.3;
  margin: 0 0 1.5rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.8rem;
}

/* ===== マップ凡例 ===== */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 0.6rem;
}

.legend-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.legend-youtube {
  background: #fff5f5;
  color: var(--color-red);
}

.legend-other {
  background: #ebf8ff;
  color: var(--color-primary);
}

h2 {
  position: relative;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4em;
  font-size: 1.2rem;
  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);
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 1rem 0 0.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 0.5rem;
  color: #999;
}

.breadcrumb a {
  color: #1a73e8;
  text-decoration: none;
}

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

/* ===== エリアナビ（ピル型） ===== */
.area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.area-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

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

/* ===== YouTubeライブ埋め込み ===== */
.live-embed {
  margin: 0 0 1.5rem;
}

.live-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.live-header .live-badge {
  margin-bottom: 0;
}

.live-camera-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-pulse {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-embed-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.live-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== ライブカメラ リスト ===== */
.camera-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.camera-list-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.camera-list-item a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  text-decoration: none;
}

.camera-icon,
.camera-icon-blue {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
}

.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: 3px;
}

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

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

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

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

/* ===== FAQ ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 2rem;
}

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

.faq-q {
  margin: 0;
  padding: 14px 18px;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-border);
}

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

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

/* ===== シェアボタン ===== */
.share {
  margin: 2rem 0;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
}

.share-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a0aec0;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.share-title p { margin: 0; }

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 5px;
  font-size: 1.1rem;
  border-radius: 50%;
  transition: transform 0.2s, 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; }

/* ===== 広告・バナー ===== */
.adsense,
.banner {
  margin: 1.5rem 0;
  text-align: center;
}

/* ===== OpenWeatherMap リンク ===== */
.owm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #f0f7ff;
  border: 1px solid #bee3f8;
  border-radius: 6px;
  padding: 0.6em 1em;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.2s;
}

.owm-link:hover {
  background: #bee3f8;
  text-decoration: none;
}

/* ===== フッター ===== */
footer {
  background-color: #333;
  color: white;
  padding: 3rem 0;
  width: 100%;
  margin: 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.footer-logo {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-about p {
  margin-bottom: 1rem;
  color: #ccc;
}

.footer-links h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #1a73e8;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: none;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-top: 1px solid #555;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* ===== トップに戻るボタン ===== */
.page_top {
  width: 46px;
  height: 46px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--color-dark);
  box-shadow: var(--shadow-lg);
  border-radius: 50%;
  z-index: 200;
  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);
  text-decoration: none;
}

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

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

/* ===== マップポップアップボタン ===== */
.camera-popup-btn {
  display: inline-block !important;
  margin-top: 8px;
  padding: 8px 16px !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.camera-popup-btn:hover {
  opacity: 0.9 !important;
  text-decoration: none !important;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .sidebar {
    flex: none;
    width: 100%;
    position: static;
  }

  .content-wrapper {
    flex-direction: column;
    margin: 1rem 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }

  .content-wrapper main {
    border-radius: 0;
    padding: 1.5rem;
    width: 100%;
  }

  .sidebar {
    padding: 0;
  }

  .breadcrumb {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
  }

  nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: #1a73e8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    box-sizing: border-box;
  }

  nav.active {
    max-height: 600px;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul li {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  nav ul li a {
    padding: 0;
    color: white !important;
  }

  h1 {
    font-size: 1.5rem;
  }

  .content-wrapper main {
    padding: 1rem;
  }

  .footer-nav ul {
    flex-direction: column;
    align-items: center;
  }

  #map {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .area-nav {
    gap: 6px;
  }

  .area-nav a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .camera-list-item a {
    padding: 12px 14px;
    gap: 10px;
  }

  .camera-name {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  .content-wrapper {
    margin: 1rem auto;
    padding: 0 1rem;
    max-width: 100%;
  }

  .content-wrapper main {
    padding: 1rem;
  }

  .breadcrumb {
    padding: 0 1rem;
  }
}
