@charset "utf-8";

/* 1. 基本設定 */
* { box-sizing: border-box; }
html { min-height: 100%; overflow-y: scroll; scrollbar-gutter: stable both-edges; }
body { margin: 0; font-family: "Yu Gothic", "Meiryo", sans-serif; background: #f3f5f9; color: #222; }

.site-wrapper {
  width: min(1100px, 96%); 
  margin: 0 auto;
  padding: 10px 0 40px;
}

/* 2. ヘッダー（共通） */
.global-header { width: 100%; }

/* 3. ナビゲーション（紺色の帯） */
.top-nav {
  background: #011a35;
  color: #fff;
  font-size: 0.9rem;
}

.top-nav .inner {
  width: min(1100px, 96%);
  margin: 0 auto;
  padding: 8px 0;
  position: relative; /* プルダウンの基準点 */
  z-index: 1000;
}

.main-menu ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu a, .dropbtn {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

/* 4. プルダウン機能（ここに集約） */
.dropdown {
  position: relative; 
}

.dropbtn {
  background: #012d5a;
  border: 1px solid #011a35;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
}

.dropdown-content {
 display: none;  /* ★ !important をつけると、何が何でも最初は消えます */
  position: absolute;
     flex-direction: column; /* ← これ追加 */
  top: 100%;
  left: 0;          
  min-width: 210px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 9999;     /* 最前面へ */
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.dropdown-content li {
  margin: 0;
}

.dropdown-content li a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  white-space: nowrap; 
}

.dropdown-content li a:hover {
  background: #f0f0f0;
}

/* 5. サイトタイトル（センター寄せ） */
.site-title {
  background: linear-gradient(135deg, #022c57, #004a98);
  color: #fff;
  padding: 24px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-align: center; 
}

.site-title .inner {
  width: min(1100px, 96%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-title h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  font-weight: bold;
}
/* ==========================================================================
   注意書き（重要情報：赤）
   ========================================================================== */
.notice {
  width: 100%;
  max-width: 1100px;
  margin: 25px auto;
  padding: 20px;
  background: #fffafa; 
  border: 2px solid #990000;
  border-left: 10px solid #990000;
  color: #990000;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.7;
  box-shadow: 0 4px 15px rgba(153, 0, 0, 0.1);
  border-radius: 8px;
}

/* ==========================================================================
   メインコンテンツ（1100px幅）
   ========================================================================== */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column; 
  gap: 30px;
  width: 100%;
}

.map-section {
  width: 100%;
}

.map-section img {
  width: 100%;
  height: auto;
  border: 2px solid #d5ddea;
  border-radius: 5px;
}

/* カメラリスト：1100pxの中で4列 */
.cam-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.cam {
  flex: 0 0 calc(25% - 12px); 
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  padding: 10px;
}

.cam:hover {
  border-color: #990000;
}

.caption {
  font-size: 0.9rem;
  color: #222;
  font-weight: bold;
  padding-top: 10px;
  text-align: center;
  display: block;
}

/* 各カメラの画像（サムネイル）の設定 */
.cam a {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9; /* 会津と同じ「横長」の枠を強制的に作る */
    background: #000;      /* 比率が違う場合の余白を黒で埋める */
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.cam a img {
    width: 100%;
    height: 100%;
    /* 写真を枠の中に収め、比率を保ったまま中央に配置する魔法の1行 */
    object-fit: contain; 
    
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}
/* ==========================================================================
   フッター
   ========================================================================== */
.link-footer {
  max-width: 1100px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* フッターの連絡先情報のレイアウト調整 */
.link-column {
  background: #ffffff;
  border: 1px solid #d5ddea;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.link-column strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px; /* 部署名と住所の間の隙間 */
  color: #990000; 
  border-left: 5px solid #990000; /* 赤い縦棒 */
  padding-left: 10px;            /* 縦棒と文字の間の余白 */
}

.link-column p {
  margin: 2px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  
  /* ここでインデント（字下げ）をかけます */
  /* 赤い棒(5px) + 余白(10px) = 15px 分右に寄せると、上の文字の開始位置と揃います */
  padding-left: 15px; 
  
  color: #444;
}
/* ==========================================================================
   モーダル・レスポンシブ
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: min(96%, 850px);
  height: min(90vh, 650px);
  background: #fff;
  border-radius: 8px;
}

/* モーダル外側のグレー背景 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85); /* 少し濃くして写真を見やすく */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* モーダルの白い箱：ここを調整 */
.modal-content {
    position: relative;
    width: 90%;          /* 画面の9割 */
    max-width: 900px;    /* カメラ画像が綺麗に見える最大幅 */
    height: 70vh;        /* 画面の高さの8割 */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* 中のiframeをいっぱいに広げる */
#modalFrame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* 閉じるボタンを大きく押しやすく */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 40px;
    cursor: pointer;
    color: #990000;
    z-index: 100;
    line-height: 1;
    text-shadow: 0 0 10px #fff; /* 白い影をつけてボタンを見やすく */
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  cursor: pointer;
  color: #990000;
  z-index: 10;
}

@media (max-width: 900px) {
  .cam {
    flex: 0 0 calc(50% - 8px); 
  }
}