/* レンタルスペース予約・スペース選択・予約日時選択の左余白を追加 */
.reservation > section,
.reservation > ul,
.reservation > h1,
.reservation > #calendar-area,
.reservation > form,
.reservation > .table-scroll {
  margin-left: 1.5em;
}

@media (max-width: 700px) {
  .reservation > section,
  .reservation > ul,
  .reservation > h1,
  .reservation > #calendar-area,
  .reservation > form,
  .reservation > .table-scroll {
    margin-left: 0.5em;
  }
}

/* --- テーマカラー --- */
:root {
  --main-color: lightcoral;
  --accent-color: #fff0f0;
  --button-hover: #ffb3b3;
  --border-color: #f7b6b6;
  --text-color: #6d3c3c;
  --disabled-bg: #f5eaea;
  --disabled-text: #c0a0a0;
}

/* --- 全体 --- */
body {
  font-family: 'Rounded Mplus 1c', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: var(--accent-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* --- メインコンテンツの上部余白（ヘッダー分） --- */
body, main {
  margin: 0;
  padding: 0;
}
main {
  padding-top: 70px; /* ヘッダーの高さ分余白を確保 */
}

/* --- カレンダー・テーブル --- */
.table-scroll {
  overflow-x: auto;
  width: 100%;
  margin-bottom: 1em;
}
.cal {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #f7b6b644;
  overflow: hidden;
}
.cal th,
.cal td {
  border: 1.5px solid var(--border-color);
  text-align: center;
  padding: 0.7em 0.3em;
  min-width: 60px;
  font-size: 1em;
  background: #fff;
  transition: background 0.2s;
}
.cal th.sunday {
  color: #e74c3c;
  background: #ffeaea;
}
.cal th.saturday {
  color: #3498db;
  background: #eaf6ff;
}
.cal th.rsv-stime {
  background: var(--accent-color);
  font-weight: bold;
  width: 70px;
  border-left: none;
}
.cal th.parebtn {
  padding: 0;
}
.cal a.rsvBut {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--main-color);
  background: #fff7f7;
  text-decoration: none;
  padding: 0.5em 0;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 1px 4px #f7b6b622;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  position: relative;
}
.cal a.rsvBut:hover {
  background: var(--button-hover);
  color: #fff;
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 2px 8px #f7b6b655;
}
.cal a.disabled {
  pointer-events: none;
  color: var(--disabled-text);
  background: var(--disabled-bg);
  border: 1.5px dashed var(--border-color);
  opacity: 0.7;
}

/* --- ボタン・選択 --- */
.btn-container {
  display: flex;
  gap: 0.7em;
  flex-wrap: wrap;
  margin-bottom: 1em;
  justify-content: flex-start;
}
.space-btn {
  padding: 0.6em 1.8em;
  border: 2px solid var(--main-color);
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--main-color);
  box-shadow: 0 1px 4px #f7b6b622;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  position: relative;
  overflow: hidden;
}
.space-btn:after {
  color: #fff0f0;
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 1.2em;
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.2s;
}
.space-btn:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  border: 2px dashed var(--border-color);
  cursor: not-allowed;
  opacity: 0.7;
}
.space-btn:not(:disabled):hover {
  background: var(--main-color);
  color: #fff;
  transform: scale(1.07) rotate(2deg);
}
.space-btn:not(:disabled):hover:after {
  opacity: 0.5;
}

/* --- スペース紹介文 --- */
.flex-container {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  margin-bottom: 1em;
  background: #fff7f7;
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 1px 4px #f7b6b622;
}
.flex-container img {
  width: 120px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px #f7b6b644;
}
.text {
  flex: 1;
}
.font {
  font-size: 1em;
}
.bold {
  font-weight: bold;
  color: var(--main-color);
}
.indented {
  margin-left: 1em;
}
.hidden {
  display: none;
}

/* --- フォーム・ラベル --- */
label {
  font-weight: bold;
  color: var(--main-color);
  margin-right: 0.5em;
}
select, button.rsvBut {
  border-radius: 8px;
  border: 1.5px solid var(--main-color);
  padding: 0.4em 1em;
  font-size: 1em;
  margin-right: 0.5em;
  background: #fff;
  color: var(--main-color);
  transition: background 0.2s, color 0.2s;
}
select:focus, button.rsvBut:focus {
  outline: 2px solid var(--main-color);
  background: #fff0f0;
}
button.rsvBut {
  background: var(--main-color);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 1px 4px #f7b6b622;
}
button.rsvBut:hover {
  background: #ffb3b3;
  color: #fff;
  transform: scale(1.05) rotate(-2deg);
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
  .flex-container {
    flex-direction: column;
    align-items: stretch;
  }
  .flex-container img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 1em auto;
  }
  .btn-container {
    flex-direction: column;
    gap: 0.5em;
  }
  .cal th, .cal td {
    min-width: 40px;
    font-size: 0.95em;
    padding: 0.3em;
  }
}
@media (max-width: 600px) {
  .wrapper, .container, .reservation {
    padding: 0 0.5em;
  }
  .cal th, .cal td {
    min-width: 32px;
    font-size: 0.85em;
    padding: 0.2em;
  }
  .btn-container {
    flex-direction: column;
    gap: 0.3em;
  }
  .flex-container {
    padding: 0.5em;
  }
}

/* --- 装飾 --- */
.cal a.rsvBut::after {
  color: #ffb3b3;
  font-size: 1.2em;
  margin-left: 0.3em;
  opacity: 0.3;
  vertical-align: middle;
  transition: opacity 0.2s;
}
.cal a.rsvBut:hover::after {
  opacity: 0.7;
}
.space-btn:not(:disabled)::before {
  margin-right: 0.5em;
  color: #ffb3b3;
  opacity: 0.5;
  font-size: 1.1em;
}

/* カレンダー前週・翌週ナビゲーションのボタンを横並び・同サイズに */
.rsvBut.nav-btn {
  min-width: 110px;
  text-align: center;
  box-sizing: border-box;
  display: inline-block;
  padding: 0.5em 0;
  font-size: 1em;
  border-radius: 12px;
  margin: 0 0.2em;
}
.calendar-nav-row {
  margin-bottom: 0.5em;
}

