@charset "UTF-8";
:root {
  --border-gray: #888;
  --hover-bg-light: #eef;
  --hover-border-blue: #00f;
  --border-light: #ddd;
  --bg-white: #fff;
  --primary-blue: #4a90e2;
  --primary-blue-rgba-04: rgba(74, 144, 226, 0.4);
  --primary-blue-rgba-05: rgba(74, 144, 226, 0.5);
  --primary-blue-rgba-03: rgba(74, 144, 226, 0.3);
  --primary-blue-rgba-02: rgba(74, 144, 226, 0.2);
  --grid-cell-bg: #f0f0f0;
  --header-cell-bg: #f5f5f5;
  --border-dark: #ccc;
  --cell-bg-header: #f9f9f9;
  --reserve-item-bg: #a3d8ff;
  --text-black: black;
  --reserve-item-hover: #bbdefb;
  --empty-cell-hover: #f0f8ff;
  --handle-bg: rgba(255, 255, 255, 0.3);
  --selecting-bg: rgba(74, 144, 226, 0.3);
  --helper-bg: #4a90e2;
  --text-white: white;
  --shadow-black: rgba(0, 0, 0, 0.3);
  --helper-border: #357abd;
  --success-green: #4caf50;
  --success-green-rgba: rgba(76, 175, 80, 0.3);
  --error-red: #f44336;
  --error-red-rgba: rgba(244, 67, 54, 0.3);
  --week-sunday: #d00;
  --week-saturday: #00d;
  --gap-size: 1px;
}

.week0 {
  color: var(--week-sunday);
}

.week6 {
  color: var(--week-saturday);
}

.date-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  gap: 60px;
}
.date-nav select {
  margin-right: 5px;
}
.date-nav a {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 3px 20px;
}
.date-nav a:hover {
  background: var(--hover-bg-light);
  border: 1px solid var(--hover-border-blue);
}
.date-nav > div {
  display: flex;
  align-items: center;
}

svg {
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.console {
  border-radius: 5px;
  text-align: left;
  padding: 20px 50px;
  max-width: 1310px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-items: start;
}

@media (max-width: 767px) {
  .console {
    padding: 15px 30px;
    max-width: 100%;
    grid-template-columns: 1fr;
    align-items: center;
  }
}
.current-date {
  text-align: left;
  display: inline-block;
  font-size: 20px;
  letter-spacing: 0.05em;
}
.current-date strong {
  font-size: 32px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
.current-date h1 {
  display: inline-block;
  vertical-align: baseline;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 1;
}

@media (max-width: 767px) {
  .current-date {
    font-size: 14px;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
  }
  .current-date strong {
    font-size: 18px;
  }
  .current-date h1 {
    font-size: 16px;
  }
}
.date-picker {
  text-align: right;
}
.date-picker span {
  font-size: 14px;
  display: inline-block;
  margin-right: 0.5em;
}
.date-picker input,
.date-picker button {
  vertical-align: middle;
}

.button-search {
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: white;
  line-height: 1;
  padding: 0.38em 0.75em;
  background: black;
  border-radius: 5px;
  margin-left: 6px;
  cursor: pointer;
}
.button-search svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.table-wrap {
  width: 100%;
  padding: 0 50px;
  max-width: 1310px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .table-wrap {
    width: 100%;
    padding: 0 15px;
    overflow: auto;
  }
}
.home-calendar {
  width: 100%;
  border-collapse: collapse;
}
.home-calendar thead {
  font-size: 13px;
  background: #aaa;
}
.home-calendar thead tr th {
  font-size: 14px;
  font-weight: 400;
  padding: 0.5em 0.2em;
  text-align: center;
  color: white;
  border-right: solid 1px white;
}
.home-calendar thead tr th:nth-child(1) {
  width: 85px;
}
.home-calendar thead tr th:nth-child(2), .home-calendar thead tr th:nth-child(3) {
  width: 60px;
}
.home-calendar thead tr th:nth-child(n+4) {
  font-family: "Poppins", sans-serif;
}
.home-calendar thead tr th:last-child {
  border-right: none;
}
.home-calendar .title {
  position: absolute;
  top: 45px;
  left: 30px;
  font-size: 60px;
  z-index: 8;
  width: 500px;
  color: #ff4040;
  opacity: 0.6;
  text-align: left;
  line-height: 1;
}
.home-calendar tbody tr th {
  border: solid 1px #ddd;
  font-weight: 400;
}
.home-calendar tbody tr th.date {
  font-size: 20px;
  letter-spacing: 0.15em;
  font-weight: 300;
  font-family: "Poppins", sans-serif;
  line-height: 1;
  color: #777;
  background: #f7f7f7;
}
.home-calendar tbody tr th.date em {
  font-style: normal;
  font-size: 30px;
  font-weight: 500;
  vertical-align: top;
  color: black;
}
.home-calendar tbody tr th.day.holiday {
  color: red;
}
.home-calendar tbody tr th.day.saturday {
  color: #2177a9;
}
.home-calendar tbody tr th.day.weekdays {
  color: #555;
}
.home-calendar tbody tr th.lane {
  font-size: 16px;
  padding: 0.15em;
  background: #f1f1f1;
}
.home-calendar tbody tr th.lane span {
  display: inline-block;
  font-weight: 400;
  width: 1.6em;
  height: 1.6em;
  line-height: 1;
  padding-top: 0.3em;
  border-radius: 5em;
  background: white;
  font-family: "Poppins", sans-serif;
}
.home-calendar tbody tr td {
  border: solid 1px #ddd;
  text-align: center;
}
.home-calendar tbody tr td.reserved {
  background: #9bc0df;
  position: relative;
  padding: 0;
  border-right: 0 !important;
  border-left: 0 !important;
}
.home-calendar tbody tr td.reserved:hover .reserve-data {
  display: block;
}
.home-calendar tbody tr.holiday td {
  background: #f0f0f0;
}

@media (max-width: 767px) {
  .home-calendar {
    width: 200%;
  }
  .home-calendar thead {
    font-size: 12px;
  }
  .home-calendar thead tr th {
    font-size: 12px;
    padding: 0.5em 0.2em;
  }
  .home-calendar thead tr th:nth-child(1) {
    position: sticky;
    left: -15px;
    z-index: 10;
    background: #aaa;
    width: 45px;
    padding: 0;
  }
  .home-calendar thead tr th:nth-child(2) {
    position: sticky;
    left: 30px;
    z-index: 10;
    background: #aaa;
    width: 35px;
    white-space: nowrap;
  }
  .home-calendar thead tr th:nth-child(3) {
    position: sticky;
    left: 65px;
    z-index: 10;
    background: #aaa;
    width: 40px;
    padding: 0;
    white-space: nowrap;
  }
  .home-calendar thead tr th:nth-child(n+4) {
    font-family: "Poppins", sans-serif;
  }
  .home-calendar thead tr th:last-child {
    border-right: none;
  }
  .home-calendar tbody tr th.date {
    position: sticky;
    left: -15px;
    z-index: 9;
    background: #f7f7f7;
    font-size: 14px;
    text-align: left;
    padding: 0 5px;
  }
  .home-calendar tbody tr th.date em {
    margin-top: 5px;
    display: block;
    font-size: 18px;
    text-align: right;
  }
  .home-calendar tbody tr th.day {
    position: sticky;
    left: 30px;
    z-index: 9;
    background: #fff;
    font-size: 12px;
  }
  .home-calendar tbody tr th.day.holiday {
    color: red;
  }
  .home-calendar tbody tr th.day.saturday {
    color: #2177a9;
  }
  .home-calendar tbody tr th.day.weekdays {
    color: #555;
  }
  .home-calendar tbody tr th.lane {
    position: sticky;
    left: 65px;
    z-index: 9;
    font-size: 16px;
    padding: 2px 0.15em;
  }
  .home-calendar tbody tr th.lane span {
    display: inline-block;
    font-weight: 400;
    width: 1.3em;
    height: 1.3em;
    padding-top: 0.2em;
    border-radius: 100vmax;
    font-size: 13px;
  }
  .home-calendar tbody tr td.reserved {
    position: relative;
  }
}
.reserve-data {
  display: none;
  margin: 0;
  list-style: none;
  position: absolute;
  font-size: 13px;
  width: 260px;
  left: 0;
  top: 0;
  color: #000;
  transform: translate(calc(-50% + 10px), calc(-100% - 10px));
  text-align: left;
  transition: all 0.2s;
  z-index: 8;
  background: #fffddf;
  padding: 0.75em 1em;
  border-radius: 5px;
}
.reserve-data:after {
  content: "";
  border: solid 10px transparent;
  border-top: solid 10px #fffddf;
  position: absolute;
  left: 50%;
  top: 99%;
  transform: translateX(-50%);
}
.reserve-data li {
  display: grid;
  grid-template-columns: 80px auto;
  gap: 15px;
}
.reserve-data li p {
  margin: 0;
}
.reserve-data li p.rd-label {
  color: #777;
}
.reserve-data.reverse {
  transform: translate(calc(-50% + 20px), calc(50% - 10px));
}
.reserve-data.reverse:after {
  content: "";
  border: solid 10px transparent;
  border-top: solid 10px transparent;
  border-bottom: solid 10px #fffddf;
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
}

.parking-grid {
  font-size: 14px;
  display: grid;
  /* date, weekday, then 18 half-hour slots (8:00-16:30 => 9hours *2 =18) */
  grid-template-columns: 60px 60px repeat(18, 40px);
  gap: var(--gap-size);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  /* 固定行高でレイアウトの崩れを抑える */
  grid-auto-rows: 26px;
  /* 小さい画面では横スクロール許可 */
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}
.parking-grid.resizing {
  background: var(--primary-blue-rgba-04) !important;
  border: 3px solid var(--primary-blue) !important;
  box-shadow: 0 0 20px var(--primary-blue-rgba-05);
  z-index: 100;
}
.parking-grid.resizing .reserve-item {
  opacity: 0.7;
}

.grid-row {
  display: contents;
}

.grid-cell {
  background: var(--grid-cell-bg);
  padding: 5px;
  text-align: center;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.grid-cell.header-cell {
  position: sticky;
  top: 0;
  background: var(--header-cell-bg);
  z-index: 20;
  font-weight: normal;
  padding: 5px;
}
.grid-cell.header-cell:after {
  content: "";
  border-right: 1px solid var(--border-dark);
  position: absolute;
  top: -1px;
  left: -1px;
  height: calc(100% + 2px);
  width: 1px;
}
.grid-cell.time-header {
  grid-column: span 2;
}
.grid-cell.date-cell, .grid-cell.week-cell {
  /* single-row per day after lane consolidation */
  grid-row: span 1;
  background: var(--cell-bg-header);
  min-width: 60px;
}
.grid-cell.date-cell:after, .grid-cell.week-cell:after {
  content: "";
  border-right: 1px solid var(--border-dark);
  position: absolute;
  top: -1px;
  left: -1px;
  height: calc(100% + 2px);
  width: 1px;
}
.grid-cell.lane-cell {
  background: var(--cell-bg-header);
}
.grid-cell.lane-cell:after {
  content: "";
  border-right: 1px solid var(--border-dark);
  position: absolute;
  top: -1px;
  left: -1px;
  height: calc(100% + 2px);
  width: 1px;
}
.grid-cell.restricted:after {
  content: "";
  border-right: 1px solid var(--border-dark);
  position: absolute;
  top: -1px;
  left: -1px;
  height: calc(100% + 2px);
  width: 1px;
}
.grid-cell.koma {
  width: 100%;
  padding: 2px;
  text-align: center;
  position: relative;
  /* セル高を確保 */
  min-height: 36px;
}
.grid-cell.koma .reserve-item {
  /* width 計算の一貫性を保つために border-box を使用する
  	 jQuery UI の resize で渡される ui.size.width が
  	 padding を含まない（content-box）場合があるため、
  	 reserve-item を border-box にして幅の計算誤差を防ぐ */
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  text-align: left;
  background: var(--reserve-item-bg);
  color: var(--text-black);
  font-size: 12px;
  line-height: 1.2;
  cursor: move;
  border-radius: 3px;
  user-select: none;
  text-decoration: none;
}
.grid-cell.koma .reserve-item:hover {
  background: var(--reserve-item-hover);
}
.grid-cell.koma.empty-cell:hover {
  background: var(--empty-cell-hover);
}

/* Table layout support for apps/home.php which now renders .parking-grid as a <table> */
table.parking-grid {
  border-collapse: collapse;
  /* allow horizontal scroll on small screens */
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  margin: 0 auto;
}

table.parking-grid thead th,
table.parking-grid tbody td {
  border: 1px solid var(--border-light);
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  background: var(--grid-cell-bg);
}

/* first two columns: date and weekday */
table.parking-grid th:nth-child(1),
table.parking-grid td:nth-child(1) {
  width: 60px;
}

table.parking-grid th:nth-child(2),
table.parking-grid td:nth-child(2) {
  width: 60px;
}

/* subsequent time columns fixed width */
/* th/td starting from 3rd child */
table.parking-grid th:nth-child(n+3),
table.parking-grid td:nth-child(n+3) {
  width: 40px;
}

/* header styles */
table.parking-grid thead th.header-cell {
  position: sticky;
  top: 0;
  background: var(--header-cell-bg);
  z-index: 5;
}

/* subtime headers smaller */
table.parking-grid thead .time-sub {
  font-size: 11px;
  padding: 4px 6px;
}

/* koma cell */
table.parking-grid td.koma {
  min-height: 36px;
}

/* draw single top border per day to avoid double lines */
.grid-row[data-date] > .date-cell:before,
.grid-row[data-date] > .week-cell:before {
  content: "";
  border-top: 1px solid var(--border-dark);
  position: absolute;
  top: -1px;
  left: -1px;
  height: 1px;
  width: calc(100% + 2px);
}

.ui-resizable-handle {
  position: absolute;
  display: block;
  z-index: 10;
}

.ui-resizable-e {
  cursor: e-resize;
  width: 10px;
  right: 0;
  top: 0;
  height: 100%;
  background: var(--handle-bg);
}

.ui-resizable-w {
  cursor: w-resize;
  width: 10px;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--handle-bg);
}

.selecting {
  background: var(--selecting-bg) !important;
}

.ui-draggable-dragging {
  opacity: 0.8;
  z-index: 9999 !important;
}

.ui-draggable-helper {
  background: var(--helper-bg) !important;
  color: var(--text-white) !important;
  padding: 5px;
  border-radius: 3px;
  box-shadow: 0 5px 15px var(--shadow-black);
  border: 2px solid var(--helper-border);
}

.drag-placeholder {
  background: var(--primary-blue-rgba-02) !important;
  border: 2px dashed var(--primary-blue) !important;
}

.drop-target {
  background: var(--success-green-rgba) !important;
  border: 2px solid var(--success-green) !important;
}

.drop-invalid {
  background: var(--error-red-rgba) !important;
  border: 2px solid var(--error-red) !important;
}

.resize-target {
  background: var(--success-green-rgba) !important;
  border: 2px solid var(--success-green) !important;
  animation: pulse-resize 0.5s ease-in-out infinite;
}

.resize-invalid {
  background: var(--error-red-rgba) !important;
  border: 2px solid var(--error-red) !important;
  animation: shake 0.3s ease-in-out;
}

@keyframes pulse-resize {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
.grid-cell.restricted {
  pointer-events: none;
  cursor: not-allowed;
  background: #fff;
}
.grid-cell.restricted:hover {
  background: var(--grid-cell-bg) !important;
}
.grid-cell.restricted .reserve-item:hover {
  background: var(--reserve-item-bg) !important;
  cursor: not-allowed;
}

.float_rest_time {
  position: absolute;
  left: 0;
  width: 500px;
  font-size: 16px;
  text-align: left;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 5px;
  color: #ff4040 !important;
  opacity: 0.6;
}

@media (max-width: 767px) {
  .float_rest_time {
    font-size: 14px;
  }
}
/* 時間指定休業（reserve_type==2）*/
td.rest_time {
  background: #f0f0f0 !important;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-right: 0 !important;
  border-left: 0 !important;
}
td.rest_time td.rest_time:hover {
  background: #f0f0f0 !important;
}

.parking-info {
  border-bottom: 1px solid #337ab7;
  font-size: 15px;
  padding: 0 15px 12px 15px;
  max-width: 1140px;
  margin: 0 auto;
  margin-bottom: 15px;
  align-items: center;
  gap: 3%;
}
.parking-info .pi-title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: #337ab7;
  padding-bottom: 0.5em;
  border-bottom: solid 1px #337ab7;
  margin-bottom: 0.5em;
}
.parking-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 0.15em 2.5em;
  margin: 0;
  padding: 0;
}
.parking-info dl > div {
  display: grid;
  line-height: 1.5;
  grid-template-columns: 3.5em auto;
  gap: 2%;
  /*
  			grid-template-rows: subgrid;
  			margin-bottom: 5px;
  			line-height: 1;
  */
}
.parking-info dl > div dt {
  font-weight: 500;
  color: #888;
  letter-spacing: 0.3em;
}
.parking-info dl > div dt:after {
  content: "：";
}
.parking-info dl > div dd {
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .parking-info {
    font-size: 15px;
    margin-bottom: 15px;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .parking-info .pi-title {
    font-size: 17px;
    font-weight: 700;
    color: #337ab7;
    text-align: left;
  }
  .parking-info dl {
    grid-template-columns: 1fr;
    padding-bottom: 2.5vw;
  }
  .parking-info dl > div {
    display: grid;
    line-height: 1.5;
    grid-template-columns: 3.5em auto;
    gap: 2%;
  }
  .parking-info dl > div dt {
    font-weight: 500;
    color: #888;
    letter-spacing: 0.3em;
  }
  .parking-info dl > div dt:after {
    content: "：";
  }
  .parking-info dl > div dd {
    margin: 0;
    padding: 0;
  }
}

/*# sourceMappingURL=parking.css.map */
