@charset "UTF-8";

/* ===================================
   ライブカメラページ h1
   =================================== */
.live-camera-main h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.3;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.8rem;
}

/* ===================================
   天気カード（メインコンテンツ）
   =================================== */
.weather-current-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 0.75rem;
  border: 1px solid #eaeaea;
}

.weather-current-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.weather-current-icon {
  font-size: 5rem;
  text-shadow: 2px 4px 6px rgba(0,0,0,0.1);
  line-height: 1;
}

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

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

.weather-current-condition {
  font-size: 1.2rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.2rem;
}

.weather-current-temp {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.weather-current-temp span {
  font-size: 1.5rem;
  color: #777;
  font-weight: normal;
  margin-left: 0.2rem;
}

.weather-current-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
}

.weather-detail {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.detail-value {
  font-size: 1.05rem;
  color: #333;
  font-weight: 500;
}

.weather-observed-time {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
}

/* ===================================
   サイドバーレイアウト
   =================================== */

/* content-wrapper を持つ container の横 padding をリセット */
.container:has(> .content-wrapper) {
  padding-left: 0;
  padding-right: 0;
}

/* パンくずを content-wrapper と同じ横位置に揃える */
.container:has(> .content-wrapper) > .breadcrumb {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Flexbox 横並びレイアウト */
.content-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* メインコンテンツ */
.content-wrapper main {
  flex: 1;
  min-width: 0;
}

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

.sidebar-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f0f0f0;
}

.sidebar-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-category-list li {
  border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-category-list li a {
  display: block;
  padding: 0.7rem 0;
  color: #0066cc;
  text-decoration: none;
  font-size: 1.0rem;
  transition: color 0.2s;
}

.sidebar-category-list li a:hover {
  color: #1557b0;
}

/* レスポンシブ：タブレット以下 */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
    padding: 0;
  }

  .sidebar {
    flex: none;
    width: 100%;
  }

  .sidebar-section {
    display: none;
  }

  .content-wrapper main {
    flex: none;
    max-width: none;
    padding: 1rem;
  }

  .container:has(> .content-wrapper) > .breadcrumb {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .content-wrapper main {
    padding: 1rem;
    margin: 0;
  }
}

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

.live-embed:first-of-type {
  margin-top: 0.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: #2d3748;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e53e3e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  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;
}

/* ===== 天気ウィジェット（メインコンテンツ内） ===== */
.weather-section {
  background: #f8fafd;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.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.6rem;
  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.9rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.1rem;
}

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

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

.weather-widget-details {
  display: grid;
  grid-template-columns: repeat(3, 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: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: #f0f7ff;
  border: 1px solid #bee3f8;
  border-radius: 6px;
  padding: 0.5em 0.9em;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3182ce;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.weather-widget-link:hover {
  background: #3182ce;
  color: white;
  text-decoration: none;
}

/* ===== 天気カード（メインコンテンツ大型表示）===== */
.live-camera-main h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: #333;
  border-left: 4px solid #1a73e8;
  padding-left: 0.8rem;
}

.weather-current-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 0.5rem;
  border: 1px solid #eaeaea;
}

.weather-current-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.weather-current-icon {
  font-size: 5rem;
  text-shadow: 2px 4px 6px rgba(0,0,0,0.1);
  line-height: 1;
}

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

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

.weather-current-condition {
  font-size: 1.2rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.2rem;
}

.weather-current-temp {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.weather-current-temp span {
  font-size: 1.5rem;
  color: #777;
  font-weight: normal;
  margin-left: 0.2rem;
}

.weather-current-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
}

.weather-detail {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.detail-value {
  font-size: 1.05rem;
  color: #333;
  font-weight: 500;
}

.weather-observed-time {
  font-size: 0.8rem;
  color: #718096;
  margin-bottom: 1.5rem;
}

/* ===== 関連リンク（ライブカメラページ等） ===== */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

/* ===== 他エリアライブカメラリンク ===== */
.camera-area-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.camera-area-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
  background: #ffffff;
  color: #555;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.camera-area-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  border-color: #b8cff5;
  color: #3b6bbf;
}

.camera-area-nav a .fa-external-link-alt {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ===== ライブカメラ補足文 ===== */
.live-camera-note {
  background: #f8fafd;
  border-left: 3px solid #bee3f8;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.live-camera-note a {
  color: #3182ce;
  text-decoration: underline;
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  .weather-widget-details {
    grid-template-columns: 1fr 1fr;
  }

  .weather-widget-temp {
    font-size: 2rem;
  }
}
