@charset "UTF-8";

/* =========================================
   ベースリセット
   ========================================= */
body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #111;
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================
   レイアウトコンテナ
   ========================================= */
.banner-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

.main-wrapper {
  padding: 0.25rem;
  background-color: #3f6a91;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* =========================================
   ストリームセクション（緑のボックス）
   ========================================= */
.stream-section {
  margin: auto;
  width: 100%;
  border-radius: 0.75rem;
  background-color: #508c52;
  text-align: center;
  padding: 0.125rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ページタイトル */
.page-header-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem;
  text-align: center;
}

/* =========================================
   グリッドシステム（カメラ）
   ========================================= */
.camera-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.125rem;
  border-radius: 0.5rem;
  box-sizing: border-box;
}

/* PCビューのオーバーライド */
.camera-grid.grid-mode {
  grid-template-columns: repeat(2, 1fr);
  padding: 0.125rem;
  background-color: #353948;
}

@media (min-width: 800px) {
  .camera-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.125rem;
    padding: 0.125rem;
    background-color: #353948;
  }
}

/* ビューセレクター */
.view-selector {
  display: flex;
  justify-content: center;
  gap: 0.125rem;
  margin: 0.5rem 0;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  border: 0.125rem solid #555;
  background: #222;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.5rem;
  padding: 0;
  margin: 0 auto;
}

.view-toggle-btn:hover {
  border-color: #777;
  background: #333;
  color: #fff;
}

.view-toggle-btn.view-toggle-active {
  border-color: #90c5ff;
  background: #1a3a52;
  color: #90c5ff;
  box-shadow: 0 0 10px rgba(144, 197, 255, 0.3);
}

.view-toggle-btn.view-toggle-active:hover {
  border-color: #b0d5ff;
  background: #1f4a62;
  box-shadow: 0 0 15px rgba(144, 197, 255, 0.5);
}

/* PC版では非表示 */
@media (min-width: 800px) {
  .view-selector {
    display: none;
  }
}

/* カメラアイテムカード */
.camera-card {
  background-color: #43485a;
  padding: 0.0625rem;
  margin: 0;
  border-radius: 0.5rem;
  box-sizing: border-box;
  border: 0.025rem solid rgb(139, 215, 255);
  border-color: rgb(139, 215, 255);
  box-shadow: 0 10px 16px -2px rgba(139, 215, 255, 0.5),
    0 4px 5px -3px rgba(139, 215, 255, 0.5);
}

@media (min-width: 800px) {
  .camera-card {
    overflow: hidden;
  }
}

.camera-label {
  color: #fff;
  text-align: center;
  padding-bottom: 0.125rem;
  margin: 0.25rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.camera-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
}

/* =========================================
   新幹線セクション
   ========================================= */
#shinkansen {
  width: 100%;
  border-radius: 1rem;
  background-color: #508c52;
  text-align: center;
  margin-top: 10px;
}

#toggle-btn {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem;
  cursor: pointer;
  user-select: none;
  border-radius: 0.75rem;
  color: #fff;
  background: #111;
  padding: 12px 0;
}

#shinkansen-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.shinkansen-frame-wrapper {
  border-radius: 0.75rem;
  display: flex;
  justify-content: center;
  background-color: #43485a;
  margin: 0;
  padding: 0;
  border: 2px solid #90c5ff;
  box-shadow: 0 10px 16px -2px rgba(43, 255, 237, 0.6),
    0 4px 5px -3px rgba(43, 255, 237, 0.6);
}

#shinkansen-iframe {
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  min-height: 1400px;
  min-width: 700px;
  overflow: hidden;
}

/* =========================================
   コンポーネント: リンク & ディバイダー
   ========================================= */
.divider {
  width: 90%;
  height: 1px;
  background: #444;
  margin: 30px auto 20px;
  border-radius: 50px;
}

.back-link {
  width: 90%;
  margin: 0 auto 20px;
  display: block;
  text-decoration: none;
  background: #222;
  color: #fff;
  padding: 10px 12px;
  text-align: center;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 1px solid #333;
  transition: 0.2s;
  max-width: 500px;
}
.back-link:hover {
  background: #333;
}

.link-spacer {
  margin-bottom: 40px;
}

.line-link {
  width: 90%;
  margin: 0 auto 40px;
  display: block;
  text-decoration: none;
  background: #06c755;
  color: #fff;
  padding: 15px 18px;
  text-align: center;
  font-size: 1.15rem;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: 0.2s;
  max-width: 500px;
}

.line-link:hover {
  background: #05b24b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.counter-table {
  margin-bottom: 20px;
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
  display: flex;
  flex-direction: column;
  background-color: #000;
  color: #fff;
  align-items: center;
  padding: 1rem;
  width: 100%;
}

/* =========================================
   関空ページ固有
   ========================================= */
.kanku-container {
  width: 100%;
  border-radius: 0.5rem;
  background-color: #508c52;
  padding: 0.25rem;
  text-align: center;
  box-sizing: border-box;
}

.kanku-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  width: 100%;
}
@media (min-width: 768px) {
  .kanku-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kanku-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  height: 50vh;
  display: block;
  text-decoration: none;
}

/* 背景エフェクト */
.kanku-bg-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(6, 182, 212, 0.1),
    transparent,
    rgba(147, 51, 234, 0.2)
  );
  z-index: 10;
  pointer-events: none;
}

.kanku-border-gradient {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(to right, #d3eefd, #9333ea);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: transparent;
}

.kanku-card-border {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(to right, #d3eefd, #9333ea);
}

.kanku-card-inner-bg {
  position: absolute;
  inset: 2px;
  background-color: #353948;
  border-radius: 0.9rem;
}

.kanku-link-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.kanku-image-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
  background-color: #43485a;
}

.kanku-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kanku-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #353948, transparent, transparent);
  opacity: 0.6;
}

.kanku-text-area {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  padding: 1rem;
  background: linear-gradient(
    to bottom,
    rgba(31, 41, 55, 0.8),
    rgba(17, 24, 39, 0.9)
  );
  backdrop-filter: blur(8px);
  text-align: left;
}

.kanku-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1;
  margin-top: 0;
}

.kanku-desc {
  font-size: 1.5rem;
  color: #d1d5db;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.kanku-status {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ef4444;
  font-weight: 600;
  font-size: 0.75rem;
}

/* =========================================
   Index2（レガシー）固有
   ========================================= */
.container-legacy {
  display: block;
  padding: 10px;
}
@media (min-width: 800px) {
  .container-legacy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}
.card-legacy {
  margin: 0 0 16px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
}
.label-legacy {
  margin: 0;
  padding: 6px 10px;
  font-size: 1rem;
  background: #111;
  text-align: center;
}
