/* スマホ専用スタイル（style_sp.css） */

body {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 6px;
  font-size: 13px;
}

#data-container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.block {
  width: 100%;
  margin: 0 auto 10px auto;
  box-sizing: border-box;
}

.region-bar {
  height: 14px;
  width: 100%;
  border-radius: 6px 6px 0 0;
}

.content-row {
  display: block;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  text-align: center;
  gap: 6px;
  padding: 8px 0;
}

/* 日付枠を可変にして、オーバーフローしないよう調整 */
.date-box {
  flex: 0 0 auto;
  padding: 0 8px;
  height: 48px;
  border-radius: 6px;
  font-size: 16px;
  background-color: #ccc;
  white-space: nowrap;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-box .day {
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

.day .month-small {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  font-weight: bold;
}

.day .day-large {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 30px;
  font-weight: bold;
}

.day .weekday {
  font-family: sans-serif;
  font-size: 14px;
  margin-top: 2px;
}

.shop-photo {
  width: 90%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.shop-logo {
  width: 90%;
  max-width: 280px;
  object-fit: contain;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

/* アイコン側はリサイズ対応させる */
.icon-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
  flex: 1;
  min-width: 0;
}

.event-icon {
  width: 45px;
  height: 45px;
  border-radius: 4px;
}

#search-box-area {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

#search-box-area input[type="text"],
#search-box-area input[type="date"],
#search-box-area select,
#search-box-area button {
  width: calc(50% - 6px);  /* 横2列表示用に */
  max-width: 120px;
}

.entry-block {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  background-color: #fff;
  border-radius: 6px;
  padding: 6px;
  height: 100px; /* ← 全体の高さを明示するのが効果的 */
}

.area-frame {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  gap: 6px;
}

.shop-photo {
  width: 80px;
  height: auto;
}

.shop-logo {
  width: 100px;
  height: auto;
}

.date-box,
.shop-photo,
.shop-logo,
  height: 100px;
  display: flex;
  flex-direction: column; /* 特に date-box には必要 */
  align-items: center;
  justify-content: center;
}

.shop-photo,
.shop-logo {
  object-fit: contain;
  height: auto;
  display: block;
}

.shop-photo {
  width: 29.66%;
}

.shop-logo {
  width: 70.34%;
}

.entry-block,
.area-frame {
  align-items: start !important;
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-container input[type="text"],
.search-container input[type="date"],
.search-container select,
.search-container button {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.top-row {
  display: flex;
  width: 100%;
  gap: 4px; /* 少し余白が必要なら */
}

.bottom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  flex-wrap: nowrap;
}
#date-filter-buttons {
  margin: 12px auto 24px auto;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 999px; /* 丸っこい形状 */
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 🔴 本日の取材ボタン */
.filter-btn.today {
  background: linear-gradient(to bottom, #fa0505, #520000);
}

/* 🔵 明日の取材ボタン */
.filter-btn.tomorrow {
  background: linear-gradient(to bottom, #0081fc, #003b73);
}

.filter-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
@media screen and (max-width: 768px) {
  .input-label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #666;
  }
}