@charset "utf-8";

/* =============================================================================
   目次
   [1] リセット・ベーススタイル
   [2] レイアウト構造
   [3] ヘッダー・スライドショー
   [4] ナビゲーション・サイドバー
   [5] メインコンテンツ
   [6] フッター
   [7] ユーティリティ・コンポーネント
   [8] レスポンシブデザイン
============================================================================= */

/* -----------------------------------------------------------------------------
   [1] リセット・ベーススタイル
----------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  background: url('img/bg-body.jpg') repeat-x;
  text-align: center;
}

a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:visited {
  color: #90f;
}

a:hover,
a:active {
  color: #f00;
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   [2] レイアウト構造
----------------------------------------------------------------------------- */
#wrapper {
  max-width: 800px;
  margin: 10px auto;
  padding: 0 10px;
  border: 1px solid #ccc;
  background: #fff;
  text-align: left;
  overflow: hidden; /* clearfix */
}

#contents {
  float: left;
  width: calc(100% - 120px);
  padding-left: 10px;
}

#sidebar {
  float: right;
  width: 100px;
  padding-left: 10px;
}

/* -----------------------------------------------------------------------------
   [3] ヘッダー・スライドショー
----------------------------------------------------------------------------- */
#header {
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: 20px;
  border-bottom: 8px solid #999;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

/* スライドショー */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.slide.active {
  opacity: 1;
}

/* スライドコントロール（矢印） */
.slide-controls {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  pointer-events: none;
}

.slide-control {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  pointer-events: auto;
}

.slide-control:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* スライドインジケーター（点） */
.slide-indicators {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: 10px;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.slide-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slide-indicator.active {
  background: white;
  transform: scale(1.3);
}

/* ヘッダー内コンテンツ */
.header-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.logo {
  text-align: center;
  margin-bottom: 10px;
}

.logo a {
  font-family: "Noto Sans", "Arial", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 1px;
}

.logo a:hover {
  color: #f00;
  text-decoration: none;
}

.logo img {
  vertical-align: middle;
  margin-left: 8px;
}

.description {
  font-size: 0.875rem;
  color: #333;
  text-align: center;
  margin: 0;
}

/* -----------------------------------------------------------------------------
   [4] ナビゲーション・サイドバー
----------------------------------------------------------------------------- */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.sidebar-nav img:hover {
  opacity: 0.8;
}

/* -----------------------------------------------------------------------------
   [5] メインコンテンツ
----------------------------------------------------------------------------- */
h2, h3, h4, h5, h6 {
  font-size: 1.2rem;
  font-weight: normal;
  padding-top: 10px;
  padding-left: 10px;
  height: 50px;
  background: url('img/bg-h-new2.jpg') no-repeat left top;
  margin-top: 50px;
}

h2:first-of-type, h3:first-of-type {
  margin-top: 0;
}

#contents p {
  margin-bottom: 0.5em;
}

.announcement-section {
  margin-top: 1.5em;
  padding: 1em 1.5em;
  background: #f0f8ff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.announcement-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5em;
}

.announcement-date {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
  letter-spacing: 1px;
}

.play-title {
  font-size: 1.5em;
  font-weight: bold;
}

.main-text {
  font-size: 1em;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1em 0;
}

.social-links img {
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

/* 強調表示エリアの共通スタイル */
.highlight-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5em;
  margin: 2em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.performance-highlight {
  border-left: 4px solid #0077cc;
}

.performance-highlight h3 {
  background: none;
  margin: 0 0 1.5em 0;
  padding: 0;
  height: auto;
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  text-align: center;
}

/* テーブル */
.performance-table, .location-table {
  width: 100%;
  border-collapse: collapse;
}

.performance-table {
  margin-top: 1em;
  font-size: 1em;
}

.performance-table td, .location-table td {
  padding: 5px 10px;
  vertical-align: top;
}

.location-info {
  width: 70%;
}

.location-map {
  text-align: center;
}

/* フライヤー */
.flyer-images {
  text-align: center;
  margin: 2em 0;
}

.flyer-images img {
  max-width: 100%;
  height: auto;
  margin: 0.5em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 区切り線 */
.content-divider {
  width: 80%;
  margin: 1.5em auto;
  border: none;
  border-top: 1px solid #ccc;
}

/* 更新履歴 */
.news-frame {
  width: 100%;
  height: 350px;
  border: 1px solid #ccc;
  margin-top: 1em;
}

/* -----------------------------------------------------------------------------
   [6] フッター
----------------------------------------------------------------------------- */
#footer {
  clear: both;
  padding: 10px 0 5px;
  background-color: #666;
  color: #fff;
  text-align: center;
}

#footer p {
  margin: 0;
}

/* -----------------------------------------------------------------------------
   [7] ユーティリティ・コンポーネント
----------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  border-radius: 50%;
  z-index: 1000;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.back-to-top:hover {
  background-color: #555;
  text-decoration: none;
}

.analytics-img {
  display: none; /* 通常は表示させない */
}

/* -----------------------------------------------------------------------------
   [8] レスポンシブデザイン
----------------------------------------------------------------------------- */

/* タブレット (〜768px) */
@media screen and (max-width: 768px) {
  #wrapper { margin: 5px; padding: 0 5px; }
  #contents, #sidebar { float: none; width: 100%; padding: 0; }
  #sidebar { margin-top: 20px; }
  .sidebar-nav { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px; }
  .sidebar-nav img { width: 80px; }
  #header { height: 250px; }
  .header-content { height: 35%; }
  .logo a { font-size: 1.2rem; }
  .description { font-size: 0.75rem; }
  .slide-controls { padding: 0 10px; top: 32%; }
  .slide-control { width: 35px; height: 35px; font-size: 16px; }
  .slide-indicators { bottom: 35%; }
  .slide-indicator { width: 10px; height: 10px; }
  .location-table, .location-table tbody, .location-table tr, .location-table td { display: block; width: 100%; }
  .location-map { margin-top: 1em; }
}

/* スマートフォン (〜480px) */
@media screen and (max-width: 480px) {
  body { font-size: 0.9rem; }
  #wrapper { margin: 0; border: none; }
  #header { height: 200px; margin-bottom: 10px; }
  .header-content { height: 40%; padding: 8px; }
  .logo a { font-size: 1rem; }
  .description { font-size: 0.7rem; }
  .logo img { width: 20px; height: auto; }
  .slide-controls { padding: 0 5px; top: 30%; }
  .slide-control { width: 30px; height: 30px; font-size: 14px; }
  .slide-indicators { bottom: 42%; }
  .slide-indicator { width: 8px; height: 8px; }
  .announcement-section { padding: 0.8em 1em; }
  .announcement-title { font-size: 1.1em; }
  .announcement-date { font-size: 1.3em; }
  .highlight-box { margin: 1em 0; padding: 1em; }
  .performance-highlight h3 { font-size: 1.3em; }
  .sidebar-nav img { width: 60px; }
  .social-links { justify-content: center; }
  .back-to-top { width: 35px; height: 35px; line-height: 35px; bottom: 15px; right: 15px; }
  h2, h3, h4, h5, h6 { font-size: 1.1rem; height: 45px; margin-top: 30px; }
  .performance-table { font-size: 0.85em; }
}