.upload-btn {
        display: block;
        width: 100%;
        background: #262626;
        color: white;
        padding: 3px 0;
        border-radius: 6px;
        cursor: pointer;
        text-align: center;
        font-size: 20px;
        transition: 0.2s ease-in-out;
        margin-top: 10px;
}

.upload-btn:hover {
        background: #000;
}

.upload-btn .content {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
}

.upload-btn .icon {
        font-size: 22px;
}

.toggle-buttons {
      display: flex;
      justify-content: center;
      border: 1px solid rgb(202, 32, 23);
      border-radius: 5px;
      overflow: hidden;
      margin-top: 20px;
    }
    .toggle-buttons a {
      flex: 1;
      text-align: center;
      padding: 10px 0;
      text-decoration: none;
      color: #d00;
      font-weight: 500;
    }
    .toggle-buttons a.active {
      background-color: rgb(202, 32, 23);
      color: white !important;
    }
    .nav-section {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 15px;
      gap: 20px;
    }
    .arrow-btn {
      font-size: 1.5rem;
      color: #333;
      text-decoration: none;
    }
    .calendar-link {
      font-size: 0.9rem;
      text-decoration: underline;
      color: #555;
    }
.studio-info-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    font-size: 1.3rem;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
    z-index: 5;
    transition: 0.2s;
  }
  .studio-info-icon:hover {
    color: #dc3545;
    background: rgba(255,255,255,0.8);
  }
.studio-card {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
  }
  .studio-card.selected {
    border-color: #dc3545;
  }
  .studio-bg {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: brightness(70%);
  }
  .studio-overlay {
    position: absolute;
    inset: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-weight: 600;
  }
  .studio-title {
    font-size: 1.1rem;
  }
  .studio-subtitle {
    font-size: 0.9rem;
  }
  .studio-check {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    padding: 4px;
    color: #dc3545;
    font-size: 20px;
    opacity: 0;
    transition: 0.2s;
  }
  .studio-card.selected .studio-check {
    opacity: 1;
  }
.reservation-card {
            margin: 30px auto;
            padding: 20px;
            border-radius: 10px;
            background: #f8f9fa;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
.profile-card {
            max-width: 800px;
            margin: 30px auto;
            padding: 20px;
            border-radius: 10px;
            background: #f8f9fa;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .profile-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #dc3545;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }
        .btn-line {
            border: 2px solid #00c300;
            color: #00c300;
            background: transparent;
        }
        .btn-line:hover {
            background-color: #00c300;
            color: white;
        }
        .action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .section-title {
            font-weight: bold;
            margin-top: 20px;
        }
        .card-section {
            margin-top: 10px;
            border: 1px solid #e9ecef;
            border-radius: 5px;
        }
        .card-section a {
            display: flex;
            justify-content: space-between;
            padding: 10px 15px;
            text-decoration: none;
            color: black;
        }
        .card-section a:hover {
            background-color: #f1f1f1;
        }
        .verified-badge {
            font-size: 12px;
            color: #198754;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .unconfirmed-badge {
            font-size: 12px;
            color: #dc3545;
        }
.corner-ribbon {
  position: absolute;
  top: 2px;
  right: -20px;
  background: rgb(68, 189, 50);
  color: white;
  text-align: center;
  font-size: 8px;
  font-weight: bold;
  padding: 1px 0;
  width: 50px;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 10;
}

.schedule-table {
  font-size: 0.85rem;
  text-align: center;
}
    .schedule-table th, .schedule-table td {
      vertical-align: middle;
    }
    .slot {
      background-color: #d1e7dd;
      border-radius: 4px;
      padding: 3px;
    }
    .private {
      background-color: #f8d7da; /* red shade for private */
    }


@media(max-width:500px){
    .inquiry th,.inquiry td {
        display:block;
        width:100%!important;
        /*  border-top:none!important; */
        -webkit-box-sizing:border-box!important;
        -moz-box-sizing:border-box!important;
        box-sizing:border-box!important;
    }

}

.inquiry th{
    outline:none!important;   /*不要なアウトラインを消す、けど効いてない*/
    text-align-last:center;
    font-size: 17px;
    /*     line-height:16px; */
    font-weight:normal;
    color:#ffffff;
    padding:0px 10px 0px 10px;
    width:40%;
    background-color: #000000;
    border-bottom:solid 6px #ebeaea;
}

.inquiry td{
    font-size:16px;
    /* line-height:16px; */
    background-color:#ffffff;
    padding:0px 10px 0px 10px;
    border-bottom:solid 6px #ebeaea;
}
.inquiry tr{
    padding:0px 10px 0px 10px;
}
#id_required{
    color:#ffffff;
    font-size:1em;
}
.gender td:nth-child(2){
    width: 200%;
    padding: 10px;
    margin: 1px 0 5px 0;
    display: inline-block;
    border: none;
    background: #ffffff;
    background-size: 16px 18px;
    background-position: 98% 50%;
    cursor: auto;
    color: #000;

}
        
    .custom-navbar {
        background-color: #4E4449;
        box-sizing: border-box;
        color: #DCDDDD;
        flex-basis: auto;
        flex-grow: 0;
        flex-shrink: 1;
        font-family: "Noto Sans JP", "Hind", Meiryo, sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 26px;
    }

    .custom-navbar .navbar-nav .nav-link {
        color: #DCDDDD !important;
    }

    .custom-navbar .navbar-brand {
        color: #DCDDDD !important;
        font-weight: 500;
    }
        
.step-progress {
    position: relative;
}
.step {
    text-align: center;
    flex: 1;
    position: relative;
}
.step .circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.2rem;
}
.step .label {
    margin-top: 8px;
    font-size: 0.9rem;
}
.step .circle.bg-danger {
    border: 3px solid #dc3545;
}
.line {
    flex: 1;
    height: 3px;
    background: #ddd;
    margin: 0 5px;
    align-self: center;
}
.step.active .circle {
    background: #dc3545;
    color: #fff;
}
  
    .ticket-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.2s ease-in-out;
    }
    .ticket-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .ticket-card.selected {
        background-color: #f8d7da; /* light red background */
        border-color: #dc3545;     /* red border */
    }
    .ticket-info {
        max-width: 70%;
    }
    .ticket-price {
        font-size: 1.4rem;
        font-weight: bold;
        white-space: nowrap;
    }
    .ticket-desc {
        color: #666;
        font-size: 0.9rem;
    }
.step-progress {
    position: relative;
}
.step {
    text-align: center;
    flex: 1;
    position: relative;
}
.step .circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.2rem;
}
.step .label {
    margin-top: 8px;
    font-size: 0.9rem;
}
.step .circle.bg-danger {
    border: 3px solid #dc3545;
}
.line {
    flex: 1;
    height: 3px;
    background: #ddd;
    margin: 0 5px;
    align-self: center;
}
.step.active .circle {
    background: #dc3545;
    color: #fff;
}
  
    /* Make selected dates rounded */
    .flatpickr-day.selected {
      border-radius: 50% !important;
      background: #0d6efd !important;
      color: white !important;
    }
.reserved {
  position: relative;
  overflow: hidden;
}

/* Dark overlay covering the entire card */
.reserved::before {
  content: "RESERVED";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 128, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}

.full-booked {
  position: relative;
  overflow: hidden;
}

/* Dark overlay covering the entire card */
.full-booked::before {
  content: "FULL";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark transparent overlay */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}
.past-day {
  color: #aaa;
  opacity: 0.4;
}
/* Make all table cells equal size */
.slot-cell {
  width: 200px;        /* adjust as needed */
  min-height: 280px;       /* keeps all cards same height */
  vertical-align: top; /* ensures alignment */
  padding: 10px;
}

/* Card layout */
.slot-card {
  width: 100%;
  height: 100%;
  position: relative;
}

/* -------- Tab Buttons -------- */
.tab-buttons {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

    .tab-buttons a {
      padding: 8px 16px;
      border: 1px solid #ccc;
      border-radius: 20px;
      background: #f8f8f8;
      color: #333;
      text-decoration: none;
      font-size: 14px;
      transition: all 0.2s ease-in-out;
    }

    .tab-buttons a:hover {
      background: #e6e6e6;
    }

    .tab-buttons a.active {
      background: #fff;
      border: 1px solid #b22222;  /* dark red border */
      color: #b22222;
      font-weight: bold;
    }

    /* -------- Announcement Box -------- */
    .announcement-box {
      border: 1px solid #2c3e50;
      padding: 10px 15px;
      margin-top: 15px;
      position: relative;
      background: #fff;
      font-size: 14px;
      line-height: 1.5;
      transition: max-height 0.3s ease;
      overflow: hidden;
      max-height: 300px; /* expanded size */
    }

    .announcement-box.collapsed {
      max-height: 40px; /* small height at the beginning */
    }

    .announcement-box .arrow {
      position: absolute;
      bottom: 5px;
      right: 10px;
      font-size: 18px;
      color: #2c3e50;
      cursor: pointer;
    }

  .order-card {
    border: 1px solid #e5e5e5;
    background: #ffffff;
    border-radius: 6px;
    margin-bottom: 20px;
  }
  .order-footer {
    background: #f7f7f7;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  .order-footer:hover {
    background: #efefef;
  }
