@media screen and (max-width: 768px) {

  body {
    margin: 0;
    padding: 0;
  }

  .reservation-title-image {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .reservation-title-image img {
    width: 100%;
    height: auto;
  }

  #souzai-form {
    padding: 8px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  #souzai-form ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }

  #souzai-form li {
    font-size: 13px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
  }

  #souzai-form li img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }

  #souzai-form .item-name {
    font-size: 14px;
    margin-top: 4px;
  }

  #souzai-form .item-price {
    font-size: 13px;
  }

  #souzai-form .item-qty input[type="number"] {
    width: 48px;
    font-size: 15px;
  }

  #souzai-form .item-unit {
    font-size: 13px;
  }

  #souzai-form h3 {
    font-size: 16px;
    margin: 10px 0;
  }

  #souzai-form input[type="text"],
  #souzai-form input[type="email"],
  #souzai-form input[type="tel"],
  #souzai-form select,
  #souzai-form textarea {
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 10px;
  }

  #souzai-form button[type="submit"],
  #souzai-form button[type="button"]:not(.time-chip) {
    font-size: 18px;
    padding: 12px;
    width: 100%;
    background-color: #8fc31f;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #souzai-form button[type="submit"]:hover,
  #souzai-form button[type="button"]:not(.time-chip):hover {
    background-color: #7aad1c;
  }

  .resv-check-btn {
    font-size: 16px;
    padding: 12px 20px;
    width: 100%;
  }

  .resv-check-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .resv-check-row input[type="text"] {
    width: 100%;
    max-width: 100%;
  }

  .resv-check-label {
    margin-bottom: 4px;
  }

  #confirm-section {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 15px;
  }

}


/* 予約内容確認の削除ボタン箇所 */
#souzai-form li.confirm-item button.remove-item-btn {
	all: unset; /* ← ブラウザのデフォルト装飾を完全にリセット */
	display: inline-block;
	background-color: #ccc; /* 薄グレー */
	color: #000; /* 黒文字 */
	border: none;
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	margin-top: 10px;
	transition: background-color 0.3s;
	text-align: center;
}
#souzai-form li.confirm-item button.remove-item-btn:hover {
	background-color: #bbb !important;
}





/* 画面遷移後に見た目を整える箇所 */
.reservation-result {
	width: 100%;
	height: auto;
    background: #fff;
    margin: auto;
    text-align: center;
}

.resv-thanks {
    font-size: 24px;
    color: #f4511e;
    font-weight: bold;
    margin-bottom: 20px;
}

.reservation-result p.resv-description {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
	text-align: justify;
    margin-bottom: 30px;
}

.resv-box {
	flex-direction: column;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.resv-label {
	display: block;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}

.resv-box span.reservation-id {
	display: block;
    font-size: 36px;
    font-weight: bold;
    color: #00aaff;
	padding-top: 10px;
}

.reservation-result p.resv-note {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
	text-align: justify;
}





/* 日時を選ばないと注意文が出る箇所 */
#datetime-warning {
	top: 0;
    left: 0;
    transform: none;
    width: 100%;
    padding: 12px 16px;
    border-radius: 0;
    box-sizing: border-box;
    text-align: center;
  }
#datetime-warning.show {
  opacity: 1;
}





/* ===== スマホ用：イベント選択ランディング ===== */

.room-event-landing{
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 0 14px;
}

.event-landing-title{
  font-size: 22px;
  margin: 2px 0 6px;
  line-height: 1.25;
}

.event-landing-lead{
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 14px;
}

/* 1カラム固定 */
.event-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* カード */
.event-card{
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

/* サムネイル：端の余白を小さめに。縦長端末で高さを取りすぎないよう比率指定 */
.event-thumb{
  padding: 12px 12px 0;
}
.event-thumb img{
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;          /* 画面占有しすぎを防ぐ */
  object-fit: cover;
  border-radius: 10px;
}

/* 本文 */
.event-body{
  padding: 12px 12px 16px;
}

.event-title{
  font-size: 18px;
  margin: 10px 0 8px;
}

/* 日付：指で押しやすい余白に調整、折り返し前提 */
.event-dates{
  gap: 10px;
  margin-bottom: 14px;
}
.event-dates li{
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
}
.event-dates li + li::before{
  left: -12px;
}

/* CTAボタン：全幅・大きめタップ領域 */
.event-cta{
  width: 70%;
  padding: 14px 12px;
  font-size: 18px;
  border-radius: 10px;
}

/* 余白の微調整（下に次カードが来ても読点が詰まらないように） */
.event-card + .event-card{
  margin-top: 2px;
}


/* ===== スマホ：空き状況グリッド ===== */
.slot-grid-title{font-size:15px}
.slot-grid table{min-width:640px}
.slot-grid th,.slot-grid td{padding:10px 8px}
.slot-flag{width:26px; height:26px; font-size:15px}
.slot-cell{min-width:72px}


/* ---- 予約ミニカレンダー ---- */
.slot-mini-cal .cell { min-height:56px; }

/* スマホで左右つまるのを防ぐ */
.event-calendar .fc {
    font-size: 14px;
  }






/* スマホ最適化 */
  .slot-rows__block{ margin-bottom:18px; padding:0 8px; }
  .slot-rows__date{ font-size:16px; margin:10px 8px 6px; }
  .time-chip{
    font-size:15px;
    padding:10px 12px;
    display:inline-flex !important; /* 念のため強制上書き */
    width:auto !important;          /* 念のため強制上書き */
  }

.slot-rows__times { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; }

.slot-rows__block{ margin-bottom:18px; padding:0 8px; }
  .slot-rows__date{ font-size:16px; margin:10px 8px 6px; }
  .slot-rows__times{ justify-content:flex-start; }       /* 念のため再指定 */
  .time-chip{ font-size:15px; } 

/* 行の並べ方：左寄せ＋4カラムになるよう幅を計算 */
  .slot-rows__times{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;                 /* 横3つの隙間 → 3×10=30px */
    justify-content: flex-start;
  }
  .time-chip{
    /* 4列化： (100% - 3つの隙間) / 4 列 */
    flex: 0 1 calc((100% - 30px) / 4);
    box-sizing: border-box;
    min-width: 0;              /* 自動幅の主張を無効化 */
    width: auto !important;    /* 既存のauto指定を維持しつつ上書きOKに */
    display: inline-flex !important;
    align-items: center;       /* 文字の上下センター */
    justify-content: center;   /* 文字の左右センター */
    height: 38px;              /* 少しだけ背を高くしてタップしやすく */
    padding: 0 6px;            /* 横の余白を控えめに（詰めやすく） */
    font-size: 15px;
  }