
.container {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2,6,23,.06);
}

h1 {
  font-size: 18px;
  margin: 0 0 12px;
}

.controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.controls button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
}

.controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.thumb {
  flex: 0 0 calc((100% - 24px) / 3) !important;
  max-width: calc((100% - 24px) / 3) !important;
}

/* タブレット（2列） */
@media screen and (max-width: 1100px) {
  .thumb {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
  }
}

/* スマホ（1列） */
@media screen and (max-width: 720px) {
  .thumb {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}


.label {
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
}

.imgwrap {
  background: #0b1020;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.imgwrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.placeholder {
  color: #94a3b8;
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

@media screen and (max-width: 1100px) {
  .thumb { flex: 1 1 calc(50% - 12px); }
}

@media screen and (max-width: 400px) {
  .thumb { flex: 1 1 100%; }
}

.fixed_banner_sp { display: none; }
@media screen and (max-width: 480px) {
  .fixed_banner_sp { display: inline-block; }
  .fixed_banner_pc { display: none; }
}

/* ---- カレンダー専用の上書き ---- */
.calendar .imgwrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}