body {
  margin: 0 !important;
}

/* --- 追加: sb-time-card-item 用スタイル --- */
.sb-time-card-item {
  flex: 0 0 calc(33.333% - 16px);
  /* max-width: calc(33.333% - 16px);
  min-width: 220px; */
  max-width: 198px;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .sb-time-card-item {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .sb-time-card-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* --- 既存スタイルここから --- */
.sb-calendar{
  max-width:900px;
  margin:auto;
  font-family:Helvetica,Arial;
  }
  
  .sb-calendar-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  }
  
  .sb-month{
  font-size:22px;
  font-weight:600;
  }
  
  .sb-week{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  font-weight:600;
  border-bottom:1px solid #ddd;
  }
  
  .sb-week div{
  text-align:center;
  padding:10px;
  }
  
  .sb-days{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  }
  
  .sb-day{
  /* height:110px; */
  border:1px solid #eee;
  padding:10px;
  cursor:pointer;
  position:relative;
  transition:all .2s;
  }


  
  .sb-day:hover{
  background:#f8f8f8;
  }
  
  .sb-day.closed{
  color:#bbb;
  cursor:not-allowed;
  }
  
  .sb-day.closed:hover{
  background:none;
  }
  
  .sb-date{
  font-size:18px;
  }
  
  .sb-status{
  position:absolute;
  bottom:10px;
  right:10px;
  font-size:18px;
  }
  
  .sb-day.reservable .sb-status{
  color:#caa46a;
  }
  
  .sb-day.closed .sb-status{
  color:#ccc;
  }

.sb-booking-ui {
  padding: 30px 20px 80px;
  background: #f8f5f2;
}

.sb-booking-inner {
  max-width: 920px;
  margin: 0 auto;
}

.sb-booking-head {
  text-align: center;
  margin-bottom: 32px;
}

.sb-booking-subtitle {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #9c8b74;
}

.sb-booking-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  color: #2d2d2d;
}

.sb-booking-lead {
  margin: 14px auto 0;
  max-width: 560px;
  color: #666;
  line-height: 1.8;
  font-size: 14px;
}

.sb-article-picker {
  max-width: 340px;
  margin: 0 auto 28px;
}

.sb-article-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
}

.sb-article-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d9d1c5;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}

.sb-calendar-root {
  margin-bottom: 34px;
}

.sb-calendar-box {
  background: #fff;
  border: 1px solid #e8e1d8;
  border-radius: 24px;
  padding: 26px 24px 24px;
  box-shadow: 0 10px 30px rgba(60, 45, 20, 0.05);
}

.sb-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.sb-calendar-month {
  font-size: 24px;
  font-weight: 600;
  color: #2f2f2f;
}

.sb-calendar-nav {
  width: 42px;
  height: 42px;
  border: 1px solid #dccbb0;
  border-radius: 9999px;
  background: #fff;
  color: #b69561;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s ease;
}

.sb-calendar-nav:hover {
  background: #faf4ea;
}

.sb-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0;
  border-top: 1px solid #ddd5ca;
  border-left: 1px solid #ddd5ca;
}

.sb-calendar-weekdays > div {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #ddd5ca;
  border-bottom: 1px solid #ddd5ca;
  background: #fbfaf8;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.sb-calendar-weekdays > div.sun {
  color: #ea6d4b;
}

.sb-calendar-weekdays > div.sat {
  color: #4f73db;
}

.sb-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #ddd5ca;
}

.sb-day {
  /* min-height: 120px; */
  border-right: 1px solid #ddd5ca;
  border-bottom: 1px solid #ddd5ca;
  background: #fff;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sb-day:hover:not(:disabled) {
  background: #fcf8f1;
}

.sb-day.is-active {
  background: #f2eed8;
  box-shadow: inset 0 0 0 2px #d1b17b;
}

.sb-day.is-empty {
  /* min-height: 120px; */
  border-right: 1px solid #ddd5ca;
  border-bottom: 1px solid #ddd5ca;
  background: #f1f1f1;
}

.sb-day-number {
  font-size: 16px;
  line-height: 1;
  color: #444;
}

.sb-day-mark {
  font-size: 34px;
  line-height: 1;
}

.sb-day.is-open .sb-day-mark {
  color: #cfab72;
}

.sb-day.is-closed {
  cursor: not-allowed;
  background: #fff;
}

.sb-day.is-closed .sb-day-mark {
  color: #9e9e9e;
}

.sb-day.is-closed .sb-day-number {
  color: #777;
}

.sb-times-section {
  margin-top: 26px;
}

.sb-times-head {
  margin-bottom: 16px;
}

.sb-times-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  color: #2d2d2d;
}

.sb-selected-date-label {
  margin: 0;
  font-size: 14px;
  color: #7a7a7a;
}

.sb-times-root {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8e1d8;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(60, 45, 20, 0.05);
}

.sb-time-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.sb-time-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e1d5c3;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: 0.2s ease;
}

.sb-time-card:hover {
  transform: translateY(-2px);
  background: #fcf7ef;
  border-color: #cfab72;
  box-shadow: 0 10px 18px rgba(140, 110, 60, 0.12);
}

.sb-time-card-time {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.sb-time-card-meta {
  margin-top: 8px;
  font-size: 13px;
  color: #9a7f55;
}

.sb-time-empty,
.sb-loading {
  padding: 24px 12px;
  text-align: center;
  color: #777;
  font-size: 14px;
}
.sb-day-selected-label{
  font-size: 14px;
}
.sb-day-section-head{
  margin-bottom: 30px;
  text-align: center;
}
.sb-day-section-title {
  font-size: 20px;
}


@media (max-width: 768px) {
  .sb-booking-ui {
    padding: 30px 14px 60px;
  }

  .sb-calendar-box {
    padding: 16px 12px 14px;
    border-radius: 18px;
  }

  .sb-calendar-month {
    font-size: 22px;
  }

  .sb-calendar-weekdays > div {
    min-height: 42px;
    font-size: 14px;
  }

  .sb-day,
  .sb-day.is-empty {
    min-height: 0x;
    /* min-height: 78px; */
    padding: 10px 6px;
  }

  .sb-day-number {
    font-size: 15px;
  }

  .sb-day-mark {
    font-size: 24px;
  }

  .sb-times-root {
    padding: 16px;
    border-radius: 18px;
  }


  .sb-time-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .sb-time-card {
    min-height: 78px;
    padding: 12px;
    border-radius: 12px;
  }

  .sb-time-card-time {
    font-size: 18px;
  }
  .sb-booking-head {
    margin-bottom: 0;
  }
  .sb-booking-title {
    font-size: 24px;
  }
  .sb-day-section-title {
    font-size: 20px;
  }
  .sb-booking-lead {
    margin: 14px 20px 0;
    max-width: 560px;
    text-align: left;
  }
  .sb-day-selected-label{
    text-align: left;
  }

}

/* ========================================
   Booking Form
======================================== */
.sb-form-page {
  padding: 40px 20px 80px;
  background: #f8f5f2;
}

.sb-form-container {
  max-width: 1280px;
  margin: 0 auto;
}

.sb-form-header {
  margin-bottom: 24px;
}

.sb-form-title {
  margin: 0;
  font-size: 58px;
  line-height: 1.1;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.02em;
}

.sb-form {
  width: 100%;
}

.sb-form-block {
  margin-top: 28px;
  border: 1px solid #e4dfd7;
  background: #fff;
  padding: 20px 16px 12px;
}

.sb-form-block-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.sb-required-note {
  margin: 0 0 12px;
  font-size: 15px;
  color: #555;
}

.sb-required-note span,
.sb-required {
  color: #e34b3f;
}

.sb-table {
  width: 100%;
  border-top: 1px solid #ece7df;
}

.sb-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  border-bottom: 1px solid #ece7df;
  min-height: 74px;
}

.sb-row-textarea {
  min-height: 220px;
}

.sb-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 18px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  background: #fff;
  text-align: right;
}

.sb-field {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-left: 1px solid #ece7df;
  background: #fff;
}

.sb-field-static {
  align-items: center;
}

.sb-reservation-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 18px;
  color: #444;
}

.sb-reservation-type {
  font-size: 16px;
  color: #666;
}

.sb-reservation-datetime {
  font-size: 18px;
  color: #444;
}

.sb-inline-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-inline-prefix {
  font-size: 18px;
  color: #444;
}

.sb-input,
.sb-select,
.sb-textarea {
  width: 100%;
  border: 1px solid #cfc9bf;
  background: #fff;
  border-radius: 3px;
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
}

.sb-input,
.sb-select {
  height: 46px;
  padding: 0 12px;
}

.sb-select {
  width: 90px;
  text-align: center;
}

.sb-textarea {
  padding: 12px;
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.sb-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.sb-confirm-button {
  min-width: 120px;
  height: 56px;
  padding: 0 26px;
  border: 1px solid #c98c7f;
  border-radius: 4px;
  background: #d6bf84;
  color: #5e5340;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.sb-confirm-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .sb-form-title {
    font-size: 44px;
  }

  .sb-row {
    grid-template-columns: 240px 1fr;
  }

  .sb-label {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .sb-form-page {
    padding: 24px 12px 56px;
  }

  .sb-form-title {
    font-size: 34px;
  }

  .sb-form-block {
    padding: 16px 12px 10px;
  }

  .sb-form-block-title {
    font-size: 20px;
  }

  .sb-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sb-row-textarea {
    min-height: auto;
  }

  .sb-label {
    justify-content: flex-start;
    text-align: left;
    padding: 12px 10px 6px;
    font-size: 16px;
  }

  .sb-field {
    border-left: none;
    padding: 6px 10px 14px;
  }

  .sb-inline-prefix {
    font-size: 16px;
  }

  .sb-input,
  .sb-select,
  .sb-textarea {
    font-size: 16px;
  }

  .sb-confirm-button {
    width: 100%;
    max-width: 280px;
    height: 52px;
    font-size: 17px;
  }
  .sb-panel-head h2 {
    font-size: 22px!important;
  }
  .sb-input{
    height: 40px!important;
  }
  .notice {
    text-align: left!important;
  }
}


.sb-page {
  padding: 0px 20px 84px;
  background: #f7f4ef;
}

.sb-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.sb-shell-narrow {
  max-width: 1120px;
}

.sb-shell-thanks {
  max-width: 760px;
}

.sb-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .2em;
  color: #9e8760;
}

.sb-page-title {
  margin: 0;
  color: #2f2d29;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 600;
}

.sb-page-lead {
  margin: 14px 0 0;
  color: #6b6863;
  line-height: 1.8;
  font-size: 15px;
}

.sb-hero-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.sb-hero-card-single {
  grid-template-columns: 1fr;
}

.sb-hero-copy,
.sb-summary-card,
.sb-panel,
.sb-thanks-card {
  background: #fff;
  border: 1px solid #e8dfd2;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(68, 47, 17, 0.06);
}

.sb-hero-copy {
  padding: 34px;
}

.sb-summary-card {
  overflow: hidden;
}

.sb-summary-head {
  padding: 18px 22px;
  background: linear-gradient(180deg, #f7f0e2 0%, #f3ead8 100%);
  color: #695b45;
  font-size: 15px;
  font-weight: 700;
}

.sb-summary-body {
  padding: 14px 22px 20px;
}

.sb-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #efe7da;
}

.sb-summary-row:last-child {
  border-bottom: none;
}

.sb-summary-label {
  color: #8a7f70;
  font-size: 14px;
}

.sb-summary-value {
  color: #2f2d29;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.sb-alert {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 16px;
}

.sb-alert-error {
  background: #fff5f4;
  border: 1px solid #efc1bb;
  color: #b34334;
}

.sb-alert ul {
  margin: 0;
  padding-left: 20px;
}

.sb-form-grid {
  display: grid;
  gap: 18px;
}

.sb-panel {
  padding: 24px;
}

.sb-panel-head {
  margin-bottom: 18px;
}

.sb-panel-head h2 {
  margin: 0;
  color: #2f2d29;
  font-size: 24px;
}

.sb-panel-head p {
  margin: 8px 0 0;
  color: #7a7368;
  font-size: 14px;
}

.sb-panel-head p span,
.sb-field-label em {
  color: #df4b39;
  font-style: normal;
}

.sb-form-section {
  display: grid;
  gap: 16px;
}

.sb-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.sb-two-col-aside {
  grid-template-columns: 220px minmax(0,1fr);
}

.sb-field-block {
  display: block;
}

.sb-field-small {
  max-width: 220px;
}

.sb-field-label {
  display: block;
  margin-bottom: 8px;
  color: #45413b;
  font-size: 14px;
  font-weight: 600;
}

.sb-input,
.sb-select,
.sb-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8cebf;
  border-radius: 14px;
  background: #fff;
  color: #2f2d29;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.sb-input,
.sb-select {
  height: 52px;
  padding: 0 14px;
  font-size: 16px;
}

.sb-textarea {
  min-height: 180px;
  padding: 14px;
  line-height: 1.8;
  font-size: 15px;
  resize: vertical;
}

.sb-input:focus,
.sb-select:focus,
.sb-textarea:focus {
  outline: none;
  border-color: #cfab72;
  box-shadow: 0 0 0 4px rgba(207, 171, 114, 0.15);
}

.sb-sticky-action {
  /* position: sticky; */
  bottom: 18px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
  padding: 14px;
  /* background: rgba(247, 244, 239, 0.86); */
  backdrop-filter: blur(10px);
  /* border: 1px solid rgba(232, 223, 210, 0.9); */
  border-radius: 18px;
}

.sb-sticky-action-center {
  justify-content: center;
}

.sb-primary-button,
.sb-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 54px;
  padding: 0 22px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.sb-primary-button {
  border: none;
  background: linear-gradient(180deg, #d5bb83 0%, #c8a66b 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(180, 140, 75, 0.22);
}

.sb-secondary-button {
  border: 1px solid #d9c8aa;
  background: #fff;
  color: #6f5d45;
}

.sb-primary-button:hover,
.sb-secondary-button:hover {
  transform: translateY(-1px);
}

.sb-confirm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.sb-confirm-item {
  padding: 16px 18px;
  border: 1px solid #eee4d6;
  border-radius: 16px;
  background: #fcfaf7;
}

.sb-confirm-item-full {
  grid-column: 1 / -1;
}

.sb-confirm-item span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #8a7f70;
}

.sb-confirm-item strong {
  color: #2f2d29;
  line-height: 1.8;
  font-size: 16px;
  font-weight: 600;
}

.sb-final-form {
  margin-top: 18px;
}

.sb-thanks-card {
  padding: 48px 34px;
  text-align: center;
}

.sb-thanks-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #d5bb83 0%, #c8a66b 100%);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(180, 140, 75, 0.22);
}

@media (max-width: 960px) {
  .sb-page-title {
    font-size: 34px;
  }

  .sb-hero-card {
    grid-template-columns: 1fr;
  }

  .sb-two-col,
  .sb-two-col-aside,
  .sb-confirm-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sb-page {
    padding: 22px 12px 64px;
  }

  .sb-hero-copy,
  .sb-panel,
  .sb-thanks-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .sb-page-title {
    font-size: 24px;
  }

  .sb-page-lead {
    font-size: 14px;
  }

  .sb-sticky-action {
    position: static;
    /* flex-direction: column-reverse; */
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
  }

  .sb-primary-button,
  .sb-secondary-button {
    width: 100%;
    min-width: 0;
  }
}#available-times {
  scroll-margin-top: 24px;
}

#sb-times-root.is-animated .sb-time-cards {
  animation: sbTimesFadeUp 0.45s ease-out;
}

#sb-times-root.is-animated .sb-time-card {
  animation: sbTimeCardFadeUp 0.5s ease-out both;
}

#sb-times-root.is-animated .sb-time-card:nth-child(1) { animation-delay: 0.03s; }
#sb-times-root.is-animated .sb-time-card:nth-child(2) { animation-delay: 0.07s; }
#sb-times-root.is-animated .sb-time-card:nth-child(3) { animation-delay: 0.11s; }
#sb-times-root.is-animated .sb-time-card:nth-child(4) { animation-delay: 0.15s; }
#sb-times-root.is-animated .sb-time-card:nth-child(5) { animation-delay: 0.19s; }
#sb-times-root.is-animated .sb-time-card:nth-child(6) { animation-delay: 0.23s; }

@keyframes sbTimesFadeUp {
  from {
    opacity: 0.96;
  }
  to {
    opacity: 1;
  }
}

@keyframes sbTimeCardFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
