/* Google Fonts の導入 */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600&display=swap');

:root {
  --primary-color: #ff8c42; /* メインの暖色 */
  --background-color: #f9f9f9; /* 優しい背景 */
  --text-color: #333; /* 見やすい黒 */
  --input-border-color: #ddd; /* 入力フィールドのボーダーカラー */
  --input-hover-border-color: #cc7c4b; /* 入力フィールドのホバー時ボーダーカラー */
  --button-hover-color: #e67636; /* ボタンホバー時の色 */
  --button-shadow: rgba(0, 0, 0, 0.1); /* ボタンのシャドウ */
}
/* ページ全体のフォント設定 */
html, body {
  font-family: 'Quicksand', sans-serif; /* 丸みのあるフォント */
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}
/* ヘッダーのタイトル */
h1 {
  color: #ff8c42; /* 暖かいオレンジ色 */
  text-align: center;
  font-size: 2.5rem;
  text-shadow: 1px 1px 0 #fff;
  margin: 20px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.content-wrapper {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}
/* 検索オプションのスタイル */
.search-options {
  display: flex;
  justify-content: center; /* 横並びを中央揃え */
  gap: 20px;
  align-items: center;
  margin-bottom: 5px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px; /* 地図の上に配置 */
}
.filter-options {
  display: flex;
  justify-content: center; /* 横並びを中央揃え */
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 5px; /* 検索結果の上に配置 */
}
.styled-input-wrapper{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
label {
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
}

select, input[type="text"] {
  font-size: 1rem;
  padding: 10px;
  border: 1px solid var(--input-border-color);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s;
  width: auto;
}
input[type="time"]{
  font-size: 1rem;
  padding: 10px;
  border: 1px solid var(--input-border-color);
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s;
  width: auto;
}

select:hover, input[type="time"]:hover, input[type="text"]:hover {
  border-color: var(--input-hover-border-color);
}
#map {
  flex: 2; /* 地図を2倍の比率で表示 */
  height: 500px;
  margin-top: 10px; /* サーチオプションの下にスペースを確保 */
}

#results-container {
  flex: 3; /* 結果エリアを少し広く */
  height: 500px;
  padding: 10px;
  overflow-y: auto;
  border-left: 1px solid var(--secondary-color);
  margin-top: 10px; /* フィルターオプションの下にスペースを確保 */
}

/* 地図と検索結果を横並びに */
.container {
  display: flex;
  gap: 20px;
}

/* チェックボックスのスタイル */
.styled-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.styled-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.styled-checkbox-label {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--input-border-color);
  border: 2px solid var(--input-border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.styled-checkbox:checked + .styled-checkbox-label {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.styled-checkbox-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.3s ease;
}

.styled-checkbox:checked + .styled-checkbox-label::after {
  transform: translate(-50%, -50%) scale(1);
}


/* ホバー時のスタイル変更 */
select:hover, input[type="time"]:hover {
  border-color: var(--input-hover-border-color);
}

/* デバイスによるデフォルトスタイルのリセット */
input[type="time"]::-webkit-calendar-picker-indicator {
  display: none; /* Webkitブラウザ用: アイコンを非表示 */
}




/* 各オプショングループのスタイル */
.option-group2 {
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央揃え */
  gap: 10px;
}
.option-group1{
  display: flex;
  flex-direction: row;
  align-items: center; /* 中央揃え */
  gap: 10px;
}
/* 地図と検索結果の配置 */
.map-container {
  gap: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#map, #time-range-display {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#results-container{
  display: none; 
}
/* 検索結果タイトル 
#results-container h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
  */
#cinema-container h2{
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* スケジュールのスタイル */
#schedule-container {
  display: flex;
  gap: 15px; /* スケジュール間の間隔 */
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow-x: auto; /* 横スクロール可能にする */
  white-space: nowrap; /* 子要素を折り返さない */
  word-wrap: break-word; /* 長い単語を改行 */
    word-break: break-all; /* 必要に応じて単語内で改行 */
    white-space: normal; /* 通常の空白処理 */
}

.schedule-section {
  flex: 0 0 20%; /* 固定の幅: 親要素の33% */
  min-width: 300px; /* 最小幅を設定（必要に応じて調整） */
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

a {
    word-wrap: break-word; /* 長い単語を改行 */
    word-break: break-all; /* 必要に応じて単語内で改行 */
    white-space: normal; /* 通常の空白処理 */
}
.search-option2{
  display: none;
}


/* 検索窓の非表示 */
#pac-input {
  display: none; /* 検索窓を非表示にする */
}
#pac-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* 基本的なボタンのスタイル */
button {
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 20px; /* 丸みを統一 */
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}
button:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* スケジュール取得ボタン特有のスタイル */
#schedule-button {
  width: 100%;
  max-width: 250px;
}

.schedule-section button {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 5px;
}

button:hover {
  transform: scale(1.1);
  background-color: #e66900;
}

/* 隠し要素のスタイル */
.hidden {
  display: none;
}

/* フィルタ用のインプットとボタン */
#filterInput {
  font-size: 14px;
  padding: 10px;
  border: 1px solid var(--input-border-color);
  border-radius: 20px;
  margin-right: 10px;
  flex-grow: 1;
}

#filterButton {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#filterButton:hover {
  background-color: var(--button-hover-color);
}
.styled-checkbox-wrapper {
  display: none;
}


/* スマートフォン用のレイアウト調整 */
@media (max-width: 768px) {
  /* 全体のフォントサイズを調整 */
  html, body {
    font-size: 30px;
  }

  /* ヘッダーのタイトルを小さくする */
  h1 {
    font-size: 2rem;
  }

  /* コンテンツを縦方向に配置 */
  .content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 検索オプションの幅を調整 */
  .search-options, .filter-options {
    flex-direction: column;
    width: 90%;
    gap: 10px;
    padding: 15px;
  }

  /* 入力フィールドとセレクトボックスの幅を調整 */
  select, input[type="text"], input[type="time"] {
    width: 100%;
  }

  /* 地図と検索結果を縦並びに */
  .map-container {
    flex-direction: column;
    align-items: center;
  }

  #map {
    width: 100%;
    height: 350px; /* 高さを調整 */
  }

  #results-container {
    width: 100%;
    height: auto;
    border-left: none; /* 左のボーダーを削除 */
  }

  /* スケジュール表示を縦並びに */
  #schedule-container {
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden; /* 横スクロールを無効化 */
  }

  .schedule-section {
    width: 100%;
    min-width: auto;
  }

  /* ボタンの幅を100%に */
  button {
    width: 100%;
  }
}

