body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  color: #333;
}

.title-container {
  text-align: center;
  padding: 20px 10px 0;
  background-color: #fff;
  margin-bottom: 0;
}

#facility-name {
  font-size: 28px;
  margin: 0;
  color: #007acc;
}

.underline {
  width: 90%;
  height: 1px;
  background-color: #007acc;
  margin: 5px auto 10px;
}

.subtitle {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 20px;
  color: #007acc;
  line-height: 1;
 
}


.main-container {
  display: flex;
  flex-wrap: wrap;
  padding: 15px;
}

.left-container {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 10px;
  display: flex;              /* 中身をflex化 */
  flex-direction: column;     /* 縦方向に配置 */
  align-items: center;        /* 横方向の中央 */
  justify-content: center;    /* 縦方向の中央 */
}

#facility-image {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

#facility-tags {
  margin-top: 10px;
}

.tag {
  background-color: #007acc;
  color: #fff;
  padding: 5px 10px;
  margin: 2px;
  display: inline-block;
  border-radius: 12px;
  font-size: 12px;
}

.center-container {
  flex: 3;
  min-width: 300px;
  padding: 10px;
}

#local-time-container {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  background: #fff;
  border-bottom: 2px solid #ccc;
  margin: 0 !important;
  padding: 10px !important;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.local-date {
  font-size: 18px; /* ← お好みのサイズに */
  align-items: flex-end; /* 下揃えにする */
  display: flex;
  gap: 4px;
  /* padding-top: 6px; */
}

.local-date span {
  font-size: inherit; /* 明示的に親のサイズを継承させる */
}

#local-year,
#local-month,
#local-day {
  font-size: 24px;
  font-weight: bold;  /* 任意で強調 */
  align-items: flex-end;
  /* padding-top: 0 !important; */
}


#local-weekday {
  display: inline-block;
  font-size: 26px;
  border-radius: 50%;
  padding: 0 10px;
  background: #eee;
}

#local-clock {
  font-size: 22px;
  margin-left: 20px;
}

.date-and-hours-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* gap: 20px; */
  margin: 10px 0;
  flex-wrap: wrap;
}

.date-container,
.hours-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-container {
  width: 30%;
}
.hours-container {
  width: 50%;
  min-width: 250px;
}

  /* 日付 + 運営時間横並び */
  .date-hours-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  /* 日付ピッカーの親に display:inline を適用させることで横並び維持 */
  #date-picker {
    width: 90%;
    display: inline-block;
    vertical-align: middle;
    padding: auto;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    /* width: 160px; */
    box-sizing: border-box;
    height: 70px;
  }

.summary-boxes {
  display: flex;
  justify-content: space-around;
  margin: 15px 0;
  flex-wrap: wrap;
}

.summary-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* タイトルを上に固定 */
  align-items: center;
  margin: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  border-radius: 10px;
  /* height: 100px; */
  box-sizing: border-box;
  width: 23%;
}

.summary-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}

.summary-box div:last-child {
  font-weight: bold;
  flex-grow: 1; /* 残りのスペースを使用 */
  display: flex;
  align-items: center;  /* 上下中央揃え */
  justify-content: center; /* 左右中央揃え（必要に応じて） */
  width: 100%;
  font-size: 26px;
}


/* Summary box color variants */
.box-average {
  background-color: rgba(200, 230, 201, 0.3);  /* 緑系の透過背景 */
  border: 2px solid #66bb6a;                   /* 緑系の枠線 */
}

.box-max {
  background-color: rgba(187, 222, 251, 0.3);  /* 青系の透過背景 */
  border: 2px solid #42a5f5;                   /* 青系の枠線 */
}

.box-end {
  background-color: rgba(215, 204, 200, 0.3);  /* 茶系の透過背景 */
  border: 2px solid #8d6e63;                   /* 茶系の枠線 */
}

.box-pass {
  background-color: rgba(179, 229, 252, 0.3);  /* 水色系の透過背景 */
  border: 2px solid #29b6f6;                   /* 水色系の枠線 */
}


#todaywaittimes {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  color: #007acc;
}

#waittime-container {
  max-width: 95%;
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}

.waittime-box {
  width: calc(100% / 12 - 1px);
  text-align: center;
  border-radius: 0px;
  overflow: hidden;
}

.waittime-box .timebox {
  background-color: #f0f0f0;
  color: #000;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0;
  margin: 0;
}

.waittime-box .waittimebox {
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin: 0;
}

.waittimebox.gray {
  background-color: #999;
  color: #fff;
}

.waittimebox.dark {
  background-color: #000;
  color: #fff;
}

.waittimebox.lightgray {
  background-color: #eee;
  color: #000;
}

.waittimebox.lightblue {
  background-color: #b3e5fc;
  color: #fff;
}

.waittimebox.blue {
  background-color: #03a9f4;
  color: #fff;
}

.waittimebox.green {
  background-color: #8bc34a;
  color: #fff;
}

.waittimebox.yellow {
  background-color: #fff176;
  color: #fff;
}

.waittimebox.pink {
  background-color: #f8bbd0;
  color: #fff;
}

.waittimebox.hotpink {
  background-color: #ec407a;
  color: #fff;
}

.waittimebox.red {
  background-color: #f44336;
  color: #fff;
}

#debug {
  color: red;
  text-align: center;
  margin: 10px 0;
  font-weight: bold;
}

/* --- 運営時間ボックス全体 --- */
.park-hours-box {
  width: 60%;
  text-align: center;
  max-width: 800px;
  margin: 0;
  padding: 0;
  border: 2px solid #007acc;
  border-radius: 12px;
  background-color: rgba(0, 122, 204, 0.05);
  font-family: 'Arial', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

  /* 運営時間表示 */
  #park-hours-info {
    font-size: 16px;
    border: 2px solid #007acc;
    border-radius: 12px;
    padding: 12px 20px;
    background: #f1f8ff;
    text-align: center;
    width: 90%;
  }


/* --- メイン運営時間（太字・大きめ） --- */
.park-hour-main {
  font-size: 20px;
  font-weight: bold;
  color: #007acc;
  margin: 8px 0;
  
}

/* --- サブ項目（小さめ・グレー系） --- */
.park-hour-sub {
font-size: 14px;
color: #555;
line-height: 1.5;
}




.park-hour-box {
  text-align: center;
  margin: 10px auto;
  padding: 8px;
  border: 2px solid #007acc;
  border-radius: 10px;
  max-width: 300px;
  background-color: rgba(255, 255, 255, 0.85);
}

.park-hour-main {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.sub-info {
  font-size: 14px;
  color: #333;
  margin-top: 2px;
}

/* ==== スマートフォン向けレスポンシブ対応 ==== */
@media screen and (max-width: 1024px) {
.main-container {
  flex-direction: column;
  padding: 10px;
}

.left-container, .center-container {
  width: 100%;
  padding: 5px;
}

#facility-name {
  font-size: 20px;
}

.subtitle {
  font-size: 16px;
}


#local-date span, #local-date {
  font-size: 26px;
}

#local-weekday {
  font-size: 20px;
  padding: 0 8px;
}



/* .summary-boxes {
  flex-direction: column;
  align-items: center;
} */

.summary-box {
  padding: 10px;
  border-radius: 10px;
  flex: 1;
  min-width: 150px;
  margin: 5px;
  text-align: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

#todaywaittimes {
  font-size: 18px;
}

#waittime-container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1px;
}

/* .waittime-box {
  width: calc(100% / 12 - 1px);
} */

.waittime-box .timebox {
  font-size: 10px;
  height: 16px;
}

.waittime-box .waittimebox {
  font-size: 14px;
  height: 18px;
}

.park-hours-box {
  padding: 10px;
  margin: 10px auto;
}

.park-hour-main {
  font-size: 16px;
}

.park-hour-sub {
  font-size: 13px;
}

.date-and-hours-container {
  margin: 2px 0;
}

#date-picker {
  height: 40px;               /* 必要に応じて調整 */
  padding: 0 10px;            /* 左右パディング */
  text-align: center;         /* 横中央 */
  display: flex;              /* Flexbox で中央寄せ */
  align-items: center;        /* 縦中央 */
  justify-content: center;    /* 横中央（任意） */
  font-size: 16px;
  box-sizing: border-box;
}

#park-hours-info {
  height: 40px;               /* 必要に応じて調整 */
  padding: 0 10px;            /* 左右パディング */
  text-align: center;         /* 横中央 */
  display: flex;              /* Flexbox で中央寄せ */
  align-items: center;        /* 縦中央 */
  justify-content: center;    /* 横中央（任意） */
  font-size: 16px;
  box-sizing: border-box;
}

.summary-boxes {
  margin: 3px 0;
}

.summary-box {
  padding: 3px;
  border-radius: 5px;
  min-width: 70px;
  margin: 3px;
  text-align: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.summary-title {
  font-weight: bold;
  margin-bottom: 2px;
  font-size: 12px;
}

.summary-box div:last-child {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

.summary-boxes .summary-box div {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal !important;  /* ← ここが重要 */
}

}

