body {
    text-align: center;
    background-color: #EEF8FF;
    color: #000;
    font-family: "Noto Sans JP","Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
    font-weight: 400;
    line-height: 1;
    font-feature-settings: "palt";
    -webkit-text-size-adjust: 100%
}

#header {
  background-color: #ddd;
  font-size: 28px;
  margin-bottom: 8px;
}

#footer {
  background-color: #ddd;
  font-size: 28px;
  margin-top: 8px;
}

#service-status-area {
  display: flex;
  justify-content: center;
  width: 100%;
}

#map-area {
  display: flex;
  justify-content: center;
  width: 100%;
}

.service-status-container {
  box-sizing: border-box;
  max-width: 1000px;
  min-width: 360px;
  position: relative;
  padding: 8px 16px;
  width: 100%;
}

.service-status-main-area {
  align-items: center;
  background-color: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.out-of-service {
  margin: 16px 0;
  padding: 16px 8px;
}

.maintenance {
  padding: 16px 8px;
}

.service-status-text {
  font-size: 1.2rem;
  margin: 8px 0;
}

.service-status-bar {
  background: linear-gradient(to right, #0F70B6, #DE3437);
  height: 2px;
  width: 96%;
}

.service-span {
  font-size: 1.3rem;
  margin: 8px 0;
}

.service-span .service-span-text {
  font-size: 2rem;
  margin: 0 4px;
}

.out-of-service-text {
  line-height: 1.2;
  font-size: 2rem;
  text-align: center;
  white-space: pre-line;
}

.out-of-service-sub-text {
  font-size: 1.4rem;
  line-height: 1.2;
  margin-top: 6px;
  text-align: center;
  white-space: pre-line;
}

@media (max-width: 768px) {
  .out-of-service-text {
    font-size: 1.3rem;
  }

  .out-of-service-sub-text {
    font-size: 1rem;
  }
}

.service-status-sub-area {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.service-time {
  align-items: center;
  display: flex;
  font-size: 1.2rem;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
  width: 100%;
}

.service-time-bar {
  background-color: #000;
  height: 2px;
  width: 30px;
}
@media (max-width: 768px) {
  .service-time-bar {
    flex: 1;
  }
}

.service-attention {
  font-size: 0.8rem;
  text-align: center;
}

.status-area {
  max-width: 1000px;
  position: relative;
  width: 100%;
}

.title-label {
  color: #368fcf;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

@media (max-width: 768px) {
  .title-label {
    font-size: 14px;
  }
}

.none-image {
  width: 100%;
}

.before-image {
  width: 100%;
}

.after-image {
  width: 100%;
}

.realtime-area {
  margin-top: 20px;
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .realtime-area {
    margin-top: 15px;
  }
}

.realtime-map {
  display: block;
}

.map-realtime {
  position: absolute;
  left: -300px;
  top: -200px;
}

.whole-area {
  position: relative;
}

.map-label {
  position: absolute;
  top: 15%;
  right: 5%;
  background-color: white;
  padding: 4px 8px;
  font-size: 20px;
}

.map-background {
  display: block;
  width: 100%;
}

.map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.zoom-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.zoom-controls button {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.car-icon {
  position: absolute;
}
.car-bounce {
  animation: bounce 1s infinite ease-in-out;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0%); }
  50%      { transform: translateY(-1%); }
}

.arrow-bounce-right {
  animation: bounce-right 1s infinite ease-in-out;
}
@keyframes bounce-right {
  0%, 100% { transform: translateX(70px) rotate(0deg); }
  50%      { transform: translateX(74px) rotate(0deg); }
}

.arrow-bounce-left {
  transform: rotate(180 0 0);
  animation: bounce-left 1s infinite ease-in-out;
}
@keyframes bounce-left {
  0%, 100% { transform: translateX(-70px) rotate(180deg); }
  50%      { transform: translateX(-74px) rotate(180deg); }
}

.arrow-bounce-up {
  animation: bounce-up 1s infinite ease-in-out;
}
@keyframes bounce-up {
  0%, 100% { transform: translateY(-50px) rotate(-90deg); }
  50%      { transform: translateY(-54px) rotate(-90deg); }
}

.arrow-bounce-down {
  animation: bounce-down 1s infinite ease-in-out;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(50px) rotate(90deg); }
  50%      { transform: translateY(54px) rotate(90deg); }
}

.hidden {
  display: none;
}

#schedule-area {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}
@media (max-width: 768px) {
  #schedule-area {
    margin-top: 30px;
  }
}

.schedule-container {
  display: flex;
  font-size: 16px;
  gap: 16px;
  max-width: 1000px;
  width: 100%;
}

@media (max-width: 768px) {
  .schedule-container {
    flex-direction: column;
    font-size: 14px;
    gap: 0;
  }
}

.calendar-area {
  flex: 1;
  min-width: 330px;
}

.calendar-header {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .calendar-header {
    justify-content: space-between;
  }
}

.calendar-label {
  color: #368fcf;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .calendar-label {
    font-size: 14px;
  }
}

.calendar-controls {
  display: flex;
  font-size: 18px;
  gap: 4px;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .calendar-controls {
    font-size: 14px;
  }
}

.calendar-controls button {
  background-color: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  height: 100%;
  line-height: 1.2;
  transition: background-color 0.2s ease;
}
.calendar-controls button:hover:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.05);
}
.calendar-controls button:active:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.15);
}
.calendar-controls button:disabled {
  cursor: default;
}
@media (max-width: 768px) {
  .calendar-controls button {
    font-size: 14px;
  }
}

.year-month-label {
  min-width: 110px;
  text-align: center;
}
@media (max-width: 768px) {
  .year-month-label {
    min-width: 80px;
  }
}

.calendar {
  border-top: 4px solid #000;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  width: calc(100%);
}

.calendar .empty {
  border-top: 1px solid #000;
  border-left: 1px solid #000;
}

.calendar .day {
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  padding: 10px;

  position: relative;
}

.calendar .clickable {
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .calendar .clickable:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px dashed #000;
    pointer-events: none;
  }
}
.calendar .clickable:active::before {
  border-style: solid;
}

.calendar .sunday {
  color: red;
}

.calendar .saturday {
  color: blue;
}

.calendar .holiday {
  color: red;
}

.day:nth-child(7n),
.empty:nth-child(7n) {
  border-right: 1px solid #000;
}
.calendar > :nth-last-child(-n+7) {
  border-bottom: 1px solid #000;
}

.calendar-area .route-1 {
  background-color: #00809F;
}
.calendar-area .route-2 {
  background-color: #73919F;
}
.calendar-area .route-3 {
  background-color: #68C9D1;
}
.calendar-area .route-4 {
  background-color: #A4D8EF;
}
.calendar-area .route-5 {
  background-color: #F3797C;
}
.calendar-area .route-6 {
  background-color: #76C860;
}

.calendar-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  width: 95vw;
  max-width: 1000px;
}
@media (max-width: 768px) {
  .calendar-footer {
    margin-top: 12px;
  }
}

.route-item {
  align-items: center;
  display: flex;
  gap: 4px;
  text-align: left;
}

.route-item-image {
  border: 1px solid;
  min-width: 48px;
  width: 48px;
  height: 40px;
}

.route-item-label {
  min-width: 92px;
}

.route-attention {
  font-size: 0.8rem;
  text-align: left;
}

.route-area {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 330px;
}
@media (max-width: 768px) {
  .route-area {
    margin-top: 30px;
  }
}

.route-label {
  color: #368fcf;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}
@media (max-width: 768px) {
  .route-label {
    font-size: 14px;
  }
}

.route-name {
  font-size: 16px;
  margin-top: 4px;
  text-align: left;
}
@media (max-width: 768px) {
  .route-name {
    font-size: 14px;
    margin-top: 15px;
  }
}

.route-img-group {
  position: relative;
}

.route-img {
  margin-top: 4px;
  width: 100%;
}

.route-status-img {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 64%;
}

.station-detail-link {
  align-self: flex-end;
  color: red;
  text-decoration: none;
}
